[02:57:40]OFD Sender: No OFD packet to send [02:57:45]OFD Sender: No OFD packet to send [02:57:50]OFD Sender: No OFD packet to send [02:57:55]OFD Sender: No OFD packet to send [02:58:00]OFD Sender: No OFD packet to send [02:58:05]OFD Sender: No OFD packet to send [02:58:10]OFD Sender: No OFD packet to send [02:58:15]OFD Sender: No OFD packet to send [02:58:20]OFD Sender: No OFD packet to send [02:58:25]OFD Sender: No OFD packet to send [02:58:30]OFD Sender: No OFD packet to send [02:58:35]OFD Sender: No OFD packet to send [02:58:40]OFD Sender: No OFD packet to send [02:58:45]OFD Sender: No OFD packet to send [02:58:50]OFD Sender: No OFD packet to send [02:58:55]OFD Sender: No OFD packet to send [02:59:00]OFD Sender: No OFD packet to send [02:59:05]OFD Sender: No OFD packet to send [02:59:10]OFD Sender: No OFD packet to send [02:59:15]OFD Sender: No OFD packet to send [02:59:20]OFD Sender: No OFD packet to send [02:59:25]OFD Sender: No OFD packet to send [02:59:30]OFD Sender: No OFD packet to send [02:59:35]OFD Sender: No OFD packet to send [02:59:40]OFD Sender: No OFD packet to send [02:59:45]OFD Sender: No OFD packet to send [02:59:50]OFD Sender: No OFD packet to send [02:59:55]OFD Sender: No OFD packet to send [03:00:00]OFD Sender: No OFD packet to send [03:00:05]OFD Sender: No OFD packet to send [03:00:10]OFD Sender: No OFD packet to send [03:00:15]OFD Sender: No OFD packet to send [03:00:20]OFD Sender: No OFD packet to send [03:00:25]OFD Sender: No OFD packet to send [03:00:30]OFD Sender: No OFD packet to send [03:00:35]OFD Sender: No OFD packet to send [03:00:40]OFD Sender: No OFD packet to send [03:00:45]OFD Sender: No OFD packet to send [03:00:50]OFD Sender: No OFD packet to send [03:00:55]OFD Sender: No OFD packet to send [03:01:00]OFD Sender: No OFD packet to send [03:01:05]OFD Sender: No OFD packet to send [03:01:10]OFD Sender: No OFD packet to send [03:01:15]OFD Sender: No OFD packet to send [03:01:20]OFD Sender: No OFD packet to send [03:01:25]OFD Sender: No OFD packet to send [03:01:30]OFD Sender: No OFD packet to send [03:01:35]OFD Sender: No OFD packet to send [03:01:40]OFD Sender: No OFD packet to send [03:01:45]OFD Sender: No OFD packet to send [03:01:50]OFD Sender: No OFD packet to send [03:01:55]OFD Sender: No OFD packet to send [03:02:00]OFD Sender: No OFD packet to send [03:02:05]OFD Sender: No OFD packet to send [03:02:10]OFD Sender: No OFD packet to send [03:02:15]OFD Sender: No OFD packet to send [03:02:20]OFD Sender: No OFD packet to send [03:02:25]OFD Sender: No OFD packet to send [03:02:30]OFD Sender: No OFD packet to send [03:02:35]OFD Sender: No OFD packet to send [03:02:40]OFD Sender: No OFD packet to send [03:02:45]OFD Sender: No OFD packet to send [03:02:50]OFD Sender: No OFD packet to send [03:02:55]OFD Sender: No OFD packet to send [03:03:00]OFD Sender: No OFD packet to send [03:03:05]OFD Sender: No OFD packet to send [03:03:10]OFD Sender: No OFD packet to send [03:03:15]OFD Sender: No OFD packet to send [03:03:20]OFD Sender: No OFD packet to send [03:03:25]OFD Sender: No OFD packet to send [03:03:30]OFD Sender: No OFD packet to send [03:03:35]OFD Sender: No OFD packet to send [03:03:40]OFD Sender: No OFD packet to send [03:03:45]OFD Sender: No OFD packet to send [03:03:50]OFD Sender: No OFD packet to send [03:03:55]OFD Sender: No OFD packet to send [03:04:00]OFD Sender: No OFD packet to send [03:04:05]OFD Sender: No OFD packet to send [03:04:10]OFD Sender: No OFD packet to send [03:04:15]OFD Sender: No OFD packet to send [03:04:20]OFD Sender: No OFD packet to send [03:04:25]OFD Sender: No OFD packet to send [03:04:30]OFD Sender: No OFD packet to send [03:04:35]OFD Sender: No OFD packet to send [03:04:40]OFD Sender: No OFD packet to send [03:04:45]OFD Sender: No OFD packet to send [03:04:50]OFD Sender: No OFD packet to send [03:04:55]OFD Sender: No OFD packet to send [03:05:00]OFD Sender: No OFD packet to send [03:05:05]OFD Sender: No OFD packet to send [03:05:10]OFD Sender: No OFD packet to send [03:05:15]OFD Sender: No OFD packet to send [03:05:20]OFD Sender: No OFD packet to send [03:05:25]OFD Sender: No OFD packet to send [03:05:30]OFD Sender: No OFD packet to send [03:05:35]OFD Sender: No OFD packet to send [03:05:40]OFD Sender: No OFD packet to send [03:05:45]OFD Sender: No OFD packet to send [03:05:50]OFD Sender: No OFD packet to send [03:05:55]OFD Sender: No OFD packet to send [03:06:00]OFD Sender: No OFD packet to send [03:06:05]OFD Sender: No OFD packet to send [03:06:10]OFD Sender: No OFD packet to send [03:06:15]OFD Sender: No OFD packet to send [03:06:20]OFD Sender: No OFD packet to send [03:06:25]OFD Sender: No OFD packet to send [03:06:30]OFD Sender: No OFD packet to send [03:06:35]OFD Sender: No OFD packet to send [03:06:40]OFD Sender: No OFD packet to send [03:06:45]OFD Sender: No OFD packet to send [03:06:50]OFD Sender: No OFD packet to send [03:06:55]OFD Sender: No OFD packet to send [03:07:00]OFD Sender: No OFD packet to send [03:07:05]OFD Sender: No OFD packet to send [03:07:10]OFD Sender: No OFD packet to send [03:07:15]OFD Sender: No OFD packet to send [03:07:20]OFD Sender: No OFD packet to send [03:07:25]OFD Sender: No OFD packet to send [03:07:31]OFD Sender: No OFD packet to send [03:07:36]OFD Sender: No OFD packet to send [03:07:41]OFD Sender: No OFD packet to send [03:07:46]OFD Sender: No OFD packet to send [03:07:51]OFD Sender: No OFD packet to send [03:07:56]OFD Sender: No OFD packet to send [03:08:01]OFD Sender: No OFD packet to send [03:08:06]OFD Sender: No OFD packet to send [03:08:11]OFD Sender: No OFD packet to send [03:08:16]OFD Sender: No OFD packet to send [03:08:21]OFD Sender: No OFD packet to send [03:08:26]OFD Sender: No OFD packet to send [03:08:31]OFD Sender: No OFD packet to send [03:08:36]OFD Sender: No OFD packet to send [03:08:41]OFD Sender: No OFD packet to send [03:08:46]OFD Sender: No OFD packet to send [03:08:51]OFD Sender: No OFD packet to send [03:08:56]OFD Sender: No OFD packet to send [03:09:01]OFD Sender: No OFD packet to send [03:09:06]OFD Sender: No OFD packet to send [03:09:11]OFD Sender: No OFD packet to send [03:09:16]OFD Sender: No OFD packet to send [03:09:21]OFD Sender: No OFD packet to send [03:09:26]OFD Sender: No OFD packet to send [03:09:31]OFD Sender: No OFD packet to send [03:09:36]OFD Sender: No OFD packet to send [03:09:41]OFD Sender: No OFD packet to send [03:09:46]OFD Sender: No OFD packet to send [03:09:51]OFD Sender: No OFD packet to send [03:09:56]OFD Sender: No OFD packet to send [03:10:01]OFD Sender: No OFD packet to send [03:10:06]OFD Sender: No OFD packet to send [03:10:11]OFD Sender: No OFD packet to send [03:10:16]OFD Sender: No OFD packet to send [03:10:21]OFD Sender: No OFD packet to send [03:10:26]OFD Sender: No OFD packet to send [03:10:31]OFD Sender: No OFD packet to send [03:10:36]OFD Sender: No OFD packet to send [03:10:41]OFD Sender: No OFD packet to send [03:10:46]OFD Sender: No OFD packet to send [03:10:51]OFD Sender: No OFD packet to send [03:10:56]OFD Sender: No OFD packet to send [03:11:01]OFD Sender: No OFD packet to send [03:11:06]OFD Sender: No OFD packet to send [03:11:11]OFD Sender: No OFD packet to send [03:11:16]OFD Sender: No OFD packet to send [03:11:21]OFD Sender: No OFD packet to send [03:11:26]OFD Sender: No OFD packet to send [03:11:31]OFD Sender: No OFD packet to send [03:11:36]OFD Sender: No OFD packet to send [03:11:41]OFD Sender: No OFD packet to send [03:11:46]OFD Sender: No OFD packet to send [03:11:51]OFD Sender: No OFD packet to send [03:11:56]OFD Sender: No OFD packet to send [03:12:01]OFD Sender: No OFD packet to send [03:12:06]OFD Sender: No OFD packet to send [03:12:11]OFD Sender: No OFD packet to send [03:12:16]OFD Sender: No OFD packet to send [03:12:21]OFD Sender: No OFD packet to send [03:12:26]OFD Sender: No OFD packet to send [03:12:31]OFD Sender: No OFD packet to send [03:12:36]OFD Sender: No OFD packet to send [03:12:41]OFD Sender: No OFD packet to send [03:12:46]OFD Sender: No OFD packet to send [03:12:51]OFD Sender: No OFD packet to send [03:12:56]OFD Sender: No OFD packet to send [03:13:01]OFD Sender: No OFD packet to send [03:13:06]OFD Sender: No OFD packet to send [03:13:11]OFD Sender: No OFD packet to send [03:13:16]OFD Sender: No OFD packet to send [03:13:21]OFD Sender: No OFD packet to send [03:13:26]OFD Sender: No OFD packet to send [03:13:31]OFD Sender: No OFD packet to send [03:13:36]OFD Sender: No OFD packet to send [03:13:41]OFD Sender: No OFD packet to send [03:13:46]OFD Sender: No OFD packet to send [03:13:51]OFD Sender: No OFD packet to send [03:13:56]OFD Sender: No OFD packet to send [03:14:01]OFD Sender: No OFD packet to send [03:14:06]OFD Sender: No OFD packet to send [03:14:11]OFD Sender: No OFD packet to send [03:14:16]OFD Sender: No OFD packet to send [03:14:21]OFD Sender: No OFD packet to send [03:14:26]OFD Sender: No OFD packet to send [03:14:31]OFD Sender: No OFD packet to send [03:14:36]OFD Sender: No OFD packet to send [03:14:41]OFD Sender: No OFD packet to send [03:14:46]OFD Sender: No OFD packet to send [03:14:51]OFD Sender: No OFD packet to send [03:14:56]OFD Sender: No OFD packet to send [03:15:01]OFD Sender: No OFD packet to send [03:15:06]OFD Sender: No OFD packet to send [03:15:11]OFD Sender: No OFD packet to send [03:15:16]OFD Sender: No OFD packet to send [03:15:21]OFD Sender: No OFD packet to send [03:15:26]OFD Sender: No OFD packet to send [03:15:31]OFD Sender: No OFD packet to send [03:15:36]OFD Sender: No OFD packet to send [03:15:41]OFD Sender: No OFD packet to send [03:15:46]OFD Sender: No OFD packet to send [03:15:51]OFD Sender: No OFD packet to send [03:15:56]OFD Sender: No OFD packet to send [03:16:01]OFD Sender: No OFD packet to send [03:16:06]OFD Sender: No OFD packet to send [03:16:11]OFD Sender: No OFD packet to send [03:16:16]OFD Sender: No OFD packet to send [03:16:21]OFD Sender: No OFD packet to send [03:16:26]OFD Sender: No OFD packet to send [03:16:31]OFD Sender: No OFD packet to send [03:16:36]OFD Sender: No OFD packet to send [03:16:41]OFD Sender: No OFD packet to send [03:16:46]OFD Sender: No OFD packet to send [03:16:51]OFD Sender: No OFD packet to send [03:16:56]OFD Sender: No OFD packet to send [03:16:59]accept exits with 9 [03:16:59]New connection [03:16:59]New thread 3067252068 created [03:16:59]Thread 3067395428 joined [03:16:59]Waiting for new connection... [03:16:59] Sock 9.Parse request [03:16:59]Sock 9.Check first char [03:16:59]Sock 9.First char is OK [03:16:59]request: POST /json_proto HTTP/1.0 [03:16:59]Method: POST [03:16:59]URL: /json_proto [03:16:59]Method is POST - this is cgi request [03:16:59]url: /json_proto [03:16:59]query_string will be loaded in cgi processing [03:16:59]execute_cgi json_proto POST (null) [03:16:59]execute_cgi path=json_proto method=POST [03:16:59]POST find Content-Length [03:16:59]Host: 172.17.48.197:8080 [03:16:59]Content-Length: 679 [03:16:59]Content-Type: application/json [03:16:59] [03:16:59]POST finish read [03:16:59]Found Content-Length = 679 [03:16:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106082", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 11.310, "sum" : 700.09, "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" ] } } [03:16:59]execute_script... [03:16:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106082", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 11.310, "sum" : 700.09, "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" ] } } [03:16:59]POST & json_proto [03:16:59]process_json_proto [03:16:59]json parsed OK: [03:16:59]protocol is kg_v1.0 [03:16:59]action value=close_receipt [03:16:59]process_action close_receipt [03:16:59]cmd_close_receipt [03:16:59]MH_GetDate [03:16:59]Write to MH i2c: F0 00 00 16 0E 13 [03:16:59]Write i2c OK [03:16:59]MH_I2C_Read... [03:16:59]Read from MH i2c: F0 [03:16:59]MH_I2C_Read... [03:16:59]Read from MH i2c: F0 09 00 [03:16:59]MH_I2C_Read... [03:16:59]Read from MH i2c: F0 09 00 16 0E 00 AC EB E3 65 6C AF E3 65 5E [03:16:59]GetLastDocTimeStamp 1709434633 [03:16:59]current date 1709435820 [03:16:59]FM_GetShiftState [03:16:59]SAM_PROTO_GetShiftState [03:16:59]wFMCommunicate request_size=4 [03:16:59]MH_SAM_APDU [03:16:59]CAPDU: 80 13 01 00 [03:16:59]Write to MH i2c: E2 08 00 17 0E 80 13 01 00 00 00 00 00 A2 [03:16:59]Write i2c OK [03:16:59]MH_I2C_Read... [03:16:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:16:59]Read from MH i2c: E2 [03:16:59]MH_I2C_Read... [03:16:59]Read from MH i2c: E2 0E 00 [03:16:59]MH_I2C_Read... [03:16:59]Read from MH i2c: E2 0E 00 17 0E 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 64 [03:16:59]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [03:16:59]wFMCommunicate OK [03:16:59]SAM_PROTO_GetShiftState done [03:16:59]FM_GetShiftState done [03:16:59]opened in 1709425579 [03:16:59]opened+sec_in_day 1709511979 [03:16:59]quantity*price = 70008 [03:16:59]sum+1 = 70010 [03:16:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.19 НДС 12% : 74.35 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 21 03.03.2024 03:17 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123164 ФПД: 128717100248626 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T031700&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123164&fm=128717100248626&tin=02508201610067®Number=0000000000090573&sum=70000 [03:17:00]StoreToDocumentArchive [03:17:00]shift 323 fd 123164 [03:17:00]save to /storage/0323/doc_00123164 [03:17:00]save last doc name /storage/0323/doc_00123164 to /storage/kkm_last_doc_name [03:17:00]save OK [03:17:00]Clear old archive folders... [03:17:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:17:00]tlvbuf is 00DB7A50 [03:17:00]SAM_PROTO_ClearQueue [03:17:00]wFMCommunicate request_size=4 [03:17:00]MH_SAM_APDU [03:17:00]CAPDU: 80 09 00 00 [03:17:00]Write to MH i2c: E2 08 00 24 0E 80 09 00 00 00 00 00 00 A4 [03:17:00]Write i2c OK [03:17:00]MH_I2C_Read... [03:17:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:17:00]Read from MH i2c: E2 [03:17:00]MH_I2C_Read... [03:17:00]Read from MH i2c: E2 03 00 [03:17:00]MH_I2C_Read... [03:17:00]Read from MH i2c: E2 03 00 24 0E 00 90 00 A6 [03:17:00]RAPDU: 90 00 [03:17:00]wFMCommunicate OK [03:17:00]SAM_PROTO_ClearQueue done [03:17:00]KKMCreateOFDPacket [03:17:00]OFDProtocolAddRootSTLVToBuf [03:17:00]FM_MakeSignedData [03:17:00]FM_MakeSignedData [03:17:00]SAM_PROTO_SignData [03:17:00]wFMCommunicate request_size=4 [03:17:00]MH_SAM_APDU [03:17:00]CAPDU: 80 0D 01 02 [03:17:00]Write to MH i2c: E2 08 00 25 0E 80 0D 01 02 00 00 00 00 AC [03:17:00]Write i2c OK [03:17:00]MH_I2C_Read... [03:17:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:17:00]Read from MH i2c: E2 [03:17:00]MH_I2C_Read... [03:17:00]Read from MH i2c: E2 03 00 [03:17:00]MH_I2C_Read... [03:17:00]Read from MH i2c: E2 03 00 25 0E 00 90 00 A7 [03:17:00]RAPDU: 90 00 [03:17:00]wFMCommunicate OK [03:17:00]wFMCommunicate request_size=255 [03:17:00]MH_SAM_APDU [03:17: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 35 FF 03 08 00 03 2E 2C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 79 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 6B 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 15 00 00 00 F4 03 04 00 AC EB E3 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 1C E1 01 00 35 04 06 00 75 [03:17:00]Write to MH i2c: E2 02 01 26 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 35 FF 03 08 00 03 2E 2C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 79 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 6B 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 15 00 00 00 F4 03 04 00 AC EB E3 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 1C E1 01 00 35 04 06 00 75 00 00 2F [03:17:00]Write i2c OK [03:17:00]MH_I2C_Read... [03:17:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:17:00]Read from MH i2c: E2 [03:17:00]MH_I2C_Read... [03:17:00]Read from MH i2c: E2 03 00 [03:17:00]MH_I2C_Read... [03:17:00]Read from MH i2c: E2 03 00 26 0E 00 90 00 A8 [03:17:00]RAPDU: 90 00 [03:17:00]wFMCommunicate OK [03:17:00]wFMCommunicate request_size=10 [03:17:00]MH_SAM_APDU [03:17:00]CAPDU: 80 0D 02 02 05 11 49 09 6E 32 [03:17:00]Write to MH i2c: E2 0D 00 27 0E 80 0D 02 02 05 00 11 49 09 6E 32 00 00 BC [03:17:00]Write i2c OK [03:17:00]MH_I2C_Read... [03:17:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:17:01]Read from MH i2c: E2 [03:17:01]MH_I2C_Read... [03:17:01]Read from MH i2c: E2 03 00 [03:17:01]MH_I2C_Read... [03:17:01]Read from MH i2c: E2 03 00 27 0E 00 90 00 A9 [03:17:01]RAPDU: 90 00 [03:17:01]wFMCommunicate OK [03:17:01]wFMCommunicate request_size=4 [03:17:01]MH_SAM_APDU [03:17:01]CAPDU: 80 0D 03 02 [03:17:01]Write to MH i2c: E2 08 00 28 0E 80 0D 03 02 00 00 00 00 B1 [03:17:01]Write i2c OK [03:17:01]MH_I2C_Read... [03:17:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:17:01]Read from MH i2c: E2 [03:17:01]MH_I2C_Read... [03:17:01]Read from MH i2c: E2 0B 00 [03:17:01]MH_I2C_Read... [03:17:01]Read from MH i2c: E2 0B 00 28 0E 00 CD 5D 18 A8 46 17 9A 9E 90 00 31 [03:17:01]RAPDU: CD 5D 18 A8 46 17 9A 9E 90 00 [03:17:01]wFMCommunicate OK [03:17:01]SAM_PROTO_SignData done [03:17:01]FM_MakeSignedData done [03:17:01]CreateOFDProtocolMessage [03:17:01]wFMCommunicate request_size=4 [03:17:01]MH_SAM_APDU [03:17:01]CAPDU: 80 11 00 00 [03:17:01]Write to MH i2c: E2 08 00 29 0E 80 11 00 00 00 00 00 00 B1 [03:17:01]Write i2c OK [03:17:01]MH_I2C_Read... [03:17:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:17:01]Read from MH i2c: E2 [03:17:01]MH_I2C_Read... [03:17:01]Read from MH i2c: E2 17 00 [03:17:01]MH_I2C_Read... [03:17:01]Read from MH i2c: E2 17 00 29 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 0F [03:17:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [03:17:01]wFMCommunicate OK [03:17:01]CreateOFDProtocolMessage done [03:17:01]OFDSenderStorePacket 123164 [03:17:01]StoreOFDPacket docnum=123164 [03:17:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 B2 62 07 01 F9 62 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 2C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 79 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 6B 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 15 00 00 00 F4 03 04 00 AC EB E3 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 1C E1 01 00 35 04 06 00 75 11 49 09 6E 32 CD 5D 18 A8 46 17 9A 9E [03:17:01]CheckFolder [03:17:01]dirname=/storage/ofd_packets [03:17:01]CheckFolder done [03:17:01]ProducePacketName [03:17:01]name=ofd_packets/00123164 [03:17:01]NVStorageSaveData ofd_packets/00123164 [03:17:01]File name is /storage/ofd_packets/00123164 [03:17:01]Write 301 bytes [03:17:01]NVStorageSaveData done [03:17:01]OFDSenderStorePacket done [03:17:01]KKMCreateOFDPacket done [03:17:01]NVStorageSaveData kkm_last_timestamp [03:17:01]File name is /storage/kkm_last_timestamp [03:17:01]Write 4 bytes [03:17:01]NVStorageSaveData done [03:17:01]ExternCall_PrintAddStr [03:17:01]wPrintStart [03:17:01]Write to MH i2c: 01 00 00 2A 0E 38 [03:17:01]Write i2c OK [03:17:01]MH_I2C_Read... [03:17:01]Read from MH i2c: 01 [03:17:01]MH_I2C_Read... [03:17:01]Read from MH i2c: 01 07 00 [03:17:01]MH_I2C_Read... [03:17:01]Read from MH i2c: 01 07 00 2A 0E 00 00 00 00 00 FF 0F 4D [03:17:01]RasterBufferAndPrint [03:17:01]line Счет N : (1)1106082 [03:17:01]line ИНН: 02508201610067 [03:17:01]line Контрольно-Кассовый Чек [03:17:01]line ПРОДАЖА [03:17:01]line ТРК (МРК, ГНК) : 62 [03:17:01]line Товар: 2710124130 [03:17:01]line Аи-92-К-5 [03:17:01]line 11.310 * 61.90 [03:17:01]line = 700.09 [03:17:01]line НДС 12% НСП 1% [03:17:01]line > о реализуемом товаре [03:17:01]line ОКРУГЛЕНИЕ: -0.09 [03:17:01]line ИТОГО: 700.00 [03:17:01]line Внесено: 700.00 [03:17:01]line СДАЧА: 0.00 [03:17:01]line НСП 1% : 6.19 [03:17:01]line НДС 12% : 74.35 [03:17:01]line Наличными: 700.00 [03:17:01]line Безнал.: 0.00 [03:17:01]line Место: АЗС № 25 "Партнер Нефть" [03:17:01]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [03:17:01]line СНО: Общий режим [03:17:01]line Чек 21 03.03.2024 03:17 [03:17:01]line Смена: 323 ФФД: 1.0 [03:17:01]line ЗНМ: 0300000019 [03:17:01]line РНМ: 0000000000090573 [03:17:01]line Версия ККМ: 001 [03:17:01]line ФМ: 0000000000874798 [03:17:01]line ФД: 123164 [03:17:01]line ФПД: 128717100248626 [03:17:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T031700&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123164&fm=128717100248626&tin=02508201610067®Number=0000000000090573&sum=70000 [03:17:01]OFD Sender: Processing packet 123164 [packets to send 112, broken 111] [03:17:01]ProducePacketName [03:17:01]name=ofd_packets/00123164 [03:17:01]OFD Sender: To server: pG, [03:17:01]CommunicateWithHost lk.salyk.kg:30040 [03:17:01]ConnectInit lk.salyk.kg [03:17:01]written 0, free lines is 4095 [03:17:01]Connected sock=10 [03:17:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 B2 62 07 01 F9 62 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 2C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 79 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 6B 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 15 00 00 00 F4 03 04 00 AC EB E3 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 1C E1 01 00 35 04 06 00 75 11 49 09 6E 32 CD 5D 18 A8 46 17 9A 9E [03:17:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 E7 46 47 00 3A 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 37 39 38 10 04 04 00 1C E1 01 00 F4 03 04 00 D9 97 E3 65 B6 04 01 00 00 A6 70 54 48 19 10 49 3B [03:17:01]CommunicateWithHost err = 0 [03:17:01]CheckOFDResponse [03:17:01]1017 (14) - 77093643461234 [03:17:01]1041 (16) - 0000000000874798 [03:17:01]1040 (4) - 123164 [03:17:01]1012 (4) - 02.03.2024 21:19 [03:17:01]1206 (1) - 0 [03:17:01]OFD Sender: Remove packet 123164 [03:17:01]ProducePacketName [03:17:01]name=ofd_packets/00123164 [03:17:01]NVStorageDeleteData [03:17:01]Write to MH i2c: 01 00 00 55 0E 63 [03:17:01]Write i2c OK [03:17:01]MH_I2C_Read... [03:17:01]Read from MH i2c: 01 [03:17:01]MH_I2C_Read... [03:17:01]Read from MH i2c: 01 07 00 [03:17:01]MH_I2C_Read... [03:17:01]Read from MH i2c: 01 07 00 55 0E 00 00 00 00 00 E5 0C 5B [03:17:01]RasterBufferAndPrint [03:17:01]line [03:17:01]line [03:17:01]line [03:17:01]line [03:17:01]line [03:17:01]written 0, free lines is 3307 [03:17:01]MH_Cut [03:17:01]Write to MH i2c: D1 01 00 5C 0E 01 3C [03:17:01]Write i2c OK [03:17:01]MH_I2C_Read... [03:17:01]Read from MH i2c: D1 [03:17:01]MH_I2C_Read... [03:17:01]Read from MH i2c: D1 01 00 [03:17:01]MH_I2C_Read... [03:17:01]Read from MH i2c: D1 01 00 5C 0E 00 3B [03:17:01]Write to MH i2c: 01 00 00 5D 0E 6B [03:17:01]Write i2c OK [03:17:01]MH_I2C_Read... [03:17:02]OFD Sender: No OFD packet to send [03:17:02]*** Cut start [03:17:02]*** Purtial cut [03:17:02]*** Stage 1: CUTSNS_PIN = 1 [03:17:04]Read from MH i2c: 01 [03:17:04]MH_I2C_Read... [03:17:04]*** Stop cut motor [03:17:04]*** Cut end [03:17:04]Read from MH i2c: 01 07 00 [03:17:04]MH_I2C_Read... [03:17:04]Read from MH i2c: 01 07 00 5D 0E 00 00 00 00 00 FF 0F 80 [03:17:04]process_action close_receipt done [03:17:04]requested_data is exist [03:17:04]produce_requested_data [03:17:04]requested_item fm.sn is exist - process it [03:17:04]wFMCommunicate request_size=4 [03:17:04]MH_SAM_APDU [03:17:04]CAPDU: 80 11 00 00 [03:17:04]Write to MH i2c: E2 08 00 5E 0E 80 11 00 00 00 00 00 00 E6 [03:17:04]Write i2c OK [03:17:04]MH_I2C_Read... [03:17:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:17:04]Read from MH i2c: E2 [03:17:04]MH_I2C_Read... [03:17:04]Read from MH i2c: E2 17 00 [03:17:04]MH_I2C_Read... [03:17:04]Read from MH i2c: E2 17 00 5E 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 44 [03:17:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [03:17:04]wFMCommunicate OK [03:17:04]requested_item fd.num is exist - process it [03:17:04]SAM_PROTO_GetFieldsCounters [03:17:04]wFMCommunicate request_size=4 [03:17:04]MH_SAM_APDU [03:17:04]CAPDU: 80 13 00 00 [03:17:04]Write to MH i2c: E2 08 00 5F 0E 80 13 00 00 00 00 00 00 E9 [03:17:04]Write i2c OK [03:17:04]MH_I2C_Read... [03:17:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:17:04]Read from MH i2c: E2 [03:17:04]MH_I2C_Read... [03:17:04]Read from MH i2c: E2 62 00 [03:17:04]MH_I2C_Read... [03:17:04]Read from MH i2c: E2 62 00 5F 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 1C E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 95 [03:17: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 1C E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:17:04]wFMCommunicate OK [03:17:04]SAM_PROTO_GetFieldsCounters done [03:17:04]requested_item shift.num is exist - process it [03:17:04]requested_item shift.opened is exist - process it [03:17:04]req_shift_opened [03:17:04]FM_GetShiftState [03:17:04]SAM_PROTO_GetShiftState [03:17:04]wFMCommunicate request_size=4 [03:17:04]MH_SAM_APDU [03:17:04]CAPDU: 80 13 01 00 [03:17:04]Write to MH i2c: E2 08 00 60 0E 80 13 01 00 00 00 00 00 EB [03:17:04]Write i2c OK [03:17:04]MH_I2C_Read... [03:17:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:17:04]Read from MH i2c: E2 [03:17:04]MH_I2C_Read... [03:17:04]Read from MH i2c: E2 0E 00 [03:17:04]MH_I2C_Read... [03:17:04]Read from MH i2c: E2 0E 00 60 0E 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 AD [03:17:04]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [03:17:04]wFMCommunicate OK [03:17:04]SAM_PROTO_GetShiftState done [03:17:04]FM_GetShiftState done [03:17:04]req_shift_opened done [03:17:04]requested_item shift.open_date is exist - process it [03:17:04]req_shift_open_date [03:17:04]req_shift_open_date done [03:17:04]produce_requested_data done [03:17:04]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123164,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [03:17:04]process_action_free close_receipt [03:17:04]json_value_free [03:17:04]json_value_free done [03:17:04]process_json_proto returns [03:17:04]Send response to host [03:17:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123164,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [03:17:04]free response buf [03:17:04]execute_script done [03:17:04]execute_script returns [03:17:04]free content buf [03:17:04]Sock 9.Close socket [03:17:04]Sock 9.Thread stoped [03:17:07]OFD Sender: No OFD packet to send [03:17:12]OFD Sender: No OFD packet to send [03:17:17]OFD Sender: No OFD packet to send [03:17:22]OFD Sender: No OFD packet to send [03:17:27]OFD Sender: No OFD packet to send [03:17:32]OFD Sender: No OFD packet to send [03:17:37]OFD Sender: No OFD packet to send [03:17:42]OFD Sender: No OFD packet to send [03:17:47]OFD Sender: No OFD packet to send [03:17:52]OFD Sender: No OFD packet to send [03:17:57]OFD Sender: No OFD packet to send [03:18:02]OFD Sender: No OFD packet to send [03:18:07]OFD Sender: No OFD packet to send [03:18:12]OFD Sender: No OFD packet to send [03:18:17]OFD Sender: No OFD packet to send [03:18:22]OFD Sender: No OFD packet to send [03:18:27]OFD Sender: No OFD packet to send [03:18:32]OFD Sender: No OFD packet to send [03:18:37]OFD Sender: No OFD packet to send [03:18:42]OFD Sender: No OFD packet to send [03:18:47]OFD Sender: No OFD packet to send [03:18:52]OFD Sender: No OFD packet to send [03:18:57]OFD Sender: No OFD packet to send [03:19:02]OFD Sender: No OFD packet to send [03:19:07]OFD Sender: No OFD packet to send [03:19:12]OFD Sender: No OFD packet to send [03:19:17]OFD Sender: No OFD packet to send [03:19:22]OFD Sender: No OFD packet to send [03:19:27]OFD Sender: No OFD packet to send [03:19:32]OFD Sender: No OFD packet to send [03:19:37]OFD Sender: No OFD packet to send [03:19:42]OFD Sender: No OFD packet to send [03:19:47]OFD Sender: No OFD packet to send [03:19:52]OFD Sender: No OFD packet to send [03:19:57]OFD Sender: No OFD packet to send [03:20:02]OFD Sender: No OFD packet to send [03:20:07]OFD Sender: No OFD packet to send [03:20:12]OFD Sender: No OFD packet to send [03:20:17]OFD Sender: No OFD packet to send [03:20:22]OFD Sender: No OFD packet to send [03:20:27]OFD Sender: No OFD packet to send [03:20:32]OFD Sender: No OFD packet to send [03:20:37]OFD Sender: No OFD packet to send [03:20:42]OFD Sender: No OFD packet to send [03:20:47]OFD Sender: No OFD packet to send [03:20:52]OFD Sender: No OFD packet to send [03:20:57]OFD Sender: No OFD packet to send [03:21:02]OFD Sender: No OFD packet to send [03:21:07]OFD Sender: No OFD packet to send [03:21:12]OFD Sender: No OFD packet to send [03:21:17]OFD Sender: No OFD packet to send [03:21:22]OFD Sender: No OFD packet to send [03:21:27]OFD Sender: No OFD packet to send [03:21:32]OFD Sender: No OFD packet to send [03:21:37]OFD Sender: No OFD packet to send [03:21:42]OFD Sender: No OFD packet to send [03:21:47]OFD Sender: No OFD packet to send [03:21:52]OFD Sender: No OFD packet to send [03:21:57]OFD Sender: No OFD packet to send [03:22:02]OFD Sender: No OFD packet to send [03:22:07]OFD Sender: No OFD packet to send [03:22:12]OFD Sender: No OFD packet to send [03:22:17]OFD Sender: No OFD packet to send [03:22:18]accept exits with 7 [03:22:18]New connection [03:22:18]New thread 3067395428 created [03:22:18]Thread 3067252068 joined [03:22:18]Waiting for new connection... [03:22:18] Sock 7.Parse request [03:22:18]Sock 7.Check first char [03:22:18]Sock 7.First char is OK [03:22:18]request: POST /json_proto HTTP/1.0 [03:22:18]Method: POST [03:22:18]URL: /json_proto [03:22:18]Method is POST - this is cgi request [03:22:18]url: /json_proto [03:22:18]query_string will be loaded in cgi processing [03:22:18]execute_cgi json_proto POST (null) [03:22:18]execute_cgi path=json_proto method=POST [03:22:18]POST find Content-Length [03:22:18]Host: 172.17.48.197:8080 [03:22:18]Content-Length: 806 [03:22:18]Content-Type: application/json [03:22:18] [03:22:18]POST finish read [03:22:18]Found Content-Length = 806 [03:22:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106083", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 7.200, "sum" : 500.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:22:18]execute_script... [03:22:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106083", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 7.200, "sum" : 500.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:22:18]POST & json_proto [03:22:18]process_json_proto [03:22:18]json parsed OK: [03:22:18]protocol is kg_v1.0 [03:22:18]action value=close_receipt [03:22:18]process_action close_receipt [03:22:18]cmd_close_receipt [03:22:18]MH_GetDate [03:22:18]Write to MH i2c: F0 00 00 61 0E 5E [03:22:18]Write i2c OK [03:22:18]MH_I2C_Read... [03:22:18]Read from MH i2c: F0 [03:22:18]MH_I2C_Read... [03:22:18]Read from MH i2c: F0 09 00 [03:22:18]MH_I2C_Read... [03:22:18]Read from MH i2c: F0 09 00 61 0E 00 EB EC E3 65 6C AF E3 65 E9 [03:22:18]GetLastDocTimeStamp 1709435820 [03:22:18]current date 1709436139 [03:22:18]FM_GetShiftState [03:22:18]SAM_PROTO_GetShiftState [03:22:18]wFMCommunicate request_size=4 [03:22:18]MH_SAM_APDU [03:22:18]CAPDU: 80 13 01 00 [03:22:18]Write to MH i2c: E2 08 00 62 0E 80 13 01 00 00 00 00 00 ED [03:22:18]Write i2c OK [03:22:18]MH_I2C_Read... [03:22:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:22:18]Read from MH i2c: E2 [03:22:18]MH_I2C_Read... [03:22:18]Read from MH i2c: E2 0E 00 [03:22:18]MH_I2C_Read... [03:22:18]Read from MH i2c: E2 0E 00 62 0E 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 AF [03:22:18]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [03:22:18]wFMCommunicate OK [03:22:18]SAM_PROTO_GetShiftState done [03:22:18]FM_GetShiftState done [03:22:18]opened in 1709425579 [03:22:18]opened+sec_in_day 1709511979 [03:22:18]quantity*price = 50040 [03:22:18]sum+1 = 50041 [03:22:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.40 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.40 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 22 03.03.2024 03:22 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874798 ФД: 123165 ФПД: 71136956488258 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T032219&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123165&fm=71136956488258&tin=02508201610067®Number=0000000000090573&sum=50040 [03:22:19]StoreToDocumentArchive [03:22:19]shift 323 fd 123165 [03:22:19]save to /storage/0323/doc_00123165 [03:22:19]save last doc name /storage/0323/doc_00123165 to /storage/kkm_last_doc_name [03:22:19]save OK [03:22:19]Clear old archive folders... [03:22:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:22:19]tlvbuf is 00DD1D40 [03:22:19]SAM_PROTO_ClearQueue [03:22:19]wFMCommunicate request_size=4 [03:22:19]MH_SAM_APDU [03:22:19]CAPDU: 80 09 00 00 [03:22:19]Write to MH i2c: E2 08 00 6F 0E 80 09 00 00 00 00 00 00 EF [03:22:19]Write i2c OK [03:22:19]MH_I2C_Read... [03:22:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:22:19]Read from MH i2c: E2 [03:22:19]MH_I2C_Read... [03:22:19]Read from MH i2c: E2 03 00 [03:22:19]MH_I2C_Read... [03:22:19]Read from MH i2c: E2 03 00 6F 0E 00 90 00 F1 [03:22:19]RAPDU: 90 00 [03:22:19]wFMCommunicate OK [03:22:19]SAM_PROTO_ClearQueue done [03:22:19]KKMCreateOFDPacket [03:22:19]OFDProtocolAddRootSTLVToBuf [03:22:19]FM_MakeSignedData [03:22:19]FM_MakeSignedData [03:22:19]SAM_PROTO_SignData [03:22:19]wFMCommunicate request_size=4 [03:22:19]MH_SAM_APDU [03:22:19]CAPDU: 80 0D 01 02 [03:22:19]Write to MH i2c: E2 08 00 70 0E 80 0D 01 02 00 00 00 00 F7 [03:22:19]Write i2c OK [03:22:19]MH_I2C_Read... [03:22:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:22:19]Read from MH i2c: E2 [03:22:19]MH_I2C_Read... [03:22:19]Read from MH i2c: E2 03 00 [03:22:19]MH_I2C_Read... [03:22:19]Read from MH i2c: E2 03 00 70 0E 00 90 00 F2 [03:22:19]RAPDU: 90 00 [03:22:19]wFMCommunicate OK [03:22:19]wFMCommunicate request_size=255 [03:22:19]MH_SAM_APDU [03:22:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 1C 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 78 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 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 78 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 EB EC E3 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 1D E1 01 00 35 04 06 00 40 [03:22:19]Write to MH i2c: E2 02 01 71 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 35 FF 03 08 00 03 20 1C 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 78 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 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 78 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 EB EC E3 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 1D E1 01 00 35 04 06 00 40 00 00 87 [03:22:19]Write i2c OK [03:22:19]MH_I2C_Read... [03:22:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:22:20]Read from MH i2c: E2 [03:22:20]MH_I2C_Read... [03:22:20]Read from MH i2c: E2 03 00 [03:22:20]MH_I2C_Read... [03:22:20]Read from MH i2c: E2 03 00 71 0E 00 90 00 F3 [03:22:20]RAPDU: 90 00 [03:22:20]wFMCommunicate OK [03:22:20]wFMCommunicate request_size=10 [03:22:20]MH_SAM_APDU [03:22:20]CAPDU: 80 0D 02 02 05 B2 DD 05 9A 42 [03:22:20]Write to MH i2c: E2 0D 00 72 0E 80 0D 02 02 05 00 B2 DD 05 9A 42 00 00 74 [03:22:20]Write i2c OK [03:22:20]MH_I2C_Read... [03:22:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:22:20]Read from MH i2c: E2 [03:22:20]MH_I2C_Read... [03:22:20]Read from MH i2c: E2 03 00 [03:22:20]MH_I2C_Read... [03:22:20]Read from MH i2c: E2 03 00 72 0E 00 90 00 F4 [03:22:20]RAPDU: 90 00 [03:22:20]wFMCommunicate OK [03:22:20]wFMCommunicate request_size=4 [03:22:20]MH_SAM_APDU [03:22:20]CAPDU: 80 0D 03 02 [03:22:20]Write to MH i2c: E2 08 00 73 0E 80 0D 03 02 00 00 00 00 FC [03:22:20]Write i2c OK [03:22:20]MH_I2C_Read... [03:22:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:22:20]Read from MH i2c: E2 [03:22:20]MH_I2C_Read... [03:22:20]Read from MH i2c: E2 0B 00 [03:22:20]MH_I2C_Read... [03:22:20]Read from MH i2c: E2 0B 00 73 0E 00 B2 92 35 75 09 9E 01 1E 90 00 B1 [03:22:20]RAPDU: B2 92 35 75 09 9E 01 1E 90 00 [03:22:20]wFMCommunicate OK [03:22:20]SAM_PROTO_SignData done [03:22:20]FM_MakeSignedData done [03:22:20]CreateOFDProtocolMessage [03:22:20]wFMCommunicate request_size=4 [03:22:20]MH_SAM_APDU [03:22:20]CAPDU: 80 11 00 00 [03:22:20]Write to MH i2c: E2 08 00 74 0E 80 11 00 00 00 00 00 00 FC [03:22:20]Write i2c OK [03:22:20]MH_I2C_Read... [03:22:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:22:20]Read from MH i2c: E2 [03:22:20]MH_I2C_Read... [03:22:20]Read from MH i2c: E2 17 00 [03:22:20]MH_I2C_Read... [03:22:20]Read from MH i2c: E2 17 00 74 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 5A [03:22:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [03:22:20]wFMCommunicate OK [03:22:20]CreateOFDProtocolMessage done [03:22:20]OFDSenderStorePacket 123165 [03:22:20]StoreOFDPacket docnum=123165 [03:22:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 9B 48 07 01 33 A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 1C 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 78 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 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 78 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 EB EC E3 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 1D E1 01 00 35 04 06 00 40 B2 DD 05 9A 42 B2 92 35 75 09 9E 01 1E [03:22:20]CheckFolder [03:22:20]dirname=/storage/ofd_packets [03:22:20]CheckFolder done [03:22:20]ProducePacketName [03:22:20]name=ofd_packets/00123165 [03:22:20]NVStorageSaveData ofd_packets/00123165 [03:22:20]File name is /storage/ofd_packets/00123165 [03:22:20]Write 301 bytes [03:22:20]NVStorageSaveData done [03:22:20]OFDSenderStorePacket done [03:22:20]KKMCreateOFDPacket done [03:22:20]NVStorageSaveData kkm_last_timestamp [03:22:20]File name is /storage/kkm_last_timestamp [03:22:20]Write 4 bytes [03:22:20]NVStorageSaveData done [03:22:20]ExternCall_PrintAddStr [03:22:20]wPrintStart [03:22:20]Write to MH i2c: 01 00 00 75 0E 83 [03:22:20]Write i2c OK [03:22:20]MH_I2C_Read... [03:22:20]Read from MH i2c: 01 [03:22:20]MH_I2C_Read... [03:22:20]Read from MH i2c: 01 07 00 [03:22:20]MH_I2C_Read... [03:22:20]Read from MH i2c: 01 07 00 75 0E 00 00 00 00 00 FF 0F 98 [03:22:20]RasterBufferAndPrint [03:22:20]line Счет N : (1)1106083 [03:22:20]line ИНН: 02508201610067 [03:22:20]line Контрольно-Кассовый Чек [03:22:20]line ПРОДАЖА [03:22:20]line ТРК (МРК, ГНК) : 53 [03:22:20]line Товар: 2710124500 [03:22:20]line Аи-95-К-5 [03:22:20]line 7.200 * 69.50 [03:22:20]line = 500.40 [03:22:20]line НДС 12% НСП 1% [03:22:20]line > о реализуемом товаре [03:22:20]line ИТОГО: 500.40 [03:22:20]line НСП 1% : 4.43 [03:22:20]line НДС 12% : 53.14 [03:22:20]line Наличными: 0.00 [03:22:20]line Безнал.: 500.40 [03:22:20]line Место: АЗС № 25 "Партнер Нефть" [03:22:20]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [03:22:20]line СНО: Общий режим [03:22:20]line Чек 22 03.03.2024 03:22 [03:22:20]line Смена: 323 ФФД: 1.0 [03:22:20]line ЗНМ: 0300000019 [03:22:20]line РНМ: 0000000000090573 [03:22:20]line Версия ККМ: 001 [03:22:20]line Платежная система: О! деньги [03:22:20]line ФМ: 0000000000874798 [03:22:20]line ФД: 123165 [03:22:20]line ФПД: 71136956488258 [03:22:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T032219&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123165&fm=71136956488258&tin=02508201610067®Number=0000000000090573&sum=50040 [03:22:20]OFD Sender: Processing packet 123165 [packets to send 112, broken 111] [03:22:20]ProducePacketName [03:22:20]name=ofd_packets/00123165 [03:22:20]OFD Sender: To server: pG, [03:22:20]CommunicateWithHost lk.salyk.kg:30040 [03:22:20]ConnectInit lk.salyk.kg [03:22:20]written 0, free lines is 4095 [03:22:20]Connected sock=10 [03:22: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 37 39 38 0F 01 00 00 9B 48 07 01 33 A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 1C 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 78 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 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 78 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 EB EC E3 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 1D E1 01 00 35 04 06 00 40 B2 DD 05 9A 42 B2 92 35 75 09 9E 01 1E [03:22:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 CC F2 47 00 6C 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 37 39 38 10 04 04 00 1D E1 01 00 F4 03 04 00 18 99 E3 65 B6 04 01 00 00 7E 90 5A AC 8F 43 BA D8 [03:22:20]CommunicateWithHost err = 0 [03:22:20]CheckOFDResponse [03:22:20]1017 (14) - 77093643461234 [03:22:20]1041 (16) - 0000000000874798 [03:22:20]1040 (4) - 123165 [03:22:20]1012 (4) - 02.03.2024 21:24 [03:22:20]1206 (1) - 0 [03:22:20]OFD Sender: Remove packet 123165 [03:22:20]ProducePacketName [03:22:20]name=ofd_packets/00123165 [03:22:20]NVStorageDeleteData [03:22:21]Write to MH i2c: 01 00 00 9F 0E AD [03:22:21]Write i2c OK [03:22:21]MH_I2C_Read... [03:22:21]Read from MH i2c: 01 [03:22:21]MH_I2C_Read... [03:22:21]Read from MH i2c: 01 07 00 [03:22:21]MH_I2C_Read... [03:22:21]Read from MH i2c: 01 07 00 9F 0E 00 00 00 00 00 01 0D C2 [03:22:21]RasterBufferAndPrint [03:22:21]line [03:22:21]line [03:22:21]line [03:22:21]line [03:22:21]line [03:22:21]written 0, free lines is 3335 [03:22:21]MH_Cut [03:22:21]Write to MH i2c: D1 01 00 A6 0E 01 86 [03:22:21]Write i2c OK [03:22:21]MH_I2C_Read... [03:22:21]Read from MH i2c: D1 [03:22:21]MH_I2C_Read... [03:22:21]Read from MH i2c: D1 01 00 [03:22:21]MH_I2C_Read... [03:22:21]Read from MH i2c: D1 01 00 A6 0E 00 85 [03:22:21]Write to MH i2c: 01 00 00 A7 0E B5 [03:22:21]Write i2c OK [03:22:21]MH_I2C_Read... [03:22:21]OFD Sender: No OFD packet to send [03:22:21]*** Cut start [03:22:21]*** Purtial cut [03:22:21]*** Stage 1: CUTSNS_PIN = 1 [03:22:23]Read from MH i2c: 01 [03:22:23]MH_I2C_Read... [03:22:23]*** Stop cut motor [03:22:23]*** Cut end [03:22:23]Read from MH i2c: 01 07 00 [03:22:23]MH_I2C_Read... [03:22:23]Read from MH i2c: 01 07 00 A7 0E 00 00 00 00 00 FF 0F CA [03:22:23]process_action close_receipt done [03:22:23]requested_data is exist [03:22:23]produce_requested_data [03:22:23]requested_item fm.sn is exist - process it [03:22:23]wFMCommunicate request_size=4 [03:22:23]MH_SAM_APDU [03:22:23]CAPDU: 80 11 00 00 [03:22:23]Write to MH i2c: E2 08 00 A8 0E 80 11 00 00 00 00 00 00 30 [03:22:23]Write i2c OK [03:22:23]MH_I2C_Read... [03:22:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:22:23]Read from MH i2c: E2 [03:22:23]MH_I2C_Read... [03:22:23]Read from MH i2c: E2 17 00 [03:22:23]MH_I2C_Read... [03:22:23]Read from MH i2c: E2 17 00 A8 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 8E [03:22:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [03:22:23]wFMCommunicate OK [03:22:23]requested_item fd.num is exist - process it [03:22:23]SAM_PROTO_GetFieldsCounters [03:22:23]wFMCommunicate request_size=4 [03:22:23]MH_SAM_APDU [03:22:23]CAPDU: 80 13 00 00 [03:22:23]Write to MH i2c: E2 08 00 A9 0E 80 13 00 00 00 00 00 00 33 [03:22:23]Write i2c OK [03:22:23]MH_I2C_Read... [03:22:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:22:24]Read from MH i2c: E2 [03:22:24]MH_I2C_Read... [03:22:24]Read from MH i2c: E2 62 00 [03:22:24]MH_I2C_Read... [03:22:24]Read from MH i2c: E2 62 00 A9 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 1D E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 E3 [03:22: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 1D E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:22:24]wFMCommunicate OK [03:22:24]SAM_PROTO_GetFieldsCounters done [03:22:24]requested_item shift.num is exist - process it [03:22:24]requested_item shift.opened is exist - process it [03:22:24]req_shift_opened [03:22:24]FM_GetShiftState [03:22:24]SAM_PROTO_GetShiftState [03:22:24]wFMCommunicate request_size=4 [03:22:24]MH_SAM_APDU [03:22:24]CAPDU: 80 13 01 00 [03:22:24]Write to MH i2c: E2 08 00 AA 0E 80 13 01 00 00 00 00 00 35 [03:22:24]Write i2c OK [03:22:24]MH_I2C_Read... [03:22:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:22:24]Read from MH i2c: E2 [03:22:24]MH_I2C_Read... [03:22:24]Read from MH i2c: E2 0E 00 [03:22:24]MH_I2C_Read... [03:22:24]Read from MH i2c: E2 0E 00 AA 0E 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 F7 [03:22:24]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [03:22:24]wFMCommunicate OK [03:22:24]SAM_PROTO_GetShiftState done [03:22:24]FM_GetShiftState done [03:22:24]req_shift_opened done [03:22:24]requested_item shift.open_date is exist - process it [03:22:24]req_shift_open_date [03:22:24]req_shift_open_date done [03:22:24]produce_requested_data done [03:22:24]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123165,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [03:22:24]process_action_free close_receipt [03:22:24]json_value_free [03:22:24]json_value_free done [03:22:24]process_json_proto returns [03:22:24]Send response to host [03:22:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123165,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [03:22:24]free response buf [03:22:24]execute_script done [03:22:24]execute_script returns [03:22:24]free content buf [03:22:24]Sock 7.Close socket [03:22:24]Sock 7.Thread stoped [03:22:26]OFD Sender: No OFD packet to send [03:22:31]OFD Sender: No OFD packet to send [03:22:36]OFD Sender: No OFD packet to send [03:22:41]OFD Sender: No OFD packet to send [03:22:46]OFD Sender: No OFD packet to send [03:22:51]OFD Sender: No OFD packet to send [03:22:56]OFD Sender: No OFD packet to send [03:23:01]OFD Sender: No OFD packet to send [03:23:06]OFD Sender: No OFD packet to send [03:23:11]OFD Sender: No OFD packet to send [03:23:16]OFD Sender: No OFD packet to send [03:23:21]OFD Sender: No OFD packet to send [03:23:26]OFD Sender: No OFD packet to send [03:23:31]OFD Sender: No OFD packet to send [03:23:36]OFD Sender: No OFD packet to send [03:23:41]OFD Sender: No OFD packet to send [03:23:46]OFD Sender: No OFD packet to send [03:23:51]OFD Sender: No OFD packet to send [03:23:56]OFD Sender: No OFD packet to send [03:24:01]OFD Sender: No OFD packet to send [03:24:06]OFD Sender: No OFD packet to send [03:24:11]OFD Sender: No OFD packet to send [03:24:16]OFD Sender: No OFD packet to send [03:24:21]OFD Sender: No OFD packet to send [03:24:26]OFD Sender: No OFD packet to send [03:24:31]OFD Sender: No OFD packet to send [03:24:36]OFD Sender: No OFD packet to send [03:24:41]OFD Sender: No OFD packet to send [03:24:46]OFD Sender: No OFD packet to send [03:24:51]OFD Sender: No OFD packet to send [03:24:56]OFD Sender: No OFD packet to send [03:25:01]OFD Sender: No OFD packet to send [03:25:06]OFD Sender: No OFD packet to send [03:25:11]OFD Sender: No OFD packet to send [03:25:16]OFD Sender: No OFD packet to send [03:25:21]OFD Sender: No OFD packet to send [03:25:26]OFD Sender: No OFD packet to send [03:25:31]OFD Sender: No OFD packet to send [03:25:36]OFD Sender: No OFD packet to send [03:25:41]OFD Sender: No OFD packet to send [03:25:46]OFD Sender: No OFD packet to send [03:25:51]OFD Sender: No OFD packet to send [03:25:56]OFD Sender: No OFD packet to send [03:26:01]OFD Sender: No OFD packet to send [03:26:06]OFD Sender: No OFD packet to send [03:26:11]OFD Sender: No OFD packet to send [03:26:16]OFD Sender: No OFD packet to send [03:26:21]OFD Sender: No OFD packet to send [03:26:26]OFD Sender: No OFD packet to send [03:26:31]OFD Sender: No OFD packet to send [03:26:36]OFD Sender: No OFD packet to send [03:26:41]OFD Sender: No OFD packet to send [03:26:46]OFD Sender: No OFD packet to send [03:26:51]OFD Sender: No OFD packet to send [03:26:56]OFD Sender: No OFD packet to send [03:27:01]OFD Sender: No OFD packet to send [03:27:06]OFD Sender: No OFD packet to send [03:27:11]OFD Sender: No OFD packet to send [03:27:16]OFD Sender: No OFD packet to send [03:27:21]OFD Sender: No OFD packet to send [03:27:26]OFD Sender: No OFD packet to send [03:27:31]OFD Sender: No OFD packet to send [03:27:36]OFD Sender: No OFD packet to send [03:27:41]OFD Sender: No OFD packet to send [03:27:46]OFD Sender: No OFD packet to send [03:27:51]OFD Sender: No OFD packet to send [03:27:56]OFD Sender: No OFD packet to send [03:28:01]OFD Sender: No OFD packet to send [03:28:06]OFD Sender: No OFD packet to send [03:28:11]OFD Sender: No OFD packet to send [03:28:16]OFD Sender: No OFD packet to send [03:28:21]OFD Sender: No OFD packet to send [03:28:26]OFD Sender: No OFD packet to send [03:28:31]OFD Sender: No OFD packet to send [03:28:36]OFD Sender: No OFD packet to send [03:28:41]OFD Sender: No OFD packet to send [03:28:46]OFD Sender: No OFD packet to send [03:28:51]OFD Sender: No OFD packet to send [03:28:56]OFD Sender: No OFD packet to send [03:29:01]OFD Sender: No OFD packet to send [03:29:06]OFD Sender: No OFD packet to send [03:29:11]OFD Sender: No OFD packet to send [03:29:16]OFD Sender: No OFD packet to send [03:29:21]OFD Sender: No OFD packet to send [03:29:26]OFD Sender: No OFD packet to send [03:29:31]OFD Sender: No OFD packet to send [03:29:36]OFD Sender: No OFD packet to send [03:29:41]OFD Sender: No OFD packet to send [03:29:46]OFD Sender: No OFD packet to send [03:29:51]OFD Sender: No OFD packet to send [03:29:56]OFD Sender: No OFD packet to send [03:30:01]OFD Sender: No OFD packet to send [03:30:06]OFD Sender: No OFD packet to send [03:30:11]OFD Sender: No OFD packet to send [03:30:16]OFD Sender: No OFD packet to send [03:30:21]OFD Sender: No OFD packet to send [03:30:26]OFD Sender: No OFD packet to send [03:30:31]OFD Sender: No OFD packet to send [03:30:36]OFD Sender: No OFD packet to send [03:30:41]OFD Sender: No OFD packet to send [03:30:46]OFD Sender: No OFD packet to send [03:30:51]OFD Sender: No OFD packet to send [03:30:56]OFD Sender: No OFD packet to send [03:31:01]OFD Sender: No OFD packet to send [03:31:07]OFD Sender: No OFD packet to send [03:31:12]OFD Sender: No OFD packet to send [03:31:17]OFD Sender: No OFD packet to send [03:31:22]OFD Sender: No OFD packet to send [03:31:27]OFD Sender: No OFD packet to send [03:31:32]OFD Sender: No OFD packet to send [03:31:37]OFD Sender: No OFD packet to send [03:31:42]OFD Sender: No OFD packet to send [03:31:47]OFD Sender: No OFD packet to send [03:31:52]OFD Sender: No OFD packet to send [03:31:57]OFD Sender: No OFD packet to send [03:32:02]OFD Sender: No OFD packet to send [03:32:07]OFD Sender: No OFD packet to send [03:32:12]OFD Sender: No OFD packet to send [03:32:17]OFD Sender: No OFD packet to send [03:32:22]OFD Sender: No OFD packet to send [03:32:27]OFD Sender: No OFD packet to send [03:32:32]OFD Sender: No OFD packet to send [03:32:35]int [03:32:35]Write to MH i2c: 01 00 00 AB 0E B9 [03:32:35]*** FLAG_PRN_KEY set [03:32:35]Write i2c OK [03:32:35]MH_I2C_Read... [03:32:35]Read from MH i2c: 01 [03:32:35]MH_I2C_Read... [03:32:35]Read from MH i2c: 01 07 00 [03:32:35]MH_I2C_Read... [03:32:35]Read from MH i2c: 01 07 00 AB 0E 00 08 00 00 00 FF 0F D6 [03:32:35]state=0 [03:32:35]Key pressed [03:32:35]Feed [03:32:35]Write to MH i2c: D8 00 00 AC 0E 91 [03:32:35]Write i2c OK [03:32:35]MH_I2C_Read... [03:32:35]Read from MH i2c: D8 [03:32:35]MH_I2C_Read... [03:32:35]Read from MH i2c: D8 01 00 [03:32:35]MH_I2C_Read... [03:32:35]Read from MH i2c: D8 01 00 AC 0E 00 92 [03:32:35]int [03:32:35]Write to MH i2c: 01 00 00 AD 0E BB [03:32:35]Write i2c OK [03:32:35]MH_I2C_Read... [03:32:35]Read from MH i2c: 01 [03:32:35]MH_I2C_Read... [03:32:35]Read from MH i2c: 01 07 00 [03:32:35]MH_I2C_Read... [03:32:35]Read from MH i2c: 01 07 00 AD 0E 00 48 00 00 00 3C 00 46 [03:32:35]state=2 [03:32:35]Key pressed [03:32:35]int [03:32:35]Write to MH i2c: 01 00 00 AE 0E BC [03:32:35]*** FLAG_PRN_KEY reset [03:32:35]Write i2c OK [03:32:35]MH_I2C_Read... [03:32:35]Read from MH i2c: 01 [03:32:35]MH_I2C_Read... [03:32:35]Read from MH i2c: 01 07 00 [03:32:35]MH_I2C_Read... [03:32:35]Read from MH i2c: 01 07 00 AE 0E 00 00 00 00 00 F6 0F C8 [03:32:35]state=2 [03:32:35]Stop feed [03:32:37]OFD Sender: No OFD packet to send [03:32:42]OFD Sender: No OFD packet to send [03:32:47]OFD Sender: No OFD packet to send [03:32:52]OFD Sender: No OFD packet to send [03:32:57]OFD Sender: No OFD packet to send [03:33:02]OFD Sender: No OFD packet to send [03:33:07]OFD Sender: No OFD packet to send [03:33:12]OFD Sender: No OFD packet to send [03:33:17]OFD Sender: No OFD packet to send [03:33:22]OFD Sender: No OFD packet to send [03:33:27]OFD Sender: No OFD packet to send [03:33:32]OFD Sender: No OFD packet to send [03:33:37]OFD Sender: No OFD packet to send [03:33:42]OFD Sender: No OFD packet to send [03:33:47]OFD Sender: No OFD packet to send [03:33:51]accept exits with 9 [03:33:51]New connection [03:33:51]New thread 3067252068 created [03:33:51]Thread 3067395428 joined [03:33:51]Waiting for new connection... [03:33:51] Sock 9.Parse request [03:33:51]Sock 9.Check first char [03:33:51]Sock 9.First char is OK [03:33:51]request: POST /json_proto HTTP/1.0 [03:33:51]Method: POST [03:33:51]URL: /json_proto [03:33:51]Method is POST - this is cgi request [03:33:51]url: /json_proto [03:33:51]query_string will be loaded in cgi processing [03:33:51]execute_cgi json_proto POST (null) [03:33:51]execute_cgi path=json_proto method=POST [03:33:51]POST find Content-Length [03:33:51]Host: 172.17.48.197:8080 [03:33:51]Content-Length: 806 [03:33:51]Content-Type: application/json [03:33:51] [03:33:51]POST finish read [03:33:51]Found Content-Length = 806 [03:33:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106084", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 9.370, "sum" : 580.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 580.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:33:51]execute_script... [03:33: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)1106084", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 9.370, "sum" : 580.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 580.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:33:51]POST & json_proto [03:33:51]process_json_proto [03:33:51]json parsed OK: [03:33:51]protocol is kg_v1.0 [03:33:51]action value=close_receipt [03:33:51]process_action close_receipt [03:33:51]cmd_close_receipt [03:33:51]MH_GetDate [03:33:51]Write to MH i2c: F0 00 00 AF 0E AC [03:33:51]Write i2c OK [03:33:51]MH_I2C_Read... [03:33:51]Read from MH i2c: F0 [03:33:51]MH_I2C_Read... [03:33:51]Read from MH i2c: F0 09 00 [03:33:51]MH_I2C_Read... [03:33:51]Read from MH i2c: F0 09 00 AF 0E 00 A0 EF E3 65 6C AF E3 65 EF [03:33:51]GetLastDocTimeStamp 1709436139 [03:33:51]current date 1709436832 [03:33:51]FM_GetShiftState [03:33:51]SAM_PROTO_GetShiftState [03:33:51]wFMCommunicate request_size=4 [03:33:51]MH_SAM_APDU [03:33:51]CAPDU: 80 13 01 00 [03:33:51]Write to MH i2c: E2 08 00 B0 0E 80 13 01 00 00 00 00 00 3B [03:33:51]Write i2c OK [03:33:51]MH_I2C_Read... [03:33:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:33:51]Read from MH i2c: E2 [03:33:51]MH_I2C_Read... [03:33:51]Read from MH i2c: E2 0E 00 [03:33:51]MH_I2C_Read... [03:33:51]Read from MH i2c: E2 0E 00 B0 0E 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 FD [03:33:51]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [03:33:51]wFMCommunicate OK [03:33:51]SAM_PROTO_GetShiftState done [03:33:51]FM_GetShiftState done [03:33:51]opened in 1709425579 [03:33:51]opened+sec_in_day 1709511979 [03:33:51]quantity*price = 58000 [03:33:51]sum+1 = 58001 [03:33:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 580.00 НСП 1% : 5.13 НДС 12% : 61.59 Наличными: 0.00 Безнал.: 580.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 23 03.03.2024 03:33 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874798 ФД: 123166 ФПД: 78551863090643 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T033352&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123166&fm=78551863090643&tin=02508201610067®Number=0000000000090573&sum=58000 [03:33:52]StoreToDocumentArchive [03:33:52]shift 323 fd 123166 [03:33:52]save to /storage/0323/doc_00123166 [03:33:52]save last doc name /storage/0323/doc_00123166 to /storage/kkm_last_doc_name [03:33:52]save OK [03:33:52]Clear old archive folders... [03:33:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:33:52]tlvbuf is 00DB2350 [03:33:52]SAM_PROTO_ClearQueue [03:33:52]wFMCommunicate request_size=4 [03:33:52]MH_SAM_APDU [03:33:52]CAPDU: 80 09 00 00 [03:33:52]Write to MH i2c: E2 08 00 BD 0E 80 09 00 00 00 00 00 00 3D [03:33:52]Write i2c OK [03:33:52]MH_I2C_Read... [03:33:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:33:52]Read from MH i2c: E2 [03:33:52]MH_I2C_Read... [03:33:52]Read from MH i2c: E2 03 00 [03:33:52]MH_I2C_Read... [03:33:52]Read from MH i2c: E2 03 00 BD 0E 00 90 00 3F [03:33:52]RAPDU: 90 00 [03:33:52]wFMCommunicate OK [03:33:52]SAM_PROTO_ClearQueue done [03:33:52]KKMCreateOFDPacket [03:33:52]OFDProtocolAddRootSTLVToBuf [03:33:52]FM_MakeSignedData [03:33:52]FM_MakeSignedData [03:33:52]SAM_PROTO_SignData [03:33:52]wFMCommunicate request_size=4 [03:33:52]MH_SAM_APDU [03:33:52]CAPDU: 80 0D 01 02 [03:33:52]Write to MH i2c: E2 08 00 BE 0E 80 0D 01 02 00 00 00 00 45 [03:33:52]Write i2c OK [03:33:52]MH_I2C_Read... [03:33:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:33:52]Read from MH i2c: E2 [03:33:52]MH_I2C_Read... [03:33:52]Read from MH i2c: E2 03 00 [03:33:52]MH_I2C_Read... [03:33:52]Read from MH i2c: E2 03 00 BE 0E 00 90 00 40 [03:33:52]RAPDU: 90 00 [03:33:52]wFMCommunicate OK [03:33:52]wFMCommunicate request_size=255 [03:33:52]MH_SAM_APDU [03:33: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 35 FF 03 08 00 03 9A 24 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 90 E2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 E2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 E2 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 A0 EF E3 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 1E E1 01 00 35 04 06 00 47 [03:33:52]Write to MH i2c: E2 02 01 BF 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 35 FF 03 08 00 03 9A 24 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 90 E2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 E2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 E2 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 A0 EF E3 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 1E E1 01 00 35 04 06 00 47 00 00 56 [03:33:52]Write i2c OK [03:33:52]MH_I2C_Read... [03:33:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:33:52]Read from MH i2c: E2 [03:33:52]MH_I2C_Read... [03:33:52]Read from MH i2c: E2 03 00 [03:33:52]MH_I2C_Read... [03:33:52]Read from MH i2c: E2 03 00 BF 0E 00 90 00 41 [03:33:52]RAPDU: 90 00 [03:33:52]wFMCommunicate OK [03:33:52]wFMCommunicate request_size=10 [03:33:52]MH_SAM_APDU [03:33:52]CAPDU: 80 0D 02 02 05 71 47 E5 5D D3 [03:33:52]Write to MH i2c: E2 0D 00 C0 0E 80 0D 02 02 05 00 71 47 E5 5D D3 00 00 1F [03:33:52]Write i2c OK [03:33:52]MH_I2C_Read... [03:33:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:33:52]Read from MH i2c: E2 [03:33:52]MH_I2C_Read... [03:33:52]Read from MH i2c: E2 03 00 [03:33:52]MH_I2C_Read... [03:33:52]Read from MH i2c: E2 03 00 C0 0E 00 90 00 42 [03:33:52]RAPDU: 90 00 [03:33:52]wFMCommunicate OK [03:33:52]wFMCommunicate request_size=4 [03:33:52]MH_SAM_APDU [03:33:52]CAPDU: 80 0D 03 02 [03:33:52]Write to MH i2c: E2 08 00 C1 0E 80 0D 03 02 00 00 00 00 4A [03:33:52]Write i2c OK [03:33:52]MH_I2C_Read... [03:33:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:33:52]Read from MH i2c: E2 [03:33:52]MH_I2C_Read... [03:33:52]Read from MH i2c: E2 0B 00 [03:33:52]MH_I2C_Read... [03:33:52]Read from MH i2c: E2 0B 00 C1 0E 00 94 17 17 37 AA 17 30 37 90 00 6C [03:33:52]RAPDU: 94 17 17 37 AA 17 30 37 90 00 [03:33:52]wFMCommunicate OK [03:33:52]SAM_PROTO_SignData done [03:33:52]FM_MakeSignedData done [03:33:52]CreateOFDProtocolMessage [03:33:52]wFMCommunicate request_size=4 [03:33:52]MH_SAM_APDU [03:33:52]CAPDU: 80 11 00 00 [03:33:52]Write to MH i2c: E2 08 00 C2 0E 80 11 00 00 00 00 00 00 4A [03:33:52]Write i2c OK [03:33:52]MH_I2C_Read... [03:33:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:33:52]Read from MH i2c: E2 [03:33:52]MH_I2C_Read... [03:33:52]Read from MH i2c: E2 17 00 [03:33:52]MH_I2C_Read... [03:33:52]Read from MH i2c: E2 17 00 C2 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 A8 [03:33:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [03:33:52]wFMCommunicate OK [03:33:52]CreateOFDProtocolMessage done [03:33:52]OFDSenderStorePacket 123166 [03:33:52]StoreOFDPacket docnum=123166 [03:33:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 3D F6 07 01 D9 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9A 24 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 90 E2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 E2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 E2 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 A0 EF E3 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 1E E1 01 00 35 04 06 00 47 71 47 E5 5D D3 94 17 17 37 AA 17 30 37 [03:33:52]CheckFolder [03:33:52]dirname=/storage/ofd_packets [03:33:52]CheckFolder done [03:33:52]ProducePacketName [03:33:52]name=ofd_packets/00123166 [03:33:52]NVStorageSaveData ofd_packets/00123166 [03:33:52]File name is /storage/ofd_packets/00123166 [03:33:52]Write 301 bytes [03:33:52]NVStorageSaveData done [03:33:52]OFDSenderStorePacket done [03:33:52]KKMCreateOFDPacket done [03:33:52]NVStorageSaveData kkm_last_timestamp [03:33:52]File name is /storage/kkm_last_timestamp [03:33:52]Write 4 bytes [03:33:52]NVStorageSaveData done [03:33:52]ExternCall_PrintAddStr [03:33:52]wPrintStart [03:33:52]Write to MH i2c: 01 00 00 C3 0E D1 [03:33:52]Write i2c OK [03:33:52]MH_I2C_Read... [03:33:52]Read from MH i2c: 01 [03:33:52]MH_I2C_Read... [03:33:52]Read from MH i2c: 01 07 00 [03:33:52]MH_I2C_Read... [03:33:52]Read from MH i2c: 01 07 00 C3 0E 00 00 00 00 00 FF 0F E6 [03:33:52]RasterBufferAndPrint [03:33:52]line Счет N : (1)1106084 [03:33:52]line ИНН: 02508201610067 [03:33:52]line Контрольно-Кассовый Чек [03:33:52]line ПРОДАЖА [03:33:52]line ТРК (МРК, ГНК) : 11 [03:33:52]line Товар: 2710124130 [03:33:52]line Аи-92-К-5 [03:33:52]line 9.370 * 61.90 [03:33:52]line = 580.00 [03:33:52]line НДС 12% НСП 1% [03:33:52]line > о реализуемом товаре [03:33:52]line ИТОГО: 580.00 [03:33:52]line НСП 1% : 5.13 [03:33:52]line НДС 12% : 61.59 [03:33:52]line Наличными: 0.00 [03:33:52]line Безнал.: 580.00 [03:33:52]line Место: АЗС № 25 "Партнер Нефть" [03:33:52]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [03:33:52]line СНО: Общий режим [03:33:52]line Чек 23 03.03.2024 03:33 [03:33:52]line Смена: 323 ФФД: 1.0 [03:33:52]line ЗНМ: 0300000019 [03:33:52]line РНМ: 0000000000090573 [03:33:52]line Версия ККМ: 001 [03:33:52]line Платежная система: О! деньги [03:33:52]line ФМ: 0000000000874798 [03:33:52]line ФД: 123166 [03:33:52]line ФПД: 78551863090643 [03:33:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T033352&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123166&fm=78551863090643&tin=02508201610067®Number=0000000000090573&sum=58000 [03:33:53]OFD Sender: Processing packet 123166 [packets to send 112, broken 111] [03:33:53]ProducePacketName [03:33:53]name=ofd_packets/00123166 [03:33:53]OFD Sender: To server: pG, [03:33:53]CommunicateWithHost lk.salyk.kg:30040 [03:33:53]ConnectInit lk.salyk.kg [03:33:53]written 0, free lines is 4095 [03:33:53]Connected sock=10 [03:33: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 37 39 38 0F 01 00 00 3D F6 07 01 D9 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9A 24 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 90 E2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 E2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 E2 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 A0 EF E3 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 1E E1 01 00 35 04 06 00 47 71 47 E5 5D D3 94 17 17 37 AA 17 30 37 [03:33:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 82 83 47 00 81 72 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 1E E1 01 00 F4 03 04 00 CD 9B E3 65 B6 04 01 00 00 F5 6E 1E DD 4B C3 A0 05 [03:33:53]CommunicateWithHost err = 0 [03:33:53]CheckOFDResponse [03:33:53]1017 (14) - 77093643461234 [03:33:53]1041 (16) - 0000000000874798 [03:33:53]1040 (4) - 123166 [03:33:53]1012 (4) - 02.03.2024 21:36 [03:33:53]1206 (1) - 0 [03:33:53]OFD Sender: Remove packet 123166 [03:33:53]ProducePacketName [03:33:53]name=ofd_packets/00123166 [03:33:53]NVStorageDeleteData [03:33:53]Write to MH i2c: 01 00 00 ED 0E FB [03:33:53]Write i2c OK [03:33:53]MH_I2C_Read... [03:33:53]Read from MH i2c: 01 [03:33:53]MH_I2C_Read... [03:33:53]Read from MH i2c: 01 07 00 [03:33:53]MH_I2C_Read... [03:33:53]Read from MH i2c: 01 07 00 ED 0E 00 00 00 00 00 FC 0C 0A [03:33:53]RasterBufferAndPrint [03:33:53]line [03:33:53]line [03:33:53]line [03:33:53]line [03:33:53]line [03:33:53]written 0, free lines is 3330 [03:33:53]MH_Cut [03:33:53]Write to MH i2c: D1 01 00 F4 0E 01 D4 [03:33:53]Write i2c OK [03:33:53]MH_I2C_Read... [03:33:53]Read from MH i2c: D1 [03:33:53]MH_I2C_Read... [03:33:53]Read from MH i2c: D1 01 00 [03:33:53]MH_I2C_Read... [03:33:53]Read from MH i2c: D1 01 00 F4 0E 00 D3 [03:33:53]Write to MH i2c: 01 00 00 F5 0E 03 [03:33:53]Write i2c OK [03:33:53]MH_I2C_Read... [03:33:53]OFD Sender: No OFD packet to send [03:33:54]*** Cut start [03:33:54]*** Purtial cut [03:33:54]*** Stage 1: CUTSNS_PIN = 1 [03:33:56]Read from MH i2c: 01 [03:33:56]MH_I2C_Read... [03:33:56]*** Stop cut motor [03:33:56]*** Cut end [03:33:56]Read from MH i2c: 01 07 00 [03:33:56]MH_I2C_Read... [03:33:56]Read from MH i2c: 01 07 00 F5 0E 00 00 00 00 00 FF 0F 18 [03:33:56]process_action close_receipt done [03:33:56]requested_data is exist [03:33:56]produce_requested_data [03:33:56]requested_item fm.sn is exist - process it [03:33:56]wFMCommunicate request_size=4 [03:33:56]MH_SAM_APDU [03:33:56]CAPDU: 80 11 00 00 [03:33:56]Write to MH i2c: E2 08 00 F6 0E 80 11 00 00 00 00 00 00 7E [03:33:56]Write i2c OK [03:33:56]MH_I2C_Read... [03:33:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:33:56]Read from MH i2c: E2 [03:33:56]MH_I2C_Read... [03:33:56]Read from MH i2c: E2 17 00 [03:33:56]MH_I2C_Read... [03:33:56]Read from MH i2c: E2 17 00 F6 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 DC [03:33:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [03:33:56]wFMCommunicate OK [03:33:56]requested_item fd.num is exist - process it [03:33:56]SAM_PROTO_GetFieldsCounters [03:33:56]wFMCommunicate request_size=4 [03:33:56]MH_SAM_APDU [03:33:56]CAPDU: 80 13 00 00 [03:33:56]Write to MH i2c: E2 08 00 F7 0E 80 13 00 00 00 00 00 00 81 [03:33:56]Write i2c OK [03:33:56]MH_I2C_Read... [03:33:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:33:56]Read from MH i2c: E2 [03:33:56]MH_I2C_Read... [03:33:56]Read from MH i2c: E2 62 00 [03:33:56]MH_I2C_Read... [03:33:56]Read from MH i2c: E2 62 00 F7 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 1E E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 35 [03:33: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 1E E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:33:56]wFMCommunicate OK [03:33:56]SAM_PROTO_GetFieldsCounters done [03:33:56]requested_item shift.num is exist - process it [03:33:56]requested_item shift.opened is exist - process it [03:33:56]req_shift_opened [03:33:56]FM_GetShiftState [03:33:56]SAM_PROTO_GetShiftState [03:33:56]wFMCommunicate request_size=4 [03:33:56]MH_SAM_APDU [03:33:56]CAPDU: 80 13 01 00 [03:33:56]Write to MH i2c: E2 08 00 F8 0E 80 13 01 00 00 00 00 00 83 [03:33:56]Write i2c OK [03:33:56]MH_I2C_Read... [03:33:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:33:56]Read from MH i2c: E2 [03:33:56]MH_I2C_Read... [03:33:56]Read from MH i2c: E2 0E 00 [03:33:56]MH_I2C_Read... [03:33:56]Read from MH i2c: E2 0E 00 F8 0E 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 45 [03:33:56]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [03:33:56]wFMCommunicate OK [03:33:56]SAM_PROTO_GetShiftState done [03:33:56]FM_GetShiftState done [03:33:56]req_shift_opened done [03:33:56]requested_item shift.open_date is exist - process it [03:33:56]req_shift_open_date [03:33:56]req_shift_open_date done [03:33:56]produce_requested_data done [03:33:56]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123166,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [03:33:56]process_action_free close_receipt [03:33:56]json_value_free [03:33:56]json_value_free done [03:33:56]process_json_proto returns [03:33:56]Send response to host [03:33:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123166,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [03:33:56]free response buf [03:33:56]execute_script done [03:33:56]execute_script returns [03:33:56]free content buf [03:33:56]Sock 9.Close socket [03:33:56]Sock 9.Thread stoped [03:33:58]OFD Sender: No OFD packet to send [03:34:03]OFD Sender: No OFD packet to send [03:34:08]OFD Sender: No OFD packet to send [03:34:13]OFD Sender: No OFD packet to send [03:34:18]OFD Sender: No OFD packet to send [03:34:23]OFD Sender: No OFD packet to send [03:34:28]OFD Sender: No OFD packet to send [03:34:33]OFD Sender: No OFD packet to send [03:34:38]OFD Sender: No OFD packet to send [03:34:43]OFD Sender: No OFD packet to send [03:34:48]OFD Sender: No OFD packet to send [03:34:53]OFD Sender: No OFD packet to send [03:34:58]OFD Sender: No OFD packet to send [03:35:03]OFD Sender: No OFD packet to send [03:35:09]OFD Sender: No OFD packet to send [03:35:14]OFD Sender: No OFD packet to send [03:35:19]OFD Sender: No OFD packet to send [03:35:24]OFD Sender: No OFD packet to send [03:35:29]OFD Sender: No OFD packet to send [03:35:34]OFD Sender: No OFD packet to send [03:35:39]OFD Sender: No OFD packet to send [03:35:44]OFD Sender: No OFD packet to send [03:35:49]OFD Sender: No OFD packet to send [03:35:54]OFD Sender: No OFD packet to send [03:35:59]OFD Sender: No OFD packet to send [03:36:04]OFD Sender: No OFD packet to send [03:36:09]OFD Sender: No OFD packet to send [03:36:14]OFD Sender: No OFD packet to send [03:36:19]OFD Sender: No OFD packet to send [03:36:24]OFD Sender: No OFD packet to send [03:36:29]OFD Sender: No OFD packet to send [03:36:34]OFD Sender: No OFD packet to send [03:36:39]OFD Sender: No OFD packet to send [03:36:44]OFD Sender: No OFD packet to send [03:36:49]OFD Sender: No OFD packet to send [03:36:54]OFD Sender: No OFD packet to send [03:36:59]OFD Sender: No OFD packet to send [03:37:04]OFD Sender: No OFD packet to send [03:37:09]OFD Sender: No OFD packet to send [03:37:14]OFD Sender: No OFD packet to send [03:37:19]OFD Sender: No OFD packet to send [03:37:24]OFD Sender: No OFD packet to send [03:37:29]OFD Sender: No OFD packet to send [03:37:34]OFD Sender: No OFD packet to send [03:37:39]OFD Sender: No OFD packet to send [03:37:44]OFD Sender: No OFD packet to send [03:37:49]OFD Sender: No OFD packet to send [03:37:54]OFD Sender: No OFD packet to send [03:37:59]OFD Sender: No OFD packet to send [03:38:04]OFD Sender: No OFD packet to send [03:38:09]OFD Sender: No OFD packet to send [03:38:14]OFD Sender: No OFD packet to send [03:38:19]OFD Sender: No OFD packet to send [03:38:24]OFD Sender: No OFD packet to send [03:38:29]OFD Sender: No OFD packet to send [03:38:34]OFD Sender: No OFD packet to send [03:38:39]OFD Sender: No OFD packet to send [03:38:44]OFD Sender: No OFD packet to send [03:38:49]OFD Sender: No OFD packet to send [03:38:54]OFD Sender: No OFD packet to send [03:38:59]OFD Sender: No OFD packet to send [03:39:04]OFD Sender: No OFD packet to send [03:39:09]OFD Sender: No OFD packet to send [03:39:14]OFD Sender: No OFD packet to send [03:39:19]OFD Sender: No OFD packet to send [03:39:24]OFD Sender: No OFD packet to send [03:39:29]OFD Sender: No OFD packet to send [03:39:34]OFD Sender: No OFD packet to send [03:39:39]OFD Sender: No OFD packet to send [03:39:44]OFD Sender: No OFD packet to send [03:39:49]OFD Sender: No OFD packet to send [03:39:54]OFD Sender: No OFD packet to send [03:39:59]OFD Sender: No OFD packet to send [03:40:04]OFD Sender: No OFD packet to send [03:40:09]OFD Sender: No OFD packet to send [03:40:14]OFD Sender: No OFD packet to send [03:40:19]OFD Sender: No OFD packet to send [03:40:24]OFD Sender: No OFD packet to send [03:40:29]OFD Sender: No OFD packet to send [03:40:34]OFD Sender: No OFD packet to send [03:40:39]OFD Sender: No OFD packet to send [03:40:44]OFD Sender: No OFD packet to send [03:40:49]OFD Sender: No OFD packet to send [03:40:54]OFD Sender: No OFD packet to send [03:40:59]OFD Sender: No OFD packet to send [03:41:04]OFD Sender: No OFD packet to send [03:41:09]OFD Sender: No OFD packet to send [03:41:14]OFD Sender: No OFD packet to send [03:41:19]OFD Sender: No OFD packet to send [03:41:24]OFD Sender: No OFD packet to send [03:41:29]OFD Sender: No OFD packet to send [03:41:34]OFD Sender: No OFD packet to send [03:41:39]OFD Sender: No OFD packet to send [03:41:44]OFD Sender: No OFD packet to send [03:41:49]OFD Sender: No OFD packet to send [03:41:54]OFD Sender: No OFD packet to send [03:41:59]OFD Sender: No OFD packet to send [03:42:04]OFD Sender: No OFD packet to send [03:42:09]OFD Sender: No OFD packet to send [03:42:12]accept exits with 7 [03:42:12]New connection [03:42:12]New thread 3067395428 created [03:42:12]Thread 3067252068 joined [03:42:12]Waiting for new connection... [03:42:12] Sock 7.Parse request [03:42:12]Sock 7.Check first char [03:42:12]Sock 7.First char is OK [03:42:12]request: POST /json_proto HTTP/1.0 [03:42:12]Method: POST [03:42:12]URL: /json_proto [03:42:12]Method is POST - this is cgi request [03:42:12]url: /json_proto [03:42:12]query_string will be loaded in cgi processing [03:42:12]execute_cgi json_proto POST (null) [03:42:12]execute_cgi path=json_proto method=POST [03:42:12]POST find Content-Length [03:42:12]Host: 172.17.48.197:8080 [03:42:12]Content-Length: 1217 [03:42:12]Content-Type: application/json [03:42:12] [03:42:12]POST finish read [03:42:12]Found Content-Length = 1217 [03:42:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106085\u000A03.03.2024 03:38\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 13\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 10.000 x 69.50\u000A\u0418\u0422\u041E\u0413: 695.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A2071296\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:42:12]execute_script... [03:42:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106085\u000A03.03.2024 03:38\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 13\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 10.000 x 69.50\u000A\u0418\u0422\u041E\u0413: 695.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A2071296\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:42:12]POST & json_proto [03:42:12]process_json_proto [03:42:12]json parsed OK: [03:42:12]protocol is kg_v1.0 [03:42:12]action value=print_text [03:42:12]process_action print_text [03:42:12]cmd_print_text [03:42:12]ExternCall_PrintAddStr [03:42:12]wPrintStart [03:42:12]Write to MH i2c: 01 00 00 F9 0E 07 [03:42:12]Write i2c OK [03:42:12]MH_I2C_Read... [03:42:12]Read from MH i2c: 01 [03:42:12]MH_I2C_Read... [03:42:12]Read from MH i2c: 01 07 00 [03:42:12]MH_I2C_Read... [03:42:12]Read from MH i2c: 01 07 00 F9 0E 00 00 00 00 00 FF 0F 1C [03:42:12]RasterBufferAndPrint [03:42:12]line *****ТОВАРНЫЙ ЧЕК***** [03:42:12]line АЗС 25 [03:42:12]line Партнер нефть [03:42:12]line 02508201610067 [03:42:12]line Кассир : Турдумбек у. К. [03:42:12]line Счет N : (1)1106085 [03:42:12]line 03.03.2024 03:38 [03:42:12]line ПРОДАЖА [03:42:12]line ТРК (МРК, ГНК): 13 [03:42:12]line Вид ГСМ : 2710124500 [03:42:12]line Аи-95-К-5 [03:42:12]line 10.000 x 69.50 [03:42:12]line ИТОГ: 695.00 [03:42:12]line Тип оплаты: Талоны: Топливные Талоны [03:42:12]line 2071296 [03:42:12]line ______________________ [03:42:12]line (подпись) [03:42:12]written 0, free lines is 4095 [03:42:12]Write to MH i2c: 01 00 00 0E 0F 1D [03:42:12]Write i2c OK [03:42:12]MH_I2C_Read... [03:42:12]Read from MH i2c: 01 [03:42:12]MH_I2C_Read... [03:42:12]Read from MH i2c: 01 07 00 [03:42:12]MH_I2C_Read... [03:42:12]Read from MH i2c: 01 07 00 0E 0F 00 00 00 00 00 F5 0D 26 [03:42:12]RasterBufferAndPrint [03:42:12]line [03:42:12]line [03:42:12]line [03:42:12]line [03:42:12]line [03:42:12]written 0, free lines is 3575 [03:42:12]MH_Cut [03:42:12]Write to MH i2c: D1 01 00 15 0F 01 F6 [03:42:12]Write i2c OK [03:42:12]MH_I2C_Read... [03:42:12]Read from MH i2c: D1 [03:42:12]MH_I2C_Read... [03:42:12]Read from MH i2c: D1 01 00 [03:42:12]MH_I2C_Read... [03:42:12]Read from MH i2c: D1 01 00 15 0F 00 F5 [03:42:12]Write to MH i2c: 01 00 00 16 0F 25 [03:42:12]Write i2c OK [03:42:12]MH_I2C_Read... [03:42:12]*** Cut start [03:42:12]*** Purtial cut [03:42:12]*** Stage 1: CUTSNS_PIN = 1 [03:42:14]OFD Sender: No OFD packet to send [03:42:14]Read from MH i2c: 01 [03:42:14]MH_I2C_Read... [03:42:14]Read from MH i2c: 01 07 00 [03:42:14]MH_I2C_Read... [03:42:14]*** Stop cut motor [03:42:14]*** Cut end [03:42:14]Read from MH i2c: 01 07 00 16 0F 00 00 00 00 00 FF 0F 3A [03:42:14]process_action print_text done [03:42:14]requested_data is exist [03:42:14]produce_requested_data [03:42:14]requested_item fm.sn is exist - process it [03:42:14]wFMCommunicate request_size=4 [03:42:14]MH_SAM_APDU [03:42:14]CAPDU: 80 11 00 00 [03:42:14]Write to MH i2c: E2 08 00 17 0F 80 11 00 00 00 00 00 00 A0 [03:42:14]Write i2c OK [03:42:14]MH_I2C_Read... [03:42:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:42:14]Read from MH i2c: E2 [03:42:14]MH_I2C_Read... [03:42:14]Read from MH i2c: E2 17 00 [03:42:14]MH_I2C_Read... [03:42:14]Read from MH i2c: E2 17 00 17 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 FE [03:42:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [03:42:14]wFMCommunicate OK [03:42:14]requested_item fd.num is exist - process it [03:42:14]SAM_PROTO_GetFieldsCounters [03:42:14]wFMCommunicate request_size=4 [03:42:14]MH_SAM_APDU [03:42:14]CAPDU: 80 13 00 00 [03:42:14]Write to MH i2c: E2 08 00 18 0F 80 13 00 00 00 00 00 00 A3 [03:42:14]Write i2c OK [03:42:14]MH_I2C_Read... [03:42:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:42:15]Read from MH i2c: E2 [03:42:15]MH_I2C_Read... [03:42:15]Read from MH i2c: E2 62 00 [03:42:15]MH_I2C_Read... [03:42:15]Read from MH i2c: E2 62 00 18 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 1E E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 57 [03:42: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 1E E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:42:15]wFMCommunicate OK [03:42:15]SAM_PROTO_GetFieldsCounters done [03:42:15]requested_item shift.num is exist - process it [03:42:15]requested_item shift.opened is exist - process it [03:42:15]req_shift_opened [03:42:15]FM_GetShiftState [03:42:15]SAM_PROTO_GetShiftState [03:42:15]wFMCommunicate request_size=4 [03:42:15]MH_SAM_APDU [03:42:15]CAPDU: 80 13 01 00 [03:42:15]Write to MH i2c: E2 08 00 19 0F 80 13 01 00 00 00 00 00 A5 [03:42:15]Write i2c OK [03:42:15]MH_I2C_Read... [03:42:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:42:15]Read from MH i2c: E2 [03:42:15]MH_I2C_Read... [03:42:15]Read from MH i2c: E2 0E 00 [03:42:15]MH_I2C_Read... [03:42:15]Read from MH i2c: E2 0E 00 19 0F 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 67 [03:42:15]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [03:42:15]wFMCommunicate OK [03:42:15]SAM_PROTO_GetShiftState done [03:42:15]FM_GetShiftState done [03:42:15]req_shift_opened done [03:42:15]requested_item shift.open_date is exist - process it [03:42:15]req_shift_open_date [03:42:15]req_shift_open_date done [03:42:15]produce_requested_data done [03:42:15]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123166,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [03:42:15]process_action_free print_text [03:42:15]json_value_free [03:42:15]json_value_free done [03:42:15]process_json_proto returns [03:42:15]Send response to host [03:42:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123166,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [03:42:15]free response buf [03:42:15]execute_script done [03:42:15]execute_script returns [03:42:15]free content buf [03:42:15]Sock 7.Close socket [03:42:15]Sock 7.Thread stoped [03:42:19]OFD Sender: No OFD packet to send [03:42:24]OFD Sender: No OFD packet to send [03:42:29]OFD Sender: No OFD packet to send [03:42:34]OFD Sender: No OFD packet to send [03:42:39]OFD Sender: No OFD packet to send [03:42:44]OFD Sender: No OFD packet to send [03:42:49]OFD Sender: No OFD packet to send [03:42:54]OFD Sender: No OFD packet to send [03:42:59]OFD Sender: No OFD packet to send [03:43:04]OFD Sender: No OFD packet to send [03:43:09]OFD Sender: No OFD packet to send [03:43:14]OFD Sender: No OFD packet to send [03:43:19]OFD Sender: No OFD packet to send [03:43:24]OFD Sender: No OFD packet to send [03:43:29]OFD Sender: No OFD packet to send [03:43:34]OFD Sender: No OFD packet to send [03:43:39]OFD Sender: No OFD packet to send [03:43:44]OFD Sender: No OFD packet to send [03:43:49]OFD Sender: No OFD packet to send [03:43:54]OFD Sender: No OFD packet to send [03:43:59]OFD Sender: No OFD packet to send [03:44:04]OFD Sender: No OFD packet to send [03:44:09]OFD Sender: No OFD packet to send [03:44:14]OFD Sender: No OFD packet to send [03:44:19]OFD Sender: No OFD packet to send [03:44:24]OFD Sender: No OFD packet to send [03:44:29]OFD Sender: No OFD packet to send [03:44:34]OFD Sender: No OFD packet to send [03:44:39]OFD Sender: No OFD packet to send [03:44:44]OFD Sender: No OFD packet to send [03:44:49]OFD Sender: No OFD packet to send [03:44:54]OFD Sender: No OFD packet to send [03:44:59]OFD Sender: No OFD packet to send [03:45:04]OFD Sender: No OFD packet to send [03:45:09]OFD Sender: No OFD packet to send [03:45:14]OFD Sender: No OFD packet to send [03:45:19]OFD Sender: No OFD packet to send [03:45:24]OFD Sender: No OFD packet to send [03:45:29]OFD Sender: No OFD packet to send [03:45:34]OFD Sender: No OFD packet to send [03:45:39]OFD Sender: No OFD packet to send [03:45:44]OFD Sender: No OFD packet to send [03:45:49]OFD Sender: No OFD packet to send [03:45:54]OFD Sender: No OFD packet to send [03:45:59]OFD Sender: No OFD packet to send [03:46:04]OFD Sender: No OFD packet to send [03:46:09]OFD Sender: No OFD packet to send [03:46:14]OFD Sender: No OFD packet to send [03:46:19]OFD Sender: No OFD packet to send [03:46:24]OFD Sender: No OFD packet to send [03:46:29]OFD Sender: No OFD packet to send [03:46:34]OFD Sender: No OFD packet to send [03:46:39]OFD Sender: No OFD packet to send [03:46:44]OFD Sender: No OFD packet to send [03:46:49]OFD Sender: No OFD packet to send [03:46:54]OFD Sender: No OFD packet to send [03:46:59]OFD Sender: No OFD packet to send [03:47:04]OFD Sender: No OFD packet to send [03:47:09]OFD Sender: No OFD packet to send [03:47:14]OFD Sender: No OFD packet to send [03:47:19]OFD Sender: No OFD packet to send [03:47:24]OFD Sender: No OFD packet to send [03:47:29]OFD Sender: No OFD packet to send [03:47:34]OFD Sender: No OFD packet to send [03:47:39]OFD Sender: No OFD packet to send [03:47:44]OFD Sender: No OFD packet to send [03:47:49]OFD Sender: No OFD packet to send [03:47:54]OFD Sender: No OFD packet to send [03:47:59]OFD Sender: No OFD packet to send [03:48:04]OFD Sender: No OFD packet to send [03:48:09]OFD Sender: No OFD packet to send [03:48:14]OFD Sender: No OFD packet to send [03:48:19]OFD Sender: No OFD packet to send [03:48:24]OFD Sender: No OFD packet to send [03:48:29]OFD Sender: No OFD packet to send [03:48:34]OFD Sender: No OFD packet to send [03:48:39]OFD Sender: No OFD packet to send [03:48:44]OFD Sender: No OFD packet to send [03:48:49]OFD Sender: No OFD packet to send [03:48:54]OFD Sender: No OFD packet to send [03:48:59]OFD Sender: No OFD packet to send [03:49:04]OFD Sender: No OFD packet to send [03:49:09]OFD Sender: No OFD packet to send [03:49:14]OFD Sender: No OFD packet to send [03:49:19]OFD Sender: No OFD packet to send [03:49:24]OFD Sender: No OFD packet to send [03:49:29]OFD Sender: No OFD packet to send [03:49:34]OFD Sender: No OFD packet to send [03:49:39]OFD Sender: No OFD packet to send [03:49:44]OFD Sender: No OFD packet to send [03:49:50]OFD Sender: No OFD packet to send [03:49:55]OFD Sender: No OFD packet to send [03:50:00]OFD Sender: No OFD packet to send [03:50:05]OFD Sender: No OFD packet to send [03:50:10]OFD Sender: No OFD packet to send [03:50:15]OFD Sender: No OFD packet to send [03:50:20]OFD Sender: No OFD packet to send [03:50:25]OFD Sender: No OFD packet to send [03:50:30]OFD Sender: No OFD packet to send [03:50:35]OFD Sender: No OFD packet to send [03:50:40]OFD Sender: No OFD packet to send [03:50:45]OFD Sender: No OFD packet to send [03:50:50]OFD Sender: No OFD packet to send [03:50:55]OFD Sender: No OFD packet to send [03:51:00]OFD Sender: No OFD packet to send [03:51:05]OFD Sender: No OFD packet to send [03:51: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:05]OFD Sender: No OFD packet to send [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 [04:00:00]OFD Sender: No OFD packet to send [04:00:05]OFD Sender: No OFD packet to send [04:00:10]OFD Sender: No OFD packet to send [04:00:15]OFD Sender: No OFD packet to send [04:00:20]OFD Sender: No OFD packet to send [04:00:25]OFD Sender: No OFD packet to send [04:00:30]OFD Sender: No OFD packet to send [04:00:35]OFD Sender: No OFD packet to send [04:00:40]OFD Sender: No OFD packet to send [04:00:45]OFD Sender: No OFD packet to send [04:00:50]OFD Sender: No OFD packet to send [04:00:55]OFD Sender: No OFD packet to send [04:01:00]OFD Sender: No OFD packet to send [04:01:05]OFD Sender: No OFD packet to send [04:01:10]OFD Sender: No OFD packet to send [04:01:15]OFD Sender: No OFD packet to send [04:01:20]OFD Sender: No OFD packet to send [04:01:25]OFD Sender: No OFD packet to send [04:01:30]OFD Sender: No OFD packet to send [04:01:35]OFD Sender: No OFD packet to send [04:01:40]OFD Sender: No OFD packet to send [04:01:45]OFD Sender: No OFD packet to send [04:01:50]OFD Sender: No OFD packet to send [04:01:55]OFD Sender: No OFD packet to send [04:02:00]OFD Sender: No OFD packet to send [04:02:05]OFD Sender: No OFD packet to send [04:02:10]OFD Sender: No OFD packet to send [04:02:15]OFD Sender: No OFD packet to send [04:02:20]OFD Sender: No OFD packet to send [04:02:25]OFD Sender: No OFD packet to send [04:02:30]OFD Sender: No OFD packet to send [04:02:35]OFD Sender: No OFD packet to send [04:02:40]OFD Sender: No OFD packet to send [04:02:45]OFD Sender: No OFD packet to send [04:02:50]OFD Sender: No OFD packet to send [04:02:55]OFD Sender: No OFD packet to send [04:03:00]OFD Sender: No OFD packet to send [04:03:05]OFD Sender: No OFD packet to send [04:03:10]OFD Sender: No OFD packet to send [04:03:15]OFD Sender: No OFD packet to send [04:03:20]OFD Sender: No OFD packet to send [04:03:25]OFD Sender: No OFD packet to send [04:03:30]OFD Sender: No OFD packet to send [04:03:35]OFD Sender: No OFD packet to send [04:03:40]OFD Sender: No OFD packet to send [04:03:45]OFD Sender: No OFD packet to send [04:03:50]OFD Sender: No OFD packet to send [04:03:55]OFD Sender: No OFD packet to send [04:04:00]OFD Sender: No OFD packet to send [04:04:05]OFD Sender: No OFD packet to send [04:04:10]OFD Sender: No OFD packet to send [04:04:15]OFD Sender: No OFD packet to send [04:04:20]OFD Sender: No OFD packet to send [04:04:25]OFD Sender: No OFD packet to send [04:04:30]OFD Sender: No OFD packet to send [04:04: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:07]accept exits with 9 [04:07:07]New connection [04:07:07]New thread 3067252068 created [04:07:07]Thread 3067395428 joined [04:07:07]Waiting for new connection... [04:07:07] Sock 9.Parse request [04:07:07]Sock 9.Check first char [04:07:07]Sock 9.First char is OK [04:07:07]request: POST /json_proto HTTP/1.0 [04:07:07]Method: POST [04:07:07]URL: /json_proto [04:07:07]Method is POST - this is cgi request [04:07:07]url: /json_proto [04:07:07]query_string will be loaded in cgi processing [04:07:07]execute_cgi json_proto POST (null) [04:07:07]execute_cgi path=json_proto method=POST [04:07:07]POST find Content-Length [04:07:07]Host: 172.17.48.197:8080 [04:07:07]Content-Length: 809 [04:07:07]Content-Type: application/json [04:07:07] [04:07:07]POST finish read [04:07:07]Found Content-Length = 809 [04:07:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106086", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 24.240, "sum" : 1500.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.46 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:07:07]execute_script... [04:07:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106086", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 24.240, "sum" : 1500.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.46 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:07:07]POST & json_proto [04:07:07]process_json_proto [04:07:07]json parsed OK: [04:07:07]protocol is kg_v1.0 [04:07:07]action value=close_receipt [04:07:07]process_action close_receipt [04:07:07]cmd_close_receipt [04:07:07]MH_GetDate [04:07:07]Write to MH i2c: F0 00 00 1A 0F 18 [04:07:07]Write i2c OK [04:07:07]MH_I2C_Read... [04:07:07]Read from MH i2c: F0 [04:07:07]MH_I2C_Read... [04:07:07]Read from MH i2c: F0 09 00 [04:07:07]MH_I2C_Read... [04:07:07]Read from MH i2c: F0 09 00 1A 0F 00 6C F7 E3 65 6C AF E3 65 2F [04:07:07]GetLastDocTimeStamp 1709436832 [04:07:07]current date 1709438828 [04:07:07]FM_GetShiftState [04:07:07]SAM_PROTO_GetShiftState [04:07:07]wFMCommunicate request_size=4 [04:07:07]MH_SAM_APDU [04:07:07]CAPDU: 80 13 01 00 [04:07:07]Write to MH i2c: E2 08 00 1B 0F 80 13 01 00 00 00 00 00 A7 [04:07:07]Write i2c OK [04:07:07]MH_I2C_Read... [04:07:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:07:07]Read from MH i2c: E2 [04:07:07]MH_I2C_Read... [04:07:07]Read from MH i2c: E2 0E 00 [04:07:07]MH_I2C_Read... [04:07:07]Read from MH i2c: E2 0E 00 1B 0F 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 69 [04:07:07]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [04:07:07]wFMCommunicate OK [04:07:07]SAM_PROTO_GetShiftState done [04:07:07]FM_GetShiftState done [04:07:07]opened in 1709425579 [04:07:07]opened+sec_in_day 1709511979 [04:07:07]quantity*price = 150045 [04:07:07]sum+1 = 150047 [04:07:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.46 НСП 1% : 13.28 НДС 12% : 159.34 Наличными: 0.00 Безнал.: 1500.46 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 24 03.03.2024 04:07 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874798 ФД: 123167 ФПД: 178870199283993 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T040709&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123167&fm=178870199283993&tin=02508201610067®Number=0000000000090573&sum=150046 [04:07:08]StoreToDocumentArchive [04:07:08]shift 323 fd 123167 [04:07:08]save to /storage/0323/doc_00123167 [04:07:08]save last doc name /storage/0323/doc_00123167 to /storage/kkm_last_doc_name [04:07:08]save OK [04:07:08]Clear old archive folders... [04:07:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:07:08]tlvbuf is 00DB6B00 [04:07:08]SAM_PROTO_ClearQueue [04:07:08]wFMCommunicate request_size=4 [04:07:08]MH_SAM_APDU [04:07:08]CAPDU: 80 09 00 00 [04:07:08]Write to MH i2c: E2 08 00 28 0F 80 09 00 00 00 00 00 00 A9 [04:07:08]Write i2c OK [04:07:08]MH_I2C_Read... [04:07:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:07:09]Read from MH i2c: E2 [04:07:09]MH_I2C_Read... [04:07:09]Read from MH i2c: E2 03 00 [04:07:09]MH_I2C_Read... [04:07:09]Read from MH i2c: E2 03 00 28 0F 00 90 00 AB [04:07:09]RAPDU: 90 00 [04:07:09]wFMCommunicate OK [04:07:09]SAM_PROTO_ClearQueue done [04:07:09]KKMCreateOFDPacket [04:07:09]OFDProtocolAddRootSTLVToBuf [04:07:09]FM_MakeSignedData [04:07:09]FM_MakeSignedData [04:07:09]SAM_PROTO_SignData [04:07:09]wFMCommunicate request_size=4 [04:07:09]MH_SAM_APDU [04:07:09]CAPDU: 80 0D 01 02 [04:07:09]Write to MH i2c: E2 08 00 29 0F 80 0D 01 02 00 00 00 00 B1 [04:07:09]Write i2c OK [04:07:09]MH_I2C_Read... [04:07:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:07:09]Read from MH i2c: E2 [04:07:09]MH_I2C_Read... [04:07:09]Read from MH i2c: E2 03 00 [04:07:09]MH_I2C_Read... [04:07:09]Read from MH i2c: E2 03 00 29 0F 00 90 00 AC [04:07:09]RAPDU: 90 00 [04:07:09]wFMCommunicate OK [04:07:09]wFMCommunicate request_size=255 [04:07:09]MH_SAM_APDU [04:07: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 35 FF 03 08 00 03 B0 5E 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 1E 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1E 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1E 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 6D F7 E3 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 1F E1 01 00 35 04 06 00 A2 [04:07:09]Write to MH i2c: E2 02 01 2A 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 5E 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 1E 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1E 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1E 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 6D F7 E3 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 1F E1 01 00 35 04 06 00 A2 00 00 B3 [04:07:09]Write i2c OK [04:07:09]MH_I2C_Read... [04:07:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:07:09]Read from MH i2c: E2 [04:07:09]MH_I2C_Read... [04:07:09]Read from MH i2c: E2 03 00 [04:07:09]MH_I2C_Read... [04:07:09]Read from MH i2c: E2 03 00 2A 0F 00 90 00 AD [04:07:09]RAPDU: 90 00 [04:07:09]wFMCommunicate OK [04:07:09]wFMCommunicate request_size=10 [04:07:09]MH_SAM_APDU [04:07:09]CAPDU: 80 0D 02 02 05 AE 76 B0 71 19 [04:07:09]Write to MH i2c: E2 0D 00 2B 0F 80 0D 02 02 05 00 AE 76 B0 71 19 00 00 1C [04:07:09]Write i2c OK [04:07:09]MH_I2C_Read... [04:07:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:07:09]Read from MH i2c: E2 [04:07:09]MH_I2C_Read... [04:07:09]Read from MH i2c: E2 03 00 [04:07:09]MH_I2C_Read... [04:07:09]Read from MH i2c: E2 03 00 2B 0F 00 90 00 AE [04:07:09]RAPDU: 90 00 [04:07:09]wFMCommunicate OK [04:07:09]wFMCommunicate request_size=4 [04:07:09]MH_SAM_APDU [04:07:09]CAPDU: 80 0D 03 02 [04:07:09]Write to MH i2c: E2 08 00 2C 0F 80 0D 03 02 00 00 00 00 B6 [04:07:09]Write i2c OK [04:07:09]MH_I2C_Read... [04:07:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:07:09]Read from MH i2c: E2 [04:07:09]MH_I2C_Read... [04:07:09]Read from MH i2c: E2 0B 00 [04:07:09]MH_I2C_Read... [04:07:09]Read from MH i2c: E2 0B 00 2C 0F 00 E7 E0 97 8E 6E 39 43 2A 90 00 B7 [04:07:09]RAPDU: E7 E0 97 8E 6E 39 43 2A 90 00 [04:07:09]wFMCommunicate OK [04:07:09]SAM_PROTO_SignData done [04:07:09]FM_MakeSignedData done [04:07:09]CreateOFDProtocolMessage [04:07:09]wFMCommunicate request_size=4 [04:07:09]MH_SAM_APDU [04:07:09]CAPDU: 80 11 00 00 [04:07:09]Write to MH i2c: E2 08 00 2D 0F 80 11 00 00 00 00 00 00 B6 [04:07:09]Write i2c OK [04:07:09]MH_I2C_Read... [04:07:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:07:09]Read from MH i2c: E2 [04:07:09]MH_I2C_Read... [04:07:09]Read from MH i2c: E2 17 00 [04:07:09]MH_I2C_Read... [04:07:09]Read from MH i2c: E2 17 00 2D 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 14 [04:07:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [04:07:09]wFMCommunicate OK [04:07:09]CreateOFDProtocolMessage done [04:07:09]OFDSenderStorePacket 123167 [04:07:09]StoreOFDPacket docnum=123167 [04:07:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 6C A7 07 01 B6 1B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 5E 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 1E 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1E 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1E 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 6D F7 E3 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 1F E1 01 00 35 04 06 00 A2 AE 76 B0 71 19 E7 E0 97 8E 6E 39 43 2A [04:07:09]CheckFolder [04:07:09]dirname=/storage/ofd_packets [04:07:09]CheckFolder done [04:07:09]ProducePacketName [04:07:09]name=ofd_packets/00123167 [04:07:09]NVStorageSaveData ofd_packets/00123167 [04:07:09]File name is /storage/ofd_packets/00123167 [04:07:09]Write 301 bytes [04:07:09]NVStorageSaveData done [04:07:09]OFDSenderStorePacket done [04:07:09]KKMCreateOFDPacket done [04:07:09]NVStorageSaveData kkm_last_timestamp [04:07:09]File name is /storage/kkm_last_timestamp [04:07:09]Write 4 bytes [04:07:09]NVStorageSaveData done [04:07:09]ExternCall_PrintAddStr [04:07:09]wPrintStart [04:07:09]Write to MH i2c: 01 00 00 2E 0F 3D [04:07:09]Write i2c OK [04:07:09]MH_I2C_Read... [04:07:09]Read from MH i2c: 01 [04:07:09]MH_I2C_Read... [04:07:09]Read from MH i2c: 01 07 00 [04:07:09]MH_I2C_Read... [04:07:09]Read from MH i2c: 01 07 00 2E 0F 00 00 00 00 00 FF 0F 52 [04:07:09]RasterBufferAndPrint [04:07:09]line Счет N : (1)1106086 [04:07:09]line ИНН: 02508201610067 [04:07:09]line Контрольно-Кассовый Чек [04:07:09]line ПРОДАЖА [04:07:09]line ТРК (МРК, ГНК) : 11 [04:07:09]line Товар: 2710124130 [04:07:09]line Аи-92-К-5 [04:07:09]line 24.240 * 61.90 [04:07:09]line = 1500.46 [04:07:09]line НДС 12% НСП 1% [04:07:09]line > о реализуемом товаре [04:07:09]line ИТОГО: 1500.46 [04:07:09]line НСП 1% : 13.28 [04:07:09]line НДС 12% : 159.34 [04:07:09]line Наличными: 0.00 [04:07:09]line Безнал.: 1500.46 [04:07:09]line Место: АЗС № 25 "Партнер Нефть" [04:07:09]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [04:07:09]line СНО: Общий режим [04:07:09]line Чек 24 03.03.2024 04:07 [04:07:09]line Смена: 323 ФФД: 1.0 [04:07:09]line ЗНМ: 0300000019 [04:07:09]line РНМ: 0000000000090573 [04:07:09]line Версия ККМ: 001 [04:07:09]line Платежная система: О! деньги [04:07:09]line ФМ: 0000000000874798 [04:07:09]line ФД: 123167 [04:07:09]line ФПД: 178870199283993 [04:07:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T040709&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123167&fm=178870199283993&tin=02508201610067®Number=0000000000090573&sum=150046 [04:07:09]OFD Sender: Processing packet 123167 [packets to send 112, broken 111] [04:07:09]ProducePacketName [04:07:09]name=ofd_packets/00123167 [04:07:09]OFD Sender: To server: pG, [04:07:09]CommunicateWithHost lk.salyk.kg:30040 [04:07:09]ConnectInit lk.salyk.kg [04:07:09]written 0, free lines is 4095 [04:07:09]Connected sock=10 [04:07: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 37 39 38 0F 01 00 00 6C A7 07 01 B6 1B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 5E 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 1E 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1E 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1E 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 6D F7 E3 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 1F E1 01 00 35 04 06 00 A2 AE 76 B0 71 19 E7 E0 97 8E 6E 39 43 2A [04:07:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 67 4B 47 00 78 3E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 1F E1 01 00 F4 03 04 00 9A A3 E3 65 B6 04 01 00 00 C3 9F 1D C0 90 60 AD 39 [04:07:10]CommunicateWithHost err = 0 [04:07:10]CheckOFDResponse [04:07:10]1017 (14) - 77093643461234 [04:07:10]1041 (16) - 0000000000874798 [04:07:10]1040 (4) - 123167 [04:07:10]1012 (4) - 02.03.2024 22:09 [04:07:10]1206 (1) - 0 [04:07:10]OFD Sender: Remove packet 123167 [04:07:10]ProducePacketName [04:07:10]name=ofd_packets/00123167 [04:07:10]NVStorageDeleteData [04:07:10]Write to MH i2c: 01 00 00 58 0F 67 [04:07:10]Write i2c OK [04:07:10]MH_I2C_Read... [04:07:10]Read from MH i2c: 01 [04:07:10]MH_I2C_Read... [04:07:10]Read from MH i2c: 01 07 00 [04:07:10]MH_I2C_Read... [04:07:10]Read from MH i2c: 01 07 00 58 0F 00 00 00 00 00 0A 0D 85 [04:07:10]RasterBufferAndPrint [04:07:10]line [04:07:10]line [04:07:10]line [04:07:10]line [04:07:10]line [04:07:10]written 0, free lines is 3346 [04:07:10]MH_Cut [04:07:10]Write to MH i2c: D1 01 00 5F 0F 01 40 [04:07:10]Write i2c OK [04:07:10]MH_I2C_Read... [04:07:10]Read from MH i2c: D1 [04:07:10]MH_I2C_Read... [04:07:10]Read from MH i2c: D1 01 00 [04:07:10]MH_I2C_Read... [04:07:10]Read from MH i2c: D1 01 00 5F 0F 00 3F [04:07:10]Write to MH i2c: 01 00 00 60 0F 6F [04:07:10]Write i2c OK [04:07:10]MH_I2C_Read... [04:07:10]OFD Sender: No OFD packet to send [04:07:10]*** Cut start [04:07:10]*** Purtial cut [04:07:10]*** Stage 1: CUTSNS_PIN = 1 [04:07:12]Read from MH i2c: 01 [04:07:12]MH_I2C_Read... [04:07:12]*** Stop cut motor [04:07:12]*** Cut end [04:07:12]Read from MH i2c: 01 07 00 [04:07:12]MH_I2C_Read... [04:07:13]Read from MH i2c: 01 07 00 60 0F 00 00 00 00 00 FF 0F 84 [04:07:13]process_action close_receipt done [04:07:13]requested_data is exist [04:07:13]produce_requested_data [04:07:13]requested_item fm.sn is exist - process it [04:07:13]wFMCommunicate request_size=4 [04:07:13]MH_SAM_APDU [04:07:13]CAPDU: 80 11 00 00 [04:07:13]Write to MH i2c: E2 08 00 61 0F 80 11 00 00 00 00 00 00 EA [04:07:13]Write i2c OK [04:07:13]MH_I2C_Read... [04:07:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:07:13]Read from MH i2c: E2 [04:07:13]MH_I2C_Read... [04:07:13]Read from MH i2c: E2 17 00 [04:07:13]MH_I2C_Read... [04:07:13]Read from MH i2c: E2 17 00 61 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 48 [04:07:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [04:07:13]wFMCommunicate OK [04:07:13]requested_item fd.num is exist - process it [04:07:13]SAM_PROTO_GetFieldsCounters [04:07:13]wFMCommunicate request_size=4 [04:07:13]MH_SAM_APDU [04:07:13]CAPDU: 80 13 00 00 [04:07:13]Write to MH i2c: E2 08 00 62 0F 80 13 00 00 00 00 00 00 ED [04:07:13]Write i2c OK [04:07:13]MH_I2C_Read... [04:07:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:07:13]Read from MH i2c: E2 [04:07:13]MH_I2C_Read... [04:07:13]Read from MH i2c: E2 62 00 [04:07:13]MH_I2C_Read... [04:07:13]Read from MH i2c: E2 62 00 62 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 1F E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 A5 [04:07: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 1F E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:07:13]wFMCommunicate OK [04:07:13]SAM_PROTO_GetFieldsCounters done [04:07:13]requested_item shift.num is exist - process it [04:07:13]requested_item shift.opened is exist - process it [04:07:13]req_shift_opened [04:07:13]FM_GetShiftState [04:07:13]SAM_PROTO_GetShiftState [04:07:13]wFMCommunicate request_size=4 [04:07:13]MH_SAM_APDU [04:07:13]CAPDU: 80 13 01 00 [04:07:13]Write to MH i2c: E2 08 00 63 0F 80 13 01 00 00 00 00 00 EF [04:07:13]Write i2c OK [04:07:13]MH_I2C_Read... [04:07:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:07:13]Read from MH i2c: E2 [04:07:13]MH_I2C_Read... [04:07:13]Read from MH i2c: E2 0E 00 [04:07:13]MH_I2C_Read... [04:07:13]Read from MH i2c: E2 0E 00 63 0F 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 B1 [04:07:13]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [04:07:13]wFMCommunicate OK [04:07:13]SAM_PROTO_GetShiftState done [04:07:13]FM_GetShiftState done [04:07:13]req_shift_opened done [04:07:13]requested_item shift.open_date is exist - process it [04:07:13]req_shift_open_date [04:07:13]req_shift_open_date done [04:07:13]produce_requested_data done [04:07:13]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123167,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [04:07:13]process_action_free close_receipt [04:07:13]json_value_free [04:07:13]json_value_free done [04:07:13]process_json_proto returns [04:07:13]Send response to host [04:07:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123167,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [04:07:13]free response buf [04:07:13]execute_script done [04:07:13]execute_script returns [04:07:13]free content buf [04:07:13]Sock 9.Close socket [04:07:13]Sock 9.Thread stoped [04:07:15]OFD Sender: No OFD packet to send [04:07:20]OFD Sender: No OFD packet to send [04:07:25]OFD Sender: No OFD packet to send [04:07:30]OFD Sender: No OFD packet to send [04:07:35]OFD Sender: No OFD packet to send [04:07:40]OFD Sender: No OFD packet to send [04:07:45]OFD Sender: No OFD packet to send [04:07:50]OFD Sender: No OFD packet to send [04:07:55]OFD Sender: No OFD packet to send [04:08:00]OFD Sender: No OFD packet to send [04:08:05]OFD Sender: No OFD packet to send [04:08:10]OFD Sender: No OFD packet to send [04:08:15]OFD Sender: No OFD packet to send [04:08:20]OFD Sender: No OFD packet to send [04:08:25]OFD Sender: No OFD packet to send [04:08:30]OFD Sender: No OFD packet to send [04:08:35]OFD Sender: No OFD packet to send [04:08:40]OFD Sender: No OFD packet to send [04:08:45]OFD Sender: No OFD packet to send [04:08:50]OFD Sender: No OFD packet to send [04:08:55]OFD Sender: No OFD packet to send [04:09:00]OFD Sender: No OFD packet to send [04:09:05]OFD Sender: No OFD packet to send [04:09:10]OFD Sender: No OFD packet to send [04:09:15]OFD Sender: No OFD packet to send [04:09:20]OFD Sender: No OFD packet to send [04:09:25]OFD Sender: No OFD packet to send [04:09:30]OFD Sender: No OFD packet to send [04:09:35]OFD Sender: No OFD packet to send [04:09:40]OFD Sender: No OFD packet to send [04:09:45]OFD Sender: No OFD packet to send [04:09:50]OFD Sender: No OFD packet to send [04:09:55]OFD Sender: No OFD packet to send [04:10:00]OFD Sender: No OFD packet to send [04:10:05]OFD Sender: No OFD packet to send [04:10:10]OFD Sender: No OFD packet to send [04:10:15]OFD Sender: No OFD packet to send [04:10:20]OFD Sender: No OFD packet to send [04:10:25]OFD Sender: No OFD packet to send [04:10:30]OFD Sender: No OFD packet to send [04:10:35]OFD Sender: No OFD packet to send [04:10:40]OFD Sender: No OFD packet to send [04:10:45]OFD Sender: No OFD packet to send [04:10:50]OFD Sender: No OFD packet to send [04:10:55]OFD Sender: No OFD packet to send [04:11:00]OFD Sender: No OFD packet to send [04:11:05]OFD Sender: No OFD packet to send [04:11:10]OFD Sender: No OFD packet to send [04:11:15]OFD Sender: No OFD packet to send [04:11:20]OFD Sender: No OFD packet to send [04:11:25]OFD Sender: No OFD packet to send [04:11:30]OFD Sender: No OFD packet to send [04:11:35]OFD Sender: No OFD packet to send [04:11:40]OFD Sender: No OFD packet to send [04:11:45]OFD Sender: No OFD packet to send [04:11:50]OFD Sender: No OFD packet to send [04:11:55]OFD Sender: No OFD packet to send [04:12:00]OFD Sender: No OFD packet to send [04:12:05]OFD Sender: No OFD packet to send [04:12:10]OFD Sender: No OFD packet to send [04:12:15]OFD Sender: No OFD packet to send [04:12:20]OFD Sender: No OFD packet to send [04:12:25]OFD Sender: No OFD packet to send [04:12:30]OFD Sender: No OFD packet to send [04:12:35]OFD Sender: No OFD packet to send [04:12:40]OFD Sender: No OFD packet to send [04:12:46]OFD Sender: No OFD packet to send [04:12:51]OFD Sender: No OFD packet to send [04:12:56]OFD Sender: No OFD packet to send [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:16]OFD Sender: No OFD packet to send [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:56]OFD Sender: No OFD packet to send [04:21:01]OFD Sender: No OFD packet to send [04:21:06]OFD Sender: No OFD packet to send [04:21:11]OFD Sender: No OFD packet to send [04:21:16]OFD Sender: No OFD packet to send [04:21:21]OFD Sender: No OFD packet to send [04:21:26]OFD Sender: No OFD packet to send [04:21:31]OFD Sender: No OFD packet to send [04:21:36]OFD Sender: No OFD packet to send [04:21:41]OFD Sender: No OFD packet to send [04:21:46]OFD Sender: No OFD packet to send [04:21:51]OFD Sender: No OFD packet to send [04:21:56]OFD Sender: No OFD packet to send [04:22:01]OFD Sender: No OFD packet to send [04:22:06]OFD Sender: No OFD packet to send [04:22:11]OFD Sender: No OFD packet to send [04:22:16]OFD Sender: No OFD packet to send [04:22:21]OFD Sender: No OFD packet to send [04:22:26]OFD Sender: No OFD packet to send [04:22:31]OFD Sender: No OFD packet to send [04:22:36]OFD Sender: No OFD packet to send [04:22:41]OFD Sender: No OFD packet to send [04:22:46]OFD Sender: No OFD packet to send [04:22:51]OFD Sender: No OFD packet to send [04:22:56]OFD Sender: No OFD packet to send [04:23:01]OFD Sender: No OFD packet to send [04:23:06]OFD Sender: No OFD packet to send [04:23:11]OFD Sender: No OFD packet to send [04:23:16]OFD Sender: No OFD packet to send [04:23:21]OFD Sender: No OFD packet to send [04:23:26]OFD Sender: No OFD packet to send [04:23:31]OFD Sender: No OFD packet to send [04:23:36]OFD Sender: No OFD packet to send [04:23:41]OFD Sender: No OFD packet to send [04:23:46]OFD Sender: No OFD packet to send [04:23:51]OFD Sender: No OFD packet to send [04:23:56]OFD Sender: No OFD packet to send [04:24:01]OFD Sender: No OFD packet to send [04:24:06]OFD Sender: No OFD packet to send [04:24:11]OFD Sender: No OFD packet to send [04:24:16]OFD Sender: No OFD packet to send [04:24:21]OFD Sender: No OFD packet to send [04:24:26]OFD Sender: No OFD packet to send [04:24:31]OFD Sender: No OFD packet to send [04:24:36]OFD Sender: No OFD packet to send [04:24:41]OFD Sender: No OFD packet to send [04:24:43]accept exits with 7 [04:24:43]New connection [04:24:43]New thread 3067395428 created [04:24:43]Thread 3067252068 joined [04:24:43]Waiting for new connection... [04:24:43] Sock 7.Parse request [04:24:43]Sock 7.Check first char [04:24:43]Sock 7.First char is OK [04:24:43]request: POST /json_proto HTTP/1.0 [04:24:43]Method: POST [04:24:43]URL: /json_proto [04:24:43]Method is POST - this is cgi request [04:24:43]url: /json_proto [04:24:43]query_string will be loaded in cgi processing [04:24:43]execute_cgi json_proto POST (null) [04:24:43]execute_cgi path=json_proto method=POST [04:24:43]POST find Content-Length [04:24:43]Host: 172.17.48.197:8080 [04:24:43]Content-Length: 678 [04:24:43]Content-Type: application/json [04:24:43] [04:24:43]POST finish read [04:24:43]Found Content-Length = 678 [04:24:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106087", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 5.660, "sum" : 350.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:24:43]execute_script... [04:24: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)1106087", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 5.660, "sum" : 350.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:24:43]POST & json_proto [04:24:43]process_json_proto [04:24:43]json parsed OK: [04:24:43]protocol is kg_v1.0 [04:24:43]action value=close_receipt [04:24:43]process_action close_receipt [04:24:43]cmd_close_receipt [04:24:43]MH_GetDate [04:24:43]Write to MH i2c: F0 00 00 64 0F 62 [04:24:43]Write i2c OK [04:24:43]MH_I2C_Read... [04:24:43]Read from MH i2c: F0 [04:24:43]MH_I2C_Read... [04:24:43]Read from MH i2c: F0 09 00 [04:24:43]MH_I2C_Read... [04:24:43]Read from MH i2c: F0 09 00 64 0F 00 8C FB E3 65 6C AF E3 65 9D [04:24:43]GetLastDocTimeStamp 1709438829 [04:24:43]current date 1709439884 [04:24:43]FM_GetShiftState [04:24:43]SAM_PROTO_GetShiftState [04:24:43]wFMCommunicate request_size=4 [04:24:43]MH_SAM_APDU [04:24:43]CAPDU: 80 13 01 00 [04:24:43]Write to MH i2c: E2 08 00 65 0F 80 13 01 00 00 00 00 00 F1 [04:24:43]Write i2c OK [04:24:43]MH_I2C_Read... [04:24:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:24:43]Read from MH i2c: E2 [04:24:43]MH_I2C_Read... [04:24:43]Read from MH i2c: E2 0E 00 [04:24:43]MH_I2C_Read... [04:24:43]Read from MH i2c: E2 0E 00 65 0F 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 B3 [04:24:43]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [04:24:43]wFMCommunicate OK [04:24:43]SAM_PROTO_GetShiftState done [04:24:43]FM_GetShiftState done [04:24:43]opened in 1709425579 [04:24:43]opened+sec_in_day 1709511979 [04:24:43]quantity*price = 35035 [04:24:43]sum+1 = 35036 [04:24:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.20 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 25 03.03.2024 04:24 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123168 ФПД: 73532869959321 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T042444&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123168&fm=73532869959321&tin=02508201610067®Number=0000000000090573&sum=35000 [04:24:44]StoreToDocumentArchive [04:24:44]shift 323 fd 123168 [04:24:44]save to /storage/0323/doc_00123168 [04:24:44]save last doc name /storage/0323/doc_00123168 to /storage/kkm_last_doc_name [04:24:44]save OK [04:24:44]Clear old archive folders... [04:24:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:24:44]tlvbuf is 00DB76C0 [04:24:44]SAM_PROTO_ClearQueue [04:24:44]wFMCommunicate request_size=4 [04:24:44]MH_SAM_APDU [04:24:44]CAPDU: 80 09 00 00 [04:24:44]Write to MH i2c: E2 08 00 72 0F 80 09 00 00 00 00 00 00 F3 [04:24:44]Write i2c OK [04:24:44]MH_I2C_Read... [04:24:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:24:44]Read from MH i2c: E2 [04:24:44]MH_I2C_Read... [04:24:44]Read from MH i2c: E2 03 00 [04:24:44]MH_I2C_Read... [04:24:44]Read from MH i2c: E2 03 00 72 0F 00 90 00 F5 [04:24:44]RAPDU: 90 00 [04:24:44]wFMCommunicate OK [04:24:44]SAM_PROTO_ClearQueue done [04:24:44]KKMCreateOFDPacket [04:24:44]OFDProtocolAddRootSTLVToBuf [04:24:44]FM_MakeSignedData [04:24:44]FM_MakeSignedData [04:24:44]SAM_PROTO_SignData [04:24:44]wFMCommunicate request_size=4 [04:24:44]MH_SAM_APDU [04:24:44]CAPDU: 80 0D 01 02 [04:24:44]Write to MH i2c: E2 08 00 73 0F 80 0D 01 02 00 00 00 00 FB [04:24:44]Write i2c OK [04:24:44]MH_I2C_Read... [04:24:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:24:44]Read from MH i2c: E2 [04:24:44]MH_I2C_Read... [04:24:44]Read from MH i2c: E2 03 00 [04:24:44]MH_I2C_Read... [04:24:44]Read from MH i2c: E2 03 00 73 0F 00 90 00 F6 [04:24:44]RAPDU: 90 00 [04:24:44]wFMCommunicate OK [04:24:44]wFMCommunicate request_size=255 [04:24:44]MH_SAM_APDU [04:24: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 16 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 DB 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 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 19 00 00 00 F4 03 04 00 8C FB E3 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 20 E1 01 00 35 04 06 00 42 [04:24:44]Write to MH i2c: E2 02 01 74 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 16 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 DB 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 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 19 00 00 00 F4 03 04 00 8C FB E3 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 20 E1 01 00 35 04 06 00 42 00 00 A7 [04:24:44]Write i2c OK [04:24:44]MH_I2C_Read... [04:24:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:24:44]Read from MH i2c: E2 [04:24:44]MH_I2C_Read... [04:24:44]Read from MH i2c: E2 03 00 [04:24:44]MH_I2C_Read... [04:24:44]Read from MH i2c: E2 03 00 74 0F 00 90 00 F7 [04:24:44]RAPDU: 90 00 [04:24:44]wFMCommunicate OK [04:24:44]wFMCommunicate request_size=10 [04:24:44]MH_SAM_APDU [04:24:44]CAPDU: 80 0D 02 02 05 E0 B4 97 DE 99 [04:24:44]Write to MH i2c: E2 0D 00 75 0F 80 0D 02 02 05 00 E0 B4 97 DE 99 00 00 AA [04:24:44]Write i2c OK [04:24:44]MH_I2C_Read... [04:24:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:24:44]Read from MH i2c: E2 [04:24:44]MH_I2C_Read... [04:24:44]Read from MH i2c: E2 03 00 [04:24:44]MH_I2C_Read... [04:24:44]Read from MH i2c: E2 03 00 75 0F 00 90 00 F8 [04:24:44]RAPDU: 90 00 [04:24:44]wFMCommunicate OK [04:24:44]wFMCommunicate request_size=4 [04:24:44]MH_SAM_APDU [04:24:44]CAPDU: 80 0D 03 02 [04:24:44]Write to MH i2c: E2 08 00 76 0F 80 0D 03 02 00 00 00 00 00 [04:24:44]Write i2c OK [04:24:44]MH_I2C_Read... [04:24:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:24:44]Read from MH i2c: E2 [04:24:44]MH_I2C_Read... [04:24:44]Read from MH i2c: E2 0B 00 [04:24:44]MH_I2C_Read... [04:24:44]Read from MH i2c: E2 0B 00 76 0F 00 FE DF 94 59 3D 8E F1 63 90 00 EA [04:24:44]RAPDU: FE DF 94 59 3D 8E F1 63 90 00 [04:24:44]wFMCommunicate OK [04:24:44]SAM_PROTO_SignData done [04:24:44]FM_MakeSignedData done [04:24:44]CreateOFDProtocolMessage [04:24:44]wFMCommunicate request_size=4 [04:24:44]MH_SAM_APDU [04:24:44]CAPDU: 80 11 00 00 [04:24:44]Write to MH i2c: E2 08 00 77 0F 80 11 00 00 00 00 00 00 00 [04:24:44]Write i2c OK [04:24:44]MH_I2C_Read... [04:24:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:24:44]Read from MH i2c: E2 [04:24:44]MH_I2C_Read... [04:24:44]Read from MH i2c: E2 17 00 [04:24:44]MH_I2C_Read... [04:24:44]Read from MH i2c: E2 17 00 77 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 5E [04:24:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [04:24:44]wFMCommunicate OK [04:24:44]CreateOFDProtocolMessage done [04:24:44]OFDSenderStorePacket 123168 [04:24:44]StoreOFDPacket docnum=123168 [04:24:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 E0 28 07 01 DB 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 16 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 DB 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 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 19 00 00 00 F4 03 04 00 8C FB E3 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 20 E1 01 00 35 04 06 00 42 E0 B4 97 DE 99 FE DF 94 59 3D 8E F1 63 [04:24:44]CheckFolder [04:24:44]dirname=/storage/ofd_packets [04:24:44]CheckFolder done [04:24:44]ProducePacketName [04:24:44]name=ofd_packets/00123168 [04:24:44]NVStorageSaveData ofd_packets/00123168 [04:24:44]File name is /storage/ofd_packets/00123168 [04:24:44]Write 301 bytes [04:24:44]NVStorageSaveData done [04:24:44]OFDSenderStorePacket done [04:24:44]KKMCreateOFDPacket done [04:24:44]NVStorageSaveData kkm_last_timestamp [04:24:44]File name is /storage/kkm_last_timestamp [04:24:44]Write 4 bytes [04:24:44]NVStorageSaveData done [04:24:44]ExternCall_PrintAddStr [04:24:44]wPrintStart [04:24:44]Write to MH i2c: 01 00 00 78 0F 87 [04:24:44]Write i2c OK [04:24:44]MH_I2C_Read... [04:24:44]Read from MH i2c: 01 [04:24:44]MH_I2C_Read... [04:24:44]Read from MH i2c: 01 07 00 [04:24:44]MH_I2C_Read... [04:24:44]Read from MH i2c: 01 07 00 78 0F 00 00 00 00 00 FF 0F 9C [04:24:44]RasterBufferAndPrint [04:24:44]line Счет N : (1)1106087 [04:24:44]line ИНН: 02508201610067 [04:24:44]line Контрольно-Кассовый Чек [04:24:44]line ПРОДАЖА [04:24:44]line ТРК (МРК, ГНК) : 11 [04:24:44]line Товар: 2710124130 [04:24:44]line Аи-92-К-5 [04:24:44]line 5.660 * 61.90 [04:24:44]line = 350.35 [04:24:44]line НДС 12% НСП 1% [04:24:44]line > о реализуемом товаре [04:24:44]line ОКРУГЛЕНИЕ: -0.35 [04:24:44]line ИТОГО: 350.00 [04:24:44]line Внесено: 350.00 [04:24:44]line СДАЧА: 0.00 [04:24:44]line НСП 1% : 3.10 [04:24:44]line НДС 12% : 37.20 [04:24:44]line Наличными: 350.00 [04:24:44]line Безнал.: 0.00 [04:24:44]line Место: АЗС № 25 "Партнер Нефть" [04:24:44]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [04:24:44]line СНО: Общий режим [04:24:44]line Чек 25 03.03.2024 04:24 [04:24:44]line Смена: 323 ФФД: 1.0 [04:24:44]line ЗНМ: 0300000019 [04:24:44]line РНМ: 0000000000090573 [04:24:44]line Версия ККМ: 001 [04:24:44]line ФМ: 0000000000874798 [04:24:44]line ФД: 123168 [04:24:44]line ФПД: 73532869959321 [04:24:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T042444&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123168&fm=73532869959321&tin=02508201610067®Number=0000000000090573&sum=35000 [04:24:45]OFD Sender: Processing packet 123168 [packets to send 112, broken 111] [04:24:45]ProducePacketName [04:24:45]name=ofd_packets/00123168 [04:24:45]OFD Sender: To server: pG, [04:24:45]CommunicateWithHost lk.salyk.kg:30040 [04:24:45]ConnectInit lk.salyk.kg [04:24:45]written 0, free lines is 4095 [04:24:45]Connected sock=10 [04:24: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 37 39 38 0F 01 00 00 E0 28 07 01 DB 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 16 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 DB 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 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 19 00 00 00 F4 03 04 00 8C FB E3 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 20 E1 01 00 35 04 06 00 42 E0 B4 97 DE 99 FE DF 94 59 3D 8E F1 63 [04:24:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 1A 63 47 00 FF C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 20 E1 01 00 F4 03 04 00 B9 A7 E3 65 B6 04 01 00 00 DD 04 D6 A7 E9 43 0C EF [04:24:45]CommunicateWithHost err = 0 [04:24:45]CheckOFDResponse [04:24:45]1017 (14) - 77093643461234 [04:24:45]1041 (16) - 0000000000874798 [04:24:45]1040 (4) - 123168 [04:24:45]1012 (4) - 02.03.2024 22:27 [04:24:45]1206 (1) - 0 [04:24:45]OFD Sender: Remove packet 123168 [04:24:45]ProducePacketName [04:24:45]name=ofd_packets/00123168 [04:24:45]NVStorageDeleteData [04:24:45]Write to MH i2c: 01 00 00 A3 0F B2 [04:24:45]Write i2c OK [04:24:45]MH_I2C_Read... [04:24:45]Read from MH i2c: 01 [04:24:45]MH_I2C_Read... [04:24:45]Read from MH i2c: 01 07 00 [04:24:45]MH_I2C_Read... [04:24:45]Read from MH i2c: 01 07 00 A3 0F 00 00 00 00 00 E3 0C A8 [04:24:45]RasterBufferAndPrint [04:24:45]line [04:24:45]line [04:24:45]line [04:24:45]line [04:24:45]line [04:24:45]written 0, free lines is 3305 [04:24:45]MH_Cut [04:24:45]Write to MH i2c: D1 01 00 AA 0F 01 8B [04:24:45]Write i2c OK [04:24:45]MH_I2C_Read... [04:24:45]Read from MH i2c: D1 [04:24:45]MH_I2C_Read... [04:24:45]Read from MH i2c: D1 01 00 [04:24:45]MH_I2C_Read... [04:24:45]Read from MH i2c: D1 01 00 AA 0F 00 8A [04:24:45]Write to MH i2c: 01 00 00 AB 0F BA [04:24:45]Write i2c OK [04:24:45]MH_I2C_Read... [04:24:45]OFD Sender: No OFD packet to send [04:24:46]*** Cut start [04:24:46]*** Purtial cut [04:24:46]*** Stage 1: CUTSNS_PIN = 1 [04:24:48]Read from MH i2c: 01 [04:24:48]MH_I2C_Read... [04:24:48]*** Stop cut motor [04:24:48]*** Cut end [04:24:48]Read from MH i2c: 01 07 00 [04:24:48]MH_I2C_Read... [04:24:48]Read from MH i2c: 01 07 00 AB 0F 00 00 00 00 00 FF 0F CF [04:24:48]process_action close_receipt done [04:24:48]requested_data is exist [04:24:48]produce_requested_data [04:24:48]requested_item fm.sn is exist - process it [04:24:48]wFMCommunicate request_size=4 [04:24:48]MH_SAM_APDU [04:24:48]CAPDU: 80 11 00 00 [04:24:48]Write to MH i2c: E2 08 00 AC 0F 80 11 00 00 00 00 00 00 35 [04:24:48]Write i2c OK [04:24:48]MH_I2C_Read... [04:24:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:24:48]Read from MH i2c: E2 [04:24:48]MH_I2C_Read... [04:24:48]Read from MH i2c: E2 17 00 [04:24:48]MH_I2C_Read... [04:24:48]Read from MH i2c: E2 17 00 AC 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 93 [04:24:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [04:24:48]wFMCommunicate OK [04:24:48]requested_item fd.num is exist - process it [04:24:48]SAM_PROTO_GetFieldsCounters [04:24:48]wFMCommunicate request_size=4 [04:24:48]MH_SAM_APDU [04:24:48]CAPDU: 80 13 00 00 [04:24:48]Write to MH i2c: E2 08 00 AD 0F 80 13 00 00 00 00 00 00 38 [04:24:48]Write i2c OK [04:24:48]MH_I2C_Read... [04:24:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:24:48]Read from MH i2c: E2 [04:24:48]MH_I2C_Read... [04:24:48]Read from MH i2c: E2 62 00 [04:24:48]MH_I2C_Read... [04:24:48]Read from MH i2c: E2 62 00 AD 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 20 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [04: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 20 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:24:48]wFMCommunicate OK [04:24:48]SAM_PROTO_GetFieldsCounters done [04:24:48]requested_item shift.num is exist - process it [04:24:48]requested_item shift.opened is exist - process it [04:24:48]req_shift_opened [04:24:48]FM_GetShiftState [04:24:48]SAM_PROTO_GetShiftState [04:24:48]wFMCommunicate request_size=4 [04:24:48]MH_SAM_APDU [04:24:48]CAPDU: 80 13 01 00 [04:24:48]Write to MH i2c: E2 08 00 AE 0F 80 13 01 00 00 00 00 00 3A [04:24:48]Write i2c OK [04:24:48]MH_I2C_Read... [04:24:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:24:48]Read from MH i2c: E2 [04:24:48]MH_I2C_Read... [04:24:48]Read from MH i2c: E2 0E 00 [04:24:48]MH_I2C_Read... [04:24:48]Read from MH i2c: E2 0E 00 AE 0F 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 FC [04:24:48]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [04:24:48]wFMCommunicate OK [04:24:48]SAM_PROTO_GetShiftState done [04:24:48]FM_GetShiftState done [04:24:48]req_shift_opened done [04:24:48]requested_item shift.open_date is exist - process it [04:24:48]req_shift_open_date [04:24:48]req_shift_open_date done [04:24:48]produce_requested_data done [04:24:48]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123168,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [04:24:48]process_action_free close_receipt [04:24:48]json_value_free [04:24:48]json_value_free done [04:24:48]process_json_proto returns [04:24:48]Send response to host [04:24:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123168,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [04:24:48]free response buf [04:24:48]execute_script done [04:24:48]execute_script returns [04:24:48]free content buf [04:24:48]Sock 7.Close socket [04:24:48]Sock 7.Thread stoped [04:24:50]OFD Sender: No OFD packet to send [04:24:55]OFD Sender: No OFD packet to send [04:25:00]OFD Sender: No OFD packet to send [04:25:05]OFD Sender: No OFD packet to send [04:25:10]OFD Sender: No OFD packet to send [04:25:15]OFD Sender: No OFD packet to send [04:25:20]OFD Sender: No OFD packet to send [04:25:25]OFD Sender: No OFD packet to send [04:25:30]OFD Sender: No OFD packet to send [04:25:35]OFD Sender: No OFD packet to send [04:25:40]OFD Sender: No OFD packet to send [04:25:46]OFD Sender: No OFD packet to send [04:25:51]OFD Sender: No OFD packet to send [04:25:56]OFD Sender: No OFD packet to send [04:26:01]OFD Sender: No OFD packet to send [04:26:06]OFD Sender: No OFD packet to send [04:26:11]OFD Sender: No OFD packet to send [04:26:16]OFD Sender: No OFD packet to send [04:26:21]OFD Sender: No OFD packet to send [04:26:26]OFD Sender: No OFD packet to send [04:26:31]OFD Sender: No OFD packet to send [04:26:36]OFD Sender: No OFD packet to send [04:26:41]OFD Sender: No OFD packet to send [04:26:46]OFD Sender: No OFD packet to send [04:26:51]OFD Sender: No OFD packet to send [04:26:56]OFD Sender: No OFD packet to send [04:27:01]OFD Sender: No OFD packet to send [04:27:06]OFD Sender: No OFD packet to send [04:27:11]OFD Sender: No OFD packet to send [04:27:16]OFD Sender: No OFD packet to send [04:27:21]OFD Sender: No OFD packet to send [04:27:26]OFD Sender: No OFD packet to send [04:27:31]OFD Sender: No OFD packet to send [04:27:36]OFD Sender: No OFD packet to send [04:27:41]OFD Sender: No OFD packet to send [04:27:46]OFD Sender: No OFD packet to send [04:27:51]OFD Sender: No OFD packet to send [04:27:56]OFD Sender: No OFD packet to send [04:28:01]OFD Sender: No OFD packet to send [04:28:06]OFD Sender: No OFD packet to send [04:28:11]OFD Sender: No OFD packet to send [04:28:16]OFD Sender: No OFD packet to send [04:28:21]OFD Sender: No OFD packet to send [04:28:26]OFD Sender: No OFD packet to send [04:28:31]OFD Sender: No OFD packet to send [04:28:36]OFD Sender: No OFD packet to send [04:28:41]OFD Sender: No OFD packet to send [04:28:46]OFD Sender: No OFD packet to send [04:28:51]OFD Sender: No OFD packet to send [04:28:56]OFD Sender: No OFD packet to send [04:29:01]OFD Sender: No OFD packet to send [04:29:06]OFD Sender: No OFD packet to send [04:29:11]OFD Sender: No OFD packet to send [04:29:16]OFD Sender: No OFD packet to send [04:29:21]OFD Sender: No OFD packet to send [04:29:26]OFD Sender: No OFD packet to send [04:29:31]OFD Sender: No OFD packet to send [04:29:36]OFD Sender: No OFD packet to send [04:29:41]OFD Sender: No OFD packet to send [04:29:46]OFD Sender: No OFD packet to send [04:29:51]OFD Sender: No OFD packet to send [04:29:56]OFD Sender: No OFD packet to send [04:30:01]OFD Sender: No OFD packet to send [04:30:06]OFD Sender: No OFD packet to send [04:30:11]OFD Sender: No OFD packet to send [04:30:16]OFD Sender: No OFD packet to send [04:30:21]OFD Sender: No OFD packet to send [04:30:26]OFD Sender: No OFD packet to send [04:30:31]OFD Sender: No OFD packet to send [04:30:36]OFD Sender: No OFD packet to send [04:30:41]OFD Sender: No OFD packet to send [04:30:46]OFD Sender: No OFD packet to send [04:30:51]OFD Sender: No OFD packet to send [04:30:56]OFD Sender: No OFD packet to send [04:31:01]OFD Sender: No OFD packet to send [04:31:06]OFD Sender: No OFD packet to send [04:31:11]OFD Sender: No OFD packet to send [04:31:16]OFD Sender: No OFD packet to send [04:31:21]OFD Sender: No OFD packet to send [04:31:26]OFD Sender: No OFD packet to send [04:31:31]OFD Sender: No OFD packet to send [04:31:36]OFD Sender: No OFD packet to send [04:31:41]OFD Sender: No OFD packet to send [04:31:46]OFD Sender: No OFD packet to send [04:31:51]OFD Sender: No OFD packet to send [04:31:56]OFD Sender: No OFD packet to send [04:32:01]OFD Sender: No OFD packet to send [04:32:06]OFD Sender: No OFD packet to send [04:32:11]OFD Sender: No OFD packet to send [04:32:16]OFD Sender: No OFD packet to send [04:32:21]OFD Sender: No OFD packet to send [04:32:26]OFD Sender: No OFD packet to send [04:32:31]OFD Sender: No OFD packet to send [04:32:36]OFD Sender: No OFD packet to send [04:32:41]OFD Sender: No OFD packet to send [04:32:46]OFD Sender: No OFD packet to send [04:32:51]OFD Sender: No OFD packet to send [04:32:56]OFD Sender: No OFD packet to send [04:33:01]OFD Sender: No OFD packet to send [04:33:06]OFD Sender: No OFD packet to send [04:33:11]OFD Sender: No OFD packet to send [04:33:16]OFD Sender: No OFD packet to send [04:33:21]OFD Sender: No OFD packet to send [04:33:26]OFD Sender: No OFD packet to send [04:33:31]OFD Sender: No OFD packet to send [04:33:36]OFD Sender: No OFD packet to send [04:33:41]OFD Sender: No OFD packet to send [04:33:46]OFD Sender: No OFD packet to send [04:33:51]OFD Sender: No OFD packet to send [04:33:56]OFD Sender: No OFD packet to send [04:34:01]OFD Sender: No OFD packet to send [04:34:06]OFD Sender: No OFD packet to send [04:34:11]OFD Sender: No OFD packet to send [04:34:16]OFD Sender: No OFD packet to send [04:34:21]OFD Sender: No OFD packet to send [04:34:26]OFD Sender: No OFD packet to send [04:34:31]OFD Sender: No OFD packet to send [04:34:36]OFD Sender: No OFD packet to send [04:34:41]OFD Sender: No OFD packet to send [04:34:46]OFD Sender: No OFD packet to send [04:34:51]OFD Sender: No OFD packet to send [04:34:56]OFD Sender: No OFD packet to send [04:35:01]OFD Sender: No OFD packet to send [04:35:06]OFD Sender: No OFD packet to send [04:35:11]OFD Sender: No OFD packet to send [04:35:16]OFD Sender: No OFD packet to send [04:35:21]OFD Sender: No OFD packet to send [04:35:26]OFD Sender: No OFD packet to send [04:35:31]OFD Sender: No OFD packet to send [04:35:36]OFD Sender: No OFD packet to send [04:35:41]OFD Sender: No OFD packet to send [04:35:46]OFD Sender: No OFD packet to send [04:35:51]OFD Sender: No OFD packet to send [04:35:56]OFD Sender: No OFD packet to send [04:36:01]OFD Sender: No OFD packet to send [04:36:06]OFD Sender: No OFD packet to send [04:36:11]OFD Sender: No OFD packet to send [04:36:16]OFD Sender: No OFD packet to send [04:36:21]OFD Sender: No OFD packet to send [04:36:26]OFD Sender: No OFD packet to send [04:36:31]OFD Sender: No OFD packet to send [04:36:36]OFD Sender: No OFD packet to send [04:36:41]OFD Sender: No OFD packet to send [04:36:46]OFD Sender: No OFD packet to send [04:36:51]OFD Sender: No OFD packet to send [04:36:56]OFD Sender: No OFD packet to send [04:37:01]OFD Sender: No OFD packet to send [04:37:06]OFD Sender: No OFD packet to send [04:37:11]OFD Sender: No OFD packet to send [04:37:16]OFD Sender: No OFD packet to send [04:37:21]OFD Sender: No OFD packet to send [04:37:26]OFD Sender: No OFD packet to send [04:37:31]OFD Sender: No OFD packet to send [04:37:36]OFD Sender: No OFD packet to send [04:37:41]OFD Sender: No OFD packet to send [04:37:46]OFD Sender: No OFD packet to send [04:37:51]OFD Sender: No OFD packet to send [04:37:56]OFD Sender: No OFD packet to send [04:38:01]OFD Sender: No OFD packet to send [04:38:06]OFD Sender: No OFD packet to send [04:38:11]OFD Sender: No OFD packet to send [04:38:14]accept exits with 9 [04:38:14]New connection [04:38:14]New thread 3067252068 created [04:38:14]Thread 3067395428 joined [04:38:14]Waiting for new connection... [04:38:14] Sock 9.Parse request [04:38:14]Sock 9.Check first char [04:38:14]Sock 9.First char is OK [04:38:14]request: POST /json_proto HTTP/1.0 [04:38:14]Method: POST [04:38:14]URL: /json_proto [04:38:14]Method is POST - this is cgi request [04:38:14]url: /json_proto [04:38:14]query_string will be loaded in cgi processing [04:38:14]execute_cgi json_proto POST (null) [04:38:14]execute_cgi path=json_proto method=POST [04:38:14]POST find Content-Length [04:38:14]Host: 172.17.48.197:8080 [04:38:14]Content-Length: 683 [04:38:14]Content-Type: application/json [04:38:14] [04:38:14]POST finish read [04:38:14]Found Content-Length = 683 [04:38:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106088", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:38:14]execute_script... [04:38: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)1106088", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:38:14]POST & json_proto [04:38:14]process_json_proto [04:38:14]json parsed OK: [04:38:14]protocol is kg_v1.0 [04:38:14]action value=close_receipt [04:38:14]process_action close_receipt [04:38:14]cmd_close_receipt [04:38:14]MH_GetDate [04:38:14]Write to MH i2c: F0 00 00 AF 0F AD [04:38:14]Write i2c OK [04:38:14]MH_I2C_Read... [04:38:14]Read from MH i2c: F0 [04:38:14]MH_I2C_Read... [04:38:14]Read from MH i2c: F0 09 00 [04:38:14]MH_I2C_Read... [04:38:14]Read from MH i2c: F0 09 00 AF 0F 00 B7 FE E3 65 6C AF E3 65 16 [04:38:14]GetLastDocTimeStamp 1709439884 [04:38:14]current date 1709440695 [04:38:14]FM_GetShiftState [04:38:14]SAM_PROTO_GetShiftState [04:38:14]wFMCommunicate request_size=4 [04:38:14]MH_SAM_APDU [04:38:14]CAPDU: 80 13 01 00 [04:38:14]Write to MH i2c: E2 08 00 B0 0F 80 13 01 00 00 00 00 00 3C [04:38:14]Write i2c OK [04:38:14]MH_I2C_Read... [04:38:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:38:14]Read from MH i2c: E2 [04:38:14]MH_I2C_Read... [04:38:14]Read from MH i2c: E2 0E 00 [04:38:14]MH_I2C_Read... [04:38:14]Read from MH i2c: E2 0E 00 B0 0F 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 FE [04:38:14]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [04:38:14]wFMCommunicate OK [04:38:14]SAM_PROTO_GetShiftState done [04:38:14]FM_GetShiftState done [04:38:14]opened in 1709425579 [04:38:14]opened+sec_in_day 1709511979 [04:38:14]quantity*price = 100010 [04:38:14]sum+1 = 100012 [04:38:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 26 03.03.2024 04:38 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123169 ФПД: 173914733694501 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T043815&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123169&fm=173914733694501&tin=02508201610067®Number=0000000000090573&sum=100000 [04:38:15]StoreToDocumentArchive [04:38:15]shift 323 fd 123169 [04:38:15]save to /storage/0323/doc_00123169 [04:38:15]save last doc name /storage/0323/doc_00123169 to /storage/kkm_last_doc_name [04:38:15]save OK [04:38:15]Clear old archive folders... [04:38:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:38:15]tlvbuf is 00DF0370 [04:38:15]SAM_PROTO_ClearQueue [04:38:15]wFMCommunicate request_size=4 [04:38:15]MH_SAM_APDU [04:38:15]CAPDU: 80 09 00 00 [04:38:15]Write to MH i2c: E2 08 00 BD 0F 80 09 00 00 00 00 00 00 3E [04:38:15]Write i2c OK [04:38:15]MH_I2C_Read... [04:38:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:38:15]Read from MH i2c: E2 [04:38:15]MH_I2C_Read... [04:38:15]Read from MH i2c: E2 03 00 [04:38:15]MH_I2C_Read... [04:38:15]Read from MH i2c: E2 03 00 BD 0F 00 90 00 40 [04:38:15]RAPDU: 90 00 [04:38:15]wFMCommunicate OK [04:38:15]SAM_PROTO_ClearQueue done [04:38:15]KKMCreateOFDPacket [04:38:15]OFDProtocolAddRootSTLVToBuf [04:38:15]FM_MakeSignedData [04:38:15]FM_MakeSignedData [04:38:15]SAM_PROTO_SignData [04:38:15]wFMCommunicate request_size=4 [04:38:15]MH_SAM_APDU [04:38:15]CAPDU: 80 0D 01 02 [04:38:15]Write to MH i2c: E2 08 00 BE 0F 80 0D 01 02 00 00 00 00 46 [04:38:15]Write i2c OK [04:38:15]MH_I2C_Read... [04:38:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:38:15]Read from MH i2c: E2 [04:38:15]MH_I2C_Read... [04:38:15]Read from MH i2c: E2 03 00 [04:38:15]MH_I2C_Read... [04:38:15]Read from MH i2c: E2 03 00 BE 0F 00 90 00 41 [04:38:15]RAPDU: 90 00 [04:38:15]wFMCommunicate OK [04:38:15]wFMCommunicate request_size=255 [04:38:15]MH_SAM_APDU [04:38:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 B7 FE E3 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 21 E1 01 00 35 04 06 00 9E [04:38:15]Write to MH i2c: E2 02 01 BF 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 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 B7 FE E3 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 21 E1 01 00 35 04 06 00 9E 00 00 A7 [04:38:15]Write i2c OK [04:38:15]MH_I2C_Read... [04:38:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:38:15]Read from MH i2c: E2 [04:38:15]MH_I2C_Read... [04:38:15]Read from MH i2c: E2 03 00 [04:38:15]MH_I2C_Read... [04:38:15]Read from MH i2c: E2 03 00 BF 0F 00 90 00 42 [04:38:15]RAPDU: 90 00 [04:38:15]wFMCommunicate OK [04:38:15]wFMCommunicate request_size=10 [04:38:15]MH_SAM_APDU [04:38:15]CAPDU: 80 0D 02 02 05 2C AD EC 4E 25 [04:38:15]Write to MH i2c: E2 0D 00 C0 0F 80 0D 02 02 05 00 2C AD EC 4E 25 00 00 8B [04:38:15]Write i2c OK [04:38:15]MH_I2C_Read... [04:38:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:38:15]Read from MH i2c: E2 [04:38:15]MH_I2C_Read... [04:38:15]Read from MH i2c: E2 03 00 [04:38:15]MH_I2C_Read... [04:38:15]Read from MH i2c: E2 03 00 C0 0F 00 90 00 43 [04:38:15]RAPDU: 90 00 [04:38:15]wFMCommunicate OK [04:38:15]wFMCommunicate request_size=4 [04:38:15]MH_SAM_APDU [04:38:15]CAPDU: 80 0D 03 02 [04:38:15]Write to MH i2c: E2 08 00 C1 0F 80 0D 03 02 00 00 00 00 4B [04:38:15]Write i2c OK [04:38:15]MH_I2C_Read... [04:38:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:38:15]Read from MH i2c: E2 [04:38:15]MH_I2C_Read... [04:38:15]Read from MH i2c: E2 0B 00 [04:38:15]MH_I2C_Read... [04:38:15]Read from MH i2c: E2 0B 00 C1 0F 00 88 6F DF BF CE 1F 47 F1 90 00 06 [04:38:15]RAPDU: 88 6F DF BF CE 1F 47 F1 90 00 [04:38:15]wFMCommunicate OK [04:38:15]SAM_PROTO_SignData done [04:38:15]FM_MakeSignedData done [04:38:15]CreateOFDProtocolMessage [04:38:15]wFMCommunicate request_size=4 [04:38:15]MH_SAM_APDU [04:38:15]CAPDU: 80 11 00 00 [04:38:15]Write to MH i2c: E2 08 00 C2 0F 80 11 00 00 00 00 00 00 4B [04:38:15]Write i2c OK [04:38:15]MH_I2C_Read... [04:38:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:38:15]Read from MH i2c: E2 [04:38:15]MH_I2C_Read... [04:38:15]Read from MH i2c: E2 17 00 [04:38:15]MH_I2C_Read... [04:38:15]Read from MH i2c: E2 17 00 C2 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 A9 [04:38:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [04:38:15]wFMCommunicate OK [04:38:15]CreateOFDProtocolMessage done [04:38:15]OFDSenderStorePacket 123169 [04:38:15]StoreOFDPacket docnum=123169 [04:38:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 BA 65 07 01 02 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 B7 FE E3 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 21 E1 01 00 35 04 06 00 9E 2C AD EC 4E 25 88 6F DF BF CE 1F 47 F1 [04:38:15]CheckFolder [04:38:15]dirname=/storage/ofd_packets [04:38:15]CheckFolder done [04:38:15]ProducePacketName [04:38:15]name=ofd_packets/00123169 [04:38:15]NVStorageSaveData ofd_packets/00123169 [04:38:15]File name is /storage/ofd_packets/00123169 [04:38:15]Write 301 bytes [04:38:15]NVStorageSaveData done [04:38:15]OFDSenderStorePacket done [04:38:15]KKMCreateOFDPacket done [04:38:15]NVStorageSaveData kkm_last_timestamp [04:38:15]File name is /storage/kkm_last_timestamp [04:38:15]Write 4 bytes [04:38:15]NVStorageSaveData done [04:38:15]ExternCall_PrintAddStr [04:38:15]wPrintStart [04:38:15]Write to MH i2c: 01 00 00 C3 0F D2 [04:38:15]Write i2c OK [04:38:15]MH_I2C_Read... [04:38:15]Read from MH i2c: 01 [04:38:15]MH_I2C_Read... [04:38:15]Read from MH i2c: 01 07 00 [04:38:15]MH_I2C_Read... [04:38:15]Read from MH i2c: 01 07 00 C3 0F 00 00 00 00 00 FF 0F E7 [04:38:15]RasterBufferAndPrint [04:38:15]line Счет N : (1)1106088 [04:38:15]line ИНН: 02508201610067 [04:38:15]line Контрольно-Кассовый Чек [04:38:15]line ПРОДАЖА [04:38:15]line ТРК (МРК, ГНК) : 53 [04:38:15]line Товар: 2710124500 [04:38:15]line Аи-95-К-5 [04:38:15]line 14.390 * 69.50 [04:38:15]line = 1000.11 [04:38:15]line НДС 12% НСП 1% [04:38:15]line > о реализуемом товаре [04:38:15]line ОКРУГЛЕНИЕ: -0.11 [04:38:15]line ИТОГО: 1000.00 [04:38:15]line Внесено: 1000.00 [04:38:15]line СДАЧА: 0.00 [04:38:15]line НСП 1% : 8.85 [04:38:15]line НДС 12% : 106.21 [04:38:15]line Наличными: 1000.00 [04:38:15]line Безнал.: 0.00 [04:38:15]line Место: АЗС № 25 "Партнер Нефть" [04:38:15]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [04:38:15]line СНО: Общий режим [04:38:15]line Чек 26 03.03.2024 04:38 [04:38:15]line Смена: 323 ФФД: 1.0 [04:38:15]line ЗНМ: 0300000019 [04:38:15]line РНМ: 0000000000090573 [04:38:15]line Версия ККМ: 001 [04:38:15]line ФМ: 0000000000874798 [04:38:15]line ФД: 123169 [04:38:15]line ФПД: 173914733694501 [04:38:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T043815&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123169&fm=173914733694501&tin=02508201610067®Number=0000000000090573&sum=100000 [04:38:15]written 0, free lines is 4095 [04:38:15]OFD Sender: Processing packet 123169 [packets to send 112, broken 111] [04:38:15]ProducePacketName [04:38:15]name=ofd_packets/00123169 [04:38:15]OFD Sender: To server: pG, [04:38:15]CommunicateWithHost lk.salyk.kg:30040 [04:38:15]ConnectInit lk.salyk.kg [04:38:15]Connected sock=10 [04:38: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 37 39 38 0F 01 00 00 BA 65 07 01 02 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 B7 FE E3 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 21 E1 01 00 35 04 06 00 9E 2C AD EC 4E 25 88 6F DF BF CE 1F 47 F1 [04:38:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 4F 42 47 00 AD 21 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 21 E1 01 00 F4 03 04 00 E4 AA E3 65 B6 04 01 00 00 C9 4A 9C 85 18 D2 8E 90 [04:38:16]CommunicateWithHost err = 0 [04:38:16]CheckOFDResponse [04:38:16]1017 (14) - 77093643461234 [04:38:16]1041 (16) - 0000000000874798 [04:38:16]1040 (4) - 123169 [04:38:16]1012 (4) - 02.03.2024 22:40 [04:38:16]1206 (1) - 0 [04:38:16]OFD Sender: Remove packet 123169 [04:38:16]ProducePacketName [04:38:16]name=ofd_packets/00123169 [04:38:16]NVStorageDeleteData [04:38:16]Write to MH i2c: 01 00 00 EE 0F FD [04:38:16]Write i2c OK [04:38:16]MH_I2C_Read... [04:38:16]Read from MH i2c: 01 [04:38:16]MH_I2C_Read... [04:38:16]Read from MH i2c: 01 07 00 [04:38:16]MH_I2C_Read... [04:38:16]Read from MH i2c: 01 07 00 EE 0F 00 00 00 00 00 E3 0C F3 [04:38:16]RasterBufferAndPrint [04:38:16]line [04:38:16]line [04:38:16]line [04:38:16]line [04:38:16]line [04:38:16]written 0, free lines is 3305 [04:38:16]MH_Cut [04:38:16]Write to MH i2c: D1 01 00 F5 0F 01 D6 [04:38:16]Write i2c OK [04:38:16]MH_I2C_Read... [04:38:16]Read from MH i2c: D1 [04:38:16]MH_I2C_Read... [04:38:16]Read from MH i2c: D1 01 00 [04:38:16]MH_I2C_Read... [04:38:16]Read from MH i2c: D1 01 00 F5 0F 00 D5 [04:38:16]Write to MH i2c: 01 00 00 F6 0F 05 [04:38:16]Write i2c OK [04:38:16]MH_I2C_Read... [04:38:16]OFD Sender: No OFD packet to send [04:38:16]*** Cut start [04:38:16]*** Purtial cut [04:38:16]*** Stage 1: CUTSNS_PIN = 1 [04:38:18]Read from MH i2c: 01 [04:38:18]MH_I2C_Read... [04:38:18]*** Stop cut motor [04:38:18]*** Cut end [04:38:18]Read from MH i2c: 01 07 00 [04:38:18]MH_I2C_Read... [04:38:18]Read from MH i2c: 01 07 00 F6 0F 00 00 00 00 00 FF 0F 1A [04:38:18]process_action close_receipt done [04:38:18]requested_data is exist [04:38:18]produce_requested_data [04:38:18]requested_item fm.sn is exist - process it [04:38:18]wFMCommunicate request_size=4 [04:38:18]MH_SAM_APDU [04:38:18]CAPDU: 80 11 00 00 [04:38:18]Write to MH i2c: E2 08 00 F7 0F 80 11 00 00 00 00 00 00 80 [04:38:18]Write i2c OK [04:38:18]MH_I2C_Read... [04:38:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:38:19]Read from MH i2c: E2 [04:38:19]MH_I2C_Read... [04:38:19]Read from MH i2c: E2 17 00 [04:38:19]MH_I2C_Read... [04:38:19]Read from MH i2c: E2 17 00 F7 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 DE [04:38:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [04:38:19]wFMCommunicate OK [04:38:19]requested_item fd.num is exist - process it [04:38:19]SAM_PROTO_GetFieldsCounters [04:38:19]wFMCommunicate request_size=4 [04:38:19]MH_SAM_APDU [04:38:19]CAPDU: 80 13 00 00 [04:38:19]Write to MH i2c: E2 08 00 F8 0F 80 13 00 00 00 00 00 00 83 [04:38:19]Write i2c OK [04:38:19]MH_I2C_Read... [04:38:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:38:19]Read from MH i2c: E2 [04:38:19]MH_I2C_Read... [04:38:19]Read from MH i2c: E2 62 00 [04:38:19]MH_I2C_Read... [04:38:19]Read from MH i2c: E2 62 00 F8 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 21 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 43 [04:38: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 21 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:38:19]wFMCommunicate OK [04:38:19]SAM_PROTO_GetFieldsCounters done [04:38:19]requested_item shift.num is exist - process it [04:38:19]requested_item shift.opened is exist - process it [04:38:19]req_shift_opened [04:38:19]FM_GetShiftState [04:38:19]SAM_PROTO_GetShiftState [04:38:19]wFMCommunicate request_size=4 [04:38:19]MH_SAM_APDU [04:38:19]CAPDU: 80 13 01 00 [04:38:19]Write to MH i2c: E2 08 00 F9 0F 80 13 01 00 00 00 00 00 85 [04:38:19]Write i2c OK [04:38:19]MH_I2C_Read... [04:38:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:38:19]Read from MH i2c: E2 [04:38:19]MH_I2C_Read... [04:38:19]Read from MH i2c: E2 0E 00 [04:38:19]MH_I2C_Read... [04:38:19]Read from MH i2c: E2 0E 00 F9 0F 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 47 [04:38:19]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [04:38:19]wFMCommunicate OK [04:38:19]SAM_PROTO_GetShiftState done [04:38:19]FM_GetShiftState done [04:38:19]req_shift_opened done [04:38:19]requested_item shift.open_date is exist - process it [04:38:19]req_shift_open_date [04:38:19]req_shift_open_date done [04:38:19]produce_requested_data done [04:38:19]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123169,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [04:38:19]process_action_free close_receipt [04:38:19]json_value_free [04:38:19]json_value_free done [04:38:19]process_json_proto returns [04:38:19]Send response to host [04:38:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123169,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [04:38:19]free response buf [04:38:19]execute_script done [04:38:19]execute_script returns [04:38:19]free content buf [04:38:19]Sock 9.Close socket [04:38:19]Sock 9.Thread stoped [04:38:21]OFD Sender: No OFD packet to send [04:38:26]OFD Sender: No OFD packet to send [04:38:31]OFD Sender: No OFD packet to send [04:38:36]OFD Sender: No OFD packet to send [04:38:41]OFD Sender: No OFD packet to send [04:38:46]OFD Sender: No OFD packet to send [04:38:51]OFD Sender: No OFD packet to send [04:38:56]OFD Sender: No OFD packet to send [04:39:01]OFD Sender: No OFD packet to send [04:39:06]OFD Sender: No OFD packet to send [04:39:11]OFD Sender: No OFD packet to send [04:39:16]OFD Sender: No OFD packet to send [04:39:21]OFD Sender: No OFD packet to send [04:39:26]OFD Sender: No OFD packet to send [04:39:31]OFD Sender: No OFD packet to send [04:39:36]OFD Sender: No OFD packet to send [04:39:41]OFD Sender: No OFD packet to send [04:39:46]OFD Sender: No OFD packet to send [04:39:51]OFD Sender: No OFD packet to send [04:39:56]OFD Sender: No OFD packet to send [04:40:01]OFD Sender: No OFD packet to send [04:40:06]OFD Sender: No OFD packet to send [04:40:11]OFD Sender: No OFD packet to send [04:40:16]OFD Sender: No OFD packet to send [04:40:21]OFD Sender: No OFD packet to send [04:40:26]OFD Sender: No OFD packet to send [04:40:31]OFD Sender: No OFD packet to send [04:40:36]OFD Sender: No OFD packet to send [04:40:41]OFD Sender: No OFD packet to send [04:40:46]OFD Sender: No OFD packet to send [04:40:51]OFD Sender: No OFD packet to send [04:40:56]OFD Sender: No OFD packet to send [04:41:01]OFD Sender: No OFD packet to send [04:41:06]OFD Sender: No OFD packet to send [04:41:11]OFD Sender: No OFD packet to send [04:41:16]OFD Sender: No OFD packet to send [04:41:21]OFD Sender: No OFD packet to send [04:41:26]OFD Sender: No OFD packet to send [04:41:31]OFD Sender: No OFD packet to send [04:41:36]OFD Sender: No OFD packet to send [04:41:41]OFD Sender: No OFD packet to send [04:41:46]OFD Sender: No OFD packet to send [04:41:51]OFD Sender: No OFD packet to send [04:41:56]OFD Sender: No OFD packet to send [04:42:01]OFD Sender: No OFD packet to send [04:42:06]OFD Sender: No OFD packet to send [04:42:11]OFD Sender: No OFD packet to send [04:42:16]OFD Sender: No OFD packet to send [04:42:21]OFD Sender: No OFD packet to send [04:42:26]OFD Sender: No OFD packet to send [04:42:31]OFD Sender: No OFD packet to send [04:42:36]OFD Sender: No OFD packet to send [04:42:41]OFD Sender: No OFD packet to send [04:42:46]OFD Sender: No OFD packet to send [04:42:51]OFD Sender: No OFD packet to send [04:42:56]OFD Sender: No OFD packet to send [04:43:01]OFD Sender: No OFD packet to send [04:43:06]OFD Sender: No OFD packet to send [04:43:11]OFD Sender: No OFD packet to send [04:43:16]OFD Sender: No OFD packet to send [04:43:21]OFD Sender: No OFD packet to send [04:43:26]OFD Sender: No OFD packet to send [04:43:31]OFD Sender: No OFD packet to send [04:43:36]OFD Sender: No OFD packet to send [04:43:41]OFD Sender: No OFD packet to send [04:43:47]OFD Sender: No OFD packet to send [04:43:52]OFD Sender: No OFD packet to send [04:43:57]OFD Sender: No OFD packet to send [04:44:02]OFD Sender: No OFD packet to send [04:44:07]OFD Sender: No OFD packet to send [04:44:12]OFD Sender: No OFD packet to send [04:44:17]OFD Sender: No OFD packet to send [04:44:22]OFD Sender: No OFD packet to send [04:44:27]OFD Sender: No OFD packet to send [04:44:32]OFD Sender: No OFD packet to send [04:44:37]OFD Sender: No OFD packet to send [04:44:42]OFD Sender: No OFD packet to send [04:44:47]OFD Sender: No OFD packet to send [04:44:52]OFD Sender: No OFD packet to send [04:44:57]OFD Sender: No OFD packet to send [04:45:02]OFD Sender: No OFD packet to send [04:45:07]OFD Sender: No OFD packet to send [04:45:12]OFD Sender: No OFD packet to send [04:45:17]OFD Sender: No OFD packet to send [04:45:22]OFD Sender: No OFD packet to send [04:45:27]OFD Sender: No OFD packet to send [04:45:32]OFD Sender: No OFD packet to send [04:45:37]OFD Sender: No OFD packet to send [04:45:42]OFD Sender: No OFD packet to send [04:45:47]OFD Sender: No OFD packet to send [04:45:52]OFD Sender: No OFD packet to send [04:45:57]OFD Sender: No OFD packet to send [04:46:02]OFD Sender: No OFD packet to send [04:46:07]OFD Sender: No OFD packet to send [04:46:12]OFD Sender: No OFD packet to send [04:46:17]OFD Sender: No OFD packet to send [04:46:22]OFD Sender: No OFD packet to send [04:46:27]OFD Sender: No OFD packet to send [04:46:32]OFD Sender: No OFD packet to send [04:46:37]OFD Sender: No OFD packet to send [04:46:42]OFD Sender: No OFD packet to send [04:46:47]OFD Sender: No OFD packet to send [04:46:52]OFD Sender: No OFD packet to send [04:46:57]OFD Sender: No OFD packet to send [04:47:02]OFD Sender: No OFD packet to send [04:47:07]OFD Sender: No OFD packet to send [04:47:12]OFD Sender: No OFD packet to send [04:47:17]OFD Sender: No OFD packet to send [04:47:22]OFD Sender: No OFD packet to send [04:47:27]OFD Sender: No OFD packet to send [04:47:32]OFD Sender: No OFD packet to send [04:47:37]OFD Sender: No OFD packet to send [04:47:42]OFD Sender: No OFD packet to send [04:47:47]OFD Sender: No OFD packet to send [04:47:52]OFD Sender: No OFD packet to send [04:47:57]OFD Sender: No OFD packet to send [04:48:02]OFD Sender: No OFD packet to send [04:48:07]OFD Sender: No OFD packet to send [04:48:12]OFD Sender: No OFD packet to send [04:48:17]OFD Sender: No OFD packet to send [04:48:22]OFD Sender: No OFD packet to send [04:48:27]OFD Sender: No OFD packet to send [04:48:32]OFD Sender: No OFD packet to send [04:48:37]OFD Sender: No OFD packet to send [04:48:42]OFD Sender: No OFD packet to send [04:48:47]OFD Sender: No OFD packet to send [04:48:52]OFD Sender: No OFD packet to send [04:48:57]OFD Sender: No OFD packet to send [04:49:02]OFD Sender: No OFD packet to send [04:49:07]OFD Sender: No OFD packet to send [04:49:12]OFD Sender: No OFD packet to send [04:49:17]OFD Sender: No OFD packet to send [04:49:22]OFD Sender: No OFD packet to send [04:49:27]OFD Sender: No OFD packet to send [04:49:32]OFD Sender: No OFD packet to send [04:49:37]OFD Sender: No OFD packet to send [04:49:42]OFD Sender: No OFD packet to send [04:49:47]OFD Sender: No OFD packet to send [04:49:52]OFD Sender: No OFD packet to send [04:49:57]OFD Sender: No OFD packet to send [04:50:02]OFD Sender: No OFD packet to send [04:50:07]OFD Sender: No OFD packet to send [04:50:12]OFD Sender: No OFD packet to send [04:50:17]OFD Sender: No OFD packet to send [04:50:22]OFD Sender: No OFD packet to send [04:50:27]OFD Sender: No OFD packet to send [04:50:32]OFD Sender: No OFD packet to send [04:50:37]OFD Sender: No OFD packet to send [04:50:42]OFD Sender: No OFD packet to send [04:50:47]OFD Sender: No OFD packet to send [04:50:52]OFD Sender: No OFD packet to send [04:50:57]OFD Sender: No OFD packet to send [04:51:02]OFD Sender: No OFD packet to send [04:51:07]OFD Sender: No OFD packet to send [04:51:12]OFD Sender: No OFD packet to send [04:51:17]OFD Sender: No OFD packet to send [04:51:22]OFD Sender: No OFD packet to send [04:51:27]OFD Sender: No OFD packet to send [04:51:32]OFD Sender: No OFD packet to send [04:51:37]OFD Sender: No OFD packet to send [04:51:42]OFD Sender: No OFD packet to send [04:51:47]OFD Sender: No OFD packet to send [04:51:52]OFD Sender: No OFD packet to send [04:51:57]OFD Sender: No OFD packet to send [04:52:02]OFD Sender: No OFD packet to send [04:52:07]OFD Sender: No OFD packet to send [04:52:12]OFD Sender: No OFD packet to send [04:52:17]OFD Sender: No OFD packet to send [04:52:22]OFD Sender: No OFD packet to send [04:52:27]OFD Sender: No OFD packet to send [04:52:32]OFD Sender: No OFD packet to send [04:52:37]OFD Sender: No OFD packet to send [04:52:42]OFD Sender: No OFD packet to send [04:52:47]OFD Sender: No OFD packet to send [04:52:52]OFD Sender: No OFD packet to send [04:52:57]OFD Sender: No OFD packet to send [04:53:02]OFD Sender: No OFD packet to send [04:53:07]OFD Sender: No OFD packet to send [04:53:12]OFD Sender: No OFD packet to send [04:53:17]OFD Sender: No OFD packet to send [04:53:22]OFD Sender: No OFD packet to send [04:53:27]OFD Sender: No OFD packet to send [04:53:32]OFD Sender: No OFD packet to send [04:53:37]OFD Sender: No OFD packet to send [04:53:42]OFD Sender: No OFD packet to send [04:53:47]OFD Sender: No OFD packet to send [04:53:52]OFD Sender: No OFD packet to send [04:53:57]OFD Sender: No OFD packet to send [04:54:02]OFD Sender: No OFD packet to send [04:54:07]OFD Sender: No OFD packet to send [04:54:12]OFD Sender: No OFD packet to send [04:54:17]OFD Sender: No OFD packet to send [04:54:22]OFD Sender: No OFD packet to send [04:54:27]OFD Sender: No OFD packet to send [04:54:32]OFD Sender: No OFD packet to send [04:54:37]OFD Sender: No OFD packet to send [04:54:42]OFD Sender: No OFD packet to send [04:54:47]OFD Sender: No OFD packet to send [04:54:52]OFD Sender: No OFD packet to send [04:54:57]OFD Sender: No OFD packet to send [04:55:02]OFD Sender: No OFD packet to send [04:55:07]OFD Sender: No OFD packet to send [04:55:12]OFD Sender: No OFD packet to send [04:55:17]OFD Sender: No OFD packet to send [04:55:22]OFD Sender: No OFD packet to send [04:55:27]OFD Sender: No OFD packet to send [04:55:32]OFD Sender: No OFD packet to send [04:55:37]OFD Sender: No OFD packet to send [04:55:42]OFD Sender: No OFD packet to send [04:55:47]OFD Sender: No OFD packet to send [04:55:52]OFD Sender: No OFD packet to send [04:55:57]OFD Sender: No OFD packet to send [04:56:02]OFD Sender: No OFD packet to send [04:56:07]OFD Sender: No OFD packet to send [04:56:12]OFD Sender: No OFD packet to send [04:56:17]OFD Sender: No OFD packet to send [04:56:22]OFD Sender: No OFD packet to send [04:56:27]OFD Sender: No OFD packet to send [04:56:32]OFD Sender: No OFD packet to send [04:56:37]OFD Sender: No OFD packet to send [04:56:42]OFD Sender: No OFD packet to send [04:56:47]OFD Sender: No OFD packet to send [04:56:52]OFD Sender: No OFD packet to send [04:56:57]OFD Sender: No OFD packet to send [04:57:02]OFD Sender: No OFD packet to send [04:57:07]OFD Sender: No OFD packet to send [04:57:12]OFD Sender: No OFD packet to send [04:57:17]OFD Sender: No OFD packet to send [04:57:22]OFD Sender: No OFD packet to send [04:57:27]OFD Sender: No OFD packet to send [04:57:32]OFD Sender: No OFD packet to send [04:57:37]OFD Sender: No OFD packet to send [04:57:42]OFD Sender: No OFD packet to send [04:57:47]OFD Sender: No OFD packet to send [04:57:52]OFD Sender: No OFD packet to send [04:57:57]OFD Sender: No OFD packet to send [04:58:02]OFD Sender: No OFD packet to send [04:58:07]OFD Sender: No OFD packet to send [04:58:12]OFD Sender: No OFD packet to send [04:58:17]OFD Sender: No OFD packet to send [04:58:22]OFD Sender: No OFD packet to send [04:58:27]OFD Sender: No OFD packet to send [04:58:32]OFD Sender: No OFD packet to send [04:58:37]OFD Sender: No OFD packet to send [04:58: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:38]OFD Sender: No OFD packet to send [05:00:43]OFD Sender: No OFD packet to send [05:00:48]OFD Sender: No OFD packet to send [05:00:53]OFD Sender: No OFD packet to send [05:00:58]OFD Sender: No OFD packet to send [05:01:03]OFD Sender: No OFD packet to send [05:01:08]OFD Sender: No OFD packet to send [05:01:13]OFD Sender: No OFD packet to send [05:01:18]OFD Sender: No OFD packet to send [05:01:23]OFD Sender: No OFD packet to send [05:01:28]OFD Sender: No OFD packet to send [05:01:33]OFD Sender: No OFD packet to send [05:01:38]OFD Sender: No OFD packet to send [05:01:43]OFD Sender: No OFD packet to send [05:01:48]OFD Sender: No OFD packet to send [05:01:53]OFD Sender: No OFD packet to send [05:01:58]OFD Sender: No OFD packet to send [05:02:03]OFD Sender: No OFD packet to send [05:02:08]OFD Sender: No OFD packet to send [05:02:13]OFD Sender: No OFD packet to send [05:02:18]OFD Sender: No OFD packet to send [05:02:23]OFD Sender: No OFD packet to send [05:02:28]OFD Sender: No OFD packet to send [05:02:33]OFD Sender: No OFD packet to send [05:02:38]OFD Sender: No OFD packet to send [05:02:43]OFD Sender: No OFD packet to send [05:02:48]OFD Sender: No OFD packet to send [05:02:53]OFD Sender: No OFD packet to send [05:02:58]OFD Sender: No OFD packet to send [05:03:03]OFD Sender: No OFD packet to send [05:03:08]OFD Sender: No OFD packet to send [05:03:13]OFD Sender: No OFD packet to send [05:03:18]OFD Sender: No OFD packet to send [05:03:23]OFD Sender: No OFD packet to send [05:03:28]OFD Sender: No OFD packet to send [05:03:33]OFD Sender: No OFD packet to send [05:03:38]OFD Sender: No OFD packet to send [05:03:43]OFD Sender: No OFD packet to send [05:03:48]OFD Sender: No OFD packet to send [05:03:53]OFD Sender: No OFD packet to send [05:03:58]OFD Sender: No OFD packet to send [05:04:03]OFD Sender: No OFD packet to send [05:04:08]OFD Sender: No OFD packet to send [05:04:13]OFD Sender: No OFD packet to send [05:04:18]OFD Sender: No OFD packet to send [05:04:23]OFD Sender: No OFD packet to send [05:04:28]OFD Sender: No OFD packet to send [05:04:33]OFD Sender: No OFD packet to send [05:04:38]OFD Sender: No OFD packet to send [05:04:43]OFD Sender: No OFD packet to send [05:04:48]OFD Sender: No OFD packet to send [05:04:53]OFD Sender: No OFD packet to send [05:04:58]OFD Sender: No OFD packet to send [05:05:03]OFD Sender: No OFD packet to send [05:05:08]OFD Sender: No OFD packet to send [05:05:13]OFD Sender: No OFD packet to send [05:05:18]OFD Sender: No OFD packet to send [05:05:23]OFD Sender: No OFD packet to send [05:05:28]OFD Sender: No OFD packet to send [05:05:33]OFD Sender: No OFD packet to send [05:05:38]OFD Sender: No OFD packet to send [05:05:43]OFD Sender: No OFD packet to send [05:05:48]OFD Sender: No OFD packet to send [05:05:53]OFD Sender: No OFD packet to send [05:05:58]OFD Sender: No OFD packet to send [05:06:03]OFD Sender: No OFD packet to send [05:06:08]OFD Sender: No OFD packet to send [05:06:13]accept exits with 7 [05:06:13]New connection [05:06:13]New thread 3067395428 created [05:06:13]Thread 3067252068 joined [05:06:13]Waiting for new connection... [05:06:13] Sock 7.Parse request [05:06:13]Sock 7.Check first char [05:06:13]Sock 7.First char is OK [05:06:13]request: POST /json_proto HTTP/1.0 [05:06:13]Method: POST [05:06:13]URL: /json_proto [05:06:13]Method is POST - this is cgi request [05:06:13]url: /json_proto [05:06:13]query_string will be loaded in cgi processing [05:06:13]execute_cgi json_proto POST (null) [05:06:13]execute_cgi path=json_proto method=POST [05:06:13]POST find Content-Length [05:06:13]Host: 172.17.48.197:8080 [05:06:13]Content-Length: 641 [05:06:13]Content-Type: application/json [05:06:13] [05:06:13]POST finish read [05:06:13]Found Content-Length = 641 [05:06:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106089", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 10.000, "sum" : 619.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 619.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:06:13]execute_script... [05:06: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)1106089", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 10.000, "sum" : 619.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 619.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:06:13]POST & json_proto [05:06:13]process_json_proto [05:06:13]json parsed OK: [05:06:13]protocol is kg_v1.0 [05:06:13]action value=close_receipt [05:06:13]process_action close_receipt [05:06:13]cmd_close_receipt [05:06:13]MH_GetDate [05:06:13]Write to MH i2c: F0 00 00 FA 0F F8 [05:06:13]Write i2c OK [05:06:13]MH_I2C_Read... [05:06:13]Read from MH i2c: F0 [05:06:13]MH_I2C_Read... [05:06:13]Read from MH i2c: F0 09 00 [05:06:13]MH_I2C_Read... [05:06:13]Read from MH i2c: F0 09 00 FA 0F 00 46 05 E4 65 6C AF E3 65 F8 [05:06:13]GetLastDocTimeStamp 1709440695 [05:06:13]current date 1709442374 [05:06:13]FM_GetShiftState [05:06:13]SAM_PROTO_GetShiftState [05:06:13]wFMCommunicate request_size=4 [05:06:13]MH_SAM_APDU [05:06:13]CAPDU: 80 13 01 00 [05:06:13]Write to MH i2c: E2 08 00 FB 0F 80 13 01 00 00 00 00 00 87 [05:06:13]Write i2c OK [05:06:13]MH_I2C_Read... [05:06:13]OFD Sender: No OFD packet to send [05:06:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:06:13]Read from MH i2c: E2 [05:06:13]MH_I2C_Read... [05:06:13]Read from MH i2c: E2 0E 00 [05:06:13]MH_I2C_Read... [05:06:13]Read from MH i2c: E2 0E 00 FB 0F 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 49 [05:06:13]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [05:06:13]wFMCommunicate OK [05:06:13]SAM_PROTO_GetShiftState done [05:06:13]FM_GetShiftState done [05:06:13]opened in 1709425579 [05:06:13]opened+sec_in_day 1709511979 [05:06:13]quantity*price = 61900 [05:06:13]sum+1 = 61901 [05:06:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 619.00 НСП 1% : 5.48 НДС 12% : 65.73 Наличными: 619.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 27 03.03.2024 05:06 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123170 ФПД: 139001671447598 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T050614&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123170&fm=139001671447598&tin=02508201610067®Number=0000000000090573&sum=61900 [05:06:14]StoreToDocumentArchive [05:06:14]shift 323 fd 123170 [05:06:14]save to /storage/0323/doc_00123170 [05:06:14]save last doc name /storage/0323/doc_00123170 to /storage/kkm_last_doc_name [05:06:14]save OK [05:06:14]Clear old archive folders... [05:06:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:06:14]tlvbuf is 00DF2D70 [05:06:14]SAM_PROTO_ClearQueue [05:06:14]wFMCommunicate request_size=4 [05:06:14]MH_SAM_APDU [05:06:14]CAPDU: 80 09 00 00 [05:06:14]Write to MH i2c: E2 08 00 08 10 80 09 00 00 00 00 00 00 8A [05:06:14]Write i2c OK [05:06:14]MH_I2C_Read... [05:06:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:06:14]Read from MH i2c: E2 [05:06:14]MH_I2C_Read... [05:06:14]Read from MH i2c: E2 03 00 [05:06:14]MH_I2C_Read... [05:06:14]Read from MH i2c: E2 03 00 08 10 00 90 00 8C [05:06:14]RAPDU: 90 00 [05:06:14]wFMCommunicate OK [05:06:14]SAM_PROTO_ClearQueue done [05:06:14]KKMCreateOFDPacket [05:06:14]OFDProtocolAddRootSTLVToBuf [05:06:14]FM_MakeSignedData [05:06:14]FM_MakeSignedData [05:06:14]SAM_PROTO_SignData [05:06:14]wFMCommunicate request_size=4 [05:06:14]MH_SAM_APDU [05:06:14]CAPDU: 80 0D 01 02 [05:06:14]Write to MH i2c: E2 08 00 09 10 80 0D 01 02 00 00 00 00 92 [05:06:14]Write i2c OK [05:06:14]MH_I2C_Read... [05:06:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:06:14]Read from MH i2c: E2 [05:06:14]MH_I2C_Read... [05:06:14]Read from MH i2c: E2 03 00 [05:06:14]MH_I2C_Read... [05:06:14]Read from MH i2c: E2 03 00 09 10 00 90 00 8D [05:06:14]RAPDU: 90 00 [05:06:14]wFMCommunicate OK [05:06:14]wFMCommunicate request_size=255 [05:06:14]MH_SAM_APDU [05:06: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 CC F1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC F1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 19 00 00 00 00 07 04 06 00 CC F1 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 46 05 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 22 E1 01 00 35 04 06 00 7E [05:06:14]Write to MH i2c: E2 02 01 0A 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 CC F1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC F1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 19 00 00 00 00 07 04 06 00 CC F1 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 46 05 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 22 E1 01 00 35 04 06 00 7E 00 00 BB [05:06:14]Write i2c OK [05:06:14]MH_I2C_Read... [05:06:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:06:15]Read from MH i2c: E2 [05:06:15]MH_I2C_Read... [05:06:15]Read from MH i2c: E2 03 00 [05:06:15]MH_I2C_Read... [05:06:15]Read from MH i2c: E2 03 00 0A 10 00 90 00 8E [05:06:15]RAPDU: 90 00 [05:06:15]wFMCommunicate OK [05:06:15]wFMCommunicate request_size=10 [05:06:15]MH_SAM_APDU [05:06:15]CAPDU: 80 0D 02 02 05 6B D9 3F F4 2E [05:06:15]Write to MH i2c: E2 0D 00 0B 10 80 0D 02 02 05 00 6B D9 3F F4 2E 00 00 44 [05:06:15]Write i2c OK [05:06:15]MH_I2C_Read... [05:06:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:06:15]Read from MH i2c: E2 [05:06:15]MH_I2C_Read... [05:06:15]Read from MH i2c: E2 03 00 [05:06:15]MH_I2C_Read... [05:06:15]Read from MH i2c: E2 03 00 0B 10 00 90 00 8F [05:06:15]RAPDU: 90 00 [05:06:15]wFMCommunicate OK [05:06:15]wFMCommunicate request_size=4 [05:06:15]MH_SAM_APDU [05:06:15]CAPDU: 80 0D 03 02 [05:06:15]Write to MH i2c: E2 08 00 0C 10 80 0D 03 02 00 00 00 00 97 [05:06:15]Write i2c OK [05:06:15]MH_I2C_Read... [05:06:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:06:15]Read from MH i2c: E2 [05:06:15]MH_I2C_Read... [05:06:15]Read from MH i2c: E2 0B 00 [05:06:15]MH_I2C_Read... [05:06:15]Read from MH i2c: E2 0B 00 0C 10 00 DE 16 46 3D 78 C5 32 3A 90 00 B8 [05:06:15]RAPDU: DE 16 46 3D 78 C5 32 3A 90 00 [05:06:15]wFMCommunicate OK [05:06:15]SAM_PROTO_SignData done [05:06:15]FM_MakeSignedData done [05:06:15]CreateOFDProtocolMessage [05:06:15]wFMCommunicate request_size=4 [05:06:15]MH_SAM_APDU [05:06:15]CAPDU: 80 11 00 00 [05:06:15]Write to MH i2c: E2 08 00 0D 10 80 11 00 00 00 00 00 00 97 [05:06:15]Write i2c OK [05:06:15]MH_I2C_Read... [05:06:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:06:15]Read from MH i2c: E2 [05:06:15]MH_I2C_Read... [05:06:15]Read from MH i2c: E2 17 00 [05:06:15]MH_I2C_Read... [05:06:15]Read from MH i2c: E2 17 00 0D 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 F5 [05:06:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [05:06:15]wFMCommunicate OK [05:06:15]CreateOFDProtocolMessage done [05:06:15]OFDSenderStorePacket 123170 [05:06:15]StoreOFDPacket docnum=123170 [05:06:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 64 0A 07 01 5F C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 CC F1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC F1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 19 00 00 00 00 07 04 06 00 CC F1 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 46 05 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 22 E1 01 00 35 04 06 00 7E 6B D9 3F F4 2E DE 16 46 3D 78 C5 32 3A [05:06:15]CheckFolder [05:06:15]dirname=/storage/ofd_packets [05:06:15]CheckFolder done [05:06:15]ProducePacketName [05:06:15]name=ofd_packets/00123170 [05:06:15]NVStorageSaveData ofd_packets/00123170 [05:06:15]File name is /storage/ofd_packets/00123170 [05:06:15]Write 301 bytes [05:06:15]NVStorageSaveData done [05:06:15]OFDSenderStorePacket done [05:06:15]KKMCreateOFDPacket done [05:06:15]NVStorageSaveData kkm_last_timestamp [05:06:15]File name is /storage/kkm_last_timestamp [05:06:15]Write 4 bytes [05:06:15]NVStorageSaveData done [05:06:15]ExternCall_PrintAddStr [05:06:15]wPrintStart [05:06:15]Write to MH i2c: 01 00 00 0E 10 1E [05:06:15]Write i2c OK [05:06:15]MH_I2C_Read... [05:06:15]Read from MH i2c: 01 [05:06:15]MH_I2C_Read... [05:06:15]Read from MH i2c: 01 07 00 [05:06:15]MH_I2C_Read... [05:06:15]Read from MH i2c: 01 07 00 0E 10 00 00 00 00 00 FF 0F 33 [05:06:15]RasterBufferAndPrint [05:06:15]line Счет N : (1)1106089 [05:06:15]line ИНН: 02508201610067 [05:06:15]line Контрольно-Кассовый Чек [05:06:15]line ПРОДАЖА [05:06:15]line ТРК (МРК, ГНК) : 52 [05:06:15]line Товар: 2710124130 [05:06:15]line Аи-92-К-5 [05:06:15]line 10.000 * 61.90 [05:06:15]line = 619.00 [05:06:15]line НДС 12% НСП 1% [05:06:15]line > о реализуемом товаре [05:06:15]line ИТОГО: 619.00 [05:06:15]line НСП 1% : 5.48 [05:06:15]line НДС 12% : 65.73 [05:06:15]line Наличными: 619.00 [05:06:15]line Безнал.: 0.00 [05:06:15]line Место: АЗС № 25 "Партнер Нефть" [05:06:15]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [05:06:15]line СНО: Общий режим [05:06:15]line Чек 27 03.03.2024 05:06 [05:06:15]line Смена: 323 ФФД: 1.0 [05:06:15]line ЗНМ: 0300000019 [05:06:15]line РНМ: 0000000000090573 [05:06:15]line Версия ККМ: 001 [05:06:15]line ФМ: 0000000000874798 [05:06:15]line ФД: 123170 [05:06:15]line ФПД: 139001671447598 [05:06:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T050614&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123170&fm=139001671447598&tin=02508201610067®Number=0000000000090573&sum=61900 [05:06:15]OFD Sender: Processing packet 123170 [packets to send 112, broken 111] [05:06:15]ProducePacketName [05:06:15]name=ofd_packets/00123170 [05:06:15]OFD Sender: To server: pG, [05:06:15]CommunicateWithHost lk.salyk.kg:30040 [05:06:15]ConnectInit lk.salyk.kg [05:06:15]written 0, free lines is 4095 [05:06:15]Connected sock=10 [05:06: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 37 39 38 0F 01 00 00 64 0A 07 01 5F C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 CC F1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC F1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 19 00 00 00 00 07 04 06 00 CC F1 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 46 05 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 22 E1 01 00 35 04 06 00 7E 6B D9 3F F4 2E DE 16 46 3D 78 C5 32 3A [05:06:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 26 C6 47 00 21 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 22 E1 01 00 F4 03 04 00 73 B1 E3 65 B6 04 01 00 00 FF 23 CF EF 5C 37 65 4B [05:06:15]CommunicateWithHost err = 0 [05:06:15]CheckOFDResponse [05:06:15]1017 (14) - 77093643461234 [05:06:15]1041 (16) - 0000000000874798 [05:06:15]1040 (4) - 123170 [05:06:15]1012 (4) - 02.03.2024 23:08 [05:06:15]1206 (1) - 0 [05:06:15]OFD Sender: Remove packet 123170 [05:06:15]ProducePacketName [05:06:15]name=ofd_packets/00123170 [05:06:15]NVStorageDeleteData [05:06:15]Write to MH i2c: 01 00 00 36 10 46 [05:06:15]Write i2c OK [05:06:15]MH_I2C_Read... [05:06:15]Read from MH i2c: 01 [05:06:15]MH_I2C_Read... [05:06:15]Read from MH i2c: 01 07 00 [05:06:15]MH_I2C_Read... [05:06:15]Read from MH i2c: 01 07 00 36 10 00 00 00 00 00 12 0D 6C [05:06:15]RasterBufferAndPrint [05:06:15]line [05:06:15]line [05:06:15]line [05:06:15]line [05:06:15]line [05:06:15]written 0, free lines is 3352 [05:06:15]MH_Cut [05:06:15]Write to MH i2c: D1 01 00 3D 10 01 1F [05:06:15]Write i2c OK [05:06:15]MH_I2C_Read... [05:06:15]Read from MH i2c: D1 [05:06:15]MH_I2C_Read... [05:06:15]Read from MH i2c: D1 01 00 [05:06:15]MH_I2C_Read... [05:06:15]Read from MH i2c: D1 01 00 3D 10 00 1E [05:06:15]Write to MH i2c: 01 00 00 3E 10 4E [05:06:15]Write i2c OK [05:06:15]MH_I2C_Read... [05:06:16]OFD Sender: No OFD packet to send [05:06:16]*** Cut start [05:06:16]*** Purtial cut [05:06:16]*** Stage 1: CUTSNS_PIN = 1 [05:06:18]Read from MH i2c: 01 [05:06:18]MH_I2C_Read... [05:06:18]*** Stop cut motor [05:06:18]*** Cut end [05:06:18]Read from MH i2c: 01 07 00 [05:06:18]MH_I2C_Read... [05:06:18]Read from MH i2c: 01 07 00 3E 10 00 00 00 00 00 FF 0F 63 [05:06:18]process_action close_receipt done [05:06:18]requested_data is exist [05:06:18]produce_requested_data [05:06:18]requested_item fm.sn is exist - process it [05:06:18]wFMCommunicate request_size=4 [05:06:18]MH_SAM_APDU [05:06:18]CAPDU: 80 11 00 00 [05:06:18]Write to MH i2c: E2 08 00 3F 10 80 11 00 00 00 00 00 00 C9 [05:06:18]Write i2c OK [05:06:18]MH_I2C_Read... [05:06:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:06:18]Read from MH i2c: E2 [05:06:18]MH_I2C_Read... [05:06:18]Read from MH i2c: E2 17 00 [05:06:18]MH_I2C_Read... [05:06:18]Read from MH i2c: E2 17 00 3F 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 27 [05:06:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [05:06:18]wFMCommunicate OK [05:06:18]requested_item fd.num is exist - process it [05:06:18]SAM_PROTO_GetFieldsCounters [05:06:18]wFMCommunicate request_size=4 [05:06:18]MH_SAM_APDU [05:06:18]CAPDU: 80 13 00 00 [05:06:18]Write to MH i2c: E2 08 00 40 10 80 13 00 00 00 00 00 00 CC [05:06:18]Write i2c OK [05:06:18]MH_I2C_Read... [05:06:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:06:18]Read from MH i2c: E2 [05:06:18]MH_I2C_Read... [05:06:18]Read from MH i2c: E2 62 00 [05:06:18]MH_I2C_Read... [05:06:18]Read from MH i2c: E2 62 00 40 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 22 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 90 [05:06: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 22 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:06:18]wFMCommunicate OK [05:06:18]SAM_PROTO_GetFieldsCounters done [05:06:18]requested_item shift.num is exist - process it [05:06:18]requested_item shift.opened is exist - process it [05:06:18]req_shift_opened [05:06:18]FM_GetShiftState [05:06:18]SAM_PROTO_GetShiftState [05:06:18]wFMCommunicate request_size=4 [05:06:18]MH_SAM_APDU [05:06:18]CAPDU: 80 13 01 00 [05:06:18]Write to MH i2c: E2 08 00 41 10 80 13 01 00 00 00 00 00 CE [05:06:18]Write i2c OK [05:06:18]MH_I2C_Read... [05:06:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:06:18]Read from MH i2c: E2 [05:06:18]MH_I2C_Read... [05:06:18]Read from MH i2c: E2 0E 00 [05:06:18]MH_I2C_Read... [05:06:18]Read from MH i2c: E2 0E 00 41 10 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 90 [05:06:18]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [05:06:18]wFMCommunicate OK [05:06:18]SAM_PROTO_GetShiftState done [05:06:18]FM_GetShiftState done [05:06:18]req_shift_opened done [05:06:18]requested_item shift.open_date is exist - process it [05:06:18]req_shift_open_date [05:06:18]req_shift_open_date done [05:06:18]produce_requested_data done [05:06:18]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123170,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [05:06:18]process_action_free close_receipt [05:06:18]json_value_free [05:06:18]json_value_free done [05:06:18]process_json_proto returns [05:06:18]Send response to host [05:06:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123170,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [05:06:18]free response buf [05:06:18]execute_script done [05:06:18]execute_script returns [05:06:18]free content buf [05:06:18]Sock 7.Close socket [05:06:18]Sock 7.Thread stoped [05:06:21]OFD Sender: No OFD packet to send [05:06:26]OFD Sender: No OFD packet to send [05:06:31]OFD Sender: No OFD packet to send [05:06:36]OFD Sender: No OFD packet to send [05:06:41]OFD Sender: No OFD packet to send [05:06:46]OFD Sender: No OFD packet to send [05:06:51]OFD Sender: No OFD packet to send [05:06:56]OFD Sender: No OFD packet to send [05:07:01]OFD Sender: No OFD packet to send [05:07:06]OFD Sender: No OFD packet to send [05:07:11]OFD Sender: No OFD packet to send [05:07:16]OFD Sender: No OFD packet to send [05:07:21]OFD Sender: No OFD packet to send [05:07:26]OFD Sender: No OFD packet to send [05:07:31]OFD Sender: No OFD packet to send [05:07:36]OFD Sender: No OFD packet to send [05:07:41]OFD Sender: No OFD packet to send [05:07:46]OFD Sender: No OFD packet to send [05:07:51]OFD Sender: No OFD packet to send [05:07:56]OFD Sender: No OFD packet to send [05:08:01]OFD Sender: No OFD packet to send [05:08:06]OFD Sender: No OFD packet to send [05:08:11]OFD Sender: No OFD packet to send [05:08:16]OFD Sender: No OFD packet to send [05:08:21]OFD Sender: No OFD packet to send [05:08:26]OFD Sender: No OFD packet to send [05:08:31]OFD Sender: No OFD packet to send [05:08:36]OFD Sender: No OFD packet to send [05:08:41]OFD Sender: No OFD packet to send [05:08:46]OFD Sender: No OFD packet to send [05:08:51]OFD Sender: No OFD packet to send [05:08:56]OFD Sender: No OFD packet to send [05:09:01]OFD Sender: No OFD packet to send [05:09:06]OFD Sender: No OFD packet to send [05:09:11]OFD Sender: No OFD packet to send [05:09:16]OFD Sender: No OFD packet to send [05:09:21]OFD Sender: No OFD packet to send [05:09:26]OFD Sender: No OFD packet to send [05:09:31]OFD Sender: No OFD packet to send [05:09:36]OFD Sender: No OFD packet to send [05:09:41]OFD Sender: No OFD packet to send [05:09:46]OFD Sender: No OFD packet to send [05:09:51]OFD Sender: No OFD packet to send [05:09:56]OFD Sender: No OFD packet to send [05:10:01]OFD Sender: No OFD packet to send [05:10:06]OFD Sender: No OFD packet to send [05:10:11]OFD Sender: No OFD packet to send [05:10:16]OFD Sender: No OFD packet to send [05:10:21]OFD Sender: No OFD packet to send [05:10:26]OFD Sender: No OFD packet to send [05:10:31]OFD Sender: No OFD packet to send [05:10:36]OFD Sender: No OFD packet to send [05:10:41]OFD Sender: No OFD packet to send [05:10:46]OFD Sender: No OFD packet to send [05:10:51]OFD Sender: No OFD packet to send [05:10:56]OFD Sender: No OFD packet to send [05:11:01]OFD Sender: No OFD packet to send [05:11:06]OFD Sender: No OFD packet to send [05:11:11]OFD Sender: No OFD packet to send [05:11:16]OFD Sender: No OFD packet to send [05:11:21]OFD Sender: No OFD packet to send [05:11:26]OFD Sender: No OFD packet to send [05:11:31]OFD Sender: No OFD packet to send [05:11:36]OFD Sender: No OFD packet to send [05:11:41]OFD Sender: No OFD packet to send [05:11:46]OFD Sender: No OFD packet to send [05:11:51]OFD Sender: No OFD packet to send [05:11:56]OFD Sender: No OFD packet to send [05:12:01]OFD Sender: No OFD packet to send [05:12:06]OFD Sender: No OFD packet to send [05:12:11]OFD Sender: No OFD packet to send [05:12:16]OFD Sender: No OFD packet to send [05:12:21]OFD Sender: No OFD packet to send [05:12:26]OFD Sender: No OFD packet to send [05:12:31]OFD Sender: No OFD packet to send [05:12:36]OFD Sender: No OFD packet to send [05:12:41]OFD Sender: No OFD packet to send [05:12:46]OFD Sender: No OFD packet to send [05:12:51]OFD Sender: No OFD packet to send [05:12:56]OFD Sender: No OFD packet to send [05:13:01]OFD Sender: No OFD packet to send [05:13:06]OFD Sender: No OFD packet to send [05:13:11]OFD Sender: No OFD packet to send [05:13:16]OFD Sender: No OFD packet to send [05:13:21]OFD Sender: No OFD packet to send [05:13:26]OFD Sender: No OFD packet to send [05:13:31]OFD Sender: No OFD packet to send [05:13:36]OFD Sender: No OFD packet to send [05:13:41]OFD Sender: No OFD packet to send [05:13:46]OFD Sender: No OFD packet to send [05:13:51]OFD Sender: No OFD packet to send [05:13:56]OFD Sender: No OFD packet to send [05:14:01]OFD Sender: No OFD packet to send [05:14:06]OFD Sender: No OFD packet to send [05:14:11]OFD Sender: No OFD packet to send [05:14:16]OFD Sender: No OFD packet to send [05:14:21]OFD Sender: No OFD packet to send [05:14:26]OFD Sender: No OFD packet to send [05:14:31]OFD Sender: No OFD packet to send [05:14:36]OFD Sender: No OFD packet to send [05:14:41]OFD Sender: No OFD packet to send [05:14:46]OFD Sender: No OFD packet to send [05:14:51]OFD Sender: No OFD packet to send [05:14:56]OFD Sender: No OFD packet to send [05:15:01]OFD Sender: No OFD packet to send [05:15:06]OFD Sender: No OFD packet to send [05:15:11]OFD Sender: No OFD packet to send [05:15:16]OFD Sender: No OFD packet to send [05:15:21]OFD Sender: No OFD packet to send [05:15:26]OFD Sender: No OFD packet to send [05:15:31]OFD Sender: No OFD packet to send [05:15:36]OFD Sender: No OFD packet to send [05:15:41]OFD Sender: No OFD packet to send [05:15:46]OFD Sender: No OFD packet to send [05:15:51]OFD Sender: No OFD packet to send [05:15:56]OFD Sender: No OFD packet to send [05:16:01]OFD Sender: No OFD packet to send [05:16:06]OFD Sender: No OFD packet to send [05:16:11]OFD Sender: No OFD packet to send [05:16:16]OFD Sender: No OFD packet to send [05:16:21]OFD Sender: No OFD packet to send [05:16:26]OFD Sender: No OFD packet to send [05:16:31]OFD Sender: No OFD packet to send [05:16:36]OFD Sender: No OFD packet to send [05:16:41]OFD Sender: No OFD packet to send [05:16: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:28]accept exits with 9 [05:18:28]New connection [05:18:28]New thread 3067252068 created [05:18:28]Thread 3067395428 joined [05:18:28]Waiting for new connection... [05:18:28] Sock 9.Parse request [05:18:28]Sock 9.Check first char [05:18:28]Sock 9.First char is OK [05:18:28]request: POST /json_proto HTTP/1.0 [05:18:28]Method: POST [05:18:28]URL: /json_proto [05:18:28]Method is POST - this is cgi request [05:18:28]url: /json_proto [05:18:28]query_string will be loaded in cgi processing [05:18:28]execute_cgi json_proto POST (null) [05:18:28]execute_cgi path=json_proto method=POST [05:18:28]POST find Content-Length [05:18:28]Host: 172.17.48.197:8080 [05:18:28]Content-Length: 678 [05:18:28]Content-Type: application/json [05:18:28] [05:18:28]POST finish read [05:18:28]Found Content-Length = 678 [05:18:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106090", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 5.010, "sum" : 310.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 310.00, "total" : 310.00, "payments": [ { "type": 0, "sum" : 310.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:18:28]execute_script... [05:18: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)1106090", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 5.010, "sum" : 310.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 310.00, "total" : 310.00, "payments": [ { "type": 0, "sum" : 310.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:18:28]POST & json_proto [05:18:28]process_json_proto [05:18:28]json parsed OK: [05:18:28]protocol is kg_v1.0 [05:18:28]action value=close_receipt [05:18:28]process_action close_receipt [05:18:28]cmd_close_receipt [05:18:28]MH_GetDate [05:18:28]Write to MH i2c: F0 00 00 42 10 41 [05:18:28]Write i2c OK [05:18:28]MH_I2C_Read... [05:18:28]Read from MH i2c: F0 [05:18:28]MH_I2C_Read... [05:18:28]Read from MH i2c: F0 09 00 [05:18:28]MH_I2C_Read... [05:18:28]Read from MH i2c: F0 09 00 42 10 00 25 08 E4 65 6C AF E3 65 23 [05:18:28]GetLastDocTimeStamp 1709442374 [05:18:28]current date 1709443109 [05:18:28]FM_GetShiftState [05:18:28]SAM_PROTO_GetShiftState [05:18:28]wFMCommunicate request_size=4 [05:18:28]MH_SAM_APDU [05:18:28]CAPDU: 80 13 01 00 [05:18:28]Write to MH i2c: E2 08 00 43 10 80 13 01 00 00 00 00 00 D0 [05:18:28]Write i2c OK [05:18:28]MH_I2C_Read... [05:18:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:18:28]Read from MH i2c: E2 [05:18:28]MH_I2C_Read... [05:18:28]Read from MH i2c: E2 0E 00 [05:18:28]MH_I2C_Read... [05:18:28]Read from MH i2c: E2 0E 00 43 10 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 92 [05:18:28]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [05:18:28]wFMCommunicate OK [05:18:28]SAM_PROTO_GetShiftState done [05:18:28]FM_GetShiftState done [05:18:28]opened in 1709425579 [05:18:28]opened+sec_in_day 1709511979 [05:18:28]quantity*price = 31011 [05:18:28]sum+1 = 31013 [05:18:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 310.00 Внесено: 310.00 СДАЧА: 0.00 НСП 1% : 2.74 НДС 12% : 32.93 Наличными: 310.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 28 03.03.2024 05:18 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123171 ФПД: 66168466504684 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T051829&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123171&fm=66168466504684&tin=02508201610067®Number=0000000000090573&sum=31000 [05:18:29]StoreToDocumentArchive [05:18:29]shift 323 fd 123171 [05:18:29]save to /storage/0323/doc_00123171 [05:18:29]save last doc name /storage/0323/doc_00123171 to /storage/kkm_last_doc_name [05:18:29]save OK [05:18:29]Clear old archive folders... [05:18:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:18:29]tlvbuf is 00D89DF0 [05:18:29]SAM_PROTO_ClearQueue [05:18:29]wFMCommunicate request_size=4 [05:18:29]MH_SAM_APDU [05:18:29]CAPDU: 80 09 00 00 [05:18:29]Write to MH i2c: E2 08 00 50 10 80 09 00 00 00 00 00 00 D2 [05:18:29]Write i2c OK [05:18:29]MH_I2C_Read... [05:18:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:18:29]Read from MH i2c: E2 [05:18:29]MH_I2C_Read... [05:18:29]Read from MH i2c: E2 03 00 [05:18:29]MH_I2C_Read... [05:18:29]Read from MH i2c: E2 03 00 50 10 00 90 00 D4 [05:18:29]RAPDU: 90 00 [05:18:29]wFMCommunicate OK [05:18:29]SAM_PROTO_ClearQueue done [05:18:29]KKMCreateOFDPacket [05:18:29]OFDProtocolAddRootSTLVToBuf [05:18:29]FM_MakeSignedData [05:18:29]FM_MakeSignedData [05:18:29]SAM_PROTO_SignData [05:18:29]wFMCommunicate request_size=4 [05:18:29]MH_SAM_APDU [05:18:29]CAPDU: 80 0D 01 02 [05:18:29]Write to MH i2c: E2 08 00 51 10 80 0D 01 02 00 00 00 00 DA [05:18:29]Write i2c OK [05:18:29]MH_I2C_Read... [05:18:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:18:29]Read from MH i2c: E2 [05:18:29]MH_I2C_Read... [05:18:29]Read from MH i2c: E2 03 00 [05:18:29]MH_I2C_Read... [05:18:29]Read from MH i2c: E2 03 00 51 10 00 90 00 D5 [05:18:29]RAPDU: 90 00 [05:18:29]wFMCommunicate OK [05:18:29]wFMCommunicate request_size=255 [05:18:29]MH_SAM_APDU [05:18:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 13 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 24 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 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 1C 00 00 00 F4 03 04 00 25 08 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 23 E1 01 00 35 04 06 00 3C [05:18:29]Write to MH i2c: E2 02 01 52 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 13 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 24 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 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 1C 00 00 00 F4 03 04 00 25 08 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 23 E1 01 00 35 04 06 00 3C 00 00 AB [05:18:29]Write i2c OK [05:18:29]MH_I2C_Read... [05:18:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:18:29]Read from MH i2c: E2 [05:18:29]MH_I2C_Read... [05:18:29]Read from MH i2c: E2 03 00 [05:18:29]MH_I2C_Read... [05:18:29]Read from MH i2c: E2 03 00 52 10 00 90 00 D6 [05:18:29]RAPDU: 90 00 [05:18:29]wFMCommunicate OK [05:18:29]wFMCommunicate request_size=10 [05:18:29]MH_SAM_APDU [05:18:29]CAPDU: 80 0D 02 02 05 2E 0B F0 FB EC [05:18:29]Write to MH i2c: E2 0D 00 53 10 80 0D 02 02 05 00 2E 0B F0 FB EC 00 00 F7 [05:18:29]Write i2c OK [05:18:29]MH_I2C_Read... [05:18:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:18:29]Read from MH i2c: E2 [05:18:29]MH_I2C_Read... [05:18:29]Read from MH i2c: E2 03 00 [05:18:29]MH_I2C_Read... [05:18:29]Read from MH i2c: E2 03 00 53 10 00 90 00 D7 [05:18:29]RAPDU: 90 00 [05:18:29]wFMCommunicate OK [05:18:29]wFMCommunicate request_size=4 [05:18:29]MH_SAM_APDU [05:18:29]CAPDU: 80 0D 03 02 [05:18:29]Write to MH i2c: E2 08 00 54 10 80 0D 03 02 00 00 00 00 DF [05:18:29]Write i2c OK [05:18:29]MH_I2C_Read... [05:18:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:18:30]Read from MH i2c: E2 [05:18:30]MH_I2C_Read... [05:18:30]Read from MH i2c: E2 0B 00 [05:18:30]MH_I2C_Read... [05:18:30]Read from MH i2c: E2 0B 00 54 10 00 83 1C 75 71 05 6E 55 E6 90 00 13 [05:18:30]RAPDU: 83 1C 75 71 05 6E 55 E6 90 00 [05:18:30]wFMCommunicate OK [05:18:30]SAM_PROTO_SignData done [05:18:30]FM_MakeSignedData done [05:18:30]CreateOFDProtocolMessage [05:18:30]wFMCommunicate request_size=4 [05:18:30]MH_SAM_APDU [05:18:30]CAPDU: 80 11 00 00 [05:18:30]Write to MH i2c: E2 08 00 55 10 80 11 00 00 00 00 00 00 DF [05:18:30]Write i2c OK [05:18:30]MH_I2C_Read... [05:18:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:18:30]Read from MH i2c: E2 [05:18:30]MH_I2C_Read... [05:18:30]Read from MH i2c: E2 17 00 [05:18:30]MH_I2C_Read... [05:18:30]Read from MH i2c: E2 17 00 55 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 3D [05:18:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [05:18:30]wFMCommunicate OK [05:18:30]CreateOFDProtocolMessage done [05:18:30]OFDSenderStorePacket 123171 [05:18:30]StoreOFDPacket docnum=123171 [05:18:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 21 9D 07 01 B2 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 13 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 24 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 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 1C 00 00 00 F4 03 04 00 25 08 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 23 E1 01 00 35 04 06 00 3C 2E 0B F0 FB EC 83 1C 75 71 05 6E 55 E6 [05:18:30]CheckFolder [05:18:30]dirname=/storage/ofd_packets [05:18:30]CheckFolder done [05:18:30]ProducePacketName [05:18:30]name=ofd_packets/00123171 [05:18:30]NVStorageSaveData ofd_packets/00123171 [05:18:30]File name is /storage/ofd_packets/00123171 [05:18:30]Write 301 bytes [05:18:30]NVStorageSaveData done [05:18:30]OFDSenderStorePacket done [05:18:30]KKMCreateOFDPacket done [05:18:30]NVStorageSaveData kkm_last_timestamp [05:18:30]File name is /storage/kkm_last_timestamp [05:18:30]Write 4 bytes [05:18:30]NVStorageSaveData done [05:18:30]ExternCall_PrintAddStr [05:18:30]wPrintStart [05:18:30]Write to MH i2c: 01 00 00 56 10 66 [05:18:30]Write i2c OK [05:18:30]MH_I2C_Read... [05:18:30]Read from MH i2c: 01 [05:18:30]MH_I2C_Read... [05:18:30]Read from MH i2c: 01 07 00 [05:18:30]MH_I2C_Read... [05:18:30]Read from MH i2c: 01 07 00 56 10 00 00 00 00 00 FF 0F 7B [05:18:30]RasterBufferAndPrint [05:18:30]line Счет N : (1)1106090 [05:18:30]line ИНН: 02508201610067 [05:18:30]line Контрольно-Кассовый Чек [05:18:30]line ПРОДАЖА [05:18:30]line ТРК (МРК, ГНК) : 11 [05:18:30]line Товар: 2710124130 [05:18:30]line Аи-92-К-5 [05:18:30]line 5.010 * 61.90 [05:18:30]line = 310.12 [05:18:30]line НДС 12% НСП 1% [05:18:30]line > о реализуемом товаре [05:18:30]line ОКРУГЛЕНИЕ: -0.12 [05:18:30]line ИТОГО: 310.00 [05:18:30]line Внесено: 310.00 [05:18:30]line СДАЧА: 0.00 [05:18:30]line НСП 1% : 2.74 [05:18:30]line НДС 12% : 32.93 [05:18:30]line Наличными: 310.00 [05:18:30]line Безнал.: 0.00 [05:18:30]line Место: АЗС № 25 "Партнер Нефть" [05:18:30]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [05:18:30]line СНО: Общий режим [05:18:30]line Чек 28 03.03.2024 05:18 [05:18:30]line Смена: 323 ФФД: 1.0 [05:18:30]line ЗНМ: 0300000019 [05:18:30]line РНМ: 0000000000090573 [05:18:30]line Версия ККМ: 001 [05:18:30]line ФМ: 0000000000874798 [05:18:30]line ФД: 123171 [05:18:30]line ФПД: 66168466504684 [05:18:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T051829&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123171&fm=66168466504684&tin=02508201610067®Number=0000000000090573&sum=31000 [05:18:30]OFD Sender: Processing packet 123171 [packets to send 112, broken 111] [05:18:30]ProducePacketName [05:18:30]name=ofd_packets/00123171 [05:18:30]OFD Sender: To server: pG, [05:18:30]CommunicateWithHost lk.salyk.kg:30040 [05:18:30]ConnectInit lk.salyk.kg [05:18:30]written 0, free lines is 4095 [05:18:30]Connected sock=10 [05:18: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 37 39 38 0F 01 00 00 21 9D 07 01 B2 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 13 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 24 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 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 1C 00 00 00 F4 03 04 00 25 08 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 23 E1 01 00 35 04 06 00 3C 2E 0B F0 FB EC 83 1C 75 71 05 6E 55 E6 [05:18:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 46 AC 47 00 94 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 37 39 38 10 04 04 00 23 E1 01 00 F4 03 04 00 52 B4 E3 65 B6 04 01 00 00 8B B7 7B 27 94 4F F3 42 [05:18:30]CommunicateWithHost err = 0 [05:18:30]CheckOFDResponse [05:18:30]1017 (14) - 77093643461234 [05:18:30]1041 (16) - 0000000000874798 [05:18:30]1040 (4) - 123171 [05:18:30]1012 (4) - 02.03.2024 23:20 [05:18:30]1206 (1) - 0 [05:18:30]OFD Sender: Remove packet 123171 [05:18:30]ProducePacketName [05:18:30]name=ofd_packets/00123171 [05:18:30]NVStorageDeleteData [05:18:30]Write to MH i2c: 01 00 00 81 10 91 [05:18:30]Write i2c OK [05:18:30]MH_I2C_Read... [05:18:30]Read from MH i2c: 01 [05:18:30]MH_I2C_Read... [05:18:30]Read from MH i2c: 01 07 00 [05:18:30]MH_I2C_Read... [05:18:30]Read from MH i2c: 01 07 00 81 10 00 00 00 00 00 E0 0C 84 [05:18:30]RasterBufferAndPrint [05:18:30]line [05:18:30]line [05:18:30]line [05:18:30]line [05:18:30]line [05:18:30]written 0, free lines is 3302 [05:18:30]MH_Cut [05:18:30]Write to MH i2c: D1 01 00 88 10 01 6A [05:18:30]Write i2c OK [05:18:30]MH_I2C_Read... [05:18:30]Read from MH i2c: D1 [05:18:30]MH_I2C_Read... [05:18:30]Read from MH i2c: D1 01 00 [05:18:30]MH_I2C_Read... [05:18:30]Read from MH i2c: D1 01 00 88 10 00 69 [05:18:30]Write to MH i2c: 01 00 00 89 10 99 [05:18:30]Write i2c OK [05:18:30]MH_I2C_Read... [05:18:31]OFD Sender: No OFD packet to send [05:18:31]*** Cut start [05:18:31]*** Purtial cut [05:18:31]*** Stage 1: CUTSNS_PIN = 1 [05:18:33]Read from MH i2c: 01 [05:18:33]MH_I2C_Read... [05:18:33]*** Stop cut motor [05:18:33]*** Cut end [05:18:33]Read from MH i2c: 01 07 00 [05:18:33]MH_I2C_Read... [05:18:33]Read from MH i2c: 01 07 00 89 10 00 00 00 00 00 FF 0F AE [05:18:33]process_action close_receipt done [05:18:33]requested_data is exist [05:18:33]produce_requested_data [05:18:33]requested_item fm.sn is exist - process it [05:18:33]wFMCommunicate request_size=4 [05:18:33]MH_SAM_APDU [05:18:33]CAPDU: 80 11 00 00 [05:18:33]Write to MH i2c: E2 08 00 8A 10 80 11 00 00 00 00 00 00 14 [05:18:33]Write i2c OK [05:18:33]MH_I2C_Read... [05:18:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:18:33]Read from MH i2c: E2 [05:18:33]MH_I2C_Read... [05:18:33]Read from MH i2c: E2 17 00 [05:18:33]MH_I2C_Read... [05:18:33]Read from MH i2c: E2 17 00 8A 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 72 [05:18:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [05:18:33]wFMCommunicate OK [05:18:33]requested_item fd.num is exist - process it [05:18:33]SAM_PROTO_GetFieldsCounters [05:18:33]wFMCommunicate request_size=4 [05:18:33]MH_SAM_APDU [05:18:33]CAPDU: 80 13 00 00 [05:18:33]Write to MH i2c: E2 08 00 8B 10 80 13 00 00 00 00 00 00 17 [05:18:33]Write i2c OK [05:18:33]MH_I2C_Read... [05:18:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:18:33]Read from MH i2c: E2 [05:18:33]MH_I2C_Read... [05:18:33]Read from MH i2c: E2 62 00 [05:18:33]MH_I2C_Read... [05:18:33]Read from MH i2c: E2 62 00 8B 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 23 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 DF [05:18: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 23 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:18:33]wFMCommunicate OK [05:18:33]SAM_PROTO_GetFieldsCounters done [05:18:33]requested_item shift.num is exist - process it [05:18:33]requested_item shift.opened is exist - process it [05:18:33]req_shift_opened [05:18:33]FM_GetShiftState [05:18:33]SAM_PROTO_GetShiftState [05:18:33]wFMCommunicate request_size=4 [05:18:33]MH_SAM_APDU [05:18:33]CAPDU: 80 13 01 00 [05:18:33]Write to MH i2c: E2 08 00 8C 10 80 13 01 00 00 00 00 00 19 [05:18:33]Write i2c OK [05:18:33]MH_I2C_Read... [05:18:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:18:33]Read from MH i2c: E2 [05:18:33]MH_I2C_Read... [05:18:33]Read from MH i2c: E2 0E 00 [05:18:33]MH_I2C_Read... [05:18:33]Read from MH i2c: E2 0E 00 8C 10 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 DB [05:18:33]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [05:18:33]wFMCommunicate OK [05:18:33]SAM_PROTO_GetShiftState done [05:18:33]FM_GetShiftState done [05:18:33]req_shift_opened done [05:18:33]requested_item shift.open_date is exist - process it [05:18:33]req_shift_open_date [05:18:33]req_shift_open_date done [05:18:33]produce_requested_data done [05:18:33]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123171,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [05:18:33]process_action_free close_receipt [05:18:33]json_value_free [05:18:33]json_value_free done [05:18:33]process_json_proto returns [05:18:33]Send response to host [05:18:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123171,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [05:18:33]free response buf [05:18:33]execute_script done [05:18:33]execute_script returns [05:18:33]free content buf [05:18:33]Sock 9.Close socket [05:18:33]Sock 9.Thread stoped [05:18:36]OFD Sender: No OFD packet to send [05:18:41]OFD Sender: No OFD packet to send [05:18:46]OFD Sender: No OFD packet to send [05:18:51]OFD Sender: No OFD packet to send [05:18:56]OFD Sender: No OFD packet to send [05:19:01]OFD Sender: No OFD packet to send [05:19:06]OFD Sender: No OFD packet to send [05:19:11]OFD Sender: No OFD packet to send [05:19:16]OFD Sender: No OFD packet to send [05:19:21]OFD Sender: No OFD packet to send [05:19:26]OFD Sender: No OFD packet to send [05:19:31]OFD Sender: No OFD packet to send [05:19:36]OFD Sender: No OFD packet to send [05:19:41]OFD Sender: No OFD packet to send [05:19:46]OFD Sender: No OFD packet to send [05:19:51]OFD Sender: No OFD packet to send [05:19:56]OFD Sender: No OFD packet to send [05:20:01]OFD Sender: No OFD packet to send [05:20:06]OFD Sender: No OFD packet to send [05:20:11]OFD Sender: No OFD packet to send [05:20:16]OFD Sender: No OFD packet to send [05:20:21]OFD Sender: No OFD packet to send [05:20:26]OFD Sender: No OFD packet to send [05:20:31]OFD Sender: No OFD packet to send [05:20:36]OFD Sender: No OFD packet to send [05:20:41]OFD Sender: No OFD packet to send [05:20:46]OFD Sender: No OFD packet to send [05:20:51]OFD Sender: No OFD packet to send [05:20:56]OFD Sender: No OFD packet to send [05:21:01]OFD Sender: No OFD packet to send [05:21:06]OFD Sender: No OFD packet to send [05:21:11]OFD Sender: No OFD packet to send [05:21:16]OFD Sender: No OFD packet to send [05:21:21]OFD Sender: No OFD packet to send [05:21:26]OFD Sender: No OFD packet to send [05:21:31]OFD Sender: No OFD packet to send [05:21:36]OFD Sender: No OFD packet to send [05:21:41]OFD Sender: No OFD packet to send [05:21:46]OFD Sender: No OFD packet to send [05:21:51]OFD Sender: No OFD packet to send [05:21:56]OFD Sender: No OFD packet to send [05:22:01]OFD Sender: No OFD packet to send [05:22:06]OFD Sender: No OFD packet to send [05:22:11]OFD Sender: No OFD packet to send [05:22:16]OFD Sender: No OFD packet to send [05:22:21]OFD Sender: No OFD packet to send [05:22:26]OFD Sender: No OFD packet to send [05:22:31]OFD Sender: No OFD packet to send [05:22:36]OFD Sender: No OFD packet to send [05:22:41]OFD Sender: No OFD packet to send [05:22:46]OFD Sender: No OFD packet to send [05:22:51]OFD Sender: No OFD packet to send [05:22:56]OFD Sender: No OFD packet to send [05:23:01]OFD Sender: No OFD packet to send [05:23:06]OFD Sender: No OFD packet to send [05:23:11]OFD Sender: No OFD packet to send [05:23:16]OFD Sender: No OFD packet to send [05:23:21]OFD Sender: No OFD packet to send [05:23:26]OFD Sender: No OFD packet to send [05:23:31]OFD Sender: No OFD packet to send [05:23:36]OFD Sender: No OFD packet to send [05:23:41]OFD Sender: No OFD packet to send [05:23:46]OFD Sender: No OFD packet to send [05:23:51]OFD Sender: No OFD packet to send [05:23:56]OFD Sender: No OFD packet to send [05:24:01]OFD Sender: No OFD packet to send [05:24:06]OFD Sender: No OFD packet to send [05:24:11]OFD Sender: No OFD packet to send [05:24:16]OFD Sender: No OFD packet to send [05:24:21]OFD Sender: No OFD packet to send [05:24:26]OFD Sender: No OFD packet to send [05:24:31]OFD Sender: No OFD packet to send [05:24:36]OFD Sender: No OFD packet to send [05:24:41]OFD Sender: No OFD packet to send [05:24:46]OFD Sender: No OFD packet to send [05:24:51]OFD Sender: No OFD packet to send [05:24:56]OFD Sender: No OFD packet to send [05:25:01]OFD Sender: No OFD packet to send [05:25:06]OFD Sender: No OFD packet to send [05:25:11]OFD Sender: No OFD packet to send [05:25:16]OFD Sender: No OFD packet to send [05:25:21]OFD Sender: No OFD packet to send [05:25:26]OFD Sender: No OFD packet to send [05:25:31]OFD Sender: No OFD packet to send [05:25:36]OFD Sender: No OFD packet to send [05:25:41]OFD Sender: No OFD packet to send [05:25:46]OFD Sender: No OFD packet to send [05:25:51]OFD Sender: No OFD packet to send [05:25:56]OFD Sender: No OFD packet to send [05:26:01]OFD Sender: No OFD packet to send [05:26:06]OFD Sender: No OFD packet to send [05:26:11]OFD Sender: No OFD packet to send [05:26:16]OFD Sender: No OFD packet to send [05:26:21]OFD Sender: No OFD packet to send [05:26:26]OFD Sender: No OFD packet to send [05:26:31]OFD Sender: No OFD packet to send [05:26:36]OFD Sender: No OFD packet to send [05:26:41]OFD Sender: No OFD packet to send [05:26:46]OFD Sender: No OFD packet to send [05:26:51]OFD Sender: No OFD packet to send [05:26:56]OFD Sender: No OFD packet to send [05:27:01]OFD Sender: No OFD packet to send [05:27:06]OFD Sender: No OFD packet to send [05:27:11]OFD Sender: No OFD packet to send [05:27:16]OFD Sender: No OFD packet to send [05:27:21]OFD Sender: No OFD packet to send [05:27:26]OFD Sender: No OFD packet to send [05:27:31]OFD Sender: No OFD packet to send [05:27:36]OFD Sender: No OFD packet to send [05:27:41]OFD Sender: No OFD packet to send [05:27:46]OFD Sender: No OFD packet to send [05:27:51]OFD Sender: No OFD packet to send [05:27:56]OFD Sender: No OFD packet to send [05:28:01]OFD Sender: No OFD packet to send [05:28:06]OFD Sender: No OFD packet to send [05:28:11]OFD Sender: No OFD packet to send [05:28:16]OFD Sender: No OFD packet to send [05:28:21]OFD Sender: No OFD packet to send [05:28:26]OFD Sender: No OFD packet to send [05:28:31]OFD Sender: No OFD packet to send [05:28:36]OFD Sender: No OFD packet to send [05:28:41]OFD Sender: No OFD packet to send [05:28:46]OFD Sender: No OFD packet to send [05:28:51]OFD Sender: No OFD packet to send [05:28:56]OFD Sender: No OFD packet to send [05:29:01]OFD Sender: No OFD packet to send [05:29:06]OFD Sender: No OFD packet to send [05:29:11]OFD Sender: No OFD packet to send [05:29:16]OFD Sender: No OFD packet to send [05:29:21]OFD Sender: No OFD packet to send [05:29:26]OFD Sender: No OFD packet to send [05:29:31]OFD Sender: No OFD packet to send [05:29:36]OFD Sender: No OFD packet to send [05:29:41]OFD Sender: No OFD packet to send [05:29:46]OFD Sender: No OFD packet to send [05:29:51]OFD Sender: No OFD packet to send [05:29:56]OFD Sender: No OFD packet to send [05:30:01]OFD Sender: No OFD packet to send [05:30:06]OFD Sender: No OFD packet to send [05:30:11]OFD Sender: No OFD packet to send [05:30:16]OFD Sender: No OFD packet to send [05:30:21]OFD Sender: No OFD packet to send [05:30:27]OFD Sender: No OFD packet to send [05:30:32]OFD Sender: No OFD packet to send [05:30:37]OFD Sender: No OFD packet to send [05:30:42]OFD Sender: No OFD packet to send [05:30:47]OFD Sender: No OFD packet to send [05:30:52]OFD Sender: No OFD packet to send [05:30:57]OFD Sender: No OFD packet to send [05:31:02]OFD Sender: No OFD packet to send [05:31:07]OFD Sender: No OFD packet to send [05:31:12]OFD Sender: No OFD packet to send [05:31:17]OFD Sender: No OFD packet to send [05:31:22]OFD Sender: No OFD packet to send [05:31:27]OFD Sender: No OFD packet to send [05:31:29]accept exits with 7 [05:31:29]New connection [05:31:29]New thread 3067395428 created [05:31:29]Thread 3067252068 joined [05:31:29]Waiting for new connection... [05:31:29] Sock 7.Parse request [05:31:29]Sock 7.Check first char [05:31:29]Sock 7.First char is OK [05:31:29]request: POST /json_proto HTTP/1.0 [05:31:29]Method: POST [05:31:29]URL: /json_proto [05:31:29]Method is POST - this is cgi request [05:31:29]url: /json_proto [05:31:29]query_string will be loaded in cgi processing [05:31:29]execute_cgi json_proto POST (null) [05:31:29]execute_cgi path=json_proto method=POST [05:31:29]POST find Content-Length [05:31:29]Host: 172.17.48.197:8080 [05:31:29]Content-Length: 678 [05:31:29]Content-Type: application/json [05:31:29] [05:31:29]POST finish read [05:31:29]Found Content-Length = 678 [05:31:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106091", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 4.850, "sum" : 300.22, "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" ] } } [05:31:29]execute_script... [05:31: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)1106091", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 4.850, "sum" : 300.22, "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" ] } } [05:31:29]POST & json_proto [05:31:29]process_json_proto [05:31:29]json parsed OK: [05:31:29]protocol is kg_v1.0 [05:31:29]action value=close_receipt [05:31:29]process_action close_receipt [05:31:29]cmd_close_receipt [05:31:29]MH_GetDate [05:31:29]Write to MH i2c: F0 00 00 8D 10 8C [05:31:29]Write i2c OK [05:31:29]MH_I2C_Read... [05:31:29]Read from MH i2c: F0 [05:31:29]MH_I2C_Read... [05:31:29]Read from MH i2c: F0 09 00 [05:31:29]MH_I2C_Read... [05:31:29]Read from MH i2c: F0 09 00 8D 10 00 33 0B E4 65 6C AF E3 65 7F [05:31:29]GetLastDocTimeStamp 1709443109 [05:31:29]current date 1709443891 [05:31:29]FM_GetShiftState [05:31:29]SAM_PROTO_GetShiftState [05:31:29]wFMCommunicate request_size=4 [05:31:29]MH_SAM_APDU [05:31:29]CAPDU: 80 13 01 00 [05:31:29]Write to MH i2c: E2 08 00 8E 10 80 13 01 00 00 00 00 00 1B [05:31:29]Write i2c OK [05:31:29]MH_I2C_Read... [05:31:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:31:29]Read from MH i2c: E2 [05:31:29]MH_I2C_Read... [05:31:29]Read from MH i2c: E2 0E 00 [05:31:29]MH_I2C_Read... [05:31:29]Read from MH i2c: E2 0E 00 8E 10 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 DD [05:31:29]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [05:31:29]wFMCommunicate OK [05:31:29]SAM_PROTO_GetShiftState done [05:31:29]FM_GetShiftState done [05:31:29]opened in 1709425579 [05:31:29]opened+sec_in_day 1709511979 [05:31:29]quantity*price = 30021 [05:31:29]sum+1 = 30023 [05:31:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.88 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 29 03.03.2024 05:31 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123172 ФПД: 242408487309935 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T053131&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123172&fm=242408487309935&tin=02508201610067®Number=0000000000090573&sum=30000 [05:31:30]StoreToDocumentArchive [05:31:30]shift 323 fd 123172 [05:31:30]save to /storage/0323/doc_00123172 [05:31:30]save last doc name /storage/0323/doc_00123172 to /storage/kkm_last_doc_name [05:31:30]save OK [05:31:30]Clear old archive folders... [05:31:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:31:30]tlvbuf is 00DEFA30 [05:31:30]SAM_PROTO_ClearQueue [05:31:30]wFMCommunicate request_size=4 [05:31:30]MH_SAM_APDU [05:31:30]CAPDU: 80 09 00 00 [05:31:30]Write to MH i2c: E2 08 00 9B 10 80 09 00 00 00 00 00 00 1D [05:31:30]Write i2c OK [05:31:30]MH_I2C_Read... [05:31:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:31:30]Read from MH i2c: E2 [05:31:30]MH_I2C_Read... [05:31:30]Read from MH i2c: E2 03 00 [05:31:30]MH_I2C_Read... [05:31:30]Read from MH i2c: E2 03 00 9B 10 00 90 00 1F [05:31:30]RAPDU: 90 00 [05:31:30]wFMCommunicate OK [05:31:30]SAM_PROTO_ClearQueue done [05:31:30]KKMCreateOFDPacket [05:31:30]OFDProtocolAddRootSTLVToBuf [05:31:30]FM_MakeSignedData [05:31:30]FM_MakeSignedData [05:31:30]SAM_PROTO_SignData [05:31:30]wFMCommunicate request_size=4 [05:31:30]MH_SAM_APDU [05:31:30]CAPDU: 80 0D 01 02 [05:31:30]Write to MH i2c: E2 08 00 9C 10 80 0D 01 02 00 00 00 00 25 [05:31:30]Write i2c OK [05:31:30]MH_I2C_Read... [05:31:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:31:30]Read from MH i2c: E2 [05:31:30]MH_I2C_Read... [05:31:30]Read from MH i2c: E2 03 00 [05:31:30]MH_I2C_Read... [05:31:30]Read from MH i2c: E2 03 00 9C 10 00 90 00 20 [05:31:30]RAPDU: 90 00 [05:31:30]wFMCommunicate OK [05:31:30]wFMCommunicate request_size=255 [05:31:30]MH_SAM_APDU [05:31:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 12 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 46 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 74 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 1D 00 00 00 F4 03 04 00 33 0B E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 24 E1 01 00 35 04 06 00 DC [05:31:30]Write to MH i2c: E2 02 01 9D 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 12 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 46 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 74 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 1D 00 00 00 F4 03 04 00 33 0B E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 24 E1 01 00 35 04 06 00 DC 00 00 DD [05:31:30]Write i2c OK [05:31:30]MH_I2C_Read... [05:31:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:31:31]Read from MH i2c: E2 [05:31:31]MH_I2C_Read... [05:31:31]Read from MH i2c: E2 03 00 [05:31:31]MH_I2C_Read... [05:31:31]Read from MH i2c: E2 03 00 9D 10 00 90 00 21 [05:31:31]RAPDU: 90 00 [05:31:31]wFMCommunicate OK [05:31:31]wFMCommunicate request_size=10 [05:31:31]MH_SAM_APDU [05:31:31]CAPDU: 80 0D 02 02 05 78 1F C6 D2 6F [05:31:31]Write to MH i2c: E2 0D 00 9E 10 80 0D 02 02 05 00 78 1F C6 D2 6F 00 00 D0 [05:31:31]Write i2c OK [05:31:31]MH_I2C_Read... [05:31:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:31:31]Read from MH i2c: E2 [05:31:31]MH_I2C_Read... [05:31:31]Read from MH i2c: E2 03 00 [05:31:31]MH_I2C_Read... [05:31:31]Read from MH i2c: E2 03 00 9E 10 00 90 00 22 [05:31:31]RAPDU: 90 00 [05:31:31]wFMCommunicate OK [05:31:31]wFMCommunicate request_size=4 [05:31:31]MH_SAM_APDU [05:31:31]CAPDU: 80 0D 03 02 [05:31:31]Write to MH i2c: E2 08 00 9F 10 80 0D 03 02 00 00 00 00 2A [05:31:31]Write i2c OK [05:31:31]MH_I2C_Read... [05:31:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:31:31]Read from MH i2c: E2 [05:31:31]MH_I2C_Read... [05:31:31]Read from MH i2c: E2 0B 00 [05:31:31]MH_I2C_Read... [05:31:31]Read from MH i2c: E2 0B 00 9F 10 00 A0 52 D3 30 B8 7A DB 00 90 00 2D [05:31:31]RAPDU: A0 52 D3 30 B8 7A DB 00 90 00 [05:31:31]wFMCommunicate OK [05:31:31]SAM_PROTO_SignData done [05:31:31]FM_MakeSignedData done [05:31:31]CreateOFDProtocolMessage [05:31:31]wFMCommunicate request_size=4 [05:31:31]MH_SAM_APDU [05:31:31]CAPDU: 80 11 00 00 [05:31:31]Write to MH i2c: E2 08 00 A0 10 80 11 00 00 00 00 00 00 2A [05:31:31]Write i2c OK [05:31:31]MH_I2C_Read... [05:31:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:31:31]Read from MH i2c: E2 [05:31:31]MH_I2C_Read... [05:31:31]Read from MH i2c: E2 17 00 [05:31:31]MH_I2C_Read... [05:31:31]Read from MH i2c: E2 17 00 A0 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 88 [05:31:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [05:31:31]wFMCommunicate OK [05:31:31]CreateOFDProtocolMessage done [05:31:31]OFDSenderStorePacket 123172 [05:31:31]StoreOFDPacket docnum=123172 [05:31:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 58 CC 07 01 6E 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 12 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 46 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 74 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 1D 00 00 00 F4 03 04 00 33 0B E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 24 E1 01 00 35 04 06 00 DC 78 1F C6 D2 6F A0 52 D3 30 B8 7A DB 00 [05:31:31]CheckFolder [05:31:31]dirname=/storage/ofd_packets [05:31:31]CheckFolder done [05:31:31]ProducePacketName [05:31:31]name=ofd_packets/00123172 [05:31:31]NVStorageSaveData ofd_packets/00123172 [05:31:31]File name is /storage/ofd_packets/00123172 [05:31:31]Write 301 bytes [05:31:31]NVStorageSaveData done [05:31:31]OFDSenderStorePacket done [05:31:31]KKMCreateOFDPacket done [05:31:31]NVStorageSaveData kkm_last_timestamp [05:31:31]File name is /storage/kkm_last_timestamp [05:31:31]Write 4 bytes [05:31:31]NVStorageSaveData done [05:31:31]ExternCall_PrintAddStr [05:31:31]wPrintStart [05:31:31]Write to MH i2c: 01 00 00 A1 10 B1 [05:31:31]Write i2c OK [05:31:31]MH_I2C_Read... [05:31:31]Read from MH i2c: 01 [05:31:31]MH_I2C_Read... [05:31:31]Read from MH i2c: 01 07 00 [05:31:31]MH_I2C_Read... [05:31:31]Read from MH i2c: 01 07 00 A1 10 00 00 00 00 00 FF 0F C6 [05:31:31]RasterBufferAndPrint [05:31:31]line Счет N : (1)1106091 [05:31:31]line ИНН: 02508201610067 [05:31:31]line Контрольно-Кассовый Чек [05:31:31]line ПРОДАЖА [05:31:31]line ТРК (МРК, ГНК) : 62 [05:31:31]line Товар: 2710124130 [05:31:31]line Аи-92-К-5 [05:31:31]line 4.850 * 61.90 [05:31:31]line = 300.22 [05:31:31]line НДС 12% НСП 1% [05:31:31]line > о реализуемом товаре [05:31:31]line ОКРУГЛЕНИЕ: -0.22 [05:31:31]line ИТОГО: 300.00 [05:31:31]line Внесено: 300.00 [05:31:31]line СДАЧА: 0.00 [05:31:31]line НСП 1% : 2.66 [05:31:31]line НДС 12% : 31.88 [05:31:31]line Наличными: 300.00 [05:31:31]line Безнал.: 0.00 [05:31:31]line Место: АЗС № 25 "Партнер Нефть" [05:31:31]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [05:31:31]line СНО: Общий режим [05:31:31]line Чек 29 03.03.2024 05:31 [05:31:31]line Смена: 323 ФФД: 1.0 [05:31:31]line ЗНМ: 0300000019 [05:31:31]line РНМ: 0000000000090573 [05:31:31]line Версия ККМ: 001 [05:31:31]line ФМ: 0000000000874798 [05:31:31]line ФД: 123172 [05:31:31]line ФПД: 242408487309935 [05:31:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T053131&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123172&fm=242408487309935&tin=02508201610067®Number=0000000000090573&sum=30000 [05:31:31]OFD Sender: Processing packet 123172 [packets to send 112, broken 111] [05:31:31]ProducePacketName [05:31:31]name=ofd_packets/00123172 [05:31:31]OFD Sender: To server: pG, [05:31:31]CommunicateWithHost lk.salyk.kg:30040 [05:31:31]ConnectInit lk.salyk.kg [05:31:31]written 0, free lines is 4095 [05:31:31]Connected sock=10 [05:31: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 37 39 38 0F 01 00 00 58 CC 07 01 6E 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 12 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 46 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 74 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 1D 00 00 00 F4 03 04 00 33 0B E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 24 E1 01 00 35 04 06 00 DC 78 1F C6 D2 6F A0 52 D3 30 B8 7A DB 00 [05:31:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 0A AB 47 00 AA 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 37 39 38 10 04 04 00 24 E1 01 00 F4 03 04 00 5F B7 E3 65 B6 04 01 00 00 F1 F5 1E 2B E1 08 9A 55 [05:31:31]CommunicateWithHost err = 0 [05:31:31]CheckOFDResponse [05:31:31]1017 (14) - 77093643461234 [05:31:31]1041 (16) - 0000000000874798 [05:31:31]1040 (4) - 123172 [05:31:31]1012 (4) - 02.03.2024 23:33 [05:31:31]1206 (1) - 0 [05:31:31]OFD Sender: Remove packet 123172 [05:31:31]ProducePacketName [05:31:31]name=ofd_packets/00123172 [05:31:31]NVStorageDeleteData [05:31:32]Write to MH i2c: 01 00 00 CC 10 DC [05:31:32]Write i2c OK [05:31:32]MH_I2C_Read... [05:31:32]Read from MH i2c: 01 [05:31:32]MH_I2C_Read... [05:31:32]Read from MH i2c: 01 07 00 [05:31:32]MH_I2C_Read... [05:31:32]Read from MH i2c: 01 07 00 CC 10 00 00 00 00 00 F9 0C E8 [05:31:32]RasterBufferAndPrint [05:31:32]line [05:31:32]line [05:31:32]line [05:31:32]line [05:31:32]line [05:31:32]written 0, free lines is 3327 [05:31:32]MH_Cut [05:31:32]Write to MH i2c: D1 01 00 D3 10 01 B5 [05:31:32]Write i2c OK [05:31:32]MH_I2C_Read... [05:31:32]Read from MH i2c: D1 [05:31:32]MH_I2C_Read... [05:31:32]Read from MH i2c: D1 01 00 [05:31:32]MH_I2C_Read... [05:31:32]Read from MH i2c: D1 01 00 D3 10 00 B4 [05:31:32]Write to MH i2c: 01 00 00 D4 10 E4 [05:31:32]Write i2c OK [05:31:32]MH_I2C_Read... [05:31:32]OFD Sender: No OFD packet to send [05:31:32]*** Cut start [05:31:32]*** Purtial cut [05:31:32]*** Stage 1: CUTSNS_PIN = 1 [05:31:34]Read from MH i2c: 01 [05:31:34]MH_I2C_Read... [05:31:34]*** Stop cut motor [05:31:34]*** Cut end [05:31:34]Read from MH i2c: 01 07 00 [05:31:34]MH_I2C_Read... [05:31:34]Read from MH i2c: 01 07 00 D4 10 00 00 00 00 00 FF 0F F9 [05:31:34]process_action close_receipt done [05:31:34]requested_data is exist [05:31:34]produce_requested_data [05:31:34]requested_item fm.sn is exist - process it [05:31:34]wFMCommunicate request_size=4 [05:31:34]MH_SAM_APDU [05:31:34]CAPDU: 80 11 00 00 [05:31:34]Write to MH i2c: E2 08 00 D5 10 80 11 00 00 00 00 00 00 5F [05:31:34]Write i2c OK [05:31:34]MH_I2C_Read... [05:31:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:31:34]Read from MH i2c: E2 [05:31:34]MH_I2C_Read... [05:31:34]Read from MH i2c: E2 17 00 [05:31:34]MH_I2C_Read... [05:31:34]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 37 39 38 90 00 BD [05:31:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [05:31:34]wFMCommunicate OK [05:31:34]requested_item fd.num is exist - process it [05:31:34]SAM_PROTO_GetFieldsCounters [05:31:34]wFMCommunicate request_size=4 [05:31:34]MH_SAM_APDU [05:31:34]CAPDU: 80 13 00 00 [05:31:34]Write to MH i2c: E2 08 00 D6 10 80 13 00 00 00 00 00 00 62 [05:31:34]Write i2c OK [05:31:34]MH_I2C_Read... [05:31:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:31:34]Read from MH i2c: E2 [05:31:34]MH_I2C_Read... [05:31:34]Read from MH i2c: E2 62 00 [05:31:34]MH_I2C_Read... [05:31:34]Read from MH i2c: E2 62 00 D6 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 24 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 2E [05:31: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 24 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:31:34]wFMCommunicate OK [05:31:34]SAM_PROTO_GetFieldsCounters done [05:31:34]requested_item shift.num is exist - process it [05:31:34]requested_item shift.opened is exist - process it [05:31:34]req_shift_opened [05:31:34]FM_GetShiftState [05:31:34]SAM_PROTO_GetShiftState [05:31:34]wFMCommunicate request_size=4 [05:31:34]MH_SAM_APDU [05:31:34]CAPDU: 80 13 01 00 [05:31:34]Write to MH i2c: E2 08 00 D7 10 80 13 01 00 00 00 00 00 64 [05:31:34]Write i2c OK [05:31:34]MH_I2C_Read... [05:31:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:31:34]Read from MH i2c: E2 [05:31:34]MH_I2C_Read... [05:31:34]Read from MH i2c: E2 0E 00 [05:31:34]MH_I2C_Read... [05:31:34]Read from MH i2c: E2 0E 00 D7 10 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 26 [05:31:34]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [05:31:34]wFMCommunicate OK [05:31:34]SAM_PROTO_GetShiftState done [05:31:34]FM_GetShiftState done [05:31:34]req_shift_opened done [05:31:34]requested_item shift.open_date is exist - process it [05:31:34]req_shift_open_date [05:31:34]req_shift_open_date done [05:31:34]produce_requested_data done [05:31:34]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123172,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [05:31:34]process_action_free close_receipt [05:31:34]json_value_free [05:31:34]json_value_free done [05:31:34]process_json_proto returns [05:31:34]Send response to host [05:31:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123172,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [05:31:34]free response buf [05:31:34]execute_script done [05:31:34]execute_script returns [05:31:34]free content buf [05:31:34]Sock 7.Close socket [05:31:34]Sock 7.Thread stoped [05:31:37]OFD Sender: No OFD packet to send [05:31:42]OFD Sender: No OFD packet to send [05:31:47]OFD Sender: No OFD packet to send [05:31:52]OFD Sender: No OFD packet to send [05:31:57]OFD Sender: No OFD packet to send [05:32:02]OFD Sender: No OFD packet to send [05:32:07]OFD Sender: No OFD packet to send [05:32:12]OFD Sender: No OFD packet to send [05:32:17]OFD Sender: No OFD packet to send [05:32:22]OFD Sender: No OFD packet to send [05:32:27]OFD Sender: No OFD packet to send [05:32:32]OFD Sender: No OFD packet to send [05:32:37]OFD Sender: No OFD packet to send [05:32:42]OFD Sender: No OFD packet to send [05:32:47]OFD Sender: No OFD packet to send [05:32:52]OFD Sender: No OFD packet to send [05:32:57]OFD Sender: No OFD packet to send [05:33:02]OFD Sender: No OFD packet to send [05:33:07]OFD Sender: No OFD packet to send [05:33:12]OFD Sender: No OFD packet to send [05:33:17]OFD Sender: No OFD packet to send [05:33:22]OFD Sender: No OFD packet to send [05:33:27]OFD Sender: No OFD packet to send [05:33:32]OFD Sender: No OFD packet to send [05:33:37]OFD Sender: No OFD packet to send [05:33:42]OFD Sender: No OFD packet to send [05:33:47]OFD Sender: No OFD packet to send [05:33:52]OFD Sender: No OFD packet to send [05:33:57]OFD Sender: No OFD packet to send [05:34:02]OFD Sender: No OFD packet to send [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:27]OFD Sender: No OFD packet to send [05:35:32]OFD Sender: No OFD packet to send [05:35:37]OFD Sender: No OFD packet to send [05:35:42]OFD Sender: No OFD packet to send [05:35:47]OFD Sender: No OFD packet to send [05:35:52]OFD Sender: No OFD packet to send [05:35:57]OFD Sender: No OFD packet to send [05:36:02]OFD Sender: No OFD packet to send [05:36:07]OFD Sender: No OFD packet to send [05:36:12]OFD Sender: No OFD packet to send [05:36:17]OFD Sender: No OFD packet to send [05:36:22]OFD Sender: No OFD packet to send [05:36:27]OFD Sender: No OFD packet to send [05:36:32]OFD Sender: No OFD packet to send [05:36:37]OFD Sender: No OFD packet to send [05:36:42]OFD Sender: No OFD packet to send [05:36:47]OFD Sender: No OFD packet to send [05:36:52]OFD Sender: No OFD packet to send [05:36:57]OFD Sender: No OFD packet to send [05:37:02]OFD Sender: No OFD packet to send [05:37:07]OFD Sender: No OFD packet to send [05:37:12]OFD Sender: No OFD packet to send [05:37:17]OFD Sender: No OFD packet to send [05:37:22]OFD Sender: No OFD packet to send [05:37:27]OFD Sender: No OFD packet to send [05:37:32]OFD Sender: No OFD packet to send [05:37:37]OFD Sender: No OFD packet to send [05:37:42]OFD Sender: No OFD packet to send [05:37:47]OFD Sender: No OFD packet to send [05:37:52]OFD Sender: No OFD packet to send [05:37:57]OFD Sender: No OFD packet to send [05:38:02]OFD Sender: No OFD packet to send [05:38:07]OFD Sender: No OFD packet to send [05:38:12]OFD Sender: No OFD packet to send [05:38:17]OFD Sender: No OFD packet to send [05:38:22]OFD Sender: No OFD packet to send [05:38:27]OFD Sender: No OFD packet to send [05:38:32]OFD Sender: No OFD packet to send [05:38:37]OFD Sender: No OFD packet to send [05:38:42]OFD Sender: No OFD packet to send [05:38:47]OFD Sender: No OFD packet to send [05:38:52]OFD Sender: No OFD packet to send [05:38:57]OFD Sender: No OFD packet to send [05:39:02]OFD Sender: No OFD packet to send [05:39:07]OFD Sender: No OFD packet to send [05:39:12]OFD Sender: No OFD packet to send [05:39:17]OFD Sender: No OFD packet to send [05:39:22]OFD Sender: No OFD packet to send [05:39:27]OFD Sender: No OFD packet to send [05:39:32]OFD Sender: No OFD packet to send [05:39:37]OFD Sender: No OFD packet to send [05:39:42]OFD Sender: No OFD packet to send [05:39:47]OFD Sender: No OFD packet to send [05:39:52]OFD Sender: No OFD packet to send [05:39:57]OFD Sender: No OFD packet to send [05:40:02]OFD Sender: No OFD packet to send [05:40:07]OFD Sender: No OFD packet to send [05:40:12]OFD Sender: No OFD packet to send [05:40:17]OFD Sender: No OFD packet to send [05:40:22]OFD Sender: No OFD packet to send [05:40:27]OFD Sender: No OFD packet to send [05:40:32]OFD Sender: No OFD packet to send [05:40:37]OFD Sender: No OFD packet to send [05:40:42]OFD Sender: No OFD packet to send [05:40:47]OFD Sender: No OFD packet to send [05:40:52]OFD Sender: No OFD packet to send [05:40:57]OFD Sender: No OFD packet to send [05:41:02]OFD Sender: No OFD packet to send [05:41:07]OFD Sender: No OFD packet to send [05:41:12]OFD Sender: No OFD packet to send [05:41:18]OFD Sender: No OFD packet to send [05:41:23]OFD Sender: No OFD packet to send [05:41:28]OFD Sender: No OFD packet to send [05:41:33]OFD Sender: No OFD packet to send [05:41:38]OFD Sender: No OFD packet to send [05:41:43]OFD Sender: No OFD packet to send [05:41:48]OFD Sender: No OFD packet to send [05:41:53]OFD Sender: No OFD packet to send [05:41:58]OFD Sender: No OFD packet to send [05:42:03]OFD Sender: No OFD packet to send [05:42:08]OFD Sender: No OFD packet to send [05:42:13]OFD Sender: No OFD packet to send [05:42:18]OFD Sender: No OFD packet to send [05:42:23]OFD Sender: No OFD packet to send [05:42:28]OFD Sender: No OFD packet to send [05:42:33]OFD Sender: No OFD packet to send [05:42:38]OFD Sender: No OFD packet to send [05:42:43]OFD Sender: No OFD packet to send [05:42:48]OFD Sender: No OFD packet to send [05:42:53]OFD Sender: No OFD packet to send [05:42:58]OFD Sender: No OFD packet to send [05:43:03]OFD Sender: No OFD packet to send [05:43:08]OFD Sender: No OFD packet to send [05:43:13]OFD Sender: No OFD packet to send [05:43:18]OFD Sender: No OFD packet to send [05:43:23]OFD Sender: No OFD packet to send [05:43:28]OFD Sender: No OFD packet to send [05:43:33]OFD Sender: No OFD packet to send [05:43:38]OFD Sender: No OFD packet to send [05:43:43]OFD Sender: No OFD packet to send [05:43:48]OFD Sender: No OFD packet to send [05:43:53]OFD Sender: No OFD packet to send [05:43:58]OFD Sender: No OFD packet to send [05:44:03]OFD Sender: No OFD packet to send [05:44:08]OFD Sender: No OFD packet to send [05:44:13]OFD Sender: No OFD packet to send [05:44:18]OFD Sender: No OFD packet to send [05:44:23]OFD Sender: No OFD packet to send [05:44:28]OFD Sender: No OFD packet to send [05:44:33]OFD Sender: No OFD packet to send [05:44:38]OFD Sender: No OFD packet to send [05:44:43]OFD Sender: No OFD packet to send [05:44:48]OFD Sender: No OFD packet to send [05:44:53]OFD Sender: No OFD packet to send [05:44:58]OFD Sender: No OFD packet to send [05:45:03]OFD Sender: No OFD packet to send [05:45:08]OFD Sender: No OFD packet to send [05:45:13]OFD Sender: No OFD packet to send [05:45:18]OFD Sender: No OFD packet to send [05:45:23]OFD Sender: No OFD packet to send [05:45:28]OFD Sender: No OFD packet to send [05:45:33]OFD Sender: No OFD packet to send [05:45:38]OFD Sender: No OFD packet to send [05:45:43]OFD Sender: No OFD packet to send [05:45:48]OFD Sender: No OFD packet to send [05:45:53]OFD Sender: No OFD packet to send [05:45:58]OFD Sender: No OFD packet to send [05:46:03]OFD Sender: No OFD packet to send [05:46:08]OFD Sender: No OFD packet to send [05:46:13]OFD Sender: No OFD packet to send [05:46:18]OFD Sender: No OFD packet to send [05:46:23]OFD Sender: No OFD packet to send [05:46:28]OFD Sender: No OFD packet to send [05:46:33]OFD Sender: No OFD packet to send [05:46:38]OFD Sender: No OFD packet to send [05:46:43]OFD Sender: No OFD packet to send [05:46:48]OFD Sender: No OFD packet to send [05:46:53]OFD Sender: No OFD packet to send [05:46:58]OFD Sender: No OFD packet to send [05:47:03]OFD Sender: No OFD packet to send [05:47:08]OFD Sender: No OFD packet to send [05:47:13]OFD Sender: No OFD packet to send [05:47:18]OFD Sender: No OFD packet to send [05:47:23]OFD Sender: No OFD packet to send [05:47:28]OFD Sender: No OFD packet to send [05:47:33]OFD Sender: No OFD packet to send [05:47:38]OFD Sender: No OFD packet to send [05:47:43]OFD Sender: No OFD packet to send [05:47:48]OFD Sender: No OFD packet to send [05:47:53]OFD Sender: No OFD packet to send [05:47:58]OFD Sender: No OFD packet to send [05:48:03]OFD Sender: No OFD packet to send [05:48:08]OFD Sender: No OFD packet to send [05:48:13]OFD Sender: No OFD packet to send [05:48:18]OFD Sender: No OFD packet to send [05:48:23]OFD Sender: No OFD packet to send [05:48:28]OFD Sender: No OFD packet to send [05:48:33]OFD Sender: No OFD packet to send [05:48:38]OFD Sender: No OFD packet to send [05:48:43]OFD Sender: No OFD packet to send [05:48:48]OFD Sender: No OFD packet to send [05:48:53]OFD Sender: No OFD packet to send [05:48:58]OFD Sender: No OFD packet to send [05:49:03]OFD Sender: No OFD packet to send [05:49:08]OFD Sender: No OFD packet to send [05:49:13]OFD Sender: No OFD packet to send [05:49:18]OFD Sender: No OFD packet to send [05:49:23]OFD Sender: No OFD packet to send [05:49:28]OFD Sender: No OFD packet to send [05:49:33]OFD Sender: No OFD packet to send [05:49:38]OFD Sender: No OFD packet to send [05:49:43]OFD Sender: No OFD packet to send [05:49:48]OFD Sender: No OFD packet to send [05:49:53]OFD Sender: No OFD packet to send [05:49:58]OFD Sender: No OFD packet to send [05:50:03]OFD Sender: No OFD packet to send [05:50:08]OFD Sender: No OFD packet to send [05:50:13]OFD Sender: No OFD packet to send [05:50:18]OFD Sender: No OFD packet to send [05:50:23]OFD Sender: No OFD packet to send [05:50:28]OFD Sender: No OFD packet to send [05:50:33]OFD Sender: No OFD packet to send [05:50:38]OFD Sender: No OFD packet to send [05:50:43]OFD Sender: No OFD packet to send [05:50:48]OFD Sender: No OFD packet to send [05:50:53]OFD Sender: No OFD packet to send [05:50:58]OFD Sender: No OFD packet to send [05:51:03]OFD Sender: No OFD packet to send [05:51:08]OFD Sender: No OFD packet to send [05:51:13]OFD Sender: No OFD packet to send [05:51:18]OFD Sender: No OFD packet to send [05:51:23]OFD Sender: No OFD packet to send [05:51:28]OFD Sender: No OFD packet to send [05:51:33]OFD Sender: No OFD packet to send [05:51:38]OFD Sender: No OFD packet to send [05:51:43]OFD Sender: No OFD packet to send [05:51:48]OFD Sender: No OFD packet to send [05:51:53]OFD Sender: No OFD packet to send [05:51:58]OFD Sender: No OFD packet to send [05:52:03]OFD Sender: No OFD packet to send [05:52:08]OFD Sender: No OFD packet to send [05:52:13]OFD Sender: No OFD packet to send [05:52:18]OFD Sender: No OFD packet to send [05:52:23]OFD Sender: No OFD packet to send [05:52:28]OFD Sender: No OFD packet to send [05:52:33]OFD Sender: No OFD packet to send [05:52:38]OFD Sender: No OFD packet to send [05:52:43]OFD Sender: No OFD packet to send [05:52:48]OFD Sender: No OFD packet to send [05:52:53]OFD Sender: No OFD packet to send [05:52:58]OFD Sender: No OFD packet to send [05:53:03]OFD Sender: No OFD packet to send [05:53:08]OFD Sender: No OFD packet to send [05:53:13]OFD Sender: No OFD packet to send [05:53:18]OFD Sender: No OFD packet to send [05:53:23]OFD Sender: No OFD packet to send [05:53:28]OFD Sender: No OFD packet to send [05:53:33]OFD Sender: No OFD packet to send [05:53:38]OFD Sender: No OFD packet to send [05:53:43]OFD Sender: No OFD packet to send [05:53:48]OFD Sender: No OFD packet to send [05:53:53]OFD Sender: No OFD packet to send [05:53:58]OFD Sender: No OFD packet to send [05:54:03]OFD Sender: No OFD packet to send [05:54:08]OFD Sender: No OFD packet to send [05:54:13]OFD Sender: No OFD packet to send [05:54:18]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:09]OFD Sender: No OFD packet to send [05:56:14]OFD Sender: No OFD packet to send [05:56:19]OFD Sender: No OFD packet to send [05:56:24]OFD Sender: No OFD packet to send [05:56:29]OFD Sender: No OFD packet to send [05:56:34]OFD Sender: No OFD packet to send [05:56:39]OFD Sender: No OFD packet to send [05:56:44]OFD Sender: No OFD packet to send [05:56:49]OFD Sender: No OFD packet to send [05:56:54]OFD Sender: No OFD packet to send [05:56:59]OFD Sender: No OFD packet to send [05:57:04]OFD Sender: No OFD packet to send [05:57:09]OFD Sender: No OFD packet to send [05:57:14]OFD Sender: No OFD packet to send [05:57:19]OFD Sender: No OFD packet to send [05:57:24]OFD Sender: No OFD packet to send [05:57:29]OFD Sender: No OFD packet to send [05:57:34]OFD Sender: No OFD packet to send [05:57:39]OFD Sender: No OFD packet to send [05:57:44]OFD Sender: No OFD packet to send [05:57:49]OFD Sender: No OFD packet to send [05:57:54]OFD Sender: No OFD packet to send [05:57:59]OFD Sender: No OFD packet to send [05:58:04]OFD Sender: No OFD packet to send [05:58:09]OFD Sender: No OFD packet to send [05:58:14]OFD Sender: No OFD packet to send [05:58:19]OFD Sender: No OFD packet to send [05:58:24]OFD Sender: No OFD packet to send [05:58:29]OFD Sender: No OFD packet to send [05:58:34]OFD Sender: No OFD packet to send [05:58:39]OFD Sender: No OFD packet to send [05:58:44]OFD Sender: No OFD packet to send [05:58:49]OFD Sender: No OFD packet to send [05:58:54]OFD Sender: No OFD packet to send [05:58:59]OFD Sender: No OFD packet to send [05:59:04]OFD Sender: No OFD packet to send [05:59:09]OFD Sender: No OFD packet to send [05:59:14]OFD Sender: No OFD packet to send [05:59:19]OFD Sender: No OFD packet to send [05:59:24]OFD Sender: No OFD packet to send [05:59:29]OFD Sender: No OFD packet to send [05:59:34]OFD Sender: No OFD packet to send [05:59:39]OFD Sender: No OFD packet to send [05:59:44]OFD Sender: No OFD packet to send [05:59:49]OFD Sender: No OFD packet to send [05:59:54]OFD Sender: No OFD packet to send [05:59:59]OFD Sender: No OFD packet to send [06:00:04]OFD Sender: No OFD packet to send [06:00:09]OFD Sender: No OFD packet to send [06:00:14]OFD Sender: No OFD packet to send [06:00:19]OFD Sender: No OFD packet to send [06:00:24]OFD Sender: No OFD packet to send [06:00:29]OFD Sender: No OFD packet to send [06:00:34]OFD Sender: No OFD packet to send [06:00:39]OFD Sender: No OFD packet to send [06:00:44]OFD Sender: No OFD packet to send [06:00:49]OFD Sender: No OFD packet to send [06:00:54]OFD Sender: No OFD packet to send [06:00:59]OFD Sender: No OFD packet to send [06:01:04]OFD Sender: No OFD packet to send [06:01:09]OFD Sender: No OFD packet to send [06:01:14]OFD Sender: No OFD packet to send [06:01:19]OFD Sender: No OFD packet to send [06:01:24]OFD Sender: No OFD packet to send [06:01:29]OFD Sender: No OFD packet to send [06:01:34]OFD Sender: No OFD packet to send [06:01:39]OFD Sender: No OFD packet to send [06:01:44]OFD Sender: No OFD packet to send [06:01:49]OFD Sender: No OFD packet to send [06:01:54]OFD Sender: No OFD packet to send [06:01:59]OFD Sender: No OFD packet to send [06:02:04]OFD Sender: No OFD packet to send [06:02:09]OFD Sender: No OFD packet to send [06:02:14]OFD Sender: No OFD packet to send [06:02:19]OFD Sender: No OFD packet to send [06:02:24]OFD Sender: No OFD packet to send [06:02:29]OFD Sender: No OFD packet to send [06:02:34]OFD Sender: No OFD packet to send [06:02:39]OFD Sender: No OFD packet to send [06:02:44]OFD Sender: No OFD packet to send [06:02:49]OFD Sender: No OFD packet to send [06:02:54]OFD Sender: No OFD packet to send [06:02:59]OFD Sender: No OFD packet to send [06:03:04]OFD Sender: No OFD packet to send [06:03:09]OFD Sender: No OFD packet to send [06:03:14]OFD Sender: No OFD packet to send [06:03:19]OFD Sender: No OFD packet to send [06:03:23]accept exits with 9 [06:03:23]New connection [06:03:23]New thread 3067252068 created [06:03:23]Thread 3067395428 joined [06:03:23]Waiting for new connection... [06:03:23] Sock 9.Parse request [06:03:23]Sock 9.Check first char [06:03:23]Sock 9.First char is OK [06:03:23]request: POST /json_proto HTTP/1.0 [06:03:23]Method: POST [06:03:23]URL: /json_proto [06:03:23]Method is POST - this is cgi request [06:03:23]url: /json_proto [06:03:23]query_string will be loaded in cgi processing [06:03:23]execute_cgi json_proto POST (null) [06:03:23]execute_cgi path=json_proto method=POST [06:03:23]POST find Content-Length [06:03:23]Host: 172.17.48.197:8080 [06:03:23]Content-Length: 825 [06:03:23]Content-Type: application/json [06:03:23] [06:03:23]POST finish read [06:03:23]Found Content-Length = 825 [06:03:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106092", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 70.90, "quantity" : 35.270, "sum" : 2500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 2500.64 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:03:23]execute_script... [06:03:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106092", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 70.90, "quantity" : 35.270, "sum" : 2500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 2500.64 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:03:23]POST & json_proto [06:03:23]process_json_proto [06:03:23]json parsed OK: [06:03:23]protocol is kg_v1.0 [06:03:23]action value=close_receipt [06:03:23]process_action close_receipt [06:03:23]cmd_close_receipt [06:03:23]MH_GetDate [06:03:23]Write to MH i2c: F0 00 00 D8 10 D7 [06:03:23]Write i2c OK [06:03:23]MH_I2C_Read... [06:03:23]Read from MH i2c: F0 [06:03:23]MH_I2C_Read... [06:03:23]Read from MH i2c: F0 09 00 [06:03:23]MH_I2C_Read... [06:03:23]Read from MH i2c: F0 09 00 D8 10 00 AC 12 E4 65 6C AF E3 65 4A [06:03:23]GetLastDocTimeStamp 1709443891 [06:03:23]current date 1709445804 [06:03:23]FM_GetShiftState [06:03:23]SAM_PROTO_GetShiftState [06:03:23]wFMCommunicate request_size=4 [06:03:23]MH_SAM_APDU [06:03:23]CAPDU: 80 13 01 00 [06:03:23]Write to MH i2c: E2 08 00 D9 10 80 13 01 00 00 00 00 00 66 [06:03:23]Write i2c OK [06:03:23]MH_I2C_Read... [06:03:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:03:23]Read from MH i2c: E2 [06:03:23]MH_I2C_Read... [06:03:23]Read from MH i2c: E2 0E 00 [06:03:23]MH_I2C_Read... [06:03:23]Read from MH i2c: E2 0E 00 D9 10 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 28 [06:03:23]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [06:03:23]wFMCommunicate OK [06:03:23]SAM_PROTO_GetShiftState done [06:03:23]FM_GetShiftState done [06:03:23]opened in 1709425579 [06:03:23]opened+sec_in_day 1709511979 [06:03:23]quantity*price = 250064 [06:03:23]sum+1 = 250065 [06:03:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2500.64 НСП 1% : 22.13 НДС 12% : 265.55 Наличными: 0.00 Безнал.: 2500.64 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 30 03.03.2024 06:03 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874798 ФД: 123173 ФПД: 48420462812121 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T060324&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123173&fm=48420462812121&tin=02508201610067®Number=0000000000090573&sum=250064 [06:03:24]StoreToDocumentArchive [06:03:24]shift 323 fd 123173 [06:03:24]save to /storage/0323/doc_00123173 [06:03:24]save last doc name /storage/0323/doc_00123173 to /storage/kkm_last_doc_name [06:03:24]save OK [06:03:24]Clear old archive folders... [06:03:24]ProcessDocumentItem done err = 0, tmpTLVsize=252 [06:03:24]tlvbuf is 00D9DF50 [06:03:24]SAM_PROTO_ClearQueue [06:03:24]wFMCommunicate request_size=4 [06:03:24]MH_SAM_APDU [06:03:24]CAPDU: 80 09 00 00 [06:03:24]Write to MH i2c: E2 08 00 E6 10 80 09 00 00 00 00 00 00 68 [06:03:24]Write i2c OK [06:03:24]MH_I2C_Read... [06:03:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:03:24]Read from MH i2c: E2 [06:03:24]MH_I2C_Read... [06:03:24]Read from MH i2c: E2 03 00 [06:03:24]MH_I2C_Read... [06:03:24]Read from MH i2c: E2 03 00 E6 10 00 90 00 6A [06:03:24]RAPDU: 90 00 [06:03:24]wFMCommunicate OK [06:03:24]SAM_PROTO_ClearQueue done [06:03:24]KKMCreateOFDPacket [06:03:24]OFDProtocolAddRootSTLVToBuf [06:03:24]FM_MakeSignedData [06:03:24]FM_MakeSignedData [06:03:24]SAM_PROTO_SignData [06:03:24]wFMCommunicate request_size=4 [06:03:24]MH_SAM_APDU [06:03:24]CAPDU: 80 0D 01 02 [06:03:24]Write to MH i2c: E2 08 00 E7 10 80 0D 01 02 00 00 00 00 70 [06:03:24]Write i2c OK [06:03:24]MH_I2C_Read... [06:03:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:03:24]Read from MH i2c: E2 [06:03:24]MH_I2C_Read... [06:03:24]Read from MH i2c: E2 03 00 [06:03:24]MH_I2C_Read... [06:03:24]Read from MH i2c: E2 03 00 E7 10 00 90 00 6B [06:03:24]RAPDU: 90 00 [06:03:24]wFMCommunicate OK [06:03:24]wFMCommunicate request_size=255 [06:03:24]MH_SAM_APDU [06:03:24]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 C6 89 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 D0 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 AC 12 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 25 E1 01 00 35 04 06 00 [06:03:24]Write to MH i2c: E2 02 01 E8 10 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 35 FF 03 08 00 03 C6 89 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 D0 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 AC 12 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 25 E1 01 00 35 04 06 00 00 00 03 [06:03:24]Write i2c OK [06:03:24]MH_I2C_Read... [06:03:24]OFD Sender: No OFD packet to send [06:03:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:03:24]Read from MH i2c: E2 [06:03:24]MH_I2C_Read... [06:03:24]Read from MH i2c: E2 03 00 [06:03:24]MH_I2C_Read... [06:03:24]Read from MH i2c: E2 03 00 E8 10 00 90 00 6C [06:03:24]RAPDU: 90 00 [06:03:24]wFMCommunicate OK [06:03:24]wFMCommunicate request_size=11 [06:03:24]MH_SAM_APDU [06:03:24]CAPDU: 80 0D 02 02 06 2C 09 C4 7C 5B D9 [06:03:24]Write to MH i2c: E2 0E 00 E9 10 80 0D 02 02 06 00 2C 09 C4 7C 5B D9 00 00 28 [06:03:24]Write i2c OK [06:03:24]MH_I2C_Read... [06:03:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:03:24]Read from MH i2c: E2 [06:03:24]MH_I2C_Read... [06:03:24]Read from MH i2c: E2 03 00 [06:03:24]MH_I2C_Read... [06:03:24]Read from MH i2c: E2 03 00 E9 10 00 90 00 6D [06:03:24]RAPDU: 90 00 [06:03:24]wFMCommunicate OK [06:03:24]wFMCommunicate request_size=4 [06:03:24]MH_SAM_APDU [06:03:24]CAPDU: 80 0D 03 02 [06:03:24]Write to MH i2c: E2 08 00 EA 10 80 0D 03 02 00 00 00 00 75 [06:03:24]Write i2c OK [06:03:24]MH_I2C_Read... [06:03:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:03:24]Read from MH i2c: E2 [06:03:24]MH_I2C_Read... [06:03:24]Read from MH i2c: E2 0B 00 [06:03:24]MH_I2C_Read... [06:03:24]Read from MH i2c: E2 0B 00 EA 10 00 FB AE 20 C8 69 EA 88 B3 90 00 95 [06:03:24]RAPDU: FB AE 20 C8 69 EA 88 B3 90 00 [06:03:24]wFMCommunicate OK [06:03:24]SAM_PROTO_SignData done [06:03:24]FM_MakeSignedData done [06:03:24]CreateOFDProtocolMessage [06:03:24]wFMCommunicate request_size=4 [06:03:24]MH_SAM_APDU [06:03:24]CAPDU: 80 11 00 00 [06:03:24]Write to MH i2c: E2 08 00 EB 10 80 11 00 00 00 00 00 00 75 [06:03:24]Write i2c OK [06:03:24]MH_I2C_Read... [06:03:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:03:24]Read from MH i2c: E2 [06:03:24]MH_I2C_Read... [06:03:24]Read from MH i2c: E2 17 00 [06:03:24]MH_I2C_Read... [06:03:24]Read from MH i2c: E2 17 00 EB 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 D3 [06:03:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [06:03:24]wFMCommunicate OK [06:03:24]CreateOFDProtocolMessage done [06:03:24]OFDSenderStorePacket 123173 [06:03:24]StoreOFDPacket docnum=123173 [06:03:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 01 00 00 85 49 08 01 7B 80 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 35 FF 03 08 00 03 C6 89 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 D0 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 AC 12 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 25 E1 01 00 35 04 06 00 2C 09 C4 7C 5B D9 FB AE 20 C8 69 EA 88 B3 [06:03:24]CheckFolder [06:03:24]dirname=/storage/ofd_packets [06:03:24]CheckFolder done [06:03:24]ProducePacketName [06:03:24]name=ofd_packets/00123173 [06:03:24]NVStorageSaveData ofd_packets/00123173 [06:03:24]File name is /storage/ofd_packets/00123173 [06:03:24]Write 302 bytes [06:03:24]NVStorageSaveData done [06:03:24]OFDSenderStorePacket done [06:03:24]KKMCreateOFDPacket done [06:03:24]NVStorageSaveData kkm_last_timestamp [06:03:24]File name is /storage/kkm_last_timestamp [06:03:24]Write 4 bytes [06:03:24]NVStorageSaveData done [06:03:24]ExternCall_PrintAddStr [06:03:24]wPrintStart [06:03:24]Write to MH i2c: 01 00 00 EC 10 FC [06:03:24]Write i2c OK [06:03:24]MH_I2C_Read... [06:03:24]Read from MH i2c: 01 [06:03:24]MH_I2C_Read... [06:03:24]Read from MH i2c: 01 07 00 [06:03:24]MH_I2C_Read... [06:03:24]Read from MH i2c: 01 07 00 EC 10 00 00 00 00 00 FF 0F 11 [06:03:24]RasterBufferAndPrint [06:03:24]line Счет N : (1)1106092 [06:03:24]line ИНН: 02508201610067 [06:03:24]line Контрольно-Кассовый Чек [06:03:24]line ПРОДАЖА [06:03:24]line ТРК (МРК, ГНК) : 51 [06:03:24]line Товар: 2710194210 [06:03:24]line ДТ(л)-К-5 [06:03:24]line 35.270 * 70.90 [06:03:24]line = 2500.64 [06:03:24]line НДС 12% НСП 1% [06:03:24]line > о реализуемом товаре [06:03:24]line ИТОГО: 2500.64 [06:03:24]line НСП 1% : 22.13 [06:03:24]line НДС 12% : 265.55 [06:03:24]line Наличными: 0.00 [06:03:24]line Безнал.: 2500.64 [06:03:24]line Место: АЗС № 25 "Партнер Нефть" [06:03:24]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [06:03:24]line СНО: Общий режим [06:03:24]line Чек 30 03.03.2024 06:03 [06:03:24]line Смена: 323 ФФД: 1.0 [06:03:24]line ЗНМ: 0300000019 [06:03:24]line РНМ: 0000000000090573 [06:03:24]line Версия ККМ: 001 [06:03:24]line Платежная система: Бакай Банк [06:03:24]line ФМ: 0000000000874798 [06:03:24]line ФД: 123173 [06:03:24]line ФПД: 48420462812121 [06:03:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T060324&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123173&fm=48420462812121&tin=02508201610067®Number=0000000000090573&sum=250064 [06:03:25]OFD Sender: Processing packet 123173 [packets to send 112, broken 111] [06:03:25]ProducePacketName [06:03:25]name=ofd_packets/00123173 [06:03:25]OFD Sender: To server: pG, [06:03:25]CommunicateWithHost lk.salyk.kg:30040 [06:03:25]ConnectInit lk.salyk.kg [06:03:25]written 0, free lines is 4095 [06:03:25]Connected sock=10 [06:03:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 01 00 00 85 49 08 01 7B 80 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 35 FF 03 08 00 03 C6 89 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 D0 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 AC 12 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 25 E1 01 00 35 04 06 00 2C 09 C4 7C 5B D9 FB AE 20 C8 69 EA 88 B3 [06:03:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 82 C8 47 00 F7 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 37 39 38 10 04 04 00 25 E1 01 00 F4 03 04 00 D9 BE E3 65 B6 04 01 00 00 CD FB 38 43 4A 15 BC 3F [06:03:25]CommunicateWithHost err = 0 [06:03:25]CheckOFDResponse [06:03:25]1017 (14) - 77093643461234 [06:03:25]1041 (16) - 0000000000874798 [06:03:25]1040 (4) - 123173 [06:03:25]1012 (4) - 03.03.2024 00:05 [06:03:25]1206 (1) - 0 [06:03:25]OFD Sender: Remove packet 123173 [06:03:25]ProducePacketName [06:03:25]name=ofd_packets/00123173 [06:03:25]NVStorageDeleteData [06:03:25]Write to MH i2c: 01 00 00 16 11 27 [06:03:25]Write i2c OK [06:03:25]MH_I2C_Read... [06:03:25]Read from MH i2c: 01 [06:03:25]MH_I2C_Read... [06:03:25]Read from MH i2c: 01 07 00 [06:03:25]MH_I2C_Read... [06:03:25]Read from MH i2c: 01 07 00 16 11 00 00 00 00 00 05 0D 40 [06:03:25]RasterBufferAndPrint [06:03:25]line [06:03:25]line [06:03:25]line [06:03:25]line [06:03:25]line [06:03:25]written 0, free lines is 3339 [06:03:25]MH_Cut [06:03:25]Write to MH i2c: D1 01 00 1D 11 01 00 [06:03:25]Write i2c OK [06:03:25]MH_I2C_Read... [06:03:25]Read from MH i2c: D1 [06:03:25]MH_I2C_Read... [06:03:25]Read from MH i2c: D1 01 00 [06:03:25]MH_I2C_Read... [06:03:25]Read from MH i2c: D1 01 00 1D 11 00 FF [06:03:25]Write to MH i2c: 01 00 00 1E 11 2F [06:03:25]Write i2c OK [06:03:25]MH_I2C_Read... [06:03:25]OFD Sender: No OFD packet to send [06:03:26]*** Cut start [06:03:26]*** Purtial cut [06:03:26]*** Stage 1: CUTSNS_PIN = 1 [06:03:28]Read from MH i2c: 01 [06:03:28]MH_I2C_Read... [06:03:28]*** Stop cut motor [06:03:28]*** Cut end [06:03:28]Read from MH i2c: 01 07 00 [06:03:28]MH_I2C_Read... [06:03:28]Read from MH i2c: 01 07 00 1E 11 00 00 00 00 00 FF 0F 44 [06:03:28]process_action close_receipt done [06:03:28]requested_data is exist [06:03:28]produce_requested_data [06:03:28]requested_item fm.sn is exist - process it [06:03:28]wFMCommunicate request_size=4 [06:03:28]MH_SAM_APDU [06:03:28]CAPDU: 80 11 00 00 [06:03:28]Write to MH i2c: E2 08 00 1F 11 80 11 00 00 00 00 00 00 AA [06:03:28]Write i2c OK [06:03:28]MH_I2C_Read... [06:03:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:03:28]Read from MH i2c: E2 [06:03:28]MH_I2C_Read... [06:03:28]Read from MH i2c: E2 17 00 [06:03:28]MH_I2C_Read... [06:03:28]Read from MH i2c: E2 17 00 1F 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 08 [06:03:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [06:03:28]wFMCommunicate OK [06:03:28]requested_item fd.num is exist - process it [06:03:28]SAM_PROTO_GetFieldsCounters [06:03:28]wFMCommunicate request_size=4 [06:03:28]MH_SAM_APDU [06:03:28]CAPDU: 80 13 00 00 [06:03:28]Write to MH i2c: E2 08 00 20 11 80 13 00 00 00 00 00 00 AD [06:03:28]Write i2c OK [06:03:28]MH_I2C_Read... [06:03:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:03:28]Read from MH i2c: E2 [06:03:28]MH_I2C_Read... [06:03:28]Read from MH i2c: E2 62 00 [06:03:28]MH_I2C_Read... [06:03:28]Read from MH i2c: E2 62 00 20 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 25 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 7D [06:03: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 25 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:03:28]wFMCommunicate OK [06:03:28]SAM_PROTO_GetFieldsCounters done [06:03:28]requested_item shift.num is exist - process it [06:03:28]requested_item shift.opened is exist - process it [06:03:28]req_shift_opened [06:03:28]FM_GetShiftState [06:03:28]SAM_PROTO_GetShiftState [06:03:28]wFMCommunicate request_size=4 [06:03:28]MH_SAM_APDU [06:03:28]CAPDU: 80 13 01 00 [06:03:28]Write to MH i2c: E2 08 00 21 11 80 13 01 00 00 00 00 00 AF [06:03:28]Write i2c OK [06:03:28]MH_I2C_Read... [06:03:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:03:28]Read from MH i2c: E2 [06:03:28]MH_I2C_Read... [06:03:28]Read from MH i2c: E2 0E 00 [06:03:28]MH_I2C_Read... [06:03:28]Read from MH i2c: E2 0E 00 21 11 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 71 [06:03:28]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [06:03:28]wFMCommunicate OK [06:03:28]SAM_PROTO_GetShiftState done [06:03:28]FM_GetShiftState done [06:03:28]req_shift_opened done [06:03:28]requested_item shift.open_date is exist - process it [06:03:28]req_shift_open_date [06:03:28]req_shift_open_date done [06:03:28]produce_requested_data done [06:03:28]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123173,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [06:03:28]process_action_free close_receipt [06:03:28]json_value_free [06:03:28]json_value_free done [06:03:28]process_json_proto returns [06:03:28]Send response to host [06:03:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123173,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [06:03:28]free response buf [06:03:28]execute_script done [06:03:28]execute_script returns [06:03:28]free content buf [06:03:28]Sock 9.Close socket [06:03:28]Sock 9.Thread stoped [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:45]OFD Sender: No OFD packet to send [06:03:50]OFD Sender: No OFD packet to send [06:03:55]OFD Sender: No OFD packet to send [06:04:00]OFD Sender: No OFD packet to send [06:04:05]OFD Sender: No OFD packet to send [06:04:10]OFD Sender: No OFD packet to send [06:04:15]OFD Sender: No OFD packet to send [06:04:20]OFD Sender: No OFD packet to send [06:04:25]OFD Sender: No OFD packet to send [06:04:30]OFD Sender: No OFD packet to send [06:04:35]OFD Sender: No OFD packet to send [06:04:40]OFD Sender: No OFD packet to send [06:04:45]OFD Sender: No OFD packet to send [06:04:50]OFD Sender: No OFD packet to send [06:04:55]OFD Sender: No OFD packet to send [06:05:00]OFD Sender: No OFD packet to send [06:05:05]OFD Sender: No OFD packet to send [06:05:10]OFD Sender: No OFD packet to send [06:05:15]OFD Sender: No OFD packet to send [06:05:21]OFD Sender: No OFD packet to send [06:05:26]OFD Sender: No OFD packet to send [06:05:31]OFD Sender: No OFD packet to send [06:05:36]OFD Sender: No OFD packet to send [06:05:41]OFD Sender: No OFD packet to send [06:05:46]OFD Sender: No OFD packet to send [06:05:51]OFD Sender: No OFD packet to send [06:05:56]OFD Sender: No OFD packet to send [06:06:01]OFD Sender: No OFD packet to send [06:06:06]OFD Sender: No OFD packet to send [06:06:11]OFD Sender: No OFD packet to send [06:06:16]OFD Sender: No OFD packet to send [06:06:21]OFD Sender: No OFD packet to send [06:06:26]OFD Sender: No OFD packet to send [06:06:31]OFD Sender: No OFD packet to send [06:06:36]OFD Sender: No OFD packet to send [06:06:41]OFD Sender: No OFD packet to send [06:06:46]OFD Sender: No OFD packet to send [06:06:51]OFD Sender: No OFD packet to send [06:06:56]OFD Sender: No OFD packet to send [06:07:01]OFD Sender: No OFD packet to send [06:07:06]OFD Sender: No OFD packet to send [06:07:11]OFD Sender: No OFD packet to send [06:07:16]OFD Sender: No OFD packet to send [06:07:21]OFD Sender: No OFD packet to send [06:07:26]OFD Sender: No OFD packet to send [06:07:31]OFD Sender: No OFD packet to send [06:07:36]OFD Sender: No OFD packet to send [06:07:41]OFD Sender: No OFD packet to send [06:07:46]OFD Sender: No OFD packet to send [06:07:51]OFD Sender: No OFD packet to send [06:07:56]OFD Sender: No OFD packet to send [06:08:01]OFD Sender: No OFD packet to send [06:08:06]OFD Sender: No OFD packet to send [06:08:11]OFD Sender: No OFD packet to send [06:08:16]OFD Sender: No OFD packet to send [06:08:21]OFD Sender: No OFD packet to send [06:08:26]OFD Sender: No OFD packet to send [06:08:31]OFD Sender: No OFD packet to send [06:08:36]OFD Sender: No OFD packet to send [06:08:41]OFD Sender: No OFD packet to send [06:08:46]OFD Sender: No OFD packet to send [06:08:51]OFD Sender: No OFD packet to send [06:08:56]OFD Sender: No OFD packet to send [06:09:01]OFD Sender: No OFD packet to send [06:09:06]OFD Sender: No OFD packet to send [06:09:11]OFD Sender: No OFD packet to send [06:09:16]OFD Sender: No OFD packet to send [06:09:21]OFD Sender: No OFD packet to send [06:09:26]OFD Sender: No OFD packet to send [06:09:31]OFD Sender: No OFD packet to send [06:09:36]OFD Sender: No OFD packet to send [06:09:41]OFD Sender: No OFD packet to send [06:09:46]OFD Sender: No OFD packet to send [06:09:51]OFD Sender: No OFD packet to send [06:09:56]OFD Sender: No OFD packet to send [06:10:01]OFD Sender: No OFD packet to send [06:10:06]OFD Sender: No OFD packet to send [06:10:11]OFD Sender: No OFD packet to send [06:10:16]OFD Sender: No OFD packet to send [06:10:21]OFD Sender: No OFD packet to send [06:10:26]OFD Sender: No OFD packet to send [06:10:31]OFD Sender: No OFD packet to send [06:10:36]OFD Sender: No OFD packet to send [06:10:41]OFD Sender: No OFD packet to send [06:10:46]OFD Sender: No OFD packet to send [06:10:51]OFD Sender: No OFD packet to send [06:10:56]OFD Sender: No OFD packet to send [06:11:01]OFD Sender: No OFD packet to send [06:11:06]OFD Sender: No OFD packet to send [06:11:11]OFD Sender: No OFD packet to send [06:11:16]OFD Sender: No OFD packet to send [06:11:21]OFD Sender: No OFD packet to send [06:11:26]OFD Sender: No OFD packet to send [06:11:31]OFD Sender: No OFD packet to send [06:11:36]OFD Sender: No OFD packet to send [06:11:41]OFD Sender: No OFD packet to send [06:11:46]OFD Sender: No OFD packet to send [06:11:51]OFD Sender: No OFD packet to send [06:11:56]OFD Sender: No OFD packet to send [06:12:01]OFD Sender: No OFD packet to send [06:12:06]OFD Sender: No OFD packet to send [06:12:11]OFD Sender: No OFD packet to send [06:12:16]OFD Sender: No OFD packet to send [06:12:21]OFD Sender: No OFD packet to send [06:12:26]OFD Sender: No OFD packet to send [06:12:31]OFD Sender: No OFD packet to send [06:12:36]OFD Sender: No OFD packet to send [06:12:41]OFD Sender: No OFD packet to send [06:12:46]OFD Sender: No OFD packet to send [06:12:51]OFD Sender: No OFD packet to send [06:12:56]OFD Sender: No OFD packet to send [06:13:01]OFD Sender: No OFD packet to send [06:13:06]OFD Sender: No OFD packet to send [06:13:11]OFD Sender: No OFD packet to send [06:13:16]OFD Sender: No OFD packet to send [06:13:21]OFD Sender: No OFD packet to send [06:13:26]OFD Sender: No OFD packet to send [06:13:31]OFD Sender: No OFD packet to send [06:13:36]OFD Sender: No OFD packet to send [06:13:41]OFD Sender: No OFD packet to send [06:13:46]OFD Sender: No OFD packet to send [06:13:51]OFD Sender: No OFD packet to send [06:13:56]OFD Sender: No OFD packet to send [06:14:01]OFD Sender: No OFD packet to send [06:14:06]OFD Sender: No OFD packet to send [06:14:11]OFD Sender: No OFD packet to send [06:14:16]OFD Sender: No OFD packet to send [06:14:21]OFD Sender: No OFD packet to send [06:14:26]OFD Sender: No OFD packet to send [06:14:31]OFD Sender: No OFD packet to send [06:14:36]OFD Sender: No OFD packet to send [06:14:41]OFD Sender: No OFD packet to send [06:14:46]OFD Sender: No OFD packet to send [06:14:51]OFD Sender: No OFD packet to send [06:14:56]OFD Sender: No OFD packet to send [06:15:01]OFD Sender: No OFD packet to send [06:15:06]OFD Sender: No OFD packet to send [06:15:11]OFD Sender: No OFD packet to send [06:15:16]OFD Sender: No OFD packet to send [06:15:21]OFD Sender: No OFD packet to send [06:15:26]OFD Sender: No OFD packet to send [06:15:31]OFD Sender: No OFD packet to send [06:15:36]OFD Sender: No OFD packet to send [06:15:41]OFD Sender: No OFD packet to send [06:15:46]OFD Sender: No OFD packet to send [06:15:51]OFD Sender: No OFD packet to send [06:15:56]OFD Sender: No OFD packet to send [06:16:01]OFD Sender: No OFD packet to send [06:16:06]OFD Sender: No OFD packet to send [06:16:11]OFD Sender: No OFD packet to send [06:16:16]OFD Sender: No OFD packet to send [06:16:21]OFD Sender: No OFD packet to send [06:16:26]OFD Sender: No OFD packet to send [06:16:31]OFD Sender: No OFD packet to send [06:16:36]OFD Sender: No OFD packet to send [06:16:41]OFD Sender: No OFD packet to send [06:16:46]OFD Sender: No OFD packet to send [06:16:51]OFD Sender: No OFD packet to send [06:16:56]OFD Sender: No OFD packet to send [06:17:01]OFD Sender: No OFD packet to send [06:17:06]OFD Sender: No OFD packet to send [06:17:11]OFD Sender: No OFD packet to send [06:17:16]OFD Sender: No OFD packet to send [06:17:21]OFD Sender: No OFD packet to send [06:17:26]OFD Sender: No OFD packet to send [06:17:31]OFD Sender: No OFD packet to send [06:17:36]OFD Sender: No OFD packet to send [06:17:41]OFD Sender: No OFD packet to send [06:17:46]OFD Sender: No OFD packet to send [06:17:51]OFD Sender: No OFD packet to send [06:17:56]OFD Sender: No OFD packet to send [06:18:01]OFD Sender: No OFD packet to send [06:18:06]OFD Sender: No OFD packet to send [06:18:11]OFD Sender: No OFD packet to send [06:18:16]OFD Sender: No OFD packet to send [06:18:21]OFD Sender: No OFD packet to send [06:18:26]OFD Sender: No OFD packet to send [06:18:31]OFD Sender: No OFD packet to send [06:18:36]OFD Sender: No OFD packet to send [06:18:41]OFD Sender: No OFD packet to send [06:18:46]OFD Sender: No OFD packet to send [06:18:51]OFD Sender: No OFD packet to send [06:18:56]OFD Sender: No OFD packet to send [06:19:01]OFD Sender: No OFD packet to send [06:19:06]OFD Sender: No OFD packet to send [06:19:11]OFD Sender: No OFD packet to send [06:19:16]OFD Sender: No OFD packet to send [06:19:21]OFD Sender: No OFD packet to send [06:19:26]OFD Sender: No OFD packet to send [06:19:31]OFD Sender: No OFD packet to send [06:19:36]OFD Sender: No OFD packet to send [06:19:41]OFD Sender: No OFD packet to send [06:19:46]OFD Sender: No OFD packet to send [06:19:51]OFD Sender: No OFD packet to send [06:19:56]OFD Sender: No OFD packet to send [06:20:01]OFD Sender: No OFD packet to send [06:20:06]OFD Sender: No OFD packet to send [06:20:12]OFD Sender: No OFD packet to send [06:20:17]OFD Sender: No OFD packet to send [06:20:22]OFD Sender: No OFD packet to send [06:20:27]OFD Sender: No OFD packet to send [06:20:32]OFD Sender: No OFD packet to send [06:20:37]OFD Sender: No OFD packet to send [06:20:42]OFD Sender: No OFD packet to send [06:20:47]OFD Sender: No OFD packet to send [06:20:52]OFD Sender: No OFD packet to send [06:20:57]OFD Sender: No OFD packet to send [06:21:02]OFD Sender: No OFD packet to send [06:21:07]OFD Sender: No OFD packet to send [06:21:12]OFD Sender: No OFD packet to send [06:21:17]OFD Sender: No OFD packet to send [06:21:22]OFD Sender: No OFD packet to send [06:21:27]OFD Sender: No OFD packet to send [06:21:32]OFD Sender: No OFD packet to send [06:21:37]OFD Sender: No OFD packet to send [06:21:42]OFD Sender: No OFD packet to send [06:21:47]OFD Sender: No OFD packet to send [06:21:52]OFD Sender: No OFD packet to send [06:21:57]OFD Sender: No OFD packet to send [06:22:02]OFD Sender: No OFD packet to send [06:22:07]OFD Sender: No OFD packet to send [06:22:12]OFD Sender: No OFD packet to send [06:22:17]OFD Sender: No OFD packet to send [06:22:22]OFD Sender: No OFD packet to send [06:22:27]OFD Sender: No OFD packet to send [06:22:32]OFD Sender: No OFD packet to send [06:22:37]OFD Sender: No OFD packet to send [06:22:42]OFD Sender: No OFD packet to send [06:22:47]OFD Sender: No OFD packet to send [06:22:52]OFD Sender: No OFD packet to send [06:22:57]OFD Sender: No OFD packet to send [06:23:02]OFD Sender: No OFD packet to send [06:23:07]OFD Sender: No OFD packet to send [06:23:12]OFD Sender: No OFD packet to send [06:23:17]OFD Sender: No OFD packet to send [06:23:22]OFD Sender: No OFD packet to send [06:23:27]OFD Sender: No OFD packet to send [06:23:32]OFD Sender: No OFD packet to send [06:23:37]OFD Sender: No OFD packet to send [06:23:42]OFD Sender: No OFD packet to send [06:23:47]OFD Sender: No OFD packet to send [06:23:52]OFD Sender: No OFD packet to send [06:23:57]OFD Sender: No OFD packet to send [06:24:02]OFD Sender: No OFD packet to send [06:24:07]OFD Sender: No OFD packet to send [06:24:12]OFD Sender: No OFD packet to send [06:24:17]OFD Sender: No OFD packet to send [06:24:22]OFD Sender: No OFD packet to send [06:24:27]OFD Sender: No OFD packet to send [06:24:32]OFD Sender: No OFD packet to send [06:24:37]OFD Sender: No OFD packet to send [06:24:42]OFD Sender: No OFD packet to send [06:24:47]OFD Sender: No OFD packet to send [06:24:52]OFD Sender: No OFD packet to send [06:24:57]OFD Sender: No OFD packet to send [06:25:02]OFD Sender: No OFD packet to send [06:25:07]OFD Sender: No OFD packet to send [06:25:12]OFD Sender: No OFD packet to send [06:25:17]OFD Sender: No OFD packet to send [06:25:22]OFD Sender: No OFD packet to send [06:25:27]OFD Sender: No OFD packet to send [06:25:32]OFD Sender: No OFD packet to send [06:25:37]OFD Sender: No OFD packet to send [06:25:42]OFD Sender: No OFD packet to send [06:25:47]OFD Sender: No OFD packet to send [06:25:52]OFD Sender: No OFD packet to send [06:25:57]OFD Sender: No OFD packet to send [06:26:02]OFD Sender: No OFD packet to send [06:26:07]OFD Sender: No OFD packet to send [06:26:12]OFD Sender: No OFD packet to send [06:26:17]OFD Sender: No OFD packet to send [06:26:22]OFD Sender: No OFD packet to send [06:26:27]OFD Sender: No OFD packet to send [06:26:32]OFD Sender: No OFD packet to send [06:26:37]OFD Sender: No OFD packet to send [06:26:42]OFD Sender: No OFD packet to send [06:26:47]OFD Sender: No OFD packet to send [06:26:52]OFD Sender: No OFD packet to send [06:26:57]OFD Sender: No OFD packet to send [06:27:02]OFD Sender: No OFD packet to send [06:27:07]OFD Sender: No OFD packet to send [06:27:12]OFD Sender: No OFD packet to send [06:27:17]OFD Sender: No OFD packet to send [06:27:22]OFD Sender: No OFD packet to send [06:27:27]OFD Sender: No OFD packet to send [06:27:32]OFD Sender: No OFD packet to send [06:27:37]OFD Sender: No OFD packet to send [06:27:42]OFD Sender: No OFD packet to send [06:27:47]OFD Sender: No OFD packet to send [06:27:52]OFD Sender: No OFD packet to send [06:27:57]OFD Sender: No OFD packet to send [06:28:02]OFD Sender: No OFD packet to send [06:28:07]OFD Sender: No OFD packet to send [06:28:12]OFD Sender: No OFD packet to send [06:28:17]OFD Sender: No OFD packet to send [06:28:22]OFD Sender: No OFD packet to send [06:28:27]OFD Sender: No OFD packet to send [06:28:32]OFD Sender: No OFD packet to send [06:28:37]OFD Sender: No OFD packet to send [06:28:42]OFD Sender: No OFD packet to send [06:28:47]OFD Sender: No OFD packet to send [06:28:52]OFD Sender: No OFD packet to send [06:28:57]OFD Sender: No OFD packet to send [06:29:02]OFD Sender: No OFD packet to send [06:29:07]OFD Sender: No OFD packet to send [06:29:12]OFD Sender: No OFD packet to send [06:29:17]OFD Sender: No OFD packet to send [06:29:22]OFD Sender: No OFD packet to send [06:29:27]OFD Sender: No OFD packet to send [06:29:32]OFD Sender: No OFD packet to send [06:29:37]OFD Sender: No OFD packet to send [06:29:42]OFD Sender: No OFD packet to send [06:29:47]OFD Sender: No OFD packet to send [06:29:52]OFD Sender: No OFD packet to send [06:29:57]OFD Sender: No OFD packet to send [06:30:02]OFD Sender: No OFD packet to send [06:30:07]OFD Sender: No OFD packet to send [06:30:12]OFD Sender: No OFD packet to send [06:30:17]OFD Sender: No OFD packet to send [06:30:22]OFD Sender: No OFD packet to send [06:30:27]OFD Sender: No OFD packet to send [06:30:32]OFD Sender: No OFD packet to send [06:30:37]OFD Sender: No OFD packet to send [06:30:42]OFD Sender: No OFD packet to send [06:30:47]OFD Sender: No OFD packet to send [06:30:52]OFD Sender: No OFD packet to send [06:30:57]OFD Sender: No OFD packet to send [06:31:02]OFD Sender: No OFD packet to send [06:31:07]OFD Sender: No OFD packet to send [06:31:12]OFD Sender: No OFD packet to send [06:31:17]OFD Sender: No OFD packet to send [06:31:22]OFD Sender: No OFD packet to send [06:31:27]OFD Sender: No OFD packet to send [06:31:32]OFD Sender: No OFD packet to send [06:31:37]OFD Sender: No OFD packet to send [06:31:42]OFD Sender: No OFD packet to send [06:31:47]OFD Sender: No OFD packet to send [06:31:52]OFD Sender: No OFD packet to send [06:31:57]OFD Sender: No OFD packet to send [06:32:02]OFD Sender: No OFD packet to send [06:32:07]OFD Sender: No OFD packet to send [06:32:12]OFD Sender: No OFD packet to send [06:32:17]OFD Sender: No OFD packet to send [06:32:22]OFD Sender: No OFD packet to send [06:32:27]OFD Sender: No OFD packet to send [06:32:32]OFD Sender: No OFD packet to send [06:32:37]OFD Sender: No OFD packet to send [06:32:42]OFD Sender: No OFD packet to send [06:32:47]OFD Sender: No OFD packet to send [06:32:52]OFD Sender: No OFD packet to send [06:32:57]OFD Sender: No OFD packet to send [06:33:02]OFD Sender: No OFD packet to send [06:33:07]OFD Sender: No OFD packet to send [06:33:12]OFD Sender: No OFD packet to send [06:33:17]OFD Sender: No OFD packet to send [06:33:22]OFD Sender: No OFD packet to send [06:33:27]OFD Sender: No OFD packet to send [06:33:32]OFD Sender: No OFD packet to send [06:33:37]OFD Sender: No OFD packet to send [06:33:42]OFD Sender: No OFD packet to send [06:33:47]OFD Sender: No OFD packet to send [06:33:52]OFD Sender: No OFD packet to send [06:33:57]OFD Sender: No OFD packet to send [06:34:02]OFD Sender: No OFD packet to send [06:34:07]OFD Sender: No OFD packet to send [06:34:12]OFD Sender: No OFD packet to send [06:34:17]OFD Sender: No OFD packet to send [06:34:22]OFD Sender: No OFD packet to send [06:34:27]OFD Sender: No OFD packet to send [06:34:32]OFD Sender: No OFD packet to send [06:34:37]OFD Sender: No OFD packet to send [06:34:42]OFD Sender: No OFD packet to send [06:34:47]OFD Sender: No OFD packet to send [06:34:52]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:51]accept exits with 7 [06:40:51]New connection [06:40:51]New thread 3067395428 created [06:40:51]Thread 3067252068 joined [06:40:51]Waiting for new connection... [06:40:51] Sock 7.Parse request [06:40:51]Sock 7.Check first char [06:40:51]Sock 7.First char is OK [06:40:51]request: POST /json_proto HTTP/1.0 [06:40:51]Method: POST [06:40:51]URL: /json_proto [06:40:51]Method is POST - this is cgi request [06:40:51]url: /json_proto [06:40:51]query_string will be loaded in cgi processing [06:40:51]execute_cgi json_proto POST (null) [06:40:51]execute_cgi path=json_proto method=POST [06:40:51]POST find Content-Length [06:40:51]Host: 172.17.48.197:8080 [06:40:51]Content-Length: 817 [06:40:51]Content-Type: application/json [06:40:51] [06:40:51]POST finish read [06:40:51]Found Content-Length = 817 [06:40:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106093", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 2.990, "sum" : 185.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 185.08 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:40:51]execute_script... [06:40:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106093", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 2.990, "sum" : 185.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 185.08 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:40:51]POST & json_proto [06:40:51]process_json_proto [06:40:51]json parsed OK: [06:40:51]protocol is kg_v1.0 [06:40:51]action value=close_receipt [06:40:51]process_action close_receipt [06:40:51]cmd_close_receipt [06:40:51]MH_GetDate [06:40:51]Write to MH i2c: F0 00 00 22 11 22 [06:40:51]Write i2c OK [06:40:51]MH_I2C_Read... [06:40:51]Read from MH i2c: F0 [06:40:51]MH_I2C_Read... [06:40:51]Read from MH i2c: F0 09 00 [06:40:51]MH_I2C_Read... [06:40:51]Read from MH i2c: F0 09 00 22 11 00 75 1B E4 65 6C AF E3 65 67 [06:40:51]GetLastDocTimeStamp 1709445804 [06:40:51]current date 1709448053 [06:40:51]FM_GetShiftState [06:40:51]SAM_PROTO_GetShiftState [06:40:51]wFMCommunicate request_size=4 [06:40:51]MH_SAM_APDU [06:40:51]CAPDU: 80 13 01 00 [06:40:51]Write to MH i2c: E2 08 00 23 11 80 13 01 00 00 00 00 00 B1 [06:40:51]Write i2c OK [06:40:51]MH_I2C_Read... [06:40:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:40:51]Read from MH i2c: E2 [06:40:51]MH_I2C_Read... [06:40:51]Read from MH i2c: E2 0E 00 [06:40:51]MH_I2C_Read... [06:40:51]Read from MH i2c: E2 0E 00 23 11 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 73 [06:40:51]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [06:40:51]wFMCommunicate OK [06:40:51]SAM_PROTO_GetShiftState done [06:40:51]FM_GetShiftState done [06:40:51]opened in 1709425579 [06:40:51]opened+sec_in_day 1709511979 [06:40:51]quantity*price = 18508 [06:40:51]sum+1 = 18509 [06:40:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 185.08 НСП 1% : 1.64 НДС 12% : 19.65 Наличными: 0.00 Безнал.: 185.08 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 31 03.03.2024 06:40 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874798 ФД: 123174 ФПД: 189990483426882 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T064053&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123174&fm=189990483426882&tin=02508201610067®Number=0000000000090573&sum=18508 [06:40:52]StoreToDocumentArchive [06:40:52]shift 323 fd 123174 [06:40:52]save to /storage/0323/doc_00123174 [06:40:52]save last doc name /storage/0323/doc_00123174 to /storage/kkm_last_doc_name [06:40:52]save OK [06:40:52]Clear old archive folders... [06:40:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:40:52]tlvbuf is 00E29E80 [06:40:52]SAM_PROTO_ClearQueue [06:40:52]wFMCommunicate request_size=4 [06:40:52]MH_SAM_APDU [06:40:52]CAPDU: 80 09 00 00 [06:40:52]Write to MH i2c: E2 08 00 30 11 80 09 00 00 00 00 00 00 B3 [06:40:52]Write i2c OK [06:40:52]MH_I2C_Read... [06:40:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:40:52]Read from MH i2c: E2 [06:40:52]MH_I2C_Read... [06:40:52]Read from MH i2c: E2 03 00 [06:40:52]MH_I2C_Read... [06:40:52]Read from MH i2c: E2 03 00 30 11 00 90 00 B5 [06:40:52]RAPDU: 90 00 [06:40:52]wFMCommunicate OK [06:40:52]SAM_PROTO_ClearQueue done [06:40:52]KKMCreateOFDPacket [06:40:52]OFDProtocolAddRootSTLVToBuf [06:40:52]FM_MakeSignedData [06:40:52]FM_MakeSignedData [06:40:52]SAM_PROTO_SignData [06:40:52]wFMCommunicate request_size=4 [06:40:52]MH_SAM_APDU [06:40:52]CAPDU: 80 0D 01 02 [06:40:52]Write to MH i2c: E2 08 00 31 11 80 0D 01 02 00 00 00 00 BB [06:40:52]Write i2c OK [06:40:52]MH_I2C_Read... [06:40:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:40:52]Read from MH i2c: E2 [06:40:52]MH_I2C_Read... [06:40:52]Read from MH i2c: E2 03 00 [06:40:52]MH_I2C_Read... [06:40:52]Read from MH i2c: E2 03 00 31 11 00 90 00 B6 [06:40:52]RAPDU: 90 00 [06:40:52]wFMCommunicate OK [06:40:52]wFMCommunicate request_size=255 [06:40:52]MH_SAM_APDU [06:40: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 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 4C 48 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 48 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 48 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 75 1B E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 26 E1 01 00 35 04 06 00 AC [06:40:52]Write to MH i2c: E2 02 01 32 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 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 4C 48 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 48 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 48 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 75 1B E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 26 E1 01 00 35 04 06 00 AC 00 00 D2 [06:40:52]Write i2c OK [06:40:52]MH_I2C_Read... [06:40:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:40:53]Read from MH i2c: E2 [06:40:53]MH_I2C_Read... [06:40:53]Read from MH i2c: E2 03 00 [06:40:53]MH_I2C_Read... [06:40:53]Read from MH i2c: E2 03 00 32 11 00 90 00 B7 [06:40:53]RAPDU: 90 00 [06:40:53]wFMCommunicate OK [06:40:53]wFMCommunicate request_size=10 [06:40:53]MH_SAM_APDU [06:40:53]CAPDU: 80 0D 02 02 05 CB 9B 46 7E 42 [06:40:53]Write to MH i2c: E2 0D 00 33 11 80 0D 02 02 05 00 CB 9B 46 7E 42 00 00 34 [06:40:53]Write i2c OK [06:40:53]MH_I2C_Read... [06:40:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:40:53]Read from MH i2c: E2 [06:40:53]MH_I2C_Read... [06:40:53]Read from MH i2c: E2 03 00 [06:40:53]MH_I2C_Read... [06:40:53]Read from MH i2c: E2 03 00 33 11 00 90 00 B8 [06:40:53]RAPDU: 90 00 [06:40:53]wFMCommunicate OK [06:40:53]wFMCommunicate request_size=4 [06:40:53]MH_SAM_APDU [06:40:53]CAPDU: 80 0D 03 02 [06:40:53]Write to MH i2c: E2 08 00 34 11 80 0D 03 02 00 00 00 00 C0 [06:40:53]Write i2c OK [06:40:53]MH_I2C_Read... [06:40:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:40:53]Read from MH i2c: E2 [06:40:53]MH_I2C_Read... [06:40:53]Read from MH i2c: E2 0B 00 [06:40:53]MH_I2C_Read... [06:40:53]Read from MH i2c: E2 0B 00 34 11 00 0D D9 5E 9E 68 D1 45 D1 90 00 F2 [06:40:53]RAPDU: 0D D9 5E 9E 68 D1 45 D1 90 00 [06:40:53]wFMCommunicate OK [06:40:53]SAM_PROTO_SignData done [06:40:53]FM_MakeSignedData done [06:40:53]CreateOFDProtocolMessage [06:40:53]wFMCommunicate request_size=4 [06:40:53]MH_SAM_APDU [06:40:53]CAPDU: 80 11 00 00 [06:40:53]Write to MH i2c: E2 08 00 35 11 80 11 00 00 00 00 00 00 C0 [06:40:53]Write i2c OK [06:40:53]MH_I2C_Read... [06:40:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:40:53]Read from MH i2c: E2 [06:40:53]MH_I2C_Read... [06:40:53]Read from MH i2c: E2 17 00 [06:40:53]MH_I2C_Read... [06:40:53]Read from MH i2c: E2 17 00 35 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 1E [06:40:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [06:40:53]wFMCommunicate OK [06:40:53]CreateOFDProtocolMessage done [06:40:53]OFDSenderStorePacket 123174 [06:40:53]StoreOFDPacket docnum=123174 [06:40:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 ED F1 07 01 05 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 4C 48 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 48 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 48 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 75 1B E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 26 E1 01 00 35 04 06 00 AC CB 9B 46 7E 42 0D D9 5E 9E 68 D1 45 D1 [06:40:53]CheckFolder [06:40:53]dirname=/storage/ofd_packets [06:40:53]CheckFolder done [06:40:53]ProducePacketName [06:40:53]name=ofd_packets/00123174 [06:40:53]NVStorageSaveData ofd_packets/00123174 [06:40:53]File name is /storage/ofd_packets/00123174 [06:40:53]Write 301 bytes [06:40:53]NVStorageSaveData done [06:40:53]OFDSenderStorePacket done [06:40:53]KKMCreateOFDPacket done [06:40:53]NVStorageSaveData kkm_last_timestamp [06:40:53]File name is /storage/kkm_last_timestamp [06:40:53]Write 4 bytes [06:40:53]NVStorageSaveData done [06:40:53]ExternCall_PrintAddStr [06:40:53]wPrintStart [06:40:53]Write to MH i2c: 01 00 00 36 11 47 [06:40:53]Write i2c OK [06:40:53]MH_I2C_Read... [06:40:53]Read from MH i2c: 01 [06:40:53]MH_I2C_Read... [06:40:53]Read from MH i2c: 01 07 00 [06:40:53]MH_I2C_Read... [06:40:53]Read from MH i2c: 01 07 00 36 11 00 00 00 00 00 FF 0F 5C [06:40:53]RasterBufferAndPrint [06:40:53]line Счет N : (1)1106093 [06:40:53]line ИНН: 02508201610067 [06:40:53]line Контрольно-Кассовый Чек [06:40:53]line ПРОДАЖА [06:40:53]line ТРК (МРК, ГНК) : 11 [06:40:53]line Товар: 2710124130 [06:40:53]line Аи-92-К-5 [06:40:53]line 2.990 * 61.90 [06:40:53]line = 185.08 [06:40:53]line НДС 12% НСП 1% [06:40:53]line > о реализуемом товаре [06:40:53]line ИТОГО: 185.08 [06:40:53]line НСП 1% : 1.64 [06:40:53]line НДС 12% : 19.65 [06:40:53]line Наличными: 0.00 [06:40:53]line Безнал.: 185.08 [06:40:53]line Место: АЗС № 25 "Партнер Нефть" [06:40:53]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [06:40:53]line СНО: Общий режим [06:40:53]line Чек 31 03.03.2024 06:40 [06:40:53]line Смена: 323 ФФД: 1.0 [06:40:53]line ЗНМ: 0300000019 [06:40:53]line РНМ: 0000000000090573 [06:40:53]line Версия ККМ: 001 [06:40:53]line Платежная система: Бакай Банк [06:40:53]line ФМ: 0000000000874798 [06:40:53]line ФД: 123174 [06:40:53]line ФПД: 189990483426882 [06:40:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T064053&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123174&fm=189990483426882&tin=02508201610067®Number=0000000000090573&sum=18508 [06:40:53]OFD Sender: Processing packet 123174 [packets to send 112, broken 111] [06:40:53]ProducePacketName [06:40:53]name=ofd_packets/00123174 [06:40:53]OFD Sender: To server: pG, [06:40:53]CommunicateWithHost lk.salyk.kg:30040 [06:40:53]ConnectInit lk.salyk.kg [06:40:53]written 0, free lines is 4095 [06:40:53]Connected sock=9 [06:40:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 ED F1 07 01 05 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 4C 48 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 48 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 48 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 75 1B E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 26 E1 01 00 35 04 06 00 AC CB 9B 46 7E 42 0D D9 5E 9E 68 D1 45 D1 [06:40:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 F6 A8 47 00 C9 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 37 39 38 10 04 04 00 26 E1 01 00 F4 03 04 00 A2 C7 E3 65 B6 04 01 00 00 45 7C E2 F5 87 E7 9D 51 [06:40:53]CommunicateWithHost err = 0 [06:40:53]CheckOFDResponse [06:40:53]1017 (14) - 77093643461234 [06:40:53]1041 (16) - 0000000000874798 [06:40:53]1040 (4) - 123174 [06:40:53]1012 (4) - 03.03.2024 00:43 [06:40:53]1206 (1) - 0 [06:40:53]OFD Sender: Remove packet 123174 [06:40:53]ProducePacketName [06:40:53]name=ofd_packets/00123174 [06:40:53]NVStorageDeleteData [06:40:54]Write to MH i2c: 01 00 00 60 11 71 [06:40:54]Write i2c OK [06:40:54]MH_I2C_Read... [06:40:54]Read from MH i2c: 01 [06:40:54]MH_I2C_Read... [06:40:54]Read from MH i2c: 01 07 00 [06:40:54]MH_I2C_Read... [06:40:54]Read from MH i2c: 01 07 00 60 11 00 00 00 00 00 04 0D 89 [06:40:54]RasterBufferAndPrint [06:40:54]line [06:40:54]line [06:40:54]line [06:40:54]line [06:40:54]line [06:40:54]written 0, free lines is 3338 [06:40:54]MH_Cut [06:40:54]Write to MH i2c: D1 01 00 67 11 01 4A [06:40:54]Write i2c OK [06:40:54]MH_I2C_Read... [06:40:54]Read from MH i2c: D1 [06:40:54]MH_I2C_Read... [06:40:54]Read from MH i2c: D1 01 00 [06:40:54]MH_I2C_Read... [06:40:54]Read from MH i2c: D1 01 00 67 11 00 49 [06:40:54]Write to MH i2c: 01 00 00 68 11 79 [06:40:54]Write i2c OK [06:40:54]MH_I2C_Read... [06:40:54]OFD Sender: No OFD packet to send [06:40:54]*** Cut start [06:40:54]*** Purtial cut [06:40:54]*** Stage 1: CUTSNS_PIN = 1 [06:40:56]Read from MH i2c: 01 [06:40:56]MH_I2C_Read... [06:40:56]*** Stop cut motor [06:40:56]*** Cut end [06:40:56]Read from MH i2c: 01 07 00 [06:40:56]MH_I2C_Read... [06:40:56]Read from MH i2c: 01 07 00 68 11 00 00 00 00 00 FF 0F 8E [06:40:56]process_action close_receipt done [06:40:56]requested_data is exist [06:40:56]produce_requested_data [06:40:56]requested_item fm.sn is exist - process it [06:40:56]wFMCommunicate request_size=4 [06:40:56]MH_SAM_APDU [06:40:56]CAPDU: 80 11 00 00 [06:40:56]Write to MH i2c: E2 08 00 69 11 80 11 00 00 00 00 00 00 F4 [06:40:56]Write i2c OK [06:40:56]MH_I2C_Read... [06:40:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:40:56]Read from MH i2c: E2 [06:40:56]MH_I2C_Read... [06:40:56]Read from MH i2c: E2 17 00 [06:40:56]MH_I2C_Read... [06:40:56]Read from MH i2c: E2 17 00 69 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 52 [06:40:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [06:40:56]wFMCommunicate OK [06:40:56]requested_item fd.num is exist - process it [06:40:56]SAM_PROTO_GetFieldsCounters [06:40:56]wFMCommunicate request_size=4 [06:40:56]MH_SAM_APDU [06:40:56]CAPDU: 80 13 00 00 [06:40:56]Write to MH i2c: E2 08 00 6A 11 80 13 00 00 00 00 00 00 F7 [06:40:56]Write i2c OK [06:40:56]MH_I2C_Read... [06:40:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:40:56]Read from MH i2c: E2 [06:40:56]MH_I2C_Read... [06:40:56]Read from MH i2c: E2 62 00 [06:40:56]MH_I2C_Read... [06:40:56]Read from MH i2c: E2 62 00 6A 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 26 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 CB [06:40:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 26 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:40:56]wFMCommunicate OK [06:40:56]SAM_PROTO_GetFieldsCounters done [06:40:56]requested_item shift.num is exist - process it [06:40:56]requested_item shift.opened is exist - process it [06:40:56]req_shift_opened [06:40:56]FM_GetShiftState [06:40:56]SAM_PROTO_GetShiftState [06:40:56]wFMCommunicate request_size=4 [06:40:56]MH_SAM_APDU [06:40:56]CAPDU: 80 13 01 00 [06:40:56]Write to MH i2c: E2 08 00 6B 11 80 13 01 00 00 00 00 00 F9 [06:40:56]Write i2c OK [06:40:56]MH_I2C_Read... [06:40:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:40:56]Read from MH i2c: E2 [06:40:56]MH_I2C_Read... [06:40:56]Read from MH i2c: E2 0E 00 [06:40:56]MH_I2C_Read... [06:40:56]Read from MH i2c: E2 0E 00 6B 11 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 BB [06:40:56]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [06:40:56]wFMCommunicate OK [06:40:56]SAM_PROTO_GetShiftState done [06:40:56]FM_GetShiftState done [06:40:56]req_shift_opened done [06:40:56]requested_item shift.open_date is exist - process it [06:40:56]req_shift_open_date [06:40:56]req_shift_open_date done [06:40:56]produce_requested_data done [06:40:56]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123174,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [06:40:56]process_action_free close_receipt [06:40:56]json_value_free [06:40:56]json_value_free done [06:40:56]process_json_proto returns [06:40:56]Send response to host [06:40:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123174,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [06:40:56]free response buf [06:40:56]execute_script done [06:40:56]execute_script returns [06:40:56]free content buf [06:40:56]Sock 7.Close socket [06:40:56]Sock 7.Thread stoped [06:40:59]OFD Sender: No OFD packet to send [06:41:04]OFD Sender: No OFD packet to send [06:41:09]OFD Sender: No OFD packet to send [06:41:14]OFD Sender: No OFD packet to send [06:41:19]OFD Sender: No OFD packet to send [06:41:24]OFD Sender: No OFD packet to send [06:41:29]OFD Sender: No OFD packet to send [06:41:34]OFD Sender: No OFD packet to send [06:41:39]OFD Sender: No OFD packet to send [06:41:44]OFD Sender: No OFD packet to send [06:41:49]OFD Sender: No OFD packet to send [06:41:54]OFD Sender: No OFD packet to send [06:41:59]OFD Sender: No OFD packet to send [06:42:04]OFD Sender: No OFD packet to send [06:42:09]OFD Sender: No OFD packet to send [06:42:14]OFD Sender: No OFD packet to send [06:42:19]OFD Sender: No OFD packet to send [06:42:24]OFD Sender: No OFD packet to send [06:42:29]OFD Sender: No OFD packet to send [06:42:34]OFD Sender: No OFD packet to send [06:42:39]OFD Sender: No OFD packet to send [06:42:44]OFD Sender: No OFD packet to send [06:42:49]OFD Sender: No OFD packet to send [06:42:54]OFD Sender: No OFD packet to send [06:42:59]OFD Sender: No OFD packet to send [06:43:04]OFD Sender: No OFD packet to send [06:43:09]OFD Sender: No OFD packet to send [06:43:14]OFD Sender: No OFD packet to send [06:43:19]OFD Sender: No OFD packet to send [06:43:24]OFD Sender: No OFD packet to send [06:43:29]OFD Sender: No OFD packet to send [06:43:34]OFD Sender: No OFD packet to send [06:43:39]OFD Sender: No OFD packet to send [06:43:44]OFD Sender: No OFD packet to send [06:43:49]OFD Sender: No OFD packet to send [06:43:54]OFD Sender: No OFD packet to send [06:43:59]OFD Sender: No OFD packet to send [06:44:04]OFD Sender: No OFD packet to send [06:44:09]OFD Sender: No OFD packet to send [06:44:14]OFD Sender: No OFD packet to send [06:44:19]OFD Sender: No OFD packet to send [06:44:24]OFD Sender: No OFD packet to send [06:44:29]OFD Sender: No OFD packet to send [06:44:34]OFD Sender: No OFD packet to send [06:44:39]OFD Sender: No OFD packet to send [06:44:44]OFD Sender: No OFD packet to send [06:44:49]OFD Sender: No OFD packet to send [06:44:54]OFD Sender: No OFD packet to send [06:44:59]OFD Sender: No OFD packet to send [06:45:04]OFD Sender: No OFD packet to send [06:45:09]OFD Sender: No OFD packet to send [06:45:14]OFD Sender: No OFD packet to send [06:45:19]OFD Sender: No OFD packet to send [06:45:24]OFD Sender: No OFD packet to send [06:45:29]OFD Sender: No OFD packet to send [06:45:34]OFD Sender: No OFD packet to send [06:45:39]OFD Sender: No OFD packet to send [06:45:44]OFD Sender: No OFD packet to send [06:45:49]OFD Sender: No OFD packet to send [06:45:54]OFD Sender: No OFD packet to send [06:45:59]OFD Sender: No OFD packet to send [06:46:04]OFD Sender: No OFD packet to send [06:46:09]OFD Sender: No OFD packet to send [06:46:14]OFD Sender: No OFD packet to send [06:46:19]OFD Sender: No OFD packet to send [06:46:24]OFD Sender: No OFD packet to send [06:46:29]OFD Sender: No OFD packet to send [06:46:34]OFD Sender: No OFD packet to send [06:46:39]OFD Sender: No OFD packet to send [06:46:44]OFD Sender: No OFD packet to send [06:46:49]OFD Sender: No OFD packet to send [06:46:54]OFD Sender: No OFD packet to send [06:46:59]OFD Sender: No OFD packet to send [06:47:04]OFD Sender: No OFD packet to send [06:47:09]OFD Sender: No OFD packet to send [06:47:14]OFD Sender: No OFD packet to send [06:47:19]OFD Sender: No OFD packet to send [06:47:24]OFD Sender: No OFD packet to send [06:47:29]OFD Sender: No OFD packet to send [06:47:34]OFD Sender: No OFD packet to send [06:47:39]OFD Sender: No OFD packet to send [06:47:44]OFD Sender: No OFD packet to send [06:47:49]OFD Sender: No OFD packet to send [06:47:54]OFD Sender: No OFD packet to send [06:47:59]OFD Sender: No OFD packet to send [06:48:04]OFD Sender: No OFD packet to send [06:48:09]OFD Sender: No OFD packet to send [06:48:14]OFD Sender: No OFD packet to send [06:48:19]OFD Sender: No OFD packet to send [06:48:24]OFD Sender: No OFD packet to send [06:48:29]OFD Sender: No OFD packet to send [06:48:34]OFD Sender: No OFD packet to send [06:48:39]OFD Sender: No OFD packet to send [06:48:44]OFD Sender: No OFD packet to send [06:48:49]OFD Sender: No OFD packet to send [06:48:54]OFD Sender: No OFD packet to send [06:48:59]OFD Sender: No OFD packet to send [06:49:04]OFD Sender: No OFD packet to send [06:49:09]OFD Sender: No OFD packet to send [06:49:14]OFD Sender: No OFD packet to send [06:49:19]OFD Sender: No OFD packet to send [06:49:24]OFD Sender: No OFD packet to send [06:49:29]OFD Sender: No OFD packet to send [06:49:34]OFD Sender: No OFD packet to send [06:49:39]OFD Sender: No OFD packet to send [06:49:44]OFD Sender: No OFD packet to send [06:49:49]OFD Sender: No OFD packet to send [06:49:54]OFD Sender: No OFD packet to send [06:49:59]OFD Sender: No OFD packet to send [06:50:04]OFD Sender: No OFD packet to send [06:50:09]OFD Sender: No OFD packet to send [06:50:14]OFD Sender: No OFD packet to send [06:50:19]OFD Sender: No OFD packet to send [06:50:24]OFD Sender: No OFD packet to send [06:50:29]OFD Sender: No OFD packet to send [06:50: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:50]OFD Sender: No OFD packet to send [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:15]OFD Sender: No OFD packet to send [06:56:20]OFD Sender: No OFD packet to send [06:56:25]OFD Sender: No OFD packet to send [06:56:30]OFD Sender: No OFD packet to send [06:56:35]OFD Sender: No OFD packet to send [06:56:40]OFD Sender: No OFD packet to send [06:56:45]OFD Sender: No OFD packet to send [06:56:50]OFD Sender: No OFD packet to send [06:56:55]OFD Sender: No OFD packet to send [06:57:00]OFD Sender: No OFD packet to send [06:57:05]OFD Sender: No OFD packet to send [06:57:10]OFD Sender: No OFD packet to send [06:57:15]OFD Sender: No OFD packet to send [06:57:20]OFD Sender: No OFD packet to send [06:57:25]OFD Sender: No OFD packet to send [06:57:28]accept exits with 10 [06:57:28]New connection [06:57:28]New thread 3067252068 created [06:57:28]Thread 3067395428 joined [06:57:28]Waiting for new connection... [06:57:28] Sock 10.Parse request [06:57:28]Sock 10.Check first char [06:57:28]Sock 10.First char is OK [06:57:28]request: POST /json_proto HTTP/1.0 [06:57:28]Method: POST [06:57:28]URL: /json_proto [06:57:28]Method is POST - this is cgi request [06:57:28]url: /json_proto [06:57:28]query_string will be loaded in cgi processing [06:57:28]execute_cgi json_proto POST (null) [06:57:28]execute_cgi path=json_proto method=POST [06:57:28]POST find Content-Length [06:57:28]Host: 172.17.48.197:8080 [06:57:28]Content-Length: 678 [06:57:28]Content-Type: application/json [06:57:28] [06:57:28]POST finish read [06:57:28]Found Content-Length = 678 [06:57:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106094", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 2.000, "sum" : 123.80, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 123.00, "total" : 123.00, "payments": [ { "type": 0, "sum" : 123.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:57:28]execute_script... [06: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)1106094", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 2.000, "sum" : 123.80, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 123.00, "total" : 123.00, "payments": [ { "type": 0, "sum" : 123.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:57:28]POST & json_proto [06:57:28]process_json_proto [06:57:28]json parsed OK: [06:57:28]protocol is kg_v1.0 [06:57:28]action value=close_receipt [06:57:28]process_action close_receipt [06:57:28]cmd_close_receipt [06:57:28]MH_GetDate [06:57:28]Write to MH i2c: F0 00 00 6C 11 6C [06:57:28]Write i2c OK [06:57:28]MH_I2C_Read... [06:57:28]Read from MH i2c: F0 [06:57:28]MH_I2C_Read... [06:57:28]Read from MH i2c: F0 09 00 [06:57:28]MH_I2C_Read... [06:57:28]Read from MH i2c: F0 09 00 6C 11 00 5A 1F E4 65 6C AF E3 65 9A [06:57:28]GetLastDocTimeStamp 1709448053 [06:57:28]current date 1709449050 [06:57:28]FM_GetShiftState [06:57:28]SAM_PROTO_GetShiftState [06:57:28]wFMCommunicate request_size=4 [06:57:28]MH_SAM_APDU [06:57:28]CAPDU: 80 13 01 00 [06:57:28]Write to MH i2c: E2 08 00 6D 11 80 13 01 00 00 00 00 00 FB [06:57:28]Write i2c OK [06:57:28]MH_I2C_Read... [06:57:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:57:28]Read from MH i2c: E2 [06:57:28]MH_I2C_Read... [06:57:28]Read from MH i2c: E2 0E 00 [06:57:28]MH_I2C_Read... [06:57:28]Read from MH i2c: E2 0E 00 6D 11 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 BD [06:57:28]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [06:57:28]wFMCommunicate OK [06:57:28]SAM_PROTO_GetShiftState done [06:57:28]FM_GetShiftState done [06:57:28]opened in 1709425579 [06:57:28]opened+sec_in_day 1709511979 [06:57:28]quantity*price = 12380 [06:57:28]sum+1 = 12381 [06:57:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.80 ИТОГО: 123.00 Внесено: 123.00 СДАЧА: 0.00 НСП 1% : 1.10 НДС 12% : 13.15 Наличными: 123.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 32 03.03.2024 06:57 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123175 ФПД: 54522396209245 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T065730&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123175&fm=54522396209245&tin=02508201610067®Number=0000000000090573&sum=12300 [06:57:29]StoreToDocumentArchive [06:57:29]shift 323 fd 123175 [06:57:29]save to /storage/0323/doc_00123175 [06:57:29]save last doc name /storage/0323/doc_00123175 to /storage/kkm_last_doc_name [06:57:29]save OK [06:57:29]Clear old archive folders... [06:57:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:57:29]tlvbuf is 00DDACF0 [06:57:29]SAM_PROTO_ClearQueue [06:57:29]wFMCommunicate request_size=4 [06:57:29]MH_SAM_APDU [06:57:29]CAPDU: 80 09 00 00 [06:57:29]Write to MH i2c: E2 08 00 7A 11 80 09 00 00 00 00 00 00 FD [06:57:29]Write i2c OK [06:57:29]MH_I2C_Read... [06:57:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:57:29]Read from MH i2c: E2 [06:57:29]MH_I2C_Read... [06:57:29]Read from MH i2c: E2 03 00 [06:57:29]MH_I2C_Read... [06:57:29]Read from MH i2c: E2 03 00 7A 11 00 90 00 FF [06:57:29]RAPDU: 90 00 [06:57:29]wFMCommunicate OK [06:57:29]SAM_PROTO_ClearQueue done [06:57:29]KKMCreateOFDPacket [06:57:29]OFDProtocolAddRootSTLVToBuf [06:57:29]FM_MakeSignedData [06:57:29]FM_MakeSignedData [06:57:29]SAM_PROTO_SignData [06:57:29]wFMCommunicate request_size=4 [06:57:29]MH_SAM_APDU [06:57:29]CAPDU: 80 0D 01 02 [06:57:29]Write to MH i2c: E2 08 00 7B 11 80 0D 01 02 00 00 00 00 05 [06:57:29]Write i2c OK [06:57:29]MH_I2C_Read... [06:57:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:57:29]Read from MH i2c: E2 [06:57:29]MH_I2C_Read... [06:57:29]Read from MH i2c: E2 03 00 [06:57:29]MH_I2C_Read... [06:57:29]Read from MH i2c: E2 03 00 7B 11 00 90 00 00 [06:57:29]RAPDU: 90 00 [06:57:29]wFMCommunicate OK [06:57:29]wFMCommunicate request_size=255 [06:57:29]MH_SAM_APDU [06:57:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5C 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 05 00 00 00 00 07 04 06 00 0C 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 20 00 00 00 F4 03 04 00 5A 1F E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 27 E1 01 00 35 04 06 00 31 [06:57:29]Write to MH i2c: E2 02 01 7C 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 35 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5C 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 05 00 00 00 00 07 04 06 00 0C 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 20 00 00 00 F4 03 04 00 5A 1F E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 27 E1 01 00 35 04 06 00 31 00 00 30 [06:57:29]Write i2c OK [06:57:29]MH_I2C_Read... [06:57:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:57:30]Read from MH i2c: E2 [06:57:30]MH_I2C_Read... [06:57:30]Read from MH i2c: E2 03 00 [06:57:30]MH_I2C_Read... [06:57:30]Read from MH i2c: E2 03 00 7C 11 00 90 00 01 [06:57:30]RAPDU: 90 00 [06:57:30]wFMCommunicate OK [06:57:30]wFMCommunicate request_size=10 [06:57:30]MH_SAM_APDU [06:57:30]CAPDU: 80 0D 02 02 05 96 7C 0E F0 5D [06:57:30]Write to MH i2c: E2 0D 00 7D 11 80 0D 02 02 05 00 96 7C 0E F0 5D 00 00 7F [06:57:30]Write i2c OK [06:57:30]MH_I2C_Read... [06:57:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:57:30]Read from MH i2c: E2 [06:57:30]MH_I2C_Read... [06:57:30]Read from MH i2c: E2 03 00 [06:57:30]MH_I2C_Read... [06:57:30]Read from MH i2c: E2 03 00 7D 11 00 90 00 02 [06:57:30]RAPDU: 90 00 [06:57:30]wFMCommunicate OK [06:57:30]wFMCommunicate request_size=4 [06:57:30]MH_SAM_APDU [06:57:30]CAPDU: 80 0D 03 02 [06:57:30]Write to MH i2c: E2 08 00 7E 11 80 0D 03 02 00 00 00 00 0A [06:57:30]Write i2c OK [06:57:30]MH_I2C_Read... [06:57:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:57:30]Read from MH i2c: E2 [06:57:30]MH_I2C_Read... [06:57:30]Read from MH i2c: E2 0B 00 [06:57:30]MH_I2C_Read... [06:57:30]Read from MH i2c: E2 0B 00 7E 11 00 F8 E1 F3 3B D8 93 47 39 90 00 FD [06:57:30]RAPDU: F8 E1 F3 3B D8 93 47 39 90 00 [06:57:30]wFMCommunicate OK [06:57:30]SAM_PROTO_SignData done [06:57:30]FM_MakeSignedData done [06:57:30]CreateOFDProtocolMessage [06:57:30]wFMCommunicate request_size=4 [06:57:30]MH_SAM_APDU [06:57:30]CAPDU: 80 11 00 00 [06:57:30]Write to MH i2c: E2 08 00 7F 11 80 11 00 00 00 00 00 00 0A [06:57:30]Write i2c OK [06:57:30]MH_I2C_Read... [06:57:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:57:30]Read from MH i2c: E2 [06:57:30]MH_I2C_Read... [06:57:30]Read from MH i2c: E2 17 00 [06:57:30]MH_I2C_Read... [06:57:30]Read from MH i2c: E2 17 00 7F 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 68 [06:57:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [06:57:30]wFMCommunicate OK [06:57:30]CreateOFDProtocolMessage done [06:57:30]OFDSenderStorePacket 123175 [06:57:30]StoreOFDPacket docnum=123175 [06:57:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 62 96 07 01 FB 41 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5C 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 05 00 00 00 00 07 04 06 00 0C 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 20 00 00 00 F4 03 04 00 5A 1F E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 27 E1 01 00 35 04 06 00 31 96 7C 0E F0 5D F8 E1 F3 3B D8 93 47 39 [06:57:30]CheckFolder [06:57:30]dirname=/storage/ofd_packets [06:57:30]CheckFolder done [06:57:30]ProducePacketName [06:57:30]name=ofd_packets/00123175 [06:57:30]NVStorageSaveData ofd_packets/00123175 [06:57:30]File name is /storage/ofd_packets/00123175 [06:57:30]Write 301 bytes [06:57:30]NVStorageSaveData done [06:57:30]OFDSenderStorePacket done [06:57:30]KKMCreateOFDPacket done [06:57:30]NVStorageSaveData kkm_last_timestamp [06:57:30]File name is /storage/kkm_last_timestamp [06:57:30]Write 4 bytes [06:57:30]NVStorageSaveData done [06:57:30]ExternCall_PrintAddStr [06:57:30]wPrintStart [06:57:30]Write to MH i2c: 01 00 00 80 11 91 [06:57:30]Write i2c OK [06:57:30]MH_I2C_Read... [06:57:30]Read from MH i2c: 01 [06:57:30]MH_I2C_Read... [06:57:30]Read from MH i2c: 01 07 00 [06:57:30]MH_I2C_Read... [06:57:30]Read from MH i2c: 01 07 00 80 11 00 00 00 00 00 FF 0F A6 [06:57:30]RasterBufferAndPrint [06:57:30]line Счет N : (1)1106094 [06:57:30]line ИНН: 02508201610067 [06:57:30]line Контрольно-Кассовый Чек [06:57:30]line ПРОДАЖА [06:57:30]line ТРК (МРК, ГНК) : 52 [06:57:30]line Товар: 2710124130 [06:57:30]line Аи-92-К-5 [06:57:30]line 2.000 * 61.90 [06:57:30]line = 123.80 [06:57:30]line НДС 12% НСП 1% [06:57:30]line > о реализуемом товаре [06:57:30]line ОКРУГЛЕНИЕ: -0.80 [06:57:30]line ИТОГО: 123.00 [06:57:30]line Внесено: 123.00 [06:57:30]line СДАЧА: 0.00 [06:57:30]line НСП 1% : 1.10 [06:57:30]line НДС 12% : 13.15 [06:57:30]line Наличными: 123.00 [06:57:30]line Безнал.: 0.00 [06:57:30]line Место: АЗС № 25 "Партнер Нефть" [06:57:30]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [06:57:30]line СНО: Общий режим [06:57:30]line Чек 32 03.03.2024 06:57 [06:57:30]line Смена: 323 ФФД: 1.0 [06:57:30]line ЗНМ: 0300000019 [06:57:30]line РНМ: 0000000000090573 [06:57:30]line Версия ККМ: 001 [06:57:30]line ФМ: 0000000000874798 [06:57:30]line ФД: 123175 [06:57:30]line ФПД: 54522396209245 [06:57:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T065730&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123175&fm=54522396209245&tin=02508201610067®Number=0000000000090573&sum=12300 [06:57:30]OFD Sender: Processing packet 123175 [packets to send 112, broken 111] [06:57:30]ProducePacketName [06:57:30]name=ofd_packets/00123175 [06:57:30]OFD Sender: To server: pG, [06:57:30]CommunicateWithHost lk.salyk.kg:30040 [06:57:30]ConnectInit lk.salyk.kg [06:57:30]written 0, free lines is 4095 [06:57:30]Connected sock=9 [06: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 37 39 38 0F 01 00 00 62 96 07 01 FB 41 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5C 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 05 00 00 00 00 07 04 06 00 0C 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 20 00 00 00 F4 03 04 00 5A 1F E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 27 E1 01 00 35 04 06 00 31 96 7C 0E F0 5D F8 E1 F3 3B D8 93 47 39 [06: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 37 39 38 4F 00 00 00 4C 3A 47 00 C4 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 37 39 38 10 04 04 00 27 E1 01 00 F4 03 04 00 87 CB E3 65 B6 04 01 00 00 16 D1 3F 44 04 91 B2 0A [06:57:30]CommunicateWithHost err = 0 [06:57:30]CheckOFDResponse [06:57:30]1017 (14) - 77093643461234 [06:57:30]1041 (16) - 0000000000874798 [06:57:30]1040 (4) - 123175 [06:57:30]1012 (4) - 03.03.2024 00:59 [06:57:30]1206 (1) - 0 [06:57:30]OFD Sender: Remove packet 123175 [06:57:30]ProducePacketName [06:57:30]name=ofd_packets/00123175 [06:57:30]NVStorageDeleteData [06:57:31]Write to MH i2c: 01 00 00 AB 11 BC [06:57:31]Write i2c OK [06:57:31]MH_I2C_Read... [06:57:31]Read from MH i2c: 01 [06:57:31]MH_I2C_Read... [06:57:31]Read from MH i2c: 01 07 00 [06:57:31]MH_I2C_Read... [06:57:31]Read from MH i2c: 01 07 00 AB 11 00 00 00 00 00 F5 0C C4 [06:57:31]RasterBufferAndPrint [06:57:31]line [06:57:31]line [06:57:31]line [06:57:31]line [06:57:31]line [06:57:31]written 0, free lines is 3323 [06:57:31]MH_Cut [06:57:31]Write to MH i2c: D1 01 00 B2 11 01 95 [06:57:31]Write i2c OK [06:57:31]MH_I2C_Read... [06:57:31]Read from MH i2c: D1 [06:57:31]MH_I2C_Read... [06:57:31]Read from MH i2c: D1 01 00 [06:57:31]MH_I2C_Read... [06:57:31]Read from MH i2c: D1 01 00 B2 11 00 94 [06:57:31]Write to MH i2c: 01 00 00 B3 11 C4 [06:57:31]Write i2c OK [06:57:31]MH_I2C_Read... [06:57:31]OFD Sender: No OFD packet to send [06:57:31]*** Cut start [06:57:31]*** Purtial cut [06:57:31]*** Stage 1: CUTSNS_PIN = 1 [06:57:33]Read from MH i2c: 01 [06:57:33]MH_I2C_Read... [06:57:33]*** Stop cut motor [06:57:33]*** Cut end [06:57:33]Read from MH i2c: 01 07 00 [06:57:33]MH_I2C_Read... [06:57:33]Read from MH i2c: 01 07 00 B3 11 00 00 00 00 00 FF 0F D9 [06:57:33]process_action close_receipt done [06:57:33]requested_data is exist [06:57:33]produce_requested_data [06:57:33]requested_item fm.sn is exist - process it [06:57:33]wFMCommunicate request_size=4 [06:57:33]MH_SAM_APDU [06:57:33]CAPDU: 80 11 00 00 [06:57:33]Write to MH i2c: E2 08 00 B4 11 80 11 00 00 00 00 00 00 3F [06:57:33]Write i2c OK [06:57:33]MH_I2C_Read... [06:57:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:57:33]Read from MH i2c: E2 [06:57:33]MH_I2C_Read... [06:57:33]Read from MH i2c: E2 17 00 [06:57:33]MH_I2C_Read... [06:57:33]Read from MH i2c: E2 17 00 B4 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 9D [06:57:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [06:57:33]wFMCommunicate OK [06:57:33]requested_item fd.num is exist - process it [06:57:33]SAM_PROTO_GetFieldsCounters [06:57:33]wFMCommunicate request_size=4 [06:57:33]MH_SAM_APDU [06:57:33]CAPDU: 80 13 00 00 [06:57:33]Write to MH i2c: E2 08 00 B5 11 80 13 00 00 00 00 00 00 42 [06:57:33]Write i2c OK [06:57:33]MH_I2C_Read... [06:57:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:57:33]Read from MH i2c: E2 [06:57:33]MH_I2C_Read... [06:57:33]Read from MH i2c: E2 62 00 [06:57:33]MH_I2C_Read... [06:57:33]Read from MH i2c: E2 62 00 B5 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 27 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 1A [06:57: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 27 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:57:33]wFMCommunicate OK [06:57:33]SAM_PROTO_GetFieldsCounters done [06:57:33]requested_item shift.num is exist - process it [06:57:33]requested_item shift.opened is exist - process it [06:57:33]req_shift_opened [06:57:33]FM_GetShiftState [06:57:33]SAM_PROTO_GetShiftState [06:57:33]wFMCommunicate request_size=4 [06:57:33]MH_SAM_APDU [06:57:33]CAPDU: 80 13 01 00 [06:57:33]Write to MH i2c: E2 08 00 B6 11 80 13 01 00 00 00 00 00 44 [06:57:33]Write i2c OK [06:57:33]MH_I2C_Read... [06:57:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:57:33]Read from MH i2c: E2 [06:57:33]MH_I2C_Read... [06:57:33]Read from MH i2c: E2 0E 00 [06:57:33]MH_I2C_Read... [06:57:33]Read from MH i2c: E2 0E 00 B6 11 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 06 [06:57:33]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [06:57:33]wFMCommunicate OK [06:57:33]SAM_PROTO_GetShiftState done [06:57:33]FM_GetShiftState done [06:57:33]req_shift_opened done [06:57:33]requested_item shift.open_date is exist - process it [06:57:33]req_shift_open_date [06:57:33]req_shift_open_date done [06:57:33]produce_requested_data done [06:57:33]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123175,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [06:57:33]process_action_free close_receipt [06:57:33]json_value_free [06:57:33]json_value_free done [06:57:33]process_json_proto returns [06:57:33]Send response to host [06:57:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123175,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [06:57:33]free response buf [06:57:33]execute_script done [06:57:33]execute_script returns [06:57:33]free content buf [06:57:33]Sock 10.Close socket [06:57:33]Sock 10.Thread stoped [06:57:36]OFD Sender: No OFD packet to send [06:57:41]OFD Sender: No OFD packet to send [06:57:46]OFD Sender: No OFD packet to send [06:57:51]OFD Sender: No OFD packet to send [06:57:56]OFD Sender: No OFD packet to send [06:58:01]OFD Sender: No OFD packet to send [06:58:06]OFD Sender: No OFD packet to send [06:58:11]OFD Sender: No OFD packet to send [06:58:16]OFD Sender: No OFD packet to send [06:58:21]OFD Sender: No OFD packet to send [06:58:26]OFD Sender: No OFD packet to send [06:58:31]OFD Sender: No OFD packet to send [06:58:36]OFD Sender: No OFD packet to send [06:58:41]OFD Sender: No OFD packet to send [06:58:46]OFD Sender: No OFD packet to send [06:58:51]OFD Sender: No OFD packet to send [06:58:56]OFD Sender: No OFD packet to send [06:59:01]OFD Sender: No OFD packet to send [06:59:06]OFD Sender: No OFD packet to send [06:59:11]OFD Sender: No OFD packet to send [06:59:16]OFD Sender: No OFD packet to send [06:59:21]OFD Sender: No OFD packet to send [06:59:26]OFD Sender: No OFD packet to send [06:59:31]OFD Sender: No OFD packet to send [06:59:36]OFD Sender: No OFD packet to send [06:59:41]OFD Sender: No OFD packet to send [06:59:46]OFD Sender: No OFD packet to send [06:59:51]OFD Sender: No OFD packet to send [06:59:56]OFD Sender: No OFD packet to send [07:00:01]OFD Sender: No OFD packet to send [07:00:06]OFD Sender: No OFD packet to send [07:00:11]OFD Sender: No OFD packet to send [07:00:16]OFD Sender: No OFD packet to send [07:00:21]OFD Sender: No OFD packet to send [07:00:26]OFD Sender: No OFD packet to send [07:00:31]OFD Sender: No OFD packet to send [07:00:36]OFD Sender: No OFD packet to send [07:00:41]OFD Sender: No OFD packet to send [07:00:46]OFD Sender: No OFD packet to send [07:00:51]OFD Sender: No OFD packet to send [07:00:56]OFD Sender: No OFD packet to send [07:01:01]OFD Sender: No OFD packet to send [07:01:06]OFD Sender: No OFD packet to send [07:01:11]OFD Sender: No OFD packet to send [07:01:16]OFD Sender: No OFD packet to send [07:01:21]OFD Sender: No OFD packet to send [07:01:26]OFD Sender: No OFD packet to send [07:01:31]OFD Sender: No OFD packet to send [07:01:36]OFD Sender: No OFD packet to send [07:01:41]OFD Sender: No OFD packet to send [07:01:46]OFD Sender: No OFD packet to send [07:01:51]OFD Sender: No OFD packet to send [07:01:56]OFD Sender: No OFD packet to send [07:02:01]OFD Sender: No OFD packet to send [07:02:06]OFD Sender: No OFD packet to send [07:02:11]OFD Sender: No OFD packet to send [07:02:16]OFD Sender: No OFD packet to send [07:02:21]OFD Sender: No OFD packet to send [07:02:26]OFD Sender: No OFD packet to send [07:02:31]OFD Sender: No OFD packet to send [07:02:36]OFD Sender: No OFD packet to send [07:02:41]OFD Sender: No OFD packet to send [07:02:46]OFD Sender: No OFD packet to send [07:02:51]OFD Sender: No OFD packet to send [07:02:56]OFD Sender: No OFD packet to send [07:03:01]OFD Sender: No OFD packet to send [07:03:06]OFD Sender: No OFD packet to send [07:03:11]OFD Sender: No OFD packet to send [07:03:16]OFD Sender: No OFD packet to send [07:03:21]OFD Sender: No OFD packet to send [07:03:26]OFD Sender: No OFD packet to send [07:03:31]OFD Sender: No OFD packet to send [07:03:36]OFD Sender: No OFD packet to send [07:03:41]OFD Sender: No OFD packet to send [07:03:46]OFD Sender: No OFD packet to send [07:03:51]OFD Sender: No OFD packet to send [07:03:56]OFD Sender: No OFD packet to send [07:04:01]OFD Sender: No OFD packet to send [07:04:06]OFD Sender: No OFD packet to send [07:04:11]OFD Sender: No OFD packet to send [07:04:16]OFD Sender: No OFD packet to send [07:04:21]OFD Sender: No OFD packet to send [07:04:26]OFD Sender: No OFD packet to send [07:04:31]OFD Sender: No OFD packet to send [07:04:36]OFD Sender: No OFD packet to send [07:04:41]OFD Sender: No OFD packet to send [07:04:46]OFD Sender: No OFD packet to send [07:04:51]OFD Sender: No OFD packet to send [07:04:56]OFD Sender: No OFD packet to send [07:05:01]OFD Sender: No OFD packet to send [07:05:06]OFD Sender: No OFD packet to send [07:05:11]OFD Sender: No OFD packet to send [07:05:16]OFD Sender: No OFD packet to send [07:05:21]OFD Sender: No OFD packet to send [07:05:26]OFD Sender: No OFD packet to send [07:05:31]OFD Sender: No OFD packet to send [07:05:36]OFD Sender: No OFD packet to send [07:05:41]OFD Sender: No OFD packet to send [07:05:46]OFD Sender: No OFD packet to send [07:05:51]OFD Sender: No OFD packet to send [07:05:56]OFD Sender: No OFD packet to send [07:06:01]OFD Sender: No OFD packet to send [07:06:06]OFD Sender: No OFD packet to send [07:06:11]OFD Sender: No OFD packet to send [07:06:16]OFD Sender: No OFD packet to send [07:06:21]OFD Sender: No OFD packet to send [07:06:26]OFD Sender: No OFD packet to send [07:06:31]OFD Sender: No OFD packet to send [07:06:36]OFD Sender: No OFD packet to send [07:06:41]OFD Sender: No OFD packet to send [07:06:46]OFD Sender: No OFD packet to send [07:06:51]OFD Sender: No OFD packet to send [07:06:56]OFD Sender: No OFD packet to send [07:07:01]OFD Sender: No OFD packet to send [07:07:06]OFD Sender: No OFD packet to send [07:07:11]OFD Sender: No OFD packet to send [07:07:16]OFD Sender: No OFD packet to send [07:07:21]OFD Sender: No OFD packet to send [07:07:26]OFD Sender: No OFD packet to send [07:07:31]OFD Sender: No OFD packet to send [07:07:37]OFD Sender: No OFD packet to send [07:07:42]OFD Sender: No OFD packet to send [07:07:47]OFD Sender: No OFD packet to send [07:07:52]OFD Sender: No OFD packet to send [07:07:57]OFD Sender: No OFD packet to send [07:08:02]OFD Sender: No OFD packet to send [07:08:07]OFD Sender: No OFD packet to send [07:08:12]OFD Sender: No OFD packet to send [07:08:17]OFD Sender: No OFD packet to send [07:08:22]OFD Sender: No OFD packet to send [07:08:27]OFD Sender: No OFD packet to send [07:08:32]OFD Sender: No OFD packet to send [07:08:37]OFD Sender: No OFD packet to send [07:08:42]OFD Sender: No OFD packet to send [07:08:47]OFD Sender: No OFD packet to send [07:08:52]OFD Sender: No OFD packet to send [07:08:57]OFD Sender: No OFD packet to send [07:09:02]OFD Sender: No OFD packet to send [07:09:07]OFD Sender: No OFD packet to send [07:09:12]OFD Sender: No OFD packet to send [07:09:17]OFD Sender: No OFD packet to send [07:09:22]OFD Sender: No OFD packet to send [07:09:27]OFD Sender: No OFD packet to send [07:09:32]OFD Sender: No OFD packet to send [07:09:37]OFD Sender: No OFD packet to send [07:09:42]OFD Sender: No OFD packet to send [07:09:47]OFD Sender: No OFD packet to send [07:09:52]OFD Sender: No OFD packet to send [07:09:57]OFD Sender: No OFD packet to send [07:10:02]OFD Sender: No OFD packet to send [07:10:07]OFD Sender: No OFD packet to send [07:10:12]OFD Sender: No OFD packet to send [07:10:17]OFD Sender: No OFD packet to send [07:10:22]OFD Sender: No OFD packet to send [07:10:27]OFD Sender: No OFD packet to send [07:10:32]OFD Sender: No OFD packet to send [07:10:37]OFD Sender: No OFD packet to send [07:10:42]OFD Sender: No OFD packet to send [07:10:47]OFD Sender: No OFD packet to send [07:10:52]OFD Sender: No OFD packet to send [07:10:57]OFD Sender: No OFD packet to send [07:11:02]OFD Sender: No OFD packet to send [07:11:07]OFD Sender: No OFD packet to send [07:11:12]OFD Sender: No OFD packet to send [07:11:17]OFD Sender: No OFD packet to send [07:11:22]OFD Sender: No OFD packet to send [07:11:27]OFD Sender: No OFD packet to send [07:11:32]OFD Sender: No OFD packet to send [07:11:37]OFD Sender: No OFD packet to send [07:11:42]OFD Sender: No OFD packet to send [07:11:47]OFD Sender: No OFD packet to send [07:11:52]OFD Sender: No OFD packet to send [07:11:57]OFD Sender: No OFD packet to send [07:12:02]OFD Sender: No OFD packet to send [07:12:07]OFD Sender: No OFD packet to send [07:12:12]OFD Sender: No OFD packet to send [07:12:17]OFD Sender: No OFD packet to send [07:12:22]OFD Sender: No OFD packet to send [07:12:27]OFD Sender: No OFD packet to send [07:12:32]OFD Sender: No OFD packet to send [07:12:37]OFD Sender: No OFD packet to send [07:12:42]OFD Sender: No OFD packet to send [07:12:47]OFD Sender: No OFD packet to send [07:12:52]OFD Sender: No OFD packet to send [07:12:57]OFD Sender: No OFD packet to send [07:13:02]OFD Sender: No OFD packet to send [07:13:07]OFD Sender: No OFD packet to send [07:13:12]OFD Sender: No OFD packet to send [07:13:17]OFD Sender: No OFD packet to send [07:13:22]OFD Sender: No OFD packet to send [07:13:27]OFD Sender: No OFD packet to send [07:13:32]OFD Sender: No OFD packet to send [07:13:37]OFD Sender: No OFD packet to send [07:13:42]OFD Sender: No OFD packet to send [07:13:47]OFD Sender: No OFD packet to send [07:13:52]OFD Sender: No OFD packet to send [07:13:57]OFD Sender: No OFD packet to send [07:14:02]OFD Sender: No OFD packet to send [07:14:07]OFD Sender: No OFD packet to send [07:14:12]OFD Sender: No OFD packet to send [07:14:17]OFD Sender: No OFD packet to send [07:14:22]OFD Sender: No OFD packet to send [07:14:27]OFD Sender: No OFD packet to send [07:14:32]OFD Sender: No OFD packet to send [07:14:37]OFD Sender: No OFD packet to send [07:14:42]OFD Sender: No OFD packet to send [07:14:47]OFD Sender: No OFD packet to send [07:14:52]OFD Sender: No OFD packet to send [07:14:57]OFD Sender: No OFD packet to send [07:15:02]OFD Sender: No OFD packet to send [07:15:07]OFD Sender: No OFD packet to send [07:15:12]OFD Sender: No OFD packet to send [07:15:17]OFD Sender: No OFD packet to send [07:15:22]OFD Sender: No OFD packet to send [07:15:27]OFD Sender: No OFD packet to send [07:15:32]OFD Sender: No OFD packet to send [07:15:37]OFD Sender: No OFD packet to send [07:15:42]OFD Sender: No OFD packet to send [07:15:47]OFD Sender: No OFD packet to send [07:15:52]OFD Sender: No OFD packet to send [07:15:57]OFD Sender: No OFD packet to send [07:16:02]OFD Sender: No OFD packet to send [07:16:07]OFD Sender: No OFD packet to send [07:16:12]OFD Sender: No OFD packet to send [07:16:17]OFD Sender: No OFD packet to send [07:16:22]OFD Sender: No OFD packet to send [07:16:27]OFD Sender: No OFD packet to send [07:16:32]OFD Sender: No OFD packet to send [07:16:37]OFD Sender: No OFD packet to send [07:16:42]OFD Sender: No OFD packet to send [07:16:47]OFD Sender: No OFD packet to send [07:16:52]OFD Sender: No OFD packet to send [07:16:57]OFD Sender: No OFD packet to send [07:17:02]OFD Sender: No OFD packet to send [07:17:07]OFD Sender: No OFD packet to send [07:17:12]OFD Sender: No OFD packet to send [07:17:17]OFD Sender: No OFD packet to send [07:17:22]OFD Sender: No OFD packet to send [07:17:27]OFD Sender: No OFD packet to send [07:17:32]OFD Sender: No OFD packet to send [07:17:37]OFD Sender: No OFD packet to send [07:17:42]OFD Sender: No OFD packet to send [07:17:47]OFD Sender: No OFD packet to send [07:17:52]OFD Sender: No OFD packet to send [07:17:57]OFD Sender: No OFD packet to send [07:18:02]OFD Sender: No OFD packet to send [07:18:07]OFD Sender: No OFD packet to send [07:18:12]OFD Sender: No OFD packet to send [07:18:17]OFD Sender: No OFD packet to send [07:18:22]OFD Sender: No OFD packet to send [07:18:27]OFD Sender: No OFD packet to send [07:18:32]OFD Sender: No OFD packet to send [07:18:37]OFD Sender: No OFD packet to send [07:18:42]OFD Sender: No OFD packet to send [07:18:47]OFD Sender: No OFD packet to send [07:18:52]OFD Sender: No OFD packet to send [07:18:57]OFD Sender: No OFD packet to send [07:19:02]OFD Sender: No OFD packet to send [07:19:07]OFD Sender: No OFD packet to send [07:19:12]OFD Sender: No OFD packet to send [07:19:17]OFD Sender: No OFD packet to send [07:19:22]OFD Sender: No OFD packet to send [07:19:27]OFD Sender: No OFD packet to send [07:19:32]OFD Sender: No OFD packet to send [07:19:37]OFD Sender: No OFD packet to send [07:19:42]OFD Sender: No OFD packet to send [07:19:47]OFD Sender: No OFD packet to send [07:19:52]OFD Sender: No OFD packet to send [07:19:57]OFD Sender: No OFD packet to send [07:20:02]OFD Sender: No OFD packet to send [07:20:07]OFD Sender: No OFD packet to send [07:20:12]OFD Sender: No OFD packet to send [07:20:17]OFD Sender: No OFD packet to send [07:20:22]OFD Sender: No OFD packet to send [07:20:27]OFD Sender: No OFD packet to send [07:20:32]OFD Sender: No OFD packet to send [07:20:37]OFD Sender: No OFD packet to send [07:20:42]OFD Sender: No OFD packet to send [07:20:47]OFD Sender: No OFD packet to send [07:20:52]OFD Sender: No OFD packet to send [07:20:57]OFD Sender: No OFD packet to send [07:21:02]OFD Sender: No OFD packet to send [07:21:07]OFD Sender: No OFD packet to send [07:21:12]OFD Sender: No OFD packet to send [07:21:17]OFD Sender: No OFD packet to send [07:21:22]OFD Sender: No OFD packet to send [07:21:27]OFD Sender: No OFD packet to send [07:21:32]OFD Sender: No OFD packet to send [07:21:37]OFD Sender: No OFD packet to send [07:21:42]OFD Sender: No OFD packet to send [07:21:47]OFD Sender: No OFD packet to send [07:21:52]OFD Sender: No OFD packet to send [07:21:57]OFD Sender: No OFD packet to send [07:22:02]OFD Sender: No OFD packet to send [07:22:07]OFD Sender: No OFD packet to send [07:22:12]OFD Sender: No OFD packet to send [07:22: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:26:18]OFD Sender: No OFD packet to send [07:26:23]OFD Sender: No OFD packet to send [07:26:28]OFD Sender: No OFD packet to send [07:26:33]OFD Sender: No OFD packet to send [07:26:38]OFD Sender: No OFD packet to send [07:26:43]OFD Sender: No OFD packet to send [07:26:48]OFD Sender: No OFD packet to send [07:26:53]OFD Sender: No OFD packet to send [07:26:58]OFD Sender: No OFD packet to send [07:27:03]OFD Sender: No OFD packet to send [07:27:08]OFD Sender: No OFD packet to send [07:27:13]OFD Sender: No OFD packet to send [07:27:18]OFD Sender: No OFD packet to send [07:27:23]OFD Sender: No OFD packet to send [07:27:28]OFD Sender: No OFD packet to send [07:27:33]OFD Sender: No OFD packet to send [07:27:38]OFD Sender: No OFD packet to send [07:27:43]OFD Sender: No OFD packet to send [07:27:48]OFD Sender: No OFD packet to send [07:27:53]OFD Sender: No OFD packet to send [07:27:58]OFD Sender: No OFD packet to send [07:28:03]OFD Sender: No OFD packet to send [07:28:08]OFD Sender: No OFD packet to send [07:28:13]OFD Sender: No OFD packet to send [07:28:18]OFD Sender: No OFD packet to send [07:28:23]OFD Sender: No OFD packet to send [07:28:28]OFD Sender: No OFD packet to send [07:28:33]OFD Sender: No OFD packet to send [07:28:38]OFD Sender: No OFD packet to send [07:28:43]OFD Sender: No OFD packet to send [07:28:48]OFD Sender: No OFD packet to send [07:28:53]OFD Sender: No OFD packet to send [07:28:58]OFD Sender: No OFD packet to send [07:29:03]OFD Sender: No OFD packet to send [07:29:08]OFD Sender: No OFD packet to send [07:29:13]OFD Sender: No OFD packet to send [07:29:18]OFD Sender: No OFD packet to send [07:29:23]OFD Sender: No OFD packet to send [07:29:28]OFD Sender: No OFD packet to send [07:29:33]OFD Sender: No OFD packet to send [07:29:38]OFD Sender: No OFD packet to send [07:29:43]OFD Sender: No OFD packet to send [07:29:48]OFD Sender: No OFD packet to send [07:29:53]OFD Sender: No OFD packet to send [07:29:58]OFD Sender: No OFD packet to send [07:30:03]OFD Sender: No OFD packet to send [07:30:08]OFD Sender: No OFD packet to send [07:30:13]OFD Sender: No OFD packet to send [07:30:18]OFD Sender: No OFD packet to send [07:30:23]OFD Sender: No OFD packet to send [07:30:28]OFD Sender: No OFD packet to send [07:30:33]OFD Sender: No OFD packet to send [07:30:38]OFD Sender: No OFD packet to send [07:30:43]OFD Sender: No OFD packet to send [07:30:48]OFD Sender: No OFD packet to send [07:30:53]OFD Sender: No OFD packet to send [07:30:58]OFD Sender: No OFD packet to send [07:31:03]OFD Sender: No OFD packet to send [07:31:08]OFD Sender: No OFD packet to send [07:31:13]OFD Sender: No OFD packet to send [07:31:18]OFD Sender: No OFD packet to send [07:31:23]OFD Sender: No OFD packet to send [07:31:28]OFD Sender: No OFD packet to send [07:31:33]OFD Sender: No OFD packet to send [07:31:38]OFD Sender: No OFD packet to send [07:31:43]OFD Sender: No OFD packet to send [07:31:48]OFD Sender: No OFD packet to send [07:31:53]OFD Sender: No OFD packet to send [07:31:58]OFD Sender: No OFD packet to send [07:32:03]OFD Sender: No OFD packet to send [07:32:08]OFD Sender: No OFD packet to send [07:32:13]OFD Sender: No OFD packet to send [07:32:18]OFD Sender: No OFD packet to send [07:32:23]OFD Sender: No OFD packet to send [07:32:28]OFD Sender: No OFD packet to send [07:32:33]OFD Sender: No OFD packet to send [07:32:38]OFD Sender: No OFD packet to send [07:32:43]OFD Sender: No OFD packet to send [07:32:48]OFD Sender: No OFD packet to send [07:32:53]OFD Sender: No OFD packet to send [07:32:58]OFD Sender: No OFD packet to send [07:33:03]OFD Sender: No OFD packet to send [07:33:08]OFD Sender: No OFD packet to send [07:33:13]OFD Sender: No OFD packet to send [07:33:18]OFD Sender: No OFD packet to send [07:33:23]OFD Sender: No OFD packet to send [07:33:28]OFD Sender: No OFD packet to send [07:33:33]OFD Sender: No OFD packet to send [07:33:38]OFD Sender: No OFD packet to send [07:33:43]OFD Sender: No OFD packet to send [07:33:48]OFD Sender: No OFD packet to send [07:33:53]OFD Sender: No OFD packet to send [07:33:58]OFD Sender: No OFD packet to send [07:34:03]OFD Sender: No OFD packet to send [07:34:08]OFD Sender: No OFD packet to send [07:34:13]OFD Sender: No OFD packet to send [07:34:18]OFD Sender: No OFD packet to send [07:34:23]OFD Sender: No OFD packet to send [07:34:28]OFD Sender: No OFD packet to send [07:34:33]OFD Sender: No OFD packet to send [07:34:38]OFD Sender: No OFD packet to send [07:34:43]OFD Sender: No OFD packet to send [07:34:48]OFD Sender: No OFD packet to send [07:34:53]OFD Sender: No OFD packet to send [07:34:58]OFD Sender: No OFD packet to send [07:35:03]OFD Sender: No OFD packet to send [07:35:08]OFD Sender: No OFD packet to send [07:35:13]OFD Sender: No OFD packet to send [07:35:18]OFD Sender: No OFD packet to send [07:35:23]OFD Sender: No OFD packet to send [07:35:28]OFD Sender: No OFD packet to send [07:35:33]OFD Sender: No OFD packet to send [07:35:38]OFD Sender: No OFD packet to send [07:35:43]OFD Sender: No OFD packet to send [07:35:48]OFD Sender: No OFD packet to send [07:35:53]OFD Sender: No OFD packet to send [07:35:58]OFD Sender: No OFD packet to send [07:36:03]OFD Sender: No OFD packet to send [07:36:08]OFD Sender: No OFD packet to send [07:36:13]OFD Sender: No OFD packet to send [07:36:18]OFD Sender: No OFD packet to send [07:36:23]OFD Sender: No OFD packet to send [07:36:28]OFD Sender: No OFD packet to send [07:36:33]OFD Sender: No OFD packet to send [07:36:38]OFD Sender: No OFD packet to send [07:36:43]OFD Sender: No OFD packet to send [07:36:48]OFD Sender: No OFD packet to send [07:36:53]OFD Sender: No OFD packet to send [07:36:59]OFD Sender: No OFD packet to send [07:37:04]OFD Sender: No OFD packet to send [07:37:09]OFD Sender: No OFD packet to send [07:37:14]OFD Sender: No OFD packet to send [07:37:19]OFD Sender: No OFD packet to send [07:37:24]OFD Sender: No OFD packet to send [07:37:29]OFD Sender: No OFD packet to send [07:37:34]OFD Sender: No OFD packet to send [07:37:39]OFD Sender: No OFD packet to send [07:37:44]OFD Sender: No OFD packet to send [07:37:49]OFD Sender: No OFD packet to send [07:37:54]OFD Sender: No OFD packet to send [07:37:59]OFD Sender: No OFD packet to send [07:38:04]OFD Sender: No OFD packet to send [07:38:09]OFD Sender: No OFD packet to send [07:38:14]OFD Sender: No OFD packet to send [07:38:19]OFD Sender: No OFD packet to send [07:38:24]OFD Sender: No OFD packet to send [07:38:29]OFD Sender: No OFD packet to send [07:38:34]OFD Sender: No OFD packet to send [07:38:39]OFD Sender: No OFD packet to send [07:38:44]OFD Sender: No OFD packet to send [07:38:49]OFD Sender: No OFD packet to send [07:38:54]OFD Sender: No OFD packet to send [07:38:59]OFD Sender: No OFD packet to send [07:39:04]OFD Sender: No OFD packet to send [07:39:09]OFD Sender: No OFD packet to send [07:39:14]OFD Sender: No OFD packet to send [07:39:19]OFD Sender: No OFD packet to send [07:39:24]OFD Sender: No OFD packet to send [07:39:29]OFD Sender: No OFD packet to send [07:39:34]OFD Sender: No OFD packet to send [07:39:39]OFD Sender: No OFD packet to send [07:39:44]OFD Sender: No OFD packet to send [07:39:49]OFD Sender: No OFD packet to send [07:39:54]OFD Sender: No OFD packet to send [07:39:59]OFD Sender: No OFD packet to send [07:40:04]OFD Sender: No OFD packet to send [07:40:09]OFD Sender: No OFD packet to send [07:40:14]OFD Sender: No OFD packet to send [07:40:19]OFD Sender: No OFD packet to send [07:40:24]OFD Sender: No OFD packet to send [07:40:29]OFD Sender: No OFD packet to send [07:40:34]OFD Sender: No OFD packet to send [07:40:39]OFD Sender: No OFD packet to send [07:40:44]OFD Sender: No OFD packet to send [07:40:49]OFD Sender: No OFD packet to send [07:40:54]OFD Sender: No OFD packet to send [07:40:59]OFD Sender: No OFD packet to send [07:41:04]OFD Sender: No OFD packet to send [07:41:09]OFD Sender: No OFD packet to send [07:41:14]OFD Sender: No OFD packet to send [07:41:19]OFD Sender: No OFD packet to send [07:41:24]OFD Sender: No OFD packet to send [07:41:29]OFD Sender: No OFD packet to send [07:41:34]OFD Sender: No OFD packet to send [07:41:39]OFD Sender: No OFD packet to send [07:41:44]OFD Sender: No OFD packet to send [07:41:49]OFD Sender: No OFD packet to send [07:41:54]OFD Sender: No OFD packet to send [07:41:59]OFD Sender: No OFD packet to send [07:42:04]OFD Sender: No OFD packet to send [07:42:09]OFD Sender: No OFD packet to send [07:42:14]OFD Sender: No OFD packet to send [07:42:19]OFD Sender: No OFD packet to send [07:42:24]OFD Sender: No OFD packet to send [07:42:29]OFD Sender: No OFD packet to send [07:42:34]OFD Sender: No OFD packet to send [07:42:39]OFD Sender: No OFD packet to send [07:42:44]OFD Sender: No OFD packet to send [07:42:49]OFD Sender: No OFD packet to send [07:42:54]OFD Sender: No OFD packet to send [07:42:59]OFD Sender: No OFD packet to send [07:43:04]OFD Sender: No OFD packet to send [07:43:09]OFD Sender: No OFD packet to send [07:43:14]OFD Sender: No OFD packet to send [07:43:19]OFD Sender: No OFD packet to send [07:43:24]OFD Sender: No OFD packet to send [07:43:29]OFD Sender: No OFD packet to send [07:43:34]OFD Sender: No OFD packet to send [07:43:39]OFD Sender: No OFD packet to send [07:43:44]OFD Sender: No OFD packet to send [07:43:49]OFD Sender: No OFD packet to send [07:43:53]accept exits with 7 [07:43:53]New connection [07:43:53]New thread 3067395428 created [07:43:53]Thread 3067252068 joined [07:43:53]Waiting for new connection... [07:43:53] Sock 7.Parse request [07:43:53]Sock 7.Check first char [07:43:53]Sock 7.First char is OK [07:43:53]request: POST /json_proto HTTP/1.0 [07:43:53]Method: POST [07:43:53]URL: /json_proto [07:43:53]Method is POST - this is cgi request [07:43:53]url: /json_proto [07:43:53]query_string will be loaded in cgi processing [07:43:53]execute_cgi json_proto POST (null) [07:43:53]execute_cgi path=json_proto method=POST [07:43:53]POST find Content-Length [07:43:53]Host: 172.17.48.197:8080 [07:43:53]Content-Length: 678 [07:43:53]Content-Type: application/json [07:43:53] [07:43:53]POST finish read [07:43:53]Found Content-Length = 678 [07:43:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106095", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "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" ] } } [07:43:53]execute_script... [07:43: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)1106095", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "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" ] } } [07:43:53]POST & json_proto [07:43:53]process_json_proto [07:43:53]json parsed OK: [07:43:53]protocol is kg_v1.0 [07:43:53]action value=close_receipt [07:43:53]process_action close_receipt [07:43:53]cmd_close_receipt [07:43:53]MH_GetDate [07:43:53]Write to MH i2c: F0 00 00 B7 11 B7 [07:43:53]Write i2c OK [07:43:53]MH_I2C_Read... [07:43:53]Read from MH i2c: F0 [07:43:53]MH_I2C_Read... [07:43:53]Read from MH i2c: F0 09 00 [07:43:53]MH_I2C_Read... [07:43:53]Read from MH i2c: F0 09 00 B7 11 00 3B 2A E4 65 6C AF E3 65 D1 [07:43:53]GetLastDocTimeStamp 1709449050 [07:43:53]current date 1709451835 [07:43:53]FM_GetShiftState [07:43:53]SAM_PROTO_GetShiftState [07:43:53]wFMCommunicate request_size=4 [07:43:53]MH_SAM_APDU [07:43:53]CAPDU: 80 13 01 00 [07:43:53]Write to MH i2c: E2 08 00 B8 11 80 13 01 00 00 00 00 00 46 [07:43:53]Write i2c OK [07:43:53]MH_I2C_Read... [07:43:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:43:53]Read from MH i2c: E2 [07:43:53]MH_I2C_Read... [07:43:53]Read from MH i2c: E2 0E 00 [07:43:53]MH_I2C_Read... [07:43:53]Read from MH i2c: E2 0E 00 B8 11 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 08 [07:43:53]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [07:43:53]wFMCommunicate OK [07:43:53]SAM_PROTO_GetShiftState done [07:43:53]FM_GetShiftState done [07:43:53]opened in 1709425579 [07:43:53]opened+sec_in_day 1709511979 [07:43:53]quantity*price = 50015 [07:43:53]sum+1 = 50016 [07:43:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 33 03.03.2024 07:43 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123176 ФПД: 244723610430171 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T074355&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123176&fm=244723610430171&tin=02508201610067®Number=0000000000090573&sum=50000 [07:43:55]StoreToDocumentArchive [07:43:55]shift 323 fd 123176 [07:43:55]save to /storage/0323/doc_00123176 [07:43:55]save last doc name /storage/0323/doc_00123176 to /storage/kkm_last_doc_name [07:43:55]save OK [07:43:55]Clear old archive folders... [07:43:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:43:55]tlvbuf is 00DE1080 [07:43:55]SAM_PROTO_ClearQueue [07:43:55]wFMCommunicate request_size=4 [07:43:55]MH_SAM_APDU [07:43:55]CAPDU: 80 09 00 00 [07:43:55]Write to MH i2c: E2 08 00 C5 11 80 09 00 00 00 00 00 00 48 [07:43:55]Write i2c OK [07:43:55]MH_I2C_Read... [07:43:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:43:55]Read from MH i2c: E2 [07:43:55]MH_I2C_Read... [07:43:55]Read from MH i2c: E2 03 00 [07:43:55]MH_I2C_Read... [07:43:55]Read from MH i2c: E2 03 00 C5 11 00 90 00 4A [07:43:55]RAPDU: 90 00 [07:43:55]wFMCommunicate OK [07:43:55]SAM_PROTO_ClearQueue done [07:43:55]KKMCreateOFDPacket [07:43:55]OFDProtocolAddRootSTLVToBuf [07:43:55]FM_MakeSignedData [07:43:55]FM_MakeSignedData [07:43:55]SAM_PROTO_SignData [07:43:55]wFMCommunicate request_size=4 [07:43:55]MH_SAM_APDU [07:43:55]CAPDU: 80 0D 01 02 [07:43:55]Write to MH i2c: E2 08 00 C6 11 80 0D 01 02 00 00 00 00 50 [07:43:55]Write i2c OK [07:43:55]MH_I2C_Read... [07:43:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:43:55]Read from MH i2c: E2 [07:43:55]MH_I2C_Read... [07:43:55]Read from MH i2c: E2 03 00 [07:43:55]MH_I2C_Read... [07:43:55]Read from MH i2c: E2 03 00 C6 11 00 90 00 4B [07:43:55]RAPDU: 90 00 [07:43:55]wFMCommunicate OK [07:43:55]wFMCommunicate request_size=255 [07:43:55]MH_SAM_APDU [07:43:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 3B 2A E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 28 E1 01 00 35 04 06 00 DE [07:43:55]Write to MH i2c: E2 02 01 C7 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 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 3B 2A E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 28 E1 01 00 35 04 06 00 DE 00 00 2B [07:43:55]Write i2c OK [07:43:55]MH_I2C_Read... [07:43:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:43:55]Read from MH i2c: E2 [07:43:55]MH_I2C_Read... [07:43:55]Read from MH i2c: E2 03 00 [07:43:55]MH_I2C_Read... [07:43:55]Read from MH i2c: E2 03 00 C7 11 00 90 00 4C [07:43:55]RAPDU: 90 00 [07:43:55]wFMCommunicate OK [07:43:55]wFMCommunicate request_size=10 [07:43:55]MH_SAM_APDU [07:43:55]CAPDU: 80 0D 02 02 05 93 27 DE 2A DB [07:43:55]Write to MH i2c: E2 0D 00 C8 11 80 0D 02 02 05 00 93 27 DE 2A DB 00 00 FA [07:43:55]Write i2c OK [07:43:55]MH_I2C_Read... [07:43:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:43:55]Read from MH i2c: E2 [07:43:55]MH_I2C_Read... [07:43:55]Read from MH i2c: E2 03 00 [07:43:55]MH_I2C_Read... [07:43:55]Read from MH i2c: E2 03 00 C8 11 00 90 00 4D [07:43:55]RAPDU: 90 00 [07:43:55]wFMCommunicate OK [07:43:55]wFMCommunicate request_size=4 [07:43:55]MH_SAM_APDU [07:43:55]CAPDU: 80 0D 03 02 [07:43:55]Write to MH i2c: E2 08 00 C9 11 80 0D 03 02 00 00 00 00 55 [07:43:55]Write i2c OK [07:43:55]MH_I2C_Read... [07:43:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:43:55]Read from MH i2c: E2 [07:43:55]MH_I2C_Read... [07:43:55]Read from MH i2c: E2 0B 00 [07:43:55]MH_I2C_Read... [07:43:55]Read from MH i2c: E2 0B 00 C9 11 00 8A 88 49 7C 85 DF 44 E5 90 00 BA [07:43:55]RAPDU: 8A 88 49 7C 85 DF 44 E5 90 00 [07:43:55]wFMCommunicate OK [07:43:55]SAM_PROTO_SignData done [07:43:55]FM_MakeSignedData done [07:43:55]CreateOFDProtocolMessage [07:43:55]wFMCommunicate request_size=4 [07:43:55]MH_SAM_APDU [07:43:55]CAPDU: 80 11 00 00 [07:43:55]Write to MH i2c: E2 08 00 CA 11 80 11 00 00 00 00 00 00 55 [07:43:55]Write i2c OK [07:43:55]MH_I2C_Read... [07:43:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:43:55]Read from MH i2c: E2 [07:43:55]MH_I2C_Read... [07:43:55]Read from MH i2c: E2 17 00 [07:43:55]MH_I2C_Read... [07:43:55]Read from MH i2c: E2 17 00 CA 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 B3 [07:43:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [07:43:55]wFMCommunicate OK [07:43:55]CreateOFDProtocolMessage done [07:43:55]OFDSenderStorePacket 123176 [07:43:55]StoreOFDPacket docnum=123176 [07:43:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 99 7F 07 01 BC 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 3B 2A E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 28 E1 01 00 35 04 06 00 DE 93 27 DE 2A DB 8A 88 49 7C 85 DF 44 E5 [07:43:55]CheckFolder [07:43:55]dirname=/storage/ofd_packets [07:43:55]CheckFolder done [07:43:55]ProducePacketName [07:43:55]name=ofd_packets/00123176 [07:43:55]NVStorageSaveData ofd_packets/00123176 [07:43:55]File name is /storage/ofd_packets/00123176 [07:43:55]Write 301 bytes [07:43:55]NVStorageSaveData done [07:43:55]OFDSenderStorePacket done [07:43:55]KKMCreateOFDPacket done [07:43:55]NVStorageSaveData kkm_last_timestamp [07:43:55]File name is /storage/kkm_last_timestamp [07:43:55]Write 4 bytes [07:43:55]NVStorageSaveData done [07:43:55]ExternCall_PrintAddStr [07:43:55]wPrintStart [07:43:55]Write to MH i2c: 01 00 00 CB 11 DC [07:43:55]Write i2c OK [07:43:55]MH_I2C_Read... [07:43:55]Read from MH i2c: 01 [07:43:55]MH_I2C_Read... [07:43:55]Read from MH i2c: 01 07 00 [07:43:55]MH_I2C_Read... [07:43:55]Read from MH i2c: 01 07 00 CB 11 00 00 00 00 00 FF 0F F1 [07:43:55]RasterBufferAndPrint [07:43:55]line Счет N : (1)1106095 [07:43:55]line ИНН: 02508201610067 [07:43:55]line Контрольно-Кассовый Чек [07:43:55]line ПРОДАЖА [07:43:55]line ТРК (МРК, ГНК) : 32 [07:43:55]line Товар: 2710124130 [07:43:55]line Аи-92-К-5 [07:43:55]line 8.080 * 61.90 [07:43:55]line = 500.15 [07:43:55]line НДС 12% НСП 1% [07:43:55]line > о реализуемом товаре [07:43:55]line ОКРУГЛЕНИЕ: -0.15 [07:43:55]line ИТОГО: 500.00 [07:43:55]line Внесено: 500.00 [07:43:55]line СДАЧА: 0.00 [07:43:55]line НСП 1% : 4.43 [07:43:55]line НДС 12% : 53.11 [07:43:55]line Наличными: 500.00 [07:43:55]line Безнал.: 0.00 [07:43:55]line Место: АЗС № 25 "Партнер Нефть" [07:43:55]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [07:43:55]line СНО: Общий режим [07:43:55]line Чек 33 03.03.2024 07:43 [07:43:55]line Смена: 323 ФФД: 1.0 [07:43:55]line ЗНМ: 0300000019 [07:43:55]line РНМ: 0000000000090573 [07:43:55]line Версия ККМ: 001 [07:43:55]line ФМ: 0000000000874798 [07:43:55]line ФД: 123176 [07:43:55]line ФПД: 244723610430171 [07:43:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T074355&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123176&fm=244723610430171&tin=02508201610067®Number=0000000000090573&sum=50000 [07:43:55]OFD Sender: Processing packet 123176 [packets to send 112, broken 111] [07:43:55]ProducePacketName [07:43:55]name=ofd_packets/00123176 [07:43:55]OFD Sender: To server: pG, [07:43:55]CommunicateWithHost lk.salyk.kg:30040 [07:43:55]ConnectInit lk.salyk.kg [07:43:55]written 0, free lines is 4095 [07:43:55]Connected sock=10 [07:43: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 37 39 38 0F 01 00 00 99 7F 07 01 BC 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 3B 2A E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 28 E1 01 00 35 04 06 00 DE 93 27 DE 2A DB 8A 88 49 7C 85 DF 44 E5 [07:43:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 55 BA 47 00 0B 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 37 39 38 10 04 04 00 28 E1 01 00 F4 03 04 00 68 D6 E3 65 B6 04 01 00 00 89 50 DB 9A E8 27 F6 BB [07:43:56]CommunicateWithHost err = 0 [07:43:56]CheckOFDResponse [07:43:56]1017 (14) - 77093643461234 [07:43:56]1041 (16) - 0000000000874798 [07:43:56]1040 (4) - 123176 [07:43:56]1012 (4) - 03.03.2024 01:46 [07:43:56]1206 (1) - 0 [07:43:56]OFD Sender: Remove packet 123176 [07:43:56]ProducePacketName [07:43:56]name=ofd_packets/00123176 [07:43:56]NVStorageDeleteData [07:43:56]Write to MH i2c: 01 00 00 F6 11 07 [07:43:56]Write i2c OK [07:43:56]MH_I2C_Read... [07:43:56]Read from MH i2c: 01 [07:43:56]MH_I2C_Read... [07:43:56]Read from MH i2c: 01 07 00 [07:43:56]MH_I2C_Read... [07:43:56]Read from MH i2c: 01 07 00 F6 11 00 00 00 00 00 E7 0C 01 [07:43:56]RasterBufferAndPrint [07:43:56]line [07:43:56]line [07:43:56]line [07:43:56]line [07:43:56]line [07:43:56]written 0, free lines is 3309 [07:43:56]MH_Cut [07:43:56]Write to MH i2c: D1 01 00 FD 11 01 E0 [07:43:56]Write i2c OK [07:43:56]MH_I2C_Read... [07:43:56]Read from MH i2c: D1 [07:43:56]MH_I2C_Read... [07:43:56]Read from MH i2c: D1 01 00 [07:43:56]MH_I2C_Read... [07:43:56]Read from MH i2c: D1 01 00 FD 11 00 DF [07:43:56]Write to MH i2c: 01 00 00 FE 11 0F [07:43:56]Write i2c OK [07:43:56]MH_I2C_Read... [07:43:56]OFD Sender: No OFD packet to send [07:43:57]*** Cut start [07:43:57]*** Purtial cut [07:43:57]*** Stage 1: CUTSNS_PIN = 1 [07:43:59]Read from MH i2c: 01 [07:43:59]MH_I2C_Read... [07:43:59]*** Stop cut motor [07:43:59]*** Cut end [07:43:59]Read from MH i2c: 01 07 00 [07:43:59]MH_I2C_Read... [07:43:59]Read from MH i2c: 01 07 00 FE 11 00 00 00 00 00 FF 0F 24 [07:43:59]process_action close_receipt done [07:43:59]requested_data is exist [07:43:59]produce_requested_data [07:43:59]requested_item fm.sn is exist - process it [07:43:59]wFMCommunicate request_size=4 [07:43:59]MH_SAM_APDU [07:43:59]CAPDU: 80 11 00 00 [07:43:59]Write to MH i2c: E2 08 00 FF 11 80 11 00 00 00 00 00 00 8A [07:43:59]Write i2c OK [07:43:59]MH_I2C_Read... [07:43:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:43:59]Read from MH i2c: E2 [07:43:59]MH_I2C_Read... [07:43:59]Read from MH i2c: E2 17 00 [07:43:59]MH_I2C_Read... [07:43:59]Read from MH i2c: E2 17 00 FF 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 E8 [07:43:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [07:43:59]wFMCommunicate OK [07:43:59]requested_item fd.num is exist - process it [07:43:59]SAM_PROTO_GetFieldsCounters [07:43:59]wFMCommunicate request_size=4 [07:43:59]MH_SAM_APDU [07:43:59]CAPDU: 80 13 00 00 [07:43:59]Write to MH i2c: E2 08 00 00 12 80 13 00 00 00 00 00 00 8E [07:43:59]Write i2c OK [07:43:59]MH_I2C_Read... [07:43:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:43:59]Read from MH i2c: E2 [07:43:59]MH_I2C_Read... [07:43:59]Read from MH i2c: E2 62 00 [07:43:59]MH_I2C_Read... [07:43:59]Read from MH i2c: E2 62 00 00 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 28 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 6A [07:43:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 28 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:43:59]wFMCommunicate OK [07:43:59]SAM_PROTO_GetFieldsCounters done [07:43:59]requested_item shift.num is exist - process it [07:43:59]requested_item shift.opened is exist - process it [07:43:59]req_shift_opened [07:43:59]FM_GetShiftState [07:43:59]SAM_PROTO_GetShiftState [07:43:59]wFMCommunicate request_size=4 [07:43:59]MH_SAM_APDU [07:43:59]CAPDU: 80 13 01 00 [07:43:59]Write to MH i2c: E2 08 00 01 12 80 13 01 00 00 00 00 00 90 [07:43:59]Write i2c OK [07:43:59]MH_I2C_Read... [07:43:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:43:59]Read from MH i2c: E2 [07:43:59]MH_I2C_Read... [07:43:59]Read from MH i2c: E2 0E 00 [07:43:59]MH_I2C_Read... [07:43:59]Read from MH i2c: E2 0E 00 01 12 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 52 [07:43:59]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [07:43:59]wFMCommunicate OK [07:43:59]SAM_PROTO_GetShiftState done [07:43:59]FM_GetShiftState done [07:43:59]req_shift_opened done [07:43:59]requested_item shift.open_date is exist - process it [07:43:59]req_shift_open_date [07:43:59]req_shift_open_date done [07:43:59]produce_requested_data done [07:43:59]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123176,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [07:43:59]process_action_free close_receipt [07:43:59]json_value_free [07:43:59]json_value_free done [07:43:59]process_json_proto returns [07:43:59]Send response to host [07:43:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123176,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [07:43:59]free response buf [07:43:59]execute_script done [07:43:59]execute_script returns [07:43:59]free content buf [07:43:59]Sock 7.Close socket [07:43:59]Sock 7.Thread stoped [07:44:01]OFD Sender: No OFD packet to send [07:44:06]OFD Sender: No OFD packet to send [07:44:11]OFD Sender: No OFD packet to send [07:44:16]OFD Sender: No OFD packet to send [07:44:21]OFD Sender: No OFD packet to send [07:44:26]OFD Sender: No OFD packet to send [07:44:31]OFD Sender: No OFD packet to send [07:44:36]OFD Sender: No OFD packet to send [07:44:41]OFD Sender: No OFD packet to send [07:44:46]OFD Sender: No OFD packet to send [07:44:51]OFD Sender: No OFD packet to send [07:44:56]OFD Sender: No OFD packet to send [07:45:01]OFD Sender: No OFD packet to send [07:45:06]OFD Sender: No OFD packet to send [07:45:11]OFD Sender: No OFD packet to send [07:45:16]OFD Sender: No OFD packet to send [07:45:21]OFD Sender: No OFD packet to send [07:45:26]OFD Sender: No OFD packet to send [07:45:31]OFD Sender: No OFD packet to send [07:45:36]OFD Sender: No OFD packet to send [07:45:41]OFD Sender: No OFD packet to send [07:45:46]OFD Sender: No OFD packet to send [07:45:51]OFD Sender: No OFD packet to send [07:45:56]OFD Sender: No OFD packet to send [07:46:01]OFD Sender: No OFD packet to send [07:46:06]OFD Sender: No OFD packet to send [07:46:11]OFD Sender: No OFD packet to send [07:46:16]OFD Sender: No OFD packet to send [07:46:21]OFD Sender: No OFD packet to send [07:46:26]OFD Sender: No OFD packet to send [07:46:31]OFD Sender: No OFD packet to send [07:46:36]OFD Sender: No OFD packet to send [07:46:41]OFD Sender: No OFD packet to send [07:46:46]OFD Sender: No OFD packet to send [07:46:51]OFD Sender: No OFD packet to send [07:46:56]OFD Sender: No OFD packet to send [07:47:01]OFD Sender: No OFD packet to send [07:47:06]OFD Sender: No OFD packet to send [07:47:11]OFD Sender: No OFD packet to send [07:47:15]accept exits with 9 [07:47:15]New connection [07:47:15]New thread 3067252068 created [07:47:15]Thread 3067395428 joined [07:47:15]Waiting for new connection... [07:47:15] Sock 9.Parse request [07:47:15]Sock 9.Check first char [07:47:15]Sock 9.First char is OK [07:47:15]request: POST /json_proto HTTP/1.0 [07:47:15]Method: POST [07:47:15]URL: /json_proto [07:47:15]Method is POST - this is cgi request [07:47:15]url: /json_proto [07:47:15]query_string will be loaded in cgi processing [07:47:15]execute_cgi json_proto POST (null) [07:47:15]execute_cgi path=json_proto method=POST [07:47:15]POST find Content-Length [07:47:15]Host: 172.17.48.197:8080 [07:47:15]Content-Length: 679 [07:47:15]Content-Type: application/json [07:47:15] [07:47:15]POST finish read [07:47:15]Found Content-Length = 679 [07:47:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106096", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 11.520, "sum" : 800.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:47:15]execute_script... [07:47: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)1106096", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 11.520, "sum" : 800.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:47:15]POST & json_proto [07:47:15]process_json_proto [07:47:15]json parsed OK: [07:47:15]protocol is kg_v1.0 [07:47:15]action value=close_receipt [07:47:15]process_action close_receipt [07:47:15]cmd_close_receipt [07:47:15]MH_GetDate [07:47:15]Write to MH i2c: F0 00 00 02 12 03 [07:47:15]Write i2c OK [07:47:15]MH_I2C_Read... [07:47:15]Read from MH i2c: F0 [07:47:15]MH_I2C_Read... [07:47:15]Read from MH i2c: F0 09 00 [07:47:15]MH_I2C_Read... [07:47:15]Read from MH i2c: F0 09 00 02 12 00 05 2B E4 65 6C AF E3 65 E8 [07:47:15]GetLastDocTimeStamp 1709451835 [07:47:15]current date 1709452037 [07:47:15]FM_GetShiftState [07:47:15]SAM_PROTO_GetShiftState [07:47:15]wFMCommunicate request_size=4 [07:47:15]MH_SAM_APDU [07:47:15]CAPDU: 80 13 01 00 [07:47:15]Write to MH i2c: E2 08 00 03 12 80 13 01 00 00 00 00 00 92 [07:47:15]Write i2c OK [07:47:15]MH_I2C_Read... [07:47:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:47:15]Read from MH i2c: E2 [07:47:15]MH_I2C_Read... [07:47:15]Read from MH i2c: E2 0E 00 [07:47:15]MH_I2C_Read... [07:47:15]Read from MH i2c: E2 0E 00 03 12 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 54 [07:47:15]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [07:47:15]wFMCommunicate OK [07:47:15]SAM_PROTO_GetShiftState done [07:47:15]FM_GetShiftState done [07:47:15]opened in 1709425579 [07:47:15]opened+sec_in_day 1709511979 [07:47:15]quantity*price = 80064 [07:47:15]sum+1 = 80065 [07:47:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.02 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 34 03.03.2024 07:47 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123177 ФПД: 187159274204809 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T074717&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123177&fm=187159274204809&tin=02508201610067®Number=0000000000090573&sum=80000 [07:47:16]StoreToDocumentArchive [07:47:16]shift 323 fd 123177 [07:47:16]save to /storage/0323/doc_00123177 [07:47:16]save last doc name /storage/0323/doc_00123177 to /storage/kkm_last_doc_name [07:47:16]save OK [07:47:16]Clear old archive folders... [07:47:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:47:16]tlvbuf is 00E30E00 [07:47:16]SAM_PROTO_ClearQueue [07:47:16]wFMCommunicate request_size=4 [07:47:16]MH_SAM_APDU [07:47:16]CAPDU: 80 09 00 00 [07:47:16]Write to MH i2c: E2 08 00 10 12 80 09 00 00 00 00 00 00 94 [07:47:16]Write i2c OK [07:47:16]MH_I2C_Read... [07:47:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:47:16]Read from MH i2c: E2 [07:47:16]MH_I2C_Read... [07:47:16]Read from MH i2c: E2 03 00 [07:47:16]MH_I2C_Read... [07:47:16]Read from MH i2c: E2 03 00 10 12 00 90 00 96 [07:47:16]RAPDU: 90 00 [07:47:16]wFMCommunicate OK [07:47:16]SAM_PROTO_ClearQueue done [07:47:16]KKMCreateOFDPacket [07:47:16]OFDProtocolAddRootSTLVToBuf [07:47:16]FM_MakeSignedData [07:47:16]FM_MakeSignedData [07:47:16]SAM_PROTO_SignData [07:47:16]wFMCommunicate request_size=4 [07:47:16]MH_SAM_APDU [07:47:16]CAPDU: 80 0D 01 02 [07:47:16]Write to MH i2c: E2 08 00 11 12 80 0D 01 02 00 00 00 00 9C [07:47:16]Write i2c OK [07:47:16]MH_I2C_Read... [07:47:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:47:16]Read from MH i2c: E2 [07:47:16]MH_I2C_Read... [07:47:16]Read from MH i2c: E2 03 00 [07:47:16]MH_I2C_Read... [07:47:16]Read from MH i2c: E2 03 00 11 12 00 90 00 97 [07:47:16]RAPDU: 90 00 [07:47:16]wFMCommunicate OK [07:47:16]wFMCommunicate request_size=255 [07:47:16]MH_SAM_APDU [07:47: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 35 FF 03 08 00 03 00 2D 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 C0 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 05 2B E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 29 E1 01 00 35 04 06 00 AA [07:47:16]Write to MH i2c: E2 02 01 12 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 00 2D 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 C0 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 05 2B E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 29 E1 01 00 35 04 06 00 AA 00 00 3E [07:47:16]OFD Sender: No OFD packet to send [07:47:16]Write i2c OK [07:47:16]MH_I2C_Read... [07:47:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:47:17]Read from MH i2c: E2 [07:47:17]MH_I2C_Read... [07:47:17]Read from MH i2c: E2 03 00 [07:47:17]MH_I2C_Read... [07:47:17]Read from MH i2c: E2 03 00 12 12 00 90 00 98 [07:47:17]RAPDU: 90 00 [07:47:17]wFMCommunicate OK [07:47:17]wFMCommunicate request_size=10 [07:47:17]MH_SAM_APDU [07:47:17]CAPDU: 80 0D 02 02 05 38 6A 0E 2E 89 [07:47:17]Write to MH i2c: E2 0D 00 13 12 80 0D 02 02 05 00 38 6A 0E 2E 89 00 00 10 [07:47:17]Write i2c OK [07:47:17]MH_I2C_Read... [07:47:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:47:17]Read from MH i2c: E2 [07:47:17]MH_I2C_Read... [07:47:17]Read from MH i2c: E2 03 00 [07:47:17]MH_I2C_Read... [07:47:17]Read from MH i2c: E2 03 00 13 12 00 90 00 99 [07:47:17]RAPDU: 90 00 [07:47:17]wFMCommunicate OK [07:47:17]wFMCommunicate request_size=4 [07:47:17]MH_SAM_APDU [07:47:17]CAPDU: 80 0D 03 02 [07:47:17]Write to MH i2c: E2 08 00 14 12 80 0D 03 02 00 00 00 00 A1 [07:47:17]Write i2c OK [07:47:17]MH_I2C_Read... [07:47:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:47:17]Read from MH i2c: E2 [07:47:17]MH_I2C_Read... [07:47:17]Read from MH i2c: E2 0B 00 [07:47:17]MH_I2C_Read... [07:47:17]Read from MH i2c: E2 0B 00 14 12 00 EA CF 81 9D 2C 46 F3 F1 90 00 CF [07:47:17]RAPDU: EA CF 81 9D 2C 46 F3 F1 90 00 [07:47:17]wFMCommunicate OK [07:47:17]SAM_PROTO_SignData done [07:47:17]FM_MakeSignedData done [07:47:17]CreateOFDProtocolMessage [07:47:17]wFMCommunicate request_size=4 [07:47:17]MH_SAM_APDU [07:47:17]CAPDU: 80 11 00 00 [07:47:17]Write to MH i2c: E2 08 00 15 12 80 11 00 00 00 00 00 00 A1 [07:47:17]Write i2c OK [07:47:17]MH_I2C_Read... [07:47:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:47:17]Read from MH i2c: E2 [07:47:17]MH_I2C_Read... [07:47:17]Read from MH i2c: E2 17 00 [07:47:17]MH_I2C_Read... [07:47:17]Read from MH i2c: E2 17 00 15 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 FF [07:47:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [07:47:17]wFMCommunicate OK [07:47:17]CreateOFDProtocolMessage done [07:47:17]OFDSenderStorePacket 123177 [07:47:17]StoreOFDPacket docnum=123177 [07:47:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 A6 D0 07 01 C8 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 00 2D 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 C0 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 05 2B E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 29 E1 01 00 35 04 06 00 AA 38 6A 0E 2E 89 EA CF 81 9D 2C 46 F3 F1 [07:47:17]CheckFolder [07:47:17]dirname=/storage/ofd_packets [07:47:17]CheckFolder done [07:47:17]ProducePacketName [07:47:17]name=ofd_packets/00123177 [07:47:17]NVStorageSaveData ofd_packets/00123177 [07:47:17]File name is /storage/ofd_packets/00123177 [07:47:17]Write 301 bytes [07:47:17]NVStorageSaveData done [07:47:17]OFDSenderStorePacket done [07:47:17]KKMCreateOFDPacket done [07:47:17]NVStorageSaveData kkm_last_timestamp [07:47:17]File name is /storage/kkm_last_timestamp [07:47:17]Write 4 bytes [07:47:17]NVStorageSaveData done [07:47:17]ExternCall_PrintAddStr [07:47:17]wPrintStart [07:47:17]Write to MH i2c: 01 00 00 16 12 28 [07:47:17]Write i2c OK [07:47:17]MH_I2C_Read... [07:47:17]Read from MH i2c: 01 [07:47:17]MH_I2C_Read... [07:47:17]Read from MH i2c: 01 07 00 [07:47:17]MH_I2C_Read... [07:47:17]Read from MH i2c: 01 07 00 16 12 00 00 00 00 00 FF 0F 3D [07:47:17]RasterBufferAndPrint [07:47:17]line Счет N : (1)1106096 [07:47:17]line ИНН: 02508201610067 [07:47:17]line Контрольно-Кассовый Чек [07:47:17]line ПРОДАЖА [07:47:17]line ТРК (МРК, ГНК) : 63 [07:47:17]line Товар: 2710124500 [07:47:17]line Аи-95-К-5 [07:47:17]line 11.520 * 69.50 [07:47:17]line = 800.64 [07:47:17]line НДС 12% НСП 1% [07:47:17]line > о реализуемом товаре [07:47:17]line ОКРУГЛЕНИЕ: -0.64 [07:47:17]line ИТОГО: 800.00 [07:47:17]line Внесено: 800.00 [07:47:17]line СДАЧА: 0.00 [07:47:17]line НСП 1% : 7.08 [07:47:17]line НДС 12% : 85.02 [07:47:17]line Наличными: 800.00 [07:47:17]line Безнал.: 0.00 [07:47:17]line Место: АЗС № 25 "Партнер Нефть" [07:47:17]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [07:47:17]line СНО: Общий режим [07:47:17]line Чек 34 03.03.2024 07:47 [07:47:17]line Смена: 323 ФФД: 1.0 [07:47:17]line ЗНМ: 0300000019 [07:47:17]line РНМ: 0000000000090573 [07:47:17]line Версия ККМ: 001 [07:47:17]line ФМ: 0000000000874798 [07:47:17]line ФД: 123177 [07:47:17]line ФПД: 187159274204809 [07:47:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T074717&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123177&fm=187159274204809&tin=02508201610067®Number=0000000000090573&sum=80000 [07:47:17]OFD Sender: Processing packet 123177 [packets to send 112, broken 111] [07:47:17]ProducePacketName [07:47:17]name=ofd_packets/00123177 [07:47:17]OFD Sender: To server: pG, [07:47:17]CommunicateWithHost lk.salyk.kg:30040 [07:47:17]ConnectInit lk.salyk.kg [07:47:17]written 0, free lines is 4095 [07:47:17]Connected sock=10 [07:47: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 37 39 38 0F 01 00 00 A6 D0 07 01 C8 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 00 2D 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 C0 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 05 2B E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 29 E1 01 00 35 04 06 00 AA 38 6A 0E 2E 89 EA CF 81 9D 2C 46 F3 F1 [07:47:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 E6 B1 47 00 78 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 37 39 38 10 04 04 00 29 E1 01 00 F4 03 04 00 32 D7 E3 65 B6 04 01 00 00 86 26 4E A6 C3 07 F1 EA [07:47:17]CommunicateWithHost err = 0 [07:47:17]CheckOFDResponse [07:47:17]1017 (14) - 77093643461234 [07:47:17]1041 (16) - 0000000000874798 [07:47:17]1040 (4) - 123177 [07:47:17]1012 (4) - 03.03.2024 01:49 [07:47:17]1206 (1) - 0 [07:47:17]OFD Sender: Remove packet 123177 [07:47:17]ProducePacketName [07:47:17]name=ofd_packets/00123177 [07:47:17]NVStorageDeleteData [07:47:18]Write to MH i2c: 01 00 00 41 12 53 [07:47:18]Write i2c OK [07:47:18]MH_I2C_Read... [07:47:18]Read from MH i2c: 01 [07:47:18]MH_I2C_Read... [07:47:18]Read from MH i2c: 01 07 00 [07:47:18]MH_I2C_Read... [07:47:18]Read from MH i2c: 01 07 00 41 12 00 00 00 00 00 F8 0C 5E [07:47:18]RasterBufferAndPrint [07:47:18]line [07:47:18]line [07:47:18]line [07:47:18]line [07:47:18]line [07:47:18]written 0, free lines is 3329 [07:47:18]MH_Cut [07:47:18]Write to MH i2c: D1 01 00 48 12 01 2C [07:47:18]Write i2c OK [07:47:18]MH_I2C_Read... [07:47:18]Read from MH i2c: D1 [07:47:18]MH_I2C_Read... [07:47:18]Read from MH i2c: D1 01 00 [07:47:18]MH_I2C_Read... [07:47:18]Read from MH i2c: D1 01 00 48 12 00 2B [07:47:18]Write to MH i2c: 01 00 00 49 12 5B [07:47:18]Write i2c OK [07:47:18]MH_I2C_Read... [07:47:18]OFD Sender: No OFD packet to send [07:47:18]*** Cut start [07:47:18]*** Purtial cut [07:47:18]*** Stage 1: CUTSNS_PIN = 1 [07:47:20]Read from MH i2c: 01 [07:47:20]MH_I2C_Read... [07:47:20]*** Stop cut motor [07:47:20]*** Cut end [07:47:20]Read from MH i2c: 01 07 00 [07:47:20]MH_I2C_Read... [07:47:20]Read from MH i2c: 01 07 00 49 12 00 00 00 00 00 FF 0F 70 [07:47:20]process_action close_receipt done [07:47:20]requested_data is exist [07:47:20]produce_requested_data [07:47:20]requested_item fm.sn is exist - process it [07:47:20]wFMCommunicate request_size=4 [07:47:20]MH_SAM_APDU [07:47:20]CAPDU: 80 11 00 00 [07:47:20]Write to MH i2c: E2 08 00 4A 12 80 11 00 00 00 00 00 00 D6 [07:47:20]Write i2c OK [07:47:20]MH_I2C_Read... [07:47:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:47:20]Read from MH i2c: E2 [07:47:20]MH_I2C_Read... [07:47:20]Read from MH i2c: E2 17 00 [07:47:20]MH_I2C_Read... [07:47:20]Read from MH i2c: E2 17 00 4A 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 34 [07:47:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [07:47:20]wFMCommunicate OK [07:47:20]requested_item fd.num is exist - process it [07:47:20]SAM_PROTO_GetFieldsCounters [07:47:20]wFMCommunicate request_size=4 [07:47:20]MH_SAM_APDU [07:47:20]CAPDU: 80 13 00 00 [07:47:20]Write to MH i2c: E2 08 00 4B 12 80 13 00 00 00 00 00 00 D9 [07:47:20]Write i2c OK [07:47:20]MH_I2C_Read... [07:47:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:47:21]Read from MH i2c: E2 [07:47:21]MH_I2C_Read... [07:47:21]Read from MH i2c: E2 62 00 [07:47:21]MH_I2C_Read... [07:47:21]Read from MH i2c: E2 62 00 4B 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 29 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 B9 [07:47: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 29 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:47:21]wFMCommunicate OK [07:47:21]SAM_PROTO_GetFieldsCounters done [07:47:21]requested_item shift.num is exist - process it [07:47:21]requested_item shift.opened is exist - process it [07:47:21]req_shift_opened [07:47:21]FM_GetShiftState [07:47:21]SAM_PROTO_GetShiftState [07:47:21]wFMCommunicate request_size=4 [07:47:21]MH_SAM_APDU [07:47:21]CAPDU: 80 13 01 00 [07:47:21]Write to MH i2c: E2 08 00 4C 12 80 13 01 00 00 00 00 00 DB [07:47:21]Write i2c OK [07:47:21]MH_I2C_Read... [07:47:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:47:21]Read from MH i2c: E2 [07:47:21]MH_I2C_Read... [07:47:21]Read from MH i2c: E2 0E 00 [07:47:21]MH_I2C_Read... [07:47:21]Read from MH i2c: E2 0E 00 4C 12 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 9D [07:47:21]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [07:47:21]wFMCommunicate OK [07:47:21]SAM_PROTO_GetShiftState done [07:47:21]FM_GetShiftState done [07:47:21]req_shift_opened done [07:47:21]requested_item shift.open_date is exist - process it [07:47:21]req_shift_open_date [07:47:21]req_shift_open_date done [07:47:21]produce_requested_data done [07:47:21]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123177,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [07:47:21]process_action_free close_receipt [07:47:21]json_value_free [07:47:21]json_value_free done [07:47:21]process_json_proto returns [07:47:21]Send response to host [07:47:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123177,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [07:47:21]free response buf [07:47:21]execute_script done [07:47:21]execute_script returns [07:47:21]free content buf [07:47:21]Sock 9.Close socket [07:47:21]Sock 9.Thread stoped [07:47:23]OFD Sender: No OFD packet to send [07:47:28]OFD Sender: No OFD packet to send [07:47:33]OFD Sender: No OFD packet to send [07:47:38]OFD Sender: No OFD packet to send [07:47:43]OFD Sender: No OFD packet to send [07:47:48]OFD Sender: No OFD packet to send [07:47:53]OFD Sender: No OFD packet to send [07:47:58]OFD Sender: No OFD packet to send [07:48:03]OFD Sender: No OFD packet to send [07:48:08]OFD Sender: No OFD packet to send [07:48:13]OFD Sender: No OFD packet to send [07:48:18]OFD Sender: No OFD packet to send [07:48:23]OFD Sender: No OFD packet to send [07:48:28]OFD Sender: No OFD packet to send [07:48:33]OFD Sender: No OFD packet to send [07:48:38]OFD Sender: No OFD packet to send [07:48:43]OFD Sender: No OFD packet to send [07:48:48]OFD Sender: No OFD packet to send [07:48:53]OFD Sender: No OFD packet to send [07:48:57]accept exits with 7 [07:48:57]New connection [07:48:57]New thread 3067395428 created [07:48:57]Thread 3067252068 joined [07:48:57]Waiting for new connection... [07:48:57] Sock 7.Parse request [07:48:57]Sock 7.Check first char [07:48:57]Sock 7.First char is OK [07:48:57]request: POST /json_proto HTTP/1.0 [07:48:57]Method: POST [07:48:57]URL: /json_proto [07:48:57]Method is POST - this is cgi request [07:48:57]url: /json_proto [07:48:57]query_string will be loaded in cgi processing [07:48:57]execute_cgi json_proto POST (null) [07:48:57]execute_cgi path=json_proto method=POST [07:48:57]POST find Content-Length [07:48:57]Host: 172.17.48.197:8080 [07:48:57]Content-Length: 678 [07:48:57]Content-Type: application/json [07:48:57] [07:48:57]POST finish read [07:48:57]Found Content-Length = 678 [07:48:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106097", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 4.850, "sum" : 300.22, "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" ] } } [07:48:57]execute_script... [07:48:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106097", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 4.850, "sum" : 300.22, "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" ] } } [07:48:57]POST & json_proto [07:48:57]process_json_proto [07:48:57]json parsed OK: [07:48:57]protocol is kg_v1.0 [07:48:57]action value=close_receipt [07:48:57]process_action close_receipt [07:48:57]cmd_close_receipt [07:48:57]MH_GetDate [07:48:57]Write to MH i2c: F0 00 00 4D 12 4E [07:48:57]Write i2c OK [07:48:57]MH_I2C_Read... [07:48:57]Read from MH i2c: F0 [07:48:57]MH_I2C_Read... [07:48:57]Read from MH i2c: F0 09 00 [07:48:57]MH_I2C_Read... [07:48:57]Read from MH i2c: F0 09 00 4D 12 00 6B 2B E4 65 6C AF E3 65 99 [07:48:57]GetLastDocTimeStamp 1709452037 [07:48:57]current date 1709452139 [07:48:57]FM_GetShiftState [07:48:57]SAM_PROTO_GetShiftState [07:48:57]wFMCommunicate request_size=4 [07:48:57]MH_SAM_APDU [07:48:57]CAPDU: 80 13 01 00 [07:48:57]Write to MH i2c: E2 08 00 4E 12 80 13 01 00 00 00 00 00 DD [07:48:57]Write i2c OK [07:48:57]MH_I2C_Read... [07:48:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:48:57]Read from MH i2c: E2 [07:48:57]MH_I2C_Read... [07:48:57]Read from MH i2c: E2 0E 00 [07:48:57]MH_I2C_Read... [07:48:57]Read from MH i2c: E2 0E 00 4E 12 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 9F [07:48:57]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [07:48:57]wFMCommunicate OK [07:48:57]SAM_PROTO_GetShiftState done [07:48:57]FM_GetShiftState done [07:48:57]opened in 1709425579 [07:48:57]opened+sec_in_day 1709511979 [07:48:57]quantity*price = 30021 [07:48:57]sum+1 = 30023 [07:48:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.88 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 35 03.03.2024 07:48 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123178 ФПД: 7603243425031 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T074859&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123178&fm=7603243425031&tin=02508201610067®Number=0000000000090573&sum=30000 [07:48:58]StoreToDocumentArchive [07:48:58]shift 323 fd 123178 [07:48:58]save to /storage/0323/doc_00123178 [07:48:58]save last doc name /storage/0323/doc_00123178 to /storage/kkm_last_doc_name [07:48:58]save OK [07:48:58]Clear old archive folders... [07:48:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:48:58]tlvbuf is 00E1F900 [07:48:58]SAM_PROTO_ClearQueue [07:48:58]wFMCommunicate request_size=4 [07:48:58]MH_SAM_APDU [07:48:58]CAPDU: 80 09 00 00 [07:48:58]Write to MH i2c: E2 08 00 5B 12 80 09 00 00 00 00 00 00 DF [07:48:58]Write i2c OK [07:48:58]MH_I2C_Read... [07:48:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:48:58]Read from MH i2c: E2 [07:48:58]MH_I2C_Read... [07:48:58]Read from MH i2c: E2 03 00 [07:48:58]MH_I2C_Read... [07:48:58]Read from MH i2c: E2 03 00 5B 12 00 90 00 E1 [07:48:58]RAPDU: 90 00 [07:48:58]wFMCommunicate OK [07:48:58]SAM_PROTO_ClearQueue done [07:48:58]KKMCreateOFDPacket [07:48:58]OFDProtocolAddRootSTLVToBuf [07:48:58]FM_MakeSignedData [07:48:58]FM_MakeSignedData [07:48:58]SAM_PROTO_SignData [07:48:58]wFMCommunicate request_size=4 [07:48:58]MH_SAM_APDU [07:48:58]CAPDU: 80 0D 01 02 [07:48:58]Write to MH i2c: E2 08 00 5C 12 80 0D 01 02 00 00 00 00 E7 [07:48:58]Write i2c OK [07:48:58]MH_I2C_Read... [07:48:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:48:58]Read from MH i2c: E2 [07:48:58]MH_I2C_Read... [07:48:58]Read from MH i2c: E2 03 00 [07:48:58]MH_I2C_Read... [07:48:58]Read from MH i2c: E2 03 00 5C 12 00 90 00 E2 [07:48:58]RAPDU: 90 00 [07:48:58]wFMCommunicate OK [07:48:58]wFMCommunicate request_size=255 [07:48:58]MH_SAM_APDU [07:48:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 12 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 46 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 74 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 23 00 00 00 F4 03 04 00 6B 2B E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 2A E1 01 00 35 04 06 00 06 [07:48:58]Write to MH i2c: E2 02 01 5D 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 12 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 46 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 74 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 23 00 00 00 F4 03 04 00 6B 2B E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 2A E1 01 00 35 04 06 00 06 00 00 2D [07:48:58]Write i2c OK [07:48:58]MH_I2C_Read... [07:48:58]OFD Sender: No OFD packet to send [07:48:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:48:58]Read from MH i2c: E2 [07:48:58]MH_I2C_Read... [07:48:58]Read from MH i2c: E2 03 00 [07:48:58]MH_I2C_Read... [07:48:58]Read from MH i2c: E2 03 00 5D 12 00 90 00 E3 [07:48:58]RAPDU: 90 00 [07:48:58]wFMCommunicate OK [07:48:58]wFMCommunicate request_size=10 [07:48:58]MH_SAM_APDU [07:48:58]CAPDU: 80 0D 02 02 05 EA 44 9F 9D 07 [07:48:58]Write to MH i2c: E2 0D 00 5E 12 80 0D 02 02 05 00 EA 44 9F 9D 07 00 00 65 [07:48:58]Write i2c OK [07:48:58]MH_I2C_Read... [07:48:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:48:58]Read from MH i2c: E2 [07:48:58]MH_I2C_Read... [07:48:58]Read from MH i2c: E2 03 00 [07:48:58]MH_I2C_Read... [07:48:58]Read from MH i2c: E2 03 00 5E 12 00 90 00 E4 [07:48:58]RAPDU: 90 00 [07:48:58]wFMCommunicate OK [07:48:58]wFMCommunicate request_size=4 [07:48:58]MH_SAM_APDU [07:48:58]CAPDU: 80 0D 03 02 [07:48:58]Write to MH i2c: E2 08 00 5F 12 80 0D 03 02 00 00 00 00 EC [07:48:58]Write i2c OK [07:48:58]MH_I2C_Read... [07:48:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:48:58]Read from MH i2c: E2 [07:48:58]MH_I2C_Read... [07:48:58]Read from MH i2c: E2 0B 00 [07:48:58]MH_I2C_Read... [07:48:58]Read from MH i2c: E2 0B 00 5F 12 00 41 00 9E 4E 70 F9 C6 FD 90 00 46 [07:48:58]RAPDU: 41 00 9E 4E 70 F9 C6 FD 90 00 [07:48:58]wFMCommunicate OK [07:48:58]SAM_PROTO_SignData done [07:48:58]FM_MakeSignedData done [07:48:58]CreateOFDProtocolMessage [07:48:58]wFMCommunicate request_size=4 [07:48:58]MH_SAM_APDU [07:48:58]CAPDU: 80 11 00 00 [07:48:58]Write to MH i2c: E2 08 00 60 12 80 11 00 00 00 00 00 00 EC [07:48:58]Write i2c OK [07:48:58]MH_I2C_Read... [07:48:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:48:58]Read from MH i2c: E2 [07:48:58]MH_I2C_Read... [07:48:58]Read from MH i2c: E2 17 00 [07:48:58]MH_I2C_Read... [07:48:58]Read from MH i2c: E2 17 00 60 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 4A [07:48:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [07:48:58]wFMCommunicate OK [07:48:58]CreateOFDProtocolMessage done [07:48:58]OFDSenderStorePacket 123178 [07:48:58]StoreOFDPacket docnum=123178 [07:48:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 49 0C 07 01 D3 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 12 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 46 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 74 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 23 00 00 00 F4 03 04 00 6B 2B E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 2A E1 01 00 35 04 06 00 06 EA 44 9F 9D 07 41 00 9E 4E 70 F9 C6 FD [07:48:58]CheckFolder [07:48:58]dirname=/storage/ofd_packets [07:48:58]CheckFolder done [07:48:58]ProducePacketName [07:48:58]name=ofd_packets/00123178 [07:48:58]NVStorageSaveData ofd_packets/00123178 [07:48:58]File name is /storage/ofd_packets/00123178 [07:48:58]Write 301 bytes [07:48:58]NVStorageSaveData done [07:48:58]OFDSenderStorePacket done [07:48:58]KKMCreateOFDPacket done [07:48:58]NVStorageSaveData kkm_last_timestamp [07:48:58]File name is /storage/kkm_last_timestamp [07:48:58]Write 4 bytes [07:48:58]NVStorageSaveData done [07:48:58]ExternCall_PrintAddStr [07:48:58]wPrintStart [07:48:58]Write to MH i2c: 01 00 00 61 12 73 [07:48:58]Write i2c OK [07:48:58]MH_I2C_Read... [07:48:58]Read from MH i2c: 01 [07:48:58]MH_I2C_Read... [07:48:58]Read from MH i2c: 01 07 00 [07:48:58]MH_I2C_Read... [07:48:58]Read from MH i2c: 01 07 00 61 12 00 00 00 00 00 FF 0F 88 [07:48:58]RasterBufferAndPrint [07:48:58]line Счет N : (1)1106097 [07:48:58]line ИНН: 02508201610067 [07:48:58]line Контрольно-Кассовый Чек [07:48:58]line ПРОДАЖА [07:48:58]line ТРК (МРК, ГНК) : 52 [07:48:58]line Товар: 2710124130 [07:48:58]line Аи-92-К-5 [07:48:58]line 4.850 * 61.90 [07:48:58]line = 300.22 [07:48:58]line НДС 12% НСП 1% [07:48:58]line > о реализуемом товаре [07:48:58]line ОКРУГЛЕНИЕ: -0.22 [07:48:58]line ИТОГО: 300.00 [07:48:58]line Внесено: 300.00 [07:48:58]line СДАЧА: 0.00 [07:48:58]line НСП 1% : 2.66 [07:48:58]line НДС 12% : 31.88 [07:48:58]line Наличными: 300.00 [07:48:58]line Безнал.: 0.00 [07:48:58]line Место: АЗС № 25 "Партнер Нефть" [07:48:58]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [07:48:58]line СНО: Общий режим [07:48:58]line Чек 35 03.03.2024 07:48 [07:48:58]line Смена: 323 ФФД: 1.0 [07:48:58]line ЗНМ: 0300000019 [07:48:58]line РНМ: 0000000000090573 [07:48:58]line Версия ККМ: 001 [07:48:58]line ФМ: 0000000000874798 [07:48:58]line ФД: 123178 [07:48:58]line ФПД: 7603243425031 [07:48:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T074859&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123178&fm=7603243425031&tin=02508201610067®Number=0000000000090573&sum=30000 [07:48:59]OFD Sender: Processing packet 123178 [packets to send 112, broken 111] [07:48:59]ProducePacketName [07:48:59]name=ofd_packets/00123178 [07:48:59]OFD Sender: To server: pG, [07:48:59]CommunicateWithHost lk.salyk.kg:30040 [07:48:59]ConnectInit lk.salyk.kg [07:48:59]written 0, free lines is 4095 [07:48:59]Connected sock=10 [07:48: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 37 39 38 0F 01 00 00 49 0C 07 01 D3 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 12 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 46 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 74 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 23 00 00 00 F4 03 04 00 6B 2B E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 2A E1 01 00 35 04 06 00 06 EA 44 9F 9D 07 41 00 9E 4E 70 F9 C6 FD [07:48:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 97 12 47 00 CD 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 37 39 38 10 04 04 00 2A E1 01 00 F4 03 04 00 97 D7 E3 65 B6 04 01 00 00 C7 B7 A5 0A 6A FD 4A 94 [07:48:59]CommunicateWithHost err = 0 [07:48:59]CheckOFDResponse [07:48:59]1017 (14) - 77093643461234 [07:48:59]1041 (16) - 0000000000874798 [07:48:59]1040 (4) - 123178 [07:48:59]1012 (4) - 03.03.2024 01:51 [07:48:59]1206 (1) - 0 [07:48:59]OFD Sender: Remove packet 123178 [07:48:59]ProducePacketName [07:48:59]name=ofd_packets/00123178 [07:48:59]NVStorageDeleteData [07:48:59]Write to MH i2c: 01 00 00 8C 12 9E [07:48:59]Write i2c OK [07:48:59]MH_I2C_Read... [07:48:59]Read from MH i2c: 01 [07:48:59]MH_I2C_Read... [07:48:59]Read from MH i2c: 01 07 00 [07:48:59]MH_I2C_Read... [07:48:59]Read from MH i2c: 01 07 00 8C 12 00 00 00 00 00 EF 0C A0 [07:48:59]RasterBufferAndPrint [07:48:59]line [07:48:59]line [07:48:59]line [07:48:59]line [07:48:59]line [07:48:59]written 0, free lines is 3317 [07:48:59]MH_Cut [07:48:59]Write to MH i2c: D1 01 00 93 12 01 77 [07:48:59]Write i2c OK [07:48:59]MH_I2C_Read... [07:48:59]Read from MH i2c: D1 [07:48:59]MH_I2C_Read... [07:48:59]Read from MH i2c: D1 01 00 [07:48:59]MH_I2C_Read... [07:48:59]Read from MH i2c: D1 01 00 93 12 00 76 [07:48:59]Write to MH i2c: 01 00 00 94 12 A6 [07:48:59]Write i2c OK [07:48:59]MH_I2C_Read... [07:49:00]OFD Sender: No OFD packet to send [07:49:00]*** Cut start [07:49:00]*** Purtial cut [07:49:00]*** Stage 1: CUTSNS_PIN = 1 [07:49:02]Read from MH i2c: 01 [07:49:02]MH_I2C_Read... [07:49:02]*** Stop cut motor [07:49:02]*** Cut end [07:49:02]Read from MH i2c: 01 07 00 [07:49:02]MH_I2C_Read... [07:49:02]Read from MH i2c: 01 07 00 94 12 00 00 00 00 00 FF 0F BB [07:49:02]process_action close_receipt done [07:49:02]requested_data is exist [07:49:02]produce_requested_data [07:49:02]requested_item fm.sn is exist - process it [07:49:02]wFMCommunicate request_size=4 [07:49:02]MH_SAM_APDU [07:49:02]CAPDU: 80 11 00 00 [07:49:02]Write to MH i2c: E2 08 00 95 12 80 11 00 00 00 00 00 00 21 [07:49:02]Write i2c OK [07:49:02]MH_I2C_Read... [07:49:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:49:02]Read from MH i2c: E2 [07:49:02]MH_I2C_Read... [07:49:02]Read from MH i2c: E2 17 00 [07:49:02]MH_I2C_Read... [07:49:02]Read from MH i2c: E2 17 00 95 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 7F [07:49:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [07:49:02]wFMCommunicate OK [07:49:02]requested_item fd.num is exist - process it [07:49:02]SAM_PROTO_GetFieldsCounters [07:49:02]wFMCommunicate request_size=4 [07:49:02]MH_SAM_APDU [07:49:02]CAPDU: 80 13 00 00 [07:49:02]Write to MH i2c: E2 08 00 96 12 80 13 00 00 00 00 00 00 24 [07:49:02]Write i2c OK [07:49:02]MH_I2C_Read... [07:49:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:49:02]Read from MH i2c: E2 [07:49:02]MH_I2C_Read... [07:49:02]Read from MH i2c: E2 62 00 [07:49:02]MH_I2C_Read... [07:49:02]Read from MH i2c: E2 62 00 96 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 2A E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 08 [07:49: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 2A E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:49:02]wFMCommunicate OK [07:49:02]SAM_PROTO_GetFieldsCounters done [07:49:02]requested_item shift.num is exist - process it [07:49:02]requested_item shift.opened is exist - process it [07:49:02]req_shift_opened [07:49:02]FM_GetShiftState [07:49:02]SAM_PROTO_GetShiftState [07:49:02]wFMCommunicate request_size=4 [07:49:02]MH_SAM_APDU [07:49:02]CAPDU: 80 13 01 00 [07:49:02]Write to MH i2c: E2 08 00 97 12 80 13 01 00 00 00 00 00 26 [07:49:02]Write i2c OK [07:49:02]MH_I2C_Read... [07:49:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:49:02]Read from MH i2c: E2 [07:49:02]MH_I2C_Read... [07:49:02]Read from MH i2c: E2 0E 00 [07:49:02]MH_I2C_Read... [07:49:02]Read from MH i2c: E2 0E 00 97 12 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 E8 [07:49:02]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [07:49:02]wFMCommunicate OK [07:49:02]SAM_PROTO_GetShiftState done [07:49:02]FM_GetShiftState done [07:49:02]req_shift_opened done [07:49:02]requested_item shift.open_date is exist - process it [07:49:02]req_shift_open_date [07:49:02]req_shift_open_date done [07:49:02]produce_requested_data done [07:49:02]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123178,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [07:49:02]process_action_free close_receipt [07:49:02]json_value_free [07:49:02]json_value_free done [07:49:02]process_json_proto returns [07:49:02]Send response to host [07:49:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123178,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [07:49:02]free response buf [07:49:02]execute_script done [07:49:02]execute_script returns [07:49:02]free content buf [07:49:02]Sock 7.Close socket [07:49:02]Sock 7.Thread stoped [07:49:05]OFD Sender: No OFD packet to send [07:49:10]OFD Sender: No OFD packet to send [07:49:15]OFD Sender: No OFD packet to send [07:49:20]OFD Sender: No OFD packet to send [07:49:25]OFD Sender: No OFD packet to send [07:49:30]OFD Sender: No OFD packet to send [07:49:35]OFD Sender: No OFD packet to send [07:49:40]OFD Sender: No OFD packet to send [07:49:45]OFD Sender: No OFD packet to send [07:49:50]OFD Sender: No OFD packet to send [07:49:55]OFD Sender: No OFD packet to send [07:50:00]OFD Sender: No OFD packet to send [07:50:05]OFD Sender: No OFD packet to send [07:50:10]OFD Sender: No OFD packet to send [07:50:15]OFD Sender: No OFD packet to send [07:50:20]OFD Sender: No OFD packet to send [07:50:25]OFD Sender: No OFD packet to send [07:50:30]OFD Sender: No OFD packet to send [07:50:35]OFD Sender: No OFD packet to send [07:50:40]OFD Sender: No OFD packet to send [07:50:45]OFD Sender: No OFD packet to send [07:50:50]OFD Sender: No OFD packet to send [07:50:55]OFD Sender: No OFD packet to send [07:51:00]OFD Sender: No OFD packet to send [07:51:05]OFD Sender: No OFD packet to send [07:51:10]OFD Sender: No OFD packet to send [07:51:15]OFD Sender: No OFD packet to send [07:51:20]OFD Sender: No OFD packet to send [07:51:25]OFD Sender: No OFD packet to send [07:51:30]OFD Sender: No OFD packet to send [07:51:35]OFD Sender: No OFD packet to send [07:51:40]OFD Sender: No OFD packet to send [07:51:45]OFD Sender: No OFD packet to send [07:51:50]OFD Sender: No OFD packet to send [07:51:55]OFD Sender: No OFD packet to send [07:52:00]OFD Sender: No OFD packet to send [07:52:05]OFD Sender: No OFD packet to send [07:52:10]OFD Sender: No OFD packet to send [07:52:15]OFD Sender: No OFD packet to send [07:52:20]OFD Sender: No OFD packet to send [07:52:25]OFD Sender: No OFD packet to send [07:52:30]OFD Sender: No OFD packet to send [07:52:33]int [07:52:33]Write to MH i2c: 01 00 00 98 12 AA [07:52:33]*** FLAG_PRN_KEY set [07:52:33]Write i2c OK [07:52:33]MH_I2C_Read... [07:52:33]Read from MH i2c: 01 [07:52:33]MH_I2C_Read... [07:52:33]Read from MH i2c: 01 07 00 [07:52:33]MH_I2C_Read... [07:52:33]Read from MH i2c: 01 07 00 98 12 00 08 00 00 00 FF 0F C7 [07:52:33]state=0 [07:52:33]Key pressed [07:52:33]Feed [07:52:33]Write to MH i2c: D8 00 00 99 12 82 [07:52:33]Write i2c OK [07:52:33]MH_I2C_Read... [07:52:33]Read from MH i2c: D8 [07:52:33]MH_I2C_Read... [07:52:33]Read from MH i2c: D8 01 00 [07:52:33]MH_I2C_Read... [07:52:33]Read from MH i2c: D8 01 00 99 12 00 83 [07:52:33]int [07:52:33]Write to MH i2c: 01 00 00 9A 12 AC [07:52:33]Write i2c OK [07:52:33]MH_I2C_Read... [07:52:33]Read from MH i2c: 01 [07:52:33]MH_I2C_Read... [07:52:33]Read from MH i2c: 01 07 00 [07:52:33]MH_I2C_Read... [07:52:33]Read from MH i2c: 01 07 00 9A 12 00 48 00 00 00 3C 00 37 [07:52:33]state=2 [07:52:33]Key pressed [07:52:33]int [07:52:33]Write to MH i2c: 01 00 00 9B 12 AD [07:52:33]*** FLAG_PRN_KEY reset [07:52:33]Write i2c OK [07:52:33]MH_I2C_Read... [07:52:33]Read from MH i2c: 01 [07:52:33]MH_I2C_Read... [07:52:33]Read from MH i2c: 01 07 00 [07:52:33]MH_I2C_Read... [07:52:33]Read from MH i2c: 01 07 00 9B 12 00 00 00 00 00 FD 0F C0 [07:52:33]state=2 [07:52:33]Stop feed [07:52:34]int [07:52:34]Write to MH i2c: 01 00 00 9C 12 AE [07:52:34]*** FLAG_PRN_KEY set [07:52:34]Write i2c OK [07:52:34]MH_I2C_Read... [07:52:34]Read from MH i2c: 01 [07:52:34]MH_I2C_Read... [07:52:34]Read from MH i2c: 01 07 00 [07:52:34]MH_I2C_Read... [07:52:34]Read from MH i2c: 01 07 00 9C 12 00 08 00 00 00 FF 0F CB [07:52:34]state=0 [07:52:34]Key pressed [07:52:34]Feed [07:52:34]Write to MH i2c: D8 00 00 9D 12 86 [07:52:34]Write i2c OK [07:52:34]MH_I2C_Read... [07:52:34]Read from MH i2c: D8 [07:52:34]MH_I2C_Read... [07:52:34]Read from MH i2c: D8 01 00 [07:52:34]MH_I2C_Read... [07:52:34]Read from MH i2c: D8 01 00 9D 12 00 87 [07:52:34]int [07:52:34]Write to MH i2c: 01 00 00 9E 12 B0 [07:52:34]Write i2c OK [07:52:34]MH_I2C_Read... [07:52:34]Read from MH i2c: 01 [07:52:34]MH_I2C_Read... [07:52:34]Read from MH i2c: 01 07 00 [07:52:34]MH_I2C_Read... [07:52:34]Read from MH i2c: 01 07 00 9E 12 00 48 00 00 00 3C 00 3B [07:52:34]state=2 [07:52:34]Key pressed [07:52:34]int [07:52:34]Write to MH i2c: 01 00 00 9F 12 B1 [07:52:34]*** FLAG_PRN_KEY reset [07:52:34]Write i2c OK [07:52:34]MH_I2C_Read... [07:52:34]Read from MH i2c: 01 [07:52:34]MH_I2C_Read... [07:52:34]Read from MH i2c: 01 07 00 [07:52:34]MH_I2C_Read... [07:52:34]Read from MH i2c: 01 07 00 9F 12 00 00 00 00 00 F6 0F BD [07:52:34]state=2 [07:52:34]Stop feed [07:52:35]OFD Sender: No OFD packet to send [07:52:40]OFD Sender: No OFD packet to send [07:52:45]OFD Sender: No OFD packet to send [07:52:50]OFD Sender: No OFD packet to send [07:52:55]OFD Sender: No OFD packet to send [07:53:00]OFD Sender: No OFD packet to send [07:53:05]OFD Sender: No OFD packet to send [07:53:10]OFD Sender: No OFD packet to send [07:53:15]OFD Sender: No OFD packet to send [07:53:20]OFD Sender: No OFD packet to send [07:53:25]OFD Sender: No OFD packet to send [07:53:30]OFD Sender: No OFD packet to send [07:53:35]OFD Sender: No OFD packet to send [07:53:40]OFD Sender: No OFD packet to send [07:53:45]OFD Sender: No OFD packet to send [07:53:50]OFD Sender: No OFD packet to send [07:53:55]OFD Sender: No OFD packet to send [07:54:00]OFD Sender: No OFD packet to send [07:54:05]OFD Sender: No OFD packet to send [07:54:10]OFD Sender: No OFD packet to send [07:54:15]OFD Sender: No OFD packet to send [07:54:20]OFD Sender: No OFD packet to send [07:54:25]OFD Sender: No OFD packet to send [07:54:30]OFD Sender: No OFD packet to send [07:54:35]OFD Sender: No OFD packet to send [07:54:40]OFD Sender: No OFD packet to send [07:54:45]OFD Sender: No OFD packet to send [07:54:50]OFD Sender: No OFD packet to send [07:54:55]OFD Sender: No OFD packet to send [07:55:00]OFD Sender: No OFD packet to send [07:55:05]OFD Sender: No OFD packet to send [07:55:10]OFD Sender: No OFD packet to send [07:55:15]OFD Sender: No OFD packet to send [07:55:20]OFD Sender: No OFD packet to send [07:55:25]OFD Sender: No OFD packet to send [07:55:30]OFD Sender: No OFD packet to send [07:55:35]OFD Sender: No OFD packet to send [07:55:40]OFD Sender: No OFD packet to send [07:55:45]OFD Sender: No OFD packet to send [07:55:50]OFD Sender: No OFD packet to send [07:55:55]OFD Sender: No OFD packet to send [07:56:00]OFD Sender: No OFD packet to send [07:56:05]OFD Sender: No OFD packet to send [07:56:10]OFD Sender: No OFD packet to send [07:56:15]OFD Sender: No OFD packet to send [07:56:20]OFD Sender: No OFD packet to send [07:56:25]OFD Sender: No OFD packet to send [07:56:30]OFD Sender: No OFD packet to send [07:56:35]OFD Sender: No OFD packet to send [07:56:40]OFD Sender: No OFD packet to send [07:56:45]OFD Sender: No OFD packet to send [07:56:50]OFD Sender: No OFD packet to send [07:56:55]OFD Sender: No OFD packet to send [07:57:00]OFD Sender: No OFD packet to send [07:57:05]OFD Sender: No OFD packet to send [07:57:10]OFD Sender: No OFD packet to send [07:57:15]OFD Sender: No OFD packet to send [07:57:20]OFD Sender: No OFD packet to send [07:57:25]OFD Sender: No OFD packet to send [07:57:30]OFD Sender: No OFD packet to send [07:57:35]OFD Sender: No OFD packet to send [07:57:40]OFD Sender: No OFD packet to send [07:57:45]OFD Sender: No OFD packet to send [07:57:50]OFD Sender: No OFD packet to send [07:57:55]OFD Sender: No OFD packet to send [07:58:00]OFD Sender: No OFD packet to send [07:58:05]OFD Sender: No OFD packet to send [07:58:10]OFD Sender: No OFD packet to send [07:58:15]OFD Sender: No OFD packet to send [07:58:20]OFD Sender: No OFD packet to send [07:58:25]OFD Sender: No OFD packet to send [07:58:30]OFD Sender: No OFD packet to send [07:58:35]OFD Sender: No OFD packet to send [07:58:40]OFD Sender: No OFD packet to send [07:58:45]OFD Sender: No OFD packet to send [07:58:50]OFD Sender: No OFD packet to send [07:58:55]OFD Sender: No OFD packet to send [07:59:00]OFD Sender: No OFD packet to send [07:59:05]OFD Sender: No OFD packet to send [07:59:10]OFD Sender: No OFD packet to send [07:59:15]OFD Sender: No OFD packet to send [07:59:20]OFD Sender: No OFD packet to send [07:59:25]OFD Sender: No OFD packet to send [07:59:30]OFD Sender: No OFD packet to send [07:59:35]OFD Sender: No OFD packet to send [07:59:40]OFD Sender: No OFD packet to send [07:59:45]OFD Sender: No OFD packet to send [07:59:50]OFD Sender: No OFD packet to send [07:59:55]OFD Sender: No OFD packet to send [08:00:00]OFD Sender: No OFD packet to send [08:00:05]OFD Sender: No OFD packet to send [08:00:10]OFD Sender: No OFD packet to send [08:00:15]OFD Sender: No OFD packet to send [08:00:20]OFD Sender: No OFD packet to send [08:00:25]OFD Sender: No OFD packet to send [08:00:30]OFD Sender: No OFD packet to send [08:00:35]OFD Sender: No OFD packet to send [08:00:40]OFD Sender: No OFD packet to send [08:00:45]OFD Sender: No OFD packet to send [08:00:50]OFD Sender: No OFD packet to send [08:00:55]OFD Sender: No OFD packet to send [08:01:00]OFD Sender: No OFD packet to send [08:01:05]OFD Sender: No OFD packet to send [08:01:10]OFD Sender: No OFD packet to send [08:01:15]OFD Sender: No OFD packet to send [08:01:20]OFD Sender: No OFD packet to send [08:01:25]OFD Sender: No OFD packet to send [08:01:30]OFD Sender: No OFD packet to send [08:01:35]OFD Sender: No OFD packet to send [08:01:40]OFD Sender: No OFD packet to send [08:01:45]OFD Sender: No OFD packet to send [08:01:50]OFD Sender: No OFD packet to send [08:01:55]OFD Sender: No OFD packet to send [08:02:00]OFD Sender: No OFD packet to send [08:02:05]OFD Sender: No OFD packet to send [08:02:10]OFD Sender: No OFD packet to send [08:02:15]OFD Sender: No OFD packet to send [08:02:20]OFD Sender: No OFD packet to send [08:02:25]OFD Sender: No OFD packet to send [08:02:31]OFD Sender: No OFD packet to send [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:44]accept exits with 9 [08:05:44]New connection [08:05:44]New thread 3067252068 created [08:05:44]Thread 3067395428 joined [08:05:44]Waiting for new connection... [08:05:44] Sock 9.Parse request [08:05:44]Sock 9.Check first char [08:05:44]Sock 9.First char is OK [08:05:44]request: POST /json_proto HTTP/1.0 [08:05:44]Method: POST [08:05:44]URL: /json_proto [08:05:44]Method is POST - this is cgi request [08:05:44]url: /json_proto [08:05:44]query_string will be loaded in cgi processing [08:05:44]execute_cgi json_proto POST (null) [08:05:44]execute_cgi path=json_proto method=POST [08:05:44]POST find Content-Length [08:05:44]Host: 172.17.48.197:8080 [08:05:44]Content-Length: 678 [08:05:44]Content-Type: application/json [08:05:44] [08:05:44]POST finish read [08:05:44]Found Content-Length = 678 [08:05:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106098", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.730, "sum" : 540.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 540.00, "total" : 540.00, "payments": [ { "type": 0, "sum" : 540.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:05:44]execute_script... [08:05: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)1106098", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.730, "sum" : 540.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 540.00, "total" : 540.00, "payments": [ { "type": 0, "sum" : 540.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:05:44]POST & json_proto [08:05:44]process_json_proto [08:05:44]json parsed OK: [08:05:44]protocol is kg_v1.0 [08:05:44]action value=close_receipt [08:05:44]process_action close_receipt [08:05:44]cmd_close_receipt [08:05:44]MH_GetDate [08:05:44]Write to MH i2c: F0 00 00 A0 12 A1 [08:05:44]Write i2c OK [08:05:44]MH_I2C_Read... [08:05:44]Read from MH i2c: F0 [08:05:44]MH_I2C_Read... [08:05:44]Read from MH i2c: F0 09 00 [08:05:44]MH_I2C_Read... [08:05:44]Read from MH i2c: F0 09 00 A0 12 00 5A 2F E4 65 6C AF E3 65 DF [08:05:44]GetLastDocTimeStamp 1709452139 [08:05:44]current date 1709453146 [08:05:44]FM_GetShiftState [08:05:44]SAM_PROTO_GetShiftState [08:05:44]wFMCommunicate request_size=4 [08:05:44]MH_SAM_APDU [08:05:44]CAPDU: 80 13 01 00 [08:05:44]Write to MH i2c: E2 08 00 A1 12 80 13 01 00 00 00 00 00 30 [08:05:44]Write i2c OK [08:05:44]MH_I2C_Read... [08:05:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:05:44]Read from MH i2c: E2 [08:05:44]MH_I2C_Read... [08:05:44]Read from MH i2c: E2 0E 00 [08:05:44]MH_I2C_Read... [08:05:44]Read from MH i2c: E2 0E 00 A1 12 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 F2 [08:05:44]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [08:05:44]wFMCommunicate OK [08:05:44]SAM_PROTO_GetShiftState done [08:05:44]FM_GetShiftState done [08:05:44]opened in 1709425579 [08:05:44]opened+sec_in_day 1709511979 [08:05:44]quantity*price = 54038 [08:05:44]sum+1 = 54040 [08:05:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 540.00 Внесено: 540.00 СДАЧА: 0.00 НСП 1% : 4.78 НДС 12% : 57.39 Наличными: 540.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 36 03.03.2024 08:05 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123179 ФПД: 94476777633523 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T080546&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123179&fm=94476777633523&tin=02508201610067®Number=0000000000090573&sum=54000 [08:05:45]StoreToDocumentArchive [08:05:45]shift 323 fd 123179 [08:05:45]save to /storage/0323/doc_00123179 [08:05:45]save last doc name /storage/0323/doc_00123179 to /storage/kkm_last_doc_name [08:05:45]save OK [08:05:45]Clear old archive folders... [08:05:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:05:45]tlvbuf is 00DEF600 [08:05:45]SAM_PROTO_ClearQueue [08:05:45]wFMCommunicate request_size=4 [08:05:45]MH_SAM_APDU [08:05:45]CAPDU: 80 09 00 00 [08:05:45]Write to MH i2c: E2 08 00 AE 12 80 09 00 00 00 00 00 00 32 [08:05:45]Write i2c OK [08:05:45]MH_I2C_Read... [08:05:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:05:45]Read from MH i2c: E2 [08:05:45]MH_I2C_Read... [08:05:45]Read from MH i2c: E2 03 00 [08:05:45]MH_I2C_Read... [08:05:45]Read from MH i2c: E2 03 00 AE 12 00 90 00 34 [08:05:45]RAPDU: 90 00 [08:05:45]wFMCommunicate OK [08:05:45]SAM_PROTO_ClearQueue done [08:05:45]KKMCreateOFDPacket [08:05:45]OFDProtocolAddRootSTLVToBuf [08:05:45]FM_MakeSignedData [08:05:45]FM_MakeSignedData [08:05:45]SAM_PROTO_SignData [08:05:45]wFMCommunicate request_size=4 [08:05:45]MH_SAM_APDU [08:05:45]CAPDU: 80 0D 01 02 [08:05:45]Write to MH i2c: E2 08 00 AF 12 80 0D 01 02 00 00 00 00 3A [08:05:45]Write i2c OK [08:05:45]MH_I2C_Read... [08:05:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:05:45]Read from MH i2c: E2 [08:05:45]MH_I2C_Read... [08:05:45]Read from MH i2c: E2 03 00 [08:05:45]MH_I2C_Read... [08:05:45]Read from MH i2c: E2 03 00 AF 12 00 90 00 35 [08:05:45]RAPDU: 90 00 [08:05:45]wFMCommunicate OK [08:05:45]wFMCommunicate request_size=255 [08:05:45]MH_SAM_APDU [08:05: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 35 FF 03 08 00 03 1A 22 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 17 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6B 16 00 00 00 00 07 04 06 00 F0 D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 5A 2F E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 2B E1 01 00 35 04 06 00 55 [08:05:45]Write to MH i2c: E2 02 01 B0 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1A 22 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 17 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6B 16 00 00 00 00 07 04 06 00 F0 D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 5A 2F E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 2B E1 01 00 35 04 06 00 55 00 00 3A [08:05:45]Write i2c OK [08:05:45]MH_I2C_Read... [08:05:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:05:45]Read from MH i2c: E2 [08:05:45]MH_I2C_Read... [08:05:45]Read from MH i2c: E2 03 00 [08:05:45]MH_I2C_Read... [08:05:45]Read from MH i2c: E2 03 00 B0 12 00 90 00 36 [08:05:45]RAPDU: 90 00 [08:05:45]wFMCommunicate OK [08:05:45]wFMCommunicate request_size=10 [08:05:45]MH_SAM_APDU [08:05:45]CAPDU: 80 0D 02 02 05 ED 16 C5 36 F3 [08:05:45]Write to MH i2c: E2 0D 00 B1 12 80 0D 02 02 05 00 ED 16 C5 36 F3 00 00 38 [08:05:45]Write i2c OK [08:05:45]MH_I2C_Read... [08:05:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:05:45]Read from MH i2c: E2 [08:05:45]MH_I2C_Read... [08:05:45]Read from MH i2c: E2 03 00 [08:05:45]MH_I2C_Read... [08:05:45]Read from MH i2c: E2 03 00 B1 12 00 90 00 37 [08:05:45]RAPDU: 90 00 [08:05:45]wFMCommunicate OK [08:05:45]wFMCommunicate request_size=4 [08:05:45]MH_SAM_APDU [08:05:45]CAPDU: 80 0D 03 02 [08:05:45]Write to MH i2c: E2 08 00 B2 12 80 0D 03 02 00 00 00 00 3F [08:05:45]Write i2c OK [08:05:45]MH_I2C_Read... [08:05:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:05:45]Read from MH i2c: E2 [08:05:45]MH_I2C_Read... [08:05:45]Read from MH i2c: E2 0B 00 [08:05:45]MH_I2C_Read... [08:05:45]Read from MH i2c: E2 0B 00 B2 12 00 0F A6 6D 16 6A 41 98 1D 90 00 D8 [08:05:45]RAPDU: 0F A6 6D 16 6A 41 98 1D 90 00 [08:05:45]wFMCommunicate OK [08:05:45]SAM_PROTO_SignData done [08:05:45]FM_MakeSignedData done [08:05:45]CreateOFDProtocolMessage [08:05:45]wFMCommunicate request_size=4 [08:05:45]MH_SAM_APDU [08:05:45]CAPDU: 80 11 00 00 [08:05:45]Write to MH i2c: E2 08 00 B3 12 80 11 00 00 00 00 00 00 3F [08:05:45]Write i2c OK [08:05:45]MH_I2C_Read... [08:05:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:05:45]Read from MH i2c: E2 [08:05:45]MH_I2C_Read... [08:05:45]Read from MH i2c: E2 17 00 [08:05:45]MH_I2C_Read... [08:05:45]Read from MH i2c: E2 17 00 B3 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 9D [08:05:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [08:05:45]wFMCommunicate OK [08:05:45]CreateOFDProtocolMessage done [08:05:45]OFDSenderStorePacket 123179 [08:05:45]StoreOFDPacket docnum=123179 [08:05:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 4E 52 07 01 E1 A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1A 22 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 17 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6B 16 00 00 00 00 07 04 06 00 F0 D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 5A 2F E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 2B E1 01 00 35 04 06 00 55 ED 16 C5 36 F3 0F A6 6D 16 6A 41 98 1D [08:05:45]CheckFolder [08:05:45]dirname=/storage/ofd_packets [08:05:45]CheckFolder done [08:05:45]ProducePacketName [08:05:45]name=ofd_packets/00123179 [08:05:45]NVStorageSaveData ofd_packets/00123179 [08:05:45]File name is /storage/ofd_packets/00123179 [08:05:45]Write 301 bytes [08:05:45]NVStorageSaveData done [08:05:45]OFDSenderStorePacket done [08:05:45]KKMCreateOFDPacket done [08:05:45]NVStorageSaveData kkm_last_timestamp [08:05:45]File name is /storage/kkm_last_timestamp [08:05:45]Write 4 bytes [08:05:45]NVStorageSaveData done [08:05:45]ExternCall_PrintAddStr [08:05:45]wPrintStart [08:05:45]Write to MH i2c: 01 00 00 B4 12 C6 [08:05:45]Write i2c OK [08:05:45]MH_I2C_Read... [08:05:45]Read from MH i2c: 01 [08:05:45]MH_I2C_Read... [08:05:45]Read from MH i2c: 01 07 00 [08:05:45]MH_I2C_Read... [08:05:45]Read from MH i2c: 01 07 00 B4 12 00 00 00 00 00 FF 0F DB [08:05:45]RasterBufferAndPrint [08:05:45]line Счет N : (1)1106098 [08:05:45]line ИНН: 02508201610067 [08:05:45]line Контрольно-Кассовый Чек [08:05:45]line ПРОДАЖА [08:05:45]line ТРК (МРК, ГНК) : 52 [08:05:45]line Товар: 2710124130 [08:05:45]line Аи-92-К-5 [08:05:45]line 8.730 * 61.90 [08:05:45]line = 540.39 [08:05:45]line НДС 12% НСП 1% [08:05:45]line > о реализуемом товаре [08:05:45]line ОКРУГЛЕНИЕ: -0.39 [08:05:45]line ИТОГО: 540.00 [08:05:45]line Внесено: 540.00 [08:05:45]line СДАЧА: 0.00 [08:05:45]line НСП 1% : 4.78 [08:05:45]line НДС 12% : 57.39 [08:05:45]line Наличными: 540.00 [08:05:45]line Безнал.: 0.00 [08:05:45]line Место: АЗС № 25 "Партнер Нефть" [08:05:45]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [08:05:45]line СНО: Общий режим [08:05:45]line Чек 36 03.03.2024 08:05 [08:05:45]line Смена: 323 ФФД: 1.0 [08:05:45]line ЗНМ: 0300000019 [08:05:45]line РНМ: 0000000000090573 [08:05:45]line Версия ККМ: 001 [08:05:45]line ФМ: 0000000000874798 [08:05:45]line ФД: 123179 [08:05:45]line ФПД: 94476777633523 [08:05:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T080546&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123179&fm=94476777633523&tin=02508201610067®Number=0000000000090573&sum=54000 [08:05:46]OFD Sender: Processing packet 123179 [packets to send 112, broken 111] [08:05:46]ProducePacketName [08:05:46]name=ofd_packets/00123179 [08:05:46]OFD Sender: To server: pG, [08:05:46]CommunicateWithHost lk.salyk.kg:30040 [08:05:46]ConnectInit lk.salyk.kg [08:05:46]written 0, free lines is 4095 [08:05:46]Connected sock=10 [08:05: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 37 39 38 0F 01 00 00 4E 52 07 01 E1 A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1A 22 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 17 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6B 16 00 00 00 00 07 04 06 00 F0 D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 5A 2F E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 2B E1 01 00 35 04 06 00 55 ED 16 C5 36 F3 0F A6 6D 16 6A 41 98 1D [08:05:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 0D CC 47 00 C1 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 37 39 38 10 04 04 00 2B E1 01 00 F4 03 04 00 86 DB E3 65 B6 04 01 00 00 08 2A C5 98 A7 FA 50 10 [08:05:46]CommunicateWithHost err = 0 [08:05:46]CheckOFDResponse [08:05:46]1017 (14) - 77093643461234 [08:05:46]1041 (16) - 0000000000874798 [08:05:46]1040 (4) - 123179 [08:05:46]1012 (4) - 03.03.2024 02:08 [08:05:46]1206 (1) - 0 [08:05:46]OFD Sender: Remove packet 123179 [08:05:46]ProducePacketName [08:05:46]name=ofd_packets/00123179 [08:05:46]NVStorageDeleteData [08:05:46]Write to MH i2c: 01 00 00 DF 12 F1 [08:05:46]Write i2c OK [08:05:46]MH_I2C_Read... [08:05:46]Read from MH i2c: 01 [08:05:46]MH_I2C_Read... [08:05:46]Read from MH i2c: 01 07 00 [08:05:46]MH_I2C_Read... [08:05:46]Read from MH i2c: 01 07 00 DF 12 00 00 00 00 00 F6 0C FA [08:05:46]RasterBufferAndPrint [08:05:46]line [08:05:46]line [08:05:46]line [08:05:46]line [08:05:46]line [08:05:46]written 0, free lines is 3324 [08:05:46]MH_Cut [08:05:46]Write to MH i2c: D1 01 00 E6 12 01 CA [08:05:46]Write i2c OK [08:05:46]MH_I2C_Read... [08:05:46]Read from MH i2c: D1 [08:05:46]MH_I2C_Read... [08:05:46]Read from MH i2c: D1 01 00 [08:05:46]MH_I2C_Read... [08:05:46]Read from MH i2c: D1 01 00 E6 12 00 C9 [08:05:46]Write to MH i2c: 01 00 00 E7 12 F9 [08:05:46]Write i2c OK [08:05:46]MH_I2C_Read... [08:05:46]OFD Sender: No OFD packet to send [08:05:47]*** Cut start [08:05:47]*** Purtial cut [08:05:47]*** Stage 1: CUTSNS_PIN = 1 [08:05:49]Read from MH i2c: 01 [08:05:49]MH_I2C_Read... [08:05:49]*** Stop cut motor [08:05:49]*** Cut end [08:05:49]Read from MH i2c: 01 07 00 [08:05:49]MH_I2C_Read... [08:05:49]Read from MH i2c: 01 07 00 E7 12 00 00 00 00 00 FF 0F 0E [08:05:49]process_action close_receipt done [08:05:49]requested_data is exist [08:05:49]produce_requested_data [08:05:49]requested_item fm.sn is exist - process it [08:05:49]wFMCommunicate request_size=4 [08:05:49]MH_SAM_APDU [08:05:49]CAPDU: 80 11 00 00 [08:05:49]Write to MH i2c: E2 08 00 E8 12 80 11 00 00 00 00 00 00 74 [08:05:49]Write i2c OK [08:05:49]MH_I2C_Read... [08:05:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:05:49]Read from MH i2c: E2 [08:05:49]MH_I2C_Read... [08:05:49]Read from MH i2c: E2 17 00 [08:05:49]MH_I2C_Read... [08:05:49]Read from MH i2c: E2 17 00 E8 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 D2 [08:05:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [08:05:49]wFMCommunicate OK [08:05:49]requested_item fd.num is exist - process it [08:05:49]SAM_PROTO_GetFieldsCounters [08:05:49]wFMCommunicate request_size=4 [08:05:49]MH_SAM_APDU [08:05:49]CAPDU: 80 13 00 00 [08:05:49]Write to MH i2c: E2 08 00 E9 12 80 13 00 00 00 00 00 00 77 [08:05:49]Write i2c OK [08:05:49]MH_I2C_Read... [08:05:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:05:49]Read from MH i2c: E2 [08:05:49]MH_I2C_Read... [08:05:49]Read from MH i2c: E2 62 00 [08:05:49]MH_I2C_Read... [08:05:49]Read from MH i2c: E2 62 00 E9 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 2B E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 5F [08:05: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 2B E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:05:49]wFMCommunicate OK [08:05:49]SAM_PROTO_GetFieldsCounters done [08:05:49]requested_item shift.num is exist - process it [08:05:49]requested_item shift.opened is exist - process it [08:05:49]req_shift_opened [08:05:49]FM_GetShiftState [08:05:49]SAM_PROTO_GetShiftState [08:05:49]wFMCommunicate request_size=4 [08:05:49]MH_SAM_APDU [08:05:49]CAPDU: 80 13 01 00 [08:05:49]Write to MH i2c: E2 08 00 EA 12 80 13 01 00 00 00 00 00 79 [08:05:49]Write i2c OK [08:05:49]MH_I2C_Read... [08:05:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:05:49]Read from MH i2c: E2 [08:05:49]MH_I2C_Read... [08:05:49]Read from MH i2c: E2 0E 00 [08:05:49]MH_I2C_Read... [08:05:49]Read from MH i2c: E2 0E 00 EA 12 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 3B [08:05:49]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [08:05:49]wFMCommunicate OK [08:05:49]SAM_PROTO_GetShiftState done [08:05:49]FM_GetShiftState done [08:05:49]req_shift_opened done [08:05:49]requested_item shift.open_date is exist - process it [08:05:49]req_shift_open_date [08:05:49]req_shift_open_date done [08:05:49]produce_requested_data done [08:05:49]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123179,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [08:05:49]process_action_free close_receipt [08:05:49]json_value_free [08:05:49]json_value_free done [08:05:49]process_json_proto returns [08:05:49]Send response to host [08:05:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123179,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [08:05:49]free response buf [08:05:49]execute_script done [08:05:49]execute_script returns [08:05:49]free content buf [08:05:49]Sock 9.Close socket [08:05:49]Sock 9.Thread stoped [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:36]OFD Sender: No OFD packet to send [08:06:41]OFD Sender: No OFD packet to send [08:06:46]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:42]accept exits with 7 [08:11:42]New connection [08:11:42]New thread 3067395428 created [08:11:42]Thread 3067252068 joined [08:11:42]Waiting for new connection... [08:11:42] Sock 7.Parse request [08:11:42]Sock 7.Check first char [08:11:42]Sock 7.First char is OK [08:11:42]request: POST /json_proto HTTP/1.0 [08:11:42]Method: POST [08:11:42]URL: /json_proto [08:11:42]Method is POST - this is cgi request [08:11:42]url: /json_proto [08:11:42]query_string will be loaded in cgi processing [08:11:42]execute_cgi json_proto POST (null) [08:11:42]execute_cgi path=json_proto method=POST [08:11:42]POST find Content-Length [08:11:42]Host: 172.17.48.197:8080 [08:11:42]Content-Length: 683 [08:11:42]Content-Type: application/json [08:11:42] [08:11:42]POST finish read [08:11:42]Found Content-Length = 683 [08:11:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106099", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "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" ] } } [08:11:42]execute_script... [08:11: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)1106099", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "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" ] } } [08:11:42]POST & json_proto [08:11:42]process_json_proto [08:11:42]json parsed OK: [08:11:42]protocol is kg_v1.0 [08:11:42]action value=close_receipt [08:11:42]process_action close_receipt [08:11:42]cmd_close_receipt [08:11:42]MH_GetDate [08:11:42]Write to MH i2c: F0 00 00 EB 12 EC [08:11:42]Write i2c OK [08:11:42]MH_I2C_Read... [08:11:42]Read from MH i2c: F0 [08:11:42]MH_I2C_Read... [08:11:42]Read from MH i2c: F0 09 00 [08:11:42]MH_I2C_Read... [08:11:42]Read from MH i2c: F0 09 00 EB 12 00 C0 30 E4 65 6C AF E3 65 91 [08:11:42]GetLastDocTimeStamp 1709453146 [08:11:42]current date 1709453504 [08:11:42]FM_GetShiftState [08:11:42]SAM_PROTO_GetShiftState [08:11:42]wFMCommunicate request_size=4 [08:11:42]MH_SAM_APDU [08:11:42]CAPDU: 80 13 01 00 [08:11:42]Write to MH i2c: E2 08 00 EC 12 80 13 01 00 00 00 00 00 7B [08:11:42]Write i2c OK [08:11:42]MH_I2C_Read... [08:11:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:11:42]Read from MH i2c: E2 [08:11:42]MH_I2C_Read... [08:11:42]Read from MH i2c: E2 0E 00 [08:11:42]MH_I2C_Read... [08:11:42]Read from MH i2c: E2 0E 00 EC 12 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 3D [08:11:42]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [08:11:42]wFMCommunicate OK [08:11:42]SAM_PROTO_GetShiftState done [08:11:42]FM_GetShiftState done [08:11:42]opened in 1709425579 [08:11:42]opened+sec_in_day 1709511979 [08:11:42]quantity*price = 100030 [08:11:42]sum+1 = 100031 [08:11:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 37 03.03.2024 08:11 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123180 ФПД: 135049995653635 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T081144&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123180&fm=135049995653635&tin=02508201610067®Number=0000000000090573&sum=100000 [08:11:43]StoreToDocumentArchive [08:11:43]shift 323 fd 123180 [08:11:43]save to /storage/0323/doc_00123180 [08:11:43]save last doc name /storage/0323/doc_00123180 to /storage/kkm_last_doc_name [08:11:43]save OK [08:11:43]Clear old archive folders... [08:11:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:11:43]tlvbuf is 00DE1CB0 [08:11:43]SAM_PROTO_ClearQueue [08:11:43]wFMCommunicate request_size=4 [08:11:43]MH_SAM_APDU [08:11:43]CAPDU: 80 09 00 00 [08:11:43]Write to MH i2c: E2 08 00 F9 12 80 09 00 00 00 00 00 00 7D [08:11:43]Write i2c OK [08:11:43]MH_I2C_Read... [08:11:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:11:43]Read from MH i2c: E2 [08:11:43]MH_I2C_Read... [08:11:43]Read from MH i2c: E2 03 00 [08:11:43]MH_I2C_Read... [08:11:43]Read from MH i2c: E2 03 00 F9 12 00 90 00 7F [08:11:43]RAPDU: 90 00 [08:11:43]wFMCommunicate OK [08:11:43]SAM_PROTO_ClearQueue done [08:11:43]KKMCreateOFDPacket [08:11:43]OFDProtocolAddRootSTLVToBuf [08:11:43]FM_MakeSignedData [08:11:43]FM_MakeSignedData [08:11:43]SAM_PROTO_SignData [08:11:43]wFMCommunicate request_size=4 [08:11:43]MH_SAM_APDU [08:11:43]CAPDU: 80 0D 01 02 [08:11:43]Write to MH i2c: E2 08 00 FA 12 80 0D 01 02 00 00 00 00 85 [08:11:43]Write i2c OK [08:11:43]MH_I2C_Read... [08:11:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:11:44]Read from MH i2c: E2 [08:11:44]MH_I2C_Read... [08:11:44]Read from MH i2c: E2 03 00 [08:11:44]MH_I2C_Read... [08:11:44]Read from MH i2c: E2 03 00 FA 12 00 90 00 80 [08:11:44]RAPDU: 90 00 [08:11:44]wFMCommunicate OK [08:11:44]wFMCommunicate request_size=255 [08:11:44]MH_SAM_APDU [08:11: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 25 00 00 00 F4 03 04 00 C0 30 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 2C E1 01 00 35 04 06 00 7A [08:11:44]Write to MH i2c: E2 02 01 FB 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 25 00 00 00 F4 03 04 00 C0 30 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 2C E1 01 00 35 04 06 00 7A 00 00 1B [08:11:44]Write i2c OK [08:11:44]MH_I2C_Read... [08:11:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:11:44]Read from MH i2c: E2 [08:11:44]MH_I2C_Read... [08:11:44]Read from MH i2c: E2 03 00 [08:11:44]MH_I2C_Read... [08:11:44]Read from MH i2c: E2 03 00 FB 12 00 90 00 81 [08:11:44]RAPDU: 90 00 [08:11:44]wFMCommunicate OK [08:11:44]wFMCommunicate request_size=10 [08:11:44]MH_SAM_APDU [08:11:44]CAPDU: 80 0D 02 02 05 D3 C7 04 92 03 [08:11:44]Write to MH i2c: E2 0D 00 FC 12 80 0D 02 02 05 00 D3 C7 04 92 03 00 00 C5 [08:11:44]Write i2c OK [08:11:44]MH_I2C_Read... [08:11:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:11:44]Read from MH i2c: E2 [08:11:44]MH_I2C_Read... [08:11:44]Read from MH i2c: E2 03 00 [08:11:44]MH_I2C_Read... [08:11:44]Read from MH i2c: E2 03 00 FC 12 00 90 00 82 [08:11:44]RAPDU: 90 00 [08:11:44]wFMCommunicate OK [08:11:44]wFMCommunicate request_size=4 [08:11:44]MH_SAM_APDU [08:11:44]CAPDU: 80 0D 03 02 [08:11:44]Write to MH i2c: E2 08 00 FD 12 80 0D 03 02 00 00 00 00 8A [08:11:44]Write i2c OK [08:11:44]MH_I2C_Read... [08:11:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:11:44]Read from MH i2c: E2 [08:11:44]MH_I2C_Read... [08:11:44]Read from MH i2c: E2 0B 00 [08:11:44]MH_I2C_Read... [08:11:44]Read from MH i2c: E2 0B 00 FD 12 00 43 01 00 19 6B B2 08 84 90 00 91 [08:11:44]RAPDU: 43 01 00 19 6B B2 08 84 90 00 [08:11:44]wFMCommunicate OK [08:11:44]SAM_PROTO_SignData done [08:11:44]FM_MakeSignedData done [08:11:44]CreateOFDProtocolMessage [08:11:44]wFMCommunicate request_size=4 [08:11:44]MH_SAM_APDU [08:11:44]CAPDU: 80 11 00 00 [08:11:44]Write to MH i2c: E2 08 00 FE 12 80 11 00 00 00 00 00 00 8A [08:11:44]Write i2c OK [08:11:44]MH_I2C_Read... [08:11:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:11:44]Read from MH i2c: E2 [08:11:44]MH_I2C_Read... [08:11:44]Read from MH i2c: E2 17 00 [08:11:44]MH_I2C_Read... [08:11:44]Read from MH i2c: E2 17 00 FE 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 E8 [08:11:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [08:11:44]wFMCommunicate OK [08:11:44]CreateOFDProtocolMessage done [08:11:44]OFDSenderStorePacket 123180 [08:11:44]StoreOFDPacket docnum=123180 [08:11:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 9E 35 07 01 F5 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 25 00 00 00 F4 03 04 00 C0 30 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 2C E1 01 00 35 04 06 00 7A D3 C7 04 92 03 43 01 00 19 6B B2 08 84 [08:11:44]CheckFolder [08:11:44]dirname=/storage/ofd_packets [08:11:44]CheckFolder done [08:11:44]ProducePacketName [08:11:44]name=ofd_packets/00123180 [08:11:44]NVStorageSaveData ofd_packets/00123180 [08:11:44]File name is /storage/ofd_packets/00123180 [08:11:44]Write 301 bytes [08:11:44]NVStorageSaveData done [08:11:44]OFDSenderStorePacket done [08:11:44]KKMCreateOFDPacket done [08:11:44]NVStorageSaveData kkm_last_timestamp [08:11:44]File name is /storage/kkm_last_timestamp [08:11:44]Write 4 bytes [08:11:44]NVStorageSaveData done [08:11:44]OFD Sender: Processing packet 123180 [packets to send 112, broken 111] [08:11:44]ProducePacketName [08:11:44]name=ofd_packets/00123180 [08:11:44]OFD Sender: To server: pG, [08:11:44]CommunicateWithHost lk.salyk.kg:30040 [08:11:44]ConnectInit lk.salyk.kg [08:11:44]ExternCall_PrintAddStr [08:11:44]wPrintStart [08:11:44]Write to MH i2c: 01 00 00 FF 12 11 [08:11:44]Write i2c OK [08:11:44]MH_I2C_Read... [08:11:44]Read from MH i2c: 01 [08:11:44]MH_I2C_Read... [08:11:44]Read from MH i2c: 01 07 00 [08:11:44]MH_I2C_Read... [08:11:44]Read from MH i2c: 01 07 00 FF 12 00 00 00 00 00 FF 0F 26 [08:11:44]RasterBufferAndPrint [08:11:44]line Счет N : (1)1106099 [08:11:44]line ИНН: 02508201610067 [08:11:44]line Контрольно-Кассовый Чек [08:11:44]line ПРОДАЖА [08:11:44]line ТРК (МРК, ГНК) : 32 [08:11:44]line Товар: 2710124130 [08:11:44]line Аи-92-К-5 [08:11:44]line 16.160 * 61.90 [08:11:44]line = 1000.30 [08:11:44]line НДС 12% НСП 1% [08:11:44]line > о реализуемом товаре [08:11:44]line ОКРУГЛЕНИЕ: -0.30 [08:11:44]line ИТОГО: 1000.00 [08:11:44]line Внесено: 1000.00 [08:11:44]line СДАЧА: 0.00 [08:11:44]line НСП 1% : 8.85 [08:11:44]line НДС 12% : 106.23 [08:11:44]line Наличными: 1000.00 [08:11:44]line Безнал.: 0.00 [08:11:44]line Место: АЗС № 25 "Партнер Нефть" [08:11:44]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [08:11:44]line СНО: Общий режим [08:11:44]line Чек 37 03.03.2024 08:11 [08:11:44]line Смена: 323 ФФД: 1.0 [08:11:44]line ЗНМ: 0300000019 [08:11:44]line РНМ: 0000000000090573 [08:11:44]line Версия ККМ: 001 [08:11:44]line ФМ: 0000000000874798 [08:11:44]line ФД: 123180 [08:11:44]line ФПД: 135049995653635 [08:11:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T081144&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123180&fm=135049995653635&tin=02508201610067®Number=0000000000090573&sum=100000 [08:11:44]Connected sock=11 [08:11: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 37 39 38 0F 01 00 00 9E 35 07 01 F5 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 25 00 00 00 F4 03 04 00 C0 30 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 2C E1 01 00 35 04 06 00 7A D3 C7 04 92 03 43 01 00 19 6B B2 08 84 [08:11:44]written 0, free lines is 4095 [08:11:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 2D EC 47 00 66 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 37 39 38 10 04 04 00 2C E1 01 00 F4 03 04 00 ED DC E3 65 B6 04 01 00 00 17 54 D3 C7 28 C1 4E B0 [08:11:44]CommunicateWithHost err = 0 [08:11:44]CheckOFDResponse [08:11:44]1017 (14) - 77093643461234 [08:11:44]1041 (16) - 0000000000874798 [08:11:44]1040 (4) - 123180 [08:11:44]1012 (4) - 03.03.2024 02:14 [08:11:44]1206 (1) - 0 [08:11:44]OFD Sender: Remove packet 123180 [08:11:44]ProducePacketName [08:11:44]name=ofd_packets/00123180 [08:11:44]NVStorageDeleteData [08:11:45]Write to MH i2c: 01 00 00 2A 13 3D [08:11:45]Write i2c OK [08:11:45]MH_I2C_Read... [08:11:45]Read from MH i2c: 01 [08:11:45]MH_I2C_Read... [08:11:45]Read from MH i2c: 01 07 00 [08:11:45]MH_I2C_Read... [08:11:45]Read from MH i2c: 01 07 00 2A 13 00 00 00 00 00 FC 0C 4C [08:11:45]RasterBufferAndPrint [08:11:45]line [08:11:45]line [08:11:45]line [08:11:45]line [08:11:45]line [08:11:45]written 0, free lines is 3333 [08:11:45]MH_Cut [08:11:45]Write to MH i2c: D1 01 00 31 13 01 16 [08:11:45]Write i2c OK [08:11:45]MH_I2C_Read... [08:11:45]Read from MH i2c: D1 [08:11:45]MH_I2C_Read... [08:11:45]Read from MH i2c: D1 01 00 [08:11:45]MH_I2C_Read... [08:11:45]Read from MH i2c: D1 01 00 31 13 00 15 [08:11:45]Write to MH i2c: 01 00 00 32 13 45 [08:11:45]Write i2c OK [08:11:45]MH_I2C_Read... [08:11:45]OFD Sender: No OFD packet to send [08:11:45]*** Cut start [08:11:45]*** Purtial cut [08:11:45]*** Stage 1: CUTSNS_PIN = 1 [08:11:47]Read from MH i2c: 01 [08:11:47]MH_I2C_Read... [08:11:47]*** Stop cut motor [08:11:47]*** Cut end [08:11:47]Read from MH i2c: 01 07 00 [08:11:47]MH_I2C_Read... [08:11:47]Read from MH i2c: 01 07 00 32 13 00 00 00 00 00 FF 0F 5A [08:11:47]process_action close_receipt done [08:11:47]requested_data is exist [08:11:47]produce_requested_data [08:11:47]requested_item fm.sn is exist - process it [08:11:47]wFMCommunicate request_size=4 [08:11:47]MH_SAM_APDU [08:11:47]CAPDU: 80 11 00 00 [08:11:47]Write to MH i2c: E2 08 00 33 13 80 11 00 00 00 00 00 00 C0 [08:11:47]Write i2c OK [08:11:47]MH_I2C_Read... [08:11:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:11:48]Read from MH i2c: E2 [08:11:48]MH_I2C_Read... [08:11:48]Read from MH i2c: E2 17 00 [08:11:48]MH_I2C_Read... [08:11:48]Read from MH i2c: E2 17 00 33 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 1E [08:11:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [08:11:48]wFMCommunicate OK [08:11:48]requested_item fd.num is exist - process it [08:11:48]SAM_PROTO_GetFieldsCounters [08:11:48]wFMCommunicate request_size=4 [08:11:48]MH_SAM_APDU [08:11:48]CAPDU: 80 13 00 00 [08:11:48]Write to MH i2c: E2 08 00 34 13 80 13 00 00 00 00 00 00 C3 [08:11:48]Write i2c OK [08:11:48]MH_I2C_Read... [08:11:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:11:48]Read from MH i2c: E2 [08:11:48]MH_I2C_Read... [08:11:48]Read from MH i2c: E2 62 00 [08:11:48]MH_I2C_Read... [08:11:48]Read from MH i2c: E2 62 00 34 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 2C E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 AF [08:11: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 2C E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:11:48]wFMCommunicate OK [08:11:48]SAM_PROTO_GetFieldsCounters done [08:11:48]requested_item shift.num is exist - process it [08:11:48]requested_item shift.opened is exist - process it [08:11:48]req_shift_opened [08:11:48]FM_GetShiftState [08:11:48]SAM_PROTO_GetShiftState [08:11:48]wFMCommunicate request_size=4 [08:11:48]MH_SAM_APDU [08:11:48]CAPDU: 80 13 01 00 [08:11:48]Write to MH i2c: E2 08 00 35 13 80 13 01 00 00 00 00 00 C5 [08:11:48]Write i2c OK [08:11:48]MH_I2C_Read... [08:11:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:11:48]Read from MH i2c: E2 [08:11:48]MH_I2C_Read... [08:11:48]Read from MH i2c: E2 0E 00 [08:11:48]MH_I2C_Read... [08:11:48]Read from MH i2c: E2 0E 00 35 13 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 87 [08:11:48]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [08:11:48]wFMCommunicate OK [08:11:48]SAM_PROTO_GetShiftState done [08:11:48]FM_GetShiftState done [08:11:48]req_shift_opened done [08:11:48]requested_item shift.open_date is exist - process it [08:11:48]req_shift_open_date [08:11:48]req_shift_open_date done [08:11:48]produce_requested_data done [08:11:48]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123180,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [08:11:48]process_action_free close_receipt [08:11:48]json_value_free [08:11:48]json_value_free done [08:11:48]process_json_proto returns [08:11:48]Send response to host [08:11:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123180,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [08:11:48]free response buf [08:11:48]execute_script done [08:11:48]execute_script returns [08:11:48]free content buf [08:11:48]Sock 7.Close socket [08:11:48]Sock 7.Thread stoped [08:11:50]OFD Sender: No OFD packet to send [08:11:53]accept exits with 9 [08:11:53]New connection [08:11:53]New thread 3067252068 created [08:11:53]Thread 3067395428 joined [08:11:53]Waiting for new connection... [08:11:53] Sock 9.Parse request [08:11:53]Sock 9.Check first char [08:11:53]Sock 9.First char is OK [08:11:53]request: POST /json_proto HTTP/1.0 [08:11:53]Method: POST [08:11:53]URL: /json_proto [08:11:53]Method is POST - this is cgi request [08:11:53]url: /json_proto [08:11:53]query_string will be loaded in cgi processing [08:11:53]execute_cgi json_proto POST (null) [08:11:53]execute_cgi path=json_proto method=POST [08:11:53]POST find Content-Length [08:11:53]Host: 172.17.48.197:8080 [08:11:53]Content-Length: 678 [08:11:53]Content-Type: application/json [08:11:53] [08:11:53]POST finish read [08:11:53]Found Content-Length = 678 [08:11:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106100", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 4.850, "sum" : 300.22, "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" ] } } [08:11:53]execute_script... [08: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 : (1)1106100", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 4.850, "sum" : 300.22, "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" ] } } [08:11:53]POST & json_proto [08:11:53]process_json_proto [08:11:53]json parsed OK: [08:11:53]protocol is kg_v1.0 [08:11:53]action value=close_receipt [08:11:53]process_action close_receipt [08:11:53]cmd_close_receipt [08:11:53]MH_GetDate [08:11:53]Write to MH i2c: F0 00 00 36 13 38 [08:11:53]Write i2c OK [08:11:53]MH_I2C_Read... [08:11:53]Read from MH i2c: F0 [08:11:53]MH_I2C_Read... [08:11:53]Read from MH i2c: F0 09 00 [08:11:53]MH_I2C_Read... [08:11:53]Read from MH i2c: F0 09 00 36 13 00 CB 30 E4 65 6C AF E3 65 E8 [08:11:53]GetLastDocTimeStamp 1709453504 [08:11:53]current date 1709453515 [08:11:53]FM_GetShiftState [08:11:53]SAM_PROTO_GetShiftState [08:11:53]wFMCommunicate request_size=4 [08:11:53]MH_SAM_APDU [08:11:53]CAPDU: 80 13 01 00 [08:11:53]Write to MH i2c: E2 08 00 37 13 80 13 01 00 00 00 00 00 C7 [08:11:53]Write i2c OK [08:11:53]MH_I2C_Read... [08:11:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:11:53]Read from MH i2c: E2 [08:11:53]MH_I2C_Read... [08:11:53]Read from MH i2c: E2 0E 00 [08:11:53]MH_I2C_Read... [08:11:53]Read from MH i2c: E2 0E 00 37 13 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 89 [08:11:53]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [08:11:53]wFMCommunicate OK [08:11:53]SAM_PROTO_GetShiftState done [08:11:53]FM_GetShiftState done [08:11:53]opened in 1709425579 [08:11:53]opened+sec_in_day 1709511979 [08:11:53]quantity*price = 30021 [08:11:53]sum+1 = 30023 [08:11:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.88 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 38 03.03.2024 08:11 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123181 ФПД: 106325809793899 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T081155&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123181&fm=106325809793899&tin=02508201610067®Number=0000000000090573&sum=30000 [08:11:54]StoreToDocumentArchive [08:11:54]shift 323 fd 123181 [08:11:54]save to /storage/0323/doc_00123181 [08:11:54]save last doc name /storage/0323/doc_00123181 to /storage/kkm_last_doc_name [08:11:54]save OK [08:11:54]Clear old archive folders... [08:11:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:11:54]tlvbuf is 00E07BB0 [08:11:54]SAM_PROTO_ClearQueue [08:11:54]wFMCommunicate request_size=4 [08:11:54]MH_SAM_APDU [08:11:54]CAPDU: 80 09 00 00 [08:11:54]Write to MH i2c: E2 08 00 44 13 80 09 00 00 00 00 00 00 C9 [08:11:54]Write i2c OK [08:11:54]MH_I2C_Read... [08:11:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:11:54]Read from MH i2c: E2 [08:11:54]MH_I2C_Read... [08:11:54]Read from MH i2c: E2 03 00 [08:11:54]MH_I2C_Read... [08:11:54]Read from MH i2c: E2 03 00 44 13 00 90 00 CB [08:11:54]RAPDU: 90 00 [08:11:54]wFMCommunicate OK [08:11:54]SAM_PROTO_ClearQueue done [08:11:54]KKMCreateOFDPacket [08:11:54]OFDProtocolAddRootSTLVToBuf [08:11:54]FM_MakeSignedData [08:11:54]FM_MakeSignedData [08:11:54]SAM_PROTO_SignData [08:11:54]wFMCommunicate request_size=4 [08:11:54]MH_SAM_APDU [08:11:54]CAPDU: 80 0D 01 02 [08:11:54]Write to MH i2c: E2 08 00 45 13 80 0D 01 02 00 00 00 00 D1 [08:11:54]Write i2c OK [08:11:54]MH_I2C_Read... [08:11:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:11:54]Read from MH i2c: E2 [08:11:54]MH_I2C_Read... [08:11:54]Read from MH i2c: E2 03 00 [08:11:54]MH_I2C_Read... [08:11:54]Read from MH i2c: E2 03 00 45 13 00 90 00 CC [08:11:54]RAPDU: 90 00 [08:11:54]wFMCommunicate OK [08:11:54]wFMCommunicate request_size=255 [08:11:54]MH_SAM_APDU [08:11:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 12 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 46 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 74 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 26 00 00 00 F4 03 04 00 CB 30 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 2D E1 01 00 35 04 06 00 60 [08:11:54]Write to MH i2c: E2 02 01 46 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 12 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 46 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 74 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 26 00 00 00 F4 03 04 00 CB 30 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 2D E1 01 00 35 04 06 00 60 00 00 DC [08:11:54]Write i2c OK [08:11:54]MH_I2C_Read... [08:11:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:11:55]Read from MH i2c: E2 [08:11:55]MH_I2C_Read... [08:11:55]Read from MH i2c: E2 03 00 [08:11:55]MH_I2C_Read... [08:11:55]Read from MH i2c: E2 03 00 46 13 00 90 00 CD [08:11:55]RAPDU: 90 00 [08:11:55]wFMCommunicate OK [08:11:55]wFMCommunicate request_size=10 [08:11:55]MH_SAM_APDU [08:11:55]CAPDU: 80 0D 02 02 05 B3 E8 1F 8B 6B [08:11:55]Write to MH i2c: E2 0D 00 47 13 80 0D 02 02 05 00 B3 E8 1F 8B 6B 00 00 8E [08:11:55]Write i2c OK [08:11:55]MH_I2C_Read... [08:11:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:11:55]Read from MH i2c: E2 [08:11:55]MH_I2C_Read... [08:11:55]Read from MH i2c: E2 03 00 [08:11:55]MH_I2C_Read... [08:11:55]Read from MH i2c: E2 03 00 47 13 00 90 00 CE [08:11:55]RAPDU: 90 00 [08:11:55]wFMCommunicate OK [08:11:55]wFMCommunicate request_size=4 [08:11:55]MH_SAM_APDU [08:11:55]CAPDU: 80 0D 03 02 [08:11:55]Write to MH i2c: E2 08 00 48 13 80 0D 03 02 00 00 00 00 D6 [08:11:55]Write i2c OK [08:11:55]MH_I2C_Read... [08:11:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:11:55]Read from MH i2c: E2 [08:11:55]MH_I2C_Read... [08:11:55]Read from MH i2c: E2 0B 00 [08:11:55]MH_I2C_Read... [08:11:55]Read from MH i2c: E2 0B 00 48 13 00 D0 86 F2 AA 26 8A 6C FD 90 00 E2 [08:11:55]RAPDU: D0 86 F2 AA 26 8A 6C FD 90 00 [08:11:55]wFMCommunicate OK [08:11:55]SAM_PROTO_SignData done [08:11:55]FM_MakeSignedData done [08:11:55]CreateOFDProtocolMessage [08:11:55]wFMCommunicate request_size=4 [08:11:55]MH_SAM_APDU [08:11:55]CAPDU: 80 11 00 00 [08:11:55]Write to MH i2c: E2 08 00 49 13 80 11 00 00 00 00 00 00 D6 [08:11:55]Write i2c OK [08:11:55]MH_I2C_Read... [08:11:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:11:55]Read from MH i2c: E2 [08:11:55]MH_I2C_Read... [08:11:55]Read from MH i2c: E2 17 00 [08:11:55]MH_I2C_Read... [08:11:55]Read from MH i2c: E2 17 00 49 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 34 [08:11:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [08:11:55]wFMCommunicate OK [08:11:55]CreateOFDProtocolMessage done [08:11:55]OFDSenderStorePacket 123181 [08:11:55]StoreOFDPacket docnum=123181 [08:11:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 62 5C 07 01 21 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 12 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 46 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 74 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 26 00 00 00 F4 03 04 00 CB 30 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 2D E1 01 00 35 04 06 00 60 B3 E8 1F 8B 6B D0 86 F2 AA 26 8A 6C FD [08:11:55]CheckFolder [08:11:55]dirname=/storage/ofd_packets [08:11:55]CheckFolder done [08:11:55]ProducePacketName [08:11:55]name=ofd_packets/00123181 [08:11:55]NVStorageSaveData ofd_packets/00123181 [08:11:55]File name is /storage/ofd_packets/00123181 [08:11:55]Write 301 bytes [08:11:55]NVStorageSaveData done [08:11:55]OFDSenderStorePacket done [08:11:55]KKMCreateOFDPacket done [08:11:55]NVStorageSaveData kkm_last_timestamp [08:11:55]File name is /storage/kkm_last_timestamp [08:11:55]Write 4 bytes [08:11:55]NVStorageSaveData done [08:11:55]ExternCall_PrintAddStr [08:11:55]wPrintStart [08:11:55]Write to MH i2c: 01 00 00 4A 13 5D [08:11:55]Write i2c OK [08:11:55]MH_I2C_Read... [08:11:55]Read from MH i2c: 01 [08:11:55]MH_I2C_Read... [08:11:55]Read from MH i2c: 01 07 00 [08:11:55]MH_I2C_Read... [08:11:55]Read from MH i2c: 01 07 00 4A 13 00 00 00 00 00 FF 0F 72 [08:11:55]RasterBufferAndPrint [08:11:55]line Счет N : (1)1106100 [08:11:55]line ИНН: 02508201610067 [08:11:55]line Контрольно-Кассовый Чек [08:11:55]line ПРОДАЖА [08:11:55]line ТРК (МРК, ГНК) : 11 [08:11:55]line Товар: 2710124130 [08:11:55]line Аи-92-К-5 [08:11:55]line 4.850 * 61.90 [08:11:55]line = 300.22 [08:11:55]line НДС 12% НСП 1% [08:11:55]line > о реализуемом товаре [08:11:55]line ОКРУГЛЕНИЕ: -0.22 [08:11:55]line ИТОГО: 300.00 [08:11:55]line Внесено: 300.00 [08:11:55]line СДАЧА: 0.00 [08:11:55]line НСП 1% : 2.66 [08:11:55]line НДС 12% : 31.88 [08:11:55]line Наличными: 300.00 [08:11:55]line Безнал.: 0.00 [08:11:55]line Место: АЗС № 25 "Партнер Нефть" [08:11:55]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [08:11:55]line СНО: Общий режим [08:11:55]line Чек 38 03.03.2024 08:11 [08:11:55]line Смена: 323 ФФД: 1.0 [08:11:55]line ЗНМ: 0300000019 [08:11:55]line РНМ: 0000000000090573 [08:11:55]line Версия ККМ: 001 [08:11:55]line ФМ: 0000000000874798 [08:11:55]line ФД: 123181 [08:11:55]line ФПД: 106325809793899 [08:11:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T081155&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123181&fm=106325809793899&tin=02508201610067®Number=0000000000090573&sum=30000 [08:11:55]OFD Sender: Processing packet 123181 [packets to send 112, broken 111] [08:11:55]ProducePacketName [08:11:55]name=ofd_packets/00123181 [08:11:55]OFD Sender: To server: pG, [08:11:55]CommunicateWithHost lk.salyk.kg:30040 [08:11:55]ConnectInit lk.salyk.kg [08:11:55]written 0, free lines is 4095 [08:11:55]Connected sock=10 [08: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 37 39 38 0F 01 00 00 62 5C 07 01 21 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 12 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 46 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 74 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 26 00 00 00 F4 03 04 00 CB 30 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 2D E1 01 00 35 04 06 00 60 B3 E8 1F 8B 6B D0 86 F2 AA 26 8A 6C FD [08: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 37 39 38 4F 00 00 00 A3 04 47 00 D0 0F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 2D E1 01 00 F4 03 04 00 F8 DC E3 65 B6 04 01 00 00 48 A1 8E 1F C6 6C A5 CA [08:11:56]CommunicateWithHost err = 0 [08:11:56]CheckOFDResponse [08:11:56]1017 (14) - 77093643461234 [08:11:56]1041 (16) - 0000000000874798 [08:11:56]1040 (4) - 123181 [08:11:56]1012 (4) - 03.03.2024 02:14 [08:11:56]1206 (1) - 0 [08:11:56]OFD Sender: Remove packet 123181 [08:11:56]ProducePacketName [08:11:56]name=ofd_packets/00123181 [08:11:56]NVStorageDeleteData [08:11:56]Write to MH i2c: 01 00 00 75 13 88 [08:11:56]Write i2c OK [08:11:56]MH_I2C_Read... [08:11:56]Read from MH i2c: 01 [08:11:56]MH_I2C_Read... [08:11:56]Read from MH i2c: 01 07 00 [08:11:56]MH_I2C_Read... [08:11:56]Read from MH i2c: 01 07 00 75 13 00 00 00 00 00 FE 0C 99 [08:11:56]RasterBufferAndPrint [08:11:56]line [08:11:56]line [08:11:56]line [08:11:56]line [08:11:56]line [08:11:56]written 0, free lines is 3335 [08:11:56]MH_Cut [08:11:56]Write to MH i2c: D1 01 00 7C 13 01 61 [08:11:56]Write i2c OK [08:11:56]MH_I2C_Read... [08:11:56]Read from MH i2c: D1 [08:11:56]MH_I2C_Read... [08:11:56]Read from MH i2c: D1 01 00 [08:11:56]MH_I2C_Read... [08:11:56]Read from MH i2c: D1 01 00 7C 13 00 60 [08:11:56]Write to MH i2c: 01 00 00 7D 13 90 [08:11:56]Write i2c OK [08:11:56]MH_I2C_Read... [08:11:56]OFD Sender: No OFD packet to send [08:11:56]*** Cut start [08:11:56]*** Purtial cut [08:11:56]*** Stage 1: CUTSNS_PIN = 1 [08:11:58]Read from MH i2c: 01 [08:11:58]MH_I2C_Read... [08:11:58]*** Stop cut motor [08:11:58]*** Cut end [08:11:58]Read from MH i2c: 01 07 00 [08:11:58]MH_I2C_Read... [08:11:58]Read from MH i2c: 01 07 00 7D 13 00 00 00 00 00 FF 0F A5 [08:11:58]process_action close_receipt done [08:11:58]requested_data is exist [08:11:58]produce_requested_data [08:11:58]requested_item fm.sn is exist - process it [08:11:58]wFMCommunicate request_size=4 [08:11:58]MH_SAM_APDU [08:11:58]CAPDU: 80 11 00 00 [08:11:58]Write to MH i2c: E2 08 00 7E 13 80 11 00 00 00 00 00 00 0B [08:11:58]Write i2c OK [08:11:58]MH_I2C_Read... [08:11:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:11:58]Read from MH i2c: E2 [08:11:58]MH_I2C_Read... [08:11:58]Read from MH i2c: E2 17 00 [08:11:58]MH_I2C_Read... [08:11:58]Read from MH i2c: E2 17 00 7E 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 69 [08:11:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [08:11:58]wFMCommunicate OK [08:11:58]requested_item fd.num is exist - process it [08:11:58]SAM_PROTO_GetFieldsCounters [08:11:58]wFMCommunicate request_size=4 [08:11:58]MH_SAM_APDU [08:11:58]CAPDU: 80 13 00 00 [08:11:58]Write to MH i2c: E2 08 00 7F 13 80 13 00 00 00 00 00 00 0E [08:11:58]Write i2c OK [08:11:58]MH_I2C_Read... [08:11:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:11:59]Read from MH i2c: E2 [08:11:59]MH_I2C_Read... [08:11:59]Read from MH i2c: E2 62 00 [08:11:59]MH_I2C_Read... [08:11:59]Read from MH i2c: E2 62 00 7F 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 2D E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 FE [08:11: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 2D E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:11:59]wFMCommunicate OK [08:11:59]SAM_PROTO_GetFieldsCounters done [08:11:59]requested_item shift.num is exist - process it [08:11:59]requested_item shift.opened is exist - process it [08:11:59]req_shift_opened [08:11:59]FM_GetShiftState [08:11:59]SAM_PROTO_GetShiftState [08:11:59]wFMCommunicate request_size=4 [08:11:59]MH_SAM_APDU [08:11:59]CAPDU: 80 13 01 00 [08:11:59]Write to MH i2c: E2 08 00 80 13 80 13 01 00 00 00 00 00 10 [08:11:59]Write i2c OK [08:11:59]MH_I2C_Read... [08:11:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:11:59]Read from MH i2c: E2 [08:11:59]MH_I2C_Read... [08:11:59]Read from MH i2c: E2 0E 00 [08:11:59]MH_I2C_Read... [08:11:59]Read from MH i2c: E2 0E 00 80 13 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 D2 [08:11:59]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [08:11:59]wFMCommunicate OK [08:11:59]SAM_PROTO_GetShiftState done [08:11:59]FM_GetShiftState done [08:11:59]req_shift_opened done [08:11:59]requested_item shift.open_date is exist - process it [08:11:59]req_shift_open_date [08:11:59]req_shift_open_date done [08:11:59]produce_requested_data done [08:11:59]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123181,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [08:11:59]process_action_free close_receipt [08:11:59]json_value_free [08:11:59]json_value_free done [08:11:59]process_json_proto returns [08:11:59]Send response to host [08:11:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123181,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [08:11:59]free response buf [08:11:59]execute_script done [08:11:59]execute_script returns [08:11:59]free content buf [08:11:59]Sock 9.Close socket [08:11:59]Sock 9.Thread stoped [08:12:01]OFD Sender: No OFD packet to send [08:12:06]OFD Sender: No OFD packet to send [08:12:11]OFD Sender: No OFD packet to send [08:12:16]OFD Sender: No OFD packet to send [08:12:21]OFD Sender: No OFD packet to send [08:12:26]OFD Sender: No OFD packet to send [08:12:31]OFD Sender: No OFD packet to send [08:12:36]OFD Sender: No OFD packet to send [08:12:41]OFD Sender: No OFD packet to send [08:12:46]OFD Sender: No OFD packet to send [08:12:51]OFD Sender: No OFD packet to send [08:12:56]OFD Sender: No OFD packet to send [08:13:01]OFD Sender: No OFD packet to send [08:13:06]OFD Sender: No OFD packet to send [08:13:11]OFD Sender: No OFD packet to send [08:13:16]OFD Sender: No OFD packet to send [08:13:21]OFD Sender: No OFD packet to send [08:13:26]OFD Sender: No OFD packet to send [08:13:31]OFD Sender: No OFD packet to send [08:13:36]OFD Sender: No OFD packet to send [08:13:41]OFD Sender: No OFD packet to send [08:13:46]OFD Sender: No OFD packet to send [08:13:51]OFD Sender: No OFD packet to send [08:13:56]OFD Sender: No OFD packet to send [08:14:01]OFD Sender: No OFD packet to send [08:14:06]OFD Sender: No OFD packet to send [08:14:11]OFD Sender: No OFD packet to send [08:14:16]OFD Sender: No OFD packet to send [08:14:21]OFD Sender: No OFD packet to send [08:14:26]OFD Sender: No OFD packet to send [08:14:31]OFD Sender: No OFD packet to send [08:14:36]OFD Sender: No OFD packet to send [08:14:41]OFD Sender: No OFD packet to send [08:14:46]OFD Sender: No OFD packet to send [08:14:51]OFD Sender: No OFD packet to send [08:14:56]OFD Sender: No OFD packet to send [08:15:01]OFD Sender: No OFD packet to send [08:15:06]OFD Sender: No OFD packet to send [08:15:11]OFD Sender: No OFD packet to send [08:15:16]OFD Sender: No OFD packet to send [08:15:21]OFD Sender: No OFD packet to send [08:15:26]OFD Sender: No OFD packet to send [08:15:31]OFD Sender: No OFD packet to send [08:15:36]OFD Sender: No OFD packet to send [08:15:41]OFD Sender: No OFD packet to send [08:15:46]OFD Sender: No OFD packet to send [08:15:51]OFD Sender: No OFD packet to send [08:15:56]OFD Sender: No OFD packet to send [08:16:01]OFD Sender: No OFD packet to send [08:16:06]OFD Sender: No OFD packet to send [08:16:11]OFD Sender: No OFD packet to send [08:16:16]OFD Sender: No OFD packet to send [08:16:21]OFD Sender: No OFD packet to send [08:16:26]OFD Sender: No OFD packet to send [08:16:31]OFD Sender: No OFD packet to send [08:16:36]OFD Sender: No OFD packet to send [08:16:41]OFD Sender: No OFD packet to send [08:16:46]OFD Sender: No OFD packet to send [08:16:51]OFD Sender: No OFD packet to send [08:16:56]OFD Sender: No OFD packet to send [08:17:01]OFD Sender: No OFD packet to send [08:17:06]OFD Sender: No OFD packet to send [08:17:11]OFD Sender: No OFD packet to send [08:17:16]OFD Sender: No OFD packet to send [08:17:21]OFD Sender: No OFD packet to send [08:17:26]OFD Sender: No OFD packet to send [08:17:31]OFD Sender: No OFD packet to send [08:17:36]OFD Sender: No OFD packet to send [08:17:41]OFD Sender: No OFD packet to send [08:17:46]OFD Sender: No OFD packet to send [08:17:51]OFD Sender: No OFD packet to send [08:17:56]OFD Sender: No OFD packet to send [08:18:01]OFD Sender: No OFD packet to send [08:18:06]OFD Sender: No OFD packet to send [08:18:11]OFD Sender: No OFD packet to send [08:18:16]OFD Sender: No OFD packet to send [08:18:21]OFD Sender: No OFD packet to send [08:18:26]OFD Sender: No OFD packet to send [08:18:31]OFD Sender: No OFD packet to send [08:18:36]OFD Sender: No OFD packet to send [08:18:41]OFD Sender: No OFD packet to send [08:18:46]OFD Sender: No OFD packet to send [08:18:51]OFD Sender: No OFD packet to send [08:18:56]OFD Sender: No OFD packet to send [08:19:01]OFD Sender: No OFD packet to send [08:19:07]OFD Sender: No OFD packet to send [08:19:12]OFD Sender: No OFD packet to send [08:19:17]OFD Sender: No OFD packet to send [08:19:22]OFD Sender: No OFD packet to send [08:19:27]OFD Sender: No OFD packet to send [08:19:32]OFD Sender: No OFD packet to send [08:19:37]OFD Sender: No OFD packet to send [08:19:42]OFD Sender: No OFD packet to send [08:19:47]OFD Sender: No OFD packet to send [08:19:52]OFD Sender: No OFD packet to send [08:19:57]OFD Sender: No OFD packet to send [08:20:02]OFD Sender: No OFD packet to send [08:20:07]OFD Sender: No OFD packet to send [08:20:12]OFD Sender: No OFD packet to send [08:20:17]OFD Sender: No OFD packet to send [08:20:22]OFD Sender: No OFD packet to send [08:20:27]OFD Sender: No OFD packet to send [08:20:32]OFD Sender: No OFD packet to send [08:20:37]OFD Sender: No OFD packet to send [08:20:42]OFD Sender: No OFD packet to send [08:20:47]OFD Sender: No OFD packet to send [08:20:52]OFD Sender: No OFD packet to send [08:20:57]OFD Sender: No OFD packet to send [08:21:02]OFD Sender: No OFD packet to send [08:21:07]OFD Sender: No OFD packet to send [08:21:12]OFD Sender: No OFD packet to send [08:21:17]OFD Sender: No OFD packet to send [08:21:22]OFD Sender: No OFD packet to send [08:21:27]OFD Sender: No OFD packet to send [08:21:32]OFD Sender: No OFD packet to send [08:21:37]OFD Sender: No OFD packet to send [08:21:42]OFD Sender: No OFD packet to send [08:21:47]OFD Sender: No OFD packet to send [08:21:52]OFD Sender: No OFD packet to send [08:21:57]OFD Sender: No OFD packet to send [08:22:02]OFD Sender: No OFD packet to send [08:22:07]OFD Sender: No OFD packet to send [08:22:12]OFD Sender: No OFD packet to send [08:22:17]OFD Sender: No OFD packet to send [08:22:22]OFD Sender: No OFD packet to send [08:22:27]OFD Sender: No OFD packet to send [08:22:32]OFD Sender: No OFD packet to send [08:22:37]OFD Sender: No OFD packet to send [08:22:42]OFD Sender: No OFD packet to send [08:22:47]OFD Sender: No OFD packet to send [08:22:52]OFD Sender: No OFD packet to send [08:22:57]OFD Sender: No OFD packet to send [08:23:02]OFD Sender: No OFD packet to send [08:23:07]OFD Sender: No OFD packet to send [08:23:12]OFD Sender: No OFD packet to send [08:23:17]OFD Sender: No OFD packet to send [08:23:22]OFD Sender: No OFD packet to send [08:23:27]OFD Sender: No OFD packet to send [08:23:32]OFD Sender: No OFD packet to send [08:23:37]OFD Sender: No OFD packet to send [08:23:42]OFD Sender: No OFD packet to send [08:23:47]OFD Sender: No OFD packet to send [08:23:52]OFD Sender: No OFD packet to send [08:23:57]OFD Sender: No OFD packet to send [08:24:02]OFD Sender: No OFD packet to send [08:24:07]OFD Sender: No OFD packet to send [08:24:12]OFD Sender: No OFD packet to send [08:24:17]OFD Sender: No OFD packet to send [08:24:22]OFD Sender: No OFD packet to send [08:24:27]OFD Sender: No OFD packet to send [08:24:32]OFD Sender: No OFD packet to send [08:24:37]OFD Sender: No OFD packet to send [08:24:42]OFD Sender: No OFD packet to send [08:24:47]OFD Sender: No OFD packet to send [08:24:52]OFD Sender: No OFD packet to send [08:24:57]OFD Sender: No OFD packet to send [08:25:02]OFD Sender: No OFD packet to send [08:25:07]OFD Sender: No OFD packet to send [08:25:12]OFD Sender: No OFD packet to send [08:25:17]OFD Sender: No OFD packet to send [08:25:22]OFD Sender: No OFD packet to send [08:25:27]OFD Sender: No OFD packet to send [08:25:32]OFD Sender: No OFD packet to send [08:25:37]OFD Sender: No OFD packet to send [08:25:42]OFD Sender: No OFD packet to send [08:25:47]OFD Sender: No OFD packet to send [08:25:52]OFD Sender: No OFD packet to send [08:25:57]OFD Sender: No OFD packet to send [08:26:02]OFD Sender: No OFD packet to send [08:26:07]OFD Sender: No OFD packet to send [08:26:12]OFD Sender: No OFD packet to send [08:26:17]OFD Sender: No OFD packet to send [08:26:22]OFD Sender: No OFD packet to send [08:26:27]OFD Sender: No OFD packet to send [08:26:32]OFD Sender: No OFD packet to send [08:26:37]OFD Sender: No OFD packet to send [08:26:42]OFD Sender: No OFD packet to send [08:26:47]OFD Sender: No OFD packet to send [08:26:52]OFD Sender: No OFD packet to send [08:26:57]OFD Sender: No OFD packet to send [08:27:02]OFD Sender: No OFD packet to send [08:27:07]OFD Sender: No OFD packet to send [08:27:12]OFD Sender: No OFD packet to send [08:27:17]OFD Sender: No OFD packet to send [08:27:22]OFD Sender: No OFD packet to send [08:27:27]OFD Sender: No OFD packet to send [08:27:32]OFD Sender: No OFD packet to send [08:27:37]OFD Sender: No OFD packet to send [08:27:42]OFD Sender: No OFD packet to send [08:27:47]OFD Sender: No OFD packet to send [08:27:52]OFD Sender: No OFD packet to send [08:27:57]OFD Sender: No OFD packet to send [08:27:57]accept exits with 7 [08:27:57]New connection [08:27:57]New thread 3067395428 created [08:27:57]Thread 3067252068 joined [08:27:57]Waiting for new connection... [08:27:57] Sock 7.Parse request [08:27:57]Sock 7.Check first char [08:27:57]Sock 7.First char is OK [08:27:57]request: POST /json_proto HTTP/1.0 [08:27:57]Method: POST [08:27:57]URL: /json_proto [08:27:57]Method is POST - this is cgi request [08:27:57]url: /json_proto [08:27:57]query_string will be loaded in cgi processing [08:27:57]execute_cgi json_proto POST (null) [08:27:57]execute_cgi path=json_proto method=POST [08:27:57]POST find Content-Length [08:27:57]Host: 172.17.48.197:8080 [08:27:57]Content-Length: 215 [08:27:57]Content-Type: application/json [08:27:57] [08:27:57]POST finish read [08:27:57]Found Content-Length = 215 [08:27:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:27:57]execute_script... [08:27:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:27:57]POST & json_proto [08:27:57]process_json_proto [08:27:57]json parsed OK: [08:27:57]protocol is kg_v1.0 [08:27:57]action value=get_value [08:27:57]process_action get_value [08:27:57]cmd_get_value [08:27:57]process_action get_value done [08:27:57]requested_data is exist [08:27:57]produce_requested_data [08:27:57]requested_item kkm.sn is exist - process it [08:27:57]requested_item kkm.ver is exist - process it [08:27:57]requested_item fm.sn is exist - process it [08:27:57]wFMCommunicate request_size=4 [08:27:57]MH_SAM_APDU [08:27:57]CAPDU: 80 11 00 00 [08:27:57]Write to MH i2c: E2 08 00 81 13 80 11 00 00 00 00 00 00 0E [08:27:57]Write i2c OK [08:27:57]MH_I2C_Read... [08:27:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:27:57]Read from MH i2c: E2 [08:27:57]MH_I2C_Read... [08:27:57]Read from MH i2c: E2 17 00 [08:27:57]MH_I2C_Read... [08:27:57]Read from MH i2c: E2 17 00 81 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 6C [08:27:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [08:27:57]wFMCommunicate OK [08:27:57]requested_item fd.num is exist - process it [08:27:57]SAM_PROTO_GetFieldsCounters [08:27:57]wFMCommunicate request_size=4 [08:27:57]MH_SAM_APDU [08:27:57]CAPDU: 80 13 00 00 [08:27:57]Write to MH i2c: E2 08 00 82 13 80 13 00 00 00 00 00 00 11 [08:27:57]Write i2c OK [08:27:57]MH_I2C_Read... [08:27:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:27:57]Read from MH i2c: E2 [08:27:57]MH_I2C_Read... [08:27:57]Read from MH i2c: E2 62 00 [08:27:57]MH_I2C_Read... [08:27:57]Read from MH i2c: E2 62 00 82 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 2D E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 01 [08: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 2D E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:27:57]wFMCommunicate OK [08:27:57]SAM_PROTO_GetFieldsCounters done [08:27:57]requested_item shift.num is exist - process it [08:27:57]requested_item shift.opened is exist - process it [08:27:57]req_shift_opened [08:27:57]FM_GetShiftState [08:27:57]SAM_PROTO_GetShiftState [08:27:57]wFMCommunicate request_size=4 [08:27:57]MH_SAM_APDU [08:27:57]CAPDU: 80 13 01 00 [08:27:57]Write to MH i2c: E2 08 00 83 13 80 13 01 00 00 00 00 00 13 [08:27:57]Write i2c OK [08:27:57]MH_I2C_Read... [08:27:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:27:57]Read from MH i2c: E2 [08:27:57]MH_I2C_Read... [08:27:57]Read from MH i2c: E2 0E 00 [08:27:57]MH_I2C_Read... [08:27:57]Read from MH i2c: E2 0E 00 83 13 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 D5 [08:27:57]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [08:27:57]wFMCommunicate OK [08:27:57]SAM_PROTO_GetShiftState done [08:27:57]FM_GetShiftState done [08:27:57]req_shift_opened done [08:27:57]requested_item shift.open_date is exist - process it [08:27:57]req_shift_open_date [08:27:57]req_shift_open_date done [08:27:57]produce_requested_data done [08:27:57]produce_requested_data return {"kkm.sn":"0300000019","kkm.ver":"001","fm.sn":"0000000000874798","fd.num":123181,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [08:27:57]process_action_free get_value [08:27:57]json_value_free [08:27:57]json_value_free done [08:27:57]process_json_proto returns [08:27:57]Send response to host [08:27:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000019","kkm.ver":"001","fm.sn":"0000000000874798","fd.num":123181,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [08:27:57]free response buf [08:27:57]execute_script done [08:27:57]execute_script returns [08:27:57]free content buf [08:27:57]Sock 7.Close socket [08:27:57]Sock 7.Thread stoped [08:27:58]accept exits with 9 [08:27:58]New connection [08:27:58]New thread 3067252068 created [08:27:58]Thread 3067395428 joined [08:27:58]Waiting for new connection... [08:27:58] Sock 9.Parse request [08:27:58]Sock 9.Check first char [08:27:58]Sock 9.First char is OK [08:27:58]request: POST /json_proto HTTP/1.0 [08:27:58]Method: POST [08:27:58]URL: /json_proto [08:27:58]Method is POST - this is cgi request [08:27:58]url: /json_proto [08:27:58]query_string will be loaded in cgi processing [08:27:58]execute_cgi json_proto POST (null) [08:27:58]execute_cgi path=json_proto method=POST [08:27:58]POST find Content-Length [08:27:58]Host: 172.17.48.197:8080 [08:27:58]Content-Length: 331 [08:27:58]Content-Type: application/json [08:27:58] [08:27:58]POST finish read [08:27:58]Found Content-Length = 331 [08:27:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [08:27:58]execute_script... [08:27:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [08:27:58]POST & json_proto [08:27:58]process_json_proto [08:27:58]json parsed OK: [08:27:58]protocol is kg_v1.0 [08:27:58]action value=get_value [08:27:58]process_action get_value [08:27:58]cmd_get_value [08:27:58]process_action get_value done [08:27:58]requested_data is exist [08:27:58]produce_requested_data [08:27:58]requested_item fm.sale.total is exist - process it [08:27:58]SAM_PROTO_GetFMData [08:27:58]wFMCommunicate request_size=4 [08:27:58]MH_SAM_APDU [08:27:58]CAPDU: 80 13 03 00 [08:27:58]Write to MH i2c: E2 08 00 84 13 80 13 03 00 00 00 00 00 16 [08:27:58]Write i2c OK [08:27:58]MH_I2C_Read... [08:27:58]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [08:27:58]Read from MH i2c: E2 [08:27:58]MH_I2C_Read... [08:27:58]Read from MH i2c: E2 FD 00 [08:27:58]MH_I2C_Read... [08:27:58]Read from MH i2c: E2 FD 00 84 13 00 C7 04 85 04 C3 04 6E 04 04 00 A7 DE 01 00 69 04 A3 00 6F 04 04 00 95 C9 01 00 B1 04 05 00 D3 72 14 6E 02 70 04 05 00 6D 8D F2 AA 01 72 04 04 00 66 E5 21 C3 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 BB 22 13 42 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 FB 70 81 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 12 15 00 00 B1 04 04 00 B1 98 54 34 70 04 04 00 91 4A 54 34 72 04 02 00 20 4E 00 04 7C 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 25 DB 8E 05 EF 90 00 29 [08:27:58]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 A7 DE 01 00 69 04 A3 00 6F 04 04 00 95 C9 01 00 B1 04 05 00 D3 72 14 6E 02 70 04 05 00 6D 8D F2 AA 01 72 04 04 00 66 E5 21 C3 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 BB 22 13 42 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 FB 70 81 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 12 15 00 00 B1 04 04 00 B1 98 54 34 70 04 04 00 91 4A 54 34 72 04 02 00 20 4E 00 04 7C 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 25 DB 8E 05 EF 90 00 [08:27:58]wFMCommunicate OK [08:27:58]wFMCommunicate request_size=4 [08:27:58]MH_SAM_APDU [08:27:58]CAPDU: 80 17 00 00 [08:27:58]Write to MH i2c: E2 08 00 85 13 80 17 00 00 00 00 00 00 18 [08:27:58]Write i2c OK [08:27:58]MH_I2C_Read... [08:27:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:27:58]Read from MH i2c: E2 [08:27:58]MH_I2C_Read... [08:27:58]Read from MH i2c: E2 FD 00 [08:27:58]MH_I2C_Read... [08:27:58]Read from MH i2c: E2 FD 00 85 13 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 93 90 76 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 BE [08:27:58]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 93 90 76 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:27:58]wFMCommunicate OK [08:27:58]wFMCommunicate request_size=4 [08:27:58]MH_SAM_APDU [08:27:58]CAPDU: 80 17 00 00 [08:27:58]Write to MH i2c: E2 08 00 86 13 80 17 00 00 00 00 00 00 19 [08:27:58]Write i2c OK [08:27:58]MH_I2C_Read... [08:27:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:27:59]Read from MH i2c: E2 [08:27:59]MH_I2C_Read... [08:27:59]Read from MH i2c: E2 FD 00 [08:27:59]MH_I2C_Read... [08:27:59]Read from MH i2c: E2 FD 00 86 13 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F1 [08:27:59]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 [08:27:59]wFMCommunicate OK [08:27:59]wFMCommunicate request_size=4 [08:27:59]MH_SAM_APDU [08:27:59]CAPDU: 80 17 00 00 [08:27:59]Write to MH i2c: E2 08 00 87 13 80 17 00 00 00 00 00 00 1A [08:27:59]Write i2c OK [08:27:59]MH_I2C_Read... [08:27:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:27:59]Read from MH i2c: E2 [08:27:59]MH_I2C_Read... [08:27:59]Read from MH i2c: E2 FD 00 [08:27:59]MH_I2C_Read... [08:27:59]Read from MH i2c: E2 FD 00 87 13 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 95 [08:27:59]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 [08:27:59]wFMCommunicate OK [08:27:59]wFMCommunicate request_size=4 [08:27:59]MH_SAM_APDU [08:27:59]CAPDU: 80 17 00 00 [08:27:59]Write to MH i2c: E2 08 00 88 13 80 17 00 00 00 00 00 00 1B [08:27:59]Write i2c OK [08:27:59]MH_I2C_Read... [08:27:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [08:27:59]Read from MH i2c: E2 [08:27:59]MH_I2C_Read... [08:27:59]Read from MH i2c: E2 E4 00 [08:27:59]MH_I2C_Read... [08:27:59]Read from MH i2c: E2 E4 00 88 13 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 FB [08:27:59]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 [08:27:59]wFMCommunicate OK [08:27:59]SAM_PROTO_GetFMData done [08:27:59]requested_item fm.sale_refund.total is exist - process it [08:27:59]requested_item fm.buy.total is exist - process it [08:27:59]requested_item shift.sale.total is exist - process it [08:27:59]SAM_PROTO_GetShiftData [08:27:59]wFMCommunicate request_size=4 [08:27:59]MH_SAM_APDU [08:27:59]CAPDU: 80 13 02 00 [08:27:59]Write to MH i2c: E2 08 00 89 13 80 13 02 00 00 00 00 00 1A [08:27:59]Write i2c OK [08:27:59]MH_I2C_Read... [08:28:00]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [08:28:00]Read from MH i2c: E2 [08:28:00]MH_I2C_Read... [08:28:00]Read from MH i2c: E2 FD 00 [08:28:00]MH_I2C_Read... [08:28:00]Read from MH i2c: E2 FD 00 89 13 00 AE 04 AA 04 AA 04 6E 04 04 00 26 00 00 00 69 04 9B 00 6F 04 04 00 26 00 00 00 B1 04 03 00 78 B2 31 70 04 03 00 B4 AD 25 72 04 03 00 C4 04 0C 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 71 47 05 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 9D 70 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 A6 [08:28:00]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 26 00 00 00 69 04 9B 00 6F 04 04 00 26 00 00 00 B1 04 03 00 78 B2 31 70 04 03 00 B4 AD 25 72 04 03 00 C4 04 0C 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 71 47 05 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 9D 70 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [08:28:00]wFMCommunicate OK [08:28:00]wFMCommunicate request_size=4 [08:28:00]MH_SAM_APDU [08:28:00]CAPDU: 80 17 00 00 [08:28:00]Write to MH i2c: E2 08 00 8A 13 80 17 00 00 00 00 00 00 1D [08:28:00]Write i2c OK [08:28:00]MH_I2C_Read... [08:28:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:28:00]Read from MH i2c: E2 [08:28:00]MH_I2C_Read... [08:28:00]Read from MH i2c: E2 FD 00 [08:28:00]MH_I2C_Read... [08:28:00]Read from MH i2c: E2 FD 00 8A 13 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 3F [08:28:00]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [08:28:00]wFMCommunicate OK [08:28:00]wFMCommunicate request_size=4 [08:28:00]MH_SAM_APDU [08:28:00]CAPDU: 80 17 00 00 [08:28:00]Write to MH i2c: E2 08 00 8B 13 80 17 00 00 00 00 00 00 1E [08:28:00]Write i2c OK [08:28:00]MH_I2C_Read... [08:28:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:28:00]Read from MH i2c: E2 [08:28:00]MH_I2C_Read... [08:28:00]Read from MH i2c: E2 FD 00 [08:28:00]MH_I2C_Read... [08:28:00]Read from MH i2c: E2 FD 00 8B 13 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 D5 [08:28:00]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [08:28:00]wFMCommunicate OK [08:28:00]wFMCommunicate request_size=4 [08:28:00]MH_SAM_APDU [08:28:00]CAPDU: 80 17 00 00 [08:28:00]Write to MH i2c: E2 08 00 8C 13 80 17 00 00 00 00 00 00 1F [08:28:00]Write i2c OK [08:28:00]MH_I2C_Read... [08:28:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:28:00]Read from MH i2c: E2 [08:28:00]MH_I2C_Read... [08:28:00]Read from MH i2c: E2 FD 00 [08:28:00]MH_I2C_Read... [08:28:00]Read from MH i2c: E2 FD 00 8C 13 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 91 [08:28:01]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [08:28:01]wFMCommunicate OK [08:28:01]wFMCommunicate request_size=4 [08:28:01]MH_SAM_APDU [08:28:01]CAPDU: 80 17 00 00 [08:28:01]Write to MH i2c: E2 08 00 8D 13 80 17 00 00 00 00 00 00 20 [08:28:01]Write i2c OK [08:28:01]MH_I2C_Read... [08:28:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [08:28:01]Read from MH i2c: E2 [08:28:01]MH_I2C_Read... [08:28:01]Read from MH i2c: E2 CB 00 [08:28:01]MH_I2C_Read... [08:28:01]Read from MH i2c: E2 CB 00 8D 13 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 09 [08:28:01]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [08:28:01]wFMCommunicate OK [08:28:01]SAM_PROTO_GetShiftData done [08:28:01]requested_item shift.sale.total_cash is exist - process it [08:28:01]requested_item shift.sale_refund.total is exist - process it [08:28:01]requested_item shift.sale_refund.total_cash is exist - process it [08:28:01]requested_item shift.buy.total is exist - process it [08:28:01]requested_item shift.buy.total_cash is exist - process it [08:28:01]produce_requested_data done [08:28:01]produce_requested_data return {"fm.sale.total":104367684.67,"fm.sale_refund.total":8779593.45,"fm.buy.total":0.00,"shift.sale.total":32569.52,"shift.sale.total_cash":24693.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [08:28:01]process_action_free get_value [08:28:01]json_value_free [08:28:01]json_value_free done [08:28:01]process_json_proto returns [08:28:01]Send response to host [08:28:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":104367684.67,"fm.sale_refund.total":8779593.45,"fm.buy.total":0.00,"shift.sale.total":32569.52,"shift.sale.total_cash":24693.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [08:28:01]free response buf [08:28:01]execute_script done [08:28:01]execute_script returns [08:28:01]free content buf [08:28:01]Sock 9.Close socket [08:28:01]Sock 9.Thread stoped [08:28:02]OFD Sender: No OFD packet to send [08:28:07]OFD Sender: No OFD packet to send [08:28:12]OFD Sender: No OFD packet to send [08:28:17]OFD Sender: No OFD packet to send [08:28:22]OFD Sender: No OFD packet to send [08:28:27]OFD Sender: No OFD packet to send [08:28:32]OFD Sender: No OFD packet to send [08:28:37]OFD Sender: No OFD packet to send [08:28:42]OFD Sender: No OFD packet to send [08:28:47]OFD Sender: No OFD packet to send [08:28:52]OFD Sender: No OFD packet to send [08:28:57]OFD Sender: No OFD packet to send [08:29:02]OFD Sender: No OFD packet to send [08:29:07]OFD Sender: No OFD packet to send [08:29:12]OFD Sender: No OFD packet to send [08:29:17]OFD Sender: No OFD packet to send [08:29:22]OFD Sender: No OFD packet to send [08:29:27]OFD Sender: No OFD packet to send [08:29:32]OFD Sender: No OFD packet to send [08:29:37]OFD Sender: No OFD packet to send [08:29:42]OFD Sender: No OFD packet to send [08:29:47]OFD Sender: No OFD packet to send [08:29:52]OFD Sender: No OFD packet to send [08:29:57]OFD Sender: No OFD packet to send [08:30:02]OFD Sender: No OFD packet to send [08:30:07]OFD Sender: No OFD packet to send [08:30:12]OFD Sender: No OFD packet to send [08:30:17]OFD Sender: No OFD packet to send [08:30:22]OFD Sender: No OFD packet to send [08:30:27]OFD Sender: No OFD packet to send [08:30:32]OFD Sender: No OFD packet to send [08:30:37]OFD Sender: No OFD packet to send [08:30:42]OFD Sender: No OFD packet to send [08:30:47]OFD Sender: No OFD packet to send [08:30:52]OFD Sender: No OFD packet to send [08:30:57]OFD Sender: No OFD packet to send [08:31:02]OFD Sender: No OFD packet to send [08:31:07]OFD Sender: No OFD packet to send [08:31:12]OFD Sender: No OFD packet to send [08:31:17]OFD Sender: No OFD packet to send [08:31:22]OFD Sender: No OFD packet to send [08:31:27]OFD Sender: No OFD packet to send [08:31:32]OFD Sender: No OFD packet to send [08:31:37]OFD Sender: No OFD packet to send [08:31:42]OFD Sender: No OFD packet to send [08:31:47]OFD Sender: No OFD packet to send [08:31:52]OFD Sender: No OFD packet to send [08:31:57]OFD Sender: No OFD packet to send [08:32:02]OFD Sender: No OFD packet to send [08:32:07]OFD Sender: No OFD packet to send [08:32:12]OFD Sender: No OFD packet to send [08:32:17]OFD Sender: No OFD packet to send [08:32:22]OFD Sender: No OFD packet to send [08:32:27]OFD Sender: No OFD packet to send [08:32:33]OFD Sender: No OFD packet to send [08:32:38]OFD Sender: No OFD packet to send [08:32:43]OFD Sender: No OFD packet to send [08:32:48]OFD Sender: No OFD packet to send [08:32:53]OFD Sender: No OFD packet to send [08:32:58]OFD Sender: No OFD packet to send [08:33:03]OFD Sender: No OFD packet to send [08:33:08]OFD Sender: No OFD packet to send [08:33:13]OFD Sender: No OFD packet to send [08:33:18]OFD Sender: No OFD packet to send [08:33:23]OFD Sender: No OFD packet to send [08:33:24]accept exits with 7 [08:33:24]New connection [08:33:24]New thread 3067395428 created [08:33:24]Thread 3067252068 joined [08:33:24]Waiting for new connection... [08:33:24] Sock 7.Parse request [08:33:24]Sock 7.Check first char [08:33:24]Sock 7.First char is OK [08:33:24]request: POST /json_proto HTTP/1.0 [08:33:24]Method: POST [08:33:24]URL: /json_proto [08:33:24]Method is POST - this is cgi request [08:33:24]url: /json_proto [08:33:24]query_string will be loaded in cgi processing [08:33:24]execute_cgi json_proto POST (null) [08:33:24]execute_cgi path=json_proto method=POST [08:33:24]POST find Content-Length [08:33:24]Host: 172.17.48.197:8080 [08:33:24]Content-Length: 215 [08:33:24]Content-Type: application/json [08:33:24] [08:33:24]POST finish read [08:33:24]Found Content-Length = 215 [08:33:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:33:24]execute_script... [08:33:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:33:24]POST & json_proto [08:33:24]process_json_proto [08:33:24]json parsed OK: [08:33:24]protocol is kg_v1.0 [08:33:24]action value=get_value [08:33:24]process_action get_value [08:33:24]cmd_get_value [08:33:24]process_action get_value done [08:33:24]requested_data is exist [08:33:24]produce_requested_data [08:33:24]requested_item kkm.sn is exist - process it [08:33:24]requested_item kkm.ver is exist - process it [08:33:24]requested_item fm.sn is exist - process it [08:33:24]wFMCommunicate request_size=4 [08:33:24]MH_SAM_APDU [08:33:24]CAPDU: 80 11 00 00 [08:33:24]Write to MH i2c: E2 08 00 8E 13 80 11 00 00 00 00 00 00 1B [08:33:24]Write i2c OK [08:33:24]MH_I2C_Read... [08:33:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:33:24]Read from MH i2c: E2 [08:33:24]MH_I2C_Read... [08:33:24]Read from MH i2c: E2 17 00 [08:33:24]MH_I2C_Read... [08:33:24]Read from MH i2c: E2 17 00 8E 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 79 [08:33:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [08:33:24]wFMCommunicate OK [08:33:24]requested_item fd.num is exist - process it [08:33:24]SAM_PROTO_GetFieldsCounters [08:33:24]wFMCommunicate request_size=4 [08:33:24]MH_SAM_APDU [08:33:24]CAPDU: 80 13 00 00 [08:33:24]Write to MH i2c: E2 08 00 8F 13 80 13 00 00 00 00 00 00 1E [08:33:24]Write i2c OK [08:33:24]MH_I2C_Read... [08:33:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:33:24]Read from MH i2c: E2 [08:33:24]MH_I2C_Read... [08:33:24]Read from MH i2c: E2 62 00 [08:33:24]MH_I2C_Read... [08:33:24]Read from MH i2c: E2 62 00 8F 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 2D E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 0E [08:33:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 2D E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:33:24]wFMCommunicate OK [08:33:24]SAM_PROTO_GetFieldsCounters done [08:33:24]requested_item shift.num is exist - process it [08:33:24]requested_item shift.opened is exist - process it [08:33:24]req_shift_opened [08:33:24]FM_GetShiftState [08:33:24]SAM_PROTO_GetShiftState [08:33:24]wFMCommunicate request_size=4 [08:33:24]MH_SAM_APDU [08:33:24]CAPDU: 80 13 01 00 [08:33:24]Write to MH i2c: E2 08 00 90 13 80 13 01 00 00 00 00 00 20 [08:33:24]Write i2c OK [08:33:24]MH_I2C_Read... [08:33:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:33:24]Read from MH i2c: E2 [08:33:24]MH_I2C_Read... [08:33:24]Read from MH i2c: E2 0E 00 [08:33:24]MH_I2C_Read... [08:33:24]Read from MH i2c: E2 0E 00 90 13 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 E2 [08:33:24]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [08:33:24]wFMCommunicate OK [08:33:24]SAM_PROTO_GetShiftState done [08:33:24]FM_GetShiftState done [08:33:24]req_shift_opened done [08:33:24]requested_item shift.open_date is exist - process it [08:33:24]req_shift_open_date [08:33:24]req_shift_open_date done [08:33:24]produce_requested_data done [08:33:24]produce_requested_data return {"kkm.sn":"0300000019","kkm.ver":"001","fm.sn":"0000000000874798","fd.num":123181,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [08:33:24]process_action_free get_value [08:33:24]json_value_free [08:33:24]json_value_free done [08:33:24]process_json_proto returns [08:33:24]Send response to host [08:33:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000019","kkm.ver":"001","fm.sn":"0000000000874798","fd.num":123181,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [08:33:24]free response buf [08:33:24]execute_script done [08:33:24]execute_script returns [08:33:24]free content buf [08:33:24]Sock 7.Close socket [08:33:24]Sock 7.Thread stoped [08:33:24]accept exits with 9 [08:33:24]New connection [08:33:24]New thread 3067252068 created [08:33:24]Thread 3067395428 joined [08:33:24]Waiting for new connection... [08:33:24] Sock 9.Parse request [08:33:24]Sock 9.Check first char [08:33:24]Sock 9.First char is OK [08:33:24]request: POST /json_proto HTTP/1.0 [08:33:24]Method: POST [08:33:24]URL: /json_proto [08:33:24]Method is POST - this is cgi request [08:33:24]url: /json_proto [08:33:24]query_string will be loaded in cgi processing [08:33:24]execute_cgi json_proto POST (null) [08:33:24]execute_cgi path=json_proto method=POST [08:33:24]POST find Content-Length [08:33:24]Host: 172.17.48.197:8080 [08:33:24]Content-Length: 331 [08:33:24]Content-Type: application/json [08:33:24] [08:33:24]POST finish read [08:33:24]Found Content-Length = 331 [08:33:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [08:33:24]execute_script... [08:33:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [08:33:24]POST & json_proto [08:33:24]process_json_proto [08:33:24]json parsed OK: [08:33:24]protocol is kg_v1.0 [08:33:24]action value=get_value [08:33:24]process_action get_value [08:33:24]cmd_get_value [08:33:24]process_action get_value done [08:33:24]requested_data is exist [08:33:24]produce_requested_data [08:33:24]requested_item fm.sale.total is exist - process it [08:33:24]SAM_PROTO_GetFMData [08:33:24]wFMCommunicate request_size=4 [08:33:24]MH_SAM_APDU [08:33:24]CAPDU: 80 13 03 00 [08:33:24]Write to MH i2c: E2 08 00 91 13 80 13 03 00 00 00 00 00 23 [08:33:24]Write i2c OK [08:33:24]MH_I2C_Read... [08:33:24]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [08:33:24]Read from MH i2c: E2 [08:33:24]MH_I2C_Read... [08:33:24]Read from MH i2c: E2 FD 00 [08:33:24]MH_I2C_Read... [08:33:24]Read from MH i2c: E2 FD 00 91 13 00 C7 04 85 04 C3 04 6E 04 04 00 A7 DE 01 00 69 04 A3 00 6F 04 04 00 95 C9 01 00 B1 04 05 00 D3 72 14 6E 02 70 04 05 00 6D 8D F2 AA 01 72 04 04 00 66 E5 21 C3 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 BB 22 13 42 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 FB 70 81 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 12 15 00 00 B1 04 04 00 B1 98 54 34 70 04 04 00 91 4A 54 34 72 04 02 00 20 4E 00 04 7C 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 25 DB 8E 05 EF 90 00 36 [08:33:24]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 A7 DE 01 00 69 04 A3 00 6F 04 04 00 95 C9 01 00 B1 04 05 00 D3 72 14 6E 02 70 04 05 00 6D 8D F2 AA 01 72 04 04 00 66 E5 21 C3 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 BB 22 13 42 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 FB 70 81 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 12 15 00 00 B1 04 04 00 B1 98 54 34 70 04 04 00 91 4A 54 34 72 04 02 00 20 4E 00 04 7C 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 25 DB 8E 05 EF 90 00 [08:33:24]wFMCommunicate OK [08:33:24]wFMCommunicate request_size=4 [08:33:24]MH_SAM_APDU [08:33:24]CAPDU: 80 17 00 00 [08:33:24]Write to MH i2c: E2 08 00 92 13 80 17 00 00 00 00 00 00 25 [08:33:24]Write i2c OK [08:33:24]MH_I2C_Read... [08:33:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:33:25]Read from MH i2c: E2 [08:33:25]MH_I2C_Read... [08:33:25]Read from MH i2c: E2 FD 00 [08:33:25]MH_I2C_Read... [08:33:25]Read from MH i2c: E2 FD 00 92 13 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 93 90 76 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 CB [08:33:25]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 93 90 76 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:33:25]wFMCommunicate OK [08:33:25]wFMCommunicate request_size=4 [08:33:25]MH_SAM_APDU [08:33:25]CAPDU: 80 17 00 00 [08:33:25]Write to MH i2c: E2 08 00 93 13 80 17 00 00 00 00 00 00 26 [08:33:25]Write i2c OK [08:33:25]MH_I2C_Read... [08:33:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:33:25]Read from MH i2c: E2 [08:33:25]MH_I2C_Read... [08:33:25]Read from MH i2c: E2 FD 00 [08:33:25]MH_I2C_Read... [08:33:25]Read from MH i2c: E2 FD 00 93 13 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 FE [08:33:25]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 [08:33:25]wFMCommunicate OK [08:33:25]wFMCommunicate request_size=4 [08:33:25]MH_SAM_APDU [08:33:25]CAPDU: 80 17 00 00 [08:33:25]Write to MH i2c: E2 08 00 94 13 80 17 00 00 00 00 00 00 27 [08:33:25]Write i2c OK [08:33:25]MH_I2C_Read... [08:33:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:33:25]Read from MH i2c: E2 [08:33:25]MH_I2C_Read... [08:33:25]Read from MH i2c: E2 FD 00 [08:33:25]MH_I2C_Read... [08:33:25]Read from MH i2c: E2 FD 00 94 13 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A2 [08:33:25]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 [08:33:25]wFMCommunicate OK [08:33:25]wFMCommunicate request_size=4 [08:33:25]MH_SAM_APDU [08:33:25]CAPDU: 80 17 00 00 [08:33:25]Write to MH i2c: E2 08 00 95 13 80 17 00 00 00 00 00 00 28 [08:33:25]Write i2c OK [08:33:25]MH_I2C_Read... [08:33:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [08:33:26]Read from MH i2c: E2 [08:33:26]MH_I2C_Read... [08:33:26]Read from MH i2c: E2 E4 00 [08:33:26]MH_I2C_Read... [08:33:26]Read from MH i2c: E2 E4 00 95 13 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 08 [08:33:26]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 [08:33:26]wFMCommunicate OK [08:33:26]SAM_PROTO_GetFMData done [08:33:26]requested_item fm.sale_refund.total is exist - process it [08:33:26]requested_item fm.buy.total is exist - process it [08:33:26]requested_item shift.sale.total is exist - process it [08:33:26]SAM_PROTO_GetShiftData [08:33:26]wFMCommunicate request_size=4 [08:33:26]MH_SAM_APDU [08:33:26]CAPDU: 80 13 02 00 [08:33:26]Write to MH i2c: E2 08 00 96 13 80 13 02 00 00 00 00 00 27 [08:33:26]Write i2c OK [08:33:26]MH_I2C_Read... [08:33:26]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [08:33:26]Read from MH i2c: E2 [08:33:26]MH_I2C_Read... [08:33:26]Read from MH i2c: E2 FD 00 [08:33:26]MH_I2C_Read... [08:33:26]Read from MH i2c: E2 FD 00 96 13 00 AE 04 AA 04 AA 04 6E 04 04 00 26 00 00 00 69 04 9B 00 6F 04 04 00 26 00 00 00 B1 04 03 00 78 B2 31 70 04 03 00 B4 AD 25 72 04 03 00 C4 04 0C 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 71 47 05 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 9D 70 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 B3 [08:33:26]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 26 00 00 00 69 04 9B 00 6F 04 04 00 26 00 00 00 B1 04 03 00 78 B2 31 70 04 03 00 B4 AD 25 72 04 03 00 C4 04 0C 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 71 47 05 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 9D 70 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [08:33:26]wFMCommunicate OK [08:33:26]wFMCommunicate request_size=4 [08:33:26]MH_SAM_APDU [08:33:26]CAPDU: 80 17 00 00 [08:33:26]Write to MH i2c: E2 08 00 97 13 80 17 00 00 00 00 00 00 2A [08:33:26]Write i2c OK [08:33:26]MH_I2C_Read... [08:33:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:33:26]Read from MH i2c: E2 [08:33:26]MH_I2C_Read... [08:33:26]Read from MH i2c: E2 FD 00 [08:33:26]MH_I2C_Read... [08:33:26]Read from MH i2c: E2 FD 00 97 13 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 4C [08:33:26]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [08:33:26]wFMCommunicate OK [08:33:26]wFMCommunicate request_size=4 [08:33:26]MH_SAM_APDU [08:33:26]CAPDU: 80 17 00 00 [08:33:26]Write to MH i2c: E2 08 00 98 13 80 17 00 00 00 00 00 00 2B [08:33:26]Write i2c OK [08:33:26]MH_I2C_Read... [08:33:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:33:27]Read from MH i2c: E2 [08:33:27]MH_I2C_Read... [08:33:27]Read from MH i2c: E2 FD 00 [08:33:27]MH_I2C_Read... [08:33:27]Read from MH i2c: E2 FD 00 98 13 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 E2 [08:33:27]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [08:33:27]wFMCommunicate OK [08:33:27]wFMCommunicate request_size=4 [08:33:27]MH_SAM_APDU [08:33:27]CAPDU: 80 17 00 00 [08:33:27]Write to MH i2c: E2 08 00 99 13 80 17 00 00 00 00 00 00 2C [08:33:27]Write i2c OK [08:33:27]MH_I2C_Read... [08:33:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:33:27]Read from MH i2c: E2 [08:33:27]MH_I2C_Read... [08:33:27]Read from MH i2c: E2 FD 00 [08:33:27]MH_I2C_Read... [08:33:27]Read from MH i2c: E2 FD 00 99 13 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 9E [08:33:27]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [08:33:27]wFMCommunicate OK [08:33:27]wFMCommunicate request_size=4 [08:33:27]MH_SAM_APDU [08:33:27]CAPDU: 80 17 00 00 [08:33:27]Write to MH i2c: E2 08 00 9A 13 80 17 00 00 00 00 00 00 2D [08:33:27]Write i2c OK [08:33:27]MH_I2C_Read... [08:33:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [08:33:27]Read from MH i2c: E2 [08:33:27]MH_I2C_Read... [08:33:27]Read from MH i2c: E2 CB 00 [08:33:27]MH_I2C_Read... [08:33:27]Read from MH i2c: E2 CB 00 9A 13 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 16 [08:33:27]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [08:33:27]wFMCommunicate OK [08:33:27]SAM_PROTO_GetShiftData done [08:33:27]requested_item shift.sale.total_cash is exist - process it [08:33:27]requested_item shift.sale_refund.total is exist - process it [08:33:27]requested_item shift.sale_refund.total_cash is exist - process it [08:33:27]requested_item shift.buy.total is exist - process it [08:33:27]requested_item shift.buy.total_cash is exist - process it [08:33:27]produce_requested_data done [08:33:27]produce_requested_data return {"fm.sale.total":104367684.67,"fm.sale_refund.total":8779593.45,"fm.buy.total":0.00,"shift.sale.total":32569.52,"shift.sale.total_cash":24693.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [08:33:27]process_action_free get_value [08:33:27]json_value_free [08:33:27]json_value_free done [08:33:27]process_json_proto returns [08:33:27]Send response to host [08:33:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":104367684.67,"fm.sale_refund.total":8779593.45,"fm.buy.total":0.00,"shift.sale.total":32569.52,"shift.sale.total_cash":24693.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [08:33:27]free response buf [08:33:27]execute_script done [08:33:27]execute_script returns [08:33:27]free content buf [08:33:27]Sock 9.Close socket [08:33:27]Sock 9.Thread stoped [08:33:28]OFD Sender: No OFD packet to send [08:33:33]OFD Sender: No OFD packet to send [08:33:38]OFD Sender: No OFD packet to send [08:33:43]OFD Sender: No OFD packet to send [08:33:48]OFD Sender: No OFD packet to send [08:33:53]OFD Sender: No OFD packet to send [08:33:58]OFD Sender: No OFD packet to send [08:34:03]OFD Sender: No OFD packet to send [08:34:08]OFD Sender: No OFD packet to send [08:34:13]OFD Sender: No OFD packet to send [08:34:18]OFD Sender: No OFD packet to send [08:34:23]OFD Sender: No OFD packet to send [08:34:28]OFD Sender: No OFD packet to send [08:34:33]OFD Sender: No OFD packet to send [08:34:38]OFD Sender: No OFD packet to send [08:34:43]OFD Sender: No OFD packet to send [08:34:48]OFD Sender: No OFD packet to send [08:34:53]OFD Sender: No OFD packet to send [08:34:58]OFD Sender: No OFD packet to send [08:35:03]OFD Sender: No OFD packet to send [08:35:08]OFD Sender: No OFD packet to send [08:35:13]OFD Sender: No OFD packet to send [08:35:18]OFD Sender: No OFD packet to send [08:35:23]OFD Sender: No OFD packet to send [08:35:28]OFD Sender: No OFD packet to send [08:35:33]OFD Sender: No OFD packet to send [08:35:38]OFD Sender: No OFD packet to send [08:35:43]OFD Sender: No OFD packet to send [08:35:48]OFD Sender: No OFD packet to send [08:35:53]OFD Sender: No OFD packet to send [08:35:58]OFD Sender: No OFD packet to send [08:36:03]OFD Sender: No OFD packet to send [08:36:08]OFD Sender: No OFD packet to send [08:36:13]OFD Sender: No OFD packet to send [08:36:18]OFD Sender: No OFD packet to send [08:36:23]OFD Sender: No OFD packet to send [08:36:28]OFD Sender: No OFD packet to send [08:36:33]OFD Sender: No OFD packet to send [08:36:38]OFD Sender: No OFD packet to send [08:36:43]OFD Sender: No OFD packet to send [08:36:48]OFD Sender: No OFD packet to send [08:36:53]OFD Sender: No OFD packet to send [08:36:58]OFD Sender: No OFD packet to send [08:37:03]OFD Sender: No OFD packet to send [08:37:08]OFD Sender: No OFD packet to send [08:37:13]OFD Sender: No OFD packet to send [08:37:18]OFD Sender: No OFD packet to send [08:37:23]OFD Sender: No OFD packet to send [08:37:28]OFD Sender: No OFD packet to send [08:37:33]OFD Sender: No OFD packet to send [08:37:38]OFD Sender: No OFD packet to send [08:37:43]OFD Sender: No OFD packet to send [08:37:48]OFD Sender: No OFD packet to send [08:37:53]OFD Sender: No OFD packet to send [08:37:58]OFD Sender: No OFD packet to send [08:38:03]OFD Sender: No OFD packet to send [08:38:08]OFD Sender: No OFD packet to send [08:38:13]OFD Sender: No OFD packet to send [08:38:18]OFD Sender: No OFD packet to send [08:38:23]OFD Sender: No OFD packet to send [08:38:28]OFD Sender: No OFD packet to send [08:38:33]OFD Sender: No OFD packet to send [08:38:38]OFD Sender: No OFD packet to send [08:38:43]OFD Sender: No OFD packet to send [08:38:48]OFD Sender: No OFD packet to send [08:38:53]OFD Sender: No OFD packet to send [08:38:58]OFD Sender: No OFD packet to send [08:39:03]OFD Sender: No OFD packet to send [08:39:08]OFD Sender: No OFD packet to send [08:39:13]OFD Sender: No OFD packet to send [08:39:18]OFD Sender: No OFD packet to send [08:39:23]OFD Sender: No OFD packet to send [08:39:28]OFD Sender: No OFD packet to send [08:39:33]OFD Sender: No OFD packet to send [08:39:38]OFD Sender: No OFD packet to send [08:39:43]OFD Sender: No OFD packet to send [08:39:48]OFD Sender: No OFD packet to send [08:39:53]OFD Sender: No OFD packet to send [08:39:58]OFD Sender: No OFD packet to send [08:40:03]OFD Sender: No OFD packet to send [08:40:08]OFD Sender: No OFD packet to send [08:40:13]OFD Sender: No OFD packet to send [08:40:18]OFD Sender: No OFD packet to send [08:40:23]OFD Sender: No OFD packet to send [08:40:28]OFD Sender: No OFD packet to send [08:40:33]OFD Sender: No OFD packet to send [08:40:38]OFD Sender: No OFD packet to send [08:40:43]OFD Sender: No OFD packet to send [08:40:48]OFD Sender: No OFD packet to send [08:40:53]OFD Sender: No OFD packet to send [08:40:58]OFD Sender: No OFD packet to send [08:41:03]OFD Sender: No OFD packet to send [08:41:08]OFD Sender: No OFD packet to send [08:41:13]OFD Sender: No OFD packet to send [08:41:18]OFD Sender: No OFD packet to send [08:41:23]OFD Sender: No OFD packet to send [08:41:28]OFD Sender: No OFD packet to send [08:41:33]OFD Sender: No OFD packet to send [08:41:38]OFD Sender: No OFD packet to send [08:41:43]OFD Sender: No OFD packet to send [08:41:48]OFD Sender: No OFD packet to send [08:41:53]OFD Sender: No OFD packet to send [08:41:58]OFD Sender: No OFD packet to send [08:42:03]OFD Sender: No OFD packet to send [08:42:08]OFD Sender: No OFD packet to send [08:42:13]OFD Sender: No OFD packet to send [08:42:18]OFD Sender: No OFD packet to send [08:42:23]OFD Sender: No OFD packet to send [08:42:28]OFD Sender: No OFD packet to send [08:42:33]OFD Sender: No OFD packet to send [08:42:38]OFD Sender: No OFD packet to send [08:42:43]OFD Sender: No OFD packet to send [08:42:48]OFD Sender: No OFD packet to send [08:42:53]OFD Sender: No OFD packet to send [08:42:58]OFD Sender: No OFD packet to send [08:43:03]OFD Sender: No OFD packet to send [08:43:08]OFD Sender: No OFD packet to send [08:43:13]OFD Sender: No OFD packet to send [08:43:18]OFD Sender: No OFD packet to send [08:43:23]OFD Sender: No OFD packet to send [08:43:28]OFD Sender: No OFD packet to send [08:43:33]OFD Sender: No OFD packet to send [08:43:38]OFD Sender: No OFD packet to send [08:43:43]OFD Sender: No OFD packet to send [08:43:48]OFD Sender: No OFD packet to send [08:43:53]OFD Sender: No OFD packet to send [08:43:58]OFD Sender: No OFD packet to send [08:44:03]OFD Sender: No OFD packet to send [08:44:08]OFD Sender: No OFD packet to send [08:44:13]OFD Sender: No OFD packet to send [08:44:18]OFD Sender: No OFD packet to send [08:44:23]OFD Sender: No OFD packet to send [08:44:28]OFD Sender: No OFD packet to send [08:44:33]OFD Sender: No OFD packet to send [08:44:38]OFD Sender: No OFD packet to send [08:44:43]OFD Sender: No OFD packet to send [08:44:48]OFD Sender: No OFD packet to send [08:44:53]OFD Sender: No OFD packet to send [08:44:58]OFD Sender: No OFD packet to send [08:45:03]OFD Sender: No OFD packet to send [08:45:06]accept exits with 7 [08:45:06]New connection [08:45:06]New thread 3067395428 created [08:45:06]Thread 3067252068 joined [08:45:06]Waiting for new connection... [08:45:06] Sock 7.Parse request [08:45:06]Sock 7.Check first char [08:45:06]Sock 7.First char is OK [08:45:06]request: POST /json_proto HTTP/1.0 [08:45:06]Method: POST [08:45:06]URL: /json_proto [08:45:06]Method is POST - this is cgi request [08:45:06]url: /json_proto [08:45:06]query_string will be loaded in cgi processing [08:45:06]execute_cgi json_proto POST (null) [08:45:06]execute_cgi path=json_proto method=POST [08:45:06]POST find Content-Length [08:45:06]Host: 172.17.48.197:8080 [08:45:06]Content-Length: 817 [08:45:06]Content-Type: application/json [08:45:06] [08:45:06]POST finish read [08:45:06]Found Content-Length = 817 [08:45:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106101", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 7.200, "sum" : 500.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:45:06]execute_script... [08:45: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)1106101", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 7.200, "sum" : 500.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:45:06]POST & json_proto [08:45:06]process_json_proto [08:45:06]json parsed OK: [08:45:06]protocol is kg_v1.0 [08:45:06]action value=close_receipt [08:45:06]process_action close_receipt [08:45:06]cmd_close_receipt [08:45:06]MH_GetDate [08:45:06]Write to MH i2c: F0 00 00 9B 13 9D [08:45:06]Write i2c OK [08:45:06]MH_I2C_Read... [08:45:06]Read from MH i2c: F0 [08:45:06]MH_I2C_Read... [08:45:06]Read from MH i2c: F0 09 00 [08:45:06]MH_I2C_Read... [08:45:06]Read from MH i2c: F0 09 00 9B 13 00 95 38 E4 65 6C AF E3 65 1F [08:45:06]GetLastDocTimeStamp 1709453515 [08:45:06]current date 1709455509 [08:45:06]FM_GetShiftState [08:45:06]SAM_PROTO_GetShiftState [08:45:06]wFMCommunicate request_size=4 [08:45:06]MH_SAM_APDU [08:45:06]CAPDU: 80 13 01 00 [08:45:06]Write to MH i2c: E2 08 00 9C 13 80 13 01 00 00 00 00 00 2C [08:45:06]Write i2c OK [08:45:06]MH_I2C_Read... [08:45:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:45:07]Read from MH i2c: E2 [08:45:07]MH_I2C_Read... [08:45:07]Read from MH i2c: E2 0E 00 [08:45:07]MH_I2C_Read... [08:45:07]Read from MH i2c: E2 0E 00 9C 13 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 EE [08:45:07]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [08:45:07]wFMCommunicate OK [08:45:07]SAM_PROTO_GetShiftState done [08:45:07]FM_GetShiftState done [08:45:07]opened in 1709425579 [08:45:07]opened+sec_in_day 1709511979 [08:45:07]quantity*price = 50040 [08:45:07]sum+1 = 50041 [08:45:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.40 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.40 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 39 03.03.2024 08:45 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874798 ФД: 123182 ФПД: 166029972623020 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T084509&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123182&fm=166029972623020&tin=02508201610067®Number=0000000000090573&sum=50040 [08:45:08]StoreToDocumentArchive [08:45:08]shift 323 fd 123182 [08:45:08]save to /storage/0323/doc_00123182 [08:45:08]save last doc name /storage/0323/doc_00123182 to /storage/kkm_last_doc_name [08:45:08]save OK [08:45:08]Clear old archive folders... [08:45:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:45:08]tlvbuf is 00DAD220 [08:45:08]SAM_PROTO_ClearQueue [08:45:08]wFMCommunicate request_size=4 [08:45:08]MH_SAM_APDU [08:45:08]CAPDU: 80 09 00 00 [08:45:08]Write to MH i2c: E2 08 00 A9 13 80 09 00 00 00 00 00 00 2E [08:45:08]Write i2c OK [08:45:08]MH_I2C_Read... [08:45:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:45:08]Read from MH i2c: E2 [08:45:08]MH_I2C_Read... [08:45:08]Read from MH i2c: E2 03 00 [08:45:08]MH_I2C_Read... [08:45:08]Read from MH i2c: E2 03 00 A9 13 00 90 00 30 [08:45:08]RAPDU: 90 00 [08:45:08]wFMCommunicate OK [08:45:08]SAM_PROTO_ClearQueue done [08:45:08]KKMCreateOFDPacket [08:45:08]OFDProtocolAddRootSTLVToBuf [08:45:08]FM_MakeSignedData [08:45:08]FM_MakeSignedData [08:45:08]SAM_PROTO_SignData [08:45:08]wFMCommunicate request_size=4 [08:45:08]MH_SAM_APDU [08:45:08]CAPDU: 80 0D 01 02 [08:45:08]Write to MH i2c: E2 08 00 AA 13 80 0D 01 02 00 00 00 00 36 [08:45:08]Write i2c OK [08:45:08]MH_I2C_Read... [08:45:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:45:08]Read from MH i2c: E2 [08:45:08]MH_I2C_Read... [08:45:08]Read from MH i2c: E2 03 00 [08:45:08]MH_I2C_Read... [08:45:08]Read from MH i2c: E2 03 00 AA 13 00 90 00 31 [08:45:08]RAPDU: 90 00 [08:45:08]wFMCommunicate OK [08:45:08]wFMCommunicate request_size=255 [08:45:08]MH_SAM_APDU [08:45: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 35 FF 03 08 00 03 20 1C 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 78 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 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 78 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 95 38 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 2E E1 01 00 35 04 06 00 97 [08:45:08]Write to MH i2c: E2 02 01 AB 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 1C 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 78 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 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 78 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 95 38 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 2E E1 01 00 35 04 06 00 97 00 00 36 [08:45:08]Write i2c OK [08:45:08]MH_I2C_Read... [08:45:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:45:08]Read from MH i2c: E2 [08:45:08]MH_I2C_Read... [08:45:08]Read from MH i2c: E2 03 00 [08:45:08]MH_I2C_Read... [08:45:08]Read from MH i2c: E2 03 00 AB 13 00 90 00 32 [08:45:08]RAPDU: 90 00 [08:45:08]wFMCommunicate OK [08:45:08]wFMCommunicate request_size=10 [08:45:08]MH_SAM_APDU [08:45:08]CAPDU: 80 0D 02 02 05 00 DD 8A 4E AC [08:45:08]Write to MH i2c: E2 0D 00 AC 13 80 0D 02 02 05 00 00 DD 8A 4E AC 00 00 A4 [08:45:08]Write i2c OK [08:45:08]MH_I2C_Read... [08:45:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:45:08]Read from MH i2c: E2 [08:45:08]MH_I2C_Read... [08:45:08]Read from MH i2c: E2 03 00 [08:45:08]MH_I2C_Read... [08:45:08]Read from MH i2c: E2 03 00 AC 13 00 90 00 33 [08:45:08]RAPDU: 90 00 [08:45:08]wFMCommunicate OK [08:45:08]wFMCommunicate request_size=4 [08:45:08]MH_SAM_APDU [08:45:08]CAPDU: 80 0D 03 02 [08:45:08]Write to MH i2c: E2 08 00 AD 13 80 0D 03 02 00 00 00 00 3B [08:45:08]Write i2c OK [08:45:08]MH_I2C_Read... [08:45:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:45:08]Read from MH i2c: E2 [08:45:08]MH_I2C_Read... [08:45:08]Read from MH i2c: E2 0B 00 [08:45:08]MH_I2C_Read... [08:45:08]Read from MH i2c: E2 0B 00 AD 13 00 33 9A 57 11 09 6C 4C 1D 90 00 4F [08:45:08]RAPDU: 33 9A 57 11 09 6C 4C 1D 90 00 [08:45:08]wFMCommunicate OK [08:45:08]SAM_PROTO_SignData done [08:45:08]FM_MakeSignedData done [08:45:08]CreateOFDProtocolMessage [08:45:08]wFMCommunicate request_size=4 [08:45:08]MH_SAM_APDU [08:45:08]CAPDU: 80 11 00 00 [08:45:08]Write to MH i2c: E2 08 00 AE 13 80 11 00 00 00 00 00 00 3B [08:45:08]Write i2c OK [08:45:08]MH_I2C_Read... [08:45:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:45:08]Read from MH i2c: E2 [08:45:08]MH_I2C_Read... [08:45:08]Read from MH i2c: E2 17 00 [08:45:08]MH_I2C_Read... [08:45:08]Read from MH i2c: E2 17 00 AE 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 99 [08:45:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [08:45:08]wFMCommunicate OK [08:45:08]CreateOFDProtocolMessage done [08:45:08]OFDSenderStorePacket 123182 [08:45:08]StoreOFDPacket docnum=123182 [08:45:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 06 D3 07 01 2A 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 1C 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 78 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 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 78 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 95 38 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 2E E1 01 00 35 04 06 00 97 00 DD 8A 4E AC 33 9A 57 11 09 6C 4C 1D [08:45:08]CheckFolder [08:45:08]dirname=/storage/ofd_packets [08:45:08]CheckFolder done [08:45:08]ProducePacketName [08:45:08]name=ofd_packets/00123182 [08:45:08]NVStorageSaveData ofd_packets/00123182 [08:45:08]File name is /storage/ofd_packets/00123182 [08:45:08]Write 301 bytes [08:45:08]NVStorageSaveData done [08:45:08]OFDSenderStorePacket done [08:45:08]KKMCreateOFDPacket done [08:45:08]NVStorageSaveData kkm_last_timestamp [08:45:08]File name is /storage/kkm_last_timestamp [08:45:08]Write 4 bytes [08:45:08]NVStorageSaveData done [08:45:08]ExternCall_PrintAddStr [08:45:08]wPrintStart [08:45:08]Write to MH i2c: 01 00 00 AF 13 C2 [08:45:08]Write i2c OK [08:45:08]MH_I2C_Read... [08:45:08]Read from MH i2c: 01 [08:45:08]MH_I2C_Read... [08:45:08]Read from MH i2c: 01 07 00 [08:45:08]MH_I2C_Read... [08:45:08]Read from MH i2c: 01 07 00 AF 13 00 00 00 00 00 FF 0F D7 [08:45:08]RasterBufferAndPrint [08:45:08]line Счет N : (1)1106101 [08:45:08]line ИНН: 02508201610067 [08:45:08]line Контрольно-Кассовый Чек [08:45:08]line ПРОДАЖА [08:45:08]line ТРК (МРК, ГНК) : 53 [08:45:08]line Товар: 2710124500 [08:45:08]line Аи-95-К-5 [08:45:08]line 7.200 * 69.50 [08:45:08]line = 500.40 [08:45:08]line НДС 12% НСП 1% [08:45:08]line > о реализуемом товаре [08:45:08]line ИТОГО: 500.40 [08:45:08]line НСП 1% : 4.43 [08:45:08]line НДС 12% : 53.14 [08:45:08]line Наличными: 0.00 [08:45:08]line Безнал.: 500.40 [08:45:08]line Место: АЗС № 25 "Партнер Нефть" [08:45:08]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [08:45:08]line СНО: Общий режим [08:45:08]line Чек 39 03.03.2024 08:45 [08:45:08]line Смена: 323 ФФД: 1.0 [08:45:08]line ЗНМ: 0300000019 [08:45:08]line РНМ: 0000000000090573 [08:45:08]line Версия ККМ: 001 [08:45:08]line Платежная система: Бакай Банк [08:45:08]line ФМ: 0000000000874798 [08:45:08]line ФД: 123182 [08:45:08]line ФПД: 166029972623020 [08:45:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T084509&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123182&fm=166029972623020&tin=02508201610067®Number=0000000000090573&sum=50040 [08:45:09]OFD Sender: Processing packet 123182 [packets to send 112, broken 111] [08:45:09]ProducePacketName [08:45:09]name=ofd_packets/00123182 [08:45:09]OFD Sender: To server: pG, [08:45:09]CommunicateWithHost lk.salyk.kg:30040 [08:45:09]ConnectInit lk.salyk.kg [08:45:09]written 0, free lines is 4095 [08:45:09]Connected sock=10 [08:45:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 06 D3 07 01 2A 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 1C 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 78 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 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 78 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 95 38 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 2E E1 01 00 35 04 06 00 97 00 DD 8A 4E AC 33 9A 57 11 09 6C 4C 1D [08:45:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 7A 22 47 00 E4 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 37 39 38 10 04 04 00 2E E1 01 00 F4 03 04 00 C1 E4 E3 65 B6 04 01 00 00 C5 E5 79 48 29 BA 85 42 [08:45:09]CommunicateWithHost err = 0 [08:45:09]CheckOFDResponse [08:45:09]1017 (14) - 77093643461234 [08:45:09]1041 (16) - 0000000000874798 [08:45:09]1040 (4) - 123182 [08:45:09]1012 (4) - 03.03.2024 02:47 [08:45:09]1206 (1) - 0 [08:45:09]OFD Sender: Remove packet 123182 [08:45:09]ProducePacketName [08:45:09]name=ofd_packets/00123182 [08:45:09]NVStorageDeleteData [08:45:09]Write to MH i2c: 01 00 00 D9 13 EC [08:45:09]Write i2c OK [08:45:09]MH_I2C_Read... [08:45:09]Read from MH i2c: 01 [08:45:09]MH_I2C_Read... [08:45:09]Read from MH i2c: 01 07 00 [08:45:09]MH_I2C_Read... [08:45:09]Read from MH i2c: 01 07 00 D9 13 00 00 00 00 00 FE 0C FD [08:45:09]RasterBufferAndPrint [08:45:09]line [08:45:09]line [08:45:09]line [08:45:09]line [08:45:09]line [08:45:09]written 0, free lines is 3332 [08:45:09]MH_Cut [08:45:09]Write to MH i2c: D1 01 00 E0 13 01 C5 [08:45:09]Write i2c OK [08:45:09]MH_I2C_Read... [08:45:09]Read from MH i2c: D1 [08:45:09]MH_I2C_Read... [08:45:09]Read from MH i2c: D1 01 00 [08:45:09]MH_I2C_Read... [08:45:09]Read from MH i2c: D1 01 00 E0 13 00 C4 [08:45:09]Write to MH i2c: 01 00 00 E1 13 F4 [08:45:09]Write i2c OK [08:45:09]MH_I2C_Read... [08:45:09]OFD Sender: No OFD packet to send [08:45:10]*** Cut start [08:45:10]*** Purtial cut [08:45:10]*** Stage 1: CUTSNS_PIN = 1 [08:45:12]Read from MH i2c: 01 [08:45:12]MH_I2C_Read... [08:45:12]*** Stop cut motor [08:45:12]*** Cut end [08:45:12]Read from MH i2c: 01 07 00 [08:45:12]MH_I2C_Read... [08:45:12]Read from MH i2c: 01 07 00 E1 13 00 00 00 00 00 FF 0F 09 [08:45:12]process_action close_receipt done [08:45:12]requested_data is exist [08:45:12]produce_requested_data [08:45:12]requested_item fm.sn is exist - process it [08:45:12]wFMCommunicate request_size=4 [08:45:12]MH_SAM_APDU [08:45:12]CAPDU: 80 11 00 00 [08:45:12]Write to MH i2c: E2 08 00 E2 13 80 11 00 00 00 00 00 00 6F [08:45:12]Write i2c OK [08:45:12]MH_I2C_Read... [08:45:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:45:12]Read from MH i2c: E2 [08:45:12]MH_I2C_Read... [08:45:12]Read from MH i2c: E2 17 00 [08:45:12]MH_I2C_Read... [08:45:12]Read from MH i2c: E2 17 00 E2 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 CD [08:45:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [08:45:12]wFMCommunicate OK [08:45:12]requested_item fd.num is exist - process it [08:45:12]SAM_PROTO_GetFieldsCounters [08:45:12]wFMCommunicate request_size=4 [08:45:12]MH_SAM_APDU [08:45:12]CAPDU: 80 13 00 00 [08:45:12]Write to MH i2c: E2 08 00 E3 13 80 13 00 00 00 00 00 00 72 [08:45:12]Write i2c OK [08:45:12]MH_I2C_Read... [08:45:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:45:12]Read from MH i2c: E2 [08:45:12]MH_I2C_Read... [08:45:12]Read from MH i2c: E2 62 00 [08:45:12]MH_I2C_Read... [08:45:12]Read from MH i2c: E2 62 00 E3 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 2E E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 66 [08:45: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 2E E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:45:12]wFMCommunicate OK [08:45:12]SAM_PROTO_GetFieldsCounters done [08:45:12]requested_item shift.num is exist - process it [08:45:12]requested_item shift.opened is exist - process it [08:45:12]req_shift_opened [08:45:12]FM_GetShiftState [08:45:12]SAM_PROTO_GetShiftState [08:45:12]wFMCommunicate request_size=4 [08:45:12]MH_SAM_APDU [08:45:12]CAPDU: 80 13 01 00 [08:45:12]Write to MH i2c: E2 08 00 E4 13 80 13 01 00 00 00 00 00 74 [08:45:12]Write i2c OK [08:45:12]MH_I2C_Read... [08:45:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:45:12]Read from MH i2c: E2 [08:45:12]MH_I2C_Read... [08:45:12]Read from MH i2c: E2 0E 00 [08:45:12]MH_I2C_Read... [08:45:12]Read from MH i2c: E2 0E 00 E4 13 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 36 [08:45:12]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [08:45:12]wFMCommunicate OK [08:45:12]SAM_PROTO_GetShiftState done [08:45:12]FM_GetShiftState done [08:45:12]req_shift_opened done [08:45:12]requested_item shift.open_date is exist - process it [08:45:12]req_shift_open_date [08:45:12]req_shift_open_date done [08:45:12]produce_requested_data done [08:45:12]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123182,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [08:45:12]process_action_free close_receipt [08:45:12]json_value_free [08:45:12]json_value_free done [08:45:12]process_json_proto returns [08:45:12]Send response to host [08:45:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123182,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [08:45:12]free response buf [08:45:12]execute_script done [08:45:12]execute_script returns [08:45:12]free content buf [08:45:12]Sock 7.Close socket [08:45:12]Sock 7.Thread stoped [08:45:14]OFD Sender: No OFD packet to send [08:45:19]OFD Sender: No OFD packet to send [08:45:24]OFD Sender: No OFD packet to send [08:45:29]OFD Sender: No OFD packet to send [08:45:34]OFD Sender: No OFD packet to send [08:45:39]OFD Sender: No OFD packet to send [08:45:44]OFD Sender: No OFD packet to send [08:45:49]OFD Sender: No OFD packet to send [08:45:54]OFD Sender: No OFD packet to send [08:45:59]OFD Sender: No OFD packet to send [08:46:04]OFD Sender: No OFD packet to send [08:46:09]OFD Sender: No OFD packet to send [08:46:14]OFD Sender: No OFD packet to send [08:46:19]OFD Sender: No OFD packet to send [08:46:24]OFD Sender: No OFD packet to send [08:46:29]OFD Sender: No OFD packet to send [08:46:34]OFD Sender: No OFD packet to send [08:46:39]OFD Sender: No OFD packet to send [08:46:44]OFD Sender: No OFD packet to send [08:46:49]OFD Sender: No OFD packet to send [08:46:54]OFD Sender: No OFD packet to send [08:46:59]OFD Sender: No OFD packet to send [08:47:04]OFD Sender: No OFD packet to send [08:47:09]OFD Sender: No OFD packet to send [08:47:14]OFD Sender: No OFD packet to send [08:47:19]OFD Sender: No OFD packet to send [08:47:24]OFD Sender: No OFD packet to send [08:47:29]OFD Sender: No OFD packet to send [08:47:34]OFD Sender: No OFD packet to send [08:47:39]OFD Sender: No OFD packet to send [08:47:44]OFD Sender: No OFD packet to send [08:47:49]OFD Sender: No OFD packet to send [08:47:54]OFD Sender: No OFD packet to send [08:48:00]OFD Sender: No OFD packet to send [08:48:05]OFD Sender: No OFD packet to send [08:48:10]OFD Sender: No OFD packet to send [08:48:15]OFD Sender: No OFD packet to send [08:48:20]OFD Sender: No OFD packet to send [08:48:25]OFD Sender: No OFD packet to send [08:48:30]OFD Sender: No OFD packet to send [08:48:35]OFD Sender: No OFD packet to send [08:48:40]OFD Sender: No OFD packet to send [08:48:45]OFD Sender: No OFD packet to send [08:48:50]OFD Sender: No OFD packet to send [08:48:55]OFD Sender: No OFD packet to send [08:49:00]OFD Sender: No OFD packet to send [08:49:05]OFD Sender: No OFD packet to send [08:49:10]OFD Sender: No OFD packet to send [08:49:15]OFD Sender: No OFD packet to send [08:49:20]OFD Sender: No OFD packet to send [08:49:25]OFD Sender: No OFD packet to send [08:49:30]OFD Sender: No OFD packet to send [08:49:35]OFD Sender: No OFD packet to send [08:49:40]OFD Sender: No OFD packet to send [08:49:45]OFD Sender: No OFD packet to send [08:49:50]OFD Sender: No OFD packet to send [08:49:55]OFD Sender: No OFD packet to send [08:50:00]OFD Sender: No OFD packet to send [08:50:05]OFD Sender: No OFD packet to send [08:50:10]OFD Sender: No OFD packet to send [08:50:15]OFD Sender: No OFD packet to send [08:50:20]OFD Sender: No OFD packet to send [08:50:25]OFD Sender: No OFD packet to send [08:50:30]OFD Sender: No OFD packet to send [08:50:35]OFD Sender: No OFD packet to send [08:50:40]OFD Sender: No OFD packet to send [08:50:45]OFD Sender: No OFD packet to send [08:50:50]OFD Sender: No OFD packet to send [08:50:55]OFD Sender: No OFD packet to send [08:51:00]OFD Sender: No OFD packet to send [08:51:01]accept exits with 9 [08:51:01]New connection [08:51:01]New thread 3067252068 created [08:51:01]Thread 3067395428 joined [08:51:01]Waiting for new connection... [08:51:01] Sock 9.Parse request [08:51:01]Sock 9.Check first char [08:51:01]Sock 9.First char is OK [08:51:01]request: POST /json_proto HTTP/1.0 [08:51:01]Method: POST [08:51:01]URL: /json_proto [08:51:01]Method is POST - this is cgi request [08:51:01]url: /json_proto [08:51:01]query_string will be loaded in cgi processing [08:51:01]execute_cgi json_proto POST (null) [08:51:01]execute_cgi path=json_proto method=POST [08:51:01]POST find Content-Length [08:51:01]Host: 172.17.48.197:8080 [08:51:01]Content-Length: 683 [08:51:01]Content-Type: application/json [08:51:01] [08:51:01]POST finish read [08:51:01]Found Content-Length = 683 [08:51:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106102", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "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" ] } } [08:51:01]execute_script... [08:51: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)1106102", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "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" ] } } [08:51:01]POST & json_proto [08:51:01]process_json_proto [08:51:01]json parsed OK: [08:51:01]protocol is kg_v1.0 [08:51:01]action value=close_receipt [08:51:01]process_action close_receipt [08:51:01]cmd_close_receipt [08:51:01]MH_GetDate [08:51:01]Write to MH i2c: F0 00 00 E5 13 E7 [08:51:01]Write i2c OK [08:51:01]MH_I2C_Read... [08:51:01]Read from MH i2c: F0 [08:51:01]MH_I2C_Read... [08:51:01]Read from MH i2c: F0 09 00 [08:51:01]MH_I2C_Read... [08:51:01]Read from MH i2c: F0 09 00 E5 13 00 F8 39 E4 65 6C AF E3 65 CD [08:51:01]GetLastDocTimeStamp 1709455509 [08:51:01]current date 1709455864 [08:51:01]FM_GetShiftState [08:51:01]SAM_PROTO_GetShiftState [08:51:01]wFMCommunicate request_size=4 [08:51:01]MH_SAM_APDU [08:51:01]CAPDU: 80 13 01 00 [08:51:01]Write to MH i2c: E2 08 00 E6 13 80 13 01 00 00 00 00 00 76 [08:51:01]Write i2c OK [08:51:01]MH_I2C_Read... [08:51:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:51:01]Read from MH i2c: E2 [08:51:01]MH_I2C_Read... [08:51:01]Read from MH i2c: E2 0E 00 [08:51:01]MH_I2C_Read... [08:51:01]Read from MH i2c: E2 0E 00 E6 13 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 38 [08:51:01]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [08:51:01]wFMCommunicate OK [08:51:01]SAM_PROTO_GetShiftState done [08:51:01]FM_GetShiftState done [08:51:01]opened in 1709425579 [08:51:01]opened+sec_in_day 1709511979 [08:51:01]quantity*price = 100030 [08:51:01]sum+1 = 100031 [08:51:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 40 03.03.2024 08:51 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123183 ФПД: 61122410875493 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T085104&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123183&fm=61122410875493&tin=02508201610067®Number=0000000000090573&sum=100000 [08:51:03]StoreToDocumentArchive [08:51:03]shift 323 fd 123183 [08:51:03]save to /storage/0323/doc_00123183 [08:51:03]save last doc name /storage/0323/doc_00123183 to /storage/kkm_last_doc_name [08:51:03]save OK [08:51:03]Clear old archive folders... [08:51:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:51:03]tlvbuf is 00DE15A0 [08:51:03]SAM_PROTO_ClearQueue [08:51:03]wFMCommunicate request_size=4 [08:51:03]MH_SAM_APDU [08:51:03]CAPDU: 80 09 00 00 [08:51:03]Write to MH i2c: E2 08 00 F3 13 80 09 00 00 00 00 00 00 78 [08:51:03]Write i2c OK [08:51:03]MH_I2C_Read... [08:51:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:51:03]Read from MH i2c: E2 [08:51:03]MH_I2C_Read... [08:51:03]Read from MH i2c: E2 03 00 [08:51:03]MH_I2C_Read... [08:51:03]Read from MH i2c: E2 03 00 F3 13 00 90 00 7A [08:51:03]RAPDU: 90 00 [08:51:03]wFMCommunicate OK [08:51:03]SAM_PROTO_ClearQueue done [08:51:03]KKMCreateOFDPacket [08:51:03]OFDProtocolAddRootSTLVToBuf [08:51:03]FM_MakeSignedData [08:51:03]FM_MakeSignedData [08:51:03]SAM_PROTO_SignData [08:51:03]wFMCommunicate request_size=4 [08:51:03]MH_SAM_APDU [08:51:03]CAPDU: 80 0D 01 02 [08:51:03]Write to MH i2c: E2 08 00 F4 13 80 0D 01 02 00 00 00 00 80 [08:51:03]Write i2c OK [08:51:03]MH_I2C_Read... [08:51:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:51:03]Read from MH i2c: E2 [08:51:03]MH_I2C_Read... [08:51:03]Read from MH i2c: E2 03 00 [08:51:03]MH_I2C_Read... [08:51:03]Read from MH i2c: E2 03 00 F4 13 00 90 00 7B [08:51:03]RAPDU: 90 00 [08:51:03]wFMCommunicate OK [08:51:03]wFMCommunicate request_size=255 [08:51:03]MH_SAM_APDU [08:51: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 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 28 00 00 00 F4 03 04 00 F8 39 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 2F E1 01 00 35 04 06 00 37 [08:51:03]Write to MH i2c: E2 02 01 F5 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 28 00 00 00 F4 03 04 00 F8 39 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 2F E1 01 00 35 04 06 00 37 00 00 1A [08:51:03]Write i2c OK [08:51:03]MH_I2C_Read... [08:51:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:51:03]Read from MH i2c: E2 [08:51:03]MH_I2C_Read... [08:51:03]Read from MH i2c: E2 03 00 [08:51:03]MH_I2C_Read... [08:51:03]Read from MH i2c: E2 03 00 F5 13 00 90 00 7C [08:51:03]RAPDU: 90 00 [08:51:03]wFMCommunicate OK [08:51:03]wFMCommunicate request_size=10 [08:51:03]MH_SAM_APDU [08:51:03]CAPDU: 80 0D 02 02 05 97 2B 96 8A 65 [08:51:03]Write to MH i2c: E2 0D 00 F6 13 80 0D 02 02 05 00 97 2B 96 8A 65 00 00 D4 [08:51:03]Write i2c OK [08:51:03]MH_I2C_Read... [08:51:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:51:03]Read from MH i2c: E2 [08:51:03]MH_I2C_Read... [08:51:03]Read from MH i2c: E2 03 00 [08:51:03]MH_I2C_Read... [08:51:03]Read from MH i2c: E2 03 00 F6 13 00 90 00 7D [08:51:03]RAPDU: 90 00 [08:51:03]wFMCommunicate OK [08:51:03]wFMCommunicate request_size=4 [08:51:03]MH_SAM_APDU [08:51:03]CAPDU: 80 0D 03 02 [08:51:03]Write to MH i2c: E2 08 00 F7 13 80 0D 03 02 00 00 00 00 85 [08:51:03]Write i2c OK [08:51:03]MH_I2C_Read... [08:51:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:51:03]Read from MH i2c: E2 [08:51:03]MH_I2C_Read... [08:51:03]Read from MH i2c: E2 0B 00 [08:51:03]MH_I2C_Read... [08:51:03]Read from MH i2c: E2 0B 00 F7 13 00 75 9E D1 3B 95 7E 7E 57 90 00 8D [08:51:03]RAPDU: 75 9E D1 3B 95 7E 7E 57 90 00 [08:51:03]wFMCommunicate OK [08:51:03]SAM_PROTO_SignData done [08:51:03]FM_MakeSignedData done [08:51:03]CreateOFDProtocolMessage [08:51:03]wFMCommunicate request_size=4 [08:51:03]MH_SAM_APDU [08:51:03]CAPDU: 80 11 00 00 [08:51:03]Write to MH i2c: E2 08 00 F8 13 80 11 00 00 00 00 00 00 85 [08:51:03]Write i2c OK [08:51:03]MH_I2C_Read... [08:51:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:51:03]Read from MH i2c: E2 [08:51:03]MH_I2C_Read... [08:51:03]Read from MH i2c: E2 17 00 [08:51:03]MH_I2C_Read... [08:51:03]Read from MH i2c: E2 17 00 F8 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 E3 [08:51:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [08:51:03]wFMCommunicate OK [08:51:03]CreateOFDProtocolMessage done [08:51:03]OFDSenderStorePacket 123183 [08:51:03]StoreOFDPacket docnum=123183 [08:51:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 13 03 07 01 F7 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 28 00 00 00 F4 03 04 00 F8 39 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 2F E1 01 00 35 04 06 00 37 97 2B 96 8A 65 75 9E D1 3B 95 7E 7E 57 [08:51:03]CheckFolder [08:51:03]dirname=/storage/ofd_packets [08:51:03]CheckFolder done [08:51:03]ProducePacketName [08:51:03]name=ofd_packets/00123183 [08:51:03]NVStorageSaveData ofd_packets/00123183 [08:51:03]File name is /storage/ofd_packets/00123183 [08:51:03]Write 301 bytes [08:51:03]NVStorageSaveData done [08:51:03]OFDSenderStorePacket done [08:51:03]KKMCreateOFDPacket done [08:51:03]NVStorageSaveData kkm_last_timestamp [08:51:03]File name is /storage/kkm_last_timestamp [08:51:03]Write 4 bytes [08:51:03]NVStorageSaveData done [08:51:03]ExternCall_PrintAddStr [08:51:03]wPrintStart [08:51:03]Write to MH i2c: 01 00 00 F9 13 0C [08:51:03]Write i2c OK [08:51:03]MH_I2C_Read... [08:51:03]Read from MH i2c: 01 [08:51:03]MH_I2C_Read... [08:51:03]Read from MH i2c: 01 07 00 [08:51:03]MH_I2C_Read... [08:51:03]Read from MH i2c: 01 07 00 F9 13 00 00 00 00 00 FF 0F 21 [08:51:03]RasterBufferAndPrint [08:51:03]line Счет N : (1)1106102 [08:51:03]line ИНН: 02508201610067 [08:51:03]line Контрольно-Кассовый Чек [08:51:03]line ПРОДАЖА [08:51:03]line ТРК (МРК, ГНК) : 52 [08:51:03]line Товар: 2710124130 [08:51:03]line Аи-92-К-5 [08:51:03]line 16.160 * 61.90 [08:51:03]line = 1000.30 [08:51:03]line НДС 12% НСП 1% [08:51:03]line > о реализуемом товаре [08:51:03]line ОКРУГЛЕНИЕ: -0.30 [08:51:03]line ИТОГО: 1000.00 [08:51:03]line Внесено: 1000.00 [08:51:03]line СДАЧА: 0.00 [08:51:03]line НСП 1% : 8.85 [08:51:03]line НДС 12% : 106.23 [08:51:03]line Наличными: 1000.00 [08:51:03]line Безнал.: 0.00 [08:51:03]line Место: АЗС № 25 "Партнер Нефть" [08:51:03]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [08:51:03]line СНО: Общий режим [08:51:03]line Чек 40 03.03.2024 08:51 [08:51:03]line Смена: 323 ФФД: 1.0 [08:51:03]line ЗНМ: 0300000019 [08:51:03]line РНМ: 0000000000090573 [08:51:03]line Версия ККМ: 001 [08:51:03]line ФМ: 0000000000874798 [08:51:03]line ФД: 123183 [08:51:03]line ФПД: 61122410875493 [08:51:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T085104&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123183&fm=61122410875493&tin=02508201610067®Number=0000000000090573&sum=100000 [08:51:03]OFD Sender: Processing packet 123183 [packets to send 112, broken 111] [08:51:03]ProducePacketName [08:51:03]name=ofd_packets/00123183 [08:51:03]OFD Sender: To server: pG, [08:51:03]CommunicateWithHost lk.salyk.kg:30040 [08:51:03]ConnectInit lk.salyk.kg [08:51:03]written 0, free lines is 4095 [08:51:03]Connected sock=10 [08:51: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 37 39 38 0F 01 00 00 13 03 07 01 F7 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 28 00 00 00 F4 03 04 00 F8 39 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 2F E1 01 00 35 04 06 00 37 97 2B 96 8A 65 75 9E D1 3B 95 7E 7E 57 [08:51:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 2E DF 47 00 5A 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 37 39 38 10 04 04 00 2F E1 01 00 F4 03 04 00 24 E6 E3 65 B6 04 01 00 00 24 36 0A 24 E6 56 84 CB [08:51:04]CommunicateWithHost err = 0 [08:51:04]CheckOFDResponse [08:51:04]1017 (14) - 77093643461234 [08:51:04]1041 (16) - 0000000000874798 [08:51:04]1040 (4) - 123183 [08:51:04]1012 (4) - 03.03.2024 02:53 [08:51:04]1206 (1) - 0 [08:51:04]OFD Sender: Remove packet 123183 [08:51:04]ProducePacketName [08:51:04]name=ofd_packets/00123183 [08:51:04]NVStorageDeleteData [08:51:04]Write to MH i2c: 01 00 00 24 14 38 [08:51:04]Write i2c OK [08:51:04]MH_I2C_Read... [08:51:04]Read from MH i2c: 01 [08:51:04]MH_I2C_Read... [08:51:04]Read from MH i2c: 01 07 00 [08:51:04]MH_I2C_Read... [08:51:04]Read from MH i2c: 01 07 00 24 14 00 00 00 00 00 E5 0C 30 [08:51:04]RasterBufferAndPrint [08:51:04]line [08:51:04]line [08:51:04]line [08:51:04]line [08:51:04]line [08:51:04]written 0, free lines is 3307 [08:51:04]MH_Cut [08:51:04]Write to MH i2c: D1 01 00 2B 14 01 11 [08:51:04]Write i2c OK [08:51:04]MH_I2C_Read... [08:51:04]Read from MH i2c: D1 [08:51:04]MH_I2C_Read... [08:51:04]Read from MH i2c: D1 01 00 [08:51:04]MH_I2C_Read... [08:51:04]Read from MH i2c: D1 01 00 2B 14 00 10 [08:51:04]Write to MH i2c: 01 00 00 2C 14 40 [08:51:04]Write i2c OK [08:51:04]MH_I2C_Read... [08:51:04]OFD Sender: No OFD packet to send [08:51:05]*** Cut start [08:51:05]*** Purtial cut [08:51:05]*** Stage 1: CUTSNS_PIN = 1 [08:51:07]Read from MH i2c: 01 [08:51:07]MH_I2C_Read... [08:51:07]*** Stop cut motor [08:51:07]*** Cut end [08:51:07]Read from MH i2c: 01 07 00 [08:51:07]MH_I2C_Read... [08:51:07]Read from MH i2c: 01 07 00 2C 14 00 00 00 00 00 FF 0F 55 [08:51:07]process_action close_receipt done [08:51:07]requested_data is exist [08:51:07]produce_requested_data [08:51:07]requested_item fm.sn is exist - process it [08:51:07]wFMCommunicate request_size=4 [08:51:07]MH_SAM_APDU [08:51:07]CAPDU: 80 11 00 00 [08:51:07]Write to MH i2c: E2 08 00 2D 14 80 11 00 00 00 00 00 00 BB [08:51:07]Write i2c OK [08:51:07]MH_I2C_Read... [08:51:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:51:07]Read from MH i2c: E2 [08:51:07]MH_I2C_Read... [08:51:07]Read from MH i2c: E2 17 00 [08:51:07]MH_I2C_Read... [08:51:07]Read from MH i2c: E2 17 00 2D 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 19 [08:51:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [08:51:07]wFMCommunicate OK [08:51:07]requested_item fd.num is exist - process it [08:51:07]SAM_PROTO_GetFieldsCounters [08:51:07]wFMCommunicate request_size=4 [08:51:07]MH_SAM_APDU [08:51:07]CAPDU: 80 13 00 00 [08:51:07]Write to MH i2c: E2 08 00 2E 14 80 13 00 00 00 00 00 00 BE [08:51:07]Write i2c OK [08:51:07]MH_I2C_Read... [08:51:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:51:07]Read from MH i2c: E2 [08:51:07]MH_I2C_Read... [08:51:07]Read from MH i2c: E2 62 00 [08:51:07]MH_I2C_Read... [08:51:07]Read from MH i2c: E2 62 00 2E 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 2F E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 B6 [08:51: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 2F E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:51:07]wFMCommunicate OK [08:51:07]SAM_PROTO_GetFieldsCounters done [08:51:07]requested_item shift.num is exist - process it [08:51:07]requested_item shift.opened is exist - process it [08:51:07]req_shift_opened [08:51:07]FM_GetShiftState [08:51:07]SAM_PROTO_GetShiftState [08:51:07]wFMCommunicate request_size=4 [08:51:07]MH_SAM_APDU [08:51:07]CAPDU: 80 13 01 00 [08:51:07]Write to MH i2c: E2 08 00 2F 14 80 13 01 00 00 00 00 00 C0 [08:51:07]Write i2c OK [08:51:07]MH_I2C_Read... [08:51:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:51:07]Read from MH i2c: E2 [08:51:07]MH_I2C_Read... [08:51:07]Read from MH i2c: E2 0E 00 [08:51:07]MH_I2C_Read... [08:51:07]Read from MH i2c: E2 0E 00 2F 14 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 82 [08:51:07]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [08:51:07]wFMCommunicate OK [08:51:07]SAM_PROTO_GetShiftState done [08:51:07]FM_GetShiftState done [08:51:07]req_shift_opened done [08:51:07]requested_item shift.open_date is exist - process it [08:51:07]req_shift_open_date [08:51:07]req_shift_open_date done [08:51:07]produce_requested_data done [08:51:07]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123183,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [08:51:07]process_action_free close_receipt [08:51:07]json_value_free [08:51:07]json_value_free done [08:51:07]process_json_proto returns [08:51:07]Send response to host [08:51:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123183,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [08:51:07]free response buf [08:51:07]execute_script done [08:51:07]execute_script returns [08:51:07]free content buf [08:51:07]Sock 9.Close socket [08:51:07]Sock 9.Thread stoped [08:51:09]OFD Sender: No OFD packet to send [08:51:14]OFD Sender: No OFD packet to send [08:51:19]OFD Sender: No OFD packet to send [08:51:24]OFD Sender: No OFD packet to send [08:51:29]OFD Sender: No OFD packet to send [08:51:34]OFD Sender: No OFD packet to send [08:51:39]OFD Sender: No OFD packet to send [08:51:44]OFD Sender: No OFD packet to send [08:51:49]OFD Sender: No OFD packet to send [08:51:54]OFD Sender: No OFD packet to send [08:51:59]OFD Sender: No OFD packet to send [08:52:04]OFD Sender: No OFD packet to send [08:52:09]OFD Sender: No OFD packet to send [08:52:14]OFD Sender: No OFD packet to send [08:52:19]OFD Sender: No OFD packet to send [08:52:24]OFD Sender: No OFD packet to send [08:52:29]OFD Sender: No OFD packet to send [08:52:34]OFD Sender: No OFD packet to send [08:52:39]OFD Sender: No OFD packet to send [08:52:44]OFD Sender: No OFD packet to send [08:52:49]OFD Sender: No OFD packet to send [08:52:54]OFD Sender: No OFD packet to send [08:52:59]OFD Sender: No OFD packet to send [08:53:03]accept exits with 7 [08:53:03]New connection [08:53:03]New thread 3067395428 created [08:53:03]Thread 3067252068 joined [08:53:03]Waiting for new connection... [08:53:03] Sock 7.Parse request [08:53:03]Sock 7.Check first char [08:53:03]Sock 7.First char is OK [08:53:03]request: POST /json_proto HTTP/1.0 [08:53:03]Method: POST [08:53:03]URL: /json_proto [08:53:03]Method is POST - this is cgi request [08:53:03]url: /json_proto [08:53:03]query_string will be loaded in cgi processing [08:53:03]execute_cgi json_proto POST (null) [08:53:03]execute_cgi path=json_proto method=POST [08:53:03]POST find Content-Length [08:53:03]Host: 172.17.48.197:8080 [08:53:03]Content-Length: 1210 [08:53:03]Content-Type: application/json [08:53:03] [08:53:03]POST finish read [08:53:03]Found Content-Length = 1210 [08:53:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106103\u000A03.03.2024 08:49\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 1238.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A89330\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:53:03]execute_script... [08:53:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106103\u000A03.03.2024 08:49\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 1238.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A89330\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:53:03]POST & json_proto [08:53:03]process_json_proto [08:53:03]json parsed OK: [08:53:03]protocol is kg_v1.0 [08:53:03]action value=print_text [08:53:03]process_action print_text [08:53:03]cmd_print_text [08:53:03]ExternCall_PrintAddStr [08:53:03]wPrintStart [08:53:03]Write to MH i2c: 01 00 00 30 14 44 [08:53:03]Write i2c OK [08:53:03]MH_I2C_Read... [08:53:03]Read from MH i2c: 01 [08:53:03]MH_I2C_Read... [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 30 14 00 00 00 00 00 FF 0F 59 [08:53:03]RasterBufferAndPrint [08:53:03]line *****ТОВАРНЫЙ ЧЕК***** [08:53:03]line АЗС 25 [08:53:03]line Партнер нефть [08:53:03]line 02508201610067 [08:53:03]line Кассир : Турдумбек у. К. [08:53:03]line Счет N : (1)1106103 [08:53:03]line 03.03.2024 08:49 [08:53:03]line ПРОДАЖА [08:53:03]line ТРК (МРК, ГНК): 32 [08:53:03]line Вид ГСМ : 2710124130 [08:53:03]line Аи-92-К-5 [08:53:03]line 20.000 x 61.90 [08:53:03]line ИТОГ: 1238.00 [08:53:03]line Тип оплаты: Талоны: Топливная Карта [08:53:03]line 89330 [08:53:03]line ______________________ [08:53:03]line (подпись) [08:53:03]written 0, free lines is 4095 [08:53:03]Write to MH i2c: 01 00 00 45 14 59 [08:53:03]Write i2c OK [08:53:03]MH_I2C_Read... [08:53:03]Read from MH i2c: 01 [08:53:03]MH_I2C_Read... [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 45 14 00 00 00 00 00 F6 0D 63 [08:53:03]RasterBufferAndPrint [08:53:03]line [08:53:03]line [08:53:03]line [08:53:03]line [08:53:03]line [08:53:03]written 0, free lines is 3576 [08:53:03]MH_Cut [08:53:03]Write to MH i2c: D1 01 00 4C 14 01 32 [08:53:03]Write i2c OK [08:53:03]MH_I2C_Read... [08:53:03]Read from MH i2c: D1 [08:53:03]MH_I2C_Read... [08:53:03]Read from MH i2c: D1 01 00 [08:53:03]MH_I2C_Read... [08:53:03]Read from MH i2c: D1 01 00 4C 14 00 31 [08:53:03]Write to MH i2c: 01 00 00 4D 14 61 [08:53:03]Write i2c OK [08:53:03]MH_I2C_Read... [08:53:04]*** Cut start [08:53:04]*** Purtial cut [08:53:04]*** Stage 1: CUTSNS_PIN = 1 [08:53:04]OFD Sender: No OFD packet to send [08:53:06]Read from MH i2c: 01 [08:53:06]MH_I2C_Read... [08:53:06]*** Stop cut motor [08:53:06]*** Cut end [08:53:06]Read from MH i2c: 01 07 00 [08:53:06]MH_I2C_Read... [08:53:06]Read from MH i2c: 01 07 00 4D 14 00 00 00 00 00 FF 0F 76 [08:53:06]process_action print_text done [08:53:06]requested_data is exist [08:53:06]produce_requested_data [08:53:06]requested_item fm.sn is exist - process it [08:53:06]wFMCommunicate request_size=4 [08:53:06]MH_SAM_APDU [08:53:06]CAPDU: 80 11 00 00 [08:53:06]Write to MH i2c: E2 08 00 4E 14 80 11 00 00 00 00 00 00 DC [08:53:06]Write i2c OK [08:53:06]MH_I2C_Read... [08:53:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:53:06]Read from MH i2c: E2 [08:53:06]MH_I2C_Read... [08:53:06]Read from MH i2c: E2 17 00 [08:53:06]MH_I2C_Read... [08:53:06]Read from MH i2c: E2 17 00 4E 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 3A [08:53:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [08:53:06]wFMCommunicate OK [08:53:06]requested_item fd.num is exist - process it [08:53:06]SAM_PROTO_GetFieldsCounters [08:53:06]wFMCommunicate request_size=4 [08:53:06]MH_SAM_APDU [08:53:06]CAPDU: 80 13 00 00 [08:53:06]Write to MH i2c: E2 08 00 4F 14 80 13 00 00 00 00 00 00 DF [08:53:06]Write i2c OK [08:53:06]MH_I2C_Read... [08:53:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:53:06]Read from MH i2c: E2 [08:53:06]MH_I2C_Read... [08:53:06]Read from MH i2c: E2 62 00 [08:53:06]MH_I2C_Read... [08:53:06]Read from MH i2c: E2 62 00 4F 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 2F E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 D7 [08: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 2F E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:53:06]wFMCommunicate OK [08:53:06]SAM_PROTO_GetFieldsCounters done [08:53:06]requested_item shift.num is exist - process it [08:53:06]requested_item shift.opened is exist - process it [08:53:06]req_shift_opened [08:53:06]FM_GetShiftState [08:53:06]SAM_PROTO_GetShiftState [08:53:06]wFMCommunicate request_size=4 [08:53:06]MH_SAM_APDU [08:53:06]CAPDU: 80 13 01 00 [08:53:06]Write to MH i2c: E2 08 00 50 14 80 13 01 00 00 00 00 00 E1 [08:53:06]Write i2c OK [08:53:06]MH_I2C_Read... [08:53:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:53:06]Read from MH i2c: E2 [08:53:06]MH_I2C_Read... [08:53:06]Read from MH i2c: E2 0E 00 [08:53:06]MH_I2C_Read... [08:53:06]Read from MH i2c: E2 0E 00 50 14 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 A3 [08:53:06]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [08:53:06]wFMCommunicate OK [08:53:06]SAM_PROTO_GetShiftState done [08:53:06]FM_GetShiftState done [08:53:06]req_shift_opened done [08:53:06]requested_item shift.open_date is exist - process it [08:53:06]req_shift_open_date [08:53:06]req_shift_open_date done [08:53:06]produce_requested_data done [08:53:06]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123183,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [08:53:06]process_action_free print_text [08:53:06]json_value_free [08:53:06]json_value_free done [08:53:06]process_json_proto returns [08:53:06]Send response to host [08:53:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123183,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [08:53:06]free response buf [08:53:06]execute_script done [08:53:06]execute_script returns [08:53:06]free content buf [08:53:06]Sock 7.Close socket [08:53:06]Sock 7.Thread stoped [08:53:09]OFD Sender: No OFD packet to send [08:53:14]OFD Sender: No OFD packet to send [08:53:19]OFD Sender: No OFD packet to send [08:53:24]OFD Sender: No OFD packet to send [08:53:29]OFD Sender: No OFD packet to send [08:53:34]OFD Sender: No OFD packet to send [08:53:39]OFD Sender: No OFD packet to send [08:53:44]OFD Sender: No OFD packet to send [08:53:49]OFD Sender: No OFD packet to send [08:53:54]OFD Sender: No OFD packet to send [08:53:59]OFD Sender: No OFD packet to send [08:54:04]OFD Sender: No OFD packet to send [08:54:09]OFD Sender: No OFD packet to send [08:54:14]OFD Sender: No OFD packet to send [08:54:19]OFD Sender: No OFD packet to send [08:54:24]OFD Sender: No OFD packet to send [08:54:29]OFD Sender: No OFD packet to send [08:54:34]OFD Sender: No OFD packet to send [08:54:39]OFD Sender: No OFD packet to send [08:54:44]OFD Sender: No OFD packet to send [08:54:49]OFD Sender: No OFD packet to send [08:54:54]OFD Sender: No OFD packet to send [08:54:59]OFD Sender: No OFD packet to send [08:55:04]accept exits with 9 [08:55:04]New connection [08:55:04]New thread 3067252068 created [08:55:04]Thread 3067395428 joined [08:55:04]Waiting for new connection... [08:55:04] Sock 9.Parse request [08:55:04]Sock 9.Check first char [08:55:04]Sock 9.First char is OK [08:55:04]request: POST /json_proto HTTP/1.0 [08:55:04]Method: POST [08:55:04]URL: /json_proto [08:55:04]Method is POST - this is cgi request [08:55:04]url: /json_proto [08:55:04]query_string will be loaded in cgi processing [08:55:04]execute_cgi json_proto POST (null) [08:55:04]execute_cgi path=json_proto method=POST [08:55:04]POST find Content-Length [08:55:04]Host: 172.17.48.197:8080 [08:55:04]Content-Length: 683 [08:55:04]Content-Type: application/json [08:55:04] [08:55:04]POST finish read [08:55:04]Found Content-Length = 683 [08:55:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106104", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:55:04]execute_script... [08:55: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)1106104", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:55:04]POST & json_proto [08:55:04]process_json_proto [08:55:04]json parsed OK: [08:55:04]protocol is kg_v1.0 [08:55:04]action value=close_receipt [08:55:04]process_action close_receipt [08:55:04]cmd_close_receipt [08:55:04]MH_GetDate [08:55:04]Write to MH i2c: F0 00 00 51 14 54 [08:55:04]Write i2c OK [08:55:04]MH_I2C_Read... [08:55:04]Read from MH i2c: F0 [08:55:04]MH_I2C_Read... [08:55:04]Read from MH i2c: F0 09 00 [08:55:04]MH_I2C_Read... [08:55:04]Read from MH i2c: F0 09 00 51 14 00 EA 3A E4 65 6C AF E3 65 2D [08:55:04]GetLastDocTimeStamp 1709455864 [08:55:04]current date 1709456106 [08:55:04]FM_GetShiftState [08:55:04]SAM_PROTO_GetShiftState [08:55:04]wFMCommunicate request_size=4 [08:55:04]MH_SAM_APDU [08:55:04]CAPDU: 80 13 01 00 [08:55:04]Write to MH i2c: E2 08 00 52 14 80 13 01 00 00 00 00 00 E3 [08:55:04]Write i2c OK [08:55:04]MH_I2C_Read... [08:55:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:55:04]Read from MH i2c: E2 [08:55:04]MH_I2C_Read... [08:55:04]Read from MH i2c: E2 0E 00 [08:55:04]MH_I2C_Read... [08:55:04]Read from MH i2c: E2 0E 00 52 14 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 A5 [08:55:04]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [08:55:04]wFMCommunicate OK [08:55:04]SAM_PROTO_GetShiftState done [08:55:04]FM_GetShiftState done [08:55:04]opened in 1709425579 [08:55:04]opened+sec_in_day 1709511979 [08:55:04]quantity*price = 100010 [08:55:04]sum+1 = 100012 [08:55:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 41 03.03.2024 08:55 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123184 ФПД: 247762059230305 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T085506&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123184&fm=247762059230305&tin=02508201610067®Number=0000000000090573&sum=100000 [08:55:05]StoreToDocumentArchive [08:55:05]shift 323 fd 123184 [08:55:05]save to /storage/0323/doc_00123184 [08:55:05]save last doc name /storage/0323/doc_00123184 to /storage/kkm_last_doc_name [08:55:05]save OK [08:55:05]Clear old archive folders... [08:55:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:55:05]tlvbuf is 00E1F3B0 [08:55:05]SAM_PROTO_ClearQueue [08:55:05]wFMCommunicate request_size=4 [08:55:05]MH_SAM_APDU [08:55:05]CAPDU: 80 09 00 00 [08:55:05]Write to MH i2c: E2 08 00 5F 14 80 09 00 00 00 00 00 00 E5 [08:55:05]Write i2c OK [08:55:05]MH_I2C_Read... [08:55:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:55:05]Read from MH i2c: E2 [08:55:05]MH_I2C_Read... [08:55:05]Read from MH i2c: E2 03 00 [08:55:05]MH_I2C_Read... [08:55:05]Read from MH i2c: E2 03 00 5F 14 00 90 00 E7 [08:55:05]RAPDU: 90 00 [08:55:05]wFMCommunicate OK [08:55:05]SAM_PROTO_ClearQueue done [08:55:05]KKMCreateOFDPacket [08:55:05]OFDProtocolAddRootSTLVToBuf [08:55:05]FM_MakeSignedData [08:55:05]FM_MakeSignedData [08:55:05]SAM_PROTO_SignData [08:55:05]wFMCommunicate request_size=4 [08:55:05]MH_SAM_APDU [08:55:05]CAPDU: 80 0D 01 02 [08:55:05]Write to MH i2c: E2 08 00 60 14 80 0D 01 02 00 00 00 00 ED [08:55:05]Write i2c OK [08:55:05]MH_I2C_Read... [08:55:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:55:05]Read from MH i2c: E2 [08:55:05]MH_I2C_Read... [08:55:05]Read from MH i2c: E2 03 00 [08:55:05]MH_I2C_Read... [08:55:05]Read from MH i2c: E2 03 00 60 14 00 90 00 E8 [08:55:05]RAPDU: 90 00 [08:55:05]wFMCommunicate OK [08:55:05]wFMCommunicate request_size=255 [08:55:05]MH_SAM_APDU [08:55: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 EA 3A E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 30 E1 01 00 35 04 06 00 E1 [08:55:05]Write to MH i2c: E2 02 01 61 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 EA 3A E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 30 E1 01 00 35 04 06 00 E1 00 00 1F [08:55:05]Write i2c OK [08:55:05]MH_I2C_Read... [08:55:05]Read from MH i2c: E2 [08:55:05]MH_I2C_Read... [08:55:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:55:05]Read from MH i2c: E2 03 00 [08:55:05]MH_I2C_Read... [08:55:05]Read from MH i2c: E2 03 00 61 14 00 90 00 E9 [08:55:05]RAPDU: 90 00 [08:55:05]wFMCommunicate OK [08:55:05]wFMCommunicate request_size=10 [08:55:05]MH_SAM_APDU [08:55:05]CAPDU: 80 0D 02 02 05 56 99 87 7C 61 [08:55:05]Write to MH i2c: E2 0D 00 62 14 80 0D 02 02 05 00 56 99 87 7C 61 00 00 4D [08:55:05]Write i2c OK [08:55:05]MH_I2C_Read... [08:55:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:55:05]Read from MH i2c: E2 [08:55:05]MH_I2C_Read... [08:55:05]Read from MH i2c: E2 03 00 [08:55:05]MH_I2C_Read... [08:55:05]Read from MH i2c: E2 03 00 62 14 00 90 00 EA [08:55:05]RAPDU: 90 00 [08:55:05]wFMCommunicate OK [08:55:05]wFMCommunicate request_size=4 [08:55:05]MH_SAM_APDU [08:55:05]CAPDU: 80 0D 03 02 [08:55:05]Write to MH i2c: E2 08 00 63 14 80 0D 03 02 00 00 00 00 F2 [08:55:05]Write i2c OK [08:55:05]MH_I2C_Read... [08:55:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:55:06]Read from MH i2c: E2 [08:55:06]MH_I2C_Read... [08:55:06]Read from MH i2c: E2 0B 00 [08:55:06]MH_I2C_Read... [08:55:06]Read from MH i2c: E2 0B 00 63 14 00 54 6C 0E 74 DC BB 2C E7 90 00 DF [08:55:06]RAPDU: 54 6C 0E 74 DC BB 2C E7 90 00 [08:55:06]wFMCommunicate OK [08:55:06]SAM_PROTO_SignData done [08:55:06]FM_MakeSignedData done [08:55:06]CreateOFDProtocolMessage [08:55:06]wFMCommunicate request_size=4 [08:55:06]MH_SAM_APDU [08:55:06]CAPDU: 80 11 00 00 [08:55:06]Write to MH i2c: E2 08 00 64 14 80 11 00 00 00 00 00 00 F2 [08:55:06]Write i2c OK [08:55:06]MH_I2C_Read... [08:55:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:55:06]Read from MH i2c: E2 [08:55:06]MH_I2C_Read... [08:55:06]Read from MH i2c: E2 17 00 [08:55:06]MH_I2C_Read... [08:55:06]Read from MH i2c: E2 17 00 64 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 50 [08:55:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [08:55:06]wFMCommunicate OK [08:55:06]CreateOFDProtocolMessage done [08:55:06]OFDSenderStorePacket 123184 [08:55:06]StoreOFDPacket docnum=123184 [08:55:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 36 EF 07 01 CA 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 EA 3A E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 30 E1 01 00 35 04 06 00 E1 56 99 87 7C 61 54 6C 0E 74 DC BB 2C E7 [08:55:06]CheckFolder [08:55:06]dirname=/storage/ofd_packets [08:55:06]CheckFolder done [08:55:06]ProducePacketName [08:55:06]name=ofd_packets/00123184 [08:55:06]NVStorageSaveData ofd_packets/00123184 [08:55:06]File name is /storage/ofd_packets/00123184 [08:55:06]Write 301 bytes [08:55:06]NVStorageSaveData done [08:55:06]OFDSenderStorePacket done [08:55:06]KKMCreateOFDPacket done [08:55:06]NVStorageSaveData kkm_last_timestamp [08:55:06]File name is /storage/kkm_last_timestamp [08:55:06]Write 4 bytes [08:55:06]NVStorageSaveData done [08:55:06]ExternCall_PrintAddStr [08:55:06]wPrintStart [08:55:06]Write to MH i2c: 01 00 00 65 14 79 [08:55:06]Write i2c OK [08:55:06]MH_I2C_Read... [08:55:06]Read from MH i2c: 01 [08:55:06]MH_I2C_Read... [08:55:06]Read from MH i2c: 01 07 00 [08:55:06]MH_I2C_Read... [08:55:06]Read from MH i2c: 01 07 00 65 14 00 00 00 00 00 FF 0F 8E [08:55:06]RasterBufferAndPrint [08:55:06]line Счет N : (1)1106104 [08:55:06]line ИНН: 02508201610067 [08:55:06]line Контрольно-Кассовый Чек [08:55:06]line ПРОДАЖА [08:55:06]line ТРК (МРК, ГНК) : 53 [08:55:06]line Товар: 2710124500 [08:55:06]line Аи-95-К-5 [08:55:06]line 14.390 * 69.50 [08:55:06]line = 1000.11 [08:55:06]line НДС 12% НСП 1% [08:55:06]line > о реализуемом товаре [08:55:06]line ОКРУГЛЕНИЕ: -0.11 [08:55:06]line ИТОГО: 1000.00 [08:55:06]line Внесено: 1000.00 [08:55:06]line СДАЧА: 0.00 [08:55:06]line НСП 1% : 8.85 [08:55:06]line НДС 12% : 106.21 [08:55:06]line Наличными: 1000.00 [08:55:06]line Безнал.: 0.00 [08:55:06]line Место: АЗС № 25 "Партнер Нефть" [08:55:06]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [08:55:06]line СНО: Общий режим [08:55:06]line Чек 41 03.03.2024 08:55 [08:55:06]line Смена: 323 ФФД: 1.0 [08:55:06]line ЗНМ: 0300000019 [08:55:06]line РНМ: 0000000000090573 [08:55:06]line Версия ККМ: 001 [08:55:06]line ФМ: 0000000000874798 [08:55:06]line ФД: 123184 [08:55:06]line ФПД: 247762059230305 [08:55:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T085506&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123184&fm=247762059230305&tin=02508201610067®Number=0000000000090573&sum=100000 [08:55:06]OFD Sender: Processing packet 123184 [packets to send 112, broken 111] [08:55:06]ProducePacketName [08:55:06]name=ofd_packets/00123184 [08:55:06]OFD Sender: To server: pG, [08:55:06]CommunicateWithHost lk.salyk.kg:30040 [08:55:06]ConnectInit lk.salyk.kg [08:55:06]written 0, free lines is 4095 [08:55:06]Connected sock=10 [08:55: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 37 39 38 0F 01 00 00 36 EF 07 01 CA 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 EA 3A E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 30 E1 01 00 35 04 06 00 E1 56 99 87 7C 61 54 6C 0E 74 DC BB 2C E7 [08:55:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 ED E3 47 00 F2 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 37 39 38 10 04 04 00 30 E1 01 00 F4 03 04 00 17 E7 E3 65 B6 04 01 00 00 69 6E 55 0A D5 F1 78 BE [08:55:06]CommunicateWithHost err = 0 [08:55:06]CheckOFDResponse [08:55:06]1017 (14) - 77093643461234 [08:55:06]1041 (16) - 0000000000874798 [08:55:06]1040 (4) - 123184 [08:55:06]1012 (4) - 03.03.2024 02:57 [08:55:06]1206 (1) - 0 [08:55:06]OFD Sender: Remove packet 123184 [08:55:06]ProducePacketName [08:55:06]name=ofd_packets/00123184 [08:55:06]NVStorageDeleteData [08:55:06]Write to MH i2c: 01 00 00 90 14 A4 [08:55:06]Write i2c OK [08:55:06]MH_I2C_Read... [08:55:06]Read from MH i2c: 01 [08:55:06]MH_I2C_Read... [08:55:06]Read from MH i2c: 01 07 00 [08:55:06]MH_I2C_Read... [08:55:06]Read from MH i2c: 01 07 00 90 14 00 00 00 00 00 E7 0C 9E [08:55:06]RasterBufferAndPrint [08:55:06]line [08:55:06]line [08:55:06]line [08:55:06]line [08:55:06]line [08:55:06]written 0, free lines is 3309 [08:55:06]MH_Cut [08:55:06]Write to MH i2c: D1 01 00 97 14 01 7D [08:55:06]Write i2c OK [08:55:06]MH_I2C_Read... [08:55:06]Read from MH i2c: D1 [08:55:06]MH_I2C_Read... [08:55:06]Read from MH i2c: D1 01 00 [08:55:06]MH_I2C_Read... [08:55:06]Read from MH i2c: D1 01 00 97 14 00 7C [08:55:06]Write to MH i2c: 01 00 00 98 14 AC [08:55:06]Write i2c OK [08:55:06]MH_I2C_Read... [08:55:07]OFD Sender: No OFD packet to send [08:55:07]*** Cut start [08:55:07]*** Purtial cut [08:55:07]*** Stage 1: CUTSNS_PIN = 1 [08:55:09]Read from MH i2c: 01 [08:55:09]MH_I2C_Read... [08:55:09]*** Stop cut motor [08:55:09]*** Cut end [08:55:09]Read from MH i2c: 01 07 00 [08:55:09]MH_I2C_Read... [08:55:09]Read from MH i2c: 01 07 00 98 14 00 00 00 00 00 FF 0F C1 [08:55:09]process_action close_receipt done [08:55:09]requested_data is exist [08:55:09]produce_requested_data [08:55:09]requested_item fm.sn is exist - process it [08:55:09]wFMCommunicate request_size=4 [08:55:09]MH_SAM_APDU [08:55:09]CAPDU: 80 11 00 00 [08:55:09]Write to MH i2c: E2 08 00 99 14 80 11 00 00 00 00 00 00 27 [08:55:09]Write i2c OK [08:55:09]MH_I2C_Read... [08:55:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:55:09]Read from MH i2c: E2 [08:55:09]MH_I2C_Read... [08:55:09]Read from MH i2c: E2 17 00 [08:55:09]MH_I2C_Read... [08:55:09]Read from MH i2c: E2 17 00 99 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 85 [08:55:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [08:55:09]wFMCommunicate OK [08:55:09]requested_item fd.num is exist - process it [08:55:09]SAM_PROTO_GetFieldsCounters [08:55:09]wFMCommunicate request_size=4 [08:55:09]MH_SAM_APDU [08:55:09]CAPDU: 80 13 00 00 [08:55:09]Write to MH i2c: E2 08 00 9A 14 80 13 00 00 00 00 00 00 2A [08:55:09]Write i2c OK [08:55:09]MH_I2C_Read... [08:55:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:55:09]Read from MH i2c: E2 [08:55:09]MH_I2C_Read... [08:55:09]Read from MH i2c: E2 62 00 [08:55:09]MH_I2C_Read... [08:55:09]Read from MH i2c: E2 62 00 9A 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 30 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 26 [08:55: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 30 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:55:09]wFMCommunicate OK [08:55:09]SAM_PROTO_GetFieldsCounters done [08:55:09]requested_item shift.num is exist - process it [08:55:09]requested_item shift.opened is exist - process it [08:55:09]req_shift_opened [08:55:09]FM_GetShiftState [08:55:09]SAM_PROTO_GetShiftState [08:55:09]wFMCommunicate request_size=4 [08:55:09]MH_SAM_APDU [08:55:09]CAPDU: 80 13 01 00 [08:55:09]Write to MH i2c: E2 08 00 9B 14 80 13 01 00 00 00 00 00 2C [08:55:09]Write i2c OK [08:55:09]MH_I2C_Read... [08:55:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:55:09]Read from MH i2c: E2 [08:55:09]MH_I2C_Read... [08:55:09]Read from MH i2c: E2 0E 00 [08:55:09]MH_I2C_Read... [08:55:09]Read from MH i2c: E2 0E 00 9B 14 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 EE [08:55:09]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [08:55:09]wFMCommunicate OK [08:55:09]SAM_PROTO_GetShiftState done [08:55:09]FM_GetShiftState done [08:55:09]req_shift_opened done [08:55:09]requested_item shift.open_date is exist - process it [08:55:09]req_shift_open_date [08:55:09]req_shift_open_date done [08:55:09]produce_requested_data done [08:55:09]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123184,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [08:55:09]process_action_free close_receipt [08:55:09]json_value_free [08:55:09]json_value_free done [08:55:09]process_json_proto returns [08:55:09]Send response to host [08:55:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123184,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [08:55:09]free response buf [08:55:09]execute_script done [08:55:09]execute_script returns [08:55:09]free content buf [08:55:09]Sock 9.Close socket [08:55:09]Sock 9.Thread stoped [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:05]accept exits with 7 [08:56:05]New connection [08:56:05]New thread 3067395428 created [08:56:05]Thread 3067252068 joined [08:56:05]Waiting for new connection... [08:56:05] Sock 7.Parse request [08:56:05]Sock 7.Check first char [08:56:05]Sock 7.First char is OK [08:56:05]request: POST /json_proto HTTP/1.0 [08:56:05]Method: POST [08:56:05]URL: /json_proto [08:56:05]Method is POST - this is cgi request [08:56:05]url: /json_proto [08:56:05]query_string will be loaded in cgi processing [08:56:05]execute_cgi json_proto POST (null) [08:56:05]execute_cgi path=json_proto method=POST [08:56:05]POST find Content-Length [08:56:05]Host: 172.17.48.197:8080 [08:56:05]Content-Length: 683 [08:56:05]Content-Type: application/json [08:56:05] [08:56:05]POST finish read [08:56:05]Found Content-Length = 683 [08:56:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106105", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "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" ] } } [08:56:05]execute_script... [08:56:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106105", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "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" ] } } [08:56:05]POST & json_proto [08:56:05]process_json_proto [08:56:05]json parsed OK: [08:56:05]protocol is kg_v1.0 [08:56:05]action value=close_receipt [08:56:05]process_action close_receipt [08:56:05]cmd_close_receipt [08:56:05]MH_GetDate [08:56:05]Write to MH i2c: F0 00 00 9C 14 9F [08:56:05]Write i2c OK [08:56:05]MH_I2C_Read... [08:56:05]Read from MH i2c: F0 [08:56:05]MH_I2C_Read... [08:56:05]Read from MH i2c: F0 09 00 [08:56:05]MH_I2C_Read... [08:56:05]Read from MH i2c: F0 09 00 9C 14 00 27 3B E4 65 6C AF E3 65 B6 [08:56:05]GetLastDocTimeStamp 1709456106 [08:56:05]current date 1709456167 [08:56:05]FM_GetShiftState [08:56:05]SAM_PROTO_GetShiftState [08:56:05]wFMCommunicate request_size=4 [08:56:05]MH_SAM_APDU [08:56:05]CAPDU: 80 13 01 00 [08:56:05]Write to MH i2c: E2 08 00 9D 14 80 13 01 00 00 00 00 00 2E [08:56:05]Write i2c OK [08:56:05]MH_I2C_Read... [08:56:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:56:05]Read from MH i2c: E2 [08:56:05]MH_I2C_Read... [08:56:05]Read from MH i2c: E2 0E 00 [08:56:05]MH_I2C_Read... [08:56:05]Read from MH i2c: E2 0E 00 9D 14 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 F0 [08:56:05]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [08:56:05]wFMCommunicate OK [08:56:05]SAM_PROTO_GetShiftState done [08:56:05]FM_GetShiftState done [08:56:05]opened in 1709425579 [08:56:05]opened+sec_in_day 1709511979 [08:56:05]quantity*price = 100030 [08:56:05]sum+1 = 100031 [08:56:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 42 03.03.2024 08:56 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123185 ФПД: 223802505919794 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T085607&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123185&fm=223802505919794&tin=02508201610067®Number=0000000000090573&sum=100000 [08:56:06]StoreToDocumentArchive [08:56:06]shift 323 fd 123185 [08:56:06]save to /storage/0323/doc_00123185 [08:56:06]save last doc name /storage/0323/doc_00123185 to /storage/kkm_last_doc_name [08:56:06]save OK [08:56:06]Clear old archive folders... [08:56:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:56:06]tlvbuf is 00DE1C30 [08:56:06]SAM_PROTO_ClearQueue [08:56:06]wFMCommunicate request_size=4 [08:56:06]MH_SAM_APDU [08:56:06]CAPDU: 80 09 00 00 [08:56:06]Write to MH i2c: E2 08 00 AA 14 80 09 00 00 00 00 00 00 30 [08:56:06]Write i2c OK [08:56:06]MH_I2C_Read... [08:56:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:56:06]Read from MH i2c: E2 [08:56:06]MH_I2C_Read... [08:56:06]Read from MH i2c: E2 03 00 [08:56:06]MH_I2C_Read... [08:56:06]Read from MH i2c: E2 03 00 AA 14 00 90 00 32 [08:56:06]RAPDU: 90 00 [08:56:06]wFMCommunicate OK [08:56:06]SAM_PROTO_ClearQueue done [08:56:06]KKMCreateOFDPacket [08:56:06]OFDProtocolAddRootSTLVToBuf [08:56:06]FM_MakeSignedData [08:56:06]FM_MakeSignedData [08:56:06]SAM_PROTO_SignData [08:56:06]wFMCommunicate request_size=4 [08:56:06]MH_SAM_APDU [08:56:06]CAPDU: 80 0D 01 02 [08:56:06]Write to MH i2c: E2 08 00 AB 14 80 0D 01 02 00 00 00 00 38 [08:56:06]Write i2c OK [08:56:06]MH_I2C_Read... [08:56:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:56:06]Read from MH i2c: E2 [08:56:06]MH_I2C_Read... [08:56:06]Read from MH i2c: E2 03 00 [08:56:06]MH_I2C_Read... [08:56:06]Read from MH i2c: E2 03 00 AB 14 00 90 00 33 [08:56:06]RAPDU: 90 00 [08:56:06]wFMCommunicate OK [08:56:06]wFMCommunicate request_size=255 [08:56:06]MH_SAM_APDU [08:56: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 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 2A 00 00 00 F4 03 04 00 27 3B E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 31 E1 01 00 35 04 06 00 CB [08:56:06]Write to MH i2c: E2 02 01 AC 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 2A 00 00 00 F4 03 04 00 27 3B E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 31 E1 01 00 35 04 06 00 CB 00 00 9B [08:56:06]Write i2c OK [08:56:06]MH_I2C_Read... [08:56:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:56:06]Read from MH i2c: E2 [08:56:06]MH_I2C_Read... [08:56:06]Read from MH i2c: E2 03 00 [08:56:06]MH_I2C_Read... [08:56:06]Read from MH i2c: E2 03 00 AC 14 00 90 00 34 [08:56:06]RAPDU: 90 00 [08:56:06]wFMCommunicate OK [08:56:06]wFMCommunicate request_size=10 [08:56:06]MH_SAM_APDU [08:56:06]CAPDU: 80 0D 02 02 05 8C 14 DD 7D 32 [08:56:06]Write to MH i2c: E2 0D 00 AD 14 80 0D 02 02 05 00 8C 14 DD 7D 32 00 00 71 [08:56:06]Write i2c OK [08:56:06]MH_I2C_Read... [08:56:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:56:06]Read from MH i2c: E2 [08:56:06]MH_I2C_Read... [08:56:06]Read from MH i2c: E2 03 00 [08:56:06]MH_I2C_Read... [08:56:06]Read from MH i2c: E2 03 00 AD 14 00 90 00 35 [08:56:06]RAPDU: 90 00 [08:56:06]wFMCommunicate OK [08:56:06]wFMCommunicate request_size=4 [08:56:06]MH_SAM_APDU [08:56:06]CAPDU: 80 0D 03 02 [08:56:06]Write to MH i2c: E2 08 00 AE 14 80 0D 03 02 00 00 00 00 3D [08:56:06]Write i2c OK [08:56:06]MH_I2C_Read... [08:56:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:56:06]Read from MH i2c: E2 [08:56:06]MH_I2C_Read... [08:56:06]Read from MH i2c: E2 0B 00 [08:56:06]MH_I2C_Read... [08:56:06]Read from MH i2c: E2 0B 00 AE 14 00 52 58 06 BE B2 C3 5C 94 90 00 11 [08:56:06]RAPDU: 52 58 06 BE B2 C3 5C 94 90 00 [08:56:06]wFMCommunicate OK [08:56:06]SAM_PROTO_SignData done [08:56:06]FM_MakeSignedData done [08:56:06]CreateOFDProtocolMessage [08:56:06]wFMCommunicate request_size=4 [08:56:06]MH_SAM_APDU [08:56:06]CAPDU: 80 11 00 00 [08:56:06]Write to MH i2c: E2 08 00 AF 14 80 11 00 00 00 00 00 00 3D [08:56:06]Write i2c OK [08:56:06]MH_I2C_Read... [08:56:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:56:06]Read from MH i2c: E2 [08:56:06]MH_I2C_Read... [08:56:06]Read from MH i2c: E2 17 00 [08:56:06]MH_I2C_Read... [08:56:06]Read from MH i2c: E2 17 00 AF 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 9B [08:56:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [08:56:06]wFMCommunicate OK [08:56:06]CreateOFDProtocolMessage done [08:56:06]OFDSenderStorePacket 123185 [08:56:06]StoreOFDPacket docnum=123185 [08:56:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 36 49 07 01 8C B3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 2A 00 00 00 F4 03 04 00 27 3B E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 31 E1 01 00 35 04 06 00 CB 8C 14 DD 7D 32 52 58 06 BE B2 C3 5C 94 [08:56:06]CheckFolder [08:56:06]dirname=/storage/ofd_packets [08:56:06]CheckFolder done [08:56:06]ProducePacketName [08:56:06]name=ofd_packets/00123185 [08:56:06]NVStorageSaveData ofd_packets/00123185 [08:56:06]File name is /storage/ofd_packets/00123185 [08:56:06]Write 301 bytes [08:56:06]NVStorageSaveData done [08:56:06]OFDSenderStorePacket done [08:56:06]KKMCreateOFDPacket done [08:56:06]NVStorageSaveData kkm_last_timestamp [08:56:06]File name is /storage/kkm_last_timestamp [08:56:06]Write 4 bytes [08:56:06]NVStorageSaveData done [08:56:06]ExternCall_PrintAddStr [08:56:06]wPrintStart [08:56:06]Write to MH i2c: 01 00 00 B0 14 C4 [08:56:06]Write i2c OK [08:56:06]MH_I2C_Read... [08:56:06]Read from MH i2c: 01 [08:56:06]MH_I2C_Read... [08:56:06]Read from MH i2c: 01 07 00 [08:56:06]MH_I2C_Read... [08:56:06]Read from MH i2c: 01 07 00 B0 14 00 00 00 00 00 FF 0F D9 [08:56:06]RasterBufferAndPrint [08:56:06]line Счет N : (1)1106105 [08:56:06]line ИНН: 02508201610067 [08:56:06]line Контрольно-Кассовый Чек [08:56:06]line ПРОДАЖА [08:56:06]line ТРК (МРК, ГНК) : 62 [08:56:06]line Товар: 2710124130 [08:56:06]line Аи-92-К-5 [08:56:06]line 16.160 * 61.90 [08:56:06]line = 1000.30 [08:56:06]line НДС 12% НСП 1% [08:56:06]line > о реализуемом товаре [08:56:06]line ОКРУГЛЕНИЕ: -0.30 [08:56:06]line ИТОГО: 1000.00 [08:56:06]line Внесено: 1000.00 [08:56:06]line СДАЧА: 0.00 [08:56:06]line НСП 1% : 8.85 [08:56:06]line НДС 12% : 106.23 [08:56:06]line Наличными: 1000.00 [08:56:06]line Безнал.: 0.00 [08:56:06]line Место: АЗС № 25 "Партнер Нефть" [08:56:06]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [08:56:06]line СНО: Общий режим [08:56:06]line Чек 42 03.03.2024 08:56 [08:56:06]line Смена: 323 ФФД: 1.0 [08:56:06]line ЗНМ: 0300000019 [08:56:06]line РНМ: 0000000000090573 [08:56:06]line Версия ККМ: 001 [08:56:06]line ФМ: 0000000000874798 [08:56:06]line ФД: 123185 [08:56:06]line ФПД: 223802505919794 [08:56:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T085607&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123185&fm=223802505919794&tin=02508201610067®Number=0000000000090573&sum=100000 [08:56:07]OFD Sender: Processing packet 123185 [packets to send 112, broken 111] [08:56:07]ProducePacketName [08:56:07]name=ofd_packets/00123185 [08:56:07]OFD Sender: To server: pG, [08:56:07]CommunicateWithHost lk.salyk.kg:30040 [08:56:07]ConnectInit lk.salyk.kg [08:56:07]written 0, free lines is 4095 [08:56:07]Connected sock=10 [08:56: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 37 39 38 0F 01 00 00 36 49 07 01 8C B3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 2A 00 00 00 F4 03 04 00 27 3B E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 31 E1 01 00 35 04 06 00 CB 8C 14 DD 7D 32 52 58 06 BE B2 C3 5C 94 [08: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 37 39 38 4F 00 00 00 94 09 47 00 CE 01 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 31 E1 01 00 F4 03 04 00 53 E7 E3 65 B6 04 01 00 00 A0 B5 F6 C2 54 AA 45 C3 [08:56:07]CommunicateWithHost err = 0 [08:56:07]CheckOFDResponse [08:56:07]1017 (14) - 77093643461234 [08:56:07]1041 (16) - 0000000000874798 [08:56:07]1040 (4) - 123185 [08:56:07]1012 (4) - 03.03.2024 02:58 [08:56:07]1206 (1) - 0 [08:56:07]OFD Sender: Remove packet 123185 [08:56:07]ProducePacketName [08:56:07]name=ofd_packets/00123185 [08:56:07]NVStorageDeleteData [08:56:07]Write to MH i2c: 01 00 00 DB 14 EF [08:56:07]Write i2c OK [08:56:07]MH_I2C_Read... [08:56:07]Read from MH i2c: 01 [08:56:07]MH_I2C_Read... [08:56:07]Read from MH i2c: 01 07 00 [08:56:07]MH_I2C_Read... [08:56:07]Read from MH i2c: 01 07 00 DB 14 00 00 00 00 00 EA 0C EC [08:56:07]RasterBufferAndPrint [08:56:07]line [08:56:07]line [08:56:07]line [08:56:07]line [08:56:07]line [08:56:07]written 0, free lines is 3312 [08:56:07]MH_Cut [08:56:07]Write to MH i2c: D1 01 00 E2 14 01 C8 [08:56:07]Write i2c OK [08:56:07]MH_I2C_Read... [08:56:07]Read from MH i2c: D1 [08:56:07]MH_I2C_Read... [08:56:07]Read from MH i2c: D1 01 00 [08:56:07]MH_I2C_Read... [08:56:07]Read from MH i2c: D1 01 00 E2 14 00 C7 [08:56:07]Write to MH i2c: 01 00 00 E3 14 F7 [08:56:07]Write i2c OK [08:56:07]MH_I2C_Read... [08:56:07]OFD Sender: No OFD packet to send [08:56:08]*** Cut start [08:56:08]*** Purtial cut [08:56:08]*** Stage 1: CUTSNS_PIN = 1 [08:56:10]Read from MH i2c: 01 [08:56:10]MH_I2C_Read... [08:56:10]*** Stop cut motor [08:56:10]*** Cut end [08:56:10]Read from MH i2c: 01 07 00 [08:56:10]MH_I2C_Read... [08:56:10]Read from MH i2c: 01 07 00 E3 14 00 00 00 00 00 FF 0F 0C [08:56:10]process_action close_receipt done [08:56:10]requested_data is exist [08:56:10]produce_requested_data [08:56:10]requested_item fm.sn is exist - process it [08:56:10]wFMCommunicate request_size=4 [08:56:10]MH_SAM_APDU [08:56:10]CAPDU: 80 11 00 00 [08:56:10]Write to MH i2c: E2 08 00 E4 14 80 11 00 00 00 00 00 00 72 [08:56:10]Write i2c OK [08:56:10]MH_I2C_Read... [08:56:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:56:10]Read from MH i2c: E2 [08:56:10]MH_I2C_Read... [08:56:10]Read from MH i2c: E2 17 00 [08:56:10]MH_I2C_Read... [08:56:10]Read from MH i2c: E2 17 00 E4 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 D0 [08:56:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [08:56:10]wFMCommunicate OK [08:56:10]requested_item fd.num is exist - process it [08:56:10]SAM_PROTO_GetFieldsCounters [08:56:10]wFMCommunicate request_size=4 [08:56:10]MH_SAM_APDU [08:56:10]CAPDU: 80 13 00 00 [08:56:10]Write to MH i2c: E2 08 00 E5 14 80 13 00 00 00 00 00 00 75 [08:56:10]Write i2c OK [08:56:10]MH_I2C_Read... [08:56:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:56:10]Read from MH i2c: E2 [08:56:10]MH_I2C_Read... [08:56:10]Read from MH i2c: E2 62 00 [08:56:10]MH_I2C_Read... [08:56:10]Read from MH i2c: E2 62 00 E5 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 31 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 75 [08:56: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 31 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:56:10]wFMCommunicate OK [08:56:10]SAM_PROTO_GetFieldsCounters done [08:56:10]requested_item shift.num is exist - process it [08:56:10]requested_item shift.opened is exist - process it [08:56:10]req_shift_opened [08:56:10]FM_GetShiftState [08:56:10]SAM_PROTO_GetShiftState [08:56:10]wFMCommunicate request_size=4 [08:56:10]MH_SAM_APDU [08:56:10]CAPDU: 80 13 01 00 [08:56:10]Write to MH i2c: E2 08 00 E6 14 80 13 01 00 00 00 00 00 77 [08:56:10]Write i2c OK [08:56:10]MH_I2C_Read... [08:56:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:56:10]Read from MH i2c: E2 [08:56:10]MH_I2C_Read... [08:56:10]Read from MH i2c: E2 0E 00 [08:56:10]MH_I2C_Read... [08:56:10]Read from MH i2c: E2 0E 00 E6 14 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 39 [08:56:10]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [08:56:10]wFMCommunicate OK [08:56:10]SAM_PROTO_GetShiftState done [08:56:10]FM_GetShiftState done [08:56:10]req_shift_opened done [08:56:10]requested_item shift.open_date is exist - process it [08:56:10]req_shift_open_date [08:56:10]req_shift_open_date done [08:56:10]produce_requested_data done [08:56:10]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123185,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [08:56:10]process_action_free close_receipt [08:56:10]json_value_free [08:56:10]json_value_free done [08:56:10]process_json_proto returns [08:56:10]Send response to host [08:56:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123185,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [08:56:10]free response buf [08:56:10]execute_script done [08:56:10]execute_script returns [08:56:10]free content buf [08:56:10]Sock 7.Close socket [08:56:10]Sock 7.Thread stoped [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:30]accept exits with 9 [08:56:30]New connection [08:56:30]New thread 3067252068 created [08:56:30]Thread 3067395428 joined [08:56:30]Waiting for new connection... [08:56:30] Sock 9.Parse request [08:56:30]Sock 9.Check first char [08:56:30]Sock 9.First char is OK [08:56:30]request: POST /json_proto HTTP/1.0 [08:56:30]Method: POST [08:56:30]URL: /json_proto [08:56:30]Method is POST - this is cgi request [08:56:30]url: /json_proto [08:56:30]query_string will be loaded in cgi processing [08:56:30]execute_cgi json_proto POST (null) [08:56:30]execute_cgi path=json_proto method=POST [08:56:30]POST find Content-Length [08:56:30]Host: 172.17.48.197:8080 [08:56:30]Content-Length: 683 [08:56:30]Content-Type: application/json [08:56:30] [08:56:30]POST finish read [08:56:30]Found Content-Length = 683 [08:56:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106106", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "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" ] } } [08:56:30]execute_script... [08:56: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)1106106", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "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" ] } } [08:56:30]POST & json_proto [08:56:30]process_json_proto [08:56:30]json parsed OK: [08:56:30]protocol is kg_v1.0 [08:56:30]action value=close_receipt [08:56:30]process_action close_receipt [08:56:30]cmd_close_receipt [08:56:30]MH_GetDate [08:56:30]Write to MH i2c: F0 00 00 E7 14 EA [08:56:30]Write i2c OK [08:56:30]MH_I2C_Read... [08:56:30]Read from MH i2c: F0 [08:56:30]MH_I2C_Read... [08:56:30]Read from MH i2c: F0 09 00 [08:56:30]MH_I2C_Read... [08:56:30]Read from MH i2c: F0 09 00 E7 14 00 40 3B E4 65 6C AF E3 65 1A [08:56:30]GetLastDocTimeStamp 1709456167 [08:56:30]current date 1709456192 [08:56:30]FM_GetShiftState [08:56:30]SAM_PROTO_GetShiftState [08:56:30]wFMCommunicate request_size=4 [08:56:30]MH_SAM_APDU [08:56:30]CAPDU: 80 13 01 00 [08:56:30]Write to MH i2c: E2 08 00 E8 14 80 13 01 00 00 00 00 00 79 [08:56:30]Write i2c OK [08:56:30]MH_I2C_Read... [08:56:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:56:30]Read from MH i2c: E2 [08:56:30]MH_I2C_Read... [08:56:30]Read from MH i2c: E2 0E 00 [08:56:30]MH_I2C_Read... [08:56:30]Read from MH i2c: E2 0E 00 E8 14 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 3B [08:56:30]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [08:56:30]wFMCommunicate OK [08:56:30]SAM_PROTO_GetShiftState done [08:56:30]FM_GetShiftState done [08:56:30]opened in 1709425579 [08:56:30]opened+sec_in_day 1709511979 [08:56:30]quantity*price = 100030 [08:56:30]sum+1 = 100031 [08:56:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 43 03.03.2024 08:56 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123186 ФПД: 138003206868868 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T085632&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123186&fm=138003206868868&tin=02508201610067®Number=0000000000090573&sum=100000 [08:56:31]StoreToDocumentArchive [08:56:31]shift 323 fd 123186 [08:56:31]save to /storage/0323/doc_00123186 [08:56:31]save last doc name /storage/0323/doc_00123186 to /storage/kkm_last_doc_name [08:56:31]save OK [08:56:31]Clear old archive folders... [08:56:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:56:31]tlvbuf is 00E07350 [08:56:31]SAM_PROTO_ClearQueue [08:56:31]wFMCommunicate request_size=4 [08:56:31]MH_SAM_APDU [08:56:31]CAPDU: 80 09 00 00 [08:56:31]Write to MH i2c: E2 08 00 F5 14 80 09 00 00 00 00 00 00 7B [08:56:31]Write i2c OK [08:56:31]MH_I2C_Read... [08:56:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:56:31]Read from MH i2c: E2 [08:56:31]MH_I2C_Read... [08:56:31]Read from MH i2c: E2 03 00 [08:56:31]MH_I2C_Read... [08:56:31]Read from MH i2c: E2 03 00 F5 14 00 90 00 7D [08:56:31]RAPDU: 90 00 [08:56:31]wFMCommunicate OK [08:56:31]SAM_PROTO_ClearQueue done [08:56:31]KKMCreateOFDPacket [08:56:31]OFDProtocolAddRootSTLVToBuf [08:56:31]FM_MakeSignedData [08:56:31]FM_MakeSignedData [08:56:31]SAM_PROTO_SignData [08:56:31]wFMCommunicate request_size=4 [08:56:31]MH_SAM_APDU [08:56:31]CAPDU: 80 0D 01 02 [08:56:31]Write to MH i2c: E2 08 00 F6 14 80 0D 01 02 00 00 00 00 83 [08:56:31]Write i2c OK [08:56:31]MH_I2C_Read... [08:56:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:56:31]Read from MH i2c: E2 [08:56:31]MH_I2C_Read... [08:56:31]Read from MH i2c: E2 03 00 [08:56:31]MH_I2C_Read... [08:56:31]Read from MH i2c: E2 03 00 F6 14 00 90 00 7E [08:56:31]RAPDU: 90 00 [08:56:31]wFMCommunicate OK [08:56:31]wFMCommunicate request_size=255 [08:56:31]MH_SAM_APDU [08:56:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 2B 00 00 00 F4 03 04 00 40 3B E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 32 E1 01 00 35 04 06 00 7D [08:56:31]Write to MH i2c: E2 02 01 F7 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 2B 00 00 00 F4 03 04 00 40 3B E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 32 E1 01 00 35 04 06 00 7D 00 00 B3 [08:56:31]Write i2c OK [08:56:31]MH_I2C_Read... [08:56:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:56:32]Read from MH i2c: E2 [08:56:32]MH_I2C_Read... [08:56:32]Read from MH i2c: E2 03 00 [08:56:32]MH_I2C_Read... [08:56:32]Read from MH i2c: E2 03 00 F7 14 00 90 00 7F [08:56:32]RAPDU: 90 00 [08:56:32]wFMCommunicate OK [08:56:32]wFMCommunicate request_size=10 [08:56:32]MH_SAM_APDU [08:56:32]CAPDU: 80 0D 02 02 05 83 60 1F 8F 84 [08:56:32]Write to MH i2c: E2 0D 00 F8 14 80 0D 02 02 05 00 83 60 1F 8F 84 00 00 A5 [08:56:32]Write i2c OK [08:56:32]MH_I2C_Read... [08:56:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:56:32]Read from MH i2c: E2 [08:56:32]MH_I2C_Read... [08:56:32]Read from MH i2c: E2 03 00 [08:56:32]MH_I2C_Read... [08:56:32]Read from MH i2c: E2 03 00 F8 14 00 90 00 80 [08:56:32]RAPDU: 90 00 [08:56:32]wFMCommunicate OK [08:56:32]wFMCommunicate request_size=4 [08:56:32]MH_SAM_APDU [08:56:32]CAPDU: 80 0D 03 02 [08:56:32]Write to MH i2c: E2 08 00 F9 14 80 0D 03 02 00 00 00 00 88 [08:56:32]Write i2c OK [08:56:32]MH_I2C_Read... [08:56:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:56:32]Read from MH i2c: E2 [08:56:32]MH_I2C_Read... [08:56:32]Read from MH i2c: E2 0B 00 [08:56:32]MH_I2C_Read... [08:56:32]Read from MH i2c: E2 0B 00 F9 14 00 70 71 5B 55 42 DD FA 2A 90 00 5D [08:56:32]RAPDU: 70 71 5B 55 42 DD FA 2A 90 00 [08:56:32]wFMCommunicate OK [08:56:32]SAM_PROTO_SignData done [08:56:32]FM_MakeSignedData done [08:56:32]CreateOFDProtocolMessage [08:56:32]wFMCommunicate request_size=4 [08:56:32]MH_SAM_APDU [08:56:32]CAPDU: 80 11 00 00 [08:56:32]Write to MH i2c: E2 08 00 FA 14 80 11 00 00 00 00 00 00 88 [08:56:32]Write i2c OK [08:56:32]MH_I2C_Read... [08:56:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:56:32]Read from MH i2c: E2 [08:56:32]MH_I2C_Read... [08:56:32]Read from MH i2c: E2 17 00 [08:56:32]MH_I2C_Read... [08:56:32]Read from MH i2c: E2 17 00 FA 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 E6 [08:56:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [08:56:32]wFMCommunicate OK [08:56:32]CreateOFDProtocolMessage done [08:56:32]OFDSenderStorePacket 123186 [08:56:32]StoreOFDPacket docnum=123186 [08:56:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 43 C9 07 01 45 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 2B 00 00 00 F4 03 04 00 40 3B E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 32 E1 01 00 35 04 06 00 7D 83 60 1F 8F 84 70 71 5B 55 42 DD FA 2A [08:56:32]CheckFolder [08:56:32]dirname=/storage/ofd_packets [08:56:32]CheckFolder done [08:56:32]ProducePacketName [08:56:32]name=ofd_packets/00123186 [08:56:32]NVStorageSaveData ofd_packets/00123186 [08:56:32]File name is /storage/ofd_packets/00123186 [08:56:32]Write 301 bytes [08:56:32]NVStorageSaveData done [08:56:32]OFDSenderStorePacket done [08:56:32]KKMCreateOFDPacket done [08:56:32]NVStorageSaveData kkm_last_timestamp [08:56:32]File name is /storage/kkm_last_timestamp [08:56:32]Write 4 bytes [08:56:32]NVStorageSaveData done [08:56:32]ExternCall_PrintAddStr [08:56:32]wPrintStart [08:56:32]Write to MH i2c: 01 00 00 FB 14 0F [08:56:32]Write i2c OK [08:56:32]MH_I2C_Read... [08:56:32]Read from MH i2c: 01 [08:56:32]MH_I2C_Read... [08:56:32]Read from MH i2c: 01 07 00 [08:56:32]MH_I2C_Read... [08:56:32]Read from MH i2c: 01 07 00 FB 14 00 00 00 00 00 FF 0F 24 [08:56:32]RasterBufferAndPrint [08:56:32]line Счет N : (1)1106106 [08:56:32]line ИНН: 02508201610067 [08:56:32]line Контрольно-Кассовый Чек [08:56:32]line ПРОДАЖА [08:56:32]line ТРК (МРК, ГНК) : 21 [08:56:32]line Товар: 2710124130 [08:56:32]line Аи-92-К-5 [08:56:32]line 16.160 * 61.90 [08:56:32]line = 1000.30 [08:56:32]line НДС 12% НСП 1% [08:56:32]line > о реализуемом товаре [08:56:32]line ОКРУГЛЕНИЕ: -0.30 [08:56:32]line ИТОГО: 1000.00 [08:56:32]line Внесено: 1000.00 [08:56:32]line СДАЧА: 0.00 [08:56:32]line НСП 1% : 8.85 [08:56:32]line НДС 12% : 106.23 [08:56:32]line Наличными: 1000.00 [08:56:32]line Безнал.: 0.00 [08:56:32]line Место: АЗС № 25 "Партнер Нефть" [08:56:32]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [08:56:32]line СНО: Общий режим [08:56:32]line Чек 43 03.03.2024 08:56 [08:56:32]line Смена: 323 ФФД: 1.0 [08:56:32]line ЗНМ: 0300000019 [08:56:32]line РНМ: 0000000000090573 [08:56:32]line Версия ККМ: 001 [08:56:32]line ФМ: 0000000000874798 [08:56:32]line ФД: 123186 [08:56:32]line ФПД: 138003206868868 [08:56:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T085632&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123186&fm=138003206868868&tin=02508201610067®Number=0000000000090573&sum=100000 [08:56:32]OFD Sender: Processing packet 123186 [packets to send 112, broken 111] [08:56:32]ProducePacketName [08:56:32]name=ofd_packets/00123186 [08:56:32]OFD Sender: To server: pG, [08:56:32]CommunicateWithHost lk.salyk.kg:30040 [08:56:32]ConnectInit lk.salyk.kg [08:56:32]written 0, free lines is 4095 [08:56:32]Connected sock=10 [08:56: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 37 39 38 0F 01 00 00 43 C9 07 01 45 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 2B 00 00 00 F4 03 04 00 40 3B E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 32 E1 01 00 35 04 06 00 7D 83 60 1F 8F 84 70 71 5B 55 42 DD FA 2A [08:56:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 AF 98 47 00 7D D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 32 E1 01 00 F4 03 04 00 6D E7 E3 65 B6 04 01 00 00 A1 2F C3 C9 09 2A F6 A1 [08:56:32]CommunicateWithHost err = 0 [08:56:32]CheckOFDResponse [08:56:32]1017 (14) - 77093643461234 [08:56:32]1041 (16) - 0000000000874798 [08:56:32]1040 (4) - 123186 [08:56:32]1012 (4) - 03.03.2024 02:58 [08:56:32]1206 (1) - 0 [08:56:32]OFD Sender: Remove packet 123186 [08:56:32]ProducePacketName [08:56:32]name=ofd_packets/00123186 [08:56:32]NVStorageDeleteData [08:56:32]Write to MH i2c: 01 00 00 26 15 3B [08:56:32]Write i2c OK [08:56:32]MH_I2C_Read... [08:56:32]Read from MH i2c: 01 [08:56:32]MH_I2C_Read... [08:56:32]Read from MH i2c: 01 07 00 [08:56:32]MH_I2C_Read... [08:56:32]Read from MH i2c: 01 07 00 26 15 00 00 00 00 00 E7 0C 35 [08:56:32]RasterBufferAndPrint [08:56:32]line [08:56:32]line [08:56:32]line [08:56:32]line [08:56:32]line [08:56:32]written 0, free lines is 3309 [08:56:32]MH_Cut [08:56:32]Write to MH i2c: D1 01 00 2D 15 01 14 [08:56:32]Write i2c OK [08:56:32]MH_I2C_Read... [08:56:32]Read from MH i2c: D1 [08:56:32]MH_I2C_Read... [08:56:32]Read from MH i2c: D1 01 00 [08:56:32]MH_I2C_Read... [08:56:32]Read from MH i2c: D1 01 00 2D 15 00 13 [08:56:32]Write to MH i2c: 01 00 00 2E 15 43 [08:56:32]Write i2c OK [08:56:32]MH_I2C_Read... [08:56:33]OFD Sender: No OFD packet to send [08:56:33]*** Cut start [08:56:33]*** Purtial cut [08:56:33]*** Stage 1: CUTSNS_PIN = 1 [08:56:35]Read from MH i2c: 01 [08:56:35]*** Stop cut motor [08:56:35]*** Cut end [08:56:35]MH_I2C_Read... [08:56:35]Read from MH i2c: 01 07 00 [08:56:35]MH_I2C_Read... [08:56:35]Read from MH i2c: 01 07 00 2E 15 00 00 00 00 00 FF 0F 58 [08:56:35]process_action close_receipt done [08:56:35]requested_data is exist [08:56:35]produce_requested_data [08:56:35]requested_item fm.sn is exist - process it [08:56:35]wFMCommunicate request_size=4 [08:56:35]MH_SAM_APDU [08:56:35]CAPDU: 80 11 00 00 [08:56:35]Write to MH i2c: E2 08 00 2F 15 80 11 00 00 00 00 00 00 BE [08:56:35]Write i2c OK [08:56:35]MH_I2C_Read... [08:56:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:56:35]Read from MH i2c: E2 [08:56:35]MH_I2C_Read... [08:56:35]Read from MH i2c: E2 17 00 [08:56:35]MH_I2C_Read... [08:56:35]Read from MH i2c: E2 17 00 2F 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 1C [08:56:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [08:56:35]wFMCommunicate OK [08:56:35]requested_item fd.num is exist - process it [08:56:35]SAM_PROTO_GetFieldsCounters [08:56:35]wFMCommunicate request_size=4 [08:56:35]MH_SAM_APDU [08:56:35]CAPDU: 80 13 00 00 [08:56:35]Write to MH i2c: E2 08 00 30 15 80 13 00 00 00 00 00 00 C1 [08:56:35]Write i2c OK [08:56:35]MH_I2C_Read... [08:56:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:56:35]Read from MH i2c: E2 [08:56:35]MH_I2C_Read... [08:56:35]Read from MH i2c: E2 62 00 [08:56:35]MH_I2C_Read... [08:56:35]Read from MH i2c: E2 62 00 30 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 32 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 C5 [08:56: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 32 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:56:35]wFMCommunicate OK [08:56:35]SAM_PROTO_GetFieldsCounters done [08:56:35]requested_item shift.num is exist - process it [08:56:35]requested_item shift.opened is exist - process it [08:56:35]req_shift_opened [08:56:35]FM_GetShiftState [08:56:35]SAM_PROTO_GetShiftState [08:56:35]wFMCommunicate request_size=4 [08:56:35]MH_SAM_APDU [08:56:35]CAPDU: 80 13 01 00 [08:56:35]Write to MH i2c: E2 08 00 31 15 80 13 01 00 00 00 00 00 C3 [08:56:35]Write i2c OK [08:56:35]MH_I2C_Read... [08:56:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:56:35]Read from MH i2c: E2 [08:56:35]MH_I2C_Read... [08:56:35]Read from MH i2c: E2 0E 00 [08:56:35]MH_I2C_Read... [08:56:35]Read from MH i2c: E2 0E 00 31 15 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 85 [08:56:35]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [08:56:35]wFMCommunicate OK [08:56:35]SAM_PROTO_GetShiftState done [08:56:35]FM_GetShiftState done [08:56:35]req_shift_opened done [08:56:35]requested_item shift.open_date is exist - process it [08:56:35]req_shift_open_date [08:56:35]req_shift_open_date done [08:56:35]produce_requested_data done [08:56:35]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123186,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [08:56:35]process_action_free close_receipt [08:56:35]json_value_free [08:56:35]json_value_free done [08:56:35]process_json_proto returns [08:56:35]Send response to host [08:56:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123186,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [08:56:35]free response buf [08:56:35]execute_script done [08:56:35]execute_script returns [08:56:35]free content buf [08:56:35]Sock 9.Close socket [08:56:35]Sock 9.Thread stoped [08:56:38]OFD Sender: No OFD packet to send [08:56:43]OFD Sender: No OFD packet to send [08:56:48]OFD Sender: No OFD packet to send [08:56:53]OFD Sender: No OFD packet to send [08:56:58]OFD Sender: No OFD packet to send [08:57:03]OFD Sender: No OFD packet to send [08:57:08]OFD Sender: No OFD packet to send [08:57:13]OFD Sender: No OFD packet to send [08:57:18]OFD Sender: No OFD packet to send [08:57:23]OFD Sender: No OFD packet to send [08:57: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:24]OFD Sender: No OFD packet to send [09:07:29]OFD Sender: No OFD packet to send [09:07:34]OFD Sender: No OFD packet to send [09:07:39]OFD Sender: No OFD packet to send [09:07:44]OFD Sender: No OFD packet to send [09:07:49]OFD Sender: No OFD packet to send [09:07:54]OFD Sender: No OFD packet to send [09:07:59]OFD Sender: No OFD packet to send [09:08:04]OFD Sender: No OFD packet to send [09:08:09]OFD Sender: No OFD packet to send [09:08:14]OFD Sender: No OFD packet to send [09:08:19]OFD Sender: No OFD packet to send [09:08:24]OFD Sender: No OFD packet to send [09:08:29]OFD Sender: No OFD packet to send [09:08:34]OFD Sender: No OFD packet to send [09:08:39]OFD Sender: No OFD packet to send [09:08:44]OFD Sender: No OFD packet to send [09:08:49]OFD Sender: No OFD packet to send [09:08:54]OFD Sender: No OFD packet to send [09:08:59]OFD Sender: No OFD packet to send [09:09:04]OFD Sender: No OFD packet to send [09:09:09]OFD Sender: No OFD packet to send [09:09:14]OFD Sender: No OFD packet to send [09:09:19]OFD Sender: No OFD packet to send [09:09:24]OFD Sender: No OFD packet to send [09:09:29]OFD Sender: No OFD packet to send [09:09:29]accept exits with 7 [09:09:29]New connection [09:09:29]New thread 3067395428 created [09:09:29]Thread 3067252068 joined [09:09:29]Waiting for new connection... [09:09:29] Sock 7.Parse request [09:09:29]Sock 7.Check first char [09:09:29]Sock 7.First char is OK [09:09:29]request: POST /json_proto HTTP/1.0 [09:09:29]Method: POST [09:09:29]URL: /json_proto [09:09:29]Method is POST - this is cgi request [09:09:29]url: /json_proto [09:09:29]query_string will be loaded in cgi processing [09:09:29]execute_cgi json_proto POST (null) [09:09:29]execute_cgi path=json_proto method=POST [09:09:29]POST find Content-Length [09:09:29]Host: 172.17.48.197:8080 [09:09:29]Content-Length: 678 [09:09:29]Content-Type: application/json [09:09:29] [09:09:29]POST finish read [09:09:29]Found Content-Length = 678 [09:09:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106107", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 6.470, "sum" : 400.49, "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" ] } } [09:09:29]execute_script... [09:09: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)1106107", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 6.470, "sum" : 400.49, "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" ] } } [09:09:29]POST & json_proto [09:09:29]process_json_proto [09:09:29]json parsed OK: [09:09:29]protocol is kg_v1.0 [09:09:29]action value=close_receipt [09:09:29]process_action close_receipt [09:09:29]cmd_close_receipt [09:09:29]MH_GetDate [09:09:29]Write to MH i2c: F0 00 00 32 15 36 [09:09:29]Write i2c OK [09:09:29]MH_I2C_Read... [09:09:29]Read from MH i2c: F0 [09:09:29]MH_I2C_Read... [09:09:29]Read from MH i2c: F0 09 00 [09:09:29]MH_I2C_Read... [09:09:29]Read from MH i2c: F0 09 00 32 15 00 4B 3E E4 65 6C AF E3 65 74 [09:09:29]GetLastDocTimeStamp 1709456192 [09:09:29]current date 1709456971 [09:09:29]FM_GetShiftState [09:09:29]SAM_PROTO_GetShiftState [09:09:29]wFMCommunicate request_size=4 [09:09:29]MH_SAM_APDU [09:09:29]CAPDU: 80 13 01 00 [09:09:29]Write to MH i2c: E2 08 00 33 15 80 13 01 00 00 00 00 00 C5 [09:09:29]Write i2c OK [09:09:29]MH_I2C_Read... [09:09:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:29]Read from MH i2c: E2 [09:09:29]MH_I2C_Read... [09:09:29]Read from MH i2c: E2 0E 00 [09:09:29]MH_I2C_Read... [09:09:29]Read from MH i2c: E2 0E 00 33 15 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 87 [09:09:29]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [09:09:29]wFMCommunicate OK [09:09:29]SAM_PROTO_GetShiftState done [09:09:29]FM_GetShiftState done [09:09:29]opened in 1709425579 [09:09:29]opened+sec_in_day 1709511979 [09:09:29]quantity*price = 40049 [09:09:29]sum+1 = 40050 [09:09:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.53 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 44 03.03.2024 09:09 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123187 ФПД: 252433538663736 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T090931&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123187&fm=252433538663736&tin=02508201610067®Number=0000000000090573&sum=40000 [09:09:30]StoreToDocumentArchive [09:09:30]shift 323 fd 123187 [09:09:30]save to /storage/0323/doc_00123187 [09:09:30]save last doc name /storage/0323/doc_00123187 to /storage/kkm_last_doc_name [09:09:30]save OK [09:09:30]Clear old archive folders... [09:09:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:09:30]tlvbuf is 00D9E320 [09:09:30]SAM_PROTO_ClearQueue [09:09:30]wFMCommunicate request_size=4 [09:09:30]MH_SAM_APDU [09:09:30]CAPDU: 80 09 00 00 [09:09:30]Write to MH i2c: E2 08 00 40 15 80 09 00 00 00 00 00 00 C7 [09:09:30]Write i2c OK [09:09:30]MH_I2C_Read... [09:09:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:09:30]Read from MH i2c: E2 [09:09:30]MH_I2C_Read... [09:09:30]Read from MH i2c: E2 03 00 [09:09:30]MH_I2C_Read... [09:09:30]Read from MH i2c: E2 03 00 40 15 00 90 00 C9 [09:09:30]RAPDU: 90 00 [09:09:30]wFMCommunicate OK [09:09:30]SAM_PROTO_ClearQueue done [09:09:30]KKMCreateOFDPacket [09:09:30]OFDProtocolAddRootSTLVToBuf [09:09:30]FM_MakeSignedData [09:09:30]FM_MakeSignedData [09:09:30]SAM_PROTO_SignData [09:09:30]wFMCommunicate request_size=4 [09:09:30]MH_SAM_APDU [09:09:30]CAPDU: 80 0D 01 02 [09:09:30]Write to MH i2c: E2 08 00 41 15 80 0D 01 02 00 00 00 00 CF [09:09:30]Write i2c OK [09:09:30]MH_I2C_Read... [09:09:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:09:30]Read from MH i2c: E2 [09:09:30]MH_I2C_Read... [09:09:30]Read from MH i2c: E2 03 00 [09:09:30]MH_I2C_Read... [09:09:30]Read from MH i2c: E2 03 00 41 15 00 90 00 CA [09:09:30]RAPDU: 90 00 [09:09:30]wFMCommunicate OK [09:09:30]wFMCommunicate request_size=255 [09:09:30]MH_SAM_APDU [09:09:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 19 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 71 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 9D 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 2C 00 00 00 F4 03 04 00 4B 3E E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 33 E1 01 00 35 04 06 00 E5 [09:09:30]Write to MH i2c: E2 02 01 42 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 19 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 71 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 9D 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 2C 00 00 00 F4 03 04 00 4B 3E E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 33 E1 01 00 35 04 06 00 E5 00 00 99 [09:09:30]Write i2c OK [09:09:30]MH_I2C_Read... [09:09:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:30]Read from MH i2c: E2 [09:09:30]MH_I2C_Read... [09:09:30]Read from MH i2c: E2 03 00 [09:09:30]MH_I2C_Read... [09:09:30]Read from MH i2c: E2 03 00 42 15 00 90 00 CB [09:09:30]RAPDU: 90 00 [09:09:30]wFMCommunicate OK [09:09:30]wFMCommunicate request_size=10 [09:09:30]MH_SAM_APDU [09:09:30]CAPDU: 80 0D 02 02 05 96 43 66 C5 38 [09:09:30]Write to MH i2c: E2 0D 00 43 15 80 0D 02 02 05 00 96 43 66 C5 38 00 00 18 [09:09:30]Write i2c OK [09:09:30]MH_I2C_Read... [09:09:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:30]Read from MH i2c: E2 [09:09:30]MH_I2C_Read... [09:09:30]Read from MH i2c: E2 03 00 [09:09:30]MH_I2C_Read... [09:09:30]Read from MH i2c: E2 03 00 43 15 00 90 00 CC [09:09:30]RAPDU: 90 00 [09:09:30]wFMCommunicate OK [09:09:30]wFMCommunicate request_size=4 [09:09:30]MH_SAM_APDU [09:09:30]CAPDU: 80 0D 03 02 [09:09:30]Write to MH i2c: E2 08 00 44 15 80 0D 03 02 00 00 00 00 D4 [09:09:30]Write i2c OK [09:09:30]MH_I2C_Read... [09:09:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:09:30]Read from MH i2c: E2 [09:09:30]MH_I2C_Read... [09:09:30]Read from MH i2c: E2 0B 00 [09:09:30]MH_I2C_Read... [09:09:30]Read from MH i2c: E2 0B 00 44 15 00 E2 35 5D 6B 33 94 CD 3F 90 00 87 [09:09:30]RAPDU: E2 35 5D 6B 33 94 CD 3F 90 00 [09:09:30]wFMCommunicate OK [09:09:30]SAM_PROTO_SignData done [09:09:30]FM_MakeSignedData done [09:09:30]CreateOFDProtocolMessage [09:09:30]wFMCommunicate request_size=4 [09:09:30]MH_SAM_APDU [09:09:30]CAPDU: 80 11 00 00 [09:09:30]Write to MH i2c: E2 08 00 45 15 80 11 00 00 00 00 00 00 D4 [09:09:30]Write i2c OK [09:09:30]MH_I2C_Read... [09:09:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:30]Read from MH i2c: E2 [09:09:30]MH_I2C_Read... [09:09:30]Read from MH i2c: E2 17 00 [09:09:30]MH_I2C_Read... [09:09:30]Read from MH i2c: E2 17 00 45 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 32 [09:09:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [09:09:30]wFMCommunicate OK [09:09:30]CreateOFDProtocolMessage done [09:09:30]OFDSenderStorePacket 123187 [09:09:30]StoreOFDPacket docnum=123187 [09:09:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 D6 AC 07 01 96 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 19 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 71 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 9D 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 2C 00 00 00 F4 03 04 00 4B 3E E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 33 E1 01 00 35 04 06 00 E5 96 43 66 C5 38 E2 35 5D 6B 33 94 CD 3F [09:09:30]CheckFolder [09:09:30]dirname=/storage/ofd_packets [09:09:30]CheckFolder done [09:09:30]ProducePacketName [09:09:30]name=ofd_packets/00123187 [09:09:30]NVStorageSaveData ofd_packets/00123187 [09:09:30]File name is /storage/ofd_packets/00123187 [09:09:30]Write 301 bytes [09:09:30]NVStorageSaveData done [09:09:30]OFDSenderStorePacket done [09:09:30]KKMCreateOFDPacket done [09:09:30]NVStorageSaveData kkm_last_timestamp [09:09:30]File name is /storage/kkm_last_timestamp [09:09:30]Write 4 bytes [09:09:30]NVStorageSaveData done [09:09:30]ExternCall_PrintAddStr [09:09:30]wPrintStart [09:09:30]Write to MH i2c: 01 00 00 46 15 5B [09:09:30]Write i2c OK [09:09:30]MH_I2C_Read... [09:09:30]Read from MH i2c: 01 [09:09:30]MH_I2C_Read... [09:09:30]Read from MH i2c: 01 07 00 [09:09:30]MH_I2C_Read... [09:09:30]Read from MH i2c: 01 07 00 46 15 00 00 00 00 00 FF 0F 70 [09:09:30]RasterBufferAndPrint [09:09:30]line Счет N : (1)1106107 [09:09:30]line ИНН: 02508201610067 [09:09:30]line Контрольно-Кассовый Чек [09:09:30]line ПРОДАЖА [09:09:30]line ТРК (МРК, ГНК) : 11 [09:09:30]line Товар: 2710124130 [09:09:30]line Аи-92-К-5 [09:09:30]line 6.470 * 61.90 [09:09:30]line = 400.49 [09:09:30]line НДС 12% НСП 1% [09:09:30]line > о реализуемом товаре [09:09:30]line ОКРУГЛЕНИЕ: -0.49 [09:09:30]line ИТОГО: 400.00 [09:09:30]line Внесено: 400.00 [09:09:30]line СДАЧА: 0.00 [09:09:30]line НСП 1% : 3.54 [09:09:30]line НДС 12% : 42.53 [09:09:30]line Наличными: 400.00 [09:09:30]line Безнал.: 0.00 [09:09:30]line Место: АЗС № 25 "Партнер Нефть" [09:09:30]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [09:09:30]line СНО: Общий режим [09:09:30]line Чек 44 03.03.2024 09:09 [09:09:30]line Смена: 323 ФФД: 1.0 [09:09:30]line ЗНМ: 0300000019 [09:09:30]line РНМ: 0000000000090573 [09:09:30]line Версия ККМ: 001 [09:09:30]line ФМ: 0000000000874798 [09:09:30]line ФД: 123187 [09:09:30]line ФПД: 252433538663736 [09:09:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T090931&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123187&fm=252433538663736&tin=02508201610067®Number=0000000000090573&sum=40000 [09:09:31]OFD Sender: Processing packet 123187 [packets to send 112, broken 111] [09:09:31]ProducePacketName [09:09:31]name=ofd_packets/00123187 [09:09:31]OFD Sender: To server: pG, [09:09:31]CommunicateWithHost lk.salyk.kg:30040 [09:09:31]ConnectInit lk.salyk.kg [09:09:31]written 0, free lines is 4095 [09:09:31]Connected sock=10 [09:09: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 37 39 38 0F 01 00 00 D6 AC 07 01 96 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 19 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 71 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 9D 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 2C 00 00 00 F4 03 04 00 4B 3E E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 33 E1 01 00 35 04 06 00 E5 96 43 66 C5 38 E2 35 5D 6B 33 94 CD 3F [09:09:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 B9 A3 47 00 48 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 37 39 38 10 04 04 00 33 E1 01 00 F4 03 04 00 78 EA E3 65 B6 04 01 00 00 76 0E B8 B2 73 F6 47 6E [09:09:31]CommunicateWithHost err = 0 [09:09:31]CheckOFDResponse [09:09:31]1017 (14) - 77093643461234 [09:09:31]1041 (16) - 0000000000874798 [09:09:31]1040 (4) - 123187 [09:09:31]1012 (4) - 03.03.2024 03:11 [09:09:31]1206 (1) - 0 [09:09:31]OFD Sender: Remove packet 123187 [09:09:31]ProducePacketName [09:09:31]name=ofd_packets/00123187 [09:09:31]NVStorageDeleteData [09:09:31]Write to MH i2c: 01 00 00 71 15 86 [09:09:31]Write i2c OK [09:09:31]MH_I2C_Read... [09:09:31]Read from MH i2c: 01 [09:09:31]MH_I2C_Read... [09:09:31]Read from MH i2c: 01 07 00 [09:09:31]MH_I2C_Read... [09:09:31]Read from MH i2c: 01 07 00 71 15 00 00 00 00 00 F3 0C 8C [09:09:31]RasterBufferAndPrint [09:09:31]line [09:09:31]line [09:09:31]line [09:09:31]line [09:09:31]line [09:09:31]written 0, free lines is 3321 [09:09:31]MH_Cut [09:09:31]Write to MH i2c: D1 01 00 78 15 01 5F [09:09:31]Write i2c OK [09:09:31]MH_I2C_Read... [09:09:31]Read from MH i2c: D1 [09:09:31]MH_I2C_Read... [09:09:31]Read from MH i2c: D1 01 00 [09:09:31]MH_I2C_Read... [09:09:31]Read from MH i2c: D1 01 00 78 15 00 5E [09:09:31]Write to MH i2c: 01 00 00 79 15 8E [09:09:31]Write i2c OK [09:09:31]MH_I2C_Read... [09:09:32]OFD Sender: No OFD packet to send [09:09:32]*** Cut start [09:09:32]*** Purtial cut [09:09:32]*** Stage 1: CUTSNS_PIN = 1 [09:09:34]Read from MH i2c: 01 [09:09:34]MH_I2C_Read... [09:09:34]*** Stop cut motor [09:09:34]*** Cut end [09:09:34]Read from MH i2c: 01 07 00 [09:09:34]MH_I2C_Read... [09:09:34]Read from MH i2c: 01 07 00 79 15 00 00 00 00 00 FF 0F A3 [09:09:34]process_action close_receipt done [09:09:34]requested_data is exist [09:09:34]produce_requested_data [09:09:34]requested_item fm.sn is exist - process it [09:09:34]wFMCommunicate request_size=4 [09:09:34]MH_SAM_APDU [09:09:34]CAPDU: 80 11 00 00 [09:09:34]Write to MH i2c: E2 08 00 7A 15 80 11 00 00 00 00 00 00 09 [09:09:34]Write i2c OK [09:09:34]MH_I2C_Read... [09:09:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:34]Read from MH i2c: E2 [09:09:34]MH_I2C_Read... [09:09:34]Read from MH i2c: E2 17 00 [09:09:34]MH_I2C_Read... [09:09:34]Read from MH i2c: E2 17 00 7A 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 67 [09:09:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [09:09:34]wFMCommunicate OK [09:09:34]requested_item fd.num is exist - process it [09:09:34]SAM_PROTO_GetFieldsCounters [09:09:34]wFMCommunicate request_size=4 [09:09:34]MH_SAM_APDU [09:09:34]CAPDU: 80 13 00 00 [09:09:34]Write to MH i2c: E2 08 00 7B 15 80 13 00 00 00 00 00 00 0C [09:09:34]Write i2c OK [09:09:34]MH_I2C_Read... [09:09:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:09:34]Read from MH i2c: E2 [09:09:34]MH_I2C_Read... [09:09:34]Read from MH i2c: E2 62 00 [09:09:34]MH_I2C_Read... [09:09:34]Read from MH i2c: E2 62 00 7B 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 33 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 14 [09:09:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 33 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:09:34]wFMCommunicate OK [09:09:34]SAM_PROTO_GetFieldsCounters done [09:09:34]requested_item shift.num is exist - process it [09:09:34]requested_item shift.opened is exist - process it [09:09:34]req_shift_opened [09:09:34]FM_GetShiftState [09:09:34]SAM_PROTO_GetShiftState [09:09:34]wFMCommunicate request_size=4 [09:09:34]MH_SAM_APDU [09:09:34]CAPDU: 80 13 01 00 [09:09:34]Write to MH i2c: E2 08 00 7C 15 80 13 01 00 00 00 00 00 0E [09:09:34]Write i2c OK [09:09:34]MH_I2C_Read... [09:09:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:34]Read from MH i2c: E2 [09:09:34]MH_I2C_Read... [09:09:34]Read from MH i2c: E2 0E 00 [09:09:34]MH_I2C_Read... [09:09:34]Read from MH i2c: E2 0E 00 7C 15 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 D0 [09:09:34]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [09:09:34]wFMCommunicate OK [09:09:34]SAM_PROTO_GetShiftState done [09:09:34]FM_GetShiftState done [09:09:34]req_shift_opened done [09:09:34]requested_item shift.open_date is exist - process it [09:09:34]req_shift_open_date [09:09:34]req_shift_open_date done [09:09:34]produce_requested_data done [09:09:34]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123187,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [09:09:34]process_action_free close_receipt [09:09:34]json_value_free [09:09:34]json_value_free done [09:09:34]process_json_proto returns [09:09:34]Send response to host [09:09:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123187,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [09:09:34]free response buf [09:09:34]execute_script done [09:09:34]execute_script returns [09:09:34]free content buf [09:09:34]Sock 7.Close socket [09:09:34]Sock 7.Thread stoped [09:09:37]OFD Sender: No OFD packet to send [09:09:42]OFD Sender: No OFD packet to send [09:09:47]OFD Sender: No OFD packet to send [09:09:52]OFD Sender: No OFD packet to send [09:09:57]OFD Sender: No OFD packet to send [09:10:02]OFD Sender: No OFD packet to send [09:10:07]OFD Sender: No OFD packet to send [09:10:12]OFD Sender: No OFD packet to send [09:10:17]OFD Sender: No OFD packet to send [09:10:22]OFD Sender: No OFD packet to send [09:10:27]OFD Sender: No OFD packet to send [09:10:32]OFD Sender: No OFD packet to send [09:10:37]OFD Sender: No OFD packet to send [09:10:42]OFD Sender: No OFD packet to send [09:10:47]OFD Sender: No OFD packet to send [09:10:52]OFD Sender: No OFD packet to send [09:10:57]OFD Sender: No OFD packet to send [09:11:02]OFD Sender: No OFD packet to send [09:11:07]OFD Sender: No OFD packet to send [09:11:12]OFD Sender: No OFD packet to send [09:11:17]OFD Sender: No OFD packet to send [09:11:22]OFD Sender: No OFD packet to send [09:11:27]OFD Sender: No OFD packet to send [09:11:32]OFD Sender: No OFD packet to send [09:11:37]OFD Sender: No OFD packet to send [09:11:42]OFD Sender: No OFD packet to send [09:11:47]OFD Sender: No OFD packet to send [09:11:52]OFD Sender: No OFD packet to send [09:11:57]OFD Sender: No OFD packet to send [09:12:02]OFD Sender: No OFD packet to send [09:12:07]OFD Sender: No OFD packet to send [09:12:12]OFD Sender: No OFD packet to send [09:12:17]OFD Sender: No OFD packet to send [09:12:22]OFD Sender: No OFD packet to send [09:12:27]OFD Sender: No OFD packet to send [09:12:32]OFD Sender: No OFD packet to send [09:12:37]OFD Sender: No OFD packet to send [09:12:42]OFD Sender: No OFD packet to send [09:12:47]OFD Sender: No OFD packet to send [09:12:52]OFD Sender: No OFD packet to send [09:12:57]OFD Sender: No OFD packet to send [09:13:02]OFD Sender: No OFD packet to send [09:13:07]OFD Sender: No OFD packet to send [09:13:12]OFD Sender: No OFD packet to send [09:13:17]OFD Sender: No OFD packet to send [09:13:22]OFD Sender: No OFD packet to send [09:13:27]OFD Sender: No OFD packet to send [09:13:32]OFD Sender: No OFD packet to send [09:13:37]OFD Sender: No OFD packet to send [09:13:42]OFD Sender: No OFD packet to send [09:13:47]OFD Sender: No OFD packet to send [09:13:52]OFD Sender: No OFD packet to send [09:13:57]OFD Sender: No OFD packet to send [09:14:02]OFD Sender: No OFD packet to send [09:14:07]OFD Sender: No OFD packet to send [09:14:12]OFD Sender: No OFD packet to send [09:14:17]OFD Sender: No OFD packet to send [09:14:22]OFD Sender: No OFD packet to send [09:14:27]OFD Sender: No OFD packet to send [09:14:32]OFD Sender: No OFD packet to send [09:14:37]OFD Sender: No OFD packet to send [09:14:42]OFD Sender: No OFD packet to send [09:14:47]OFD Sender: No OFD packet to send [09:14:52]OFD Sender: No OFD packet to send [09:14:57]OFD Sender: No OFD packet to send [09:15:02]OFD Sender: No OFD packet to send [09:15:07]OFD Sender: No OFD packet to send [09:15:12]OFD Sender: No OFD packet to send [09:15:17]OFD Sender: No OFD packet to send [09:15:22]OFD Sender: No OFD packet to send [09:15:27]OFD Sender: No OFD packet to send [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:56]accept exits with 9 [09:17:56]New connection [09:17:56]New thread 3067252068 created [09:17:56]Thread 3067395428 joined [09:17:56]Waiting for new connection... [09:17:56] Sock 9.Parse request [09:17:56]Sock 9.Check first char [09:17:56]Sock 9.First char is OK [09:17:56]request: POST /json_proto HTTP/1.0 [09:17:56]Method: POST [09:17:56]URL: /json_proto [09:17:56]Method is POST - this is cgi request [09:17:56]url: /json_proto [09:17:56]query_string will be loaded in cgi processing [09:17:56]execute_cgi json_proto POST (null) [09:17:56]execute_cgi path=json_proto method=POST [09:17:56]POST find Content-Length [09:17:56]Host: 172.17.48.197:8080 [09:17:56]Content-Length: 679 [09:17:56]Content-Type: application/json [09:17:56] [09:17:56]POST finish read [09:17:56]Found Content-Length = 679 [09:17:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106108", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 12.010, "sum" : 743.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 743.00, "total" : 743.00, "payments": [ { "type": 0, "sum" : 743.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:17:56]execute_script... [09: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 : (1)1106108", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 12.010, "sum" : 743.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 743.00, "total" : 743.00, "payments": [ { "type": 0, "sum" : 743.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:17:56]POST & json_proto [09:17:56]process_json_proto [09:17:56]json parsed OK: [09:17:56]protocol is kg_v1.0 [09:17:56]action value=close_receipt [09:17:56]process_action close_receipt [09:17:56]cmd_close_receipt [09:17:56]MH_GetDate [09:17:56]Write to MH i2c: F0 00 00 7D 15 81 [09:17:56]Write i2c OK [09:17:56]MH_I2C_Read... [09:17:56]Read from MH i2c: F0 [09:17:56]MH_I2C_Read... [09:17:56]Read from MH i2c: F0 09 00 [09:17:56]MH_I2C_Read... [09:17:56]Read from MH i2c: F0 09 00 7D 15 00 46 40 E4 65 6C AF E3 65 BC [09:17:56]GetLastDocTimeStamp 1709456971 [09:17:56]current date 1709457478 [09:17:56]FM_GetShiftState [09:17:56]SAM_PROTO_GetShiftState [09:17:56]wFMCommunicate request_size=4 [09:17:56]MH_SAM_APDU [09:17:56]CAPDU: 80 13 01 00 [09:17:56]Write to MH i2c: E2 08 00 7E 15 80 13 01 00 00 00 00 00 10 [09:17:56]Write i2c OK [09:17:56]MH_I2C_Read... [09:17:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:56]Read from MH i2c: E2 [09:17:56]MH_I2C_Read... [09:17:56]Read from MH i2c: E2 0E 00 [09:17:56]MH_I2C_Read... [09:17:56]Read from MH i2c: E2 0E 00 7E 15 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 D2 [09:17:56]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [09:17:56]wFMCommunicate OK [09:17:56]SAM_PROTO_GetShiftState done [09:17:56]FM_GetShiftState done [09:17:56]opened in 1709425579 [09:17:56]opened+sec_in_day 1709511979 [09:17:56]quantity*price = 74341 [09:17:56]sum+1 = 74343 [09:17:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 743.00 Внесено: 743.00 СДАЧА: 0.00 НСП 1% : 6.58 НДС 12% : 78.95 Наличными: 743.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 45 03.03.2024 09:17 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123188 ФПД: 69430910808962 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T091758&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123188&fm=69430910808962&tin=02508201610067®Number=0000000000090573&sum=74300 [09:17:57]StoreToDocumentArchive [09:17:57]shift 323 fd 123188 [09:17:57]save to /storage/0323/doc_00123188 [09:17:57]save last doc name /storage/0323/doc_00123188 to /storage/kkm_last_doc_name [09:17:57]save OK [09:17:57]Clear old archive folders... [09:17:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:17:57]tlvbuf is 00E1FAB0 [09:17:57]SAM_PROTO_ClearQueue [09:17:57]wFMCommunicate request_size=4 [09:17:57]MH_SAM_APDU [09:17:57]CAPDU: 80 09 00 00 [09:17:57]Write to MH i2c: E2 08 00 8B 15 80 09 00 00 00 00 00 00 12 [09:17:57]Write i2c OK [09:17:57]MH_I2C_Read... [09:17:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:17:57]Read from MH i2c: E2 [09:17:57]MH_I2C_Read... [09:17:57]Read from MH i2c: E2 03 00 [09:17:57]MH_I2C_Read... [09:17:57]Read from MH i2c: E2 03 00 8B 15 00 90 00 14 [09:17:57]RAPDU: 90 00 [09:17:57]wFMCommunicate OK [09:17:57]SAM_PROTO_ClearQueue done [09:17:57]KKMCreateOFDPacket [09:17:57]OFDProtocolAddRootSTLVToBuf [09:17:57]FM_MakeSignedData [09:17:57]FM_MakeSignedData [09:17:57]SAM_PROTO_SignData [09:17:57]wFMCommunicate request_size=4 [09:17:57]MH_SAM_APDU [09:17:57]CAPDU: 80 0D 01 02 [09:17:57]Write to MH i2c: E2 08 00 8C 15 80 0D 01 02 00 00 00 00 1A [09:17:57]Write i2c OK [09:17:57]MH_I2C_Read... [09:17:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:17:57]Read from MH i2c: E2 [09:17:57]MH_I2C_Read... [09:17:57]Read from MH i2c: E2 03 00 [09:17:57]MH_I2C_Read... [09:17:57]Read from MH i2c: E2 03 00 8C 15 00 90 00 15 [09:17:57]RAPDU: 90 00 [09:17:57]wFMCommunicate OK [09:17:57]wFMCommunicate request_size=255 [09:17:57]MH_SAM_APDU [09:17:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EA 2E 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 66 22 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 22 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 1E 00 00 00 00 07 04 06 00 3C 22 01 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 46 40 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 34 E1 01 00 35 04 06 00 3F [09:17:57]Write to MH i2c: E2 02 01 8D 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EA 2E 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 66 22 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 22 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 1E 00 00 00 00 07 04 06 00 3C 22 01 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 46 40 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 34 E1 01 00 35 04 06 00 3F 00 00 F1 [09:17:57]Write i2c OK [09:17:57]MH_I2C_Read... [09:17:57]OFD Sender: No OFD packet to send [09:17:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:57]Read from MH i2c: E2 [09:17:57]MH_I2C_Read... [09:17:57]Read from MH i2c: E2 03 00 [09:17:57]MH_I2C_Read... [09:17:57]Read from MH i2c: E2 03 00 8D 15 00 90 00 16 [09:17:57]RAPDU: 90 00 [09:17:57]wFMCommunicate OK [09:17:57]wFMCommunicate request_size=10 [09:17:57]MH_SAM_APDU [09:17:57]CAPDU: 80 0D 02 02 05 25 A4 C6 73 82 [09:17:57]Write to MH i2c: E2 0D 00 8E 15 80 0D 02 02 05 00 25 A4 C6 73 82 00 00 AB [09:17:57]Write i2c OK [09:17:57]MH_I2C_Read... [09:17:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:57]Read from MH i2c: E2 [09:17:57]MH_I2C_Read... [09:17:57]Read from MH i2c: E2 03 00 [09:17:57]MH_I2C_Read... [09:17:57]Read from MH i2c: E2 03 00 8E 15 00 90 00 17 [09:17:57]RAPDU: 90 00 [09:17:57]wFMCommunicate OK [09:17:57]wFMCommunicate request_size=4 [09:17:57]MH_SAM_APDU [09:17:57]CAPDU: 80 0D 03 02 [09:17:57]Write to MH i2c: E2 08 00 8F 15 80 0D 03 02 00 00 00 00 1F [09:17:57]Write i2c OK [09:17:57]MH_I2C_Read... [09:17:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:17:58]Read from MH i2c: E2 [09:17:58]MH_I2C_Read... [09:17:58]Read from MH i2c: E2 0B 00 [09:17:58]MH_I2C_Read... [09:17:58]Read from MH i2c: E2 0B 00 8F 15 00 3D B6 A8 93 D1 CC B1 93 90 00 2F [09:17:58]RAPDU: 3D B6 A8 93 D1 CC B1 93 90 00 [09:17:58]wFMCommunicate OK [09:17:58]SAM_PROTO_SignData done [09:17:58]FM_MakeSignedData done [09:17:58]CreateOFDProtocolMessage [09:17:58]wFMCommunicate request_size=4 [09:17:58]MH_SAM_APDU [09:17:58]CAPDU: 80 11 00 00 [09:17:58]Write to MH i2c: E2 08 00 90 15 80 11 00 00 00 00 00 00 1F [09:17:58]Write i2c OK [09:17:58]MH_I2C_Read... [09:17:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:58]Read from MH i2c: E2 [09:17:58]MH_I2C_Read... [09:17:58]Read from MH i2c: E2 17 00 [09:17:58]MH_I2C_Read... [09:17:58]Read from MH i2c: E2 17 00 90 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 7D [09:17:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [09:17:58]wFMCommunicate OK [09:17:58]CreateOFDProtocolMessage done [09:17:58]OFDSenderStorePacket 123188 [09:17:58]StoreOFDPacket docnum=123188 [09:17:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 D0 09 07 01 36 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 35 FF 03 08 00 03 EA 2E 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 66 22 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 22 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 1E 00 00 00 00 07 04 06 00 3C 22 01 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 46 40 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 34 E1 01 00 35 04 06 00 3F 25 A4 C6 73 82 3D B6 A8 93 D1 CC B1 93 [09:17:58]CheckFolder [09:17:58]dirname=/storage/ofd_packets [09:17:58]CheckFolder done [09:17:58]ProducePacketName [09:17:58]name=ofd_packets/00123188 [09:17:58]NVStorageSaveData ofd_packets/00123188 [09:17:58]File name is /storage/ofd_packets/00123188 [09:17:58]Write 301 bytes [09:17:58]NVStorageSaveData done [09:17:58]OFDSenderStorePacket done [09:17:58]KKMCreateOFDPacket done [09:17:58]NVStorageSaveData kkm_last_timestamp [09:17:58]File name is /storage/kkm_last_timestamp [09:17:58]Write 4 bytes [09:17:58]NVStorageSaveData done [09:17:58]ExternCall_PrintAddStr [09:17:58]wPrintStart [09:17:58]Write to MH i2c: 01 00 00 91 15 A6 [09:17:58]Write i2c OK [09:17:58]MH_I2C_Read... [09:17:58]Read from MH i2c: 01 [09:17:58]MH_I2C_Read... [09:17:58]Read from MH i2c: 01 07 00 [09:17:58]MH_I2C_Read... [09:17:58]Read from MH i2c: 01 07 00 91 15 00 00 00 00 00 FF 0F BB [09:17:58]RasterBufferAndPrint [09:17:58]line Счет N : (1)1106108 [09:17:58]line ИНН: 02508201610067 [09:17:58]line Контрольно-Кассовый Чек [09:17:58]line ПРОДАЖА [09:17:58]line ТРК (МРК, ГНК) : 52 [09:17:58]line Товар: 2710124130 [09:17:58]line Аи-92-К-5 [09:17:58]line 12.010 * 61.90 [09:17:58]line = 743.42 [09:17:58]line НДС 12% НСП 1% [09:17:58]line > о реализуемом товаре [09:17:58]line ОКРУГЛЕНИЕ: -0.42 [09:17:58]line ИТОГО: 743.00 [09:17:58]line Внесено: 743.00 [09:17:58]line СДАЧА: 0.00 [09:17:58]line НСП 1% : 6.58 [09:17:58]line НДС 12% : 78.95 [09:17:58]line Наличными: 743.00 [09:17:58]line Безнал.: 0.00 [09:17:58]line Место: АЗС № 25 "Партнер Нефть" [09:17:58]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [09:17:58]line СНО: Общий режим [09:17:58]line Чек 45 03.03.2024 09:17 [09:17:58]line Смена: 323 ФФД: 1.0 [09:17:58]line ЗНМ: 0300000019 [09:17:58]line РНМ: 0000000000090573 [09:17:58]line Версия ККМ: 001 [09:17:58]line ФМ: 0000000000874798 [09:17:58]line ФД: 123188 [09:17:58]line ФПД: 69430910808962 [09:17:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T091758&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123188&fm=69430910808962&tin=02508201610067®Number=0000000000090573&sum=74300 [09:17:58]OFD Sender: Processing packet 123188 [packets to send 112, broken 111] [09:17:58]ProducePacketName [09:17:58]name=ofd_packets/00123188 [09:17:58]OFD Sender: To server: pG, [09:17:58]CommunicateWithHost lk.salyk.kg:30040 [09:17:58]ConnectInit lk.salyk.kg [09:17:58]written 0, free lines is 4095 [09:17:58]Connected sock=10 [09: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 37 39 38 0F 01 00 00 D0 09 07 01 36 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 35 FF 03 08 00 03 EA 2E 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 66 22 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 22 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 1E 00 00 00 00 07 04 06 00 3C 22 01 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 46 40 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 34 E1 01 00 35 04 06 00 3F 25 A4 C6 73 82 3D B6 A8 93 D1 CC B1 93 [09: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 37 39 38 4F 00 00 00 94 09 47 00 AB 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 37 39 38 10 04 04 00 34 E1 01 00 F4 03 04 00 73 EC E3 65 B6 04 01 00 00 6E 26 BF F6 9B A6 C7 86 [09:17:58]CommunicateWithHost err = 0 [09:17:58]CheckOFDResponse [09:17:58]1017 (14) - 77093643461234 [09:17:58]1041 (16) - 0000000000874798 [09:17:58]1040 (4) - 123188 [09:17:58]1012 (4) - 03.03.2024 03:20 [09:17:58]1206 (1) - 0 [09:17:58]OFD Sender: Remove packet 123188 [09:17:58]ProducePacketName [09:17:58]name=ofd_packets/00123188 [09:17:58]NVStorageDeleteData [09:17:58]Write to MH i2c: 01 00 00 BC 15 D1 [09:17:58]Write i2c OK [09:17:58]MH_I2C_Read... [09:17:58]Read from MH i2c: 01 [09:17:58]MH_I2C_Read... [09:17:58]Read from MH i2c: 01 07 00 [09:17:58]MH_I2C_Read... [09:17:58]Read from MH i2c: 01 07 00 BC 15 00 00 00 00 00 E8 0C CC [09:17:58]RasterBufferAndPrint [09:17:58]line [09:17:58]line [09:17:58]line [09:17:58]line [09:17:58]line [09:17:58]written 0, free lines is 3310 [09:17:58]MH_Cut [09:17:58]Write to MH i2c: D1 01 00 C3 15 01 AA [09:17:58]Write i2c OK [09:17:58]MH_I2C_Read... [09:17:58]Read from MH i2c: D1 [09:17:58]MH_I2C_Read... [09:17:58]Read from MH i2c: D1 01 00 [09:17:58]MH_I2C_Read... [09:17:58]Read from MH i2c: D1 01 00 C3 15 00 A9 [09:17:58]Write to MH i2c: 01 00 00 C4 15 D9 [09:17:58]Write i2c OK [09:17:58]MH_I2C_Read... [09:17:59]OFD Sender: No OFD packet to send [09:17:59]*** Cut start [09:17:59]*** Purtial cut [09:17:59]*** Stage 1: CUTSNS_PIN = 1 [09:18:01]Read from MH i2c: 01 [09:18:01]MH_I2C_Read... [09:18:01]*** Stop cut motor [09:18:01]*** Cut end [09:18:01]Read from MH i2c: 01 07 00 [09:18:01]MH_I2C_Read... [09:18:01]Read from MH i2c: 01 07 00 C4 15 00 00 00 00 00 FF 0F EE [09:18:01]process_action close_receipt done [09:18:01]requested_data is exist [09:18:01]produce_requested_data [09:18:01]requested_item fm.sn is exist - process it [09:18:01]wFMCommunicate request_size=4 [09:18:01]MH_SAM_APDU [09:18:01]CAPDU: 80 11 00 00 [09:18:01]Write to MH i2c: E2 08 00 C5 15 80 11 00 00 00 00 00 00 54 [09:18:01]Write i2c OK [09:18:01]MH_I2C_Read... [09:18:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:18:01]Read from MH i2c: E2 [09:18:01]MH_I2C_Read... [09:18:01]Read from MH i2c: E2 17 00 [09:18:01]MH_I2C_Read... [09:18:01]Read from MH i2c: E2 17 00 C5 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 B2 [09:18:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [09:18:01]wFMCommunicate OK [09:18:01]requested_item fd.num is exist - process it [09:18:01]SAM_PROTO_GetFieldsCounters [09:18:01]wFMCommunicate request_size=4 [09:18:01]MH_SAM_APDU [09:18:01]CAPDU: 80 13 00 00 [09:18:01]Write to MH i2c: E2 08 00 C6 15 80 13 00 00 00 00 00 00 57 [09:18:01]Write i2c OK [09:18:01]MH_I2C_Read... [09:18:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:18:01]Read from MH i2c: E2 [09:18:01]MH_I2C_Read... [09:18:01]Read from MH i2c: E2 62 00 [09:18:01]MH_I2C_Read... [09:18:01]Read from MH i2c: E2 62 00 C6 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 34 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 63 [09:18: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 34 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:18:01]wFMCommunicate OK [09:18:01]SAM_PROTO_GetFieldsCounters done [09:18:01]requested_item shift.num is exist - process it [09:18:01]requested_item shift.opened is exist - process it [09:18:01]req_shift_opened [09:18:01]FM_GetShiftState [09:18:01]SAM_PROTO_GetShiftState [09:18:01]wFMCommunicate request_size=4 [09:18:01]MH_SAM_APDU [09:18:01]CAPDU: 80 13 01 00 [09:18:01]Write to MH i2c: E2 08 00 C7 15 80 13 01 00 00 00 00 00 59 [09:18:01]Write i2c OK [09:18:01]MH_I2C_Read... [09:18:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:18:01]Read from MH i2c: E2 [09:18:01]MH_I2C_Read... [09:18:01]Read from MH i2c: E2 0E 00 [09:18:01]MH_I2C_Read... [09:18:01]Read from MH i2c: E2 0E 00 C7 15 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 1B [09:18:01]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [09:18:01]wFMCommunicate OK [09:18:01]SAM_PROTO_GetShiftState done [09:18:01]FM_GetShiftState done [09:18:01]req_shift_opened done [09:18:01]requested_item shift.open_date is exist - process it [09:18:01]req_shift_open_date [09:18:01]req_shift_open_date done [09:18:01]produce_requested_data done [09:18:01]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123188,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [09:18:01]process_action_free close_receipt [09:18:01]json_value_free [09:18:01]json_value_free done [09:18:01]process_json_proto returns [09:18:01]Send response to host [09:18:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123188,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [09:18:01]free response buf [09:18:01]execute_script done [09:18:01]execute_script returns [09:18:01]free content buf [09:18:01]Sock 9.Close socket [09:18:01]Sock 9.Thread stoped [09:18:04]OFD Sender: No OFD packet to send [09:18:09]OFD Sender: No OFD packet to send [09:18:14]OFD Sender: No OFD packet to send [09:18:19]OFD Sender: No OFD packet to send [09:18:24]OFD Sender: No OFD packet to send [09:18:29]OFD Sender: No OFD packet to send [09:18:34]OFD Sender: No OFD packet to send [09:18:39]OFD Sender: No OFD packet to send [09:18:44]OFD Sender: No OFD packet to send [09:18:49]OFD Sender: No OFD packet to send [09:18:54]OFD Sender: No OFD packet to send [09:18:59]OFD Sender: No OFD packet to send [09:19:04]OFD Sender: No OFD packet to send [09:19:09]OFD Sender: No OFD packet to send [09:19:14]OFD Sender: No OFD packet to send [09:19:19]OFD Sender: No OFD packet to send [09:19:24]OFD Sender: No OFD packet to send [09:19:29]OFD Sender: No OFD packet to send [09:19:34]OFD Sender: No OFD packet to send [09:19:39]OFD Sender: No OFD packet to send [09:19:44]OFD Sender: No OFD packet to send [09:19:49]OFD Sender: No OFD packet to send [09:19:54]OFD Sender: No OFD packet to send [09:19:59]OFD Sender: No OFD packet to send [09:20:04]OFD Sender: No OFD packet to send [09:20:09]OFD Sender: No OFD packet to send [09:20:14]OFD Sender: No OFD packet to send [09:20:19]OFD Sender: No OFD packet to send [09:20:24]OFD Sender: No OFD packet to send [09:20:29]OFD Sender: No OFD packet to send [09:20:34]OFD Sender: No OFD packet to send [09:20:39]OFD Sender: No OFD packet to send [09:20:44]OFD Sender: No OFD packet to send [09:20:49]OFD Sender: No OFD packet to send [09:20:54]OFD Sender: No OFD packet to send [09:20:59]OFD Sender: No OFD packet to send [09:21:04]OFD Sender: No OFD packet to send [09:21:09]OFD Sender: No OFD packet to send [09:21:14]OFD Sender: No OFD packet to send [09:21:19]OFD Sender: No OFD packet to send [09:21:24]OFD Sender: No OFD packet to send [09:21:29]OFD Sender: No OFD packet to send [09:21:34]OFD Sender: No OFD packet to send [09:21:39]OFD Sender: No OFD packet to send [09:21:40]accept exits with 7 [09:21:40]New connection [09:21:40]New thread 3067395428 created [09:21:40]Thread 3067252068 joined [09:21:40]Waiting for new connection... [09:21:40] Sock 7.Parse request [09:21:40]Sock 7.Check first char [09:21:40]Sock 7.First char is OK [09:21:40]request: POST /json_proto HTTP/1.0 [09:21:40]Method: POST [09:21:40]URL: /json_proto [09:21:40]Method is POST - this is cgi request [09:21:40]url: /json_proto [09:21:40]query_string will be loaded in cgi processing [09:21:40]execute_cgi json_proto POST (null) [09:21:40]execute_cgi path=json_proto method=POST [09:21:40]POST find Content-Length [09:21:40]Host: 172.17.48.197:8080 [09:21:40]Content-Length: 688 [09:21:40]Content-Type: application/json [09:21:40] [09:21:40]POST finish read [09:21:40]Found Content-Length = 688 [09:21:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106109", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 70.90, "quantity" : 14.110, "sum" : 1000.40, "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:21:40]execute_script... [09: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)1106109", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 70.90, "quantity" : 14.110, "sum" : 1000.40, "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:21:40]POST & json_proto [09:21:40]process_json_proto [09:21:40]json parsed OK: [09:21:40]protocol is kg_v1.0 [09:21:40]action value=close_receipt [09:21:40]process_action close_receipt [09:21:40]cmd_close_receipt [09:21:40]MH_GetDate [09:21:40]Write to MH i2c: F0 00 00 C8 15 CC [09:21:40]Write i2c OK [09:21:40]MH_I2C_Read... [09:21:40]Read from MH i2c: F0 [09:21:40]MH_I2C_Read... [09:21:40]Read from MH i2c: F0 09 00 [09:21:40]MH_I2C_Read... [09:21:40]Read from MH i2c: F0 09 00 C8 15 00 27 41 E4 65 6C AF E3 65 E9 [09:21:40]GetLastDocTimeStamp 1709457478 [09:21:40]current date 1709457703 [09:21:40]FM_GetShiftState [09:21:40]SAM_PROTO_GetShiftState [09:21:40]wFMCommunicate request_size=4 [09:21:40]MH_SAM_APDU [09:21:40]CAPDU: 80 13 01 00 [09:21:40]Write to MH i2c: E2 08 00 C9 15 80 13 01 00 00 00 00 00 5B [09:21:40]Write i2c OK [09:21:40]MH_I2C_Read... [09:21:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:21:40]Read from MH i2c: E2 [09:21:40]MH_I2C_Read... [09:21:40]Read from MH i2c: E2 0E 00 [09:21:40]MH_I2C_Read... [09:21:40]Read from MH i2c: E2 0E 00 C9 15 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 1D [09:21:40]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [09:21:40]wFMCommunicate OK [09:21:40]SAM_PROTO_GetShiftState done [09:21:40]FM_GetShiftState done [09:21:40]opened in 1709425579 [09:21:40]opened+sec_in_day 1709511979 [09:21:40]quantity*price = 100039 [09:21:40]sum+1 = 100041 [09:21:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 46 03.03.2024 09:21 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123189 ФПД: 276043528299904 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T092143&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123189&fm=276043528299904&tin=02508201610067®Number=0000000000090573&sum=100000 [09:21:41]StoreToDocumentArchive [09:21:41]shift 323 fd 123189 [09:21:41]save to /storage/0323/doc_00123189 [09:21:41]save last doc name /storage/0323/doc_00123189 to /storage/kkm_last_doc_name [09:21:41]save OK [09:21:41]Clear old archive folders... [09:21:41]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:21:41]tlvbuf is 00DE1630 [09:21:41]SAM_PROTO_ClearQueue [09:21:41]wFMCommunicate request_size=4 [09:21:41]MH_SAM_APDU [09:21:41]CAPDU: 80 09 00 00 [09:21:41]Write to MH i2c: E2 08 00 D6 15 80 09 00 00 00 00 00 00 5D [09:21:41]Write i2c OK [09:21:41]MH_I2C_Read... [09:21:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:21:41]Read from MH i2c: E2 [09:21:41]MH_I2C_Read... [09:21:41]Read from MH i2c: E2 03 00 [09:21:41]MH_I2C_Read... [09:21:41]Read from MH i2c: E2 03 00 D6 15 00 90 00 5F [09:21:41]RAPDU: 90 00 [09:21:41]wFMCommunicate OK [09:21:41]SAM_PROTO_ClearQueue done [09:21:41]KKMCreateOFDPacket [09:21:41]OFDProtocolAddRootSTLVToBuf [09:21:41]FM_MakeSignedData [09:21:41]FM_MakeSignedData [09:21:41]SAM_PROTO_SignData [09:21:41]wFMCommunicate request_size=4 [09:21:41]MH_SAM_APDU [09:21:41]CAPDU: 80 0D 01 02 [09:21:41]Write to MH i2c: E2 08 00 D7 15 80 0D 01 02 00 00 00 00 65 [09:21:41]Write i2c OK [09:21:41]MH_I2C_Read... [09:21:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:21:41]Read from MH i2c: E2 [09:21:41]MH_I2C_Read... [09:21:41]Read from MH i2c: E2 03 00 [09:21:41]MH_I2C_Read... [09:21:41]Read from MH i2c: E2 03 00 D7 15 00 90 00 60 [09:21:41]RAPDU: 90 00 [09:21:41]wFMCommunicate OK [09:21:41]wFMCommunicate request_size=255 [09:21:41]MH_SAM_APDU [09:21:41]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 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 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 80 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 2E 00 00 00 F4 03 04 00 27 41 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 35 E1 01 00 35 04 06 00 [09:21:41]Write to MH i2c: E2 02 01 D8 15 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 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 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 80 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 2E 00 00 00 F4 03 04 00 27 41 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 35 E1 01 00 35 04 06 00 00 00 CE [09:21:41]Write i2c OK [09:21:41]MH_I2C_Read... [09:21:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:21:42]Read from MH i2c: E2 [09:21:42]MH_I2C_Read... [09:21:42]Read from MH i2c: E2 03 00 [09:21:42]MH_I2C_Read... [09:21:42]Read from MH i2c: E2 03 00 D8 15 00 90 00 61 [09:21:42]RAPDU: 90 00 [09:21:42]wFMCommunicate OK [09:21:42]wFMCommunicate request_size=11 [09:21:42]MH_SAM_APDU [09:21:42]CAPDU: 80 0D 02 02 06 FB 0F 64 72 65 80 [09:21:42]Write to MH i2c: E2 0E 00 D9 15 80 0D 02 02 06 00 FB 0F 64 72 65 80 00 00 39 [09:21:42]Write i2c OK [09:21:42]MH_I2C_Read... [09:21:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:21:42]Read from MH i2c: E2 [09:21:42]MH_I2C_Read... [09:21:42]Read from MH i2c: E2 03 00 [09:21:42]MH_I2C_Read... [09:21:42]Read from MH i2c: E2 03 00 D9 15 00 90 00 62 [09:21:42]RAPDU: 90 00 [09:21:42]wFMCommunicate OK [09:21:42]wFMCommunicate request_size=4 [09:21:42]MH_SAM_APDU [09:21:42]CAPDU: 80 0D 03 02 [09:21:42]Write to MH i2c: E2 08 00 DA 15 80 0D 03 02 00 00 00 00 6A [09:21:42]Write i2c OK [09:21:42]MH_I2C_Read... [09:21:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:21:42]Read from MH i2c: E2 [09:21:42]MH_I2C_Read... [09:21:42]Read from MH i2c: E2 0B 00 [09:21:42]MH_I2C_Read... [09:21:42]Read from MH i2c: E2 0B 00 DA 15 00 D8 E8 66 DC 33 E9 87 4B 90 00 5B [09:21:42]RAPDU: D8 E8 66 DC 33 E9 87 4B 90 00 [09:21:42]wFMCommunicate OK [09:21:42]SAM_PROTO_SignData done [09:21:42]FM_MakeSignedData done [09:21:42]CreateOFDProtocolMessage [09:21:42]wFMCommunicate request_size=4 [09:21:42]MH_SAM_APDU [09:21:42]CAPDU: 80 11 00 00 [09:21:42]Write to MH i2c: E2 08 00 DB 15 80 11 00 00 00 00 00 00 6A [09:21:42]Write i2c OK [09:21:42]MH_I2C_Read... [09:21:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:21:42]Read from MH i2c: E2 [09:21:42]MH_I2C_Read... [09:21:42]Read from MH i2c: E2 17 00 [09:21:42]MH_I2C_Read... [09:21:42]Read from MH i2c: E2 17 00 DB 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 C8 [09:21:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [09:21:42]wFMCommunicate OK [09:21:42]CreateOFDProtocolMessage done [09:21:42]OFDSenderStorePacket 123189 [09:21:42]StoreOFDPacket docnum=123189 [09:21:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 01 00 00 2A 58 08 01 38 38 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 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 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 80 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 2E 00 00 00 F4 03 04 00 27 41 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 35 E1 01 00 35 04 06 00 FB 0F 64 72 65 80 D8 E8 66 DC 33 E9 87 4B [09:21:42]CheckFolder [09:21:42]dirname=/storage/ofd_packets [09:21:42]CheckFolder done [09:21:42]ProducePacketName [09:21:42]name=ofd_packets/00123189 [09:21:42]NVStorageSaveData ofd_packets/00123189 [09:21:42]File name is /storage/ofd_packets/00123189 [09:21:42]Write 302 bytes [09:21:42]NVStorageSaveData done [09:21:42]OFDSenderStorePacket done [09:21:42]KKMCreateOFDPacket done [09:21:42]NVStorageSaveData kkm_last_timestamp [09:21:42]File name is /storage/kkm_last_timestamp [09:21:42]Write 4 bytes [09:21:42]NVStorageSaveData done [09:21:42]ExternCall_PrintAddStr [09:21:42]wPrintStart [09:21:42]Write to MH i2c: 01 00 00 DC 15 F1 [09:21:42]Write i2c OK [09:21:42]MH_I2C_Read... [09:21:42]Read from MH i2c: 01 [09:21:42]MH_I2C_Read... [09:21:42]Read from MH i2c: 01 07 00 [09:21:42]MH_I2C_Read... [09:21:42]Read from MH i2c: 01 07 00 DC 15 00 00 00 00 00 FF 0F 06 [09:21:42]RasterBufferAndPrint [09:21:42]line Счет N : (1)1106109 [09:21:42]line ИНН: 02508201610067 [09:21:42]line Контрольно-Кассовый Чек [09:21:42]line ПРОДАЖА [09:21:42]line ТРК (МРК, ГНК) : 41 [09:21:42]line Товар: 2710194210 [09:21:42]line ДТ(л)-К-5 [09:21:42]line 14.110 * 70.90 [09:21:42]line = 1000.40 [09:21:42]line НДС 12% НСП 1% [09:21:42]line > о реализуемом товаре [09:21:42]line ОКРУГЛЕНИЕ: -0.40 [09:21:42]line ИТОГО: 1000.00 [09:21:42]line Внесено: 1000.00 [09:21:42]line СДАЧА: 0.00 [09:21:42]line НСП 1% : 8.85 [09:21:42]line НДС 12% : 106.24 [09:21:42]line Наличными: 1000.00 [09:21:42]line Безнал.: 0.00 [09:21:42]line Место: АЗС № 25 "Партнер Нефть" [09:21:42]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [09:21:42]line СНО: Общий режим [09:21:42]line Чек 46 03.03.2024 09:21 [09:21:42]line Смена: 323 ФФД: 1.0 [09:21:42]line ЗНМ: 0300000019 [09:21:42]line РНМ: 0000000000090573 [09:21:42]line Версия ККМ: 001 [09:21:42]line ФМ: 0000000000874798 [09:21:42]line ФД: 123189 [09:21:42]line ФПД: 276043528299904 [09:21:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T092143&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123189&fm=276043528299904&tin=02508201610067®Number=0000000000090573&sum=100000 [09:21:42]OFD Sender: Processing packet 123189 [packets to send 112, broken 111] [09:21:42]ProducePacketName [09:21:42]name=ofd_packets/00123189 [09:21:42]OFD Sender: To server: pG, [09:21:42]CommunicateWithHost lk.salyk.kg:30040 [09:21:42]ConnectInit lk.salyk.kg [09:21:42]written 0, free lines is 4095 [09:21:42]Connected sock=10 [09:21: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 37 39 38 10 01 00 00 2A 58 08 01 38 38 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 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 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 80 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 2E 00 00 00 F4 03 04 00 27 41 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 35 E1 01 00 35 04 06 00 FB 0F 64 72 65 80 D8 E8 66 DC 33 E9 87 4B [09:21:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 0A C8 47 00 86 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 37 39 38 10 04 04 00 35 E1 01 00 F4 03 04 00 53 ED E3 65 B6 04 01 00 00 DE 7A 60 E5 64 50 86 A9 [09:21:42]CommunicateWithHost err = 0 [09:21:42]CheckOFDResponse [09:21:42]1017 (14) - 77093643461234 [09:21:42]1041 (16) - 0000000000874798 [09:21:42]1040 (4) - 123189 [09:21:42]1012 (4) - 03.03.2024 03:24 [09:21:42]1206 (1) - 0 [09:21:42]OFD Sender: Remove packet 123189 [09:21:42]ProducePacketName [09:21:42]name=ofd_packets/00123189 [09:21:42]NVStorageDeleteData [09:21:43]Write to MH i2c: 01 00 00 07 16 1D [09:21:43]Write i2c OK [09:21:43]MH_I2C_Read... [09:21:43]Read from MH i2c: 01 [09:21:43]MH_I2C_Read... [09:21:43]Read from MH i2c: 01 07 00 [09:21:43]MH_I2C_Read... [09:21:43]Read from MH i2c: 01 07 00 07 16 00 00 00 00 00 F7 0C 27 [09:21:43]RasterBufferAndPrint [09:21:43]line [09:21:43]line [09:21:43]line [09:21:43]line [09:21:43]line [09:21:43]written 0, free lines is 3328 [09:21:43]MH_Cut [09:21:43]Write to MH i2c: D1 01 00 0E 16 01 F6 [09:21:43]Write i2c OK [09:21:43]MH_I2C_Read... [09:21:43]Read from MH i2c: D1 [09:21:43]MH_I2C_Read... [09:21:43]Read from MH i2c: D1 01 00 [09:21:43]MH_I2C_Read... [09:21:43]Read from MH i2c: D1 01 00 0E 16 00 F5 [09:21:43]Write to MH i2c: 01 00 00 0F 16 25 [09:21:43]Write i2c OK [09:21:43]MH_I2C_Read... [09:21:43]OFD Sender: No OFD packet to send [09:21:43]*** Cut start [09:21:43]*** Purtial cut [09:21:43]*** Stage 1: CUTSNS_PIN = 1 [09:21:45]Read from MH i2c: 01 [09:21:45]MH_I2C_Read... [09:21:45]*** Stop cut motor [09:21:45]*** Cut end [09:21:45]Read from MH i2c: 01 07 00 [09:21:45]MH_I2C_Read... [09:21:45]Read from MH i2c: 01 07 00 0F 16 00 00 00 00 00 FF 0F 3A [09:21:45]process_action close_receipt done [09:21:45]requested_data is exist [09:21:45]produce_requested_data [09:21:45]requested_item fm.sn is exist - process it [09:21:45]wFMCommunicate request_size=4 [09:21:45]MH_SAM_APDU [09:21:45]CAPDU: 80 11 00 00 [09:21:45]Write to MH i2c: E2 08 00 10 16 80 11 00 00 00 00 00 00 A0 [09:21:45]Write i2c OK [09:21:45]MH_I2C_Read... [09:21:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:21:45]Read from MH i2c: E2 [09:21:45]MH_I2C_Read... [09:21:45]Read from MH i2c: E2 17 00 [09:21:45]MH_I2C_Read... [09:21:45]Read from MH i2c: E2 17 00 10 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 FE [09:21:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [09:21:45]wFMCommunicate OK [09:21:45]requested_item fd.num is exist - process it [09:21:45]SAM_PROTO_GetFieldsCounters [09:21:45]wFMCommunicate request_size=4 [09:21:45]MH_SAM_APDU [09:21:45]CAPDU: 80 13 00 00 [09:21:45]Write to MH i2c: E2 08 00 11 16 80 13 00 00 00 00 00 00 A3 [09:21:45]Write i2c OK [09:21:45]MH_I2C_Read... [09:21:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:21:46]Read from MH i2c: E2 [09:21:46]MH_I2C_Read... [09:21:46]Read from MH i2c: E2 62 00 [09:21:46]MH_I2C_Read... [09:21:46]Read from MH i2c: E2 62 00 11 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 35 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 B3 [09:21: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 35 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:21:46]wFMCommunicate OK [09:21:46]SAM_PROTO_GetFieldsCounters done [09:21:46]requested_item shift.num is exist - process it [09:21:46]requested_item shift.opened is exist - process it [09:21:46]req_shift_opened [09:21:46]FM_GetShiftState [09:21:46]SAM_PROTO_GetShiftState [09:21:46]wFMCommunicate request_size=4 [09:21:46]MH_SAM_APDU [09:21:46]CAPDU: 80 13 01 00 [09:21:46]Write to MH i2c: E2 08 00 12 16 80 13 01 00 00 00 00 00 A5 [09:21:46]Write i2c OK [09:21:46]MH_I2C_Read... [09:21:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:21:46]Read from MH i2c: E2 [09:21:46]MH_I2C_Read... [09:21:46]Read from MH i2c: E2 0E 00 [09:21:46]MH_I2C_Read... [09:21:46]Read from MH i2c: E2 0E 00 12 16 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 67 [09:21:46]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [09:21:46]wFMCommunicate OK [09:21:46]SAM_PROTO_GetShiftState done [09:21:46]FM_GetShiftState done [09:21:46]req_shift_opened done [09:21:46]requested_item shift.open_date is exist - process it [09:21:46]req_shift_open_date [09:21:46]req_shift_open_date done [09:21:46]produce_requested_data done [09:21:46]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123189,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [09:21:46]process_action_free close_receipt [09:21:46]json_value_free [09:21:46]json_value_free done [09:21:46]process_json_proto returns [09:21:46]Send response to host [09:21:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123189,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [09:21:46]free response buf [09:21:46]execute_script done [09:21:46]execute_script returns [09:21:46]free content buf [09:21:46]Sock 7.Close socket [09:21:46]Sock 7.Thread stoped [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:38]OFD Sender: No OFD packet to send [09:24:43]OFD Sender: No OFD packet to send [09:24:48]OFD Sender: No OFD packet to send [09:24:53]OFD Sender: No OFD packet to send [09:24:58]OFD Sender: No OFD packet to send [09:25:03]OFD Sender: No OFD packet to send [09:25:08]OFD Sender: No OFD packet to send [09:25:13]OFD Sender: No OFD packet to send [09:25:18]OFD Sender: No OFD packet to send [09:25:23]OFD Sender: No OFD packet to send [09:25:28]OFD Sender: No OFD packet to send [09:25:33]OFD Sender: No OFD packet to send [09:25:38]OFD Sender: No OFD packet to send [09:25:43]OFD Sender: No OFD packet to send [09:25:48]OFD Sender: No OFD packet to send [09:25:53]OFD Sender: No OFD packet to send [09:25:58]OFD Sender: No OFD packet to send [09:26:03]OFD Sender: No OFD packet to send [09:26:08]OFD Sender: No OFD packet to send [09:26:13]OFD Sender: No OFD packet to send [09:26:18]OFD Sender: No OFD packet to send [09:26:23]OFD Sender: No OFD packet to send [09:26:28]OFD Sender: No OFD packet to send [09:26:33]OFD Sender: No OFD packet to send [09:26:38]OFD Sender: No OFD packet to send [09:26:43]OFD Sender: No OFD packet to send [09:26:48]OFD Sender: No OFD packet to send [09:26:53]OFD Sender: No OFD packet to send [09:26:58]OFD Sender: No OFD packet to send [09:27:03]OFD Sender: No OFD packet to send [09:27:08]OFD Sender: No OFD packet to send [09:27:13]OFD Sender: No OFD packet to send [09:27:18]OFD Sender: No OFD packet to send [09:27:23]OFD Sender: No OFD packet to send [09:27:28]OFD Sender: No OFD packet to send [09:27:33]OFD Sender: No OFD packet to send [09:27:38]OFD Sender: No OFD packet to send [09:27:42]accept exits with 9 [09:27:42]New connection [09:27:42]New thread 3067252068 created [09:27:42]Thread 3067395428 joined [09:27:42]Waiting for new connection... [09:27:42] Sock 9.Parse request [09:27:42]Sock 9.Check first char [09:27:42]Sock 9.First char is OK [09:27:42]request: POST /json_proto HTTP/1.0 [09:27:42]Method: POST [09:27:42]URL: /json_proto [09:27:42]Method is POST - this is cgi request [09:27:42]url: /json_proto [09:27:42]query_string will be loaded in cgi processing [09:27:42]execute_cgi json_proto POST (null) [09:27:42]execute_cgi path=json_proto method=POST [09:27:42]POST find Content-Length [09:27:42]Host: 172.17.48.197:8080 [09:27:42]Content-Length: 680 [09:27:42]Content-Type: application/json [09:27:42] [09:27:42]POST finish read [09:27:42]Found Content-Length = 680 [09:27:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184151", "tax_sys" : 0, "items" : [ { "code": "4700452010610", "name": "\u041A\u043E\u0444\u0435 \u043A\u0430\u043F\u0443\u0447\u0438\u043D\u043E 200\u043C\u043B (\u0410\u041A\u0426\u0418\u042F)", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:27:42]execute_script... [09:27: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)184151", "tax_sys" : 0, "items" : [ { "code": "4700452010610", "name": "\u041A\u043E\u0444\u0435 \u043A\u0430\u043F\u0443\u0447\u0438\u043D\u043E 200\u043C\u043B (\u0410\u041A\u0426\u0418\u042F)", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:27:42]POST & json_proto [09:27:42]process_json_proto [09:27:42]json parsed OK: [09:27:42]protocol is kg_v1.0 [09:27:42]action value=close_receipt [09:27:42]process_action close_receipt [09:27:42]cmd_close_receipt [09:27:42]MH_GetDate [09:27:42]Write to MH i2c: F0 00 00 13 16 18 [09:27:42]Write i2c OK [09:27:42]MH_I2C_Read... [09:27:42]Read from MH i2c: F0 [09:27:42]MH_I2C_Read... [09:27:42]Read from MH i2c: F0 09 00 [09:27:42]MH_I2C_Read... [09:27:42]Read from MH i2c: F0 09 00 13 16 00 91 42 E4 65 6C AF E3 65 A0 [09:27:42]GetLastDocTimeStamp 1709457703 [09:27:42]current date 1709458065 [09:27:42]FM_GetShiftState [09:27:42]SAM_PROTO_GetShiftState [09:27:42]wFMCommunicate request_size=4 [09:27:42]MH_SAM_APDU [09:27:42]CAPDU: 80 13 01 00 [09:27:42]Write to MH i2c: E2 08 00 14 16 80 13 01 00 00 00 00 00 A7 [09:27:42]Write i2c OK [09:27:42]MH_I2C_Read... [09:27:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:27:42]Read from MH i2c: E2 [09:27:42]MH_I2C_Read... [09:27:42]Read from MH i2c: E2 0E 00 [09:27:42]MH_I2C_Read... [09:27:42]Read from MH i2c: E2 0E 00 14 16 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 69 [09:27:42]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [09:27:42]wFMCommunicate OK [09:27:42]SAM_PROTO_GetShiftState done [09:27:42]FM_GetShiftState done [09:27:42]opened in 1709425579 [09:27:42]opened+sec_in_day 1709511979 [09:27:42]quantity*price = 10500 [09:27:42]sum+1 = 10501 [09:27:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 105.00 НСП 1% : 0.93 НДС 12% : 11.15 Наличными: 105.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 47 03.03.2024 09:27 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123190 ФПД: 258996497974510 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T092745&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123190&fm=258996497974510&tin=02508201610067®Number=0000000000090573&sum=10500 0 [09:27:44]StoreToDocumentArchive [09:27:44]shift 323 fd 123190 [09:27:44]save to /storage/0323/doc_00123190 [09:27:44]save last doc name /storage/0323/doc_00123190 to /storage/kkm_last_doc_name [09:27:44]save OK [09:27:44]Clear old archive folders... [09:27:44]ProcessDocumentItem done err = 0, tmpTLVsize=288 [09:27:44]tlvbuf is 00E25000 [09:27:44]SAM_PROTO_ClearQueue [09:27:44]wFMCommunicate request_size=4 [09:27:44]MH_SAM_APDU [09:27:44]CAPDU: 80 09 00 00 [09:27:44]Write to MH i2c: E2 08 00 21 16 80 09 00 00 00 00 00 00 A9 [09:27:44]Write i2c OK [09:27:44]MH_I2C_Read... [09:27:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:27:44]Read from MH i2c: E2 [09:27:44]MH_I2C_Read... [09:27:44]Read from MH i2c: E2 03 00 [09:27:44]MH_I2C_Read... [09:27:44]Read from MH i2c: E2 03 00 21 16 00 90 00 AB [09:27:44]RAPDU: 90 00 [09:27:44]wFMCommunicate OK [09:27:44]SAM_PROTO_ClearQueue done [09:27:44]KKMCreateOFDPacket [09:27:44]OFDProtocolAddRootSTLVToBuf [09:27:44]FM_MakeSignedData [09:27:44]FM_MakeSignedData [09:27:44]SAM_PROTO_SignData [09:27:44]wFMCommunicate request_size=4 [09:27:44]MH_SAM_APDU [09:27:44]CAPDU: 80 0D 01 02 [09:27:44]Write to MH i2c: E2 08 00 22 16 80 0D 01 02 00 00 00 00 B1 [09:27:44]Write i2c OK [09:27:44]MH_I2C_Read... [09:27:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:27:44]Read from MH i2c: E2 [09:27:44]MH_I2C_Read... [09:27:44]Read from MH i2c: E2 03 00 [09:27:44]MH_I2C_Read... [09:27:44]Read from MH i2c: E2 03 00 22 16 00 90 00 AC [09:27:44]RAPDU: 90 00 [09:27:44]wFMCommunicate OK [09:27:44]wFMCommunicate request_size=255 [09:27:44]MH_SAM_APDU [09:27:44]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 34 35 32 30 31 30 36 31 30 06 04 2E 00 D0 9A D0 BE D1 84 D0 B5 20 D0 BA D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 32 30 30 D0 BC D0 BB 20 28 D0 90 D0 9A D0 A6 D0 98 D0 AF 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 91 42 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 [09:27:44]Write to MH i2c: E2 02 01 23 16 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 34 35 32 30 31 30 36 31 30 06 04 2E 00 D0 9A D0 BE D1 84 D0 B5 20 D0 BA D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 32 30 30 D0 BC D0 BB 20 28 D0 90 D0 9A D0 A6 D0 98 D0 AF 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 91 42 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 00 00 04 [09:27:44]Write i2c OK [09:27:44]MH_I2C_Read... [09:27:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:27:44]Read from MH i2c: E2 [09:27:44]MH_I2C_Read... [09:27:44]Read from MH i2c: E2 03 00 [09:27:44]MH_I2C_Read... [09:27:44]Read from MH i2c: E2 03 00 23 16 00 90 00 AD [09:27:44]RAPDU: 90 00 [09:27:44]wFMCommunicate OK [09:27:44]wFMCommunicate request_size=47 [09:27:44]MH_SAM_APDU [09:27:44]CAPDU: 80 0D 02 02 2A 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 36 E1 01 00 35 04 06 00 EB 8E 52 42 84 EE [09:27:44]Write to MH i2c: E2 32 00 24 16 80 0D 02 02 2A 00 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 36 E1 01 00 35 04 06 00 EB 8E 52 42 84 EE 00 00 15 [09:27:44]Write i2c OK [09:27:44]MH_I2C_Read... [09:27:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:27:44]Read from MH i2c: E2 [09:27:44]MH_I2C_Read... [09:27:44]Read from MH i2c: E2 03 00 [09:27:44]MH_I2C_Read... [09:27:44]Read from MH i2c: E2 03 00 24 16 00 90 00 AE [09:27:44]RAPDU: 90 00 [09:27:44]wFMCommunicate OK [09:27:44]wFMCommunicate request_size=4 [09:27:44]MH_SAM_APDU [09:27:44]CAPDU: 80 0D 03 02 [09:27:44]Write to MH i2c: E2 08 00 25 16 80 0D 03 02 00 00 00 00 B6 [09:27:44]Write i2c OK [09:27:44]MH_I2C_Read... [09:27:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:27:44]Read from MH i2c: E2 [09:27:44]MH_I2C_Read... [09:27:44]Read from MH i2c: E2 0B 00 [09:27:44]MH_I2C_Read... [09:27:44]Read from MH i2c: E2 0B 00 25 16 00 B6 0B 11 54 18 DB C3 32 90 00 C5 [09:27:44]RAPDU: B6 0B 11 54 18 DB C3 32 90 00 [09:27:44]wFMCommunicate OK [09:27:44]SAM_PROTO_SignData done [09:27:44]FM_MakeSignedData done [09:27:44]CreateOFDProtocolMessage [09:27:44]wFMCommunicate request_size=4 [09:27:44]MH_SAM_APDU [09:27:44]CAPDU: 80 11 00 00 [09:27:44]Write to MH i2c: E2 08 00 26 16 80 11 00 00 00 00 00 00 B6 [09:27:44]Write i2c OK [09:27:44]MH_I2C_Read... [09:27:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:27:44]Read from MH i2c: E2 [09:27:44]MH_I2C_Read... [09:27:44]Read from MH i2c: E2 17 00 [09:27:44]MH_I2C_Read... [09:27:44]Read from MH i2c: E2 17 00 26 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 14 [09:27:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [09:27:44]wFMCommunicate OK [09:27:44]CreateOFDProtocolMessage done [09:27:44]OFDSenderStorePacket 123190 [09:27:44]StoreOFDPacket docnum=123190 [09:27:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 34 01 00 00 11 D4 2C 01 18 D4 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 34 35 32 30 31 30 36 31 30 06 04 2E 00 D0 9A D0 BE D1 84 D0 B5 20 D0 BA D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 32 30 30 D0 BC D0 BB 20 28 D0 90 D0 9A D0 A6 D0 98 D0 AF 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 91 42 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 36 E1 01 00 35 04 06 00 EB 8E 52 42 84 EE B6 0B 11 54 18 DB C3 32 [09:27:44]CheckFolder [09:27:44]dirname=/storage/ofd_packets [09:27:44]CheckFolder done [09:27:44]ProducePacketName [09:27:44]name=ofd_packets/00123190 [09:27:44]NVStorageSaveData ofd_packets/00123190 [09:27:44]File name is /storage/ofd_packets/00123190 [09:27:44]Write 338 bytes [09:27:44]NVStorageSaveData done [09:27:44]OFDSenderStorePacket done [09:27:44]KKMCreateOFDPacket done [09:27:44]NVStorageSaveData kkm_last_timestamp [09:27:44]File name is /storage/kkm_last_timestamp [09:27:44]Write 4 bytes [09:27:44]NVStorageSaveData done [09:27:44]ExternCall_PrintAddStr [09:27:44]wPrintStart [09:27:44]Write to MH i2c: 01 00 00 27 16 3D [09:27:44]Write i2c OK [09:27:44]MH_I2C_Read... [09:27:44]Read from MH i2c: 01 [09:27:44]MH_I2C_Read... [09:27:44]Read from MH i2c: 01 07 00 [09:27:44]MH_I2C_Read... [09:27:44]Read from MH i2c: 01 07 00 27 16 00 00 00 00 00 FF 0F 52 [09:27:44]RasterBufferAndPrint [09:27:44]line Счет N : (3)184151 [09:27:44]line ИНН: 02508201610067 [09:27:44]line Контрольно-Кассовый Чек [09:27:44]line ПРОДАЖА [09:27:44]line Товар: 4700452010610 [09:27:44]line Кофе капучино 200мл (АКЦИЯ) [09:27:44]line 1.000 * 105.00 [09:27:44]line = 105.00 [09:27:44]line НДС 12% НСП 1% [09:27:44]line > о реализуемом товаре [09:27:44]line ИТОГО: 105.00 [09:27:44]line НСП 1% : 0.93 [09:27:44]line НДС 12% : 11.15 [09:27:44]line Наличными: 105.00 [09:27:44]line Безнал.: 0.00 [09:27:44]line Место: АЗС № 25 "Партнер Нефть" [09:27:44]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [09:27:44]line СНО: Общий режим [09:27:44]line Чек 47 03.03.2024 09:27 [09:27:44]line Смена: 323 ФФД: 1.0 [09:27:44]line ЗНМ: 0300000019 [09:27:44]line РНМ: 0000000000090573 [09:27:44]line Версия ККМ: 001 [09:27:44]line ФМ: 0000000000874798 [09:27:44]line ФД: 123190 [09:27:44]line ФПД: 258996497974510 [09:27:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T092745&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123190&fm=258996497974510&tin=02508201610067®Number=0000000000090573&sum=10500 [09:27:44]line 0 [09:27:44]OFD Sender: Processing packet 123190 [packets to send 112, broken 111] [09:27:44]ProducePacketName [09:27:44]name=ofd_packets/00123190 [09:27:44]OFD Sender: To server: pG, [09:27:44]CommunicateWithHost lk.salyk.kg:30040 [09:27:44]ConnectInit lk.salyk.kg [09:27:44]written 0, free lines is 4095 [09:27:44]Connected sock=10 [09:27: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 37 39 38 34 01 00 00 11 D4 2C 01 18 D4 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 34 35 32 30 31 30 36 31 30 06 04 2E 00 D0 9A D0 BE D1 84 D0 B5 20 D0 BA D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 32 30 30 D0 BC D0 BB 20 28 D0 90 D0 9A D0 A6 D0 98 D0 AF 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 91 42 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 36 E1 01 00 35 04 06 00 EB 8E 52 42 84 EE B6 0B 11 54 18 DB C3 32 [09:27:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 50 F7 47 00 79 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 36 E1 01 00 F4 03 04 00 BD EE E3 65 B6 04 01 00 00 6B E0 56 AD E6 1B F8 EC [09:27:45]CommunicateWithHost err = 0 [09:27:45]CheckOFDResponse [09:27:45]1017 (14) - 77093643461234 [09:27:45]1041 (16) - 0000000000874798 [09:27:45]1040 (4) - 123190 [09:27:45]1012 (4) - 03.03.2024 03:30 [09:27:45]1206 (1) - 0 [09:27:45]OFD Sender: Remove packet 123190 [09:27:45]ProducePacketName [09:27:45]name=ofd_packets/00123190 [09:27:45]NVStorageDeleteData [09:27:45]Write to MH i2c: 01 00 00 50 16 66 [09:27:45]Write i2c OK [09:27:45]MH_I2C_Read... [09:27:45]Read from MH i2c: 01 [09:27:45]MH_I2C_Read... [09:27:45]Read from MH i2c: 01 07 00 [09:27:45]MH_I2C_Read... [09:27:45]Read from MH i2c: 01 07 00 50 16 00 00 00 00 00 0E 0D 88 [09:27:45]RasterBufferAndPrint [09:27:45]line [09:27:45]line [09:27:45]line [09:27:45]line [09:27:45]line [09:27:45]written 0, free lines is 3348 [09:27:45]MH_Cut [09:27:45]Write to MH i2c: D1 01 00 57 16 01 3F [09:27:45]Write i2c OK [09:27:45]MH_I2C_Read... [09:27:45]Read from MH i2c: D1 [09:27:45]MH_I2C_Read... [09:27:45]Read from MH i2c: D1 01 00 [09:27:45]MH_I2C_Read... [09:27:45]Read from MH i2c: D1 01 00 57 16 00 3E [09:27:45]Write to MH i2c: 01 00 00 58 16 6E [09:27:45]Write i2c OK [09:27:45]MH_I2C_Read... [09:27:45]OFD Sender: No OFD packet to send [09:27:46]*** Cut start [09:27:46]*** Purtial cut [09:27:46]*** Stage 1: CUTSNS_PIN = 1 [09:27:48]Read from MH i2c: 01 [09:27:48]MH_I2C_Read... [09:27:48]*** Stop cut motor [09:27:48]*** Cut end [09:27:48]Read from MH i2c: 01 07 00 [09:27:48]MH_I2C_Read... [09:27:48]Read from MH i2c: 01 07 00 58 16 00 00 00 00 00 FF 0F 83 [09:27:48]process_action close_receipt done [09:27:48]requested_data is exist [09:27:48]produce_requested_data [09:27:48]requested_item fm.sn is exist - process it [09:27:48]wFMCommunicate request_size=4 [09:27:48]MH_SAM_APDU [09:27:48]CAPDU: 80 11 00 00 [09:27:48]Write to MH i2c: E2 08 00 59 16 80 11 00 00 00 00 00 00 E9 [09:27:48]Write i2c OK [09:27:48]MH_I2C_Read... [09:27:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:27:48]Read from MH i2c: E2 [09:27:48]MH_I2C_Read... [09:27:48]Read from MH i2c: E2 17 00 [09:27:48]MH_I2C_Read... [09:27:48]Read from MH i2c: E2 17 00 59 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 47 [09:27:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [09:27:48]wFMCommunicate OK [09:27:48]requested_item fd.num is exist - process it [09:27:48]SAM_PROTO_GetFieldsCounters [09:27:48]wFMCommunicate request_size=4 [09:27:48]MH_SAM_APDU [09:27:48]CAPDU: 80 13 00 00 [09:27:48]Write to MH i2c: E2 08 00 5A 16 80 13 00 00 00 00 00 00 EC [09:27:48]Write i2c OK [09:27:48]MH_I2C_Read... [09:27:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:27:48]Read from MH i2c: E2 [09:27:48]MH_I2C_Read... [09:27:48]Read from MH i2c: E2 62 00 [09:27:48]MH_I2C_Read... [09:27:48]Read from MH i2c: E2 62 00 5A 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 36 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 00 [09:27: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 36 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:27:48]wFMCommunicate OK [09:27:48]SAM_PROTO_GetFieldsCounters done [09:27:48]requested_item shift.num is exist - process it [09:27:48]requested_item shift.opened is exist - process it [09:27:48]req_shift_opened [09:27:48]FM_GetShiftState [09:27:48]SAM_PROTO_GetShiftState [09:27:48]wFMCommunicate request_size=4 [09:27:48]MH_SAM_APDU [09:27:48]CAPDU: 80 13 01 00 [09:27:48]Write to MH i2c: E2 08 00 5B 16 80 13 01 00 00 00 00 00 EE [09:27:48]Write i2c OK [09:27:48]MH_I2C_Read... [09:27:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:27:48]Read from MH i2c: E2 [09:27:48]MH_I2C_Read... [09:27:48]Read from MH i2c: E2 0E 00 [09:27:48]MH_I2C_Read... [09:27:48]Read from MH i2c: E2 0E 00 5B 16 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 B0 [09:27:48]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [09:27:48]wFMCommunicate OK [09:27:48]SAM_PROTO_GetShiftState done [09:27:48]FM_GetShiftState done [09:27:48]req_shift_opened done [09:27:48]requested_item shift.open_date is exist - process it [09:27:48]req_shift_open_date [09:27:48]req_shift_open_date done [09:27:48]produce_requested_data done [09:27:48]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123190,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [09:27:48]process_action_free close_receipt [09:27:48]json_value_free [09:27:48]json_value_free done [09:27:48]process_json_proto returns [09:27:48]Send response to host [09:27:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123190,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [09:27:48]free response buf [09:27:48]execute_script done [09:27:48]execute_script returns [09:27:48]free content buf [09:27:48]Sock 9.Close socket [09:27:48]Sock 9.Thread stoped [09:27:50]OFD Sender: No OFD packet to send [09:27:55]OFD Sender: No OFD packet to send [09:28:00]OFD Sender: No OFD packet to send [09:28:05]OFD Sender: No OFD packet to send [09:28:10]OFD Sender: No OFD packet to send [09:28:15]OFD Sender: No OFD packet to send [09:28:20]OFD Sender: No OFD packet to send [09:28:25]OFD Sender: No OFD packet to send [09:28:30]OFD Sender: No OFD packet to send [09:28:35]OFD Sender: No OFD packet to send [09:28:40]OFD Sender: No OFD packet to send [09:28:45]OFD Sender: No OFD packet to send [09:28:50]OFD Sender: No OFD packet to send [09:28:55]OFD Sender: No OFD packet to send [09:29:00]OFD Sender: No OFD packet to send [09:29:05]OFD Sender: No OFD packet to send [09:29:10]OFD Sender: No OFD packet to send [09:29:15]OFD Sender: No OFD packet to send [09:29:20]OFD Sender: No OFD packet to send [09:29:25]OFD Sender: No OFD packet to send [09:29:30]OFD Sender: No OFD packet to send [09:29:35]OFD Sender: No OFD packet to send [09:29:40]OFD Sender: No OFD packet to send [09:29:45]OFD Sender: No OFD packet to send [09:29:50]OFD Sender: No OFD packet to send [09:29:55]OFD Sender: No OFD packet to send [09:30:00]OFD Sender: No OFD packet to send [09:30:05]OFD Sender: No OFD packet to send [09:30:10]OFD Sender: No OFD packet to send [09:30:15]OFD Sender: No OFD packet to send [09:30:20]OFD Sender: No OFD packet to send [09:30:25]OFD Sender: No OFD packet to send [09:30:30]OFD Sender: No OFD packet to send [09:30:35]OFD Sender: No OFD packet to send [09:30:40]OFD Sender: No OFD packet to send [09:30:45]OFD Sender: No OFD packet to send [09:30:50]OFD Sender: No OFD packet to send [09:30:55]OFD Sender: No OFD packet to send [09:31:00]OFD Sender: No OFD packet to send [09:31:05]OFD Sender: No OFD packet to send [09:31:10]OFD Sender: No OFD packet to send [09:31:15]OFD Sender: No OFD packet to send [09:31:20]OFD Sender: No OFD packet to send [09:31:25]OFD Sender: No OFD packet to send [09:31:30]OFD Sender: No OFD packet to send [09:31:35]OFD Sender: No OFD packet to send [09:31:40]OFD Sender: No OFD packet to send [09:31:45]OFD Sender: No OFD packet to send [09:31:50]OFD Sender: No OFD packet to send [09:31:55]OFD Sender: No OFD packet to send [09:32:00]OFD Sender: No OFD packet to send [09:32:05]OFD Sender: No OFD packet to send [09:32:11]OFD Sender: No OFD packet to send [09:32:16]OFD Sender: No OFD packet to send [09:32:21]OFD Sender: No OFD packet to send [09:32:26]OFD Sender: No OFD packet to send [09:32:31]OFD Sender: No OFD packet to send [09:32:36]OFD Sender: No OFD packet to send [09:32:41]OFD Sender: No OFD packet to send [09:32:46]OFD Sender: No OFD packet to send [09:32:51]OFD Sender: No OFD packet to send [09:32:56]OFD Sender: No OFD packet to send [09:33:01]OFD Sender: No OFD packet to send [09:33:06]OFD Sender: No OFD packet to send [09:33:11]OFD Sender: No OFD packet to send [09:33:16]OFD Sender: No OFD packet to send [09:33:18]accept exits with 7 [09:33:18]New connection [09:33:18]New thread 3067395428 created [09:33:18]Thread 3067252068 joined [09:33:18]Waiting for new connection... [09:33:18] Sock 7.Parse request [09:33:18]Sock 7.Check first char [09:33:18]Sock 7.First char is OK [09:33:18]request: POST /json_proto HTTP/1.0 [09:33:18]Method: POST [09:33:18]URL: /json_proto [09:33:18]Method is POST - this is cgi request [09:33:18]url: /json_proto [09:33:18]query_string will be loaded in cgi processing [09:33:18]execute_cgi json_proto POST (null) [09:33:18]execute_cgi path=json_proto method=POST [09:33:18]POST find Content-Length [09:33:18]Host: 172.17.48.197:8080 [09:33:18]Content-Length: 683 [09:33:18]Content-Type: application/json [09:33:18] [09:33:18]POST finish read [09:33:18]Found Content-Length = 683 [09:33:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106110", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 24.240, "sum" : 1500.46, "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" ] } } [09:33:18]execute_script... [09:33:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106110", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 24.240, "sum" : 1500.46, "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" ] } } [09:33:18]POST & json_proto [09:33:18]process_json_proto [09:33:18]json parsed OK: [09:33:18]protocol is kg_v1.0 [09:33:18]action value=close_receipt [09:33:18]process_action close_receipt [09:33:18]cmd_close_receipt [09:33:18]MH_GetDate [09:33:18]Write to MH i2c: F0 00 00 5C 16 61 [09:33:18]Write i2c OK [09:33:18]MH_I2C_Read... [09:33:18]Read from MH i2c: F0 [09:33:18]MH_I2C_Read... [09:33:18]Read from MH i2c: F0 09 00 [09:33:18]MH_I2C_Read... [09:33:18]Read from MH i2c: F0 09 00 5C 16 00 E0 43 E4 65 6C AF E3 65 39 [09:33:18]GetLastDocTimeStamp 1709458065 [09:33:18]current date 1709458400 [09:33:18]FM_GetShiftState [09:33:18]SAM_PROTO_GetShiftState [09:33:18]wFMCommunicate request_size=4 [09:33:18]MH_SAM_APDU [09:33:18]CAPDU: 80 13 01 00 [09:33:18]Write to MH i2c: E2 08 00 5D 16 80 13 01 00 00 00 00 00 F0 [09:33:18]Write i2c OK [09:33:18]MH_I2C_Read... [09:33:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:18]Read from MH i2c: E2 [09:33:18]MH_I2C_Read... [09:33:18]Read from MH i2c: E2 0E 00 [09:33:18]MH_I2C_Read... [09:33:18]Read from MH i2c: E2 0E 00 5D 16 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 B2 [09:33:18]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [09:33:18]wFMCommunicate OK [09:33:18]SAM_PROTO_GetShiftState done [09:33:18]FM_GetShiftState done [09:33:18]opened in 1709425579 [09:33:18]opened+sec_in_day 1709511979 [09:33:18]quantity*price = 150045 [09:33:18]sum+1 = 150047 [09:33:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.34 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 48 03.03.2024 09:33 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123191 ФПД: 227909410119452 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T093320&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123191&fm=227909410119452&tin=02508201610067®Number=0000000000090573&sum=150000 [09:33:19]StoreToDocumentArchive [09:33:19]shift 323 fd 123191 [09:33:19]save to /storage/0323/doc_00123191 [09:33:19]save last doc name /storage/0323/doc_00123191 to /storage/kkm_last_doc_name [09:33:19]save OK [09:33:19]Clear old archive folders... [09:33:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:33:19]tlvbuf is 00DB7D60 [09:33:19]SAM_PROTO_ClearQueue [09:33:19]wFMCommunicate request_size=4 [09:33:19]MH_SAM_APDU [09:33:19]CAPDU: 80 09 00 00 [09:33:19]Write to MH i2c: E2 08 00 6A 16 80 09 00 00 00 00 00 00 F2 [09:33:19]Write i2c OK [09:33:19]MH_I2C_Read... [09:33:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:33:19]Read from MH i2c: E2 [09:33:19]MH_I2C_Read... [09:33:19]Read from MH i2c: E2 03 00 [09:33:19]MH_I2C_Read... [09:33:19]Read from MH i2c: E2 03 00 6A 16 00 90 00 F4 [09:33:19]RAPDU: 90 00 [09:33:19]wFMCommunicate OK [09:33:19]SAM_PROTO_ClearQueue done [09:33:19]KKMCreateOFDPacket [09:33:19]OFDProtocolAddRootSTLVToBuf [09:33:19]FM_MakeSignedData [09:33:19]FM_MakeSignedData [09:33:19]SAM_PROTO_SignData [09:33:19]wFMCommunicate request_size=4 [09:33:19]MH_SAM_APDU [09:33:19]CAPDU: 80 0D 01 02 [09:33:19]Write to MH i2c: E2 08 00 6B 16 80 0D 01 02 00 00 00 00 FA [09:33:19]Write i2c OK [09:33:19]MH_I2C_Read... [09:33:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:33:19]Read from MH i2c: E2 [09:33:19]MH_I2C_Read... [09:33:19]Read from MH i2c: E2 03 00 [09:33:19]MH_I2C_Read... [09:33:19]Read from MH i2c: E2 03 00 6B 16 00 90 00 F5 [09:33:19]RAPDU: 90 00 [09:33:19]wFMCommunicate OK [09:33:19]wFMCommunicate request_size=255 [09:33:19]MH_SAM_APDU [09:33:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 5E 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 1E 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 E0 43 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 37 E1 01 00 35 04 06 00 CF [09:33:19]Write to MH i2c: E2 02 01 6C 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 35 FF 03 08 00 03 B0 5E 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 1E 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 E0 43 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 37 E1 01 00 35 04 06 00 CF 00 00 BB [09:33:19]Write i2c OK [09:33:19]MH_I2C_Read... [09:33:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:19]Read from MH i2c: E2 [09:33:19]MH_I2C_Read... [09:33:19]Read from MH i2c: E2 03 00 [09:33:19]MH_I2C_Read... [09:33:19]Read from MH i2c: E2 03 00 6C 16 00 90 00 F6 [09:33:19]RAPDU: 90 00 [09:33:19]wFMCommunicate OK [09:33:19]wFMCommunicate request_size=10 [09:33:19]MH_SAM_APDU [09:33:19]CAPDU: 80 0D 02 02 05 48 4B 6E 5F 1C [09:33:19]Write to MH i2c: E2 0D 00 6D 16 80 0D 02 02 05 00 48 4B 6E 5F 1C 00 00 83 [09:33:19]Write i2c OK [09:33:19]MH_I2C_Read... [09:33:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:19]Read from MH i2c: E2 [09:33:19]MH_I2C_Read... [09:33:19]Read from MH i2c: E2 03 00 [09:33:19]MH_I2C_Read... [09:33:19]Read from MH i2c: E2 03 00 6D 16 00 90 00 F7 [09:33:19]RAPDU: 90 00 [09:33:19]wFMCommunicate OK [09:33:19]wFMCommunicate request_size=4 [09:33:19]MH_SAM_APDU [09:33:19]CAPDU: 80 0D 03 02 [09:33:19]Write to MH i2c: E2 08 00 6E 16 80 0D 03 02 00 00 00 00 FF [09:33:19]Write i2c OK [09:33:19]MH_I2C_Read... [09:33:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:33:19]Read from MH i2c: E2 [09:33:19]MH_I2C_Read... [09:33:19]Read from MH i2c: E2 0B 00 [09:33:19]MH_I2C_Read... [09:33:19]Read from MH i2c: E2 0B 00 6E 16 00 25 0D E4 15 C7 CB 4C C7 90 00 D0 [09:33:19]RAPDU: 25 0D E4 15 C7 CB 4C C7 90 00 [09:33:19]wFMCommunicate OK [09:33:19]SAM_PROTO_SignData done [09:33:19]FM_MakeSignedData done [09:33:19]CreateOFDProtocolMessage [09:33:19]wFMCommunicate request_size=4 [09:33:19]MH_SAM_APDU [09:33:19]CAPDU: 80 11 00 00 [09:33:19]Write to MH i2c: E2 08 00 6F 16 80 11 00 00 00 00 00 00 FF [09:33:19]Write i2c OK [09:33:19]MH_I2C_Read... [09:33:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:19]Read from MH i2c: E2 [09:33:19]MH_I2C_Read... [09:33:19]Read from MH i2c: E2 17 00 [09:33:19]MH_I2C_Read... [09:33:19]Read from MH i2c: E2 17 00 6F 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 5D [09:33:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [09:33:19]wFMCommunicate OK [09:33:19]CreateOFDProtocolMessage done [09:33:19]OFDSenderStorePacket 123191 [09:33:19]StoreOFDPacket docnum=123191 [09:33:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 A3 8F 07 01 BC 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 35 FF 03 08 00 03 B0 5E 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 1E 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 E0 43 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 37 E1 01 00 35 04 06 00 CF 48 4B 6E 5F 1C 25 0D E4 15 C7 CB 4C C7 [09:33:19]CheckFolder [09:33:19]dirname=/storage/ofd_packets [09:33:19]CheckFolder done [09:33:19]ProducePacketName [09:33:19]name=ofd_packets/00123191 [09:33:19]NVStorageSaveData ofd_packets/00123191 [09:33:19]File name is /storage/ofd_packets/00123191 [09:33:19]Write 301 bytes [09:33:19]NVStorageSaveData done [09:33:19]OFDSenderStorePacket done [09:33:19]KKMCreateOFDPacket done [09:33:19]NVStorageSaveData kkm_last_timestamp [09:33:19]File name is /storage/kkm_last_timestamp [09:33:19]Write 4 bytes [09:33:19]NVStorageSaveData done [09:33:19]ExternCall_PrintAddStr [09:33:19]wPrintStart [09:33:19]Write to MH i2c: 01 00 00 70 16 86 [09:33:19]Write i2c OK [09:33:19]MH_I2C_Read... [09:33:19]Read from MH i2c: 01 [09:33:19]MH_I2C_Read... [09:33:19]Read from MH i2c: 01 07 00 [09:33:19]MH_I2C_Read... [09:33:19]Read from MH i2c: 01 07 00 70 16 00 00 00 00 00 FF 0F 9B [09:33:19]RasterBufferAndPrint [09:33:19]line Счет N : (1)1106110 [09:33:19]line ИНН: 02508201610067 [09:33:19]line Контрольно-Кассовый Чек [09:33:19]line ПРОДАЖА [09:33:19]line ТРК (МРК, ГНК) : 52 [09:33:19]line Товар: 2710124130 [09:33:19]line Аи-92-К-5 [09:33:19]line 24.240 * 61.90 [09:33:19]line = 1500.46 [09:33:19]line НДС 12% НСП 1% [09:33:19]line > о реализуемом товаре [09:33:19]line ОКРУГЛЕНИЕ: -0.46 [09:33:19]line ИТОГО: 1500.00 [09:33:19]line Внесено: 1500.00 [09:33:19]line СДАЧА: 0.00 [09:33:19]line НСП 1% : 13.28 [09:33:19]line НДС 12% : 159.34 [09:33:19]line Наличными: 1500.00 [09:33:19]line Безнал.: 0.00 [09:33:19]line Место: АЗС № 25 "Партнер Нефть" [09:33:19]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [09:33:19]line СНО: Общий режим [09:33:19]line Чек 48 03.03.2024 09:33 [09:33:19]line Смена: 323 ФФД: 1.0 [09:33:19]line ЗНМ: 0300000019 [09:33:19]line РНМ: 0000000000090573 [09:33:19]line Версия ККМ: 001 [09:33:19]line ФМ: 0000000000874798 [09:33:19]line ФД: 123191 [09:33:19]line ФПД: 227909410119452 [09:33:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T093320&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123191&fm=227909410119452&tin=02508201610067®Number=0000000000090573&sum=150000 [09:33:20]OFD Sender: Processing packet 123191 [packets to send 112, broken 111] [09:33:20]ProducePacketName [09:33:20]name=ofd_packets/00123191 [09:33:20]OFD Sender: To server: pG, [09:33:20]CommunicateWithHost lk.salyk.kg:30040 [09:33:20]ConnectInit lk.salyk.kg [09:33:20]written 0, free lines is 4095 [09:33:20]Connected sock=10 [09:33: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 37 39 38 0F 01 00 00 A3 8F 07 01 BC 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 35 FF 03 08 00 03 B0 5E 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 1E 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 E0 43 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 37 E1 01 00 35 04 06 00 CF 48 4B 6E 5F 1C 25 0D E4 15 C7 CB 4C C7 [09:33:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 13 C6 47 00 D5 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 37 39 38 10 04 04 00 37 E1 01 00 F4 03 04 00 0C F0 E3 65 B6 04 01 00 00 89 21 F6 07 BA C1 E4 A6 [09:33:20]CommunicateWithHost err = 0 [09:33:20]CheckOFDResponse [09:33:20]1017 (14) - 77093643461234 [09:33:20]1041 (16) - 0000000000874798 [09:33:20]1040 (4) - 123191 [09:33:20]1012 (4) - 03.03.2024 03:35 [09:33:20]1206 (1) - 0 [09:33:20]OFD Sender: Remove packet 123191 [09:33:20]ProducePacketName [09:33:20]name=ofd_packets/00123191 [09:33:20]NVStorageDeleteData [09:33:20]Write to MH i2c: 01 00 00 9B 16 B1 [09:33:20]Write i2c OK [09:33:20]MH_I2C_Read... [09:33:20]Read from MH i2c: 01 [09:33:20]MH_I2C_Read... [09:33:20]Read from MH i2c: 01 07 00 [09:33:20]MH_I2C_Read... [09:33:20]Read from MH i2c: 01 07 00 9B 16 00 00 00 00 00 F9 0C BD [09:33:20]RasterBufferAndPrint [09:33:20]line [09:33:20]line [09:33:20]line [09:33:20]line [09:33:20]line [09:33:20]written 0, free lines is 3330 [09:33:20]MH_Cut [09:33:20]Write to MH i2c: D1 01 00 A2 16 01 8A [09:33:20]Write i2c OK [09:33:20]MH_I2C_Read... [09:33:20]Read from MH i2c: D1 [09:33:20]MH_I2C_Read... [09:33:20]Read from MH i2c: D1 01 00 [09:33:20]MH_I2C_Read... [09:33:20]Read from MH i2c: D1 01 00 A2 16 00 89 [09:33:20]Write to MH i2c: 01 00 00 A3 16 B9 [09:33:20]Write i2c OK [09:33:20]MH_I2C_Read... [09:33:20]OFD Sender: No OFD packet to send [09:33:21]*** Cut start [09:33:21]*** Purtial cut [09:33:21]*** Stage 1: CUTSNS_PIN = 1 [09:33:23]Read from MH i2c: 01 [09:33:23]MH_I2C_Read... [09:33:23]*** Stop cut motor [09:33:23]*** Cut end [09:33:23]Read from MH i2c: 01 07 00 [09:33:23]MH_I2C_Read... [09:33:23]Read from MH i2c: 01 07 00 A3 16 00 00 00 00 00 FF 0F CE [09:33:23]process_action close_receipt done [09:33:23]requested_data is exist [09:33:23]produce_requested_data [09:33:23]requested_item fm.sn is exist - process it [09:33:23]wFMCommunicate request_size=4 [09:33:23]MH_SAM_APDU [09:33:23]CAPDU: 80 11 00 00 [09:33:23]Write to MH i2c: E2 08 00 A4 16 80 11 00 00 00 00 00 00 34 [09:33:23]Write i2c OK [09:33:23]MH_I2C_Read... [09:33:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:23]Read from MH i2c: E2 [09:33:23]MH_I2C_Read... [09:33:23]Read from MH i2c: E2 17 00 [09:33:23]MH_I2C_Read... [09:33:23]Read from MH i2c: E2 17 00 A4 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 92 [09:33:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [09:33:23]wFMCommunicate OK [09:33:23]requested_item fd.num is exist - process it [09:33:23]SAM_PROTO_GetFieldsCounters [09:33:23]wFMCommunicate request_size=4 [09:33:23]MH_SAM_APDU [09:33:23]CAPDU: 80 13 00 00 [09:33:23]Write to MH i2c: E2 08 00 A5 16 80 13 00 00 00 00 00 00 37 [09:33:23]Write i2c OK [09:33:23]MH_I2C_Read... [09:33:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:33:23]Read from MH i2c: E2 [09:33:23]MH_I2C_Read... [09:33:23]Read from MH i2c: E2 62 00 [09:33:23]MH_I2C_Read... [09:33:23]Read from MH i2c: E2 62 00 A5 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 37 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 4F [09:33: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 37 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:33:23]wFMCommunicate OK [09:33:23]SAM_PROTO_GetFieldsCounters done [09:33:23]requested_item shift.num is exist - process it [09:33:23]requested_item shift.opened is exist - process it [09:33:23]req_shift_opened [09:33:23]FM_GetShiftState [09:33:23]SAM_PROTO_GetShiftState [09:33:23]wFMCommunicate request_size=4 [09:33:23]MH_SAM_APDU [09:33:23]CAPDU: 80 13 01 00 [09:33:23]Write to MH i2c: E2 08 00 A6 16 80 13 01 00 00 00 00 00 39 [09:33:23]Write i2c OK [09:33:23]MH_I2C_Read... [09:33:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:23]Read from MH i2c: E2 [09:33:23]MH_I2C_Read... [09:33:23]Read from MH i2c: E2 0E 00 [09:33:23]MH_I2C_Read... [09:33:23]Read from MH i2c: E2 0E 00 A6 16 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 FB [09:33:23]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [09:33:23]wFMCommunicate OK [09:33:23]SAM_PROTO_GetShiftState done [09:33:23]FM_GetShiftState done [09:33:23]req_shift_opened done [09:33:23]requested_item shift.open_date is exist - process it [09:33:23]req_shift_open_date [09:33:23]req_shift_open_date done [09:33:23]produce_requested_data done [09:33:23]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123191,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [09:33:23]process_action_free close_receipt [09:33:23]json_value_free [09:33:23]json_value_free done [09:33:23]process_json_proto returns [09:33:23]Send response to host [09:33:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123191,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [09:33:23]free response buf [09:33:23]execute_script done [09:33:23]execute_script returns [09:33:23]free content buf [09:33:23]Sock 7.Close socket [09:33:23]Sock 7.Thread stoped [09:33:25]OFD Sender: No OFD packet to send [09:33:30]OFD Sender: No OFD packet to send [09:33:35]OFD Sender: No OFD packet to send [09:33:40]OFD Sender: No OFD packet to send [09:33:45]OFD Sender: No OFD packet to send [09:33:50]OFD Sender: No OFD packet to send [09:33:55]OFD Sender: No OFD packet to send [09:34:00]OFD Sender: No OFD packet to send [09:34:05]OFD Sender: No OFD packet to send [09:34:10]OFD Sender: No OFD packet to send [09:34:15]OFD Sender: No OFD packet to send [09:34:20]OFD Sender: No OFD packet to send [09:34:25]OFD Sender: No OFD packet to send [09:34:30]OFD Sender: No OFD packet to send [09:34:35]OFD Sender: No OFD packet to send [09:34:40]OFD Sender: No OFD packet to send [09:34:45]OFD Sender: No OFD packet to send [09:34:50]OFD Sender: No OFD packet to send [09:34:56]OFD Sender: No OFD packet to send [09:34:59]accept exits with 9 [09:34:59]New connection [09:34:59]New thread 3067252068 created [09:34:59]Thread 3067395428 joined [09:34:59]Waiting for new connection... [09:34:59] Sock 9.Parse request [09:34:59]Sock 9.Check first char [09:34:59]Sock 9.First char is OK [09:34:59]request: POST /json_proto HTTP/1.0 [09:34:59]Method: POST [09:34:59]URL: /json_proto [09:34:59]Method is POST - this is cgi request [09:34:59]url: /json_proto [09:34:59]query_string will be loaded in cgi processing [09:34:59]execute_cgi json_proto POST (null) [09:34:59]execute_cgi path=json_proto method=POST [09:34:59]POST find Content-Length [09:34:59]Host: 172.17.48.197:8080 [09:34:59]Content-Length: 678 [09:34:59]Content-Type: application/json [09:34:59] [09:34:59]POST finish read [09:34:59]Found Content-Length = 678 [09:34:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106112", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 4.210, "sum" : 260.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 260.00, "total" : 260.00, "payments": [ { "type": 0, "sum" : 260.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:34:59]execute_script... [09:34: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)1106112", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 4.210, "sum" : 260.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 260.00, "total" : 260.00, "payments": [ { "type": 0, "sum" : 260.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:34:59]POST & json_proto [09:34:59]process_json_proto [09:34:59]json parsed OK: [09:34:59]protocol is kg_v1.0 [09:34:59]action value=close_receipt [09:34:59]process_action close_receipt [09:34:59]cmd_close_receipt [09:34:59]MH_GetDate [09:34:59]Write to MH i2c: F0 00 00 A7 16 AC [09:34:59]Write i2c OK [09:34:59]MH_I2C_Read... [09:34:59]Read from MH i2c: F0 [09:34:59]MH_I2C_Read... [09:34:59]Read from MH i2c: F0 09 00 [09:34:59]MH_I2C_Read... [09:34:59]Read from MH i2c: F0 09 00 A7 16 00 46 44 E4 65 6C AF E3 65 EB [09:34:59]GetLastDocTimeStamp 1709458400 [09:34:59]current date 1709458502 [09:34:59]FM_GetShiftState [09:34:59]SAM_PROTO_GetShiftState [09:34:59]wFMCommunicate request_size=4 [09:34:59]MH_SAM_APDU [09:34:59]CAPDU: 80 13 01 00 [09:34:59]Write to MH i2c: E2 08 00 A8 16 80 13 01 00 00 00 00 00 3B [09:34:59]Write i2c OK [09:34:59]MH_I2C_Read... [09:34:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:34:59]Read from MH i2c: E2 [09:34:59]MH_I2C_Read... [09:34:59]Read from MH i2c: E2 0E 00 [09:34:59]MH_I2C_Read... [09:34:59]Read from MH i2c: E2 0E 00 A8 16 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 FD [09:34:59]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [09:34:59]wFMCommunicate OK [09:34:59]SAM_PROTO_GetShiftState done [09:34:59]FM_GetShiftState done [09:34:59]opened in 1709425579 [09:34:59]opened+sec_in_day 1709511979 [09:34:59]quantity*price = 26059 [09:34:59]sum+1 = 26061 [09:34:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 260.00 Внесено: 260.00 СДАЧА: 0.00 НСП 1% : 2.31 НДС 12% : 27.67 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 49 03.03.2024 09:35 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123192 ФПД: 101680544774274 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T093502&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123192&fm=101680544774274&tin=02508201610067®Number=0000000000090573&sum=26000 [09:35:00]StoreToDocumentArchive [09:35:00]shift 323 fd 123192 [09:35:00]save to /storage/0323/doc_00123192 [09:35:01]save last doc name /storage/0323/doc_00123192 to /storage/kkm_last_doc_name [09:35:01]save OK [09:35:01]Clear old archive folders... [09:35:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:35:01]tlvbuf is 00DC0F60 [09:35:01]SAM_PROTO_ClearQueue [09:35:01]wFMCommunicate request_size=4 [09:35:01]MH_SAM_APDU [09:35:01]CAPDU: 80 09 00 00 [09:35:01]Write to MH i2c: E2 08 00 B5 16 80 09 00 00 00 00 00 00 3D [09:35:01]Write i2c OK [09:35:01]MH_I2C_Read... [09:35:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:35:01]OFD Sender: No OFD packet to send [09:35:01]Read from MH i2c: E2 [09:35:01]MH_I2C_Read... [09:35:01]Read from MH i2c: E2 03 00 [09:35:01]MH_I2C_Read... [09:35:01]Read from MH i2c: E2 03 00 B5 16 00 90 00 3F [09:35:01]RAPDU: 90 00 [09:35:01]wFMCommunicate OK [09:35:01]SAM_PROTO_ClearQueue done [09:35:01]KKMCreateOFDPacket [09:35:01]OFDProtocolAddRootSTLVToBuf [09:35:01]FM_MakeSignedData [09:35:01]FM_MakeSignedData [09:35:01]SAM_PROTO_SignData [09:35:01]wFMCommunicate request_size=4 [09:35:01]MH_SAM_APDU [09:35:01]CAPDU: 80 0D 01 02 [09:35:01]Write to MH i2c: E2 08 00 B6 16 80 0D 01 02 00 00 00 00 45 [09:35:01]Write i2c OK [09:35:01]MH_I2C_Read... [09:35:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:35:01]Read from MH i2c: E2 [09:35:01]MH_I2C_Read... [09:35:01]Read from MH i2c: E2 03 00 [09:35:01]MH_I2C_Read... [09:35:01]Read from MH i2c: E2 03 00 B6 16 00 90 00 40 [09:35:01]RAPDU: 90 00 [09:35:01]wFMCommunicate OK [09:35:01]wFMCommunicate request_size=255 [09:35:01]MH_SAM_APDU [09:35: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 35 FF 03 08 00 03 72 10 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 CC 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 E7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 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 31 00 00 00 F4 03 04 00 46 44 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 38 E1 01 00 35 04 06 00 5C [09:35:01]Write to MH i2c: E2 02 01 B7 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 35 FF 03 08 00 03 72 10 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 CC 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 E7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 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 31 00 00 00 F4 03 04 00 46 44 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 38 E1 01 00 35 04 06 00 5C 00 00 BA [09:35:01]Write i2c OK [09:35:01]MH_I2C_Read... [09:35:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:35:01]Read from MH i2c: E2 [09:35:01]MH_I2C_Read... [09:35:01]Read from MH i2c: E2 03 00 [09:35:01]MH_I2C_Read... [09:35:01]Read from MH i2c: E2 03 00 B7 16 00 90 00 41 [09:35:01]RAPDU: 90 00 [09:35:01]wFMCommunicate OK [09:35:01]wFMCommunicate request_size=10 [09:35:01]MH_SAM_APDU [09:35:01]CAPDU: 80 0D 02 02 05 7A 58 C0 78 82 [09:35:01]Write to MH i2c: E2 0D 00 B8 16 80 0D 02 02 05 00 7A 58 C0 78 82 00 00 DE [09:35:01]Write i2c OK [09:35:01]MH_I2C_Read... [09:35:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:35:01]Read from MH i2c: E2 [09:35:01]MH_I2C_Read... [09:35:01]Read from MH i2c: E2 03 00 [09:35:01]MH_I2C_Read... [09:35:01]Read from MH i2c: E2 03 00 B8 16 00 90 00 42 [09:35:01]RAPDU: 90 00 [09:35:01]wFMCommunicate OK [09:35:01]wFMCommunicate request_size=4 [09:35:01]MH_SAM_APDU [09:35:01]CAPDU: 80 0D 03 02 [09:35:01]Write to MH i2c: E2 08 00 B9 16 80 0D 03 02 00 00 00 00 4A [09:35:01]Write i2c OK [09:35:01]MH_I2C_Read... [09:35:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:35:01]Read from MH i2c: E2 [09:35:01]MH_I2C_Read... [09:35:01]Read from MH i2c: E2 0B 00 [09:35:01]MH_I2C_Read... [09:35:01]Read from MH i2c: E2 0B 00 B9 16 00 C8 AA 05 3A 3F 7B F7 20 90 00 CD [09:35:01]RAPDU: C8 AA 05 3A 3F 7B F7 20 90 00 [09:35:01]wFMCommunicate OK [09:35:01]SAM_PROTO_SignData done [09:35:01]FM_MakeSignedData done [09:35:01]CreateOFDProtocolMessage [09:35:01]wFMCommunicate request_size=4 [09:35:01]MH_SAM_APDU [09:35:01]CAPDU: 80 11 00 00 [09:35:01]Write to MH i2c: E2 08 00 BA 16 80 11 00 00 00 00 00 00 4A [09:35:01]Write i2c OK [09:35:01]MH_I2C_Read... [09:35:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:01]Read from MH i2c: E2 [09:35:01]MH_I2C_Read... [09:35:01]Read from MH i2c: E2 17 00 [09:35:01]MH_I2C_Read... [09:35:01]Read from MH i2c: E2 17 00 BA 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 A8 [09:35:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [09:35:01]wFMCommunicate OK [09:35:01]CreateOFDProtocolMessage done [09:35:01]OFDSenderStorePacket 123192 [09:35:01]StoreOFDPacket docnum=123192 [09:35:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 FD 39 07 01 73 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 10 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 CC 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 E7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 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 31 00 00 00 F4 03 04 00 46 44 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 38 E1 01 00 35 04 06 00 5C 7A 58 C0 78 82 C8 AA 05 3A 3F 7B F7 20 [09:35:01]CheckFolder [09:35:01]dirname=/storage/ofd_packets [09:35:01]CheckFolder done [09:35:01]ProducePacketName [09:35:01]name=ofd_packets/00123192 [09:35:01]NVStorageSaveData ofd_packets/00123192 [09:35:01]File name is /storage/ofd_packets/00123192 [09:35:01]Write 301 bytes [09:35:01]NVStorageSaveData done [09:35:01]OFDSenderStorePacket done [09:35:01]KKMCreateOFDPacket done [09:35:01]NVStorageSaveData kkm_last_timestamp [09:35:01]File name is /storage/kkm_last_timestamp [09:35:01]Write 4 bytes [09:35:01]NVStorageSaveData done [09:35:01]ExternCall_PrintAddStr [09:35:01]wPrintStart [09:35:01]Write to MH i2c: 01 00 00 BB 16 D1 [09:35:01]Write i2c OK [09:35:01]MH_I2C_Read... [09:35:01]Read from MH i2c: 01 [09:35:01]MH_I2C_Read... [09:35:01]Read from MH i2c: 01 07 00 [09:35:01]MH_I2C_Read... [09:35:01]Read from MH i2c: 01 07 00 BB 16 00 00 00 00 00 FF 0F E6 [09:35:01]RasterBufferAndPrint [09:35:01]line Счет N : (1)1106112 [09:35:01]line ИНН: 02508201610067 [09:35:01]line Контрольно-Кассовый Чек [09:35:01]line ПРОДАЖА [09:35:01]line ТРК (МРК, ГНК) : 11 [09:35:01]line Товар: 2710124130 [09:35:01]line Аи-92-К-5 [09:35:01]line 4.210 * 61.90 [09:35:01]line = 260.60 [09:35:01]line НДС 12% НСП 1% [09:35:01]line > о реализуемом товаре [09:35:01]line ОКРУГЛЕНИЕ: -0.60 [09:35:01]line ИТОГО: 260.00 [09:35:01]line Внесено: 260.00 [09:35:01]line СДАЧА: 0.00 [09:35:01]line НСП 1% : 2.31 [09:35:01]line НДС 12% : 27.67 [09:35:01]line Наличными: 260.00 [09:35:01]line Безнал.: 0.00 [09:35:01]line Место: АЗС № 25 "Партнер Нефть" [09:35:01]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [09:35:01]line СНО: Общий режим [09:35:01]line Чек 49 03.03.2024 09:35 [09:35:01]line Смена: 323 ФФД: 1.0 [09:35:01]line ЗНМ: 0300000019 [09:35:01]line РНМ: 0000000000090573 [09:35:01]line Версия ККМ: 001 [09:35:01]line ФМ: 0000000000874798 [09:35:01]line ФД: 123192 [09:35:01]line ФПД: 101680544774274 [09:35:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T093502&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123192&fm=101680544774274&tin=02508201610067®Number=0000000000090573&sum=26000 [09:35:01]OFD Sender: Processing packet 123192 [packets to send 112, broken 111] [09:35:01]ProducePacketName [09:35:01]name=ofd_packets/00123192 [09:35:01]OFD Sender: To server: pG, [09:35:01]CommunicateWithHost lk.salyk.kg:30040 [09:35:01]ConnectInit lk.salyk.kg [09:35:01]written 0, free lines is 4095 [09:35:01]Connected sock=11 [09:35: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 37 39 38 0F 01 00 00 FD 39 07 01 73 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 10 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 CC 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 E7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 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 31 00 00 00 F4 03 04 00 46 44 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 38 E1 01 00 35 04 06 00 5C 7A 58 C0 78 82 C8 AA 05 3A 3F 7B F7 20 [09:35:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 3F F4 47 00 43 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 37 39 38 10 04 04 00 38 E1 01 00 F4 03 04 00 72 F0 E3 65 B6 04 01 00 00 5D 8B F6 4E 11 44 1B 2D [09:35:02]CommunicateWithHost err = 0 [09:35:02]CheckOFDResponse [09:35:02]1017 (14) - 77093643461234 [09:35:02]1041 (16) - 0000000000874798 [09:35:02]1040 (4) - 123192 [09:35:02]1012 (4) - 03.03.2024 03:37 [09:35:02]1206 (1) - 0 [09:35:02]OFD Sender: Remove packet 123192 [09:35:02]ProducePacketName [09:35:02]name=ofd_packets/00123192 [09:35:02]NVStorageDeleteData [09:35:02]Write to MH i2c: 01 00 00 E6 16 FC [09:35:02]Write i2c OK [09:35:02]MH_I2C_Read... [09:35:02]Read from MH i2c: 01 [09:35:02]MH_I2C_Read... [09:35:02]Read from MH i2c: 01 07 00 [09:35:02]MH_I2C_Read... [09:35:02]Read from MH i2c: 01 07 00 E6 16 00 00 00 00 00 F3 0C 02 [09:35:02]RasterBufferAndPrint [09:35:02]line [09:35:02]line [09:35:02]line [09:35:02]line [09:35:02]line [09:35:02]written 0, free lines is 3321 [09:35:02]MH_Cut [09:35:02]Write to MH i2c: D1 01 00 ED 16 01 D5 [09:35:02]Write i2c OK [09:35:02]MH_I2C_Read... [09:35:02]Read from MH i2c: D1 [09:35:02]MH_I2C_Read... [09:35:02]Read from MH i2c: D1 01 00 [09:35:02]MH_I2C_Read... [09:35:02]Read from MH i2c: D1 01 00 ED 16 00 D4 [09:35:02]Write to MH i2c: 01 00 00 EE 16 04 [09:35:02]Write i2c OK [09:35:02]MH_I2C_Read... [09:35:02]OFD Sender: No OFD packet to send [09:35:03]*** Cut start [09:35:03]*** Purtial cut [09:35:03]*** Stage 1: CUTSNS_PIN = 1 [09:35:05]Read from MH i2c: 01 [09:35:05]MH_I2C_Read... [09:35:05]*** Stop cut motor [09:35:05]*** Cut end [09:35:05]Read from MH i2c: 01 07 00 [09:35:05]MH_I2C_Read... [09:35:05]Read from MH i2c: 01 07 00 EE 16 00 00 00 00 00 FF 0F 19 [09:35:05]process_action close_receipt done [09:35:05]requested_data is exist [09:35:05]produce_requested_data [09:35:05]requested_item fm.sn is exist - process it [09:35:05]wFMCommunicate request_size=4 [09:35:05]MH_SAM_APDU [09:35:05]CAPDU: 80 11 00 00 [09:35:05]Write to MH i2c: E2 08 00 EF 16 80 11 00 00 00 00 00 00 7F [09:35:05]Write i2c OK [09:35:05]MH_I2C_Read... [09:35:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:05]Read from MH i2c: E2 [09:35:05]MH_I2C_Read... [09:35:05]Read from MH i2c: E2 17 00 [09:35:05]MH_I2C_Read... [09:35:05]Read from MH i2c: E2 17 00 EF 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 DD [09:35:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [09:35:05]wFMCommunicate OK [09:35:05]requested_item fd.num is exist - process it [09:35:05]SAM_PROTO_GetFieldsCounters [09:35:05]wFMCommunicate request_size=4 [09:35:05]MH_SAM_APDU [09:35:05]CAPDU: 80 13 00 00 [09:35:05]Write to MH i2c: E2 08 00 F0 16 80 13 00 00 00 00 00 00 82 [09:35:05]Write i2c OK [09:35:05]MH_I2C_Read... [09:35:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:35:05]Read from MH i2c: E2 [09:35:05]MH_I2C_Read... [09:35:05]Read from MH i2c: E2 62 00 [09:35:05]MH_I2C_Read... [09:35:05]Read from MH i2c: E2 62 00 F0 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 38 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 9E [09:35:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 38 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:35:05]wFMCommunicate OK [09:35:05]SAM_PROTO_GetFieldsCounters done [09:35:05]requested_item shift.num is exist - process it [09:35:05]requested_item shift.opened is exist - process it [09:35:05]req_shift_opened [09:35:05]FM_GetShiftState [09:35:05]SAM_PROTO_GetShiftState [09:35:05]wFMCommunicate request_size=4 [09:35:05]MH_SAM_APDU [09:35:05]CAPDU: 80 13 01 00 [09:35:05]Write to MH i2c: E2 08 00 F1 16 80 13 01 00 00 00 00 00 84 [09:35:05]Write i2c OK [09:35:05]MH_I2C_Read... [09:35:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:05]Read from MH i2c: E2 [09:35:05]MH_I2C_Read... [09:35:05]Read from MH i2c: E2 0E 00 [09:35:05]MH_I2C_Read... [09:35:05]Read from MH i2c: E2 0E 00 F1 16 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 46 [09:35:05]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [09:35:05]wFMCommunicate OK [09:35:05]SAM_PROTO_GetShiftState done [09:35:05]FM_GetShiftState done [09:35:05]req_shift_opened done [09:35:05]requested_item shift.open_date is exist - process it [09:35:05]req_shift_open_date [09:35:05]req_shift_open_date done [09:35:05]produce_requested_data done [09:35:05]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123192,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [09:35:05]process_action_free close_receipt [09:35:05]json_value_free [09:35:05]json_value_free done [09:35:05]process_json_proto returns [09:35:05]Send response to host [09:35:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123192,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [09:35:05]free response buf [09:35:05]execute_script done [09:35:05]execute_script returns [09:35:05]free content buf [09:35:05]Sock 9.Close socket [09:35:05]Sock 9.Thread stoped [09:35:07]OFD Sender: No OFD packet to send [09:35:12]OFD Sender: No OFD packet to send [09:35:17]OFD Sender: No OFD packet to send [09:35:22]OFD Sender: No OFD packet to send [09:35:27]OFD Sender: No OFD packet to send [09:35:32]OFD Sender: No OFD packet to send [09:35:36]accept exits with 7 [09:35:36]New connection [09:35:36]New thread 3067395428 created [09:35:36]Thread 3067252068 joined [09:35:36]Waiting for new connection... [09:35:36] Sock 7.Parse request [09:35:36]Sock 7.Check first char [09:35:36]Sock 7.First char is OK [09:35:36]request: POST /json_proto HTTP/1.0 [09:35:36]Method: POST [09:35:36]URL: /json_proto [09:35:36]Method is POST - this is cgi request [09:35:36]url: /json_proto [09:35:36]query_string will be loaded in cgi processing [09:35:36]execute_cgi json_proto POST (null) [09:35:36]execute_cgi path=json_proto method=POST [09:35:36]POST find Content-Length [09:35:36]Host: 172.17.48.197:8080 [09:35:36]Content-Length: 817 [09:35:36]Content-Type: application/json [09:35:36] [09:35:36]POST finish read [09:35:36]Found Content-Length = 817 [09:35:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106111", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:35:36]execute_script... [09:35: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)1106111", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:35:36]POST & json_proto [09:35:36]process_json_proto [09:35:36]json parsed OK: [09:35:36]protocol is kg_v1.0 [09:35:36]action value=close_receipt [09:35:36]process_action close_receipt [09:35:36]cmd_close_receipt [09:35:36]MH_GetDate [09:35:36]Write to MH i2c: F0 00 00 F2 16 F7 [09:35:36]Write i2c OK [09:35:36]MH_I2C_Read... [09:35:36]Read from MH i2c: F0 [09:35:36]MH_I2C_Read... [09:35:36]Read from MH i2c: F0 09 00 [09:35:36]MH_I2C_Read... [09:35:36]Read from MH i2c: F0 09 00 F2 16 00 6B 44 E4 65 6C AF E3 65 5B [09:35:36]GetLastDocTimeStamp 1709458502 [09:35:36]current date 1709458539 [09:35:36]FM_GetShiftState [09:35:36]SAM_PROTO_GetShiftState [09:35:36]wFMCommunicate request_size=4 [09:35:36]MH_SAM_APDU [09:35:36]CAPDU: 80 13 01 00 [09:35:36]Write to MH i2c: E2 08 00 F3 16 80 13 01 00 00 00 00 00 86 [09:35:36]Write i2c OK [09:35:36]MH_I2C_Read... [09:35:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:36]Read from MH i2c: E2 [09:35:36]MH_I2C_Read... [09:35:36]Read from MH i2c: E2 0E 00 [09:35:36]MH_I2C_Read... [09:35:36]Read from MH i2c: E2 0E 00 F3 16 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 48 [09:35:36]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [09:35:36]wFMCommunicate OK [09:35:36]SAM_PROTO_GetShiftState done [09:35:36]FM_GetShiftState done [09:35:36]opened in 1709425579 [09:35:36]opened+sec_in_day 1709511979 [09:35:36]quantity*price = 50015 [09:35:36]sum+1 = 50016 [09:35:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.15 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.15 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 50 03.03.2024 09:35 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874798 ФД: 123193 ФПД: 159210261175633 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T093539&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123193&fm=159210261175633&tin=02508201610067®Number=0000000000090573&sum=50015 [09:35:37]StoreToDocumentArchive [09:35:37]shift 323 fd 123193 [09:35:37]save to /storage/0323/doc_00123193 [09:35:37]save last doc name /storage/0323/doc_00123193 to /storage/kkm_last_doc_name [09:35:37]save OK [09:35:37]Clear old archive folders... [09:35:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:35:37]tlvbuf is 00DC0880 [09:35:37]SAM_PROTO_ClearQueue [09:35:37]wFMCommunicate request_size=4 [09:35:37]MH_SAM_APDU [09:35:37]CAPDU: 80 09 00 00 [09:35:37]Write to MH i2c: E2 08 00 00 17 80 09 00 00 00 00 00 00 89 [09:35:37]Write i2c OK [09:35:37]MH_I2C_Read... [09:35:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:35:37]Read from MH i2c: E2 [09:35:37]MH_I2C_Read... [09:35:37]Read from MH i2c: E2 03 00 [09:35:37]MH_I2C_Read... [09:35:37]Read from MH i2c: E2 03 00 00 17 00 90 00 8B [09:35:37]RAPDU: 90 00 [09:35:37]wFMCommunicate OK [09:35:37]SAM_PROTO_ClearQueue done [09:35:37]KKMCreateOFDPacket [09:35:37]OFDProtocolAddRootSTLVToBuf [09:35:37]FM_MakeSignedData [09:35:37]FM_MakeSignedData [09:35:37]SAM_PROTO_SignData [09:35:37]wFMCommunicate request_size=4 [09:35:37]MH_SAM_APDU [09:35:37]CAPDU: 80 0D 01 02 [09:35:37]Write to MH i2c: E2 08 00 01 17 80 0D 01 02 00 00 00 00 91 [09:35:37]Write i2c OK [09:35:37]MH_I2C_Read... [09:35:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:35:37]Read from MH i2c: E2 [09:35:37]MH_I2C_Read... [09:35:37]Read from MH i2c: E2 03 00 [09:35:37]MH_I2C_Read... [09:35:37]Read from MH i2c: E2 03 00 01 17 00 90 00 8C [09:35:37]RAPDU: 90 00 [09:35:37]wFMCommunicate OK [09:35:37]wFMCommunicate request_size=255 [09:35:37]MH_SAM_APDU [09:35: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 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 6B 44 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 39 E1 01 00 35 04 06 00 90 [09:35:37]Write to MH i2c: E2 02 01 02 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 6B 44 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 39 E1 01 00 35 04 06 00 90 00 00 A8 [09:35:37]Write i2c OK [09:35:37]MH_I2C_Read... [09:35:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:35:38]Read from MH i2c: E2 [09:35:38]MH_I2C_Read... [09:35:38]Read from MH i2c: E2 03 00 [09:35:38]MH_I2C_Read... [09:35:38]Read from MH i2c: E2 03 00 02 17 00 90 00 8D [09:35:38]RAPDU: 90 00 [09:35:38]wFMCommunicate OK [09:35:38]wFMCommunicate request_size=10 [09:35:38]MH_SAM_APDU [09:35:38]CAPDU: 80 0D 02 02 05 CD 07 0F DD 51 [09:35:38]Write to MH i2c: E2 0D 00 03 17 80 0D 02 02 05 00 CD 07 0F DD 51 00 00 AF [09:35:38]Write i2c OK [09:35:38]MH_I2C_Read... [09:35:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:35:38]Read from MH i2c: E2 [09:35:38]MH_I2C_Read... [09:35:38]Read from MH i2c: E2 03 00 [09:35:38]MH_I2C_Read... [09:35:38]Read from MH i2c: E2 03 00 03 17 00 90 00 8E [09:35:38]RAPDU: 90 00 [09:35:38]wFMCommunicate OK [09:35:38]wFMCommunicate request_size=4 [09:35:38]MH_SAM_APDU [09:35:38]CAPDU: 80 0D 03 02 [09:35:38]Write to MH i2c: E2 08 00 04 17 80 0D 03 02 00 00 00 00 96 [09:35:38]Write i2c OK [09:35:38]MH_I2C_Read... [09:35:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:35:38]Read from MH i2c: E2 [09:35:38]MH_I2C_Read... [09:35:38]Read from MH i2c: E2 0B 00 [09:35:38]MH_I2C_Read... [09:35:38]Read from MH i2c: E2 0B 00 04 17 00 CE 39 73 31 04 2F 61 D9 90 00 AF [09:35:38]RAPDU: CE 39 73 31 04 2F 61 D9 90 00 [09:35:38]wFMCommunicate OK [09:35:38]SAM_PROTO_SignData done [09:35:38]FM_MakeSignedData done [09:35:38]CreateOFDProtocolMessage [09:35:38]wFMCommunicate request_size=4 [09:35:38]MH_SAM_APDU [09:35:38]CAPDU: 80 11 00 00 [09:35:38]Write to MH i2c: E2 08 00 05 17 80 11 00 00 00 00 00 00 96 [09:35:38]Write i2c OK [09:35:38]MH_I2C_Read... [09:35:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:38]Read from MH i2c: E2 [09:35:38]MH_I2C_Read... [09:35:38]Read from MH i2c: E2 17 00 [09:35:38]MH_I2C_Read... [09:35:38]Read from MH i2c: E2 17 00 05 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 F4 [09:35:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [09:35:38]wFMCommunicate OK [09:35:38]CreateOFDProtocolMessage done [09:35:38]OFDSenderStorePacket 123193 [09:35:38]StoreOFDPacket docnum=123193 [09:35:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 31 84 07 01 2F B5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 6B 44 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 39 E1 01 00 35 04 06 00 90 CD 07 0F DD 51 CE 39 73 31 04 2F 61 D9 [09:35:38]CheckFolder [09:35:38]dirname=/storage/ofd_packets [09:35:38]CheckFolder done [09:35:38]ProducePacketName [09:35:38]name=ofd_packets/00123193 [09:35:38]NVStorageSaveData ofd_packets/00123193 [09:35:38]File name is /storage/ofd_packets/00123193 [09:35:38]Write 301 bytes [09:35:38]NVStorageSaveData done [09:35:38]OFDSenderStorePacket done [09:35:38]KKMCreateOFDPacket done [09:35:38]NVStorageSaveData kkm_last_timestamp [09:35:38]File name is /storage/kkm_last_timestamp [09:35:38]Write 4 bytes [09:35:38]NVStorageSaveData done [09:35:38]ExternCall_PrintAddStr [09:35:38]wPrintStart [09:35:38]Write to MH i2c: 01 00 00 06 17 1D [09:35:38]Write i2c OK [09:35:38]MH_I2C_Read... [09:35:38]Read from MH i2c: 01 [09:35:38]MH_I2C_Read... [09:35:38]Read from MH i2c: 01 07 00 [09:35:38]MH_I2C_Read... [09:35:38]Read from MH i2c: 01 07 00 06 17 00 00 00 00 00 FF 0F 32 [09:35:38]RasterBufferAndPrint [09:35:38]line Счет N : (1)1106111 [09:35:38]line ИНН: 02508201610067 [09:35:38]line Контрольно-Кассовый Чек [09:35:38]line ПРОДАЖА [09:35:38]line ТРК (МРК, ГНК) : 62 [09:35:38]line Товар: 2710124130 [09:35:38]line Аи-92-К-5 [09:35:38]line 8.080 * 61.90 [09:35:38]line = 500.15 [09:35:38]line НДС 12% НСП 1% [09:35:38]line > о реализуемом товаре [09:35:38]line ИТОГО: 500.15 [09:35:38]line НСП 1% : 4.43 [09:35:38]line НДС 12% : 53.11 [09:35:38]line Наличными: 0.00 [09:35:38]line Безнал.: 500.15 [09:35:38]line Место: АЗС № 25 "Партнер Нефть" [09:35:38]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [09:35:38]line СНО: Общий режим [09:35:38]line Чек 50 03.03.2024 09:35 [09:35:38]line Смена: 323 ФФД: 1.0 [09:35:38]line ЗНМ: 0300000019 [09:35:38]line РНМ: 0000000000090573 [09:35:38]line Версия ККМ: 001 [09:35:38]line Платежная система: Бакай Банк [09:35:38]line ФМ: 0000000000874798 [09:35:38]line ФД: 123193 [09:35:38]line ФПД: 159210261175633 [09:35:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T093539&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123193&fm=159210261175633&tin=02508201610067®Number=0000000000090573&sum=50015 [09:35:38]OFD Sender: Processing packet 123193 [packets to send 112, broken 111] [09:35:38]ProducePacketName [09:35:38]name=ofd_packets/00123193 [09:35:38]OFD Sender: To server: pG, [09:35:38]CommunicateWithHost lk.salyk.kg:30040 [09:35:38]ConnectInit lk.salyk.kg [09:35:38]written 0, free lines is 4095 [09:35:38]Connected sock=11 [09:35: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 37 39 38 0F 01 00 00 31 84 07 01 2F B5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 6B 44 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 39 E1 01 00 35 04 06 00 90 CD 07 0F DD 51 CE 39 73 31 04 2F 61 D9 [09:35:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 0E 6A 47 00 C6 CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 39 E1 01 00 F4 03 04 00 97 F0 E3 65 B6 04 01 00 00 94 23 D2 8C 66 80 DB E7 [09:35:38]CommunicateWithHost err = 0 [09:35:38]CheckOFDResponse [09:35:38]1017 (14) - 77093643461234 [09:35:38]1041 (16) - 0000000000874798 [09:35:38]1040 (4) - 123193 [09:35:38]1012 (4) - 03.03.2024 03:37 [09:35:38]1206 (1) - 0 [09:35:38]OFD Sender: Remove packet 123193 [09:35:38]ProducePacketName [09:35:38]name=ofd_packets/00123193 [09:35:38]NVStorageDeleteData [09:35:39]Write to MH i2c: 01 00 00 30 17 47 [09:35:39]Write i2c OK [09:35:39]MH_I2C_Read... [09:35:39]Read from MH i2c: 01 [09:35:39]MH_I2C_Read... [09:35:39]Read from MH i2c: 01 07 00 [09:35:39]MH_I2C_Read... [09:35:39]Read from MH i2c: 01 07 00 30 17 00 00 00 00 00 01 0D 5C [09:35:39]RasterBufferAndPrint [09:35:39]line [09:35:39]line [09:35:39]line [09:35:39]line [09:35:39]line [09:35:39]written 0, free lines is 3335 [09:35:39]MH_Cut [09:35:39]Write to MH i2c: D1 01 00 37 17 01 20 [09:35:39]Write i2c OK [09:35:39]MH_I2C_Read... [09:35:39]Read from MH i2c: D1 [09:35:39]MH_I2C_Read... [09:35:39]Read from MH i2c: D1 01 00 [09:35:39]MH_I2C_Read... [09:35:39]Read from MH i2c: D1 01 00 37 17 00 1F [09:35:39]Write to MH i2c: 01 00 00 38 17 4F [09:35:39]Write i2c OK [09:35:39]MH_I2C_Read... [09:35:39]OFD Sender: No OFD packet to send [09:35:39]*** Cut start [09:35:39]*** Purtial cut [09:35:39]*** Stage 1: CUTSNS_PIN = 1 [09:35:41]Read from MH i2c: 01 [09:35:41]MH_I2C_Read... [09:35:41]*** Stop cut motor [09:35:41]*** Cut end [09:35:41]Read from MH i2c: 01 07 00 [09:35:41]MH_I2C_Read... [09:35:41]Read from MH i2c: 01 07 00 38 17 00 00 00 00 00 FF 0F 64 [09:35:41]process_action close_receipt done [09:35:41]requested_data is exist [09:35:41]produce_requested_data [09:35:41]requested_item fm.sn is exist - process it [09:35:41]wFMCommunicate request_size=4 [09:35:41]MH_SAM_APDU [09:35:41]CAPDU: 80 11 00 00 [09:35:41]Write to MH i2c: E2 08 00 39 17 80 11 00 00 00 00 00 00 CA [09:35:41]Write i2c OK [09:35:41]MH_I2C_Read... [09:35:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:41]Read from MH i2c: E2 [09:35:41]MH_I2C_Read... [09:35:41]Read from MH i2c: E2 17 00 [09:35:41]MH_I2C_Read... [09:35:41]Read from MH i2c: E2 17 00 39 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 28 [09:35:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [09:35:41]wFMCommunicate OK [09:35:41]requested_item fd.num is exist - process it [09:35:41]SAM_PROTO_GetFieldsCounters [09:35:41]wFMCommunicate request_size=4 [09:35:41]MH_SAM_APDU [09:35:41]CAPDU: 80 13 00 00 [09:35:41]Write to MH i2c: E2 08 00 3A 17 80 13 00 00 00 00 00 00 CD [09:35:41]Write i2c OK [09:35:41]MH_I2C_Read... [09:35:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:35:41]Read from MH i2c: E2 [09:35:41]MH_I2C_Read... [09:35:41]Read from MH i2c: E2 62 00 [09:35:41]MH_I2C_Read... [09:35:41]Read from MH i2c: E2 62 00 3A 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 39 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 ED [09:35: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 39 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:35:41]wFMCommunicate OK [09:35:41]SAM_PROTO_GetFieldsCounters done [09:35:41]requested_item shift.num is exist - process it [09:35:41]requested_item shift.opened is exist - process it [09:35:41]req_shift_opened [09:35:41]FM_GetShiftState [09:35:41]SAM_PROTO_GetShiftState [09:35:41]wFMCommunicate request_size=4 [09:35:41]MH_SAM_APDU [09:35:41]CAPDU: 80 13 01 00 [09:35:41]Write to MH i2c: E2 08 00 3B 17 80 13 01 00 00 00 00 00 CF [09:35:41]Write i2c OK [09:35:41]MH_I2C_Read... [09:35:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:42]Read from MH i2c: E2 [09:35:42]MH_I2C_Read... [09:35:42]Read from MH i2c: E2 0E 00 [09:35:42]MH_I2C_Read... [09:35:42]Read from MH i2c: E2 0E 00 3B 17 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 91 [09:35:42]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [09:35:42]wFMCommunicate OK [09:35:42]SAM_PROTO_GetShiftState done [09:35:42]FM_GetShiftState done [09:35:42]req_shift_opened done [09:35:42]requested_item shift.open_date is exist - process it [09:35:42]req_shift_open_date [09:35:42]req_shift_open_date done [09:35:42]produce_requested_data done [09:35:42]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123193,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [09:35:42]process_action_free close_receipt [09:35:42]json_value_free [09:35:42]json_value_free done [09:35:42]process_json_proto returns [09:35:42]Send response to host [09:35:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123193,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [09:35:42]free response buf [09:35:42]execute_script done [09:35:42]execute_script returns [09:35:42]free content buf [09:35:42]Sock 7.Close socket [09:35:42]Sock 7.Thread stoped [09:35:44]OFD Sender: No OFD packet to send [09:35:49]OFD Sender: No OFD packet to send [09:35:54]OFD Sender: No OFD packet to send [09:35:59]OFD Sender: No OFD packet to send [09:36:04]OFD Sender: No OFD packet to send [09:36:09]OFD Sender: No OFD packet to send [09:36:14]OFD Sender: No OFD packet to send [09:36:19]OFD Sender: No OFD packet to send [09:36:24]OFD Sender: No OFD packet to send [09:36:29]OFD Sender: No OFD packet to send [09:36:34]OFD Sender: No OFD packet to send [09:36:38]accept exits with 9 [09:36:38]New connection [09:36:38]New thread 3067252068 created [09:36:38]Thread 3067395428 joined [09:36:38]Waiting for new connection... [09:36:38] Sock 9.Parse request [09:36:38]Sock 9.Check first char [09:36:38]Sock 9.First char is OK [09:36:38]request: POST /json_proto HTTP/1.0 [09:36:38]Method: POST [09:36:38]URL: /json_proto [09:36:38]Method is POST - this is cgi request [09:36:38]url: /json_proto [09:36:38]query_string will be loaded in cgi processing [09:36:38]execute_cgi json_proto POST (null) [09:36:38]execute_cgi path=json_proto method=POST [09:36:38]POST find Content-Length [09:36:38]Host: 172.17.48.197:8080 [09:36:38]Content-Length: 683 [09:36:38]Content-Type: application/json [09:36:38] [09:36:38]POST finish read [09:36:38]Found Content-Length = 683 [09:36:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106114", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 19.390, "sum" : 1200.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:36:38]execute_script... [09: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 : (1)1106114", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 19.390, "sum" : 1200.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:36:38]POST & json_proto [09:36:38]process_json_proto [09:36:38]json parsed OK: [09:36:38]protocol is kg_v1.0 [09:36:38]action value=close_receipt [09:36:38]process_action close_receipt [09:36:38]cmd_close_receipt [09:36:38]MH_GetDate [09:36:38]Write to MH i2c: F0 00 00 3C 17 42 [09:36:38]Write i2c OK [09:36:38]MH_I2C_Read... [09:36:38]Read from MH i2c: F0 [09:36:38]MH_I2C_Read... [09:36:38]Read from MH i2c: F0 09 00 [09:36:38]MH_I2C_Read... [09:36:38]Read from MH i2c: F0 09 00 3C 17 00 A8 44 E4 65 6C AF E3 65 E3 [09:36:38]GetLastDocTimeStamp 1709458539 [09:36:38]current date 1709458600 [09:36:38]FM_GetShiftState [09:36:38]SAM_PROTO_GetShiftState [09:36:38]wFMCommunicate request_size=4 [09:36:38]MH_SAM_APDU [09:36:38]CAPDU: 80 13 01 00 [09:36:38]Write to MH i2c: E2 08 00 3D 17 80 13 01 00 00 00 00 00 D1 [09:36:38]Write i2c OK [09:36:38]MH_I2C_Read... [09:36:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:36:38]Read from MH i2c: E2 [09:36:38]MH_I2C_Read... [09:36:38]Read from MH i2c: E2 0E 00 [09:36:38]MH_I2C_Read... [09:36:38]Read from MH i2c: E2 0E 00 3D 17 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 93 [09:36:38]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [09:36:38]wFMCommunicate OK [09:36:38]SAM_PROTO_GetShiftState done [09:36:38]FM_GetShiftState done [09:36:38]opened in 1709425579 [09:36:38]opened+sec_in_day 1709511979 [09:36:38]quantity*price = 120024 [09:36:38]sum+1 = 120025 [09:36:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.46 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 51 03.03.2024 09:36 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123194 ФПД: 114930034555886 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T093640&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123194&fm=114930034555886&tin=02508201610067®Number=0000000000090573&sum=120000 [09:36:39]StoreToDocumentArchive [09:36:39]shift 323 fd 123194 [09:36:39]save to /storage/0323/doc_00123194 [09:36:39]save last doc name /storage/0323/doc_00123194 to /storage/kkm_last_doc_name [09:36:39]save OK [09:36:39]Clear old archive folders... [09:36:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:36:39]tlvbuf is 00E359D0 [09:36:39]SAM_PROTO_ClearQueue [09:36:39]wFMCommunicate request_size=4 [09:36:39]MH_SAM_APDU [09:36:39]CAPDU: 80 09 00 00 [09:36:39]Write to MH i2c: E2 08 00 4A 17 80 09 00 00 00 00 00 00 D3 [09:36:39]Write i2c OK [09:36:39]MH_I2C_Read... [09:36:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:36:39]Read from MH i2c: E2 [09:36:39]MH_I2C_Read... [09:36:39]Read from MH i2c: E2 03 00 [09:36:39]MH_I2C_Read... [09:36:39]Read from MH i2c: E2 03 00 4A 17 00 90 00 D5 [09:36:39]RAPDU: 90 00 [09:36:39]wFMCommunicate OK [09:36:39]SAM_PROTO_ClearQueue done [09:36:39]KKMCreateOFDPacket [09:36:39]OFDProtocolAddRootSTLVToBuf [09:36:39]FM_MakeSignedData [09:36:39]FM_MakeSignedData [09:36:39]SAM_PROTO_SignData [09:36:39]wFMCommunicate request_size=4 [09:36:39]MH_SAM_APDU [09:36:39]CAPDU: 80 0D 01 02 [09:36:39]Write to MH i2c: E2 08 00 4B 17 80 0D 01 02 00 00 00 00 DB [09:36:39]Write i2c OK [09:36:39]MH_I2C_Read... [09:36:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:36:39]Read from MH i2c: E2 [09:36:39]MH_I2C_Read... [09:36:39]Read from MH i2c: E2 03 00 [09:36:39]MH_I2C_Read... [09:36:39]Read from MH i2c: E2 03 00 4B 17 00 90 00 D6 [09:36:39]RAPDU: 90 00 [09:36:39]wFMCommunicate OK [09:36:39]wFMCommunicate request_size=255 [09:36:39]MH_SAM_APDU [09:36: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 35 FF 03 08 00 03 BE 4B 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 D8 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CA 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 A8 44 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 3A E1 01 00 35 04 06 00 68 [09:36:39]Write to MH i2c: E2 02 01 4C 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BE 4B 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 D8 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CA 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 A8 44 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 3A E1 01 00 35 04 06 00 68 00 00 6A [09:36:39]Write i2c OK [09:36:39]MH_I2C_Read... [09:36:39]OFD Sender: No OFD packet to send [09:36:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:36:39]Read from MH i2c: E2 [09:36:39]MH_I2C_Read... [09:36:39]Read from MH i2c: E2 03 00 [09:36:39]MH_I2C_Read... [09:36:39]Read from MH i2c: E2 03 00 4C 17 00 90 00 D7 [09:36:39]RAPDU: 90 00 [09:36:39]wFMCommunicate OK [09:36:39]wFMCommunicate request_size=10 [09:36:39]MH_SAM_APDU [09:36:39]CAPDU: 80 0D 02 02 05 87 3B E2 3B EE [09:36:39]Write to MH i2c: E2 0D 00 4D 17 80 0D 02 02 05 00 87 3B E2 3B EE 00 00 B5 [09:36:39]Write i2c OK [09:36:39]MH_I2C_Read... [09:36:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:36:39]Read from MH i2c: E2 [09:36:39]MH_I2C_Read... [09:36:39]Read from MH i2c: E2 03 00 [09:36:39]MH_I2C_Read... [09:36:39]Read from MH i2c: E2 03 00 4D 17 00 90 00 D8 [09:36:39]RAPDU: 90 00 [09:36:39]wFMCommunicate OK [09:36:39]wFMCommunicate request_size=4 [09:36:39]MH_SAM_APDU [09:36:39]CAPDU: 80 0D 03 02 [09:36:39]Write to MH i2c: E2 08 00 4E 17 80 0D 03 02 00 00 00 00 E0 [09:36:39]Write i2c OK [09:36:39]MH_I2C_Read... [09:36:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:36:39]Read from MH i2c: E2 [09:36:39]MH_I2C_Read... [09:36:39]Read from MH i2c: E2 0B 00 [09:36:39]MH_I2C_Read... [09:36:39]Read from MH i2c: E2 0B 00 4E 17 00 DE 6C A9 AF 87 05 06 38 90 00 4D [09:36:39]RAPDU: DE 6C A9 AF 87 05 06 38 90 00 [09:36:39]wFMCommunicate OK [09:36:39]SAM_PROTO_SignData done [09:36:39]FM_MakeSignedData done [09:36:39]CreateOFDProtocolMessage [09:36:39]wFMCommunicate request_size=4 [09:36:39]MH_SAM_APDU [09:36:39]CAPDU: 80 11 00 00 [09:36:39]Write to MH i2c: E2 08 00 4F 17 80 11 00 00 00 00 00 00 E0 [09:36:39]Write i2c OK [09:36:39]MH_I2C_Read... [09:36:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:36:39]Read from MH i2c: E2 [09:36:39]MH_I2C_Read... [09:36:39]Read from MH i2c: E2 17 00 [09:36:39]MH_I2C_Read... [09:36:39]Read from MH i2c: E2 17 00 4F 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 3E [09:36:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [09:36:39]wFMCommunicate OK [09:36:39]CreateOFDProtocolMessage done [09:36:39]OFDSenderStorePacket 123194 [09:36:39]StoreOFDPacket docnum=123194 [09:36:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 AE 18 07 01 CB 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 35 FF 03 08 00 03 BE 4B 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 D8 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CA 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 A8 44 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 3A E1 01 00 35 04 06 00 68 87 3B E2 3B EE DE 6C A9 AF 87 05 06 38 [09:36:39]CheckFolder [09:36:39]dirname=/storage/ofd_packets [09:36:39]CheckFolder done [09:36:39]ProducePacketName [09:36:39]name=ofd_packets/00123194 [09:36:39]NVStorageSaveData ofd_packets/00123194 [09:36:39]File name is /storage/ofd_packets/00123194 [09:36:39]Write 301 bytes [09:36:39]NVStorageSaveData done [09:36:39]OFDSenderStorePacket done [09:36:39]KKMCreateOFDPacket done [09:36:39]NVStorageSaveData kkm_last_timestamp [09:36:39]File name is /storage/kkm_last_timestamp [09:36:39]Write 4 bytes [09:36:39]NVStorageSaveData done [09:36:39]ExternCall_PrintAddStr [09:36:39]wPrintStart [09:36:39]Write to MH i2c: 01 00 00 50 17 67 [09:36:39]Write i2c OK [09:36:39]MH_I2C_Read... [09:36:39]Read from MH i2c: 01 [09:36:39]MH_I2C_Read... [09:36:39]Read from MH i2c: 01 07 00 [09:36:39]MH_I2C_Read... [09:36:39]OFD Sender: Processing packet 123194 [packets to send 112, broken 111] [09:36:39]ProducePacketName [09:36:39]name=ofd_packets/00123194 [09:36:39]OFD Sender: To server: pG, [09:36:39]CommunicateWithHost lk.salyk.kg:30040 [09:36:39]ConnectInit lk.salyk.kg [09:36:39]Read from MH i2c: 01 07 00 50 17 00 00 00 00 00 FF 0F 7C [09:36:39]RasterBufferAndPrint [09:36:39]line Счет N : (1)1106114 [09:36:39]line ИНН: 02508201610067 [09:36:39]line Контрольно-Кассовый Чек [09:36:39]line ПРОДАЖА [09:36:39]line ТРК (МРК, ГНК) : 11 [09:36:39]line Товар: 2710124130 [09:36:39]line Аи-92-К-5 [09:36:39]line 19.390 * 61.90 [09:36:39]line = 1200.24 [09:36:39]line НДС 12% НСП 1% [09:36:39]line > о реализуемом товаре [09:36:39]line ОКРУГЛЕНИЕ: -0.24 [09:36:39]line ИТОГО: 1200.00 [09:36:39]line Внесено: 1200.00 [09:36:39]line СДАЧА: 0.00 [09:36:39]line НСП 1% : 10.62 [09:36:39]line НДС 12% : 127.46 [09:36:39]line Наличными: 1200.00 [09:36:39]line Безнал.: 0.00 [09:36:39]line Место: АЗС № 25 "Партнер Нефть" [09:36:39]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [09:36:39]line СНО: Общий режим [09:36:39]line Чек 51 03.03.2024 09:36 [09:36:39]line Смена: 323 ФФД: 1.0 [09:36:39]line ЗНМ: 0300000019 [09:36:39]line РНМ: 0000000000090573 [09:36:39]line Версия ККМ: 001 [09:36:39]line ФМ: 0000000000874798 [09:36:39]line ФД: 123194 [09:36:39]line ФПД: 114930034555886 [09:36:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T093640&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123194&fm=114930034555886&tin=02508201610067®Number=0000000000090573&sum=120000 [09:36:40]Connected sock=10 [09: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 37 39 38 0F 01 00 00 AE 18 07 01 CB 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 35 FF 03 08 00 03 BE 4B 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 D8 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CA 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 A8 44 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 3A E1 01 00 35 04 06 00 68 87 3B E2 3B EE DE 6C A9 AF 87 05 06 38 [09:36:40]written 0, free lines is 4095 [09: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 37 39 38 4F 00 00 00 81 E0 47 00 4F 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 37 39 38 10 04 04 00 3A E1 01 00 F4 03 04 00 D4 F0 E3 65 B6 04 01 00 00 3D BD 6B CD FD 5B BA 7A [09:36:40]CommunicateWithHost err = 0 [09:36:40]CheckOFDResponse [09:36:40]1017 (14) - 77093643461234 [09:36:40]1041 (16) - 0000000000874798 [09:36:40]1040 (4) - 123194 [09:36:40]1012 (4) - 03.03.2024 03:39 [09:36:40]1206 (1) - 0 [09:36:40]OFD Sender: Remove packet 123194 [09:36:40]ProducePacketName [09:36:40]name=ofd_packets/00123194 [09:36:40]NVStorageDeleteData [09:36:40]Write to MH i2c: 01 00 00 7B 17 92 [09:36:40]Write i2c OK [09:36:40]MH_I2C_Read... [09:36:40]Read from MH i2c: 01 [09:36:40]MH_I2C_Read... [09:36:40]Read from MH i2c: 01 07 00 [09:36:40]MH_I2C_Read... [09:36:40]Read from MH i2c: 01 07 00 7B 17 00 00 00 00 00 F5 0C 9A [09:36:40]RasterBufferAndPrint [09:36:40]line [09:36:40]line [09:36:40]line [09:36:40]line [09:36:40]line [09:36:40]written 0, free lines is 3323 [09:36:40]MH_Cut [09:36:40]Write to MH i2c: D1 01 00 82 17 01 6B [09:36:40]Write i2c OK [09:36:40]MH_I2C_Read... [09:36:40]Read from MH i2c: D1 [09:36:40]MH_I2C_Read... [09:36:40]Read from MH i2c: D1 01 00 [09:36:40]MH_I2C_Read... [09:36:40]Read from MH i2c: D1 01 00 82 17 00 6A [09:36:40]Write to MH i2c: 01 00 00 83 17 9A [09:36:40]Write i2c OK [09:36:40]MH_I2C_Read... [09:36:40]OFD Sender: No OFD packet to send [09:36:41]*** Cut start [09:36:41]*** Purtial cut [09:36:41]*** Stage 1: CUTSNS_PIN = 1 [09:36:43]Read from MH i2c: 01 [09:36:43]MH_I2C_Read... [09:36:43]*** Stop cut motor [09:36:43]*** Cut end [09:36:43]Read from MH i2c: 01 07 00 [09:36:43]MH_I2C_Read... [09:36:43]Read from MH i2c: 01 07 00 83 17 00 00 00 00 00 FF 0F AF [09:36:43]process_action close_receipt done [09:36:43]requested_data is exist [09:36:43]produce_requested_data [09:36:43]requested_item fm.sn is exist - process it [09:36:43]wFMCommunicate request_size=4 [09:36:43]MH_SAM_APDU [09:36:43]CAPDU: 80 11 00 00 [09:36:43]Write to MH i2c: E2 08 00 84 17 80 11 00 00 00 00 00 00 15 [09:36:43]Write i2c OK [09:36:43]MH_I2C_Read... [09:36:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:36:43]Read from MH i2c: E2 [09:36:43]MH_I2C_Read... [09:36:43]Read from MH i2c: E2 17 00 [09:36:43]MH_I2C_Read... [09:36:43]Read from MH i2c: E2 17 00 84 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 73 [09:36:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [09:36:43]wFMCommunicate OK [09:36:43]requested_item fd.num is exist - process it [09:36:43]SAM_PROTO_GetFieldsCounters [09:36:43]wFMCommunicate request_size=4 [09:36:43]MH_SAM_APDU [09:36:43]CAPDU: 80 13 00 00 [09:36:43]Write to MH i2c: E2 08 00 85 17 80 13 00 00 00 00 00 00 18 [09:36:43]Write i2c OK [09:36:43]MH_I2C_Read... [09:36:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:36:43]Read from MH i2c: E2 [09:36:43]MH_I2C_Read... [09:36:43]Read from MH i2c: E2 62 00 [09:36:43]MH_I2C_Read... [09:36:43]Read from MH i2c: E2 62 00 85 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 3A E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 3C [09:36: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 3A E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:36:43]wFMCommunicate OK [09:36:43]SAM_PROTO_GetFieldsCounters done [09:36:43]requested_item shift.num is exist - process it [09:36:43]requested_item shift.opened is exist - process it [09:36:43]req_shift_opened [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 86 17 80 13 01 00 00 00 00 00 1A [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 86 17 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 DC [09:36:43]RAPDU: 09 00 01 AB C3 E3 65 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]req_shift_opened done [09:36:43]requested_item shift.open_date is exist - process it [09:36:43]req_shift_open_date [09:36:43]req_shift_open_date done [09:36:43]produce_requested_data done [09:36:43]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123194,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [09:36:43]process_action_free close_receipt [09:36:43]json_value_free [09:36:43]json_value_free done [09:36:43]process_json_proto returns [09:36:43]Send response to host [09:36:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123194,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [09:36:43]free response buf [09:36:43]execute_script done [09:36:43]execute_script returns [09:36:43]free content buf [09:36:43]Sock 9.Close socket [09:36:43]Sock 9.Thread stoped [09:36:45]OFD Sender: No OFD packet to send [09:36:50]OFD Sender: No OFD packet to send [09:36:55]OFD Sender: No OFD packet to send [09:37:00]OFD Sender: No OFD packet to send [09:37:04]accept exits with 7 [09:37:04]New connection [09:37:04]New thread 3067395428 created [09:37:04]Thread 3067252068 joined [09:37:04]Waiting for new connection... [09:37:04] Sock 7.Parse request [09:37:04]Sock 7.Check first char [09:37:04]Sock 7.First char is OK [09:37:04]request: POST /json_proto HTTP/1.0 [09:37:04]Method: POST [09:37:04]URL: /json_proto [09:37:04]Method is POST - this is cgi request [09:37:04]url: /json_proto [09:37:04]query_string will be loaded in cgi processing [09:37:04]execute_cgi json_proto POST (null) [09:37:04]execute_cgi path=json_proto method=POST [09:37:04]POST find Content-Length [09:37:04]Host: 172.17.48.197:8080 [09:37:04]Content-Length: 678 [09:37:04]Content-Type: application/json [09:37:04] [09:37:04]POST finish read [09:37:04]Found Content-Length = 678 [09:37:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106113", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 6.470, "sum" : 400.49, "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" ] } } [09:37:04]execute_script... [09:37: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)1106113", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 6.470, "sum" : 400.49, "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" ] } } [09:37:04]POST & json_proto [09:37:04]process_json_proto [09:37:04]json parsed OK: [09:37:04]protocol is kg_v1.0 [09:37:04]action value=close_receipt [09:37:04]process_action close_receipt [09:37:04]cmd_close_receipt [09:37:04]MH_GetDate [09:37:04]Write to MH i2c: F0 00 00 87 17 8D [09:37:04]Write i2c OK [09:37:04]MH_I2C_Read... [09:37:04]Read from MH i2c: F0 [09:37:04]MH_I2C_Read... [09:37:04]Read from MH i2c: F0 09 00 [09:37:04]MH_I2C_Read... [09:37:04]Read from MH i2c: F0 09 00 87 17 00 C2 44 E4 65 6C AF E3 65 48 [09:37:04]GetLastDocTimeStamp 1709458600 [09:37:04]current date 1709458626 [09:37:04]FM_GetShiftState [09:37:04]SAM_PROTO_GetShiftState [09:37:04]wFMCommunicate request_size=4 [09:37:04]MH_SAM_APDU [09:37:04]CAPDU: 80 13 01 00 [09:37:04]Write to MH i2c: E2 08 00 88 17 80 13 01 00 00 00 00 00 1C [09:37:04]Write i2c OK [09:37:04]MH_I2C_Read... [09:37:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:37:04]Read from MH i2c: E2 [09:37:04]MH_I2C_Read... [09:37:04]Read from MH i2c: E2 0E 00 [09:37:04]MH_I2C_Read... [09:37:04]Read from MH i2c: E2 0E 00 88 17 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 DE [09:37:04]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [09:37:04]wFMCommunicate OK [09:37:04]SAM_PROTO_GetShiftState done [09:37:04]FM_GetShiftState done [09:37:04]opened in 1709425579 [09:37:04]opened+sec_in_day 1709511979 [09:37:04]quantity*price = 40049 [09:37:04]sum+1 = 40050 [09:37:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.53 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 52 03.03.2024 09:37 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123195 ФПД: 85614091222511 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T093706&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123195&fm=85614091222511&tin=02508201610067®Number=0000000000090573&sum=40000 [09:37:05]StoreToDocumentArchive [09:37:05]shift 323 fd 123195 [09:37:05]save to /storage/0323/doc_00123195 [09:37:05]save last doc name /storage/0323/doc_00123195 to /storage/kkm_last_doc_name [09:37:05]save OK [09:37:05]Clear old archive folders... [09:37:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:37:05]tlvbuf is 00E29990 [09:37:05]SAM_PROTO_ClearQueue [09:37:05]wFMCommunicate request_size=4 [09:37:05]MH_SAM_APDU [09:37:05]CAPDU: 80 09 00 00 [09:37:05]Write to MH i2c: E2 08 00 95 17 80 09 00 00 00 00 00 00 1E [09:37:05]Write i2c OK [09:37:05]MH_I2C_Read... [09:37:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:37:05]Read from MH i2c: E2 [09:37:05]MH_I2C_Read... [09:37:05]Read from MH i2c: E2 03 00 [09:37:05]MH_I2C_Read... [09:37:05]Read from MH i2c: E2 03 00 95 17 00 90 00 20 [09:37:05]RAPDU: 90 00 [09:37:05]wFMCommunicate OK [09:37:05]SAM_PROTO_ClearQueue done [09:37:05]KKMCreateOFDPacket [09:37:05]OFDProtocolAddRootSTLVToBuf [09:37:05]FM_MakeSignedData [09:37:05]FM_MakeSignedData [09:37:05]SAM_PROTO_SignData [09:37:05]wFMCommunicate request_size=4 [09:37:05]MH_SAM_APDU [09:37:05]CAPDU: 80 0D 01 02 [09:37:05]Write to MH i2c: E2 08 00 96 17 80 0D 01 02 00 00 00 00 26 [09:37:05]Write i2c OK [09:37:05]MH_I2C_Read... [09:37:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:37:05]Read from MH i2c: E2 [09:37:05]MH_I2C_Read... [09:37:05]Read from MH i2c: E2 03 00 [09:37:05]MH_I2C_Read... [09:37:05]Read from MH i2c: E2 03 00 96 17 00 90 00 21 [09:37:05]RAPDU: 90 00 [09:37:05]wFMCommunicate OK [09:37:05]wFMCommunicate request_size=255 [09:37:05]MH_SAM_APDU [09:37: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 35 FF 03 08 00 03 46 19 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 71 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 9D 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 34 00 00 00 F4 03 04 00 C2 44 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 3B E1 01 00 35 04 06 00 4D [09:37:05]Write to MH i2c: E2 02 01 97 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 19 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 71 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 9D 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 34 00 00 00 F4 03 04 00 C2 44 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 3B E1 01 00 35 04 06 00 4D 00 00 E5 [09:37:05]Write i2c OK [09:37:05]MH_I2C_Read... [09:37:05]OFD Sender: No OFD packet to send [09:37:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:37:05]Read from MH i2c: E2 [09:37:05]MH_I2C_Read... [09:37:05]Read from MH i2c: E2 03 00 [09:37:05]MH_I2C_Read... [09:37:05]Read from MH i2c: E2 03 00 97 17 00 90 00 22 [09:37:05]RAPDU: 90 00 [09:37:05]wFMCommunicate OK [09:37:05]wFMCommunicate request_size=10 [09:37:05]MH_SAM_APDU [09:37:05]CAPDU: 80 0D 02 02 05 DD 95 7E BD EF [09:37:05]Write to MH i2c: E2 0D 00 98 17 80 0D 02 02 05 00 DD 95 7E BD EF 00 00 CF [09:37:05]Write i2c OK [09:37:05]MH_I2C_Read... [09:37:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:37:05]Read from MH i2c: E2 [09:37:05]MH_I2C_Read... [09:37:05]Read from MH i2c: E2 03 00 [09:37:05]MH_I2C_Read... [09:37:05]Read from MH i2c: E2 03 00 98 17 00 90 00 23 [09:37:05]RAPDU: 90 00 [09:37:05]wFMCommunicate OK [09:37:05]wFMCommunicate request_size=4 [09:37:05]MH_SAM_APDU [09:37:05]CAPDU: 80 0D 03 02 [09:37:05]Write to MH i2c: E2 08 00 99 17 80 0D 03 02 00 00 00 00 2B [09:37:05]Write i2c OK [09:37:05]MH_I2C_Read... [09:37:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:37:05]Read from MH i2c: E2 [09:37:05]MH_I2C_Read... [09:37:05]Read from MH i2c: E2 0B 00 [09:37:05]MH_I2C_Read... [09:37:05]Read from MH i2c: E2 0B 00 99 17 00 DE 1F 1E C9 4E A5 4C 37 90 00 86 [09:37:05]RAPDU: DE 1F 1E C9 4E A5 4C 37 90 00 [09:37:05]wFMCommunicate OK [09:37:05]SAM_PROTO_SignData done [09:37:05]FM_MakeSignedData done [09:37:05]CreateOFDProtocolMessage [09:37:05]wFMCommunicate request_size=4 [09:37:05]MH_SAM_APDU [09:37:05]CAPDU: 80 11 00 00 [09:37:05]Write to MH i2c: E2 08 00 9A 17 80 11 00 00 00 00 00 00 2B [09:37:05]Write i2c OK [09:37:05]MH_I2C_Read... [09:37:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:06]Read from MH i2c: E2 [09:37:06]MH_I2C_Read... [09:37:06]Read from MH i2c: E2 17 00 [09:37:06]MH_I2C_Read... [09:37:06]Read from MH i2c: E2 17 00 9A 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 89 [09:37:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [09:37:06]wFMCommunicate OK [09:37:06]CreateOFDProtocolMessage done [09:37:06]OFDSenderStorePacket 123195 [09:37:06]StoreOFDPacket docnum=123195 [09:37:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 5B 78 07 01 13 FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 19 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 71 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 9D 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 34 00 00 00 F4 03 04 00 C2 44 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 3B E1 01 00 35 04 06 00 4D DD 95 7E BD EF DE 1F 1E C9 4E A5 4C 37 [09:37:06]CheckFolder [09:37:06]dirname=/storage/ofd_packets [09:37:06]CheckFolder done [09:37:06]ProducePacketName [09:37:06]name=ofd_packets/00123195 [09:37:06]NVStorageSaveData ofd_packets/00123195 [09:37:06]File name is /storage/ofd_packets/00123195 [09:37:06]Write 301 bytes [09:37:06]NVStorageSaveData done [09:37:06]OFDSenderStorePacket done [09:37:06]KKMCreateOFDPacket done [09:37:06]NVStorageSaveData kkm_last_timestamp [09:37:06]File name is /storage/kkm_last_timestamp [09:37:06]Write 4 bytes [09:37:06]NVStorageSaveData done [09:37:06]ExternCall_PrintAddStr [09:37:06]wPrintStart [09:37:06]Write to MH i2c: 01 00 00 9B 17 B2 [09:37:06]Write i2c OK [09:37:06]MH_I2C_Read... [09:37:06]Read from MH i2c: 01 [09:37:06]MH_I2C_Read... [09:37:06]Read from MH i2c: 01 07 00 [09:37:06]MH_I2C_Read... [09:37:06]Read from MH i2c: 01 07 00 9B 17 00 00 00 00 00 FF 0F C7 [09:37:06]RasterBufferAndPrint [09:37:06]line Счет N : (1)1106113 [09:37:06]line ИНН: 02508201610067 [09:37:06]line Контрольно-Кассовый Чек [09:37:06]line ПРОДАЖА [09:37:06]line ТРК (МРК, ГНК) : 62 [09:37:06]line Товар: 2710124130 [09:37:06]line Аи-92-К-5 [09:37:06]line 6.470 * 61.90 [09:37:06]line = 400.49 [09:37:06]line НДС 12% НСП 1% [09:37:06]line > о реализуемом товаре [09:37:06]line ОКРУГЛЕНИЕ: -0.49 [09:37:06]line ИТОГО: 400.00 [09:37:06]line Внесено: 400.00 [09:37:06]line СДАЧА: 0.00 [09:37:06]line НСП 1% : 3.54 [09:37:06]line НДС 12% : 42.53 [09:37:06]line Наличными: 400.00 [09:37:06]line Безнал.: 0.00 [09:37:06]line Место: АЗС № 25 "Партнер Нефть" [09:37:06]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [09:37:06]line СНО: Общий режим [09:37:06]line Чек 52 03.03.2024 09:37 [09:37:06]line Смена: 323 ФФД: 1.0 [09:37:06]line ЗНМ: 0300000019 [09:37:06]line РНМ: 0000000000090573 [09:37:06]line Версия ККМ: 001 [09:37:06]line ФМ: 0000000000874798 [09:37:06]line ФД: 123195 [09:37:06]line ФПД: 85614091222511 [09:37:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T093706&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123195&fm=85614091222511&tin=02508201610067®Number=0000000000090573&sum=40000 [09:37:06]OFD Sender: Processing packet 123195 [packets to send 112, broken 111] [09:37:06]ProducePacketName [09:37:06]name=ofd_packets/00123195 [09:37:06]OFD Sender: To server: pG, [09:37:06]CommunicateWithHost lk.salyk.kg:30040 [09:37:06]ConnectInit lk.salyk.kg [09:37:06]written 0, free lines is 4095 [09:37:06]Connected sock=10 [09:37: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 37 39 38 0F 01 00 00 5B 78 07 01 13 FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 19 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 71 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 9D 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 34 00 00 00 F4 03 04 00 C2 44 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 3B E1 01 00 35 04 06 00 4D DD 95 7E BD EF DE 1F 1E C9 4E A5 4C 37 [09:37:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 57 DB 47 00 64 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 3B E1 01 00 F4 03 04 00 EF F0 E3 65 B6 04 01 00 00 A8 13 BB A7 9C 7E E5 E2 [09:37:06]CommunicateWithHost err = 0 [09:37:06]CheckOFDResponse [09:37:06]1017 (14) - 77093643461234 [09:37:06]1041 (16) - 0000000000874798 [09:37:06]1040 (4) - 123195 [09:37:06]1012 (4) - 03.03.2024 03:39 [09:37:06]1206 (1) - 0 [09:37:06]OFD Sender: Remove packet 123195 [09:37:06]ProducePacketName [09:37:06]name=ofd_packets/00123195 [09:37:06]NVStorageDeleteData [09:37:06]Write to MH i2c: 01 00 00 C6 17 DD [09:37:06]Write i2c OK [09:37:06]MH_I2C_Read... [09:37:06]Read from MH i2c: 01 [09:37:06]MH_I2C_Read... [09:37:06]Read from MH i2c: 01 07 00 [09:37:06]MH_I2C_Read... [09:37:06]Read from MH i2c: 01 07 00 C6 17 00 00 00 00 00 F3 0C E3 [09:37:06]RasterBufferAndPrint [09:37:06]line [09:37:06]line [09:37:06]line [09:37:06]line [09:37:06]line [09:37:06]written 0, free lines is 3324 [09:37:06]MH_Cut [09:37:06]Write to MH i2c: D1 01 00 CD 17 01 B6 [09:37:06]Write i2c OK [09:37:06]MH_I2C_Read... [09:37:06]Read from MH i2c: D1 [09:37:06]MH_I2C_Read... [09:37:06]Read from MH i2c: D1 01 00 [09:37:06]MH_I2C_Read... [09:37:06]Read from MH i2c: D1 01 00 CD 17 00 B5 [09:37:06]Write to MH i2c: 01 00 00 CE 17 E5 [09:37:06]Write i2c OK [09:37:06]MH_I2C_Read... [09:37:07]OFD Sender: No OFD packet to send [09:37:07]*** Cut start [09:37:07]*** Purtial cut [09:37:07]*** Stage 1: CUTSNS_PIN = 1 [09:37:09]Read from MH i2c: 01 [09:37:09]MH_I2C_Read... [09:37:09]*** Stop cut motor [09:37:09]*** Cut end [09:37:09]Read from MH i2c: 01 07 00 [09:37:09]MH_I2C_Read... [09:37:09]Read from MH i2c: 01 07 00 CE 17 00 00 00 00 00 FF 0F FA [09:37:09]process_action close_receipt done [09:37:09]requested_data is exist [09:37:09]produce_requested_data [09:37:09]requested_item fm.sn is exist - process it [09:37:09]wFMCommunicate request_size=4 [09:37:09]MH_SAM_APDU [09:37:09]CAPDU: 80 11 00 00 [09:37:09]Write to MH i2c: E2 08 00 CF 17 80 11 00 00 00 00 00 00 60 [09:37:09]Write i2c OK [09:37:09]MH_I2C_Read... [09:37:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:09]Read from MH i2c: E2 [09:37:09]MH_I2C_Read... [09:37:09]Read from MH i2c: E2 17 00 [09:37:09]MH_I2C_Read... [09:37:09]Read from MH i2c: E2 17 00 CF 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 BE [09:37:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [09:37:09]wFMCommunicate OK [09:37:09]requested_item fd.num is exist - process it [09:37:09]SAM_PROTO_GetFieldsCounters [09:37:09]wFMCommunicate request_size=4 [09:37:09]MH_SAM_APDU [09:37:09]CAPDU: 80 13 00 00 [09:37:09]Write to MH i2c: E2 08 00 D0 17 80 13 00 00 00 00 00 00 63 [09:37:09]Write i2c OK [09:37:09]MH_I2C_Read... [09:37:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:37:09]Read from MH i2c: E2 [09:37:09]MH_I2C_Read... [09:37:09]Read from MH i2c: E2 62 00 [09:37:09]MH_I2C_Read... [09:37:09]Read from MH i2c: E2 62 00 D0 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 3B E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 8B [09:37: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 3B E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:37:09]wFMCommunicate OK [09:37:09]SAM_PROTO_GetFieldsCounters done [09:37:09]requested_item shift.num is exist - process it [09:37:09]requested_item shift.opened is exist - process it [09:37:09]req_shift_opened [09:37:09]FM_GetShiftState [09:37:09]SAM_PROTO_GetShiftState [09:37:09]wFMCommunicate request_size=4 [09:37:09]MH_SAM_APDU [09:37:09]CAPDU: 80 13 01 00 [09:37:09]Write to MH i2c: E2 08 00 D1 17 80 13 01 00 00 00 00 00 65 [09:37:09]Write i2c OK [09:37:09]MH_I2C_Read... [09:37:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:37:09]Read from MH i2c: E2 [09:37:09]MH_I2C_Read... [09:37:09]Read from MH i2c: E2 0E 00 [09:37:09]MH_I2C_Read... [09:37:09]Read from MH i2c: E2 0E 00 D1 17 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 27 [09:37:09]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [09:37:09]wFMCommunicate OK [09:37:09]SAM_PROTO_GetShiftState done [09:37:09]FM_GetShiftState done [09:37:09]req_shift_opened done [09:37:09]requested_item shift.open_date is exist - process it [09:37:09]req_shift_open_date [09:37:09]req_shift_open_date done [09:37:09]produce_requested_data done [09:37:09]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123195,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [09:37:09]process_action_free close_receipt [09:37:09]json_value_free [09:37:09]json_value_free done [09:37:09]process_json_proto returns [09:37:09]Send response to host [09:37:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123195,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [09:37:09]free response buf [09:37:09]execute_script done [09:37:09]execute_script returns [09:37:09]free content buf [09:37:09]Sock 7.Close socket [09:37:09]Sock 7.Thread stoped [09:37:12]OFD Sender: No OFD packet to send [09:37:17]OFD Sender: No OFD packet to send [09:37:22]OFD Sender: No OFD packet to send [09:37:27]OFD Sender: No OFD packet to send [09:37:32]OFD Sender: No OFD packet to send [09:37:37]OFD Sender: No OFD packet to send [09:37:42]OFD Sender: No OFD packet to send [09:37:47]OFD Sender: No OFD packet to send [09:37:52]OFD Sender: No OFD packet to send [09:37:57]OFD Sender: No OFD packet to send [09:38:02]OFD Sender: No OFD packet to send [09:38:07]OFD Sender: No OFD packet to send [09:38:12]OFD Sender: No OFD packet to send [09:38:17]OFD Sender: No OFD packet to send [09:38:22]OFD Sender: No OFD packet to send [09:38:27]OFD Sender: No OFD packet to send [09:38:32]OFD Sender: No OFD packet to send [09:38:37]OFD Sender: No OFD packet to send [09:38:42]OFD Sender: No OFD packet to send [09:38:47]OFD Sender: No OFD packet to send [09:38:52]OFD Sender: No OFD packet to send [09:38:57]OFD Sender: No OFD packet to send [09:39:02]OFD Sender: No OFD packet to send [09:39:07]OFD Sender: No OFD packet to send [09:39:12]OFD Sender: No OFD packet to send [09:39:17]OFD Sender: No OFD packet to send [09:39:22]OFD Sender: No OFD packet to send [09:39:27]OFD Sender: No OFD packet to send [09:39:32]OFD Sender: No OFD packet to send [09:39:37]OFD Sender: No OFD packet to send [09:39:42]OFD Sender: No OFD packet to send [09:39:47]OFD Sender: No OFD packet to send [09:39:52]OFD Sender: No OFD packet to send [09:39:57]OFD Sender: No OFD packet to send [09:40:02]OFD Sender: No OFD packet to send [09:40:07]OFD Sender: No OFD packet to send [09:40:12]OFD Sender: No OFD packet to send [09:40:17]OFD Sender: No OFD packet to send [09:40:22]OFD Sender: No OFD packet to send [09:40:27]OFD Sender: No OFD packet to send [09:40:32]OFD Sender: No OFD packet to send [09:40:37]OFD Sender: No OFD packet to send [09:40:42]OFD Sender: No OFD packet to send [09:40:45]accept exits with 9 [09:40:45]New connection [09:40:45]New thread 3067252068 created [09:40:45]Thread 3067395428 joined [09:40:45]Waiting for new connection... [09:40:45] Sock 9.Parse request [09:40:45]Sock 9.Check first char [09:40:45]Sock 9.First char is OK [09:40:45]request: POST /json_proto HTTP/1.0 [09:40:45]Method: POST [09:40:45]URL: /json_proto [09:40:45]Method is POST - this is cgi request [09:40:45]url: /json_proto [09:40:45]query_string will be loaded in cgi processing [09:40:45]execute_cgi json_proto POST (null) [09:40:45]execute_cgi path=json_proto method=POST [09:40:45]POST find Content-Length [09:40:45]Host: 172.17.48.197:8080 [09:40:45]Content-Length: 1215 [09:40:45]Content-Type: application/json [09:40:45] [09:40:45]POST finish read [09:40:45]Found Content-Length = 1215 [09:40:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106115\u000A03.03.2024 09:37\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 14.110 x 70.90\u000A\u0418\u0422\u041E\u0413: 1000.40\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02551\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:45]execute_script... [09:40:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106115\u000A03.03.2024 09:37\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 14.110 x 70.90\u000A\u0418\u0422\u041E\u0413: 1000.40\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02551\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:45]POST & json_proto [09:40:45]process_json_proto [09:40:45]json parsed OK: [09:40:45]protocol is kg_v1.0 [09:40:45]action value=print_text [09:40:45]process_action print_text [09:40:45]cmd_print_text [09:40:45]ExternCall_PrintAddStr [09:40:45]wPrintStart [09:40:45]Write to MH i2c: 01 00 00 D2 17 E9 [09:40:45]Write i2c OK [09:40:45]MH_I2C_Read... [09:40:45]Read from MH i2c: 01 [09:40:45]MH_I2C_Read... [09:40:45]Read from MH i2c: 01 07 00 [09:40:45]MH_I2C_Read... [09:40:45]Read from MH i2c: 01 07 00 D2 17 00 00 00 00 00 FF 0F FE [09:40:45]RasterBufferAndPrint [09:40:45]line *****ТОВАРНЫЙ ЧЕК***** [09:40:45]line АЗС 25 [09:40:45]line Партнер нефть [09:40:45]line 02508201610067 [09:40:45]line Кассир : Турдумбек у. К. [09:40:45]line Счет N : (1)1106115 [09:40:45]line 03.03.2024 09:37 [09:40:45]line ПРОДАЖА [09:40:45]line ТРК (МРК, ГНК): 41 [09:40:45]line Вид ГСМ : 2710194210 [09:40:45]line ДТ(л)-К-5 [09:40:45]line 14.110 x 70.90 [09:40:45]line ИТОГ: 1000.40 [09:40:45]line Тип оплаты: Талоны: Топливная Карта [09:40:45]line 02551 [09:40:45]line ______________________ [09:40:45]line (подпись) [09:40:45]written 0, free lines is 4095 [09:40:45]Write to MH i2c: 01 00 00 E7 17 FE [09:40:45]Write i2c OK [09:40:45]MH_I2C_Read... [09:40:45]Read from MH i2c: 01 [09:40:45]MH_I2C_Read... [09:40:45]Read from MH i2c: 01 07 00 [09:40:45]MH_I2C_Read... [09:40:45]Read from MH i2c: 01 07 00 E7 17 00 00 00 00 00 F4 0D 06 [09:40:45]RasterBufferAndPrint [09:40:45]line [09:40:45]line [09:40:45]line [09:40:45]line [09:40:45]line [09:40:45]written 0, free lines is 3574 [09:40:45]MH_Cut [09:40:45]Write to MH i2c: D1 01 00 EE 17 01 D7 [09:40:45]Write i2c OK [09:40:45]MH_I2C_Read... [09:40:45]Read from MH i2c: D1 [09:40:45]MH_I2C_Read... [09:40:45]Read from MH i2c: D1 01 00 [09:40:45]MH_I2C_Read... [09:40:45]Read from MH i2c: D1 01 00 EE 17 00 D6 [09:40:45]Write to MH i2c: 01 00 00 EF 17 06 [09:40:45]Write i2c OK [09:40:45]MH_I2C_Read... [09:40:45]*** Cut start [09:40:45]*** Purtial cut [09:40:45]*** Stage 1: CUTSNS_PIN = 1 [09:40:47]OFD Sender: No OFD packet to send [09:40:47]Read from MH i2c: 01 [09:40:47]MH_I2C_Read... [09:40:47]*** Stop cut motor [09:40:47]*** Cut end [09:40:47]Read from MH i2c: 01 07 00 [09:40:47]MH_I2C_Read... [09:40:47]Read from MH i2c: 01 07 00 EF 17 00 00 00 00 00 FF 0F 1B [09:40:47]process_action print_text done [09:40:47]requested_data is exist [09:40:47]produce_requested_data [09:40:47]requested_item fm.sn is exist - process it [09:40:47]wFMCommunicate request_size=4 [09:40:47]MH_SAM_APDU [09:40:47]CAPDU: 80 11 00 00 [09:40:47]Write to MH i2c: E2 08 00 F0 17 80 11 00 00 00 00 00 00 81 [09:40:47]Write i2c OK [09:40:47]MH_I2C_Read... [09:40:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:47]Read from MH i2c: E2 [09:40:47]MH_I2C_Read... [09:40:47]Read from MH i2c: E2 17 00 [09:40:47]MH_I2C_Read... [09:40:47]Read from MH i2c: E2 17 00 F0 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 DF [09:40:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [09:40:47]wFMCommunicate OK [09:40:47]requested_item fd.num is exist - process it [09:40:47]SAM_PROTO_GetFieldsCounters [09:40:47]wFMCommunicate request_size=4 [09:40:47]MH_SAM_APDU [09:40:47]CAPDU: 80 13 00 00 [09:40:47]Write to MH i2c: E2 08 00 F1 17 80 13 00 00 00 00 00 00 84 [09:40:47]Write i2c OK [09:40:47]MH_I2C_Read... [09:40:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:40:47]Read from MH i2c: E2 [09:40:47]MH_I2C_Read... [09:40:47]Read from MH i2c: E2 62 00 [09:40:47]MH_I2C_Read... [09:40:47]Read from MH i2c: E2 62 00 F1 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 3B E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 AC [09:40:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 3B E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:40:47]wFMCommunicate OK [09:40:47]SAM_PROTO_GetFieldsCounters done [09:40:47]requested_item shift.num is exist - process it [09:40:47]requested_item shift.opened is exist - process it [09:40:47]req_shift_opened [09:40:47]FM_GetShiftState [09:40:47]SAM_PROTO_GetShiftState [09:40:47]wFMCommunicate request_size=4 [09:40:47]MH_SAM_APDU [09:40:47]CAPDU: 80 13 01 00 [09:40:47]Write to MH i2c: E2 08 00 F2 17 80 13 01 00 00 00 00 00 86 [09:40:47]Write i2c OK [09:40:47]MH_I2C_Read... [09:40:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:48]Read from MH i2c: E2 [09:40:48]MH_I2C_Read... [09:40:48]Read from MH i2c: E2 0E 00 [09:40:48]MH_I2C_Read... [09:40:48]Read from MH i2c: E2 0E 00 F2 17 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 48 [09:40:48]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [09:40:48]wFMCommunicate OK [09:40:48]SAM_PROTO_GetShiftState done [09:40:48]FM_GetShiftState done [09:40:48]req_shift_opened done [09:40:48]requested_item shift.open_date is exist - process it [09:40:48]req_shift_open_date [09:40:48]req_shift_open_date done [09:40:48]produce_requested_data done [09:40:48]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123195,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [09:40:48]process_action_free print_text [09:40:48]json_value_free [09:40:48]json_value_free done [09:40:48]process_json_proto returns [09:40:48]Send response to host [09:40:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123195,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [09:40:48]free response buf [09:40:48]execute_script done [09:40:48]execute_script returns [09:40:48]free content buf [09:40:48]Sock 9.Close socket [09:40:48]Sock 9.Thread stoped [09:40:52]OFD Sender: No OFD packet to send [09:40:57]OFD Sender: No OFD packet to send [09:41:02]OFD Sender: No OFD packet to send [09:41:07]OFD Sender: No OFD packet to send [09:41:12]OFD Sender: No OFD packet to send [09:41:17]OFD Sender: No OFD packet to send [09:41:22]OFD Sender: No OFD packet to send [09:41:27]OFD Sender: No OFD packet to send [09:41:32]OFD Sender: No OFD packet to send [09:41:37]OFD Sender: No OFD packet to send [09:41:42]OFD Sender: No OFD packet to send [09:41:47]OFD Sender: No OFD packet to send [09:41:52]OFD Sender: No OFD packet to send [09:41:57]OFD Sender: No OFD packet to send [09:42:02]OFD Sender: No OFD packet to send [09:42:07]OFD Sender: No OFD packet to send [09:42:12]OFD Sender: No OFD packet to send [09:42:17]OFD Sender: No OFD packet to send [09:42:22]OFD Sender: No OFD packet to send [09:42:27]OFD Sender: No OFD packet to send [09:42:32]OFD Sender: No OFD packet to send [09:42:37]OFD Sender: No OFD packet to send [09:42:42]OFD Sender: No OFD packet to send [09:42:47]OFD Sender: No OFD packet to send [09:42:52]OFD Sender: No OFD packet to send [09:42:57]OFD Sender: No OFD packet to send [09:43:02]OFD Sender: No OFD packet to send [09:43:07]OFD Sender: No OFD packet to send [09:43:12]OFD Sender: No OFD packet to send [09:43:17]OFD Sender: No OFD packet to send [09:43:22]OFD Sender: No OFD packet to send [09:43:27]OFD Sender: No OFD packet to send [09:43:32]OFD Sender: No OFD packet to send [09:43:37]OFD Sender: No OFD packet to send [09:43:42]OFD Sender: No OFD packet to send [09:43:47]OFD Sender: No OFD packet to send [09:43:52]OFD Sender: No OFD packet to send [09:43:57]OFD Sender: No OFD packet to send [09:44:02]OFD Sender: No OFD packet to send [09:44:07]OFD Sender: No OFD packet to send [09:44:12]OFD Sender: No OFD packet to send [09:44:17]OFD Sender: No OFD packet to send [09:44:22]OFD Sender: No OFD packet to send [09:44:27]OFD Sender: No OFD packet to send [09:44:32]OFD Sender: No OFD packet to send [09:44:37]OFD Sender: No OFD packet to send [09:44:42]OFD Sender: No OFD packet to send [09:44:47]OFD Sender: No OFD packet to send [09:44:52]OFD Sender: No OFD packet to send [09:44:57]OFD Sender: No OFD packet to send [09:45:02]OFD Sender: No OFD packet to send [09:45:07]OFD Sender: No OFD packet to send [09:45:12]OFD Sender: No OFD packet to send [09:45:17]OFD Sender: No OFD packet to send [09:45:22]OFD Sender: No OFD packet to send [09:45:27]OFD Sender: No OFD packet to send [09:45:32]OFD Sender: No OFD packet to send [09:45:37]OFD Sender: No OFD packet to send [09:45:42]OFD Sender: No OFD packet to send [09:45:47]OFD Sender: No OFD packet to send [09:45:52]OFD Sender: No OFD packet to send [09:45:57]OFD Sender: No OFD packet to send [09:46:02]OFD Sender: No OFD packet to send [09:46:07]OFD Sender: No OFD packet to send [09:46:12]OFD Sender: No OFD packet to send [09:46:17]OFD Sender: No OFD packet to send [09:46:22]OFD Sender: No OFD packet to send [09:46:27]OFD Sender: No OFD packet to send [09:46:32]OFD Sender: No OFD packet to send [09:46:37]OFD Sender: No OFD packet to send [09:46:42]OFD Sender: No OFD packet to send [09:46:47]OFD Sender: No OFD packet to send [09:46:52]OFD Sender: No OFD packet to send [09:46:57]OFD Sender: No OFD packet to send [09:47:02]OFD Sender: No OFD packet to send [09:47:07]OFD Sender: No OFD packet to send [09:47:12]OFD Sender: No OFD packet to send [09:47:17]OFD Sender: No OFD packet to send [09:47:22]OFD Sender: No OFD packet to send [09:47:27]OFD Sender: No OFD packet to send [09:47:32]OFD Sender: No OFD packet to send [09:47:37]OFD Sender: No OFD packet to send [09:47:42]OFD Sender: No OFD packet to send [09:47:47]OFD Sender: No OFD packet to send [09:47:52]OFD Sender: No OFD packet to send [09:47:57]OFD Sender: No OFD packet to send [09:48:02]OFD Sender: No OFD packet to send [09:48:07]OFD Sender: No OFD packet to send [09:48:12]OFD Sender: No OFD packet to send [09:48:17]OFD Sender: No OFD packet to send [09:48:22]OFD Sender: No OFD packet to send [09:48:27]OFD Sender: No OFD packet to send [09:48:32]OFD Sender: No OFD packet to send [09:48:37]OFD Sender: No OFD packet to send [09:48:42]OFD Sender: No OFD packet to send [09:48:47]OFD Sender: No OFD packet to send [09:48:52]OFD Sender: No OFD packet to send [09:48:57]OFD Sender: No OFD packet to send [09:49:02]OFD Sender: No OFD packet to send [09:49:07]OFD Sender: No OFD packet to send [09:49:12]OFD Sender: No OFD packet to send [09:49:17]OFD Sender: No OFD packet to send [09:49:22]OFD Sender: No OFD packet to send [09:49:27]OFD Sender: No OFD packet to send [09:49:32]OFD Sender: No OFD packet to send [09:49:37]OFD Sender: No OFD packet to send [09:49:42]OFD Sender: No OFD packet to send [09:49:47]OFD Sender: No OFD packet to send [09:49:52]OFD Sender: No OFD packet to send [09:49:57]OFD Sender: No OFD packet to send [09:50:03]OFD Sender: No OFD packet to send [09:50:08]OFD Sender: No OFD packet to send [09:50:13]OFD Sender: No OFD packet to send [09:50:18]OFD Sender: No OFD packet to send [09:50:23]OFD Sender: No OFD packet to send [09:50:28]OFD Sender: No OFD packet to send [09:50:33]OFD Sender: No OFD packet to send [09:50:38]OFD Sender: No OFD packet to send [09:50:43]OFD Sender: No OFD packet to send [09:50:48]OFD Sender: No OFD packet to send [09:50:53]OFD Sender: No OFD packet to send [09:50:58]OFD Sender: No OFD packet to send [09:51:03]OFD Sender: No OFD packet to send [09:51:08]OFD Sender: No OFD packet to send [09:51:13]OFD Sender: No OFD packet to send [09:51:18]OFD Sender: No OFD packet to send [09:51:23]OFD Sender: No OFD packet to send [09:51:28]OFD Sender: No OFD packet to send [09:51:31]accept exits with 7 [09:51:31]New connection [09:51:31]New thread 3067395428 created [09:51:31]Thread 3067252068 joined [09:51:31]Waiting for new connection... [09:51:31] Sock 7.Parse request [09:51:31]Sock 7.Check first char [09:51:31]Sock 7.First char is OK [09:51:31]request: POST /json_proto HTTP/1.0 [09:51:31]Method: POST [09:51:31]URL: /json_proto [09:51:31]Method is POST - this is cgi request [09:51:31]url: /json_proto [09:51:31]query_string will be loaded in cgi processing [09:51:31]execute_cgi json_proto POST (null) [09:51:31]execute_cgi path=json_proto method=POST [09:51:31]POST find Content-Length [09:51:31]Host: 172.17.48.197:8080 [09:51:31]Content-Length: 1226 [09:51:31]Content-Type: application/json [09:51:31] [09:51:31]POST finish read [09:51:31]Found Content-Length = 1226 [09:51:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106116\u000A03.03.2024 09:47\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 1238.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3622903/3622902\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:31]execute_script... [09:51:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106116\u000A03.03.2024 09:47\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 1238.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3622903/3622902\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:31]POST & json_proto [09:51:31]process_json_proto [09:51:31]json parsed OK: [09:51:31]protocol is kg_v1.0 [09:51:31]action value=print_text [09:51:31]process_action print_text [09:51:31]cmd_print_text [09:51:31]ExternCall_PrintAddStr [09:51:31]wPrintStart [09:51:31]Write to MH i2c: 01 00 00 F3 17 0A [09:51:31]Write i2c OK [09:51:31]MH_I2C_Read... [09:51:31]Read from MH i2c: 01 [09:51:31]MH_I2C_Read... [09:51:31]Read from MH i2c: 01 07 00 [09:51:31]MH_I2C_Read... [09:51:31]Read from MH i2c: 01 07 00 F3 17 00 00 00 00 00 FF 0F 1F [09:51:31]RasterBufferAndPrint [09:51:31]line *****ТОВАРНЫЙ ЧЕК***** [09:51:31]line АЗС 25 [09:51:31]line Партнер нефть [09:51:31]line 02508201610067 [09:51:31]line Кассир : Турдумбек у. К. [09:51:31]line Счет N : (1)1106116 [09:51:31]line 03.03.2024 09:47 [09:51:31]line ПРОДАЖА [09:51:31]line ТРК (МРК, ГНК): 11 [09:51:31]line Вид ГСМ : 2710124130 [09:51:31]line Аи-92-К-5 [09:51:31]line 20.000 x 61.90 [09:51:31]line ИТОГ: 1238.00 [09:51:31]line Тип оплаты: Талоны: Топливные Талоны [09:51:31]line 3622903/3622902 [09:51:31]line ______________________ [09:51:31]line (подпись) [09:51:31]written 0, free lines is 4095 [09:51:31]Write to MH i2c: 01 00 00 08 18 20 [09:51:31]Write i2c OK [09:51:31]MH_I2C_Read... [09:51:31]Read from MH i2c: 01 [09:51:31]MH_I2C_Read... [09:51:31]Read from MH i2c: 01 07 00 [09:51:31]MH_I2C_Read... [09:51:31]Read from MH i2c: 01 07 00 08 18 00 00 00 00 00 FC 0D 30 [09:51:31]RasterBufferAndPrint [09:51:31]line [09:51:31]line [09:51:31]line [09:51:31]line [09:51:31]line [09:51:31]written 0, free lines is 3582 [09:51:31]MH_Cut [09:51:31]Write to MH i2c: D1 01 00 0F 18 01 F9 [09:51:31]Write i2c OK [09:51:31]MH_I2C_Read... [09:51:31]Read from MH i2c: D1 [09:51:31]MH_I2C_Read... [09:51:31]Read from MH i2c: D1 01 00 [09:51:31]MH_I2C_Read... [09:51:31]Read from MH i2c: D1 01 00 0F 18 00 F8 [09:51:31]Write to MH i2c: 01 00 00 10 18 28 [09:51:31]Write i2c OK [09:51:31]MH_I2C_Read... [09:51:32]*** Cut start [09:51:32]*** Purtial cut [09:51:32]*** Stage 1: CUTSNS_PIN = 1 [09:51:33]OFD Sender: No OFD packet to send [09:51:34]Read from MH i2c: 01 [09:51:34]MH_I2C_Read... [09:51:34]Read from MH i2c: 01 07 00 [09:51:34]MH_I2C_Read... [09:51:34]*** Stop cut motor [09:51:34]*** Cut end [09:51:34]Read from MH i2c: 01 07 00 10 18 00 00 00 00 00 FF 0F 3D [09:51:34]process_action print_text done [09:51:34]requested_data is exist [09:51:34]produce_requested_data [09:51:34]requested_item fm.sn is exist - process it [09:51:34]wFMCommunicate request_size=4 [09:51:34]MH_SAM_APDU [09:51:34]CAPDU: 80 11 00 00 [09:51:34]Write to MH i2c: E2 08 00 11 18 80 11 00 00 00 00 00 00 A3 [09:51:34]Write i2c OK [09:51:34]MH_I2C_Read... [09:51:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:34]Read from MH i2c: E2 [09:51:34]MH_I2C_Read... [09:51:34]Read from MH i2c: E2 17 00 [09:51:34]MH_I2C_Read... [09:51:34]Read from MH i2c: E2 17 00 11 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 01 [09:51:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [09:51:34]wFMCommunicate OK [09:51:34]requested_item fd.num is exist - process it [09:51:34]SAM_PROTO_GetFieldsCounters [09:51:34]wFMCommunicate request_size=4 [09:51:34]MH_SAM_APDU [09:51:34]CAPDU: 80 13 00 00 [09:51:34]Write to MH i2c: E2 08 00 12 18 80 13 00 00 00 00 00 00 A6 [09:51:34]Write i2c OK [09:51:34]MH_I2C_Read... [09:51:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:51:34]Read from MH i2c: E2 [09:51:34]MH_I2C_Read... [09:51:34]Read from MH i2c: E2 62 00 [09:51:34]MH_I2C_Read... [09:51:34]Read from MH i2c: E2 62 00 12 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 3B E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 CE [09:51: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 3B E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:51:34]wFMCommunicate OK [09:51:34]SAM_PROTO_GetFieldsCounters done [09:51:34]requested_item shift.num is exist - process it [09:51:34]requested_item shift.opened is exist - process it [09:51:34]req_shift_opened [09:51:34]FM_GetShiftState [09:51:34]SAM_PROTO_GetShiftState [09:51:34]wFMCommunicate request_size=4 [09:51:34]MH_SAM_APDU [09:51:34]CAPDU: 80 13 01 00 [09:51:34]Write to MH i2c: E2 08 00 13 18 80 13 01 00 00 00 00 00 A8 [09:51:34]Write i2c OK [09:51:34]MH_I2C_Read... [09:51:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:34]Read from MH i2c: E2 [09:51:34]MH_I2C_Read... [09:51:34]Read from MH i2c: E2 0E 00 [09:51:34]MH_I2C_Read... [09:51:34]Read from MH i2c: E2 0E 00 13 18 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 6A [09:51:34]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [09:51:34]wFMCommunicate OK [09:51:34]SAM_PROTO_GetShiftState done [09:51:34]FM_GetShiftState done [09:51:34]req_shift_opened done [09:51:34]requested_item shift.open_date is exist - process it [09:51:34]req_shift_open_date [09:51:34]req_shift_open_date done [09:51:34]produce_requested_data done [09:51:34]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123195,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [09:51:34]process_action_free print_text [09:51:34]json_value_free [09:51:34]json_value_free done [09:51:34]process_json_proto returns [09:51:34]Send response to host [09:51:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123195,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [09:51:34]free response buf [09:51:34]execute_script done [09:51:34]execute_script returns [09:51:34]free content buf [09:51:34]Sock 7.Close socket [09:51:34]Sock 7.Thread stoped [09:51:38]OFD Sender: No OFD packet to send [09:51:43]OFD Sender: No OFD packet to send [09:51:48]OFD Sender: No OFD packet to send [09:51:53]OFD Sender: No OFD packet to send [09:51:58]OFD Sender: No OFD packet to send [09:52:03]OFD Sender: No OFD packet to send [09:52:08]OFD Sender: No OFD packet to send [09:52:13]OFD Sender: No OFD packet to send [09:52:18]OFD Sender: No OFD packet to send [09:52:23]OFD Sender: No OFD packet to send [09:52:28]OFD Sender: No OFD packet to send [09:52:33]OFD Sender: No OFD packet to send [09:52:38]OFD Sender: No OFD packet to send [09:52:42]accept exits with 9 [09:52:42]New connection [09:52:42]New thread 3067252068 created [09:52:42]Thread 3067395428 joined [09:52:42]Waiting for new connection... [09:52:42] Sock 9.Parse request [09:52:42]Sock 9.Check first char [09:52:42]Sock 9.First char is OK [09:52:42]request: POST /json_proto HTTP/1.0 [09:52:42]Method: POST [09:52:42]URL: /json_proto [09:52:42]Method is POST - this is cgi request [09:52:42]url: /json_proto [09:52:42]query_string will be loaded in cgi processing [09:52:42]execute_cgi json_proto POST (null) [09:52:42]execute_cgi path=json_proto method=POST [09:52:42]POST find Content-Length [09:52:42]Host: 172.17.48.197:8080 [09:52:42]Content-Length: 820 [09:52:42]Content-Type: application/json [09:52:42] [09:52:42]POST finish read [09:52:42]Found Content-Length = 820 [09:52:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106117", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:52:42]execute_script... [09:52: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)1106117", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:52:42]POST & json_proto [09:52:42]process_json_proto [09:52:42]json parsed OK: [09:52:42]protocol is kg_v1.0 [09:52:42]action value=close_receipt [09:52:42]process_action close_receipt [09:52:42]cmd_close_receipt [09:52:42]MH_GetDate [09:52:42]Write to MH i2c: F0 00 00 14 18 1B [09:52:42]Write i2c OK [09:52:42]MH_I2C_Read... [09:52:42]Read from MH i2c: F0 [09:52:42]MH_I2C_Read... [09:52:42]Read from MH i2c: F0 09 00 [09:52:42]MH_I2C_Read... [09:52:42]Read from MH i2c: F0 09 00 14 18 00 6D 48 E4 65 6C AF E3 65 85 [09:52:42]GetLastDocTimeStamp 1709458626 [09:52:42]current date 1709459565 [09:52:42]FM_GetShiftState [09:52:42]SAM_PROTO_GetShiftState [09:52:42]wFMCommunicate request_size=4 [09:52:42]MH_SAM_APDU [09:52:42]CAPDU: 80 13 01 00 [09:52:42]Write to MH i2c: E2 08 00 15 18 80 13 01 00 00 00 00 00 AA [09:52:42]Write i2c OK [09:52:42]MH_I2C_Read... [09:52:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:42]Read from MH i2c: E2 [09:52:42]MH_I2C_Read... [09:52:42]Read from MH i2c: E2 0E 00 [09:52:42]MH_I2C_Read... [09:52:42]Read from MH i2c: E2 0E 00 15 18 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 6C [09:52:42]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [09:52:42]wFMCommunicate OK [09:52:42]SAM_PROTO_GetShiftState done [09:52:42]FM_GetShiftState done [09:52:42]opened in 1709425579 [09:52:42]opened+sec_in_day 1709511979 [09:52:42]quantity*price = 100010 [09:52:42]sum+1 = 100012 [09:52:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.11 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.11 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 53 03.03.2024 09:52 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874798 ФД: 123196 ФПД: 131959383987298 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T095245&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123196&fm=131959383987298&tin=02508201610067®Number=0000000000090573&sum=100011 [09:52:43]StoreToDocumentArchive [09:52:43]shift 323 fd 123196 [09:52:43]save to /storage/0323/doc_00123196 [09:52:43]save last doc name /storage/0323/doc_00123196 to /storage/kkm_last_doc_name [09:52:43]save OK [09:52:43]Clear old archive folders... [09:52:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:52:43]tlvbuf is 00DDF2A0 [09:52:43]SAM_PROTO_ClearQueue [09:52:43]wFMCommunicate request_size=4 [09:52:43]MH_SAM_APDU [09:52:43]CAPDU: 80 09 00 00 [09:52:43]Write to MH i2c: E2 08 00 22 18 80 09 00 00 00 00 00 00 AC [09:52:43]Write i2c OK [09:52:43]MH_I2C_Read... [09:52:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:52:43]Read from MH i2c: E2 [09:52:43]MH_I2C_Read... [09:52:43]Read from MH i2c: E2 03 00 [09:52:43]MH_I2C_Read... [09:52:43]Read from MH i2c: E2 03 00 22 18 00 90 00 AE [09:52:43]RAPDU: 90 00 [09:52:43]wFMCommunicate OK [09:52:43]SAM_PROTO_ClearQueue done [09:52:43]KKMCreateOFDPacket [09:52:43]OFDProtocolAddRootSTLVToBuf [09:52:43]FM_MakeSignedData [09:52:43]FM_MakeSignedData [09:52:43]SAM_PROTO_SignData [09:52:43]wFMCommunicate request_size=4 [09:52:43]MH_SAM_APDU [09:52:43]CAPDU: 80 0D 01 02 [09:52:43]Write to MH i2c: E2 08 00 23 18 80 0D 01 02 00 00 00 00 B4 [09:52:43]Write i2c OK [09:52:43]MH_I2C_Read... [09:52:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:52:44]Read from MH i2c: E2 [09:52:44]MH_I2C_Read... [09:52:44]Read from MH i2c: E2 03 00 [09:52:44]MH_I2C_Read... [09:52:44]Read from MH i2c: E2 03 00 23 18 00 90 00 AF [09:52:44]RAPDU: 90 00 [09:52:44]wFMCommunicate OK [09:52:44]wFMCommunicate request_size=255 [09:52:44]MH_SAM_APDU [09:52: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 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 6D 48 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 3C E1 01 00 35 04 06 00 78 [09:52:44]Write to MH i2c: E2 02 01 24 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 6D 48 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 3C E1 01 00 35 04 06 00 78 00 00 3C [09:52:44]Write i2c OK [09:52:44]MH_I2C_Read... [09:52:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:44]Read from MH i2c: E2 [09:52:44]MH_I2C_Read... [09:52:44]Read from MH i2c: E2 03 00 [09:52:44]MH_I2C_Read... [09:52:44]Read from MH i2c: E2 03 00 24 18 00 90 00 B0 [09:52:44]RAPDU: 90 00 [09:52:44]wFMCommunicate OK [09:52:44]wFMCommunicate request_size=10 [09:52:44]MH_SAM_APDU [09:52:44]CAPDU: 80 0D 02 02 05 04 30 35 14 62 [09:52:44]Write to MH i2c: E2 0D 00 25 18 80 0D 02 02 05 00 04 30 35 14 62 00 00 A0 [09:52:44]Write i2c OK [09:52:44]MH_I2C_Read... [09:52:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:44]Read from MH i2c: E2 [09:52:44]MH_I2C_Read... [09:52:44]Read from MH i2c: E2 03 00 [09:52:44]MH_I2C_Read... [09:52:44]Read from MH i2c: E2 03 00 25 18 00 90 00 B1 [09:52:44]RAPDU: 90 00 [09:52:44]wFMCommunicate OK [09:52:44]wFMCommunicate request_size=4 [09:52:44]MH_SAM_APDU [09:52:44]CAPDU: 80 0D 03 02 [09:52:44]Write to MH i2c: E2 08 00 26 18 80 0D 03 02 00 00 00 00 B9 [09:52:44]Write i2c OK [09:52:44]MH_I2C_Read... [09:52:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:52:44]Read from MH i2c: E2 [09:52:44]MH_I2C_Read... [09:52:44]Read from MH i2c: E2 0B 00 [09:52:44]MH_I2C_Read... [09:52:44]Read from MH i2c: E2 0B 00 26 18 00 13 5F FC 5E 27 AC B1 56 90 00 60 [09:52:44]RAPDU: 13 5F FC 5E 27 AC B1 56 90 00 [09:52:44]wFMCommunicate OK [09:52:44]SAM_PROTO_SignData done [09:52:44]FM_MakeSignedData done [09:52:44]CreateOFDProtocolMessage [09:52:44]wFMCommunicate request_size=4 [09:52:44]MH_SAM_APDU [09:52:44]CAPDU: 80 11 00 00 [09:52:44]Write to MH i2c: E2 08 00 27 18 80 11 00 00 00 00 00 00 B9 [09:52:44]Write i2c OK [09:52:44]MH_I2C_Read... [09:52:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:44]Read from MH i2c: E2 [09:52:44]MH_I2C_Read... [09:52:44]Read from MH i2c: E2 17 00 [09:52:44]MH_I2C_Read... [09:52:44]Read from MH i2c: E2 17 00 27 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 17 [09:52:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [09:52:44]wFMCommunicate OK [09:52:44]CreateOFDProtocolMessage done [09:52:44]OFDSenderStorePacket 123196 [09:52:44]StoreOFDPacket docnum=123196 [09:52:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 38 C3 07 01 0D 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 6D 48 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 3C E1 01 00 35 04 06 00 78 04 30 35 14 62 13 5F FC 5E 27 AC B1 56 [09:52:44]CheckFolder [09:52:44]dirname=/storage/ofd_packets [09:52:44]CheckFolder done [09:52:44]ProducePacketName [09:52:44]name=ofd_packets/00123196 [09:52:44]NVStorageSaveData ofd_packets/00123196 [09:52:44]File name is /storage/ofd_packets/00123196 [09:52:44]Write 301 bytes [09:52:44]NVStorageSaveData done [09:52:44]OFDSenderStorePacket done [09:52:44]KKMCreateOFDPacket done [09:52:44]NVStorageSaveData kkm_last_timestamp [09:52:44]File name is /storage/kkm_last_timestamp [09:52:44]Write 4 bytes [09:52:44]NVStorageSaveData done [09:52:44]ExternCall_PrintAddStr [09:52:44]wPrintStart [09:52:44]Write to MH i2c: 01 00 00 28 18 40 [09:52:44]Write i2c OK [09:52:44]MH_I2C_Read... [09:52:44]Read from MH i2c: 01 [09:52:44]MH_I2C_Read... [09:52:44]Read from MH i2c: 01 07 00 [09:52:44]MH_I2C_Read... [09:52:44]Read from MH i2c: 01 07 00 28 18 00 00 00 00 00 FF 0F 55 [09:52:44]RasterBufferAndPrint [09:52:44]line Счет N : (1)1106117 [09:52:44]line ИНН: 02508201610067 [09:52:44]line Контрольно-Кассовый Чек [09:52:44]line ПРОДАЖА [09:52:44]line ТРК (МРК, ГНК) : 63 [09:52:44]line Товар: 2710124500 [09:52:44]line Аи-95-К-5 [09:52:44]line 14.390 * 69.50 [09:52:44]line = 1000.11 [09:52:44]line НДС 12% НСП 1% [09:52:44]line > о реализуемом товаре [09:52:44]line ИТОГО: 1000.11 [09:52:44]line НСП 1% : 8.85 [09:52:44]line НДС 12% : 106.21 [09:52:44]line Наличными: 0.00 [09:52:44]line Безнал.: 1000.11 [09:52:44]line Место: АЗС № 25 "Партнер Нефть" [09:52:44]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [09:52:44]line СНО: Общий режим [09:52:44]line Чек 53 03.03.2024 09:52 [09:52:44]line Смена: 323 ФФД: 1.0 [09:52:44]line ЗНМ: 0300000019 [09:52:44]line РНМ: 0000000000090573 [09:52:44]line Версия ККМ: 001 [09:52:44]line Платежная система: Бакай Банк [09:52:44]line ФМ: 0000000000874798 [09:52:44]line ФД: 123196 [09:52:44]line ФПД: 131959383987298 [09:52:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T095245&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123196&fm=131959383987298&tin=02508201610067®Number=0000000000090573&sum=100011 [09:52:44]OFD Sender: Processing packet 123196 [packets to send 112, broken 111] [09:52:44]ProducePacketName [09:52:44]name=ofd_packets/00123196 [09:52:44]OFD Sender: To server: pG, [09:52:44]CommunicateWithHost lk.salyk.kg:30040 [09:52:44]ConnectInit lk.salyk.kg [09:52:44]written 0, free lines is 4095 [09:52:44]Connected sock=10 [09:52: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 37 39 38 0F 01 00 00 38 C3 07 01 0D 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 6D 48 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 3C E1 01 00 35 04 06 00 78 04 30 35 14 62 13 5F FC 5E 27 AC B1 56 [09:52:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 AB 05 47 00 DB 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 3C E1 01 00 F4 03 04 00 99 F4 E3 65 B6 04 01 00 00 BE D0 10 9C 09 48 8C 5C [09:52:45]CommunicateWithHost err = 0 [09:52:45]CheckOFDResponse [09:52:45]1017 (14) - 77093643461234 [09:52:45]1041 (16) - 0000000000874798 [09:52:45]1040 (4) - 123196 [09:52:45]1012 (4) - 03.03.2024 03:55 [09:52:45]1206 (1) - 0 [09:52:45]OFD Sender: Remove packet 123196 [09:52:45]ProducePacketName [09:52:45]name=ofd_packets/00123196 [09:52:45]NVStorageDeleteData [09:52:45]Write to MH i2c: 01 00 00 52 18 6A [09:52:45]Write i2c OK [09:52:45]MH_I2C_Read... [09:52:45]Read from MH i2c: 01 [09:52:45]MH_I2C_Read... [09:52:45]Read from MH i2c: 01 07 00 [09:52:45]MH_I2C_Read... [09:52:45]Read from MH i2c: 01 07 00 52 18 00 00 00 00 00 0E 0D 8C [09:52:45]RasterBufferAndPrint [09:52:45]line [09:52:45]line [09:52:45]line [09:52:45]line [09:52:45]line [09:52:45]written 0, free lines is 3351 [09:52:45]MH_Cut [09:52:45]Write to MH i2c: D1 01 00 59 18 01 43 [09:52:45]Write i2c OK [09:52:45]MH_I2C_Read... [09:52:45]Read from MH i2c: D1 [09:52:45]MH_I2C_Read... [09:52:45]Read from MH i2c: D1 01 00 [09:52:45]MH_I2C_Read... [09:52:45]Read from MH i2c: D1 01 00 59 18 00 42 [09:52:45]Write to MH i2c: 01 00 00 5A 18 72 [09:52:45]Write i2c OK [09:52:45]MH_I2C_Read... [09:52:45]OFD Sender: No OFD packet to send [09:52:45]*** Cut start [09:52:45]*** Purtial cut [09:52:45]*** Stage 1: CUTSNS_PIN = 1 [09:52:47]Read from MH i2c: 01 [09:52:47]MH_I2C_Read... [09:52:47]*** Stop cut motor [09:52:47]*** Cut end [09:52:47]Read from MH i2c: 01 07 00 [09:52:47]MH_I2C_Read... [09:52:47]Read from MH i2c: 01 07 00 5A 18 00 00 00 00 00 FF 0F 87 [09:52:47]process_action close_receipt done [09:52:47]requested_data is exist [09:52:47]produce_requested_data [09:52:47]requested_item fm.sn is exist - process it [09:52:47]wFMCommunicate request_size=4 [09:52:47]MH_SAM_APDU [09:52:47]CAPDU: 80 11 00 00 [09:52:47]Write to MH i2c: E2 08 00 5B 18 80 11 00 00 00 00 00 00 ED [09:52:47]Write i2c OK [09:52:47]MH_I2C_Read... [09:52:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:47]Read from MH i2c: E2 [09:52:47]MH_I2C_Read... [09:52:47]Read from MH i2c: E2 17 00 [09:52:47]MH_I2C_Read... [09:52:47]Read from MH i2c: E2 17 00 5B 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 4B [09:52:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [09:52:47]wFMCommunicate OK [09:52:47]requested_item fd.num is exist - process it [09:52:47]SAM_PROTO_GetFieldsCounters [09:52:47]wFMCommunicate request_size=4 [09:52:47]MH_SAM_APDU [09:52:47]CAPDU: 80 13 00 00 [09:52:47]Write to MH i2c: E2 08 00 5C 18 80 13 00 00 00 00 00 00 F0 [09:52:47]Write i2c OK [09:52:47]MH_I2C_Read... [09:52:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:52:48]Read from MH i2c: E2 [09:52:48]MH_I2C_Read... [09:52:48]Read from MH i2c: E2 62 00 [09:52:48]MH_I2C_Read... [09:52:48]Read from MH i2c: E2 62 00 5C 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 3C E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 1C [09:52: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 3C E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:52:48]wFMCommunicate OK [09:52:48]SAM_PROTO_GetFieldsCounters done [09:52:48]requested_item shift.num is exist - process it [09:52:48]requested_item shift.opened is exist - process it [09:52:48]req_shift_opened [09:52:48]FM_GetShiftState [09:52:48]SAM_PROTO_GetShiftState [09:52:48]wFMCommunicate request_size=4 [09:52:48]MH_SAM_APDU [09:52:48]CAPDU: 80 13 01 00 [09:52:48]Write to MH i2c: E2 08 00 5D 18 80 13 01 00 00 00 00 00 F2 [09:52:48]Write i2c OK [09:52:48]MH_I2C_Read... [09:52:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:48]Read from MH i2c: E2 [09:52:48]MH_I2C_Read... [09:52:48]Read from MH i2c: E2 0E 00 [09:52:48]MH_I2C_Read... [09:52:48]Read from MH i2c: E2 0E 00 5D 18 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 B4 [09:52:48]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [09:52:48]wFMCommunicate OK [09:52:48]SAM_PROTO_GetShiftState done [09:52:48]FM_GetShiftState done [09:52:48]req_shift_opened done [09:52:48]requested_item shift.open_date is exist - process it [09:52:48]req_shift_open_date [09:52:48]req_shift_open_date done [09:52:48]produce_requested_data done [09:52:48]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123196,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [09:52:48]process_action_free close_receipt [09:52:48]json_value_free [09:52:48]json_value_free done [09:52:48]process_json_proto returns [09:52:48]Send response to host [09:52:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123196,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [09:52:48]free response buf [09:52:48]execute_script done [09:52:48]execute_script returns [09:52:48]free content buf [09:52:48]Sock 9.Close socket [09:52:48]Sock 9.Thread stoped [09:52:50]OFD Sender: No OFD packet to send [09:52:52]accept exits with 7 [09:52:52]New connection [09:52:52]New thread 3067395428 created [09:52:52]Thread 3067252068 joined [09:52:52]Waiting for new connection... [09:52:52] Sock 7.Parse request [09:52:52]Sock 7.Check first char [09:52:52]Sock 7.First char is OK [09:52:52]request: POST /json_proto HTTP/1.0 [09:52:52]Method: POST [09:52:52]URL: /json_proto [09:52:52]Method is POST - this is cgi request [09:52:52]url: /json_proto [09:52:52]query_string will be loaded in cgi processing [09:52:52]execute_cgi json_proto POST (null) [09:52:52]execute_cgi path=json_proto method=POST [09:52:52]POST find Content-Length [09:52:52]Host: 172.17.48.197:8080 [09:52:52]Content-Length: 806 [09:52:52]Content-Type: application/json [09:52:52] [09:52:52]POST finish read [09:52:52]Found Content-Length = 806 [09:52:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106118", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:52:52]execute_script... [09:52:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106118", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:52:52]POST & json_proto [09:52:52]process_json_proto [09:52:52]json parsed OK: [09:52:52]protocol is kg_v1.0 [09:52:52]action value=close_receipt [09:52:52]process_action close_receipt [09:52:52]cmd_close_receipt [09:52:52]MH_GetDate [09:52:52]Write to MH i2c: F0 00 00 5E 18 65 [09:52:52]Write i2c OK [09:52:52]MH_I2C_Read... [09:52:52]Read from MH i2c: F0 [09:52:52]MH_I2C_Read... [09:52:52]Read from MH i2c: F0 09 00 [09:52:52]MH_I2C_Read... [09:52:52]Read from MH i2c: F0 09 00 5E 18 00 76 48 E4 65 6C AF E3 65 D8 [09:52:52]GetLastDocTimeStamp 1709459565 [09:52:52]current date 1709459574 [09:52:52]FM_GetShiftState [09:52:52]SAM_PROTO_GetShiftState [09:52:52]wFMCommunicate request_size=4 [09:52:52]MH_SAM_APDU [09:52:52]CAPDU: 80 13 01 00 [09:52:52]Write to MH i2c: E2 08 00 5F 18 80 13 01 00 00 00 00 00 F4 [09:52:52]Write i2c OK [09:52:52]MH_I2C_Read... [09:52:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:52]Read from MH i2c: E2 [09:52:52]MH_I2C_Read... [09:52:52]Read from MH i2c: E2 0E 00 [09:52:52]MH_I2C_Read... [09:52:52]Read from MH i2c: E2 0E 00 5F 18 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 B6 [09:52:52]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [09:52:52]wFMCommunicate OK [09:52:52]SAM_PROTO_GetShiftState done [09:52:52]FM_GetShiftState done [09:52:52]opened in 1709425579 [09:52:52]opened+sec_in_day 1709511979 [09:52:52]quantity*price = 50015 [09:52:52]sum+1 = 50016 [09:52:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.15 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.15 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 54 03.03.2024 09:52 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874798 ФД: 123197 ФПД: 101789558573929 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T095254&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123197&fm=101789558573929&tin=02508201610067®Number=0000000000090573&sum=50015 [09:52:53]StoreToDocumentArchive [09:52:53]shift 323 fd 123197 [09:52:53]save to /storage/0323/doc_00123197 [09:52:53]save last doc name /storage/0323/doc_00123197 to /storage/kkm_last_doc_name [09:52:53]save OK [09:52:53]Clear old archive folders... [09:52:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:52:53]tlvbuf is 00DDEBE0 [09:52:53]SAM_PROTO_ClearQueue [09:52:53]wFMCommunicate request_size=4 [09:52:53]MH_SAM_APDU [09:52:53]CAPDU: 80 09 00 00 [09:52:53]Write to MH i2c: E2 08 00 6C 18 80 09 00 00 00 00 00 00 F6 [09:52:53]Write i2c OK [09:52:53]MH_I2C_Read... [09:52:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:52:53]Read from MH i2c: E2 [09:52:53]MH_I2C_Read... [09:52:53]Read from MH i2c: E2 03 00 [09:52:53]MH_I2C_Read... [09:52:53]Read from MH i2c: E2 03 00 6C 18 00 90 00 F8 [09:52:53]RAPDU: 90 00 [09:52:53]wFMCommunicate OK [09:52:53]SAM_PROTO_ClearQueue done [09:52:53]KKMCreateOFDPacket [09:52:53]OFDProtocolAddRootSTLVToBuf [09:52:53]FM_MakeSignedData [09:52:53]FM_MakeSignedData [09:52:53]SAM_PROTO_SignData [09:52:53]wFMCommunicate request_size=4 [09:52:53]MH_SAM_APDU [09:52:53]CAPDU: 80 0D 01 02 [09:52:53]Write to MH i2c: E2 08 00 6D 18 80 0D 01 02 00 00 00 00 FE [09:52:53]Write i2c OK [09:52:53]MH_I2C_Read... [09:52:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:52:53]Read from MH i2c: E2 [09:52:53]MH_I2C_Read... [09:52:53]Read from MH i2c: E2 03 00 [09:52:53]MH_I2C_Read... [09:52:53]Read from MH i2c: E2 03 00 6D 18 00 90 00 F9 [09:52:53]RAPDU: 90 00 [09:52:53]wFMCommunicate OK [09:52:53]wFMCommunicate request_size=255 [09:52:53]MH_SAM_APDU [09:52:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 76 48 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 3D E1 01 00 35 04 06 00 5C [09:52:53]Write to MH i2c: E2 02 01 6E 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 76 48 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 3D E1 01 00 35 04 06 00 5C 00 00 F8 [09:52:53]Write i2c OK [09:52:53]MH_I2C_Read... [09:52:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:53]Read from MH i2c: E2 [09:52:53]MH_I2C_Read... [09:52:53]Read from MH i2c: E2 03 00 [09:52:53]MH_I2C_Read... [09:52:53]Read from MH i2c: E2 03 00 6E 18 00 90 00 FA [09:52:53]RAPDU: 90 00 [09:52:53]wFMCommunicate OK [09:52:53]wFMCommunicate request_size=10 [09:52:53]MH_SAM_APDU [09:52:53]CAPDU: 80 0D 02 02 05 93 BA 7B 0B 69 [09:52:53]Write to MH i2c: E2 0D 00 6F 18 80 0D 02 02 05 00 93 BA 7B 0B 69 00 00 47 [09:52:53]Write i2c OK [09:52:53]MH_I2C_Read... [09:52:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:53]Read from MH i2c: E2 [09:52:53]MH_I2C_Read... [09:52:53]Read from MH i2c: E2 03 00 [09:52:53]MH_I2C_Read... [09:52:53]Read from MH i2c: E2 03 00 6F 18 00 90 00 FB [09:52:53]RAPDU: 90 00 [09:52:53]wFMCommunicate OK [09:52:53]wFMCommunicate request_size=4 [09:52:53]MH_SAM_APDU [09:52:53]CAPDU: 80 0D 03 02 [09:52:53]Write to MH i2c: E2 08 00 70 18 80 0D 03 02 00 00 00 00 03 [09:52:53]Write i2c OK [09:52:53]MH_I2C_Read... [09:52:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:52:53]Read from MH i2c: E2 [09:52:53]MH_I2C_Read... [09:52:53]Read from MH i2c: E2 0B 00 [09:52:53]MH_I2C_Read... [09:52:53]Read from MH i2c: E2 0B 00 70 18 00 58 EC A5 34 03 1D 5A 74 90 00 0F [09:52:53]RAPDU: 58 EC A5 34 03 1D 5A 74 90 00 [09:52:53]wFMCommunicate OK [09:52:53]SAM_PROTO_SignData done [09:52:53]FM_MakeSignedData done [09:52:53]CreateOFDProtocolMessage [09:52:53]wFMCommunicate request_size=4 [09:52:53]MH_SAM_APDU [09:52:53]CAPDU: 80 11 00 00 [09:52:53]Write to MH i2c: E2 08 00 71 18 80 11 00 00 00 00 00 00 03 [09:52:53]Write i2c OK [09:52:53]MH_I2C_Read... [09:52:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:53]Read from MH i2c: E2 [09:52:53]MH_I2C_Read... [09:52:53]Read from MH i2c: E2 17 00 [09:52:53]MH_I2C_Read... [09:52:53]Read from MH i2c: E2 17 00 71 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 61 [09:52:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [09:52:53]wFMCommunicate OK [09:52:53]CreateOFDProtocolMessage done [09:52:53]OFDSenderStorePacket 123197 [09:52:53]StoreOFDPacket docnum=123197 [09:52:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 03 2F 07 01 3A 76 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 76 48 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 3D E1 01 00 35 04 06 00 5C 93 BA 7B 0B 69 58 EC A5 34 03 1D 5A 74 [09:52:53]CheckFolder [09:52:53]dirname=/storage/ofd_packets [09:52:53]CheckFolder done [09:52:53]ProducePacketName [09:52:53]name=ofd_packets/00123197 [09:52:53]NVStorageSaveData ofd_packets/00123197 [09:52:53]File name is /storage/ofd_packets/00123197 [09:52:53]Write 301 bytes [09:52:53]NVStorageSaveData done [09:52:53]OFDSenderStorePacket done [09:52:53]KKMCreateOFDPacket done [09:52:53]NVStorageSaveData kkm_last_timestamp [09:52:53]File name is /storage/kkm_last_timestamp [09:52:53]Write 4 bytes [09:52:53]NVStorageSaveData done [09:52:53]ExternCall_PrintAddStr [09:52:53]wPrintStart [09:52:53]Write to MH i2c: 01 00 00 72 18 8A [09:52:53]Write i2c OK [09:52:53]MH_I2C_Read... [09:52:53]Read from MH i2c: 01 [09:52:53]MH_I2C_Read... [09:52:53]Read from MH i2c: 01 07 00 [09:52:53]MH_I2C_Read... [09:52:53]Read from MH i2c: 01 07 00 72 18 00 00 00 00 00 FF 0F 9F [09:52:53]RasterBufferAndPrint [09:52:53]line Счет N : (1)1106118 [09:52:53]line ИНН: 02508201610067 [09:52:53]line Контрольно-Кассовый Чек [09:52:53]line ПРОДАЖА [09:52:53]line ТРК (МРК, ГНК) : 21 [09:52:53]line Товар: 2710124130 [09:52:53]line Аи-92-К-5 [09:52:53]line 8.080 * 61.90 [09:52:53]line = 500.15 [09:52:53]line НДС 12% НСП 1% [09:52:53]line > о реализуемом товаре [09:52:53]line ИТОГО: 500.15 [09:52:53]line НСП 1% : 4.43 [09:52:53]line НДС 12% : 53.11 [09:52:53]line Наличными: 0.00 [09:52:53]line Безнал.: 500.15 [09:52:53]line Место: АЗС № 25 "Партнер Нефть" [09:52:53]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [09:52:53]line СНО: Общий режим [09:52:53]line Чек 54 03.03.2024 09:52 [09:52:53]line Смена: 323 ФФД: 1.0 [09:52:53]line ЗНМ: 0300000019 [09:52:53]line РНМ: 0000000000090573 [09:52:53]line Версия ККМ: 001 [09:52:53]line Платежная система: О! деньги [09:52:53]line ФМ: 0000000000874798 [09:52:53]line ФД: 123197 [09:52:53]line ФПД: 101789558573929 [09:52:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T095254&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123197&fm=101789558573929&tin=02508201610067®Number=0000000000090573&sum=50015 [09:52:53]OFD Sender: Processing packet 123197 [packets to send 112, broken 111] [09:52:53]ProducePacketName [09:52:53]name=ofd_packets/00123197 [09:52:53]OFD Sender: To server: pG, [09:52:54]CommunicateWithHost lk.salyk.kg:30040 [09:52:54]ConnectInit lk.salyk.kg [09:52:54]written 0, free lines is 4095 [09:52:54]Connected sock=10 [09:52: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 37 39 38 0F 01 00 00 03 2F 07 01 3A 76 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 76 48 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 3D E1 01 00 35 04 06 00 5C 93 BA 7B 0B 69 58 EC A5 34 03 1D 5A 74 [09:52:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 32 05 47 00 78 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 37 39 38 10 04 04 00 3D E1 01 00 F4 03 04 00 A2 F4 E3 65 B6 04 01 00 00 3B F9 C7 6A 1B D5 F9 12 [09:52:54]CommunicateWithHost err = 0 [09:52:54]CheckOFDResponse [09:52:54]1017 (14) - 77093643461234 [09:52:54]1041 (16) - 0000000000874798 [09:52:54]1040 (4) - 123197 [09:52:54]1012 (4) - 03.03.2024 03:55 [09:52:54]1206 (1) - 0 [09:52:54]OFD Sender: Remove packet 123197 [09:52:54]ProducePacketName [09:52:54]name=ofd_packets/00123197 [09:52:54]NVStorageDeleteData [09:52:54]Write to MH i2c: 01 00 00 9C 18 B4 [09:52:54]Write i2c OK [09:52:54]MH_I2C_Read... [09:52:54]Read from MH i2c: 01 [09:52:54]MH_I2C_Read... [09:52:54]Read from MH i2c: 01 07 00 [09:52:54]MH_I2C_Read... [09:52:54]Read from MH i2c: 01 07 00 9C 18 00 00 00 00 00 04 0D CC [09:52:54]RasterBufferAndPrint [09:52:54]line [09:52:54]line [09:52:54]line [09:52:54]line [09:52:54]line [09:52:54]written 0, free lines is 3341 [09:52:54]MH_Cut [09:52:54]Write to MH i2c: D1 01 00 A3 18 01 8D [09:52:54]Write i2c OK [09:52:54]MH_I2C_Read... [09:52:54]Read from MH i2c: D1 [09:52:54]MH_I2C_Read... [09:52:54]Read from MH i2c: D1 01 00 [09:52:54]MH_I2C_Read... [09:52:54]Read from MH i2c: D1 01 00 A3 18 00 8C [09:52:54]Write to MH i2c: 01 00 00 A4 18 BC [09:52:54]Write i2c OK [09:52:54]MH_I2C_Read... [09:52:55]OFD Sender: No OFD packet to send [09:52:55]*** Cut start [09:52:55]*** Purtial cut [09:52:55]*** Stage 1: CUTSNS_PIN = 1 [09:52:57]Read from MH i2c: *** Stop cut motor [09:52:57]*** Cut end [09:52:57]01 [09:52:57]MH_I2C_Read... [09:52:57]Read from MH i2c: 01 07 00 [09:52:57]MH_I2C_Read... [09:52:57]Read from MH i2c: 01 07 00 A4 18 00 00 00 00 00 FF 0F D1 [09:52:57]process_action close_receipt done [09:52:57]requested_data is exist [09:52:57]produce_requested_data [09:52:57]requested_item fm.sn is exist - process it [09:52:57]wFMCommunicate request_size=4 [09:52:57]MH_SAM_APDU [09:52:57]CAPDU: 80 11 00 00 [09:52:57]Write to MH i2c: E2 08 00 A5 18 80 11 00 00 00 00 00 00 37 [09:52:57]Write i2c OK [09:52:57]MH_I2C_Read... [09:52:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:57]Read from MH i2c: E2 [09:52:57]MH_I2C_Read... [09:52:57]Read from MH i2c: E2 17 00 [09:52:57]MH_I2C_Read... [09:52:57]Read from MH i2c: E2 17 00 A5 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 95 [09:52:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [09:52:57]wFMCommunicate OK [09:52:57]requested_item fd.num is exist - process it [09:52:57]SAM_PROTO_GetFieldsCounters [09:52:57]wFMCommunicate request_size=4 [09:52:57]MH_SAM_APDU [09:52:57]CAPDU: 80 13 00 00 [09:52:57]Write to MH i2c: E2 08 00 A6 18 80 13 00 00 00 00 00 00 3A [09:52:57]Write i2c OK [09:52:57]MH_I2C_Read... [09:52:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:52:57]Read from MH i2c: E2 [09:52:57]MH_I2C_Read... [09:52:57]Read from MH i2c: E2 62 00 [09:52:57]MH_I2C_Read... [09:52:57]Read from MH i2c: E2 62 00 A6 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 3D E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 6A [09:52: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 3D E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:52:57]wFMCommunicate OK [09:52:57]SAM_PROTO_GetFieldsCounters done [09:52:57]requested_item shift.num is exist - process it [09:52:57]requested_item shift.opened is exist - process it [09:52:57]req_shift_opened [09:52:57]FM_GetShiftState [09:52:57]SAM_PROTO_GetShiftState [09:52:57]wFMCommunicate request_size=4 [09:52:57]MH_SAM_APDU [09:52:57]CAPDU: 80 13 01 00 [09:52:57]Write to MH i2c: E2 08 00 A7 18 80 13 01 00 00 00 00 00 3C [09:52:57]Write i2c OK [09:52:57]MH_I2C_Read... [09:52:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:57]Read from MH i2c: E2 [09:52:57]MH_I2C_Read... [09:52:57]Read from MH i2c: E2 0E 00 [09:52:57]MH_I2C_Read... [09:52:57]Read from MH i2c: E2 0E 00 A7 18 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 FE [09:52:57]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [09:52:57]wFMCommunicate OK [09:52:57]SAM_PROTO_GetShiftState done [09:52:57]FM_GetShiftState done [09:52:57]req_shift_opened done [09:52:57]requested_item shift.open_date is exist - process it [09:52:57]req_shift_open_date [09:52:57]req_shift_open_date done [09:52:57]produce_requested_data done [09:52:57]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123197,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [09:52:57]process_action_free close_receipt [09:52:57]json_value_free [09:52:57]json_value_free done [09:52:57]process_json_proto returns [09:52:57]Send response to host [09:52:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123197,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [09:52:57]free response buf [09:52:57]execute_script done [09:52:57]execute_script returns [09:52:57]free content buf [09:52:57]Sock 7.Close socket [09:52:57]Sock 7.Thread stoped [09:53:00]OFD Sender: No OFD packet to send [09:53:05]OFD Sender: No OFD packet to send [09:53:10]OFD Sender: No OFD packet to send [09:53:15]OFD Sender: No OFD packet to send [09:53:20]OFD Sender: No OFD packet to send [09:53:25]OFD Sender: No OFD packet to send [09:53:30]OFD Sender: No OFD packet to send [09:53:35]OFD Sender: No OFD packet to send [09:53:40]OFD Sender: No OFD packet to send [09:53:45]OFD Sender: No OFD packet to send [09:53:50]OFD Sender: No OFD packet to send [09:53:55]OFD Sender: No OFD packet to send [09:54:00]OFD Sender: No OFD packet to send [09:54:05]OFD Sender: No OFD packet to send [09:54:10]OFD Sender: No OFD packet to send [09:54:15]OFD Sender: No OFD packet to send [09:54:20]OFD Sender: No OFD packet to send [09:54:25]OFD Sender: No OFD packet to send [09:54:30]OFD Sender: No OFD packet to send [09:54:35]OFD Sender: No OFD packet to send [09:54:40]OFD Sender: No OFD packet to send [09:54:45]OFD Sender: No OFD packet to send [09:54:50]OFD Sender: No OFD packet to send [09:54:55]OFD Sender: No OFD packet to send [09:55:00]OFD Sender: No OFD packet to send [09:55:05]OFD Sender: No OFD packet to send [09:55:10]OFD Sender: No OFD packet to send [09:55:15]OFD Sender: No OFD packet to send [09:55:20]OFD Sender: No OFD packet to send [09:55:25]OFD Sender: No OFD packet to send [09:55:30]OFD Sender: No OFD packet to send [09:55:35]OFD Sender: No OFD packet to send [09:55:40]OFD Sender: No OFD packet to send [09:55:45]OFD Sender: No OFD packet to send [09:55:50]OFD Sender: No OFD packet to send [09:55:55]OFD Sender: No OFD packet to send [09:56:00]OFD Sender: No OFD packet to send [09:56:05]OFD Sender: No OFD packet to send [09:56:10]OFD Sender: No OFD packet to send [09:56:15]OFD Sender: No OFD packet to send [09:56:20]OFD Sender: No OFD packet to send [09:56:25]OFD Sender: No OFD packet to send [09:56:30]OFD Sender: No OFD packet to send [09:56:35]OFD Sender: No OFD packet to send [09:56:40]OFD Sender: No OFD packet to send [09:56:45]OFD Sender: No OFD packet to send [09:56:50]OFD Sender: No OFD packet to send [09:56:55]OFD Sender: No OFD packet to send [09:57:00]OFD Sender: No OFD packet to send [09:57:05]OFD Sender: No OFD packet to send [09:57:10]OFD Sender: No OFD packet to send [09:57:15]OFD Sender: No OFD packet to send [09:57:20]OFD Sender: No OFD packet to send [09:57:25]OFD Sender: No OFD packet to send [09:57:30]OFD Sender: No OFD packet to send [09:57:35]OFD Sender: No OFD packet to send [09:57:40]OFD Sender: No OFD packet to send [09:57:45]OFD Sender: No OFD packet to send [09:57:50]OFD Sender: No OFD packet to send [09:57:55]OFD Sender: No OFD packet to send [09:58:00]OFD Sender: No OFD packet to send [09:58:05]OFD Sender: No OFD packet to send [09:58:10]OFD Sender: No OFD packet to send [09:58:15]OFD Sender: No OFD packet to send [09:58:20]OFD Sender: No OFD packet to send [09:58:25]OFD Sender: No OFD packet to send [09:58:30]OFD Sender: No OFD packet to send [09:58:35]OFD Sender: No OFD packet to send [09:58:40]OFD Sender: No OFD packet to send [09:58:45]OFD Sender: No OFD packet to send [09:58:50]OFD Sender: No OFD packet to send [09:58:55]OFD Sender: No OFD packet to send [09:59:00]OFD Sender: No OFD packet to send [09:59:05]OFD Sender: No OFD packet to send [09:59:10]OFD Sender: No OFD packet to send [09:59:15]OFD Sender: No OFD packet to send [09:59:20]OFD Sender: No OFD packet to send [09:59:25]OFD Sender: No OFD packet to send [09:59:30]OFD Sender: No OFD packet to send [09:59:35]OFD Sender: No OFD packet to send [09:59:40]OFD Sender: No OFD packet to send [09:59:45]OFD Sender: No OFD packet to send [09:59:50]OFD Sender: No OFD packet to send [09:59:55]OFD Sender: No OFD packet to send [10:00:00]OFD Sender: No OFD packet to send [10:00:05]OFD Sender: No OFD packet to send [10:00:07]accept exits with 9 [10:00:07]New connection [10:00:07]New thread 3067252068 created [10:00:07]Thread 3067395428 joined [10:00:07]Waiting for new connection... [10:00:07] Sock 9.Parse request [10:00:07]Sock 9.Check first char [10:00:07]Sock 9.First char is OK [10:00:07]request: POST /json_proto HTTP/1.0 [10:00:07]Method: POST [10:00:07]URL: /json_proto [10:00:07]Method is POST - this is cgi request [10:00:07]url: /json_proto [10:00:07]query_string will be loaded in cgi processing [10:00:07]execute_cgi json_proto POST (null) [10:00:07]execute_cgi path=json_proto method=POST [10:00:07]POST find Content-Length [10:00:07]Host: 172.17.48.197:8080 [10:00:07]Content-Length: 768 [10:00:07]Content-Type: application/json [10:00:07] [10:00:07]POST finish read [10:00:07]Found Content-Length = 768 [10:00:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106119", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: cash2u", "payments": [ { "type": 1, "sum" : 500.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:00:07]execute_script... [10:00:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106119", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: cash2u", "payments": [ { "type": 1, "sum" : 500.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:00:07]POST & json_proto [10:00:07]process_json_proto [10:00:07]json parsed OK: [10:00:07]protocol is kg_v1.0 [10:00:07]action value=close_receipt [10:00:07]process_action close_receipt [10:00:07]cmd_close_receipt [10:00:07]MH_GetDate [10:00:07]Write to MH i2c: F0 00 00 A8 18 AF [10:00:07]Write i2c OK [10:00:07]MH_I2C_Read... [10:00:07]Read from MH i2c: F0 [10:00:07]MH_I2C_Read... [10:00:07]Read from MH i2c: F0 09 00 [10:00:07]MH_I2C_Read... [10:00:07]Read from MH i2c: F0 09 00 A8 18 00 2A 4A E4 65 6C AF E3 65 D8 [10:00:07]GetLastDocTimeStamp 1709459574 [10:00:07]current date 1709460010 [10:00:07]FM_GetShiftState [10:00:07]SAM_PROTO_GetShiftState [10:00:07]wFMCommunicate request_size=4 [10:00:07]MH_SAM_APDU [10:00:07]CAPDU: 80 13 01 00 [10:00:07]Write to MH i2c: E2 08 00 A9 18 80 13 01 00 00 00 00 00 3E [10:00:07]Write i2c OK [10:00:07]MH_I2C_Read... [10:00:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:07]Read from MH i2c: E2 [10:00:07]MH_I2C_Read... [10:00:07]Read from MH i2c: E2 0E 00 [10:00:07]MH_I2C_Read... [10:00:07]Read from MH i2c: E2 0E 00 A9 18 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 00 [10:00:07]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [10:00:07]wFMCommunicate OK [10:00:07]SAM_PROTO_GetShiftState done [10:00:07]FM_GetShiftState done [10:00:07]opened in 1709425579 [10:00:07]opened+sec_in_day 1709511979 [10:00:07]quantity*price = 50015 [10:00:07]sum+1 = 50016 [10:00:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.15 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.15 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 55 03.03.2024 10:00 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: cash2u ФМ: 0000000000874798 ФД: 123198 ФПД: 81646977683457 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T100010&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123198&fm=81646977683457&tin=02508201610067®Number=0000000000090573&sum=50015 [10:00:08]StoreToDocumentArchive [10:00:08]shift 323 fd 123198 [10:00:08]save to /storage/0323/doc_00123198 [10:00:08]save last doc name /storage/0323/doc_00123198 to /storage/kkm_last_doc_name [10:00:08]save OK [10:00:08]Clear old archive folders... [10:00:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:00:08]tlvbuf is 00DCAFA0 [10:00:08]SAM_PROTO_ClearQueue [10:00:08]wFMCommunicate request_size=4 [10:00:08]MH_SAM_APDU [10:00:08]CAPDU: 80 09 00 00 [10:00:08]Write to MH i2c: E2 08 00 B6 18 80 09 00 00 00 00 00 00 40 [10:00:08]Write i2c OK [10:00:08]MH_I2C_Read... [10:00:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:00:08]Read from MH i2c: E2 [10:00:08]MH_I2C_Read... [10:00:08]Read from MH i2c: E2 03 00 [10:00:08]MH_I2C_Read... [10:00:08]Read from MH i2c: E2 03 00 B6 18 00 90 00 42 [10:00:08]RAPDU: 90 00 [10:00:08]wFMCommunicate OK [10:00:08]SAM_PROTO_ClearQueue done [10:00:08]KKMCreateOFDPacket [10:00:08]OFDProtocolAddRootSTLVToBuf [10:00:08]FM_MakeSignedData [10:00:08]FM_MakeSignedData [10:00:08]SAM_PROTO_SignData [10:00:08]wFMCommunicate request_size=4 [10:00:08]MH_SAM_APDU [10:00:08]CAPDU: 80 0D 01 02 [10:00:08]Write to MH i2c: E2 08 00 B7 18 80 0D 01 02 00 00 00 00 48 [10:00:08]Write i2c OK [10:00:08]MH_I2C_Read... [10:00:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:00:08]Read from MH i2c: E2 [10:00:08]MH_I2C_Read... [10:00:08]Read from MH i2c: E2 03 00 [10:00:08]MH_I2C_Read... [10:00:08]Read from MH i2c: E2 03 00 B7 18 00 90 00 43 [10:00:08]RAPDU: 90 00 [10:00:08]wFMCommunicate OK [10:00:08]wFMCommunicate request_size=255 [10:00:08]MH_SAM_APDU [10:00: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 2A 4A E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 3E E1 01 00 35 04 06 00 4A [10:00:08]Write to MH i2c: E2 02 01 B8 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 2A 4A E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 3E E1 01 00 35 04 06 00 4A 00 00 E8 [10:00:08]Write i2c OK [10:00:08]MH_I2C_Read... [10:00:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:09]Read from MH i2c: E2 [10:00:09]MH_I2C_Read... [10:00:09]Read from MH i2c: E2 03 00 [10:00:09]MH_I2C_Read... [10:00:09]Read from MH i2c: E2 03 00 B8 18 00 90 00 44 [10:00:09]RAPDU: 90 00 [10:00:09]wFMCommunicate OK [10:00:09]wFMCommunicate request_size=10 [10:00:09]MH_SAM_APDU [10:00:09]CAPDU: 80 0D 02 02 05 41 EB 1A 10 01 [10:00:09]Write to MH i2c: E2 0D 00 B9 18 80 0D 02 02 05 00 41 EB 1A 10 01 00 00 AC [10:00:09]Write i2c OK [10:00:09]MH_I2C_Read... [10:00:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:09]Read from MH i2c: E2 [10:00:09]MH_I2C_Read... [10:00:09]Read from MH i2c: E2 03 00 [10:00:09]MH_I2C_Read... [10:00:09]Read from MH i2c: E2 03 00 B9 18 00 90 00 45 [10:00:09]RAPDU: 90 00 [10:00:09]wFMCommunicate OK [10:00:09]wFMCommunicate request_size=4 [10:00:09]MH_SAM_APDU [10:00:09]CAPDU: 80 0D 03 02 [10:00:09]Write to MH i2c: E2 08 00 BA 18 80 0D 03 02 00 00 00 00 4D [10:00:09]Write i2c OK [10:00:09]MH_I2C_Read... [10:00:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:00:09]Read from MH i2c: E2 [10:00:09]MH_I2C_Read... [10:00:09]Read from MH i2c: E2 0B 00 [10:00:09]MH_I2C_Read... [10:00:09]Read from MH i2c: E2 0B 00 BA 18 00 D6 E1 68 6A B3 96 FA 24 90 00 3E [10:00:09]RAPDU: D6 E1 68 6A B3 96 FA 24 90 00 [10:00:09]wFMCommunicate OK [10:00:09]SAM_PROTO_SignData done [10:00:09]FM_MakeSignedData done [10:00:09]CreateOFDProtocolMessage [10:00:09]wFMCommunicate request_size=4 [10:00:09]MH_SAM_APDU [10:00:09]CAPDU: 80 11 00 00 [10:00:09]Write to MH i2c: E2 08 00 BB 18 80 11 00 00 00 00 00 00 4D [10:00:09]Write i2c OK [10:00:09]MH_I2C_Read... [10:00:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:09]Read from MH i2c: E2 [10:00:09]MH_I2C_Read... [10:00:09]Read from MH i2c: E2 17 00 [10:00:09]MH_I2C_Read... [10:00:09]Read from MH i2c: E2 17 00 BB 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 AB [10:00:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [10:00:09]wFMCommunicate OK [10:00:09]CreateOFDProtocolMessage done [10:00:09]OFDSenderStorePacket 123198 [10:00:09]StoreOFDPacket docnum=123198 [10:00:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 FB FA 07 01 27 E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 2A 4A E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 3E E1 01 00 35 04 06 00 4A 41 EB 1A 10 01 D6 E1 68 6A B3 96 FA 24 [10:00:09]CheckFolder [10:00:09]dirname=/storage/ofd_packets [10:00:09]CheckFolder done [10:00:09]ProducePacketName [10:00:09]name=ofd_packets/00123198 [10:00:09]NVStorageSaveData ofd_packets/00123198 [10:00:09]File name is /storage/ofd_packets/00123198 [10:00:09]Write 301 bytes [10:00:09]NVStorageSaveData done [10:00:09]OFDSenderStorePacket done [10:00:09]KKMCreateOFDPacket done [10:00:09]NVStorageSaveData kkm_last_timestamp [10:00:09]File name is /storage/kkm_last_timestamp [10:00:09]Write 4 bytes [10:00:09]NVStorageSaveData done [10:00:09]ExternCall_PrintAddStr [10:00:09]wPrintStart [10:00:09]Write to MH i2c: 01 00 00 BC 18 D4 [10:00:09]Write i2c OK [10:00:09]MH_I2C_Read... [10:00:09]Read from MH i2c: 01 [10:00:09]MH_I2C_Read... [10:00:09]Read from MH i2c: 01 07 00 [10:00:09]MH_I2C_Read... [10:00:09]Read from MH i2c: 01 07 00 BC 18 00 00 00 00 00 FF 0F E9 [10:00:09]RasterBufferAndPrint [10:00:09]line Счет N : (1)1106119 [10:00:09]line ИНН: 02508201610067 [10:00:09]line Контрольно-Кассовый Чек [10:00:09]line ПРОДАЖА [10:00:09]line ТРК (МРК, ГНК) : 11 [10:00:09]line Товар: 2710124130 [10:00:09]line Аи-92-К-5 [10:00:09]line 8.080 * 61.90 [10:00:09]line = 500.15 [10:00:09]line НДС 12% НСП 1% [10:00:09]line > о реализуемом товаре [10:00:09]line ИТОГО: 500.15 [10:00:09]line НСП 1% : 4.43 [10:00:09]line НДС 12% : 53.11 [10:00:09]line Наличными: 0.00 [10:00:09]line Безнал.: 500.15 [10:00:09]line Место: АЗС № 25 "Партнер Нефть" [10:00:09]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [10:00:09]line СНО: Общий режим [10:00:09]line Чек 55 03.03.2024 10:00 [10:00:09]line Смена: 323 ФФД: 1.0 [10:00:09]line ЗНМ: 0300000019 [10:00:09]line РНМ: 0000000000090573 [10:00:09]line Версия ККМ: 001 [10:00:09]line Платежная система: cash2u [10:00:09]line ФМ: 0000000000874798 [10:00:09]line ФД: 123198 [10:00:09]line ФПД: 81646977683457 [10:00:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T100010&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123198&fm=81646977683457&tin=02508201610067®Number=0000000000090573&sum=50015 [10:00:09]OFD Sender: Processing packet 123198 [packets to send 112, broken 111] [10:00:09]ProducePacketName [10:00:09]name=ofd_packets/00123198 [10:00:09]OFD Sender: To server: pG, [10:00:09]CommunicateWithHost lk.salyk.kg:30040 [10:00:09]ConnectInit lk.salyk.kg [10:00:09]written 0, free lines is 4095 [10:00:09]Connected sock=10 [10:00: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 37 39 38 0F 01 00 00 FB FA 07 01 27 E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 2A 4A E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 3E E1 01 00 35 04 06 00 4A 41 EB 1A 10 01 D6 E1 68 6A B3 96 FA 24 [10:00:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 85 09 47 00 3F 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 37 39 38 10 04 04 00 3E E1 01 00 F4 03 04 00 56 F6 E3 65 B6 04 01 00 00 F4 28 DE A9 F1 A5 CB 2A [10:00:09]CommunicateWithHost err = 0 [10:00:09]CheckOFDResponse [10:00:09]1017 (14) - 77093643461234 [10:00:09]1041 (16) - 0000000000874798 [10:00:09]1040 (4) - 123198 [10:00:09]1012 (4) - 03.03.2024 04:02 [10:00:09]1206 (1) - 0 [10:00:09]OFD Sender: Remove packet 123198 [10:00:09]ProducePacketName [10:00:09]name=ofd_packets/00123198 [10:00:09]NVStorageDeleteData [10:00:10]Write to MH i2c: 01 00 00 E5 18 FD [10:00:10]Write i2c OK [10:00:10]MH_I2C_Read... [10:00:10]Read from MH i2c: 01 [10:00:10]MH_I2C_Read... [10:00:10]Read from MH i2c: 01 07 00 [10:00:10]MH_I2C_Read... [10:00:10]Read from MH i2c: 01 07 00 E5 18 00 00 00 00 00 16 0D 27 [10:00:10]RasterBufferAndPrint [10:00:10]line [10:00:10]line [10:00:10]line [10:00:10]line [10:00:10]line [10:00:10]written 0, free lines is 3359 [10:00:10]MH_Cut [10:00:10]Write to MH i2c: D1 01 00 EC 18 01 D6 [10:00:10]Write i2c OK [10:00:10]MH_I2C_Read... [10:00:10]Read from MH i2c: D1 [10:00:10]MH_I2C_Read... [10:00:10]Read from MH i2c: D1 01 00 [10:00:10]MH_I2C_Read... [10:00:10]Read from MH i2c: D1 01 00 EC 18 00 D5 [10:00:10]Write to MH i2c: 01 00 00 ED 18 05 [10:00:10]Write i2c OK [10:00:10]MH_I2C_Read... [10:00:10]OFD Sender: No OFD packet to send [10:00:10]*** Cut start [10:00:10]*** Purtial cut [10:00:10]*** Stage 1: CUTSNS_PIN = 1 [10:00:12]Read from MH i2c: 01 [10:00:12]MH_I2C_Read... [10:00:12]*** Stop cut motor [10:00:12]*** Cut end [10:00:12]Read from MH i2c: 01 07 00 [10:00:12]MH_I2C_Read... [10:00:12]Read from MH i2c: 01 07 00 ED 18 00 00 00 00 00 FF 0F 1A [10:00:12]process_action close_receipt done [10:00:12]requested_data is exist [10:00:12]produce_requested_data [10:00:12]requested_item fm.sn is exist - process it [10:00:12]wFMCommunicate request_size=4 [10:00:12]MH_SAM_APDU [10:00:12]CAPDU: 80 11 00 00 [10:00:12]Write to MH i2c: E2 08 00 EE 18 80 11 00 00 00 00 00 00 80 [10:00:12]Write i2c OK [10:00:12]MH_I2C_Read... [10:00:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:12]Read from MH i2c: E2 [10:00:12]MH_I2C_Read... [10:00:12]Read from MH i2c: E2 17 00 [10:00:12]MH_I2C_Read... [10:00:12]Read from MH i2c: E2 17 00 EE 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 DE [10:00:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [10:00:12]wFMCommunicate OK [10:00:12]requested_item fd.num is exist - process it [10:00:12]SAM_PROTO_GetFieldsCounters [10:00:12]wFMCommunicate request_size=4 [10:00:12]MH_SAM_APDU [10:00:12]CAPDU: 80 13 00 00 [10:00:12]Write to MH i2c: E2 08 00 EF 18 80 13 00 00 00 00 00 00 83 [10:00:12]Write i2c OK [10:00:12]MH_I2C_Read... [10:00:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:00:13]Read from MH i2c: E2 [10:00:13]MH_I2C_Read... [10:00:13]Read from MH i2c: E2 62 00 [10:00:13]MH_I2C_Read... [10:00:13]Read from MH i2c: E2 62 00 EF 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 3E E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 B7 [10:00: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 3E E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:00:13]wFMCommunicate OK [10:00:13]SAM_PROTO_GetFieldsCounters done [10:00:13]requested_item shift.num is exist - process it [10:00:13]requested_item shift.opened is exist - process it [10:00:13]req_shift_opened [10:00:13]FM_GetShiftState [10:00:13]SAM_PROTO_GetShiftState [10:00:13]wFMCommunicate request_size=4 [10:00:13]MH_SAM_APDU [10:00:13]CAPDU: 80 13 01 00 [10:00:13]Write to MH i2c: E2 08 00 F0 18 80 13 01 00 00 00 00 00 85 [10:00:13]Write i2c OK [10:00:13]MH_I2C_Read... [10:00:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:13]Read from MH i2c: E2 [10:00:13]MH_I2C_Read... [10:00:13]Read from MH i2c: E2 0E 00 [10:00:13]MH_I2C_Read... [10:00:13]Read from MH i2c: E2 0E 00 F0 18 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 47 [10:00:13]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [10:00:13]wFMCommunicate OK [10:00:13]SAM_PROTO_GetShiftState done [10:00:13]FM_GetShiftState done [10:00:13]req_shift_opened done [10:00:13]requested_item shift.open_date is exist - process it [10:00:13]req_shift_open_date [10:00:13]req_shift_open_date done [10:00:13]produce_requested_data done [10:00:13]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123198,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [10:00:13]process_action_free close_receipt [10:00:13]json_value_free [10:00:13]json_value_free done [10:00:13]process_json_proto returns [10:00:13]Send response to host [10:00:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123198,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [10:00:13]free response buf [10:00:13]execute_script done [10:00:13]execute_script returns [10:00:13]free content buf [10:00:13]Sock 9.Close socket [10:00:13]Sock 9.Thread stoped [10:00:15]OFD Sender: No OFD packet to send [10:00:20]OFD Sender: No OFD packet to send [10:00:25]OFD Sender: No OFD packet to send [10:00:30]OFD Sender: No OFD packet to send [10:00:35]OFD Sender: No OFD packet to send [10:00:40]OFD Sender: No OFD packet to send [10:00:45]OFD Sender: No OFD packet to send [10:00:46]accept exits with 7 [10:00:46]New connection [10:00:46]New thread 3067395428 created [10:00:46]Thread 3067252068 joined [10:00:46]Waiting for new connection... [10:00:46] Sock 7.Parse request [10:00:46]Sock 7.Check first char [10:00:46]Sock 7.First char is OK [10:00:46]request: POST /json_proto HTTP/1.0 [10:00:46]Method: POST [10:00:46]URL: /json_proto [10:00:46]Method is POST - this is cgi request [10:00:46]url: /json_proto [10:00:46]query_string will be loaded in cgi processing [10:00:46]execute_cgi json_proto POST (null) [10:00:46]execute_cgi path=json_proto method=POST [10:00:46]POST find Content-Length [10:00:46]Host: 172.17.48.197:8080 [10:00:46]Content-Length: 817 [10:00:46]Content-Type: application/json [10:00:46] [10:00:46]POST finish read [10:00:46]Found Content-Length = 817 [10:00:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106120", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:00:46]execute_script... [10:00: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)1106120", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:00:46]POST & json_proto [10:00:46]process_json_proto [10:00:46]json parsed OK: [10:00:46]protocol is kg_v1.0 [10:00:46]action value=close_receipt [10:00:46]process_action close_receipt [10:00:46]cmd_close_receipt [10:00:46]MH_GetDate [10:00:46]Write to MH i2c: F0 00 00 F1 18 F8 [10:00:46]Write i2c OK [10:00:46]MH_I2C_Read... [10:00:46]Read from MH i2c: F0 [10:00:46]MH_I2C_Read... [10:00:46]Read from MH i2c: F0 09 00 [10:00:46]MH_I2C_Read... [10:00:46]Read from MH i2c: F0 09 00 F1 18 00 51 4A E4 65 6C AF E3 65 48 [10:00:46]GetLastDocTimeStamp 1709460010 [10:00:46]current date 1709460049 [10:00:46]FM_GetShiftState [10:00:46]SAM_PROTO_GetShiftState [10:00:46]wFMCommunicate request_size=4 [10:00:46]MH_SAM_APDU [10:00:46]CAPDU: 80 13 01 00 [10:00:46]Write to MH i2c: E2 08 00 F2 18 80 13 01 00 00 00 00 00 87 [10:00:46]Write i2c OK [10:00:46]MH_I2C_Read... [10:00:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:46]Read from MH i2c: E2 [10:00:46]MH_I2C_Read... [10:00:46]Read from MH i2c: E2 0E 00 [10:00:46]MH_I2C_Read... [10:00:46]Read from MH i2c: E2 0E 00 F2 18 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 49 [10:00:46]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [10:00:46]wFMCommunicate OK [10:00:46]SAM_PROTO_GetShiftState done [10:00:46]FM_GetShiftState done [10:00:46]opened in 1709425579 [10:00:46]opened+sec_in_day 1709511979 [10:00:46]quantity*price = 50015 [10:00:46]sum+1 = 50016 [10:00:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.15 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.15 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 56 03.03.2024 10:00 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874798 ФД: 123199 ФПД: 129056820489823 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T100049&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123199&fm=129056820489823&tin=02508201610067®Number=0000000000090573&sum=50015 [10:00:47]StoreToDocumentArchive [10:00:47]shift 323 fd 123199 [10:00:47]save to /storage/0323/doc_00123199 [10:00:47]save last doc name /storage/0323/doc_00123199 to /storage/kkm_last_doc_name [10:00:47]save OK [10:00:47]Clear old archive folders... [10:00:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:00:47]tlvbuf is 00DFCAE0 [10:00:47]SAM_PROTO_ClearQueue [10:00:47]wFMCommunicate request_size=4 [10:00:47]MH_SAM_APDU [10:00:47]CAPDU: 80 09 00 00 [10:00:47]Write to MH i2c: E2 08 00 FF 18 80 09 00 00 00 00 00 00 89 [10:00:47]Write i2c OK [10:00:47]MH_I2C_Read... [10:00:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:00:47]Read from MH i2c: E2 [10:00:47]MH_I2C_Read... [10:00:47]Read from MH i2c: E2 03 00 [10:00:47]MH_I2C_Read... [10:00:47]Read from MH i2c: E2 03 00 FF 18 00 90 00 8B [10:00:47]RAPDU: 90 00 [10:00:47]wFMCommunicate OK [10:00:47]SAM_PROTO_ClearQueue done [10:00:47]KKMCreateOFDPacket [10:00:47]OFDProtocolAddRootSTLVToBuf [10:00:47]FM_MakeSignedData [10:00:47]FM_MakeSignedData [10:00:47]SAM_PROTO_SignData [10:00:47]wFMCommunicate request_size=4 [10:00:47]MH_SAM_APDU [10:00:47]CAPDU: 80 0D 01 02 [10:00:47]Write to MH i2c: E2 08 00 00 19 80 0D 01 02 00 00 00 00 92 [10:00:47]Write i2c OK [10:00:47]MH_I2C_Read... [10:00:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:00:47]Read from MH i2c: E2 [10:00:47]MH_I2C_Read... [10:00:47]Read from MH i2c: E2 03 00 [10:00:47]MH_I2C_Read... [10:00:47]Read from MH i2c: E2 03 00 00 19 00 90 00 8D [10:00:47]RAPDU: 90 00 [10:00:47]wFMCommunicate OK [10:00:47]wFMCommunicate request_size=255 [10:00:47]MH_SAM_APDU [10:00:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 51 4A E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 3F E1 01 00 35 04 06 00 75 [10:00:47]Write to MH i2c: E2 02 01 01 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 51 4A E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 3F E1 01 00 35 04 06 00 75 00 00 86 [10:00:47]Write i2c OK [10:00:47]MH_I2C_Read... [10:00:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:48]Read from MH i2c: E2 [10:00:48]MH_I2C_Read... [10:00:48]Read from MH i2c: E2 03 00 [10:00:48]MH_I2C_Read... [10:00:48]Read from MH i2c: E2 03 00 01 19 00 90 00 8E [10:00:48]RAPDU: 90 00 [10:00:48]wFMCommunicate OK [10:00:48]wFMCommunicate request_size=10 [10:00:48]MH_SAM_APDU [10:00:48]CAPDU: 80 0D 02 02 05 60 61 F0 EE 5F [10:00:48]Write to MH i2c: E2 0D 00 02 19 80 0D 02 02 05 00 60 61 F0 EE 5F 00 00 9D [10:00:48]Write i2c OK [10:00:48]MH_I2C_Read... [10:00:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:48]Read from MH i2c: E2 [10:00:48]MH_I2C_Read... [10:00:48]Read from MH i2c: E2 03 00 [10:00:48]MH_I2C_Read... [10:00:48]Read from MH i2c: E2 03 00 02 19 00 90 00 8F [10:00:48]RAPDU: 90 00 [10:00:48]wFMCommunicate OK [10:00:48]wFMCommunicate request_size=4 [10:00:48]MH_SAM_APDU [10:00:48]CAPDU: 80 0D 03 02 [10:00:48]Write to MH i2c: E2 08 00 03 19 80 0D 03 02 00 00 00 00 97 [10:00:48]Write i2c OK [10:00:48]MH_I2C_Read... [10:00:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:00:48]Read from MH i2c: E2 [10:00:48]MH_I2C_Read... [10:00:48]Read from MH i2c: E2 0B 00 [10:00:48]MH_I2C_Read... [10:00:48]Read from MH i2c: E2 0B 00 03 19 00 09 D4 0C 26 21 90 E2 F0 90 00 2A [10:00:48]RAPDU: 09 D4 0C 26 21 90 E2 F0 90 00 [10:00:48]wFMCommunicate OK [10:00:48]SAM_PROTO_SignData done [10:00:48]FM_MakeSignedData done [10:00:48]CreateOFDProtocolMessage [10:00:48]wFMCommunicate request_size=4 [10:00:48]MH_SAM_APDU [10:00:48]CAPDU: 80 11 00 00 [10:00:48]Write to MH i2c: E2 08 00 04 19 80 11 00 00 00 00 00 00 97 [10:00:48]Write i2c OK [10:00:48]MH_I2C_Read... [10:00:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:48]Read from MH i2c: E2 [10:00:48]MH_I2C_Read... [10:00:48]Read from MH i2c: E2 17 00 [10:00:48]MH_I2C_Read... [10:00:48]Read from MH i2c: E2 17 00 04 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 F5 [10:00:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [10:00:48]wFMCommunicate OK [10:00:48]CreateOFDProtocolMessage done [10:00:48]OFDSenderStorePacket 123199 [10:00:48]StoreOFDPacket docnum=123199 [10:00:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 3F FB 07 01 4C 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 51 4A E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 3F E1 01 00 35 04 06 00 75 60 61 F0 EE 5F 09 D4 0C 26 21 90 E2 F0 [10:00:48]CheckFolder [10:00:48]dirname=/storage/ofd_packets [10:00:48]CheckFolder done [10:00:48]ProducePacketName [10:00:48]name=ofd_packets/00123199 [10:00:48]NVStorageSaveData ofd_packets/00123199 [10:00:48]File name is /storage/ofd_packets/00123199 [10:00:48]Write 301 bytes [10:00:48]NVStorageSaveData done [10:00:48]OFDSenderStorePacket done [10:00:48]KKMCreateOFDPacket done [10:00:48]NVStorageSaveData kkm_last_timestamp [10:00:48]File name is /storage/kkm_last_timestamp [10:00:48]Write 4 bytes [10:00:48]NVStorageSaveData done [10:00:48]ExternCall_PrintAddStr [10:00:48]wPrintStart [10:00:48]Write to MH i2c: 01 00 00 05 19 1E [10:00:48]Write i2c OK [10:00:48]MH_I2C_Read... [10:00:48]Read from MH i2c: 01 [10:00:48]MH_I2C_Read... [10:00:48]Read from MH i2c: 01 07 00 [10:00:48]MH_I2C_Read... [10:00:48]Read from MH i2c: 01 07 00 05 19 00 00 00 00 00 FF 0F 33 [10:00:48]RasterBufferAndPrint [10:00:48]line Счет N : (1)1106120 [10:00:48]line ИНН: 02508201610067 [10:00:48]line Контрольно-Кассовый Чек [10:00:48]line ПРОДАЖА [10:00:48]line ТРК (МРК, ГНК) : 52 [10:00:48]line Товар: 2710124130 [10:00:48]line Аи-92-К-5 [10:00:48]line 8.080 * 61.90 [10:00:48]line = 500.15 [10:00:48]line НДС 12% НСП 1% [10:00:48]line > о реализуемом товаре [10:00:48]line ИТОГО: 500.15 [10:00:48]line НСП 1% : 4.43 [10:00:48]line НДС 12% : 53.11 [10:00:48]line Наличными: 0.00 [10:00:48]line Безнал.: 500.15 [10:00:48]line Место: АЗС № 25 "Партнер Нефть" [10:00:48]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [10:00:48]line СНО: Общий режим [10:00:48]line Чек 56 03.03.2024 10:00 [10:00:48]line Смена: 323 ФФД: 1.0 [10:00:48]line ЗНМ: 0300000019 [10:00:48]line РНМ: 0000000000090573 [10:00:48]line Версия ККМ: 001 [10:00:48]line Платежная система: Бакай Банк [10:00:48]line ФМ: 0000000000874798 [10:00:48]line ФД: 123199 [10:00:48]line ФПД: 129056820489823 [10:00:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T100049&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123199&fm=129056820489823&tin=02508201610067®Number=0000000000090573&sum=50015 [10:00:48]OFD Sender: Processing packet 123199 [packets to send 112, broken 111] [10:00:48]ProducePacketName [10:00:48]name=ofd_packets/00123199 [10:00:48]OFD Sender: To server: pG, [10:00:48]CommunicateWithHost lk.salyk.kg:30040 [10:00:48]ConnectInit lk.salyk.kg [10:00:48]written 0, free lines is 4095 [10:00:48]Connected sock=10 [10:00:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 3F FB 07 01 4C 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 51 4A E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 3F E1 01 00 35 04 06 00 75 60 61 F0 EE 5F 09 D4 0C 26 21 90 E2 F0 [10:00:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 86 D4 47 00 22 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 37 39 38 10 04 04 00 3F E1 01 00 F4 03 04 00 7D F6 E3 65 B6 04 01 00 00 00 E4 A0 C7 D7 51 54 FF [10:00:48]CommunicateWithHost err = 0 [10:00:48]CheckOFDResponse [10:00:48]1017 (14) - 77093643461234 [10:00:48]1041 (16) - 0000000000874798 [10:00:48]1040 (4) - 123199 [10:00:48]1012 (4) - 03.03.2024 04:03 [10:00:48]1206 (1) - 0 [10:00:48]OFD Sender: Remove packet 123199 [10:00:48]ProducePacketName [10:00:48]name=ofd_packets/00123199 [10:00:48]NVStorageDeleteData [10:00:49]Write to MH i2c: 01 00 00 2F 19 48 [10:00:49]Write i2c OK [10:00:49]MH_I2C_Read... [10:00:49]Read from MH i2c: 01 [10:00:49]MH_I2C_Read... [10:00:49]Read from MH i2c: 01 07 00 [10:00:49]MH_I2C_Read... [10:00:49]Read from MH i2c: 01 07 00 2F 19 00 00 00 00 00 04 0D 60 [10:00:49]RasterBufferAndPrint [10:00:49]line [10:00:49]line [10:00:49]line [10:00:49]line [10:00:49]line [10:00:49]written 0, free lines is 3338 [10:00:49]MH_Cut [10:00:49]Write to MH i2c: D1 01 00 36 19 01 21 [10:00:49]Write i2c OK [10:00:49]MH_I2C_Read... [10:00:49]Read from MH i2c: D1 [10:00:49]MH_I2C_Read... [10:00:49]Read from MH i2c: D1 01 00 [10:00:49]MH_I2C_Read... [10:00:49]Read from MH i2c: D1 01 00 36 19 00 20 [10:00:49]Write to MH i2c: 01 00 00 37 19 50 [10:00:49]Write i2c OK [10:00:49]MH_I2C_Read... [10:00:49]OFD Sender: No OFD packet to send [10:00:49]*** Cut start [10:00:49]*** Purtial cut [10:00:49]*** Stage 1: CUTSNS_PIN = 1 [10:00:51]Read from MH i2c: 01 [10:00:51]MH_I2C_Read... [10:00:51]*** Stop cut motor [10:00:51]*** Cut end [10:00:51]Read from MH i2c: 01 07 00 [10:00:51]MH_I2C_Read... [10:00:51]Read from MH i2c: 01 07 00 37 19 00 00 00 00 00 FF 0F 65 [10:00:51]process_action close_receipt done [10:00:51]requested_data is exist [10:00:51]produce_requested_data [10:00:51]requested_item fm.sn is exist - process it [10:00:51]wFMCommunicate request_size=4 [10:00:51]MH_SAM_APDU [10:00:51]CAPDU: 80 11 00 00 [10:00:51]Write to MH i2c: E2 08 00 38 19 80 11 00 00 00 00 00 00 CB [10:00:51]Write i2c OK [10:00:51]MH_I2C_Read... [10:00:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:51]Read from MH i2c: E2 [10:00:51]MH_I2C_Read... [10:00:51]Read from MH i2c: E2 17 00 [10:00:51]MH_I2C_Read... [10:00:51]Read from MH i2c: E2 17 00 38 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 29 [10:00:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [10:00:51]wFMCommunicate OK [10:00:51]requested_item fd.num is exist - process it [10:00:51]SAM_PROTO_GetFieldsCounters [10:00:51]wFMCommunicate request_size=4 [10:00:51]MH_SAM_APDU [10:00:51]CAPDU: 80 13 00 00 [10:00:51]Write to MH i2c: E2 08 00 39 19 80 13 00 00 00 00 00 00 CE [10:00:51]Write i2c OK [10:00:51]MH_I2C_Read... [10:00:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:00:51]Read from MH i2c: E2 [10:00:51]MH_I2C_Read... [10:00:51]Read from MH i2c: E2 62 00 [10:00:51]MH_I2C_Read... [10:00:51]Read from MH i2c: E2 62 00 39 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 3F E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 06 [10:00: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 3F E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:00:51]wFMCommunicate OK [10:00:51]SAM_PROTO_GetFieldsCounters done [10:00:51]requested_item shift.num is exist - process it [10:00:51]requested_item shift.opened is exist - process it [10:00:51]req_shift_opened [10:00:51]FM_GetShiftState [10:00:51]SAM_PROTO_GetShiftState [10:00:51]wFMCommunicate request_size=4 [10:00:51]MH_SAM_APDU [10:00:51]CAPDU: 80 13 01 00 [10:00:51]Write to MH i2c: E2 08 00 3A 19 80 13 01 00 00 00 00 00 D0 [10:00:51]Write i2c OK [10:00:51]MH_I2C_Read... [10:00:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:51]Read from MH i2c: E2 [10:00:51]MH_I2C_Read... [10:00:51]Read from MH i2c: E2 0E 00 [10:00:51]MH_I2C_Read... [10:00:51]Read from MH i2c: E2 0E 00 3A 19 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 92 [10:00:51]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [10:00:51]wFMCommunicate OK [10:00:51]SAM_PROTO_GetShiftState done [10:00:51]FM_GetShiftState done [10:00:51]req_shift_opened done [10:00:51]requested_item shift.open_date is exist - process it [10:00:51]req_shift_open_date [10:00:51]req_shift_open_date done [10:00:51]produce_requested_data done [10:00:51]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123199,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [10:00:51]process_action_free close_receipt [10:00:51]json_value_free [10:00:51]json_value_free done [10:00:51]process_json_proto returns [10:00:51]Send response to host [10:00:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123199,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [10:00:51]free response buf [10:00:51]execute_script done [10:00:51]execute_script returns [10:00:51]free content buf [10:00:51]Sock 7.Close socket [10:00:51]Sock 7.Thread stoped [10:00:54]OFD Sender: No OFD packet to send [10:00:59]OFD Sender: No OFD packet to send [10:01:04]OFD Sender: No OFD packet to send [10:01:09]OFD Sender: No OFD packet to send [10:01:14]OFD Sender: No OFD packet to send [10:01:19]OFD Sender: No OFD packet to send [10:01:24]OFD Sender: No OFD packet to send [10:01:29]OFD Sender: No OFD packet to send [10:01:34]OFD Sender: No OFD packet to send [10:01:39]OFD Sender: No OFD packet to send [10:01:43]accept exits with 9 [10:01:43]New connection [10:01:43]New thread 3067252068 created [10:01:43]Thread 3067395428 joined [10:01:43]Waiting for new connection... [10:01:43] Sock 9.Parse request [10:01:43]Sock 9.Check first char [10:01:43]Sock 9.First char is OK [10:01:43]request: POST /json_proto HTTP/1.0 [10:01:43]Method: POST [10:01:43]URL: /json_proto [10:01:43]Method is POST - this is cgi request [10:01:43]url: /json_proto [10:01:43]query_string will be loaded in cgi processing [10:01:43]execute_cgi json_proto POST (null) [10:01:43]execute_cgi path=json_proto method=POST [10:01:43]POST find Content-Length [10:01:43]Host: 172.17.48.197:8080 [10:01:43]Content-Length: 679 [10:01:43]Content-Type: application/json [10:01:43] [10:01:43]POST finish read [10:01:43]Found Content-Length = 679 [10:01:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106121", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 10.510, "sum" : 650.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:43]execute_script... [10:01: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)1106121", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 10.510, "sum" : 650.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:43]POST & json_proto [10:01:43]process_json_proto [10:01:43]json parsed OK: [10:01:43]protocol is kg_v1.0 [10:01:43]action value=close_receipt [10:01:43]process_action close_receipt [10:01:43]cmd_close_receipt [10:01:43]MH_GetDate [10:01:43]Write to MH i2c: F0 00 00 3B 19 43 [10:01:43]Write i2c OK [10:01:43]MH_I2C_Read... [10:01:43]Read from MH i2c: F0 [10:01:43]MH_I2C_Read... [10:01:43]Read from MH i2c: F0 09 00 [10:01:43]MH_I2C_Read... [10:01:43]Read from MH i2c: F0 09 00 3B 19 00 8A 4A E4 65 6C AF E3 65 CC [10:01:43]GetLastDocTimeStamp 1709460049 [10:01:43]current date 1709460106 [10:01:43]FM_GetShiftState [10:01:43]SAM_PROTO_GetShiftState [10:01:43]wFMCommunicate request_size=4 [10:01:43]MH_SAM_APDU [10:01:43]CAPDU: 80 13 01 00 [10:01:43]Write to MH i2c: E2 08 00 3C 19 80 13 01 00 00 00 00 00 D2 [10:01:43]Write i2c OK [10:01:43]MH_I2C_Read... [10:01:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:43]Read from MH i2c: E2 [10:01:43]MH_I2C_Read... [10:01:43]Read from MH i2c: E2 0E 00 [10:01:43]MH_I2C_Read... [10:01:43]Read from MH i2c: E2 0E 00 3C 19 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 94 [10:01:43]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [10:01:43]wFMCommunicate OK [10:01:43]SAM_PROTO_GetShiftState done [10:01:43]FM_GetShiftState done [10:01:43]opened in 1709425579 [10:01:43]opened+sec_in_day 1709511979 [10:01:43]quantity*price = 65056 [10:01:43]sum+1 = 65058 [10:01:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.76 НДС 12% : 69.09 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 57 03.03.2024 10:01 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123200 ФПД: 236531857634884 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T100146&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123200&fm=236531857634884&tin=02508201610067®Number=0000000000090573&sum=65000 [10:01:45]StoreToDocumentArchive [10:01:45]shift 323 fd 123200 [10:01:45]save to /storage/0323/doc_00123200 [10:01:45]save last doc name /storage/0323/doc_00123200 to /storage/kkm_last_doc_name [10:01:45]save OK [10:01:45]Clear old archive folders... [10:01:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:01:45]tlvbuf is 00DA2900 [10:01:45]SAM_PROTO_ClearQueue [10:01:45]wFMCommunicate request_size=4 [10:01:45]MH_SAM_APDU [10:01:45]CAPDU: 80 09 00 00 [10:01:45]Write to MH i2c: E2 08 00 49 19 80 09 00 00 00 00 00 00 D4 [10:01:45]Write i2c OK [10:01:45]MH_I2C_Read... [10:01:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:01:45]Read from MH i2c: E2 [10:01:45]MH_I2C_Read... [10:01:45]Read from MH i2c: E2 03 00 [10:01:45]MH_I2C_Read... [10:01:45]Read from MH i2c: E2 03 00 49 19 00 90 00 D6 [10:01:45]RAPDU: 90 00 [10:01:45]wFMCommunicate OK [10:01:45]SAM_PROTO_ClearQueue done [10:01:45]KKMCreateOFDPacket [10:01:45]OFDProtocolAddRootSTLVToBuf [10:01:45]FM_MakeSignedData [10:01:45]FM_MakeSignedData [10:01:45]SAM_PROTO_SignData [10:01:45]wFMCommunicate request_size=4 [10:01:45]MH_SAM_APDU [10:01:45]CAPDU: 80 0D 01 02 [10:01:45]Write to MH i2c: E2 08 00 4A 19 80 0D 01 02 00 00 00 00 DC [10:01:45]Write i2c OK [10:01:45]MH_I2C_Read... [10:01:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:01:45]Read from MH i2c: E2 [10:01:45]MH_I2C_Read... [10:01:45]Read from MH i2c: E2 03 00 [10:01:45]MH_I2C_Read... [10:01:45]Read from MH i2c: E2 03 00 4A 19 00 90 00 D7 [10:01:45]RAPDU: 90 00 [10:01:45]wFMCommunicate OK [10:01:45]wFMCommunicate request_size=255 [10:01:45]MH_SAM_APDU [10:01: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 35 FF 03 08 00 03 0E 29 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 21 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 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 39 00 00 00 F4 03 04 00 8A 4A E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 40 E1 01 00 35 04 06 00 D7 [10:01:45]Write to MH i2c: E2 02 01 4B 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 29 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 21 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 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 39 00 00 00 F4 03 04 00 8A 4A E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 40 E1 01 00 35 04 06 00 D7 00 00 42 [10:01:45]Write i2c OK [10:01:45]MH_I2C_Read... [10:01:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:45]Read from MH i2c: E2 [10:01:45]MH_I2C_Read... [10:01:45]Read from MH i2c: E2 03 00 [10:01:45]MH_I2C_Read... [10:01:45]Read from MH i2c: E2 03 00 4B 19 00 90 00 D8 [10:01:45]RAPDU: 90 00 [10:01:45]wFMCommunicate OK [10:01:45]wFMCommunicate request_size=10 [10:01:45]MH_SAM_APDU [10:01:45]CAPDU: 80 0D 02 02 05 1F DD 5A 36 44 [10:01:45]Write to MH i2c: E2 0D 00 4C 19 80 0D 02 02 05 00 1F DD 5A 36 44 00 00 B9 [10:01:45]Write i2c OK [10:01:45]MH_I2C_Read... [10:01:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:45]Read from MH i2c: E2 [10:01:45]MH_I2C_Read... [10:01:45]Read from MH i2c: E2 03 00 [10:01:45]MH_I2C_Read... [10:01:45]Read from MH i2c: E2 03 00 4C 19 00 90 00 D9 [10:01:45]RAPDU: 90 00 [10:01:45]wFMCommunicate OK [10:01:45]wFMCommunicate request_size=4 [10:01:45]MH_SAM_APDU [10:01:45]CAPDU: 80 0D 03 02 [10:01:45]Write to MH i2c: E2 08 00 4D 19 80 0D 03 02 00 00 00 00 E1 [10:01:45]Write i2c OK [10:01:45]MH_I2C_Read... [10:01:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:01:45]Read from MH i2c: E2 [10:01:45]MH_I2C_Read... [10:01:45]Read from MH i2c: E2 0B 00 [10:01:45]MH_I2C_Read... [10:01:45]Read from MH i2c: E2 0B 00 4D 19 00 EA 67 FE 7A 1E 12 AE 0C 90 00 95 [10:01:45]RAPDU: EA 67 FE 7A 1E 12 AE 0C 90 00 [10:01:45]wFMCommunicate OK [10:01:45]SAM_PROTO_SignData done [10:01:45]FM_MakeSignedData done [10:01:45]CreateOFDProtocolMessage [10:01:45]wFMCommunicate request_size=4 [10:01:45]MH_SAM_APDU [10:01:45]CAPDU: 80 11 00 00 [10:01:45]Write to MH i2c: E2 08 00 4E 19 80 11 00 00 00 00 00 00 E1 [10:01:45]Write i2c OK [10:01:45]MH_I2C_Read... [10:01:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:45]Read from MH i2c: E2 [10:01:45]MH_I2C_Read... [10:01:45]Read from MH i2c: E2 17 00 [10:01:45]MH_I2C_Read... [10:01:45]Read from MH i2c: E2 17 00 4E 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 3F [10:01:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [10:01:45]wFMCommunicate OK [10:01:45]CreateOFDProtocolMessage done [10:01:45]OFDSenderStorePacket 123200 [10:01:45]StoreOFDPacket docnum=123200 [10:01:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 B1 0E 07 01 19 E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 29 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 21 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 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 39 00 00 00 F4 03 04 00 8A 4A E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 40 E1 01 00 35 04 06 00 D7 1F DD 5A 36 44 EA 67 FE 7A 1E 12 AE 0C [10:01:45]CheckFolder [10:01:45]dirname=/storage/ofd_packets [10:01:45]CheckFolder done [10:01:45]ProducePacketName [10:01:45]name=ofd_packets/00123200 [10:01:45]NVStorageSaveData ofd_packets/00123200 [10:01:45]File name is /storage/ofd_packets/00123200 [10:01:45]Write 301 bytes [10:01:45]NVStorageSaveData done [10:01:45]OFDSenderStorePacket done [10:01:45]KKMCreateOFDPacket done [10:01:45]NVStorageSaveData kkm_last_timestamp [10:01:45]File name is /storage/kkm_last_timestamp [10:01:45]Write 4 bytes [10:01:45]NVStorageSaveData done [10:01:45]ExternCall_PrintAddStr [10:01:45]wPrintStart [10:01:45]Write to MH i2c: 01 00 00 4F 19 68 [10:01:45]Write i2c OK [10:01:45]MH_I2C_Read... [10:01:45]Read from MH i2c: 01 [10:01:45]MH_I2C_Read... [10:01:45]Read from MH i2c: 01 07 00 [10:01:45]MH_I2C_Read... [10:01:45]Read from MH i2c: 01 07 00 4F 19 00 00 00 00 00 FF 0F 7D [10:01:45]RasterBufferAndPrint [10:01:45]line Счет N : (1)1106121 [10:01:45]line ИНН: 02508201610067 [10:01:45]line Контрольно-Кассовый Чек [10:01:45]line ПРОДАЖА [10:01:45]line ТРК (МРК, ГНК) : 21 [10:01:45]line Товар: 2710124130 [10:01:45]line Аи-92-К-5 [10:01:45]line 10.510 * 61.90 [10:01:45]line = 650.57 [10:01:45]line НДС 12% НСП 1% [10:01:45]line > о реализуемом товаре [10:01:45]line ОКРУГЛЕНИЕ: -0.57 [10:01:45]line ИТОГО: 650.00 [10:01:45]line Внесено: 650.00 [10:01:45]line СДАЧА: 0.00 [10:01:45]line НСП 1% : 5.76 [10:01:45]line НДС 12% : 69.09 [10:01:45]line Наличными: 650.00 [10:01:45]line Безнал.: 0.00 [10:01:45]line Место: АЗС № 25 "Партнер Нефть" [10:01:45]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [10:01:45]line СНО: Общий режим [10:01:45]line Чек 57 03.03.2024 10:01 [10:01:45]line Смена: 323 ФФД: 1.0 [10:01:45]line ЗНМ: 0300000019 [10:01:45]line РНМ: 0000000000090573 [10:01:45]line Версия ККМ: 001 [10:01:45]line ФМ: 0000000000874798 [10:01:45]line ФД: 123200 [10:01:45]line ФПД: 236531857634884 [10:01:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T100146&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123200&fm=236531857634884&tin=02508201610067®Number=0000000000090573&sum=65000 [10:01:45]OFD Sender: Processing packet 123200 [packets to send 112, broken 111] [10:01:45]ProducePacketName [10:01:45]name=ofd_packets/00123200 [10:01:45]OFD Sender: To server: pG, [10:01:45]CommunicateWithHost lk.salyk.kg:30040 [10:01:45]ConnectInit lk.salyk.kg [10:01:45]written 0, free lines is 4095 [10:01:45]Connected sock=11 [10:01: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 37 39 38 0F 01 00 00 B1 0E 07 01 19 E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 29 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 21 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 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 39 00 00 00 F4 03 04 00 8A 4A E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 40 E1 01 00 35 04 06 00 D7 1F DD 5A 36 44 EA 67 FE 7A 1E 12 AE 0C [10:01:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 8A F6 47 00 39 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 40 E1 01 00 F4 03 04 00 B6 F6 E3 65 B6 04 01 00 00 19 12 14 EB 0B 5B 5D B3 [10:01:46]CommunicateWithHost err = 0 [10:01:46]CheckOFDResponse [10:01:46]1017 (14) - 77093643461234 [10:01:46]1041 (16) - 0000000000874798 [10:01:46]1040 (4) - 123200 [10:01:46]1012 (4) - 03.03.2024 04:04 [10:01:46]1206 (1) - 0 [10:01:46]OFD Sender: Remove packet 123200 [10:01:46]ProducePacketName [10:01:46]name=ofd_packets/00123200 [10:01:46]NVStorageDeleteData [10:01:46]Write to MH i2c: 01 00 00 7A 19 93 [10:01:46]Write i2c OK [10:01:46]MH_I2C_Read... [10:01:46]Read from MH i2c: 01 [10:01:46]MH_I2C_Read... [10:01:46]Read from MH i2c: 01 07 00 [10:01:46]MH_I2C_Read... [10:01:46]Read from MH i2c: 01 07 00 7A 19 00 00 00 00 00 EC 0C 92 [10:01:46]RasterBufferAndPrint [10:01:46]line [10:01:46]line [10:01:46]line [10:01:46]line [10:01:46]line [10:01:46]written 0, free lines is 3314 [10:01:46]MH_Cut [10:01:46]Write to MH i2c: D1 01 00 81 19 01 6C [10:01:46]Write i2c OK [10:01:46]MH_I2C_Read... [10:01:46]Read from MH i2c: D1 [10:01:46]MH_I2C_Read... [10:01:46]Read from MH i2c: D1 01 00 [10:01:46]MH_I2C_Read... [10:01:46]Read from MH i2c: D1 01 00 81 19 00 6B [10:01:46]Write to MH i2c: 01 00 00 82 19 9B [10:01:46]Write i2c OK [10:01:46]MH_I2C_Read... [10:01:46]OFD Sender: No OFD packet to send [10:01:47]*** Cut start [10:01:47]*** Purtial cut [10:01:47]*** Stage 1: CUTSNS_PIN = 1 [10:01:49]Read from MH i2c: 01 [10:01:49]MH_I2C_Read... [10:01:49]*** Stop cut motor [10:01:49]*** Cut end [10:01:49]Read from MH i2c: 01 07 00 [10:01:49]MH_I2C_Read... [10:01:49]Read from MH i2c: 01 07 00 82 19 00 00 00 00 00 FF 0F B0 [10:01:49]process_action close_receipt done [10:01:49]requested_data is exist [10:01:49]produce_requested_data [10:01:49]requested_item fm.sn is exist - process it [10:01:49]wFMCommunicate request_size=4 [10:01:49]MH_SAM_APDU [10:01:49]CAPDU: 80 11 00 00 [10:01:49]Write to MH i2c: E2 08 00 83 19 80 11 00 00 00 00 00 00 16 [10:01:49]Write i2c OK [10:01:49]MH_I2C_Read... [10:01:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:49]Read from MH i2c: E2 [10:01:49]MH_I2C_Read... [10:01:49]Read from MH i2c: E2 17 00 [10:01:49]MH_I2C_Read... [10:01:49]Read from MH i2c: E2 17 00 83 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 74 [10:01:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [10:01:49]wFMCommunicate OK [10:01:49]requested_item fd.num is exist - process it [10:01:49]SAM_PROTO_GetFieldsCounters [10:01:49]wFMCommunicate request_size=4 [10:01:49]MH_SAM_APDU [10:01:49]CAPDU: 80 13 00 00 [10:01:49]Write to MH i2c: E2 08 00 84 19 80 13 00 00 00 00 00 00 19 [10:01:49]Write i2c OK [10:01:49]MH_I2C_Read... [10:01:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:01:49]Read from MH i2c: E2 [10:01:49]MH_I2C_Read... [10:01:49]Read from MH i2c: E2 62 00 [10:01:49]MH_I2C_Read... [10:01:49]Read from MH i2c: E2 62 00 84 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 40 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 55 [10:01: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 40 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:01:49]wFMCommunicate OK [10:01:49]SAM_PROTO_GetFieldsCounters done [10:01:49]requested_item shift.num is exist - process it [10:01:49]requested_item shift.opened is exist - process it [10:01:49]req_shift_opened [10:01:49]FM_GetShiftState [10:01:49]SAM_PROTO_GetShiftState [10:01:49]wFMCommunicate request_size=4 [10:01:49]MH_SAM_APDU [10:01:49]CAPDU: 80 13 01 00 [10:01:49]Write to MH i2c: E2 08 00 85 19 80 13 01 00 00 00 00 00 1B [10:01:49]Write i2c OK [10:01:49]MH_I2C_Read... [10:01:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:49]Read from MH i2c: E2 [10:01:49]MH_I2C_Read... [10:01:49]Read from MH i2c: E2 0E 00 [10:01:49]MH_I2C_Read... [10:01:49]Read from MH i2c: E2 0E 00 85 19 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 DD [10:01:49]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [10:01:49]wFMCommunicate OK [10:01:49]SAM_PROTO_GetShiftState done [10:01:49]FM_GetShiftState done [10:01:49]req_shift_opened done [10:01:49]requested_item shift.open_date is exist - process it [10:01:49]req_shift_open_date [10:01:49]req_shift_open_date done [10:01:49]produce_requested_data done [10:01:49]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123200,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [10:01:49]process_action_free close_receipt [10:01:49]json_value_free [10:01:49]json_value_free done [10:01:49]process_json_proto returns [10:01:49]Send response to host [10:01:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123200,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [10:01:49]free response buf [10:01:49]execute_script done [10:01:49]execute_script returns [10:01:49]free content buf [10:01:49]Sock 9.Close socket [10:01:49]Sock 9.Thread stoped [10:01:51]OFD Sender: No OFD packet to send [10:01:56]OFD Sender: No OFD packet to send [10:01:58]accept exits with 7 [10:01:58]New connection [10:01:58]New thread 3067395428 created [10:01:58]Thread 3067252068 joined [10:01:58]Waiting for new connection... [10:01:58] Sock 7.Parse request [10:01:58]Sock 7.Check first char [10:01:58]Sock 7.First char is OK [10:01:58]request: POST /json_proto HTTP/1.0 [10:01:58]Method: POST [10:01:58]URL: /json_proto [10:01:58]Method is POST - this is cgi request [10:01:58]url: /json_proto [10:01:58]query_string will be loaded in cgi processing [10:01:58]execute_cgi json_proto POST (null) [10:01:58]execute_cgi path=json_proto method=POST [10:01:58]POST find Content-Length [10:01:58]Host: 172.17.48.197:8080 [10:01:58]Content-Length: 678 [10:01:58]Content-Type: application/json [10:01:58] [10:01:58]POST finish read [10:01:58]Found Content-Length = 678 [10:01:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106122", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:58]execute_script... [10:01: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)1106122", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:58]POST & json_proto [10:01:58]process_json_proto [10:01:58]json parsed OK: [10:01:58]protocol is kg_v1.0 [10:01:58]action value=close_receipt [10:01:58]process_action close_receipt [10:01:58]cmd_close_receipt [10:01:58]MH_GetDate [10:01:58]Write to MH i2c: F0 00 00 86 19 8E [10:01:58]Write i2c OK [10:01:58]MH_I2C_Read... [10:01:58]Read from MH i2c: F0 [10:01:58]MH_I2C_Read... [10:01:58]Read from MH i2c: F0 09 00 [10:01:58]MH_I2C_Read... [10:01:58]Read from MH i2c: F0 09 00 86 19 00 99 4A E4 65 6C AF E3 65 26 [10:01:58]GetLastDocTimeStamp 1709460106 [10:01:58]current date 1709460121 [10:01:58]FM_GetShiftState [10:01:58]SAM_PROTO_GetShiftState [10:01:58]wFMCommunicate request_size=4 [10:01:58]MH_SAM_APDU [10:01:58]CAPDU: 80 13 01 00 [10:01:58]Write to MH i2c: E2 08 00 87 19 80 13 01 00 00 00 00 00 1D [10:01:58]Write i2c OK [10:01:58]MH_I2C_Read... [10:01:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:59]Read from MH i2c: E2 [10:01:59]MH_I2C_Read... [10:01:59]Read from MH i2c: E2 0E 00 [10:01:59]MH_I2C_Read... [10:01:59]Read from MH i2c: E2 0E 00 87 19 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 DF [10:01:59]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [10:01:59]wFMCommunicate OK [10:01:59]SAM_PROTO_GetShiftState done [10:01:59]FM_GetShiftState done [10:01:59]opened in 1709425579 [10:01:59]opened+sec_in_day 1709511979 [10:01:59]quantity*price = 50015 [10:01:59]sum+1 = 50016 [10:01:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 58 03.03.2024 10:02 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123201 ФПД: 179985173437685 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T100201&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123201&fm=179985173437685&tin=02508201610067®Number=0000000000090573&sum=50000 [10:02:00]StoreToDocumentArchive [10:02:00]shift 323 fd 123201 [10:02:00]save to /storage/0323/doc_00123201 [10:02:00]save last doc name /storage/0323/doc_00123201 to /storage/kkm_last_doc_name [10:02:00]save OK [10:02:00]Clear old archive folders... [10:02:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:02:00]tlvbuf is 00E3F990 [10:02:00]SAM_PROTO_ClearQueue [10:02:00]wFMCommunicate request_size=4 [10:02:00]MH_SAM_APDU [10:02:00]CAPDU: 80 09 00 00 [10:02:00]Write to MH i2c: E2 08 00 94 19 80 09 00 00 00 00 00 00 1F [10:02:00]Write i2c OK [10:02:00]MH_I2C_Read... [10:02:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:02:00]Read from MH i2c: E2 [10:02:00]MH_I2C_Read... [10:02:00]Read from MH i2c: E2 03 00 [10:02:00]MH_I2C_Read... [10:02:00]Read from MH i2c: E2 03 00 94 19 00 90 00 21 [10:02:00]RAPDU: 90 00 [10:02:00]wFMCommunicate OK [10:02:00]SAM_PROTO_ClearQueue done [10:02:00]KKMCreateOFDPacket [10:02:00]OFDProtocolAddRootSTLVToBuf [10:02:00]FM_MakeSignedData [10:02:00]FM_MakeSignedData [10:02:00]SAM_PROTO_SignData [10:02:00]wFMCommunicate request_size=4 [10:02:00]MH_SAM_APDU [10:02:00]CAPDU: 80 0D 01 02 [10:02:00]Write to MH i2c: E2 08 00 95 19 80 0D 01 02 00 00 00 00 27 [10:02:00]Write i2c OK [10:02:00]MH_I2C_Read... [10:02:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:02:00]Read from MH i2c: E2 [10:02:00]MH_I2C_Read... [10:02:00]Read from MH i2c: E2 03 00 [10:02:00]MH_I2C_Read... [10:02:00]Read from MH i2c: E2 03 00 95 19 00 90 00 22 [10:02:00]RAPDU: 90 00 [10:02:00]wFMCommunicate OK [10:02:00]wFMCommunicate request_size=255 [10:02:00]MH_SAM_APDU [10:02: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 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 99 4A E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 41 E1 01 00 35 04 06 00 A3 [10:02:00]Write to MH i2c: E2 02 01 96 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 99 4A E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 41 E1 01 00 35 04 06 00 A3 00 00 77 [10:02:00]Write i2c OK [10:02:00]MH_I2C_Read... [10:02:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:00]Read from MH i2c: E2 [10:02:00]MH_I2C_Read... [10:02:00]Read from MH i2c: E2 03 00 [10:02:00]MH_I2C_Read... [10:02:00]Read from MH i2c: E2 03 00 96 19 00 90 00 23 [10:02:00]RAPDU: 90 00 [10:02:00]wFMCommunicate OK [10:02:00]wFMCommunicate request_size=10 [10:02:00]MH_SAM_APDU [10:02:00]CAPDU: 80 0D 02 02 05 B2 10 53 DC F5 [10:02:00]Write to MH i2c: E2 0D 00 97 19 80 0D 02 02 05 00 B2 10 53 DC F5 00 00 1A [10:02:00]Write i2c OK [10:02:00]MH_I2C_Read... [10:02:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:00]Read from MH i2c: E2 [10:02:00]MH_I2C_Read... [10:02:00]Read from MH i2c: E2 03 00 [10:02:00]MH_I2C_Read... [10:02:00]Read from MH i2c: E2 03 00 97 19 00 90 00 24 [10:02:00]RAPDU: 90 00 [10:02:00]wFMCommunicate OK [10:02:00]wFMCommunicate request_size=4 [10:02:00]MH_SAM_APDU [10:02:00]CAPDU: 80 0D 03 02 [10:02:00]Write to MH i2c: E2 08 00 98 19 80 0D 03 02 00 00 00 00 2C [10:02:00]Write i2c OK [10:02:00]MH_I2C_Read... [10:02:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:02:00]Read from MH i2c: E2 [10:02:00]MH_I2C_Read... [10:02:00]Read from MH i2c: E2 0B 00 [10:02:00]MH_I2C_Read... [10:02:00]Read from MH i2c: E2 0B 00 98 19 00 24 1B D2 48 F0 E4 EA 87 90 00 CB [10:02:00]RAPDU: 24 1B D2 48 F0 E4 EA 87 90 00 [10:02:00]wFMCommunicate OK [10:02:00]SAM_PROTO_SignData done [10:02:00]FM_MakeSignedData done [10:02:00]CreateOFDProtocolMessage [10:02:00]wFMCommunicate request_size=4 [10:02:00]MH_SAM_APDU [10:02:00]CAPDU: 80 11 00 00 [10:02:00]Write to MH i2c: E2 08 00 99 19 80 11 00 00 00 00 00 00 2C [10:02:00]Write i2c OK [10:02:00]MH_I2C_Read... [10:02:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:00]Read from MH i2c: E2 [10:02:00]MH_I2C_Read... [10:02:00]Read from MH i2c: E2 17 00 [10:02:00]MH_I2C_Read... [10:02:00]Read from MH i2c: E2 17 00 99 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 8A [10:02:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [10:02:00]wFMCommunicate OK [10:02:00]CreateOFDProtocolMessage done [10:02:00]OFDSenderStorePacket 123201 [10:02:00]StoreOFDPacket docnum=123201 [10:02:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 43 EE 07 01 52 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 99 4A E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 41 E1 01 00 35 04 06 00 A3 B2 10 53 DC F5 24 1B D2 48 F0 E4 EA 87 [10:02:00]CheckFolder [10:02:00]dirname=/storage/ofd_packets [10:02:00]CheckFolder done [10:02:00]ProducePacketName [10:02:00]name=ofd_packets/00123201 [10:02:00]NVStorageSaveData ofd_packets/00123201 [10:02:00]File name is /storage/ofd_packets/00123201 [10:02:00]Write 301 bytes [10:02:00]NVStorageSaveData done [10:02:00]OFDSenderStorePacket done [10:02:00]KKMCreateOFDPacket done [10:02:00]NVStorageSaveData kkm_last_timestamp [10:02:00]File name is /storage/kkm_last_timestamp [10:02:00]Write 4 bytes [10:02:00]NVStorageSaveData done [10:02:00]ExternCall_PrintAddStr [10:02:00]wPrintStart [10:02:00]Write to MH i2c: 01 00 00 9A 19 B3 [10:02:00]Write i2c OK [10:02:00]MH_I2C_Read... [10:02:00]Read from MH i2c: 01 [10:02:00]MH_I2C_Read... [10:02:00]Read from MH i2c: 01 07 00 [10:02:00]MH_I2C_Read... [10:02:00]Read from MH i2c: 01 07 00 9A 19 00 00 00 00 00 FF 0F C8 [10:02:00]RasterBufferAndPrint [10:02:00]line Счет N : (1)1106122 [10:02:00]line ИНН: 02508201610067 [10:02:00]line Контрольно-Кассовый Чек [10:02:00]line ПРОДАЖА [10:02:00]line ТРК (МРК, ГНК) : 62 [10:02:00]line Товар: 2710124130 [10:02:00]line Аи-92-К-5 [10:02:00]line 8.080 * 61.90 [10:02:00]line = 500.15 [10:02:00]line НДС 12% НСП 1% [10:02:00]line > о реализуемом товаре [10:02:00]line ОКРУГЛЕНИЕ: -0.15 [10:02:00]line ИТОГО: 500.00 [10:02:00]line Внесено: 500.00 [10:02:00]line СДАЧА: 0.00 [10:02:00]line НСП 1% : 4.43 [10:02:00]line НДС 12% : 53.11 [10:02:00]line Наличными: 500.00 [10:02:00]line Безнал.: 0.00 [10:02:00]line Место: АЗС № 25 "Партнер Нефть" [10:02:00]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [10:02:00]line СНО: Общий режим [10:02:00]line Чек 58 03.03.2024 10:02 [10:02:00]line Смена: 323 ФФД: 1.0 [10:02:00]line ЗНМ: 0300000019 [10:02:00]line РНМ: 0000000000090573 [10:02:00]line Версия ККМ: 001 [10:02:00]line ФМ: 0000000000874798 [10:02:00]line ФД: 123201 [10:02:00]line ФПД: 179985173437685 [10:02:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T100201&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123201&fm=179985173437685&tin=02508201610067®Number=0000000000090573&sum=50000 [10:02:01]OFD Sender: Processing packet 123201 [packets to send 112, broken 111] [10:02:01]ProducePacketName [10:02:01]name=ofd_packets/00123201 [10:02:01]OFD Sender: To server: pG, [10:02:01]CommunicateWithHost lk.salyk.kg:30040 [10:02:01]ConnectInit lk.salyk.kg [10:02:01]written 0, free lines is 4095 [10:02:01]Connected sock=10 [10:02: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 37 39 38 0F 01 00 00 43 EE 07 01 52 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 99 4A E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 41 E1 01 00 35 04 06 00 A3 B2 10 53 DC F5 24 1B D2 48 F0 E4 EA 87 [10:02:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 AB AC 47 00 D1 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 37 39 38 10 04 04 00 41 E1 01 00 F4 03 04 00 C5 F6 E3 65 B6 04 01 00 00 0D 14 D2 89 08 D4 55 81 [10:02:01]CommunicateWithHost err = 0 [10:02:01]CheckOFDResponse [10:02:01]1017 (14) - 77093643461234 [10:02:01]1041 (16) - 0000000000874798 [10:02:01]1040 (4) - 123201 [10:02:01]1012 (4) - 03.03.2024 04:04 [10:02:01]1206 (1) - 0 [10:02:01]OFD Sender: Remove packet 123201 [10:02:01]ProducePacketName [10:02:01]name=ofd_packets/00123201 [10:02:01]NVStorageDeleteData [10:02:01]Write to MH i2c: 01 00 00 C5 19 DE [10:02:01]Write i2c OK [10:02:01]MH_I2C_Read... [10:02:01]Read from MH i2c: 01 [10:02:01]MH_I2C_Read... [10:02:01]Read from MH i2c: 01 07 00 [10:02:01]MH_I2C_Read... [10:02:01]Read from MH i2c: 01 07 00 C5 19 00 00 00 00 00 EA 0C DB [10:02:01]RasterBufferAndPrint [10:02:01]line [10:02:01]line [10:02:01]line [10:02:01]line [10:02:01]line [10:02:01]written 0, free lines is 3312 [10:02:01]MH_Cut [10:02:01]Write to MH i2c: D1 01 00 CC 19 01 B7 [10:02:01]Write i2c OK [10:02:01]MH_I2C_Read... [10:02:01]Read from MH i2c: D1 [10:02:01]MH_I2C_Read... [10:02:01]Read from MH i2c: D1 01 00 [10:02:01]MH_I2C_Read... [10:02:01]Read from MH i2c: D1 01 00 CC 19 00 B6 [10:02:01]Write to MH i2c: 01 00 00 CD 19 E6 [10:02:01]Write i2c OK [10:02:01]MH_I2C_Read... [10:02:01]OFD Sender: No OFD packet to send [10:02:02]*** Cut start [10:02:02]*** Purtial cut [10:02:02]*** Stage 1: CUTSNS_PIN = 1 [10:02:04]Read from MH i2c: 01 [10:02:04]MH_I2C_Read... [10:02:04]*** Stop cut motor [10:02:04]*** Cut end [10:02:04]Read from MH i2c: 01 07 00 [10:02:04]MH_I2C_Read... [10:02:04]Read from MH i2c: 01 07 00 CD 19 00 00 00 00 00 FF 0F FB [10:02:04]process_action close_receipt done [10:02:04]requested_data is exist [10:02:04]produce_requested_data [10:02:04]requested_item fm.sn is exist - process it [10:02:04]wFMCommunicate request_size=4 [10:02:04]MH_SAM_APDU [10:02:04]CAPDU: 80 11 00 00 [10:02:04]Write to MH i2c: E2 08 00 CE 19 80 11 00 00 00 00 00 00 61 [10:02:04]Write i2c OK [10:02:04]MH_I2C_Read... [10:02:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:04]Read from MH i2c: E2 [10:02:04]MH_I2C_Read... [10:02:04]Read from MH i2c: E2 17 00 [10:02:04]MH_I2C_Read... [10:02:04]Read from MH i2c: E2 17 00 CE 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 BF [10:02:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [10:02:04]wFMCommunicate OK [10:02:04]requested_item fd.num is exist - process it [10:02:04]SAM_PROTO_GetFieldsCounters [10:02:04]wFMCommunicate request_size=4 [10:02:04]MH_SAM_APDU [10:02:04]CAPDU: 80 13 00 00 [10:02:04]Write to MH i2c: E2 08 00 CF 19 80 13 00 00 00 00 00 00 64 [10:02:04]Write i2c OK [10:02:04]MH_I2C_Read... [10:02:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:02:04]Read from MH i2c: E2 [10:02:04]MH_I2C_Read... [10:02:04]Read from MH i2c: E2 62 00 [10:02:04]MH_I2C_Read... [10:02:04]Read from MH i2c: E2 62 00 CF 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 41 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 A4 [10:02: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 41 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:02:04]wFMCommunicate OK [10:02:04]SAM_PROTO_GetFieldsCounters done [10:02:04]requested_item shift.num is exist - process it [10:02:04]requested_item shift.opened is exist - process it [10:02:04]req_shift_opened [10:02:04]FM_GetShiftState [10:02:04]SAM_PROTO_GetShiftState [10:02:04]wFMCommunicate request_size=4 [10:02:04]MH_SAM_APDU [10:02:04]CAPDU: 80 13 01 00 [10:02:04]Write to MH i2c: E2 08 00 D0 19 80 13 01 00 00 00 00 00 66 [10:02:04]Write i2c OK [10:02:04]MH_I2C_Read... [10:02:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:04]Read from MH i2c: E2 [10:02:04]MH_I2C_Read... [10:02:04]Read from MH i2c: E2 0E 00 [10:02:04]MH_I2C_Read... [10:02:04]Read from MH i2c: E2 0E 00 D0 19 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 28 [10:02:04]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [10:02:04]wFMCommunicate OK [10:02:04]SAM_PROTO_GetShiftState done [10:02:04]FM_GetShiftState done [10:02:04]req_shift_opened done [10:02:04]requested_item shift.open_date is exist - process it [10:02:04]req_shift_open_date [10:02:04]req_shift_open_date done [10:02:04]produce_requested_data done [10:02:04]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123201,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [10:02:04]process_action_free close_receipt [10:02:04]json_value_free [10:02:04]json_value_free done [10:02:04]process_json_proto returns [10:02:04]Send response to host [10:02:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123201,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [10:02:04]free response buf [10:02:04]execute_script done [10:02:04]execute_script returns [10:02:04]free content buf [10:02:04]Sock 7.Close socket [10:02:04]Sock 7.Thread stoped [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:41]OFD Sender: No OFD packet to send [10:04:46]OFD Sender: No OFD packet to send [10:04:51]OFD Sender: No OFD packet to send [10:04:56]OFD Sender: No OFD packet to send [10:05:01]OFD Sender: No OFD packet to send [10:05:06]OFD Sender: No OFD packet to send [10:05:11]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:31]accept exits with 9 [10:05:31]New connection [10:05:31]New thread 3067252068 created [10:05:31]Thread 3067395428 joined [10:05:31]Waiting for new connection... [10:05:31] Sock 9.Parse request [10:05:31]Sock 9.Check first char [10:05:31]Sock 9.First char is OK [10:05:31]request: POST /json_proto HTTP/1.0 [10:05:31]Method: POST [10:05:31]URL: /json_proto [10:05:31]Method is POST - this is cgi request [10:05:31]url: /json_proto [10:05:31]query_string will be loaded in cgi processing [10:05:31]execute_cgi json_proto POST (null) [10:05:31]execute_cgi path=json_proto method=POST [10:05:31]POST find Content-Length [10:05:31]Host: 172.17.48.197:8080 [10:05:31]Content-Length: 1217 [10:05:31]Content-Type: application/json [10:05:31] [10:05:31]POST finish read [10:05:31]Found Content-Length = 1217 [10:05:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106123\u000A03.03.2024 10:01\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 52\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 619.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3862604\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:05:31]execute_script... [10:05:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106123\u000A03.03.2024 10:01\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 52\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 619.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3862604\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:05:31]POST & json_proto [10:05:31]process_json_proto [10:05:31]json parsed OK: [10:05:31]protocol is kg_v1.0 [10:05:31]action value=print_text [10:05:31]process_action print_text [10:05:31]cmd_print_text [10:05:31]ExternCall_PrintAddStr [10:05:31]wPrintStart [10:05:31]Write to MH i2c: 01 00 00 D1 19 EA [10:05:31]Write i2c OK [10:05:31]MH_I2C_Read... [10:05:31]Read from MH i2c: 01 [10:05:31]MH_I2C_Read... [10:05:31]Read from MH i2c: 01 07 00 [10:05:31]MH_I2C_Read... [10:05:31]Read from MH i2c: 01 07 00 D1 19 00 00 00 00 00 FF 0F FF [10:05:31]RasterBufferAndPrint [10:05:31]line *****ТОВАРНЫЙ ЧЕК***** [10:05:31]line АЗС 25 [10:05:31]line Партнер нефть [10:05:31]line 02508201610067 [10:05:31]line Кассир : Турдумбек у. К. [10:05:31]line Счет N : (1)1106123 [10:05:31]line 03.03.2024 10:01 [10:05:31]line ПРОДАЖА [10:05:31]line ТРК (МРК, ГНК): 52 [10:05:31]line Вид ГСМ : 2710124130 [10:05:31]line Аи-92-К-5 [10:05:31]line 10.000 x 61.90 [10:05:31]line ИТОГ: 619.00 [10:05:31]line Тип оплаты: Талоны: Топливные Талоны [10:05:31]line 3862604 [10:05:31]line ______________________ [10:05:31]line (подпись) [10:05:31]written 0, free lines is 4095 [10:05:31]Write to MH i2c: 01 00 00 E6 19 FF [10:05:31]Write i2c OK [10:05:31]MH_I2C_Read... [10:05:31]Read from MH i2c: 01 [10:05:31]MH_I2C_Read... [10:05:31]Read from MH i2c: 01 07 00 [10:05:31]MH_I2C_Read... [10:05:31]Read from MH i2c: 01 07 00 E6 19 00 00 00 00 00 F6 0D 09 [10:05:31]RasterBufferAndPrint [10:05:31]line [10:05:31]line [10:05:31]line [10:05:31]line [10:05:31]line [10:05:31]written 0, free lines is 3576 [10:05:31]MH_Cut [10:05:31]Write to MH i2c: D1 01 00 ED 19 01 D8 [10:05:31]Write i2c OK [10:05:31]MH_I2C_Read... [10:05:31]Read from MH i2c: D1 [10:05:31]MH_I2C_Read... [10:05:31]Read from MH i2c: D1 01 00 [10:05:31]MH_I2C_Read... [10:05:31]Read from MH i2c: D1 01 00 ED 19 00 D7 [10:05:31]Write to MH i2c: 01 00 00 EE 19 07 [10:05:31]Write i2c OK [10:05:31]MH_I2C_Read... [10:05:32]OFD Sender: No OFD packet to send [10:05:32]*** Cut start [10:05:32]*** Purtial cut [10:05:32]*** Stage 1: CUTSNS_PIN = 1 [10:05:34]Read from MH i2c: 01 [10:05:34]MH_I2C_Read... [10:05:34]*** Stop cut motor [10:05:34]*** Cut end [10:05:34]Read from MH i2c: 01 07 00 [10:05:34]MH_I2C_Read... [10:05:34]Read from MH i2c: 01 07 00 EE 19 00 00 00 00 00 FF 0F 1C [10:05:34]process_action print_text done [10:05:34]requested_data is exist [10:05:34]produce_requested_data [10:05:34]requested_item fm.sn is exist - process it [10:05:34]wFMCommunicate request_size=4 [10:05:34]MH_SAM_APDU [10:05:34]CAPDU: 80 11 00 00 [10:05:34]Write to MH i2c: E2 08 00 EF 19 80 11 00 00 00 00 00 00 82 [10:05:34]Write i2c OK [10:05:34]MH_I2C_Read... [10:05:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:34]Read from MH i2c: E2 [10:05:34]MH_I2C_Read... [10:05:34]Read from MH i2c: E2 17 00 [10:05:34]MH_I2C_Read... [10:05:34]Read from MH i2c: E2 17 00 EF 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 E0 [10:05:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [10:05:34]wFMCommunicate OK [10:05:34]requested_item fd.num is exist - process it [10:05:34]SAM_PROTO_GetFieldsCounters [10:05:34]wFMCommunicate request_size=4 [10:05:34]MH_SAM_APDU [10:05:34]CAPDU: 80 13 00 00 [10:05:34]Write to MH i2c: E2 08 00 F0 19 80 13 00 00 00 00 00 00 85 [10:05:34]Write i2c OK [10:05:34]MH_I2C_Read... [10:05:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:05:34]Read from MH i2c: E2 [10:05:34]MH_I2C_Read... [10:05:34]Read from MH i2c: E2 62 00 [10:05:34]MH_I2C_Read... [10:05:34]Read from MH i2c: E2 62 00 F0 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 41 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 C5 [10:05: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 41 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:05:34]wFMCommunicate OK [10:05:34]SAM_PROTO_GetFieldsCounters done [10:05:34]requested_item shift.num is exist - process it [10:05:34]requested_item shift.opened is exist - process it [10:05:34]req_shift_opened [10:05:34]FM_GetShiftState [10:05:34]SAM_PROTO_GetShiftState [10:05:34]wFMCommunicate request_size=4 [10:05:34]MH_SAM_APDU [10:05:34]CAPDU: 80 13 01 00 [10:05:34]Write to MH i2c: E2 08 00 F1 19 80 13 01 00 00 00 00 00 87 [10:05:34]Write i2c OK [10:05:34]MH_I2C_Read... [10:05:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:34]Read from MH i2c: E2 [10:05:34]MH_I2C_Read... [10:05:34]Read from MH i2c: E2 0E 00 [10:05:34]MH_I2C_Read... [10:05:34]Read from MH i2c: E2 0E 00 F1 19 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 49 [10:05:34]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [10:05:34]wFMCommunicate OK [10:05:34]SAM_PROTO_GetShiftState done [10:05:34]FM_GetShiftState done [10:05:34]req_shift_opened done [10:05:34]requested_item shift.open_date is exist - process it [10:05:34]req_shift_open_date [10:05:34]req_shift_open_date done [10:05:34]produce_requested_data done [10:05:34]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123201,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [10:05:34]process_action_free print_text [10:05:34]json_value_free [10:05:34]json_value_free done [10:05:34]process_json_proto returns [10:05:34]Send response to host [10:05:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123201,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [10:05:34]free response buf [10:05:34]execute_script done [10:05:34]execute_script returns [10:05:34]free content buf [10:05:34]Sock 9.Close socket [10:05:34]Sock 9.Thread stoped [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:41]accept exits with 7 [10:06:41]New connection [10:06:41]New thread 3067395428 created [10:06:41]Thread 3067252068 joined [10:06:41]Waiting for new connection... [10:06:41] Sock 7.Parse request [10:06:41]Sock 7.Check first char [10:06:41]Sock 7.First char is OK [10:06:41]request: POST /json_proto HTTP/1.0 [10:06:41]Method: POST [10:06:41]URL: /json_proto [10:06:41]Method is POST - this is cgi request [10:06:41]url: /json_proto [10:06:41]query_string will be loaded in cgi processing [10:06:41]execute_cgi json_proto POST (null) [10:06:41]execute_cgi path=json_proto method=POST [10:06:41]POST find Content-Length [10:06:41]Host: 172.17.48.197:8080 [10:06:41]Content-Length: 806 [10:06:41]Content-Type: application/json [10:06:41] [10:06:41]POST finish read [10:06:41]Found Content-Length = 806 [10:06:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106124", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:06:41]execute_script... [10:06: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)1106124", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:06:41]POST & json_proto [10:06:41]process_json_proto [10:06:41]json parsed OK: [10:06:41]protocol is kg_v1.0 [10:06:41]action value=close_receipt [10:06:41]process_action close_receipt [10:06:41]cmd_close_receipt [10:06:41]MH_GetDate [10:06:41]Write to MH i2c: F0 00 00 F2 19 FA [10:06:41]Write i2c OK [10:06:41]MH_I2C_Read... [10:06:41]Read from MH i2c: F0 [10:06:41]MH_I2C_Read... [10:06:41]Read from MH i2c: F0 09 00 [10:06:41]MH_I2C_Read... [10:06:41]Read from MH i2c: F0 09 00 F2 19 00 B4 4B E4 65 6C AF E3 65 AE [10:06:41]GetLastDocTimeStamp 1709460121 [10:06:41]current date 1709460404 [10:06:41]FM_GetShiftState [10:06:41]SAM_PROTO_GetShiftState [10:06:41]wFMCommunicate request_size=4 [10:06:41]MH_SAM_APDU [10:06:41]CAPDU: 80 13 01 00 [10:06:41]Write to MH i2c: E2 08 00 F3 19 80 13 01 00 00 00 00 00 89 [10:06:41]Write i2c OK [10:06:41]MH_I2C_Read... [10:06:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:06:41]Read from MH i2c: E2 [10:06:41]MH_I2C_Read... [10:06:41]Read from MH i2c: E2 0E 00 [10:06:41]MH_I2C_Read... [10:06:41]Read from MH i2c: E2 0E 00 F3 19 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 4B [10:06:41]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [10:06:41]wFMCommunicate OK [10:06:41]SAM_PROTO_GetShiftState done [10:06:41]FM_GetShiftState done [10:06:41]opened in 1709425579 [10:06:41]opened+sec_in_day 1709511979 [10:06:41]quantity*price = 50015 [10:06:41]sum+1 = 50016 [10:06:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.15 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.15 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 59 03.03.2024 10:06 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874798 ФД: 123202 ФПД: 117125468091892 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T100644&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123202&fm=117125468091892&tin=02508201610067®Number=0000000000090573&sum=50015 [10:06:42]StoreToDocumentArchive [10:06:42]shift 323 fd 123202 [10:06:42]save to /storage/0323/doc_00123202 [10:06:42]save last doc name /storage/0323/doc_00123202 to /storage/kkm_last_doc_name [10:06:42]save OK [10:06:42]Clear old archive folders... [10:06:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:06:42]tlvbuf is 00DDEA40 [10:06:42]SAM_PROTO_ClearQueue [10:06:42]wFMCommunicate request_size=4 [10:06:42]MH_SAM_APDU [10:06:42]CAPDU: 80 09 00 00 [10:06:42]Write to MH i2c: E2 08 00 00 1A 80 09 00 00 00 00 00 00 8C [10:06:42]Write i2c OK [10:06:42]MH_I2C_Read... [10:06:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:06:42]Read from MH i2c: E2 [10:06:42]MH_I2C_Read... [10:06:42]Read from MH i2c: E2 03 00 [10:06:42]MH_I2C_Read... [10:06:42]Read from MH i2c: E2 03 00 00 1A 00 90 00 8E [10:06:42]RAPDU: 90 00 [10:06:42]wFMCommunicate OK [10:06:42]SAM_PROTO_ClearQueue done [10:06:42]KKMCreateOFDPacket [10:06:42]OFDProtocolAddRootSTLVToBuf [10:06:42]FM_MakeSignedData [10:06:42]FM_MakeSignedData [10:06:42]SAM_PROTO_SignData [10:06:42]wFMCommunicate request_size=4 [10:06:42]MH_SAM_APDU [10:06:42]CAPDU: 80 0D 01 02 [10:06:42]Write to MH i2c: E2 08 00 01 1A 80 0D 01 02 00 00 00 00 94 [10:06:42]Write i2c OK [10:06:42]MH_I2C_Read... [10:06:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:06:42]Read from MH i2c: E2 [10:06:42]MH_I2C_Read... [10:06:42]Read from MH i2c: E2 03 00 [10:06:42]MH_I2C_Read... [10:06:42]Read from MH i2c: E2 03 00 01 1A 00 90 00 8F [10:06:42]RAPDU: 90 00 [10:06:42]wFMCommunicate OK [10:06:42]wFMCommunicate request_size=255 [10:06:42]MH_SAM_APDU [10:06:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 B4 4B E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 42 E1 01 00 35 04 06 00 6A [10:06:42]Write to MH i2c: E2 02 01 02 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 B4 4B E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 42 E1 01 00 35 04 06 00 6A 00 00 E7 [10:06:42]Write i2c OK [10:06:42]MH_I2C_Read... [10:06:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:06:43]Read from MH i2c: E2 [10:06:43]MH_I2C_Read... [10:06:43]Read from MH i2c: E2 03 00 [10:06:43]MH_I2C_Read... [10:06:43]Read from MH i2c: E2 03 00 02 1A 00 90 00 90 [10:06:43]RAPDU: 90 00 [10:06:43]wFMCommunicate OK [10:06:43]wFMCommunicate request_size=10 [10:06:43]MH_SAM_APDU [10:06:43]CAPDU: 80 0D 02 02 05 86 65 EB 75 F4 [10:06:43]Write to MH i2c: E2 0D 00 03 1A 80 0D 02 02 05 00 86 65 EB 75 F4 00 00 E0 [10:06:43]Write i2c OK [10:06:43]MH_I2C_Read... [10:06:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:06:43]Read from MH i2c: E2 [10:06:43]MH_I2C_Read... [10:06:43]Read from MH i2c: E2 03 00 [10:06:43]MH_I2C_Read... [10:06:43]Read from MH i2c: E2 03 00 03 1A 00 90 00 91 [10:06:43]RAPDU: 90 00 [10:06:43]wFMCommunicate OK [10:06:43]wFMCommunicate request_size=4 [10:06:43]MH_SAM_APDU [10:06:43]CAPDU: 80 0D 03 02 [10:06:43]Write to MH i2c: E2 08 00 04 1A 80 0D 03 02 00 00 00 00 99 [10:06:43]Write i2c OK [10:06:43]MH_I2C_Read... [10:06:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:06:43]Read from MH i2c: E2 [10:06:43]MH_I2C_Read... [10:06:43]Read from MH i2c: E2 0B 00 [10:06:43]MH_I2C_Read... [10:06:43]Read from MH i2c: E2 0B 00 04 1A 00 AC 42 9B FE E5 C1 FF B0 90 00 76 [10:06:43]RAPDU: AC 42 9B FE E5 C1 FF B0 90 00 [10:06:43]wFMCommunicate OK [10:06:43]SAM_PROTO_SignData done [10:06:43]FM_MakeSignedData done [10:06:43]CreateOFDProtocolMessage [10:06:43]wFMCommunicate request_size=4 [10:06:43]MH_SAM_APDU [10:06:43]CAPDU: 80 11 00 00 [10:06:43]Write to MH i2c: E2 08 00 05 1A 80 11 00 00 00 00 00 00 99 [10:06:43]Write i2c OK [10:06:43]MH_I2C_Read... [10:06:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:06:43]Read from MH i2c: E2 [10:06:43]MH_I2C_Read... [10:06:43]Read from MH i2c: E2 17 00 [10:06:43]MH_I2C_Read... [10:06:43]Read from MH i2c: E2 17 00 05 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 F7 [10:06:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [10:06:43]wFMCommunicate OK [10:06:43]CreateOFDProtocolMessage done [10:06:43]OFDSenderStorePacket 123202 [10:06:43]StoreOFDPacket docnum=123202 [10:06:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 B0 1B 07 01 DF E4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 B4 4B E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 42 E1 01 00 35 04 06 00 6A 86 65 EB 75 F4 AC 42 9B FE E5 C1 FF B0 [10:06:43]CheckFolder [10:06:43]dirname=/storage/ofd_packets [10:06:43]CheckFolder done [10:06:43]ProducePacketName [10:06:43]name=ofd_packets/00123202 [10:06:43]NVStorageSaveData ofd_packets/00123202 [10:06:43]File name is /storage/ofd_packets/00123202 [10:06:43]Write 301 bytes [10:06:43]NVStorageSaveData done [10:06:43]OFDSenderStorePacket done [10:06:43]KKMCreateOFDPacket done [10:06:43]NVStorageSaveData kkm_last_timestamp [10:06:43]File name is /storage/kkm_last_timestamp [10:06:43]Write 4 bytes [10:06:43]NVStorageSaveData done [10:06:43]ExternCall_PrintAddStr [10:06:43]wPrintStart [10:06:43]Write to MH i2c: 01 00 00 06 1A 20 [10:06:43]Write i2c OK [10:06:43]MH_I2C_Read... [10:06:43]Read from MH i2c: 01 [10:06:43]MH_I2C_Read... [10:06:43]Read from MH i2c: 01 07 00 [10:06:43]MH_I2C_Read... [10:06:43]Read from MH i2c: 01 07 00 06 1A 00 00 00 00 00 FF 0F 35 [10:06:43]RasterBufferAndPrint [10:06:43]line Счет N : (1)1106124 [10:06:43]line ИНН: 02508201610067 [10:06:43]line Контрольно-Кассовый Чек [10:06:43]line ПРОДАЖА [10:06:43]line ТРК (МРК, ГНК) : 11 [10:06:43]line Товар: 2710124130 [10:06:43]line Аи-92-К-5 [10:06:43]line 8.080 * 61.90 [10:06:43]line = 500.15 [10:06:43]line НДС 12% НСП 1% [10:06:43]line > о реализуемом товаре [10:06:43]line ИТОГО: 500.15 [10:06:43]line НСП 1% : 4.43 [10:06:43]line НДС 12% : 53.11 [10:06:43]line Наличными: 0.00 [10:06:43]line Безнал.: 500.15 [10:06:43]line Место: АЗС № 25 "Партнер Нефть" [10:06:43]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [10:06:43]line СНО: Общий режим [10:06:43]line Чек 59 03.03.2024 10:06 [10:06:43]line Смена: 323 ФФД: 1.0 [10:06:43]line ЗНМ: 0300000019 [10:06:43]line РНМ: 0000000000090573 [10:06:43]line Версия ККМ: 001 [10:06:43]line Платежная система: О! деньги [10:06:43]line ФМ: 0000000000874798 [10:06:43]line ФД: 123202 [10:06:43]line ФПД: 117125468091892 [10:06:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T100644&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123202&fm=117125468091892&tin=02508201610067®Number=0000000000090573&sum=50015 [10:06:43]OFD Sender: Processing packet 123202 [packets to send 112, broken 111] [10:06:43]ProducePacketName [10:06:43]name=ofd_packets/00123202 [10:06:43]OFD Sender: To server: pG, [10:06:43]CommunicateWithHost lk.salyk.kg:30040 [10:06:43]ConnectInit lk.salyk.kg [10:06:43]written 0, free lines is 4095 [10:06:43]Connected sock=10 [10:06: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 37 39 38 0F 01 00 00 B0 1B 07 01 DF E4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 B4 4B E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 42 E1 01 00 35 04 06 00 6A 86 65 EB 75 F4 AC 42 9B FE E5 C1 FF B0 [10:06:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 5B 95 47 00 D9 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 42 E1 01 00 F4 03 04 00 E0 F7 E3 65 B6 04 01 00 00 C4 DD A5 A5 3E F5 90 72 [10:06:43]CommunicateWithHost err = 0 [10:06:43]CheckOFDResponse [10:06:43]1017 (14) - 77093643461234 [10:06:43]1041 (16) - 0000000000874798 [10:06:43]1040 (4) - 123202 [10:06:43]1012 (4) - 03.03.2024 04:09 [10:06:43]1206 (1) - 0 [10:06:43]OFD Sender: Remove packet 123202 [10:06:43]ProducePacketName [10:06:43]name=ofd_packets/00123202 [10:06:43]NVStorageDeleteData [10:06:44]Write to MH i2c: 01 00 00 30 1A 4A [10:06:44]Write i2c OK [10:06:44]MH_I2C_Read... [10:06:44]Read from MH i2c: 01 [10:06:44]MH_I2C_Read... [10:06:44]Read from MH i2c: 01 07 00 [10:06:44]MH_I2C_Read... [10:06:44]Read from MH i2c: 01 07 00 30 1A 00 00 00 00 00 07 0D 65 [10:06:44]RasterBufferAndPrint [10:06:44]line [10:06:44]line [10:06:44]line [10:06:44]line [10:06:44]line [10:06:44]written 0, free lines is 3343 [10:06:44]MH_Cut [10:06:44]Write to MH i2c: D1 01 00 37 1A 01 23 [10:06:44]Write i2c OK [10:06:44]MH_I2C_Read... [10:06:44]Read from MH i2c: D1 [10:06:44]MH_I2C_Read... [10:06:44]Read from MH i2c: D1 01 00 [10:06:44]MH_I2C_Read... [10:06:44]Read from MH i2c: D1 01 00 37 1A 00 22 [10:06:44]Write to MH i2c: 01 00 00 38 1A 52 [10:06:44]Write i2c OK [10:06:44]MH_I2C_Read... [10:06:44]OFD Sender: No OFD packet to send [10:06:44]*** Cut start [10:06:44]*** Purtial cut [10:06:44]*** Stage 1: CUTSNS_PIN = 1 [10:06:46]Read from MH i2c: 01 [10:06:46]MH_I2C_Read... [10:06:46]*** Stop cut motor [10:06:46]*** Cut end [10:06:46]Read from MH i2c: 01 07 00 [10:06:46]MH_I2C_Read... [10:06:46]Read from MH i2c: 01 07 00 38 1A 00 00 00 00 00 FF 0F 67 [10:06:46]process_action close_receipt done [10:06:46]requested_data is exist [10:06:46]produce_requested_data [10:06:46]requested_item fm.sn is exist - process it [10:06:46]wFMCommunicate request_size=4 [10:06:46]MH_SAM_APDU [10:06:46]CAPDU: 80 11 00 00 [10:06:46]Write to MH i2c: E2 08 00 39 1A 80 11 00 00 00 00 00 00 CD [10:06:46]Write i2c OK [10:06:46]MH_I2C_Read... [10:06:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:06:46]Read from MH i2c: E2 [10:06:46]MH_I2C_Read... [10:06:46]Read from MH i2c: E2 17 00 [10:06:46]MH_I2C_Read... [10:06:46]Read from MH i2c: E2 17 00 39 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 2B [10:06:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [10:06:46]wFMCommunicate OK [10:06:46]requested_item fd.num is exist - process it [10:06:46]SAM_PROTO_GetFieldsCounters [10:06:46]wFMCommunicate request_size=4 [10:06:46]MH_SAM_APDU [10:06:46]CAPDU: 80 13 00 00 [10:06:46]Write to MH i2c: E2 08 00 3A 1A 80 13 00 00 00 00 00 00 D0 [10:06:46]Write i2c OK [10:06:46]MH_I2C_Read... [10:06:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:06:47]Read from MH i2c: E2 [10:06:47]MH_I2C_Read... [10:06:47]Read from MH i2c: E2 62 00 [10:06:47]MH_I2C_Read... [10:06:47]Read from MH i2c: E2 62 00 3A 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 42 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 14 [10:06:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 42 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:06:47]wFMCommunicate OK [10:06:47]SAM_PROTO_GetFieldsCounters done [10:06:47]requested_item shift.num is exist - process it [10:06:47]requested_item shift.opened is exist - process it [10:06:47]req_shift_opened [10:06:47]FM_GetShiftState [10:06:47]SAM_PROTO_GetShiftState [10:06:47]wFMCommunicate request_size=4 [10:06:47]MH_SAM_APDU [10:06:47]CAPDU: 80 13 01 00 [10:06:47]Write to MH i2c: E2 08 00 3B 1A 80 13 01 00 00 00 00 00 D2 [10:06:47]Write i2c OK [10:06:47]MH_I2C_Read... [10:06:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:06:47]Read from MH i2c: E2 [10:06:47]MH_I2C_Read... [10:06:47]Read from MH i2c: E2 0E 00 [10:06:47]MH_I2C_Read... [10:06:47]Read from MH i2c: E2 0E 00 3B 1A 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 94 [10:06:47]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [10:06:47]wFMCommunicate OK [10:06:47]SAM_PROTO_GetShiftState done [10:06:47]FM_GetShiftState done [10:06:47]req_shift_opened done [10:06:47]requested_item shift.open_date is exist - process it [10:06:47]req_shift_open_date [10:06:47]req_shift_open_date done [10:06:47]produce_requested_data done [10:06:47]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123202,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [10:06:47]process_action_free close_receipt [10:06:47]json_value_free [10:06:47]json_value_free done [10:06:47]process_json_proto returns [10:06:47]Send response to host [10:06:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123202,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [10:06:47]free response buf [10:06:47]execute_script done [10:06:47]execute_script returns [10:06:47]free content buf [10:06:47]Sock 7.Close socket [10:06:47]Sock 7.Thread stoped [10:06:49]OFD Sender: No OFD packet to send [10:06:54]OFD Sender: No OFD packet to send [10:06:59]OFD Sender: No OFD packet to send [10:07:04]OFD Sender: No OFD packet to send [10:07:09]OFD Sender: No OFD packet to send [10:07:14]OFD Sender: No OFD packet to send [10:07:19]OFD Sender: No OFD packet to send [10:07:24]OFD Sender: No OFD packet to send [10:07:29]OFD Sender: No OFD packet to send [10:07:34]OFD Sender: No OFD packet to send [10:07:39]OFD Sender: No OFD packet to send [10:07:44]OFD Sender: No OFD packet to send [10:07:49]OFD Sender: No OFD packet to send [10:07:54]OFD Sender: No OFD packet to send [10:07:59]OFD Sender: No OFD packet to send [10:08:04]OFD Sender: No OFD packet to send [10:08:09]OFD Sender: No OFD packet to send [10:08:14]OFD Sender: No OFD packet to send [10:08:19]OFD Sender: No OFD packet to send [10:08:24]OFD Sender: No OFD packet to send [10:08:29]OFD Sender: No OFD packet to send [10:08:34]OFD Sender: No OFD packet to send [10:08:39]OFD Sender: No OFD packet to send [10:08:44]OFD Sender: No OFD packet to send [10:08:49]OFD Sender: No OFD packet to send [10:08:54]OFD Sender: No OFD packet to send [10:08:59]OFD Sender: No OFD packet to send [10:09:04]OFD Sender: No OFD packet to send [10:09:09]OFD Sender: No OFD packet to send [10:09:14]OFD Sender: No OFD packet to send [10:09:19]OFD Sender: No OFD packet to send [10:09:24]OFD Sender: No OFD packet to send [10:09:29]OFD Sender: No OFD packet to send [10:09:34]OFD Sender: No OFD packet to send [10:09:39]OFD Sender: No OFD packet to send [10:09:44]OFD Sender: No OFD packet to send [10:09:49]OFD Sender: No OFD packet to send [10:09:54]OFD Sender: No OFD packet to send [10:09:59]OFD Sender: No OFD packet to send [10:10:04]OFD Sender: No OFD packet to send [10:10:09]OFD Sender: No OFD packet to send [10:10:14]OFD Sender: No OFD packet to send [10:10:19]OFD Sender: No OFD packet to send [10:10:24]OFD Sender: No OFD packet to send [10:10:29]OFD Sender: No OFD packet to send [10:10:34]OFD Sender: No OFD packet to send [10:10:39]OFD Sender: No OFD packet to send [10:10:44]OFD Sender: No OFD packet to send [10:10:49]OFD Sender: No OFD packet to send [10:10:54]OFD Sender: No OFD packet to send [10:10:59]OFD Sender: No OFD packet to send [10:11:04]OFD Sender: No OFD packet to send [10:11:09]OFD Sender: No OFD packet to send [10:11:14]OFD Sender: No OFD packet to send [10:11:19]OFD Sender: No OFD packet to send [10:11:24]OFD Sender: No OFD packet to send [10:11:29]OFD Sender: No OFD packet to send [10:11:34]OFD Sender: No OFD packet to send [10:11:39]OFD Sender: No OFD packet to send [10:11:44]OFD Sender: No OFD packet to send [10:11:49]OFD Sender: No OFD packet to send [10:11:54]OFD Sender: No OFD packet to send [10:11:59]OFD Sender: No OFD packet to send [10:12:04]OFD Sender: No OFD packet to send [10:12:09]OFD Sender: No OFD packet to send [10:12:14]OFD Sender: No OFD packet to send [10:12:19]OFD Sender: No OFD packet to send [10:12:24]OFD Sender: No OFD packet to send [10:12:29]OFD Sender: No OFD packet to send [10:12:34]OFD Sender: No OFD packet to send [10:12:39]OFD Sender: No OFD packet to send [10:12:44]OFD Sender: No OFD packet to send [10:12:49]OFD Sender: No OFD packet to send [10:12:54]OFD Sender: No OFD packet to send [10:12:59]OFD Sender: No OFD packet to send [10:13:04]OFD Sender: No OFD packet to send [10:13:09]OFD Sender: No OFD packet to send [10:13:14]OFD Sender: No OFD packet to send [10:13:19]OFD Sender: No OFD packet to send [10:13:24]OFD Sender: No OFD packet to send [10:13:29]OFD Sender: No OFD packet to send [10:13:34]OFD Sender: No OFD packet to send [10:13:39]OFD Sender: No OFD packet to send [10:13:44]OFD Sender: No OFD packet to send [10:13:49]OFD Sender: No OFD packet to send [10:13:54]OFD Sender: No OFD packet to send [10:13:59]OFD Sender: No OFD packet to send [10:14:04]OFD Sender: No OFD packet to send [10:14:09]OFD Sender: No OFD packet to send [10:14:14]OFD Sender: No OFD packet to send [10:14:19]OFD Sender: No OFD packet to send [10:14:24]OFD Sender: No OFD packet to send [10:14:29]OFD Sender: No OFD packet to send [10:14:34]OFD Sender: No OFD packet to send [10:14:39]OFD Sender: No OFD packet to send [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:10]OFD Sender: No OFD packet to send [10:15:15]OFD Sender: No OFD packet to send [10:15:20]OFD Sender: No OFD packet to send [10:15:25]OFD Sender: No OFD packet to send [10:15:29]accept exits with 9 [10:15:29]New connection [10:15:29]New thread 3067252068 created [10:15:29]Thread 3067395428 joined [10:15:29]Waiting for new connection... [10:15:29] Sock 9.Parse request [10:15:29]Sock 9.Check first char [10:15:29]Sock 9.First char is OK [10:15:29]request: POST /json_proto HTTP/1.0 [10:15:29]Method: POST [10:15:29]URL: /json_proto [10:15:29]Method is POST - this is cgi request [10:15:29]url: /json_proto [10:15:29]query_string will be loaded in cgi processing [10:15:29]execute_cgi json_proto POST (null) [10:15:29]execute_cgi path=json_proto method=POST [10:15:29]POST find Content-Length [10:15:29]Host: 172.17.48.197:8080 [10:15:29]Content-Length: 678 [10:15:29]Content-Type: application/json [10:15:29] [10:15:29]POST finish read [10:15:29]Found Content-Length = 678 [10:15:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106125", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 6.470, "sum" : 400.49, "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" ] } } [10:15:29]execute_script... [10:15: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)1106125", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 6.470, "sum" : 400.49, "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" ] } } [10:15:29]POST & json_proto [10:15:29]process_json_proto [10:15:29]json parsed OK: [10:15:29]protocol is kg_v1.0 [10:15:29]action value=close_receipt [10:15:29]process_action close_receipt [10:15:29]cmd_close_receipt [10:15:29]MH_GetDate [10:15:29]Write to MH i2c: F0 00 00 3C 1A 45 [10:15:29]Write i2c OK [10:15:29]MH_I2C_Read... [10:15:29]Read from MH i2c: F0 [10:15:29]MH_I2C_Read... [10:15:29]Read from MH i2c: F0 09 00 [10:15:29]MH_I2C_Read... [10:15:29]Read from MH i2c: F0 09 00 3C 1A 00 C4 4D E4 65 6C AF E3 65 0B [10:15:29]GetLastDocTimeStamp 1709460404 [10:15:29]current date 1709460932 [10:15:29]FM_GetShiftState [10:15:29]SAM_PROTO_GetShiftState [10:15:29]wFMCommunicate request_size=4 [10:15:29]MH_SAM_APDU [10:15:29]CAPDU: 80 13 01 00 [10:15:29]Write to MH i2c: E2 08 00 3D 1A 80 13 01 00 00 00 00 00 D4 [10:15:29]Write i2c OK [10:15:29]MH_I2C_Read... [10:15:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:29]Read from MH i2c: E2 [10:15:29]MH_I2C_Read... [10:15:29]Read from MH i2c: E2 0E 00 [10:15:29]MH_I2C_Read... [10:15:29]Read from MH i2c: E2 0E 00 3D 1A 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 96 [10:15:29]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [10:15:29]wFMCommunicate OK [10:15:29]SAM_PROTO_GetShiftState done [10:15:29]FM_GetShiftState done [10:15:29]opened in 1709425579 [10:15:29]opened+sec_in_day 1709511979 [10:15:29]quantity*price = 40049 [10:15:29]sum+1 = 40050 [10:15:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.53 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 60 03.03.2024 10:15 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123203 ФПД: 62689989052828 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T101532&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123203&fm=62689989052828&tin=02508201610067®Number=0000000000090573&sum=40000 [10:15:30]StoreToDocumentArchive [10:15:30]shift 323 fd 123203 [10:15:30]save to /storage/0323/doc_00123203 [10:15:30]save last doc name /storage/0323/doc_00123203 to /storage/kkm_last_doc_name [10:15:30]save OK [10:15:30]Clear old archive folders... [10:15:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:15:30]tlvbuf is 00DA2E10 [10:15:30]SAM_PROTO_ClearQueue [10:15:30]wFMCommunicate request_size=4 [10:15:30]MH_SAM_APDU [10:15:30]CAPDU: 80 09 00 00 [10:15:30]Write to MH i2c: E2 08 00 4A 1A 80 09 00 00 00 00 00 00 D6 [10:15:30]Write i2c OK [10:15:30]MH_I2C_Read... [10:15:30]Read from MH i2c: E2 [10:15:30]MH_I2C_Read... [10:15:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:15:30]Read from MH i2c: E2 03 00 [10:15:30]MH_I2C_Read... [10:15:30]Read from MH i2c: E2 03 00 4A 1A 00 90 00 D8 [10:15:30]RAPDU: 90 00 [10:15:30]wFMCommunicate OK [10:15:30]SAM_PROTO_ClearQueue done [10:15:30]KKMCreateOFDPacket [10:15:30]OFDProtocolAddRootSTLVToBuf [10:15:30]FM_MakeSignedData [10:15:30]FM_MakeSignedData [10:15:30]SAM_PROTO_SignData [10:15:30]wFMCommunicate request_size=4 [10:15:30]MH_SAM_APDU [10:15:30]CAPDU: 80 0D 01 02 [10:15:30]Write to MH i2c: E2 08 00 4B 1A 80 0D 01 02 00 00 00 00 DE [10:15:30]Write i2c OK [10:15:30]MH_I2C_Read... [10:15:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:15:30]Read from MH i2c: E2 [10:15:30]MH_I2C_Read... [10:15:30]Read from MH i2c: E2 03 00 [10:15:30]MH_I2C_Read... [10:15:30]Read from MH i2c: E2 03 00 4B 1A 00 90 00 D9 [10:15:30]RAPDU: 90 00 [10:15:30]wFMCommunicate OK [10:15:30]wFMCommunicate request_size=255 [10:15:30]MH_SAM_APDU [10:15:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 19 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 71 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 9D 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 3C 00 00 00 F4 03 04 00 C4 4D E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 43 E1 01 00 35 04 06 00 39 [10:15:30]Write to MH i2c: E2 02 01 4C 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 19 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 71 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 9D 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 3C 00 00 00 F4 03 04 00 C4 4D E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 43 E1 01 00 35 04 06 00 39 00 00 A4 [10:15:30]Write i2c OK [10:15:30]MH_I2C_Read... [10:15:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:31]Read from MH i2c: E2 [10:15:31]MH_I2C_Read... [10:15:31]Read from MH i2c: E2 03 00 [10:15:31]MH_I2C_Read... [10:15:31]Read from MH i2c: E2 03 00 4C 1A 00 90 00 DA [10:15:31]RAPDU: 90 00 [10:15:31]wFMCommunicate OK [10:15:31]wFMCommunicate request_size=10 [10:15:31]MH_SAM_APDU [10:15:31]CAPDU: 80 0D 02 02 05 04 26 87 49 9C [10:15:31]Write to MH i2c: E2 0D 00 4D 1A 80 0D 02 02 05 00 04 26 87 49 9C 00 00 81 [10:15:31]Write i2c OK [10:15:31]MH_I2C_Read... [10:15:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:31]Read from MH i2c: E2 [10:15:31]MH_I2C_Read... [10:15:31]Read from MH i2c: E2 03 00 [10:15:31]MH_I2C_Read... [10:15:31]Read from MH i2c: E2 03 00 4D 1A 00 90 00 DB [10:15:31]RAPDU: 90 00 [10:15:31]wFMCommunicate OK [10:15:31]wFMCommunicate request_size=4 [10:15:31]MH_SAM_APDU [10:15:31]CAPDU: 80 0D 03 02 [10:15:31]Write to MH i2c: E2 08 00 4E 1A 80 0D 03 02 00 00 00 00 E3 [10:15:31]Write i2c OK [10:15:31]MH_I2C_Read... [10:15:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:15:31]Read from MH i2c: E2 [10:15:31]MH_I2C_Read... [10:15:31]Read from MH i2c: E2 0B 00 [10:15:31]MH_I2C_Read... [10:15:31]Read from MH i2c: E2 0B 00 4E 1A 00 F7 8D EE A7 CF B8 90 7E 90 00 92 [10:15:31]RAPDU: F7 8D EE A7 CF B8 90 7E 90 00 [10:15:31]wFMCommunicate OK [10:15:31]SAM_PROTO_SignData done [10:15:31]FM_MakeSignedData done [10:15:31]CreateOFDProtocolMessage [10:15:31]wFMCommunicate request_size=4 [10:15:31]MH_SAM_APDU [10:15:31]CAPDU: 80 11 00 00 [10:15:31]Write to MH i2c: E2 08 00 4F 1A 80 11 00 00 00 00 00 00 E3 [10:15:31]Write i2c OK [10:15:31]MH_I2C_Read... [10:15:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:31]Read from MH i2c: E2 [10:15:31]MH_I2C_Read... [10:15:31]Read from MH i2c: E2 17 00 [10:15:31]MH_I2C_Read... [10:15:31]Read from MH i2c: E2 17 00 4F 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 41 [10:15:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [10:15:31]wFMCommunicate OK [10:15:31]CreateOFDProtocolMessage done [10:15:31]OFDSenderStorePacket 123203 [10:15:31]StoreOFDPacket docnum=123203 [10:15:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 0F CD 07 01 43 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 35 FF 03 08 00 03 46 19 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 71 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 9D 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 3C 00 00 00 F4 03 04 00 C4 4D E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 43 E1 01 00 35 04 06 00 39 04 26 87 49 9C F7 8D EE A7 CF B8 90 7E [10:15:31]CheckFolder [10:15:31]dirname=/storage/ofd_packets [10:15:31]CheckFolder done [10:15:31]ProducePacketName [10:15:31]name=ofd_packets/00123203 [10:15:31]NVStorageSaveData ofd_packets/00123203 [10:15:31]File name is /storage/ofd_packets/00123203 [10:15:31]Write 301 bytes [10:15:31]NVStorageSaveData done [10:15:31]OFDSenderStorePacket done [10:15:31]KKMCreateOFDPacket done [10:15:31]NVStorageSaveData kkm_last_timestamp [10:15:31]File name is /storage/kkm_last_timestamp [10:15:31]Write 4 bytes [10:15:31]NVStorageSaveData done [10:15:31]ExternCall_PrintAddStr [10:15:31]wPrintStart [10:15:31]Write to MH i2c: 01 00 00 50 1A 6A [10:15:31]Write i2c OK [10:15:31]MH_I2C_Read... [10:15:31]Read from MH i2c: 01 [10:15:31]MH_I2C_Read... [10:15:31]Read from MH i2c: 01 07 00 [10:15:31]MH_I2C_Read... [10:15:31]Read from MH i2c: 01 07 00 50 1A 00 00 00 00 00 FF 0F 7F [10:15:31]RasterBufferAndPrint [10:15:31]line Счет N : (1)1106125 [10:15:31]line ИНН: 02508201610067 [10:15:31]line Контрольно-Кассовый Чек [10:15:31]line ПРОДАЖА [10:15:31]line ТРК (МРК, ГНК) : 21 [10:15:31]line Товар: 2710124130 [10:15:31]line Аи-92-К-5 [10:15:31]line 6.470 * 61.90 [10:15:31]line = 400.49 [10:15:31]line НДС 12% НСП 1% [10:15:31]line > о реализуемом товаре [10:15:31]line ОКРУГЛЕНИЕ: -0.49 [10:15:31]line ИТОГО: 400.00 [10:15:31]line Внесено: 400.00 [10:15:31]line СДАЧА: 0.00 [10:15:31]line НСП 1% : 3.54 [10:15:31]line НДС 12% : 42.53 [10:15:31]line Наличными: 400.00 [10:15:31]line Безнал.: 0.00 [10:15:31]line Место: АЗС № 25 "Партнер Нефть" [10:15:31]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [10:15:31]line СНО: Общий режим [10:15:31]line Чек 60 03.03.2024 10:15 [10:15:31]line Смена: 323 ФФД: 1.0 [10:15:31]line ЗНМ: 0300000019 [10:15:31]line РНМ: 0000000000090573 [10:15:31]line Версия ККМ: 001 [10:15:31]line ФМ: 0000000000874798 [10:15:31]line ФД: 123203 [10:15:31]line ФПД: 62689989052828 [10:15:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T101532&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123203&fm=62689989052828&tin=02508201610067®Number=0000000000090573&sum=40000 [10:15:31]written 0, free lines is 4095 [10:15:31]OFD Sender: Processing packet 123203 [packets to send 112, broken 111] [10:15:31]ProducePacketName [10:15:31]name=ofd_packets/00123203 [10:15:31]OFD Sender: To server: pG, [10:15:31]CommunicateWithHost lk.salyk.kg:30040 [10:15:31]ConnectInit lk.salyk.kg [10:15:31]Connected sock=7 [10:15:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 0F CD 07 01 43 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 35 FF 03 08 00 03 46 19 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 71 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 9D 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 3C 00 00 00 F4 03 04 00 C4 4D E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 43 E1 01 00 35 04 06 00 39 04 26 87 49 9C F7 8D EE A7 CF B8 90 7E [10:15:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 47 92 47 00 04 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 37 39 38 10 04 04 00 43 E1 01 00 F4 03 04 00 F0 F9 E3 65 B6 04 01 00 00 28 5D AD DA AD 6D 04 94 [10:15:31]CommunicateWithHost err = 0 [10:15:31]CheckOFDResponse [10:15:31]1017 (14) - 77093643461234 [10:15:31]1041 (16) - 0000000000874798 [10:15:31]1040 (4) - 123203 [10:15:31]1012 (4) - 03.03.2024 04:17 [10:15:31]1206 (1) - 0 [10:15:31]OFD Sender: Remove packet 123203 [10:15:31]ProducePacketName [10:15:31]name=ofd_packets/00123203 [10:15:31]NVStorageDeleteData [10:15:31]Write to MH i2c: 01 00 00 7B 1A 95 [10:15:31]Write i2c OK [10:15:31]MH_I2C_Read... [10:15:31]Read from MH i2c: 01 [10:15:31]MH_I2C_Read... [10:15:31]Read from MH i2c: 01 07 00 [10:15:31]MH_I2C_Read... [10:15:31]Read from MH i2c: 01 07 00 7B 1A 00 00 00 00 00 F0 0C 98 [10:15:31]RasterBufferAndPrint [10:15:31]line [10:15:31]line [10:15:31]line [10:15:31]line [10:15:31]line [10:15:31]written 0, free lines is 3321 [10:15:31]MH_Cut [10:15:31]Write to MH i2c: D1 01 00 82 1A 01 6E [10:15:31]Write i2c OK [10:15:31]MH_I2C_Read... [10:15:31]Read from MH i2c: D1 [10:15:31]MH_I2C_Read... [10:15:31]Read from MH i2c: D1 01 00 [10:15:31]MH_I2C_Read... [10:15:31]Read from MH i2c: D1 01 00 82 1A 00 6D [10:15:31]Write to MH i2c: 01 00 00 83 1A 9D [10:15:32]Write i2c OK [10:15:32]MH_I2C_Read... [10:15:32]OFD Sender: No OFD packet to send [10:15:32]*** Cut start [10:15:32]*** Purtial cut [10:15:32]*** Stage 1: CUTSNS_PIN = 1 [10:15:34]Read from MH i2c: 01 [10:15:34]MH_I2C_Read... [10:15:34]*** Stop cut motor [10:15:34]*** Cut end [10:15:34]Read from MH i2c: 01 07 00 [10:15:34]MH_I2C_Read... [10:15:34]Read from MH i2c: 01 07 00 83 1A 00 00 00 00 00 FF 0F B2 [10:15:34]process_action close_receipt done [10:15:34]requested_data is exist [10:15:34]produce_requested_data [10:15:34]requested_item fm.sn is exist - process it [10:15:34]wFMCommunicate request_size=4 [10:15:34]MH_SAM_APDU [10:15:34]CAPDU: 80 11 00 00 [10:15:34]Write to MH i2c: E2 08 00 84 1A 80 11 00 00 00 00 00 00 18 [10:15:34]Write i2c OK [10:15:34]MH_I2C_Read... [10:15:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:34]Read from MH i2c: E2 [10:15:34]MH_I2C_Read... [10:15:34]Read from MH i2c: E2 17 00 [10:15:34]MH_I2C_Read... [10:15:34]Read from MH i2c: E2 17 00 84 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 76 [10:15:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [10:15:34]wFMCommunicate OK [10:15:34]requested_item fd.num is exist - process it [10:15:34]SAM_PROTO_GetFieldsCounters [10:15:34]wFMCommunicate request_size=4 [10:15:34]MH_SAM_APDU [10:15:34]CAPDU: 80 13 00 00 [10:15:34]Write to MH i2c: E2 08 00 85 1A 80 13 00 00 00 00 00 00 1B [10:15:34]Write i2c OK [10:15:34]MH_I2C_Read... [10:15:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:15:34]Read from MH i2c: E2 [10:15:34]MH_I2C_Read... [10:15:34]Read from MH i2c: E2 62 00 [10:15:34]MH_I2C_Read... [10:15:34]Read from MH i2c: E2 62 00 85 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 43 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 63 [10:15: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 43 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:15:34]wFMCommunicate OK [10:15:34]SAM_PROTO_GetFieldsCounters done [10:15:34]requested_item shift.num is exist - process it [10:15:34]requested_item shift.opened is exist - process it [10:15:34]req_shift_opened [10:15:34]FM_GetShiftState [10:15:34]SAM_PROTO_GetShiftState [10:15:34]wFMCommunicate request_size=4 [10:15:34]MH_SAM_APDU [10:15:34]CAPDU: 80 13 01 00 [10:15:34]Write to MH i2c: E2 08 00 86 1A 80 13 01 00 00 00 00 00 1D [10:15:34]Write i2c OK [10:15:34]MH_I2C_Read... [10:15:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:34]Read from MH i2c: E2 [10:15:34]MH_I2C_Read... [10:15:34]Read from MH i2c: E2 0E 00 [10:15:34]MH_I2C_Read... [10:15:34]Read from MH i2c: E2 0E 00 86 1A 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 DF [10:15:34]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [10:15:34]wFMCommunicate OK [10:15:34]SAM_PROTO_GetShiftState done [10:15:34]FM_GetShiftState done [10:15:34]req_shift_opened done [10:15:34]requested_item shift.open_date is exist - process it [10:15:34]req_shift_open_date [10:15:34]req_shift_open_date done [10:15:34]produce_requested_data done [10:15:34]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123203,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [10:15:34]process_action_free close_receipt [10:15:34]json_value_free [10:15:34]json_value_free done [10:15:34]process_json_proto returns [10:15:34]Send response to host [10:15:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123203,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [10:15:34]free response buf [10:15:34]execute_script done [10:15:34]execute_script returns [10:15:34]free content buf [10:15:34]Sock 9.Close socket [10:15:34]Sock 9.Thread stoped [10:15:37]OFD Sender: No OFD packet to send [10:15:42]OFD Sender: No OFD packet to send [10:15:47]OFD Sender: No OFD packet to send [10:15:52]OFD Sender: No OFD packet to send [10:15:57]OFD Sender: No OFD packet to send [10:16:02]OFD Sender: No OFD packet to send [10:16:07]OFD Sender: No OFD packet to send [10:16:12]OFD Sender: No OFD packet to send [10:16:17]OFD Sender: No OFD packet to send [10:16:22]OFD Sender: No OFD packet to send [10:16:27]OFD Sender: No OFD packet to send [10:16:32]OFD Sender: No OFD packet to send [10:16:37]OFD Sender: No OFD packet to send [10:16:42]OFD Sender: No OFD packet to send [10:16:47]OFD Sender: No OFD packet to send [10:16:52]OFD Sender: No OFD packet to send [10:16:57]OFD Sender: No OFD packet to send [10:17:02]OFD Sender: No OFD packet to send [10:17:07]OFD Sender: No OFD packet to send [10:17:12]OFD Sender: No OFD packet to send [10:17:17]OFD Sender: No OFD packet to send [10:17:22]OFD Sender: No OFD packet to send [10:17:27]OFD Sender: No OFD packet to send [10:17:32]OFD Sender: No OFD packet to send [10:17:37]OFD Sender: No OFD packet to send [10:17:42]OFD Sender: No OFD packet to send [10:17:47]OFD Sender: No OFD packet to send [10:17:52]OFD Sender: No OFD packet to send [10:17:57]OFD Sender: No OFD packet to send [10:18:01]accept exits with 10 [10:18:01]New connection [10:18:01]New thread 3067395428 created [10:18:01]Thread 3067252068 joined [10:18:01]Waiting for new connection... [10:18:01] Sock 10.Parse request [10:18:01]Sock 10.Check first char [10:18:01]Sock 10.First char is OK [10:18:01]request: POST /json_proto HTTP/1.0 [10:18:01]Method: POST [10:18:01]URL: /json_proto [10:18:01]Method is POST - this is cgi request [10:18:01]url: /json_proto [10:18:01]query_string will be loaded in cgi processing [10:18:01]execute_cgi json_proto POST (null) [10:18:01]execute_cgi path=json_proto method=POST [10:18:01]POST find Content-Length [10:18:01]Host: 172.17.48.197:8080 [10:18:01]Content-Length: 683 [10:18:01]Content-Type: application/json [10:18:01] [10:18:01]POST finish read [10:18:01]Found Content-Length = 683 [10:18:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106127", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 72.700, "sum" : 4500.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4500.00, "total" : 4500.00, "payments": [ { "type": 0, "sum" : 4500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:18:01]execute_script... [10:18: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)1106127", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 72.700, "sum" : 4500.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4500.00, "total" : 4500.00, "payments": [ { "type": 0, "sum" : 4500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:18:01]POST & json_proto [10:18:01]process_json_proto [10:18:01]json parsed OK: [10:18:01]protocol is kg_v1.0 [10:18:01]action value=close_receipt [10:18:01]process_action close_receipt [10:18:01]cmd_close_receipt [10:18:01]MH_GetDate [10:18:01]Write to MH i2c: F0 00 00 87 1A 90 [10:18:01]Write i2c OK [10:18:01]MH_I2C_Read... [10:18:01]Read from MH i2c: F0 [10:18:01]MH_I2C_Read... [10:18:01]Read from MH i2c: F0 09 00 [10:18:01]MH_I2C_Read... [10:18:01]Read from MH i2c: F0 09 00 87 1A 00 5C 4E E4 65 6C AF E3 65 EF [10:18:01]GetLastDocTimeStamp 1709460932 [10:18:01]current date 1709461084 [10:18:01]FM_GetShiftState [10:18:01]SAM_PROTO_GetShiftState [10:18:01]wFMCommunicate request_size=4 [10:18:01]MH_SAM_APDU [10:18:01]CAPDU: 80 13 01 00 [10:18:01]Write to MH i2c: E2 08 00 88 1A 80 13 01 00 00 00 00 00 1F [10:18:01]Write i2c OK [10:18:01]MH_I2C_Read... [10:18:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:18:01]Read from MH i2c: E2 [10:18:01]MH_I2C_Read... [10:18:01]Read from MH i2c: E2 0E 00 [10:18:01]MH_I2C_Read... [10:18:01]Read from MH i2c: E2 0E 00 88 1A 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 E1 [10:18:01]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [10:18:01]wFMCommunicate OK [10:18:01]SAM_PROTO_GetShiftState done [10:18:01]FM_GetShiftState done [10:18:01]opened in 1709425579 [10:18:01]opened+sec_in_day 1709511979 [10:18:01]quantity*price = 450013 [10:18:01]sum+1 = 450014 [10:18:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 4500.00 Внесено: 4500.00 СДАЧА: 0.00 НСП 1% : 39.82 НДС 12% : 477.89 Наличными: 4500.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 61 03.03.2024 10:18 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123204 ФПД: 73623016184541 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T101804&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123204&fm=73623016184541&tin=02508201610067®Number=0000000000090573&sum=450000 [10:18:03]StoreToDocumentArchive [10:18:03]shift 323 fd 123204 [10:18:03]save to /storage/0323/doc_00123204 [10:18:03]save last doc name /storage/0323/doc_00123204 to /storage/kkm_last_doc_name [10:18:03]save OK [10:18:03]Clear old archive folders... [10:18:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:18:03]tlvbuf is 00DB8040 [10:18:03]SAM_PROTO_ClearQueue [10:18:03]wFMCommunicate request_size=4 [10:18:03]MH_SAM_APDU [10:18:03]CAPDU: 80 09 00 00 [10:18:03]Write to MH i2c: E2 08 00 95 1A 80 09 00 00 00 00 00 00 21 [10:18:03]Write i2c OK [10:18:03]MH_I2C_Read... [10:18:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:18:03]Read from MH i2c: E2 [10:18:03]MH_I2C_Read... [10:18:03]Read from MH i2c: E2 03 00 [10:18:03]MH_I2C_Read... [10:18:03]Read from MH i2c: E2 03 00 95 1A 00 90 00 23 [10:18:03]RAPDU: 90 00 [10:18:03]wFMCommunicate OK [10:18:03]SAM_PROTO_ClearQueue done [10:18:03]KKMCreateOFDPacket [10:18:03]OFDProtocolAddRootSTLVToBuf [10:18:03]FM_MakeSignedData [10:18:03]FM_MakeSignedData [10:18:03]SAM_PROTO_SignData [10:18:03]wFMCommunicate request_size=4 [10:18:03]MH_SAM_APDU [10:18:03]CAPDU: 80 0D 01 02 [10:18:03]Write to MH i2c: E2 08 00 96 1A 80 0D 01 02 00 00 00 00 29 [10:18:03]Write i2c OK [10:18:03]MH_I2C_Read... [10:18:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:18:03]Read from MH i2c: E2 [10:18:03]MH_I2C_Read... [10:18:03]Read from MH i2c: E2 03 00 [10:18:03]MH_I2C_Read... [10:18:03]Read from MH i2c: E2 03 00 96 1A 00 90 00 24 [10:18:03]RAPDU: 90 00 [10:18:03]wFMCommunicate OK [10:18:03]wFMCommunicate request_size=255 [10:18:03]MH_SAM_APDU [10:18: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 35 FF 03 08 00 03 FC 1B 01 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 DD DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD BA 00 00 00 00 07 04 06 00 D0 DD 06 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 5C 4E E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 44 E1 01 00 35 04 06 00 42 [10:18:03]Write to MH i2c: E2 02 01 97 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 1B 01 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 DD DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD BA 00 00 00 00 07 04 06 00 D0 DD 06 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 5C 4E E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 44 E1 01 00 35 04 06 00 42 00 00 A1 [10:18:03]Write i2c OK [10:18:03]MH_I2C_Read... [10:18:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:18:03]Read from MH i2c: E2 [10:18:03]MH_I2C_Read... [10:18:03]Read from MH i2c: E2 03 00 [10:18:03]MH_I2C_Read... [10:18:03]Read from MH i2c: E2 03 00 97 1A 00 90 00 25 [10:18:03]RAPDU: 90 00 [10:18:03]wFMCommunicate OK [10:18:03]wFMCommunicate request_size=10 [10:18:03]MH_SAM_APDU [10:18:03]CAPDU: 80 0D 02 02 05 F5 B1 BA 1A DD [10:18:03]Write to MH i2c: E2 0D 00 98 1A 80 0D 02 02 05 00 F5 B1 BA 1A DD 00 00 8D [10:18:03]Write i2c OK [10:18:03]MH_I2C_Read... [10:18:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:18:03]Read from MH i2c: E2 [10:18:03]MH_I2C_Read... [10:18:03]Read from MH i2c: E2 03 00 [10:18:03]MH_I2C_Read... [10:18:03]Read from MH i2c: E2 03 00 98 1A 00 90 00 26 [10:18:03]RAPDU: 90 00 [10:18:03]wFMCommunicate OK [10:18:03]wFMCommunicate request_size=4 [10:18:03]MH_SAM_APDU [10:18:03]CAPDU: 80 0D 03 02 [10:18:03]Write to MH i2c: E2 08 00 99 1A 80 0D 03 02 00 00 00 00 2E [10:18:03]Write i2c OK [10:18:03]MH_I2C_Read... [10:18:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:18:03]Read from MH i2c: E2 [10:18:03]MH_I2C_Read... [10:18:03]Read from MH i2c: E2 0B 00 [10:18:03]MH_I2C_Read... [10:18:03]Read from MH i2c: E2 0B 00 99 1A 00 D1 28 93 2C 76 D9 DC C9 90 00 DB [10:18:03]RAPDU: D1 28 93 2C 76 D9 DC C9 90 00 [10:18:03]wFMCommunicate OK [10:18:03]SAM_PROTO_SignData done [10:18:03]FM_MakeSignedData done [10:18:03]CreateOFDProtocolMessage [10:18:03]wFMCommunicate request_size=4 [10:18:03]MH_SAM_APDU [10:18:03]CAPDU: 80 11 00 00 [10:18:03]Write to MH i2c: E2 08 00 9A 1A 80 11 00 00 00 00 00 00 2E [10:18:03]Write i2c OK [10:18:03]MH_I2C_Read... [10:18:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:18:03]Read from MH i2c: E2 [10:18:03]MH_I2C_Read... [10:18:03]Read from MH i2c: E2 17 00 [10:18:03]MH_I2C_Read... [10:18:03]Read from MH i2c: E2 17 00 9A 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 8C [10:18:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [10:18:03]wFMCommunicate OK [10:18:03]CreateOFDProtocolMessage done [10:18:03]OFDSenderStorePacket 123204 [10:18:03]StoreOFDPacket docnum=123204 [10:18:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 CF C2 07 01 DC B2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 1B 01 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 DD DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD BA 00 00 00 00 07 04 06 00 D0 DD 06 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 5C 4E E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 44 E1 01 00 35 04 06 00 42 F5 B1 BA 1A DD D1 28 93 2C 76 D9 DC C9 [10:18:03]CheckFolder [10:18:03]dirname=/storage/ofd_packets [10:18:03]CheckFolder done [10:18:03]ProducePacketName [10:18:03]name=ofd_packets/00123204 [10:18:03]NVStorageSaveData ofd_packets/00123204 [10:18:03]File name is /storage/ofd_packets/00123204 [10:18:03]Write 301 bytes [10:18:03]NVStorageSaveData done [10:18:03]OFDSenderStorePacket done [10:18:03]KKMCreateOFDPacket done [10:18:03]NVStorageSaveData kkm_last_timestamp [10:18:03]File name is /storage/kkm_last_timestamp [10:18:03]Write 4 bytes [10:18:03]NVStorageSaveData done [10:18:03]ExternCall_PrintAddStr [10:18:03]wPrintStart [10:18:03]Write to MH i2c: 01 00 00 9B 1A B5 [10:18:03]Write i2c OK [10:18:03]MH_I2C_Read... [10:18:03]Read from MH i2c: 01 [10:18:03]MH_I2C_Read... [10:18:03]Read from MH i2c: 01 07 00 [10:18:03]MH_I2C_Read... [10:18:03]Read from MH i2c: 01 07 00 9B 1A 00 00 00 00 00 FF 0F CA [10:18:03]RasterBufferAndPrint [10:18:03]line Счет N : (1)1106127 [10:18:03]line ИНН: 02508201610067 [10:18:03]line Контрольно-Кассовый Чек [10:18:03]line ПРОДАЖА [10:18:03]line ТРК (МРК, ГНК) : 42 [10:18:03]line Товар: 2710124130 [10:18:03]line Аи-92-К-5 [10:18:03]line 72.700 * 61.90 [10:18:03]line = 4500.13 [10:18:03]line НДС 12% НСП 1% [10:18:03]line > о реализуемом товаре [10:18:03]line ОКРУГЛЕНИЕ: -0.13 [10:18:03]line ИТОГО: 4500.00 [10:18:03]line Внесено: 4500.00 [10:18:03]line СДАЧА: 0.00 [10:18:03]line НСП 1% : 39.82 [10:18:03]line НДС 12% : 477.89 [10:18:03]line Наличными: 4500.00 [10:18:03]line Безнал.: 0.00 [10:18:03]line Место: АЗС № 25 "Партнер Нефть" [10:18:03]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [10:18:03]line СНО: Общий режим [10:18:03]line Чек 61 03.03.2024 10:18 [10:18:03]line Смена: 323 ФФД: 1.0 [10:18:03]line ЗНМ: 0300000019 [10:18:03]line РНМ: 0000000000090573 [10:18:03]line Версия ККМ: 001 [10:18:03]line ФМ: 0000000000874798 [10:18:03]line ФД: 123204 [10:18:03]line ФПД: 73623016184541 [10:18:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T101804&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123204&fm=73623016184541&tin=02508201610067®Number=0000000000090573&sum=450000 [10:18:03]OFD Sender: Processing packet 123204 [packets to send 112, broken 111] [10:18:03]ProducePacketName [10:18:03]name=ofd_packets/00123204 [10:18:03]OFD Sender: To server: pG, [10:18:03]CommunicateWithHost lk.salyk.kg:30040 [10:18:03]ConnectInit lk.salyk.kg [10:18:03]written 0, free lines is 4095 [10:18:04]Connected sock=9 [10:18: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 37 39 38 0F 01 00 00 CF C2 07 01 DC B2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 1B 01 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 DD DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD BA 00 00 00 00 07 04 06 00 D0 DD 06 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 5C 4E E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 44 E1 01 00 35 04 06 00 42 F5 B1 BA 1A DD D1 28 93 2C 76 D9 DC C9 [10:18:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 C7 FF 47 00 BD 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 44 E1 01 00 F4 03 04 00 88 FA E3 65 B6 04 01 00 00 BC F8 4B 25 BC D6 D6 85 [10:18:04]CommunicateWithHost err = 0 [10:18:04]CheckOFDResponse [10:18:04]1017 (14) - 77093643461234 [10:18:04]1041 (16) - 0000000000874798 [10:18:04]1040 (4) - 123204 [10:18:04]1012 (4) - 03.03.2024 04:20 [10:18:04]1206 (1) - 0 [10:18:04]OFD Sender: Remove packet 123204 [10:18:04]ProducePacketName [10:18:04]name=ofd_packets/00123204 [10:18:04]NVStorageDeleteData [10:18:04]Write to MH i2c: 01 00 00 C6 1A E0 [10:18:04]Write i2c OK [10:18:04]MH_I2C_Read... [10:18:04]Read from MH i2c: 01 [10:18:04]MH_I2C_Read... [10:18:04]Read from MH i2c: 01 07 00 [10:18:04]MH_I2C_Read... [10:18:04]Read from MH i2c: 01 07 00 C6 1A 00 00 00 00 00 FC 0C EF [10:18:04]RasterBufferAndPrint [10:18:04]line [10:18:04]line [10:18:04]line [10:18:04]line [10:18:04]line [10:18:04]written 0, free lines is 3333 [10:18:04]MH_Cut [10:18:04]Write to MH i2c: D1 01 00 CD 1A 01 B9 [10:18:04]Write i2c OK [10:18:04]MH_I2C_Read... [10:18:04]Read from MH i2c: D1 [10:18:04]MH_I2C_Read... [10:18:04]Read from MH i2c: D1 01 00 [10:18:04]MH_I2C_Read... [10:18:04]Read from MH i2c: D1 01 00 CD 1A 00 B8 [10:18:04]Write to MH i2c: 01 00 00 CE 1A E8 [10:18:04]Write i2c OK [10:18:04]MH_I2C_Read... [10:18:04]OFD Sender: No OFD packet to send [10:18:05]*** Cut start [10:18:05]*** Purtial cut [10:18:05]*** Stage 1: CUTSNS_PIN = 1 [10:18:07]Read from MH i2c: 01 [10:18:07]MH_I2C_Read... [10:18:07]*** Stop cut motor [10:18:07]*** Cut end [10:18:07]Read from MH i2c: 01 07 00 [10:18:07]MH_I2C_Read... [10:18:07]Read from MH i2c: 01 07 00 CE 1A 00 00 00 00 00 FF 0F FD [10:18:07]process_action close_receipt done [10:18:07]requested_data is exist [10:18:07]produce_requested_data [10:18:07]requested_item fm.sn is exist - process it [10:18:07]wFMCommunicate request_size=4 [10:18:07]MH_SAM_APDU [10:18:07]CAPDU: 80 11 00 00 [10:18:07]Write to MH i2c: E2 08 00 CF 1A 80 11 00 00 00 00 00 00 63 [10:18:07]Write i2c OK [10:18:07]MH_I2C_Read... [10:18:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:18:07]Read from MH i2c: E2 [10:18:07]MH_I2C_Read... [10:18:07]Read from MH i2c: E2 17 00 [10:18:07]MH_I2C_Read... [10:18:07]Read from MH i2c: E2 17 00 CF 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 C1 [10:18:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [10:18:07]wFMCommunicate OK [10:18:07]requested_item fd.num is exist - process it [10:18:07]SAM_PROTO_GetFieldsCounters [10:18:07]wFMCommunicate request_size=4 [10:18:07]MH_SAM_APDU [10:18:07]CAPDU: 80 13 00 00 [10:18:07]Write to MH i2c: E2 08 00 D0 1A 80 13 00 00 00 00 00 00 66 [10:18:07]Write i2c OK [10:18:07]MH_I2C_Read... [10:18:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:18:07]Read from MH i2c: E2 [10:18:07]MH_I2C_Read... [10:18:07]Read from MH i2c: E2 62 00 [10:18:07]MH_I2C_Read... [10:18:07]Read from MH i2c: E2 62 00 D0 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 44 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 B2 [10:18: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 44 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:18:07]wFMCommunicate OK [10:18:07]SAM_PROTO_GetFieldsCounters done [10:18:07]requested_item shift.num is exist - process it [10:18:07]requested_item shift.opened is exist - process it [10:18:07]req_shift_opened [10:18:07]FM_GetShiftState [10:18:07]SAM_PROTO_GetShiftState [10:18:07]wFMCommunicate request_size=4 [10:18:07]MH_SAM_APDU [10:18:07]CAPDU: 80 13 01 00 [10:18:07]Write to MH i2c: E2 08 00 D1 1A 80 13 01 00 00 00 00 00 68 [10:18:07]Write i2c OK [10:18:07]MH_I2C_Read... [10:18:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:18:07]Read from MH i2c: E2 [10:18:07]MH_I2C_Read... [10:18:07]Read from MH i2c: E2 0E 00 [10:18:07]MH_I2C_Read... [10:18:07]Read from MH i2c: E2 0E 00 D1 1A 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 2A [10:18:07]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [10:18:07]wFMCommunicate OK [10:18:07]SAM_PROTO_GetShiftState done [10:18:07]FM_GetShiftState done [10:18:07]req_shift_opened done [10:18:07]requested_item shift.open_date is exist - process it [10:18:07]req_shift_open_date [10:18:07]req_shift_open_date done [10:18:07]produce_requested_data done [10:18:07]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123204,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [10:18:07]process_action_free close_receipt [10:18:07]json_value_free [10:18:07]json_value_free done [10:18:07]process_json_proto returns [10:18:07]Send response to host [10:18:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123204,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [10:18:07]free response buf [10:18:07]execute_script done [10:18:07]execute_script returns [10:18:07]free content buf [10:18:07]Sock 10.Close socket [10:18:07]Sock 10.Thread stoped [10:18:09]accept exits with 7 [10:18:09]New connection [10:18:09]New thread 3067252068 created [10:18:09]Thread 3067395428 joined [10:18:09]Waiting for new connection... [10:18:09] Sock 7.Parse request [10:18:09]Sock 7.Check first char [10:18:09]Sock 7.First char is OK [10:18:09]request: POST /json_proto HTTP/1.0 [10:18:09]Method: POST [10:18:09]URL: /json_proto [10:18:09]Method is POST - this is cgi request [10:18:09]url: /json_proto [10:18:09]query_string will be loaded in cgi processing [10:18:09]execute_cgi json_proto POST (null) [10:18:09]execute_cgi path=json_proto method=POST [10:18:09]POST find Content-Length [10:18:09]Host: 172.17.48.197:8080 [10:18:09]Content-Length: 740 [10:18:09]Content-Type: application/json [10:18:09] [10:18:09]POST finish read [10:18:09]Found Content-Length = 740 [10:18:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 123204, "base_FM": "0000000000874798", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106127", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 72.700, "sum" : 4500.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4500.00, "total" : 4500.00, "payments": [ { "type": 0, "sum" : 4500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:18:09]execute_script... [10:18:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 123204, "base_FM": "0000000000874798", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106127", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 72.700, "sum" : 4500.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4500.00, "total" : 4500.00, "payments": [ { "type": 0, "sum" : 4500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:18:09]POST & json_proto [10:18:09]process_json_proto [10:18:09]json parsed OK: [10:18:09]protocol is kg_v1.0 [10:18:09]action value=close_receipt [10:18:09]process_action close_receipt [10:18:09]cmd_close_receipt [10:18:09]MH_GetDate [10:18:09]Write to MH i2c: F0 00 00 D2 1A DB [10:18:09]Write i2c OK [10:18:09]MH_I2C_Read... [10:18:09]Read from MH i2c: F0 [10:18:09]MH_I2C_Read... [10:18:09]Read from MH i2c: F0 09 00 [10:18:09]MH_I2C_Read... [10:18:09]Read from MH i2c: F0 09 00 D2 1A 00 63 4E E4 65 6C AF E3 65 41 [10:18:09]GetLastDocTimeStamp 1709461084 [10:18:09]current date 1709461091 [10:18:09]FM_GetShiftState [10:18:09]SAM_PROTO_GetShiftState [10:18:09]wFMCommunicate request_size=4 [10:18:09]MH_SAM_APDU [10:18:09]CAPDU: 80 13 01 00 [10:18:09]Write to MH i2c: E2 08 00 D3 1A 80 13 01 00 00 00 00 00 6A [10:18:09]Write i2c OK [10:18:09]MH_I2C_Read... [10:18:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:18:09]Read from MH i2c: E2 [10:18:09]MH_I2C_Read... [10:18:09]Read from MH i2c: E2 0E 00 [10:18:09]MH_I2C_Read... [10:18:09]Read from MH i2c: E2 0E 00 D3 1A 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 2C [10:18:09]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [10:18:09]wFMCommunicate OK [10:18:09]SAM_PROTO_GetShiftState done [10:18:09]FM_GetShiftState done [10:18:09]opened in 1709425579 [10:18:09]opened+sec_in_day 1709511979 [10:18:09]quantity*price = 450013 [10:18:09]sum+1 = 450014 [10:18:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 4500.00 НСП 1% : 39.82 НДС 12% : 477.89 Наличными: 4500.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 62 03.03.2024 10:18 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФД осн.: 123204 ФМ осн.: 0000000000874798 ФМ: 0000000000874798 ФД: 123205 ФПД: 208569902695707 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T101811&type=2&operation_type=1&fn_number=0000000000874798&fd_number=123205&fm=208569902695707&tin=02508201610067®Number=0000000000090573&sum=450000 [10:18:10]StoreToDocumentArchive [10:18:10]shift 323 fd 123205 [10:18:10]save to /storage/0323/doc_00123205 [10:18:10]save last doc name /storage/0323/doc_00123205 to /storage/kkm_last_doc_name [10:18:10]save OK [10:18:10]Clear old archive folders... [10:18:10]ProcessDocumentItem done err = 0, tmpTLVsize=279 [10:18:10]tlvbuf is 00E552B0 [10:18:10]SAM_PROTO_ClearQueue [10:18:10]wFMCommunicate request_size=4 [10:18:10]MH_SAM_APDU [10:18:10]CAPDU: 80 09 00 00 [10:18:10]Write to MH i2c: E2 08 00 E2 1A 80 09 00 00 00 00 00 00 6E [10:18:10]Write i2c OK [10:18:10]MH_I2C_Read... [10:18:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:18:10]Read from MH i2c: E2 [10:18:10]MH_I2C_Read... [10:18:10]Read from MH i2c: E2 03 00 [10:18:10]MH_I2C_Read... [10:18:10]Read from MH i2c: E2 03 00 E2 1A 00 90 00 70 [10:18:10]RAPDU: 90 00 [10:18:10]wFMCommunicate OK [10:18:10]SAM_PROTO_ClearQueue done [10:18:10]KKMCreateOFDPacket [10:18:10]OFDProtocolAddRootSTLVToBuf [10:18:10]FM_MakeSignedData [10:18:10]FM_MakeSignedData [10:18:10]SAM_PROTO_SignData [10:18:10]wFMCommunicate request_size=4 [10:18:10]MH_SAM_APDU [10:18:10]CAPDU: 80 0D 01 02 [10:18:10]Write to MH i2c: E2 08 00 E3 1A 80 0D 01 02 00 00 00 00 76 [10:18:10]Write i2c OK [10:18:10]MH_I2C_Read... [10:18:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:18:10]Read from MH i2c: E2 [10:18:10]MH_I2C_Read... [10:18:10]Read from MH i2c: E2 03 00 [10:18:10]MH_I2C_Read... [10:18:10]Read from MH i2c: E2 03 00 E3 1A 00 90 00 71 [10:18:10]RAPDU: 90 00 [10:18:10]wFMCommunicate OK [10:18:10]wFMCommunicate request_size=255 [10:18:10]MH_SAM_APDU [10:18:10]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 35 FF 03 08 00 03 FC 1B 01 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 DD DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD BA 00 00 00 00 07 04 06 00 D0 DD 06 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 63 4E E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 27 04 04 00 44 E1 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 11 04 10 00 30 [10:18:10]Write to MH i2c: E2 02 01 E4 1A 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 35 FF 03 08 00 03 FC 1B 01 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 DD DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD BA 00 00 00 00 07 04 06 00 D0 DD 06 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 63 4E E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 27 04 04 00 44 E1 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 11 04 10 00 30 00 00 16 [10:18:10]Write i2c OK [10:18:10]MH_I2C_Read... [10:18:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:18:11]Read from MH i2c: E2 [10:18:11]MH_I2C_Read... [10:18:11]Read from MH i2c: E2 03 00 [10:18:11]MH_I2C_Read... [10:18:11]Read from MH i2c: E2 03 00 E4 1A 00 90 00 72 [10:18:11]RAPDU: 90 00 [10:18:11]wFMCommunicate OK [10:18:11]wFMCommunicate request_size=38 [10:18:11]MH_SAM_APDU [10:18:11]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 45 E1 01 00 35 04 06 00 BD B1 76 F6 05 1B [10:18:11]Write to MH i2c: E2 29 00 E5 1A 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 45 E1 01 00 35 04 06 00 BD B1 76 F6 05 1B 00 00 2E [10:18:11]Write i2c OK [10:18:11]MH_I2C_Read... [10:18:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:18:11]Read from MH i2c: E2 [10:18:11]MH_I2C_Read... [10:18:11]Read from MH i2c: E2 03 00 [10:18:11]MH_I2C_Read... [10:18:11]Read from MH i2c: E2 03 00 E5 1A 00 90 00 73 [10:18:11]RAPDU: 90 00 [10:18:11]wFMCommunicate OK [10:18:11]wFMCommunicate request_size=4 [10:18:11]MH_SAM_APDU [10:18:11]CAPDU: 80 0D 03 02 [10:18:11]Write to MH i2c: E2 08 00 E6 1A 80 0D 03 02 00 00 00 00 7B [10:18:11]Write i2c OK [10:18:11]MH_I2C_Read... [10:18:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:18:11]Read from MH i2c: E2 [10:18:11]MH_I2C_Read... [10:18:11]Read from MH i2c: E2 0B 00 [10:18:11]MH_I2C_Read... [10:18:11]Read from MH i2c: E2 0B 00 E6 1A 00 F7 C7 59 8F D3 47 B2 A7 90 00 95 [10:18:11]RAPDU: F7 C7 59 8F D3 47 B2 A7 90 00 [10:18:11]wFMCommunicate OK [10:18:11]SAM_PROTO_SignData done [10:18:11]FM_MakeSignedData done [10:18:11]CreateOFDProtocolMessage [10:18:11]wFMCommunicate request_size=4 [10:18:11]MH_SAM_APDU [10:18:11]CAPDU: 80 11 00 00 [10:18:11]Write to MH i2c: E2 08 00 E7 1A 80 11 00 00 00 00 00 00 7B [10:18:11]Write i2c OK [10:18:11]MH_I2C_Read... [10:18:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:18:11]Read from MH i2c: E2 [10:18:11]MH_I2C_Read... [10:18:11]Read from MH i2c: E2 17 00 [10:18:11]MH_I2C_Read... [10:18:11]Read from MH i2c: E2 17 00 E7 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 D9 [10:18:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [10:18:11]wFMCommunicate OK [10:18:11]CreateOFDProtocolMessage done [10:18:11]OFDSenderStorePacket 123205 [10:18:11]StoreOFDPacket docnum=123205 [10:18:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 2B 01 00 00 78 10 23 01 37 13 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 35 FF 03 08 00 03 FC 1B 01 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 DD DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD BA 00 00 00 00 07 04 06 00 D0 DD 06 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 63 4E E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 27 04 04 00 44 E1 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 45 E1 01 00 35 04 06 00 BD B1 76 F6 05 1B F7 C7 59 8F D3 47 B2 A7 [10:18:11]CheckFolder [10:18:11]dirname=/storage/ofd_packets [10:18:11]CheckFolder done [10:18:11]ProducePacketName [10:18:11]name=ofd_packets/00123205 [10:18:11]NVStorageSaveData ofd_packets/00123205 [10:18:11]File name is /storage/ofd_packets/00123205 [10:18:11]Write 329 bytes [10:18:11]NVStorageSaveData done [10:18:11]OFDSenderStorePacket done [10:18:11]KKMCreateOFDPacket done [10:18:11]NVStorageSaveData kkm_last_timestamp [10:18:11]File name is /storage/kkm_last_timestamp [10:18:11]Write 4 bytes [10:18:11]NVStorageSaveData done [10:18:11]ExternCall_PrintAddStr [10:18:11]wPrintStart [10:18:11]Write to MH i2c: 01 00 00 E8 1A 02 [10:18:11]Write i2c OK [10:18:11]MH_I2C_Read... [10:18:11]Read from MH i2c: 01 [10:18:11]MH_I2C_Read... [10:18:11]Read from MH i2c: 01 07 00 [10:18:11]MH_I2C_Read... [10:18:11]Read from MH i2c: 01 07 00 E8 1A 00 00 00 00 00 FF 0F 17 [10:18:11]RasterBufferAndPrint [10:18:11]line Счет N : (1)1106127 [10:18:11]line ИНН: 02508201610067 [10:18:11]line Контрольно-Кассовый Чек [10:18:11]line ВОЗВРАТ ПРОДАЖИ [10:18:11]line ТРК (МРК, ГНК) : 42 [10:18:11]line Товар: 2710124130 [10:18:11]line Аи-92-К-5 [10:18:11]line 72.700 * 61.90 [10:18:11]line = 4500.13 [10:18:11]line НДС 12% НСП 1% [10:18:11]line > о реализуемом товаре [10:18:11]line ОКРУГЛЕНИЕ: -0.13 [10:18:11]line ИТОГО: 4500.00 [10:18:11]line НСП 1% : 39.82 [10:18:11]line НДС 12% : 477.89 [10:18:11]line Наличными: 4500.00 [10:18:11]line Безнал.: 0.00 [10:18:11]line Место: АЗС № 25 "Партнер Нефть" [10:18:11]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [10:18:11]line СНО: Общий режим [10:18:11]line Чек 62 03.03.2024 10:18 [10:18:11]line Смена: 323 ФФД: 1.0 [10:18:11]line ЗНМ: 0300000019 [10:18:11]line РНМ: 0000000000090573 [10:18:11]line Версия ККМ: 001 [10:18:11]line ФД осн.: 123204 [10:18:11]line ФМ осн.: 0000000000874798 [10:18:11]line ФМ: 0000000000874798 [10:18:11]line ФД: 123205 [10:18:11]line ФПД: 208569902695707 [10:18:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T101811&type=2&operation_type=1&fn_number=0000000000874798&fd_number=123205&fm=208569902695707&tin=02508201610067®Number=0000000000090573&sum=450000 [10:18:11]written 0, free lines is 4095 [10:18:11]OFD Sender: Processing packet 123205 [packets to send 112, broken 111] [10:18:11]ProducePacketName [10:18:11]name=ofd_packets/00123205 [10:18:11]OFD Sender: To server: pG, [10:18:11]CommunicateWithHost lk.salyk.kg:30040 [10:18:11]ConnectInit lk.salyk.kg [10:18:11]Connected sock=10 [10:18: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 37 39 38 2B 01 00 00 78 10 23 01 37 13 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 35 FF 03 08 00 03 FC 1B 01 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 DD DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD BA 00 00 00 00 07 04 06 00 D0 DD 06 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 63 4E E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 27 04 04 00 44 E1 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 45 E1 01 00 35 04 06 00 BD B1 76 F6 05 1B F7 C7 59 8F D3 47 B2 A7 [10:18:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 F7 82 47 00 57 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 37 39 38 10 04 04 00 45 E1 01 00 F4 03 04 00 90 FA E3 65 B6 04 01 00 00 74 58 BE 60 39 5D 26 12 [10:18:11]CommunicateWithHost err = 0 [10:18:11]CheckOFDResponse [10:18:11]1017 (14) - 77093643461234 [10:18:11]1041 (16) - 0000000000874798 [10:18:11]1040 (4) - 123205 [10:18:11]1012 (4) - 03.03.2024 04:20 [10:18:11]1206 (1) - 0 [10:18:11]OFD Sender: Remove packet 123205 [10:18:11]ProducePacketName [10:18:11]name=ofd_packets/00123205 [10:18:11]NVStorageDeleteData [10:18:11]Write to MH i2c: 01 00 00 13 1B 2E [10:18:11]Write i2c OK [10:18:11]MH_I2C_Read... [10:18:11]Read from MH i2c: 01 [10:18:11]MH_I2C_Read... [10:18:11]Read from MH i2c: 01 07 00 [10:18:11]MH_I2C_Read... [10:18:11]Read from MH i2c: 01 07 00 13 1B 00 00 00 00 00 22 0D 64 [10:18:11]RasterBufferAndPrint [10:18:11]line [10:18:11]line [10:18:11]line [10:18:11]line [10:18:11]line [10:18:11]written 0, free lines is 3371 [10:18:11]MH_Cut [10:18:11]Write to MH i2c: D1 01 00 1A 1B 01 07 [10:18:11]Write i2c OK [10:18:11]MH_I2C_Read... [10:18:11]Read from MH i2c: D1 [10:18:11]MH_I2C_Read... [10:18:11]Read from MH i2c: D1 01 00 [10:18:11]MH_I2C_Read... [10:18:11]Read from MH i2c: D1 01 00 1A 1B 00 06 [10:18:11]Write to MH i2c: 01 00 00 1B 1B 36 [10:18:11]Write i2c OK [10:18:11]MH_I2C_Read... [10:18:12]OFD Sender: No OFD packet to send [10:18:12]*** Cut start [10:18:12]*** Purtial cut [10:18:12]*** Stage 1: CUTSNS_PIN = 1 [10:18:14]Read from MH i2c: 01 [10:18:14]MH_I2C_Read... [10:18:14]*** Stop cut motor [10:18:14]*** Cut end [10:18:14]Read from MH i2c: 01 07 00 [10:18:14]MH_I2C_Read... [10:18:14]Read from MH i2c: 01 07 00 1B 1B 00 00 00 00 00 FF 0F 4B [10:18:14]process_action close_receipt done [10:18:14]requested_data is exist [10:18:14]produce_requested_data [10:18:14]requested_item fm.sn is exist - process it [10:18:14]wFMCommunicate request_size=4 [10:18:14]MH_SAM_APDU [10:18:14]CAPDU: 80 11 00 00 [10:18:14]Write to MH i2c: E2 08 00 1C 1B 80 11 00 00 00 00 00 00 B1 [10:18:14]Write i2c OK [10:18:14]MH_I2C_Read... [10:18:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:18:14]Read from MH i2c: E2 [10:18:14]MH_I2C_Read... [10:18:14]Read from MH i2c: E2 17 00 [10:18:14]MH_I2C_Read... [10:18:14]Read from MH i2c: E2 17 00 1C 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 0F [10:18:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [10:18:14]wFMCommunicate OK [10:18:14]requested_item fd.num is exist - process it [10:18:14]SAM_PROTO_GetFieldsCounters [10:18:14]wFMCommunicate request_size=4 [10:18:14]MH_SAM_APDU [10:18:14]CAPDU: 80 13 00 00 [10:18:14]Write to MH i2c: E2 08 00 1D 1B 80 13 00 00 00 00 00 00 B4 [10:18:14]Write i2c OK [10:18:14]MH_I2C_Read... [10:18:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:18:14]Read from MH i2c: E2 [10:18:14]MH_I2C_Read... [10:18:14]Read from MH i2c: E2 62 00 [10:18:14]MH_I2C_Read... [10:18:14]Read from MH i2c: E2 62 00 1D 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 45 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 04 [10: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 45 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:18:14]wFMCommunicate OK [10:18:14]SAM_PROTO_GetFieldsCounters done [10:18:14]requested_item shift.num is exist - process it [10:18:14]requested_item shift.opened is exist - process it [10:18:14]req_shift_opened [10:18:14]FM_GetShiftState [10:18:14]SAM_PROTO_GetShiftState [10:18:14]wFMCommunicate request_size=4 [10:18:14]MH_SAM_APDU [10:18:14]CAPDU: 80 13 01 00 [10:18:14]Write to MH i2c: E2 08 00 1E 1B 80 13 01 00 00 00 00 00 B6 [10:18:14]Write i2c OK [10:18:14]MH_I2C_Read... [10:18:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:18:14]Read from MH i2c: E2 [10:18:14]MH_I2C_Read... [10:18:14]Read from MH i2c: E2 0E 00 [10:18:14]MH_I2C_Read... [10:18:14]Read from MH i2c: E2 0E 00 1E 1B 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 78 [10:18:14]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [10:18:14]wFMCommunicate OK [10:18:14]SAM_PROTO_GetShiftState done [10:18:14]FM_GetShiftState done [10:18:14]req_shift_opened done [10:18:14]requested_item shift.open_date is exist - process it [10:18:14]req_shift_open_date [10:18:14]req_shift_open_date done [10:18:14]produce_requested_data done [10:18:14]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123205,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [10:18:14]process_action_free close_receipt [10:18:14]json_value_free [10:18:14]json_value_free done [10:18:14]process_json_proto returns [10:18:14]Send response to host [10:18:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123205,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [10:18:14]free response buf [10:18:14]execute_script done [10:18:14]execute_script returns [10:18:14]free content buf [10:18:14]Sock 7.Close socket [10:18:14]Sock 7.Thread stoped [10:18:17]OFD Sender: No OFD packet to send [10:18:22]OFD Sender: No OFD packet to send [10:18:27]OFD Sender: No OFD packet to send [10:18:32]OFD Sender: No OFD packet to send [10:18:37]OFD Sender: No OFD packet to send [10:18:42]OFD Sender: No OFD packet to send [10:18:47]OFD Sender: No OFD packet to send [10:18:52]OFD Sender: No OFD packet to send [10:18:57]OFD Sender: No OFD packet to send [10:19:02]OFD Sender: No OFD packet to send [10:19:07]OFD Sender: No OFD packet to send [10:19:12]OFD Sender: No OFD packet to send [10:19:17]OFD Sender: No OFD packet to send [10:19:22]OFD Sender: No OFD packet to send [10:19:27]OFD Sender: No OFD packet to send [10:19:32]OFD Sender: No OFD packet to send [10:19:37]OFD Sender: No OFD packet to send [10:19:42]OFD Sender: No OFD packet to send [10:19:47]OFD Sender: No OFD packet to send [10:19:51]accept exits with 9 [10:19:51]New connection [10:19:51]New thread 3067395428 created [10:19:51]Thread 3067252068 joined [10:19:51]Waiting for new connection... [10:19:51] Sock 9.Parse request [10:19:51]Sock 9.Check first char [10:19:51]Sock 9.First char is OK [10:19:51]request: POST /json_proto HTTP/1.0 [10:19:51]Method: POST [10:19:51]URL: /json_proto [10:19:51]Method is POST - this is cgi request [10:19:51]url: /json_proto [10:19:51]query_string will be loaded in cgi processing [10:19:51]execute_cgi json_proto POST (null) [10:19:51]execute_cgi path=json_proto method=POST [10:19:51]POST find Content-Length [10:19:51]Host: 172.17.48.197:8080 [10:19:51]Content-Length: 809 [10:19:51]Content-Type: application/json [10:19:51] [10:19:51]POST finish read [10:19:51]Found Content-Length = 809 [10:19:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106126", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 46.890, "sum" : 2902.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2902.49 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:19:51]execute_script... [10:19: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)1106126", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 46.890, "sum" : 2902.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2902.49 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:19:51]POST & json_proto [10:19:51]process_json_proto [10:19:51]json parsed OK: [10:19:51]protocol is kg_v1.0 [10:19:51]action value=close_receipt [10:19:51]process_action close_receipt [10:19:51]cmd_close_receipt [10:19:51]MH_GetDate [10:19:51]Write to MH i2c: F0 00 00 1F 1B 29 [10:19:51]Write i2c OK [10:19:51]MH_I2C_Read... [10:19:51]Read from MH i2c: F0 [10:19:51]MH_I2C_Read... [10:19:51]Read from MH i2c: F0 09 00 [10:19:51]MH_I2C_Read... [10:19:51]Read from MH i2c: F0 09 00 1F 1B 00 CA 4E E4 65 6C AF E3 65 F6 [10:19:51]GetLastDocTimeStamp 1709461091 [10:19:51]current date 1709461194 [10:19:51]FM_GetShiftState [10:19:51]SAM_PROTO_GetShiftState [10:19:51]wFMCommunicate request_size=4 [10:19:51]MH_SAM_APDU [10:19:51]CAPDU: 80 13 01 00 [10:19:51]Write to MH i2c: E2 08 00 20 1B 80 13 01 00 00 00 00 00 B8 [10:19:51]Write i2c OK [10:19:51]MH_I2C_Read... [10:19:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:51]Read from MH i2c: E2 [10:19:51]MH_I2C_Read... [10:19:51]Read from MH i2c: E2 0E 00 [10:19:51]MH_I2C_Read... [10:19:51]Read from MH i2c: E2 0E 00 20 1B 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 7A [10:19:51]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [10:19:51]wFMCommunicate OK [10:19:51]SAM_PROTO_GetShiftState done [10:19:51]FM_GetShiftState done [10:19:51]opened in 1709425579 [10:19:51]opened+sec_in_day 1709511979 [10:19:51]quantity*price = 290249 [10:19:51]sum+1 = 290250 [10:19:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2902.49 НСП 1% : 25.69 НДС 12% : 308.23 Наличными: 0.00 Безнал.: 2902.49 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 63 03.03.2024 10:19 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874798 ФД: 123206 ФПД: 223653855539073 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T101954&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123206&fm=223653855539073&tin=02508201610067®Number=0000000000090573&sum=290249 [10:19:52]StoreToDocumentArchive [10:19:52]shift 323 fd 123206 [10:19:52]save to /storage/0323/doc_00123206 [10:19:52]save last doc name /storage/0323/doc_00123206 to /storage/kkm_last_doc_name [10:19:52]save OK [10:19:52]Clear old archive folders... [10:19:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:19:52]tlvbuf is 00E02430 [10:19:52]SAM_PROTO_ClearQueue [10:19:52]wFMCommunicate request_size=4 [10:19:52]MH_SAM_APDU [10:19:52]CAPDU: 80 09 00 00 [10:19:52]Write to MH i2c: E2 08 00 2D 1B 80 09 00 00 00 00 00 00 BA [10:19:52]Write i2c OK [10:19:52]MH_I2C_Read... [10:19:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:19:52]Read from MH i2c: E2 [10:19:52]MH_I2C_Read... [10:19:52]Read from MH i2c: E2 03 00 [10:19:52]MH_I2C_Read... [10:19:52]Read from MH i2c: E2 03 00 2D 1B 00 90 00 BC [10:19:52]RAPDU: 90 00 [10:19:52]wFMCommunicate OK [10:19:52]SAM_PROTO_ClearQueue done [10:19:52]KKMCreateOFDPacket [10:19:52]OFDProtocolAddRootSTLVToBuf [10:19:52]FM_MakeSignedData [10:19:52]FM_MakeSignedData [10:19:52]SAM_PROTO_SignData [10:19:52]wFMCommunicate request_size=4 [10:19:52]MH_SAM_APDU [10:19:52]CAPDU: 80 0D 01 02 [10:19:52]Write to MH i2c: E2 08 00 2E 1B 80 0D 01 02 00 00 00 00 C2 [10:19:52]Write i2c OK [10:19:52]MH_I2C_Read... [10:19:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:19:53]Read from MH i2c: E2 [10:19:53]MH_I2C_Read... [10:19:53]Read from MH i2c: E2 03 00 [10:19:53]MH_I2C_Read... [10:19:53]Read from MH i2c: E2 03 00 2E 1B 00 90 00 BD [10:19:53]RAPDU: 90 00 [10:19:53]wFMCommunicate OK [10:19:53]wFMCommunicate request_size=255 [10:19:53]MH_SAM_APDU [10:19:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2A B7 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 C9 6D 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C9 6D 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 78 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C9 6D 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 CA 4E E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 46 E1 01 00 35 04 06 00 CB [10:19:53]Write to MH i2c: E2 02 01 2F 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2A B7 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 C9 6D 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C9 6D 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 78 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C9 6D 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 CA 4E E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 46 E1 01 00 35 04 06 00 CB 00 00 74 [10:19:53]Write i2c OK [10:19:53]MH_I2C_Read... [10:19:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:53]Read from MH i2c: E2 [10:19:53]MH_I2C_Read... [10:19:53]Read from MH i2c: E2 03 00 [10:19:53]MH_I2C_Read... [10:19:53]Read from MH i2c: E2 03 00 2F 1B 00 90 00 BE [10:19:53]RAPDU: 90 00 [10:19:53]wFMCommunicate OK [10:19:53]wFMCommunicate request_size=10 [10:19:53]MH_SAM_APDU [10:19:53]CAPDU: 80 0D 02 02 05 69 78 9C AF 81 [10:19:53]Write to MH i2c: E2 0D 00 30 1B 80 0D 02 02 05 00 69 78 9C AF 81 00 00 7C [10:19:53]Write i2c OK [10:19:53]MH_I2C_Read... [10:19:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:53]Read from MH i2c: E2 [10:19:53]MH_I2C_Read... [10:19:53]Read from MH i2c: E2 03 00 [10:19:53]MH_I2C_Read... [10:19:53]Read from MH i2c: E2 03 00 30 1B 00 90 00 BF [10:19:53]RAPDU: 90 00 [10:19:53]wFMCommunicate OK [10:19:53]wFMCommunicate request_size=4 [10:19:53]MH_SAM_APDU [10:19:53]CAPDU: 80 0D 03 02 [10:19:53]Write to MH i2c: E2 08 00 31 1B 80 0D 03 02 00 00 00 00 C7 [10:19:53]Write i2c OK [10:19:53]MH_I2C_Read... [10:19:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:19:53]Read from MH i2c: E2 [10:19:53]MH_I2C_Read... [10:19:53]Read from MH i2c: E2 0B 00 [10:19:53]MH_I2C_Read... [10:19:53]Read from MH i2c: E2 0B 00 31 1B 00 97 2E 1B 0B E2 66 4A D2 90 00 17 [10:19:53]RAPDU: 97 2E 1B 0B E2 66 4A D2 90 00 [10:19:53]wFMCommunicate OK [10:19:53]SAM_PROTO_SignData done [10:19:53]FM_MakeSignedData done [10:19:53]CreateOFDProtocolMessage [10:19:53]wFMCommunicate request_size=4 [10:19:53]MH_SAM_APDU [10:19:53]CAPDU: 80 11 00 00 [10:19:53]Write to MH i2c: E2 08 00 32 1B 80 11 00 00 00 00 00 00 C7 [10:19:53]Write i2c OK [10:19:53]MH_I2C_Read... [10:19:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:53]Read from MH i2c: E2 [10:19:53]MH_I2C_Read... [10:19:53]Read from MH i2c: E2 17 00 [10:19:53]MH_I2C_Read... [10:19:53]Read from MH i2c: E2 17 00 32 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 25 [10:19:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [10:19:53]wFMCommunicate OK [10:19:53]CreateOFDProtocolMessage done [10:19:53]OFDSenderStorePacket 123206 [10:19:53]StoreOFDPacket docnum=123206 [10:19:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 35 BF 07 01 8B 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2A B7 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 C9 6D 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C9 6D 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 78 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C9 6D 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 CA 4E E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 46 E1 01 00 35 04 06 00 CB 69 78 9C AF 81 97 2E 1B 0B E2 66 4A D2 [10:19:53]CheckFolder [10:19:53]dirname=/storage/ofd_packets [10:19:53]CheckFolder done [10:19:53]ProducePacketName [10:19:53]name=ofd_packets/00123206 [10:19:53]NVStorageSaveData ofd_packets/00123206 [10:19:53]File name is /storage/ofd_packets/00123206 [10:19:53]Write 301 bytes [10:19:53]NVStorageSaveData done [10:19:53]OFDSenderStorePacket done [10:19:53]KKMCreateOFDPacket done [10:19:53]NVStorageSaveData kkm_last_timestamp [10:19:53]File name is /storage/kkm_last_timestamp [10:19:53]Write 4 bytes [10:19:53]NVStorageSaveData done [10:19:53]ExternCall_PrintAddStr [10:19:53]wPrintStart [10:19:53]Write to MH i2c: 01 00 00 33 1B 4E [10:19:53]Write i2c OK [10:19:53]MH_I2C_Read... [10:19:53]Read from MH i2c: 01 [10:19:53]MH_I2C_Read... [10:19:53]Read from MH i2c: 01 07 00 [10:19:53]MH_I2C_Read... [10:19:53]Read from MH i2c: 01 07 00 33 1B 00 00 00 00 00 FF 0F 63 [10:19:53]RasterBufferAndPrint [10:19:53]line Счет N : (1)1106126 [10:19:53]line ИНН: 02508201610067 [10:19:53]line Контрольно-Кассовый Чек [10:19:53]line ПРОДАЖА [10:19:53]line ТРК (МРК, ГНК) : 21 [10:19:53]line Товар: 2710124130 [10:19:53]line Аи-92-К-5 [10:19:53]line 46.890 * 61.90 [10:19:53]line = 2902.49 [10:19:53]line НДС 12% НСП 1% [10:19:53]line > о реализуемом товаре [10:19:53]line ИТОГО: 2902.49 [10:19:53]line НСП 1% : 25.69 [10:19:53]line НДС 12% : 308.23 [10:19:53]line Наличными: 0.00 [10:19:53]line Безнал.: 2902.49 [10:19:53]line Место: АЗС № 25 "Партнер Нефть" [10:19:53]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [10:19:53]line СНО: Общий режим [10:19:53]line Чек 63 03.03.2024 10:19 [10:19:53]line Смена: 323 ФФД: 1.0 [10:19:53]line ЗНМ: 0300000019 [10:19:53]line РНМ: 0000000000090573 [10:19:53]line Версия ККМ: 001 [10:19:53]line Платежная система: О! деньги [10:19:53]line ФМ: 0000000000874798 [10:19:53]line ФД: 123206 [10:19:53]line ФПД: 223653855539073 [10:19:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T101954&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123206&fm=223653855539073&tin=02508201610067®Number=0000000000090573&sum=290249 [10:19:53]OFD Sender: Processing packet 123206 [packets to send 112, broken 111] [10:19:53]ProducePacketName [10:19:53]name=ofd_packets/00123206 [10:19:53]OFD Sender: To server: pG, [10:19:53]CommunicateWithHost lk.salyk.kg:30040 [10:19:53]ConnectInit lk.salyk.kg [10:19:53]written 0, free lines is 4095 [10:19:53]Connected sock=10 [10:19: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 37 39 38 0F 01 00 00 35 BF 07 01 8B 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2A B7 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 C9 6D 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C9 6D 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 78 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C9 6D 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 CA 4E E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 46 E1 01 00 35 04 06 00 CB 69 78 9C AF 81 97 2E 1B 0B E2 66 4A D2 [10:19:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 AB 72 47 00 9C A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 46 E1 01 00 F4 03 04 00 F6 FA E3 65 B6 04 01 00 00 F9 39 3B 36 28 A2 86 2A [10:19:54]CommunicateWithHost err = 0 [10:19:54]CheckOFDResponse [10:19:54]1017 (14) - 77093643461234 [10:19:54]1041 (16) - 0000000000874798 [10:19:54]1040 (4) - 123206 [10:19:54]1012 (4) - 03.03.2024 04:22 [10:19:54]1206 (1) - 0 [10:19:54]OFD Sender: Remove packet 123206 [10:19:54]ProducePacketName [10:19:54]name=ofd_packets/00123206 [10:19:54]NVStorageDeleteData [10:19:54]Write to MH i2c: 01 00 00 5D 1B 78 [10:19:54]Write i2c OK [10:19:54]MH_I2C_Read... [10:19:54]Read from MH i2c: 01 [10:19:54]MH_I2C_Read... [10:19:54]Read from MH i2c: 01 07 00 [10:19:54]MH_I2C_Read... [10:19:54]Read from MH i2c: 01 07 00 5D 1B 00 00 00 00 00 11 0D 9D [10:19:54]RasterBufferAndPrint [10:19:54]line [10:19:54]line [10:19:54]line [10:19:54]line [10:19:54]line [10:19:54]written 0, free lines is 3354 [10:19:54]MH_Cut [10:19:54]Write to MH i2c: D1 01 00 64 1B 01 51 [10:19:54]Write i2c OK [10:19:54]MH_I2C_Read... [10:19:54]Read from MH i2c: D1 [10:19:54]MH_I2C_Read... [10:19:54]Read from MH i2c: D1 01 00 [10:19:54]MH_I2C_Read... [10:19:54]Read from MH i2c: D1 01 00 64 1B 00 50 [10:19:54]Write to MH i2c: 01 00 00 65 1B 80 [10:19:54]Write i2c OK [10:19:54]MH_I2C_Read... [10:19:54]OFD Sender: No OFD packet to send [10:19:54]*** Cut start [10:19:54]*** Purtial cut [10:19:54]*** Stage 1: CUTSNS_PIN = 1 [10:19:56]Read from MH i2c: 01 [10:19:56]MH_I2C_Read... [10:19:56]*** Stop cut motor [10:19:56]*** Cut end [10:19:56]Read from MH i2c: 01 07 00 [10:19:56]MH_I2C_Read... [10:19:56]Read from MH i2c: 01 07 00 65 1B 00 00 00 00 00 FF 0F 95 [10:19:56]process_action close_receipt done [10:19:56]requested_data is exist [10:19:56]produce_requested_data [10:19:56]requested_item fm.sn is exist - process it [10:19:56]wFMCommunicate request_size=4 [10:19:56]MH_SAM_APDU [10:19:56]CAPDU: 80 11 00 00 [10:19:56]Write to MH i2c: E2 08 00 66 1B 80 11 00 00 00 00 00 00 FB [10:19:56]Write i2c OK [10:19:56]MH_I2C_Read... [10:19:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:56]Read from MH i2c: E2 [10:19:56]MH_I2C_Read... [10:19:56]Read from MH i2c: E2 17 00 [10:19:56]MH_I2C_Read... [10:19:56]Read from MH i2c: E2 17 00 66 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 59 [10:19:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [10:19:56]wFMCommunicate OK [10:19:56]requested_item fd.num is exist - process it [10:19:56]SAM_PROTO_GetFieldsCounters [10:19:56]wFMCommunicate request_size=4 [10:19:56]MH_SAM_APDU [10:19:56]CAPDU: 80 13 00 00 [10:19:56]Write to MH i2c: E2 08 00 67 1B 80 13 00 00 00 00 00 00 FE [10:19:56]Write i2c OK [10:19:56]MH_I2C_Read... [10:19:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:19:57]Read from MH i2c: E2 [10:19:57]MH_I2C_Read... [10:19:57]Read from MH i2c: E2 62 00 [10:19:57]MH_I2C_Read... [10:19:57]Read from MH i2c: E2 62 00 67 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 46 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 52 [10:19: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 46 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:19:57]wFMCommunicate OK [10:19:57]SAM_PROTO_GetFieldsCounters done [10:19:57]requested_item shift.num is exist - process it [10:19:57]requested_item shift.opened is exist - process it [10:19:57]req_shift_opened [10:19:57]FM_GetShiftState [10:19:57]SAM_PROTO_GetShiftState [10:19:57]wFMCommunicate request_size=4 [10:19:57]MH_SAM_APDU [10:19:57]CAPDU: 80 13 01 00 [10:19:57]Write to MH i2c: E2 08 00 68 1B 80 13 01 00 00 00 00 00 00 [10:19:57]Write i2c OK [10:19:57]MH_I2C_Read... [10:19:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:57]Read from MH i2c: E2 [10:19:57]MH_I2C_Read... [10:19:57]Read from MH i2c: E2 0E 00 [10:19:57]MH_I2C_Read... [10:19:57]Read from MH i2c: E2 0E 00 68 1B 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 C2 [10:19:57]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [10:19:57]wFMCommunicate OK [10:19:57]SAM_PROTO_GetShiftState done [10:19:57]FM_GetShiftState done [10:19:57]req_shift_opened done [10:19:57]requested_item shift.open_date is exist - process it [10:19:57]req_shift_open_date [10:19:57]req_shift_open_date done [10:19:57]produce_requested_data done [10:19:57]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123206,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [10:19:57]process_action_free close_receipt [10:19:57]json_value_free [10:19:57]json_value_free done [10:19:57]process_json_proto returns [10:19:57]Send response to host [10:19:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123206,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [10:19:57]free response buf [10:19:57]execute_script done [10:19:57]execute_script returns [10:19:57]free content buf [10:19:57]Sock 9.Close socket [10:19:57]Sock 9.Thread stoped [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:26]accept exits with 7 [10:20:26]New connection [10:20:26]New thread 3067252068 created [10:20:26]Thread 3067395428 joined [10:20:26]Waiting for new connection... [10:20:26] Sock 7.Parse request [10:20:26]Sock 7.Check first char [10:20:26]Sock 7.First char is OK [10:20:26]request: POST /json_proto HTTP/1.0 [10:20:26]Method: POST [10:20:26]URL: /json_proto [10:20:26]Method is POST - this is cgi request [10:20:26]url: /json_proto [10:20:26]query_string will be loaded in cgi processing [10:20:26]execute_cgi json_proto POST (null) [10:20:26]execute_cgi path=json_proto method=POST [10:20:26]POST find Content-Length [10:20:26]Host: 172.17.48.197:8080 [10:20:26]Content-Length: 683 [10:20:26]Content-Type: application/json [10:20:26] [10:20:26]POST finish read [10:20:26]Found Content-Length = 683 [10:20:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106128", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:20:26]execute_script... [10:20: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)1106128", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:20:26]POST & json_proto [10:20:26]process_json_proto [10:20:26]json parsed OK: [10:20:26]protocol is kg_v1.0 [10:20:26]action value=close_receipt [10:20:26]process_action close_receipt [10:20:26]cmd_close_receipt [10:20:26]MH_GetDate [10:20:26]Write to MH i2c: F0 00 00 69 1B 73 [10:20:26]Write i2c OK [10:20:26]MH_I2C_Read... [10:20:26]Read from MH i2c: F0 [10:20:26]MH_I2C_Read... [10:20:26]Read from MH i2c: F0 09 00 [10:20:26]MH_I2C_Read... [10:20:26]Read from MH i2c: F0 09 00 69 1B 00 EC 4E E4 65 6C AF E3 65 62 [10:20:26]GetLastDocTimeStamp 1709461194 [10:20:26]current date 1709461228 [10:20:26]FM_GetShiftState [10:20:26]SAM_PROTO_GetShiftState [10:20:26]wFMCommunicate request_size=4 [10:20:26]MH_SAM_APDU [10:20:26]CAPDU: 80 13 01 00 [10:20:26]Write to MH i2c: E2 08 00 6A 1B 80 13 01 00 00 00 00 00 02 [10:20:26]Write i2c OK [10:20:26]MH_I2C_Read... [10:20:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:26]Read from MH i2c: E2 [10:20:26]MH_I2C_Read... [10:20:26]Read from MH i2c: E2 0E 00 [10:20:26]MH_I2C_Read... [10:20:26]Read from MH i2c: E2 0E 00 6A 1B 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 C4 [10:20:26]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [10:20:26]wFMCommunicate OK [10:20:26]SAM_PROTO_GetShiftState done [10:20:26]FM_GetShiftState done [10:20:26]opened in 1709425579 [10:20:26]opened+sec_in_day 1709511979 [10:20:26]quantity*price = 100010 [10:20:26]sum+1 = 100012 [10:20:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 64 03.03.2024 10:20 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123207 ФПД: 225474572683336 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T102029&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123207&fm=225474572683336&tin=02508201610067®Number=0000000000090573&sum=100000 [10:20:27]StoreToDocumentArchive [10:20:27]shift 323 fd 123207 [10:20:27]save to /storage/0323/doc_00123207 [10:20:27]save last doc name /storage/0323/doc_00123207 to /storage/kkm_last_doc_name [10:20:27]save OK [10:20:27]Clear old archive folders... [10:20:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:20:27]tlvbuf is 00E1B7E0 [10:20:27]SAM_PROTO_ClearQueue [10:20:27]wFMCommunicate request_size=4 [10:20:27]MH_SAM_APDU [10:20:27]CAPDU: 80 09 00 00 [10:20:27]Write to MH i2c: E2 08 00 77 1B 80 09 00 00 00 00 00 00 04 [10:20:27]Write i2c OK [10:20:27]MH_I2C_Read... [10:20:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:20:27]Read from MH i2c: E2 [10:20:27]MH_I2C_Read... [10:20:27]Read from MH i2c: E2 03 00 [10:20:27]MH_I2C_Read... [10:20:27]Read from MH i2c: E2 03 00 77 1B 00 90 00 06 [10:20:27]RAPDU: 90 00 [10:20:27]wFMCommunicate OK [10:20:27]SAM_PROTO_ClearQueue done [10:20:27]KKMCreateOFDPacket [10:20:27]OFDProtocolAddRootSTLVToBuf [10:20:27]FM_MakeSignedData [10:20:27]FM_MakeSignedData [10:20:27]SAM_PROTO_SignData [10:20:27]wFMCommunicate request_size=4 [10:20:27]MH_SAM_APDU [10:20:27]CAPDU: 80 0D 01 02 [10:20:27]Write to MH i2c: E2 08 00 78 1B 80 0D 01 02 00 00 00 00 0C [10:20:27]Write i2c OK [10:20:27]MH_I2C_Read... [10:20:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:20:27]Read from MH i2c: E2 [10:20:27]MH_I2C_Read... [10:20:27]Read from MH i2c: E2 03 00 [10:20:27]MH_I2C_Read... [10:20:27]Read from MH i2c: E2 03 00 78 1B 00 90 00 07 [10:20:27]RAPDU: 90 00 [10:20:27]wFMCommunicate OK [10:20:27]wFMCommunicate request_size=255 [10:20:27]MH_SAM_APDU [10:20:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 ED 4E E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 47 E1 01 00 35 04 06 00 CD [10:20:27]Write to MH i2c: E2 02 01 79 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 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 ED 4E E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 47 E1 01 00 35 04 06 00 CD 00 00 6F [10:20:27]Write i2c OK [10:20:27]MH_I2C_Read... [10:20:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:27]Read from MH i2c: E2 [10:20:27]MH_I2C_Read... [10:20:27]Read from MH i2c: E2 03 00 [10:20:27]MH_I2C_Read... [10:20:27]Read from MH i2c: E2 03 00 79 1B 00 90 00 08 [10:20:27]RAPDU: 90 00 [10:20:27]wFMCommunicate OK [10:20:27]wFMCommunicate request_size=10 [10:20:27]MH_SAM_APDU [10:20:27]CAPDU: 80 0D 02 02 05 11 63 CF 88 48 [10:20:27]Write to MH i2c: E2 0D 00 7A 1B 80 0D 02 02 05 00 11 63 CF 88 48 00 00 2C [10:20:27]Write i2c OK [10:20:27]MH_I2C_Read... [10:20:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:27]Read from MH i2c: E2 [10:20:27]MH_I2C_Read... [10:20:27]Read from MH i2c: E2 03 00 [10:20:27]MH_I2C_Read... [10:20:27]Read from MH i2c: E2 03 00 7A 1B 00 90 00 09 [10:20:27]RAPDU: 90 00 [10:20:27]wFMCommunicate OK [10:20:27]wFMCommunicate request_size=4 [10:20:27]MH_SAM_APDU [10:20:27]CAPDU: 80 0D 03 02 [10:20:27]Write to MH i2c: E2 08 00 7B 1B 80 0D 03 02 00 00 00 00 11 [10:20:27]Write i2c OK [10:20:27]MH_I2C_Read... [10:20:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:20:28]Read from MH i2c: E2 [10:20:28]MH_I2C_Read... [10:20:28]Read from MH i2c: E2 0B 00 [10:20:28]MH_I2C_Read... [10:20:28]Read from MH i2c: E2 0B 00 7B 1B 00 80 A6 34 71 F1 81 B4 F1 90 00 F4 [10:20:28]RAPDU: 80 A6 34 71 F1 81 B4 F1 90 00 [10:20:28]wFMCommunicate OK [10:20:28]SAM_PROTO_SignData done [10:20:28]FM_MakeSignedData done [10:20:28]CreateOFDProtocolMessage [10:20:28]wFMCommunicate request_size=4 [10:20:28]MH_SAM_APDU [10:20:28]CAPDU: 80 11 00 00 [10:20:28]Write to MH i2c: E2 08 00 7C 1B 80 11 00 00 00 00 00 00 11 [10:20:28]Write i2c OK [10:20:28]MH_I2C_Read... [10:20:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:28]Read from MH i2c: E2 [10:20:28]MH_I2C_Read... [10:20:28]Read from MH i2c: E2 17 00 [10:20:28]MH_I2C_Read... [10:20:28]Read from MH i2c: E2 17 00 7C 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 6F [10:20:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [10:20:28]wFMCommunicate OK [10:20:28]CreateOFDProtocolMessage done [10:20:28]OFDSenderStorePacket 123207 [10:20:28]StoreOFDPacket docnum=123207 [10:20:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 68 35 07 01 99 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 ED 4E E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 47 E1 01 00 35 04 06 00 CD 11 63 CF 88 48 80 A6 34 71 F1 81 B4 F1 [10:20:28]CheckFolder [10:20:28]dirname=/storage/ofd_packets [10:20:28]CheckFolder done [10:20:28]ProducePacketName [10:20:28]name=ofd_packets/00123207 [10:20:28]NVStorageSaveData ofd_packets/00123207 [10:20:28]File name is /storage/ofd_packets/00123207 [10:20:28]Write 301 bytes [10:20:28]NVStorageSaveData done [10:20:28]OFDSenderStorePacket done [10:20:28]KKMCreateOFDPacket done [10:20:28]NVStorageSaveData kkm_last_timestamp [10:20:28]File name is /storage/kkm_last_timestamp [10:20:28]Write 4 bytes [10:20:28]NVStorageSaveData done [10:20:28]ExternCall_PrintAddStr [10:20:28]wPrintStart [10:20:28]Write to MH i2c: 01 00 00 7D 1B 98 [10:20:28]Write i2c OK [10:20:28]MH_I2C_Read... [10:20:28]Read from MH i2c: 01 [10:20:28]MH_I2C_Read... [10:20:28]Read from MH i2c: 01 07 00 [10:20:28]MH_I2C_Read... [10:20:28]Read from MH i2c: 01 07 00 7D 1B 00 00 00 00 00 FF 0F AD [10:20:28]RasterBufferAndPrint [10:20:28]line Счет N : (1)1106128 [10:20:28]line ИНН: 02508201610067 [10:20:28]line Контрольно-Кассовый Чек [10:20:28]line ПРОДАЖА [10:20:28]line ТРК (МРК, ГНК) : 63 [10:20:28]line Товар: 2710124500 [10:20:28]line Аи-95-К-5 [10:20:28]line 14.390 * 69.50 [10:20:28]line = 1000.11 [10:20:28]line НДС 12% НСП 1% [10:20:28]line > о реализуемом товаре [10:20:28]line ОКРУГЛЕНИЕ: -0.11 [10:20:28]line ИТОГО: 1000.00 [10:20:28]line Внесено: 1000.00 [10:20:28]line СДАЧА: 0.00 [10:20:28]line НСП 1% : 8.85 [10:20:28]line НДС 12% : 106.21 [10:20:28]line Наличными: 1000.00 [10:20:28]line Безнал.: 0.00 [10:20:28]line Место: АЗС № 25 "Партнер Нефть" [10:20:28]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [10:20:28]line СНО: Общий режим [10:20:28]line Чек 64 03.03.2024 10:20 [10:20:28]line Смена: 323 ФФД: 1.0 [10:20:28]line ЗНМ: 0300000019 [10:20:28]line РНМ: 0000000000090573 [10:20:28]line Версия ККМ: 001 [10:20:28]line ФМ: 0000000000874798 [10:20:28]line ФД: 123207 [10:20:28]line ФПД: 225474572683336 [10:20:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T102029&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123207&fm=225474572683336&tin=02508201610067®Number=0000000000090573&sum=100000 [10:20:28]written 0, free lines is 4095 [10:20:28]OFD Sender: Processing packet 123207 [packets to send 112, broken 111] [10:20:28]ProducePacketName [10:20:28]name=ofd_packets/00123207 [10:20:28]OFD Sender: To server: pG, [10:20:28]CommunicateWithHost lk.salyk.kg:30040 [10:20:28]ConnectInit lk.salyk.kg [10:20:28]Connected sock=11 [10:20: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 37 39 38 0F 01 00 00 68 35 07 01 99 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 ED 4E E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 47 E1 01 00 35 04 06 00 CD 11 63 CF 88 48 80 A6 34 71 F1 81 B4 F1 [10:20:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 96 E9 47 00 B7 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 37 39 38 10 04 04 00 47 E1 01 00 F4 03 04 00 18 FB E3 65 B6 04 01 00 00 95 E7 8A 89 1D AE 1E E2 [10:20:28]CommunicateWithHost err = 0 [10:20:28]CheckOFDResponse [10:20:28]1017 (14) - 77093643461234 [10:20:28]1041 (16) - 0000000000874798 [10:20:28]1040 (4) - 123207 [10:20:28]1012 (4) - 03.03.2024 04:22 [10:20:28]1206 (1) - 0 [10:20:28]OFD Sender: Remove packet 123207 [10:20:28]ProducePacketName [10:20:28]name=ofd_packets/00123207 [10:20:28]NVStorageDeleteData [10:20:28]Write to MH i2c: 01 00 00 A8 1B C3 [10:20:28]Write i2c OK [10:20:28]MH_I2C_Read... [10:20:28]Read from MH i2c: 01 [10:20:28]MH_I2C_Read... [10:20:28]Read from MH i2c: 01 07 00 [10:20:28]MH_I2C_Read... [10:20:28]Read from MH i2c: 01 07 00 A8 1B 00 00 00 00 00 F3 0C C9 [10:20:28]RasterBufferAndPrint [10:20:28]line [10:20:28]line [10:20:28]line [10:20:28]line [10:20:28]line [10:20:28]written 0, free lines is 3321 [10:20:28]MH_Cut [10:20:28]Write to MH i2c: D1 01 00 AF 1B 01 9C [10:20:28]Write i2c OK [10:20:28]MH_I2C_Read... [10:20:28]Read from MH i2c: D1 [10:20:28]MH_I2C_Read... [10:20:28]Read from MH i2c: D1 01 00 [10:20:28]MH_I2C_Read... [10:20:28]Read from MH i2c: D1 01 00 AF 1B 00 9B [10:20:28]Write to MH i2c: 01 00 00 B0 1B CB [10:20:28]Write i2c OK [10:20:28]MH_I2C_Read... [10:20:28]OFD Sender: No OFD packet to send [10:20:29]*** Cut start [10:20:29]*** Purtial cut [10:20:29]*** Stage 1: CUTSNS_PIN = 1 [10:20:31]Read from MH i2c: 01 [10:20:31]MH_I2C_Read... [10:20:31]*** Stop cut motor [10:20:31]*** Cut end [10:20:31]Read from MH i2c: 01 07 00 [10:20:31]MH_I2C_Read... [10:20:31]Read from MH i2c: 01 07 00 B0 1B 00 00 00 00 00 FF 0F E0 [10:20:31]process_action close_receipt done [10:20:31]requested_data is exist [10:20:31]produce_requested_data [10:20:31]requested_item fm.sn is exist - process it [10:20:31]wFMCommunicate request_size=4 [10:20:31]MH_SAM_APDU [10:20:31]CAPDU: 80 11 00 00 [10:20:31]Write to MH i2c: E2 08 00 B1 1B 80 11 00 00 00 00 00 00 46 [10:20:31]Write i2c OK [10:20:31]MH_I2C_Read... [10:20:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:31]Read from MH i2c: E2 [10:20:31]MH_I2C_Read... [10:20:31]Read from MH i2c: E2 17 00 [10:20:31]MH_I2C_Read... [10:20:31]Read from MH i2c: E2 17 00 B1 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 A4 [10:20:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [10:20:31]wFMCommunicate OK [10:20:31]requested_item fd.num is exist - process it [10:20:31]SAM_PROTO_GetFieldsCounters [10:20:31]wFMCommunicate request_size=4 [10:20:31]MH_SAM_APDU [10:20:31]CAPDU: 80 13 00 00 [10:20:31]Write to MH i2c: E2 08 00 B2 1B 80 13 00 00 00 00 00 00 49 [10:20:31]Write i2c OK [10:20:31]MH_I2C_Read... [10:20:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:20:31]Read from MH i2c: E2 [10:20:31]MH_I2C_Read... [10:20:31]Read from MH i2c: E2 62 00 [10:20:31]MH_I2C_Read... [10:20:31]Read from MH i2c: E2 62 00 B2 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 47 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 A1 [10:20: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 47 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:20:31]wFMCommunicate OK [10:20:31]SAM_PROTO_GetFieldsCounters done [10:20:31]requested_item shift.num is exist - process it [10:20:31]requested_item shift.opened is exist - process it [10:20:31]req_shift_opened [10:20:31]FM_GetShiftState [10:20:31]SAM_PROTO_GetShiftState [10:20:31]wFMCommunicate request_size=4 [10:20:31]MH_SAM_APDU [10:20:31]CAPDU: 80 13 01 00 [10:20:31]Write to MH i2c: E2 08 00 B3 1B 80 13 01 00 00 00 00 00 4B [10:20:31]Write i2c OK [10:20:31]MH_I2C_Read... [10:20:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:31]Read from MH i2c: E2 [10:20:31]MH_I2C_Read... [10:20:31]Read from MH i2c: E2 0E 00 [10:20:31]MH_I2C_Read... [10:20:31]Read from MH i2c: E2 0E 00 B3 1B 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 0D [10:20:31]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [10:20:31]wFMCommunicate OK [10:20:31]SAM_PROTO_GetShiftState done [10:20:31]FM_GetShiftState done [10:20:31]req_shift_opened done [10:20:31]requested_item shift.open_date is exist - process it [10:20:31]req_shift_open_date [10:20:31]req_shift_open_date done [10:20:31]produce_requested_data done [10:20:31]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123207,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [10:20:31]process_action_free close_receipt [10:20:31]json_value_free [10:20:31]json_value_free done [10:20:31]process_json_proto returns [10:20:31]Send response to host [10:20:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123207,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [10:20:31]free response buf [10:20:31]execute_script done [10:20:31]execute_script returns [10:20:31]free content buf [10:20:31]Sock 7.Close socket [10:20:31]Sock 7.Thread stoped [10:20:33]OFD Sender: No OFD packet to send [10:20:38]OFD Sender: No OFD packet to send [10:20:43]OFD Sender: No OFD packet to send [10:20:48]OFD Sender: No OFD packet to send [10:20:53]OFD Sender: No OFD packet to send [10:20:58]OFD Sender: No OFD packet to send [10:21:03]OFD Sender: No OFD packet to send [10:21:08]OFD Sender: No OFD packet to send [10:21:13]OFD Sender: No OFD packet to send [10:21:18]OFD Sender: No OFD packet to send [10:21:23]OFD Sender: No OFD packet to send [10:21:28]OFD Sender: No OFD packet to send [10:21:33]OFD Sender: No OFD packet to send [10:21:38]OFD Sender: No OFD packet to send [10:21:44]OFD Sender: No OFD packet to send [10:21:49]OFD Sender: No OFD packet to send [10:21:54]OFD Sender: No OFD packet to send [10:21:59]OFD Sender: No OFD packet to send [10:22:04]OFD Sender: No OFD packet to send [10:22:09]OFD Sender: No OFD packet to send [10:22:14]OFD Sender: No OFD packet to send [10:22:19]OFD Sender: No OFD packet to send [10:22:24]OFD Sender: No OFD packet to send [10:22:29]OFD Sender: No OFD packet to send [10:22:34]OFD Sender: No OFD packet to send [10:22:39]OFD Sender: No OFD packet to send [10:22:44]OFD Sender: No OFD packet to send [10:22:49]OFD Sender: No OFD packet to send [10:22:54]OFD Sender: No OFD packet to send [10:22:59]OFD Sender: No OFD packet to send [10:23:04]OFD Sender: No OFD packet to send [10:23:09]OFD Sender: No OFD packet to send [10:23:14]OFD Sender: No OFD packet to send [10:23:19]OFD Sender: No OFD packet to send [10:23:24]OFD Sender: No OFD packet to send [10:23:29]OFD Sender: No OFD packet to send [10:23:34]OFD Sender: No OFD packet to send [10:23:39]OFD Sender: No OFD packet to send [10:23:44]OFD Sender: No OFD packet to send [10:23:49]OFD Sender: No OFD packet to send [10:23:54]OFD Sender: No OFD packet to send [10:23:59]OFD Sender: No OFD packet to send [10:24:04]OFD Sender: No OFD packet to send [10:24:09]OFD Sender: No OFD packet to send [10:24:14]OFD Sender: No OFD packet to send [10:24:19]OFD Sender: No OFD packet to send [10:24:24]OFD Sender: No OFD packet to send [10:24:29]OFD Sender: No OFD packet to send [10:24:34]OFD Sender: No OFD packet to send [10:24:39]OFD Sender: No OFD packet to send [10:24:44]OFD Sender: No OFD packet to send [10:24:49]OFD Sender: No OFD packet to send [10:24:54]OFD Sender: No OFD packet to send [10:24:59]OFD Sender: No OFD packet to send [10:25:04]OFD Sender: No OFD packet to send [10:25:09]OFD Sender: No OFD packet to send [10:25:14]OFD Sender: No OFD packet to send [10:25:19]OFD Sender: No OFD packet to send [10:25:24]OFD Sender: No OFD packet to send [10:25:29]OFD Sender: No OFD packet to send [10:25:34]OFD Sender: No OFD packet to send [10:25:39]OFD Sender: No OFD packet to send [10:25:44]OFD Sender: No OFD packet to send [10:25:49]OFD Sender: No OFD packet to send [10:25:54]OFD Sender: No OFD packet to send [10:25:59]OFD Sender: No OFD packet to send [10:26:04]OFD Sender: No OFD packet to send [10:26:09]OFD Sender: No OFD packet to send [10:26:14]OFD Sender: No OFD packet to send [10:26:19]OFD Sender: No OFD packet to send [10:26:24]OFD Sender: No OFD packet to send [10:26:29]OFD Sender: No OFD packet to send [10:26:34]OFD Sender: No OFD packet to send [10:26:39]OFD Sender: No OFD packet to send [10:26:44]OFD Sender: No OFD packet to send [10:26:49]OFD Sender: No OFD packet to send [10:26:54]OFD Sender: No OFD packet to send [10:26:59]OFD Sender: No OFD packet to send [10:27:04]OFD Sender: No OFD packet to send [10:27:09]OFD Sender: No OFD packet to send [10:27:14]OFD Sender: No OFD packet to send [10:27:19]OFD Sender: No OFD packet to send [10:27:24]OFD Sender: No OFD packet to send [10:27:29]OFD Sender: No OFD packet to send [10:27:34]OFD Sender: No OFD packet to send [10:27:39]OFD Sender: No OFD packet to send [10:27:44]OFD Sender: No OFD packet to send [10:27:49]OFD Sender: No OFD packet to send [10:27:54]OFD Sender: No OFD packet to send [10:27:59]OFD Sender: No OFD packet to send [10:28:04]OFD Sender: No OFD packet to send [10:28:09]OFD Sender: No OFD packet to send [10:28:14]OFD Sender: No OFD packet to send [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:49]OFD Sender: No OFD packet to send [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:59]OFD Sender: No OFD packet to send [10:30:04]OFD Sender: No OFD packet to send [10:30:09]OFD Sender: No OFD packet to send [10:30:14]OFD Sender: No OFD packet to send [10:30:19]OFD Sender: No OFD packet to send [10:30:24]OFD Sender: No OFD packet to send [10:30:29]OFD Sender: No OFD packet to send [10:30:34]OFD Sender: No OFD packet to send [10:30:39]OFD Sender: No OFD packet to send [10:30:44]OFD Sender: No OFD packet to send [10:30:49]OFD Sender: No OFD packet to send [10:30:54]OFD Sender: No OFD packet to send [10:30:59]OFD Sender: No OFD packet to send [10:31:04]OFD Sender: No OFD packet to send [10:31:09]OFD Sender: No OFD packet to send [10:31:14]OFD Sender: No OFD packet to send [10:31:19]OFD Sender: No OFD packet to send [10:31:24]OFD Sender: No OFD packet to send [10:31:29]OFD Sender: No OFD packet to send [10:31:34]OFD Sender: No OFD packet to send [10:31:39]OFD Sender: No OFD packet to send [10:31:44]OFD Sender: No OFD packet to send [10:31:49]OFD Sender: No OFD packet to send [10:31:54]OFD Sender: No OFD packet to send [10:31:59]OFD Sender: No OFD packet to send [10:32:04]OFD Sender: No OFD packet to send [10:32:09]OFD Sender: No OFD packet to send [10:32:14]OFD Sender: No OFD packet to send [10:32:19]OFD Sender: No OFD packet to send [10:32:24]OFD Sender: No OFD packet to send [10:32:29]OFD Sender: No OFD packet to send [10:32:34]OFD Sender: No OFD packet to send [10:32:39]OFD Sender: No OFD packet to send [10:32:44]OFD Sender: No OFD packet to send [10:32:49]OFD Sender: No OFD packet to send [10:32:54]OFD Sender: No OFD packet to send [10:32:59]OFD Sender: No OFD packet to send [10:33:04]OFD Sender: No OFD packet to send [10:33:09]OFD Sender: No OFD packet to send [10:33:14]OFD Sender: No OFD packet to send [10:33:19]OFD Sender: No OFD packet to send [10:33:24]OFD Sender: No OFD packet to send [10:33:29]OFD Sender: No OFD packet to send [10:33:34]OFD Sender: No OFD packet to send [10:33:39]OFD Sender: No OFD packet to send [10:33:44]OFD Sender: No OFD packet to send [10:33:49]OFD Sender: No OFD packet to send [10:33:54]OFD Sender: No OFD packet to send [10:33:55]accept exits with 9 [10:33:55]New connection [10:33:55]New thread 3067395428 created [10:33:55]Thread 3067252068 joined [10:33:55]Waiting for new connection... [10:33:55] Sock 9.Parse request [10:33:55]Sock 9.Check first char [10:33:55]Sock 9.First char is OK [10:33:55]request: POST /json_proto HTTP/1.0 [10:33:55]Method: POST [10:33:55]URL: /json_proto [10:33:55]Method is POST - this is cgi request [10:33:55]url: /json_proto [10:33:55]query_string will be loaded in cgi processing [10:33:55]execute_cgi json_proto POST (null) [10:33:55]execute_cgi path=json_proto method=POST [10:33:55]POST find Content-Length [10:33:55]Host: 172.17.48.197:8080 [10:33:55]Content-Length: 678 [10:33:55]Content-Type: application/json [10:33:55] [10:33:55]POST finish read [10:33:55]Found Content-Length = 678 [10:33:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106129", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 3.240, "sum" : 200.56, "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" ] } } [10:33:55]execute_script... [10:33: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)1106129", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 3.240, "sum" : 200.56, "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" ] } } [10:33:55]POST & json_proto [10:33:55]process_json_proto [10:33:55]json parsed OK: [10:33:55]protocol is kg_v1.0 [10:33:55]action value=close_receipt [10:33:55]process_action close_receipt [10:33:55]cmd_close_receipt [10:33:55]MH_GetDate [10:33:55]Write to MH i2c: F0 00 00 B4 1B BE [10:33:55]Write i2c OK [10:33:55]MH_I2C_Read... [10:33:55]Read from MH i2c: F0 [10:33:55]MH_I2C_Read... [10:33:55]Read from MH i2c: F0 09 00 [10:33:55]MH_I2C_Read... [10:33:55]Read from MH i2c: F0 09 00 B4 1B 00 15 52 E4 65 6C AF E3 65 DA [10:33:55]GetLastDocTimeStamp 1709461229 [10:33:55]current date 1709462037 [10:33:55]FM_GetShiftState [10:33:55]SAM_PROTO_GetShiftState [10:33:55]wFMCommunicate request_size=4 [10:33:55]MH_SAM_APDU [10:33:55]CAPDU: 80 13 01 00 [10:33:55]Write to MH i2c: E2 08 00 B5 1B 80 13 01 00 00 00 00 00 4D [10:33:55]Write i2c OK [10:33:55]MH_I2C_Read... [10:33:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:33:55]Read from MH i2c: E2 [10:33:55]MH_I2C_Read... [10:33:55]Read from MH i2c: E2 0E 00 [10:33:55]MH_I2C_Read... [10:33:55]Read from MH i2c: E2 0E 00 B5 1B 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 0F [10:33:55]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [10:33:55]wFMCommunicate OK [10:33:55]SAM_PROTO_GetShiftState done [10:33:55]FM_GetShiftState done [10:33:55]opened in 1709425579 [10:33:55]opened+sec_in_day 1709511979 [10:33:55]quantity*price = 20055 [10:33:55]sum+1 = 20057 [10:33:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.30 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 65 03.03.2024 10:33 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123208 ФПД: 120893181264711 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T103357&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123208&fm=120893181264711&tin=02508201610067®Number=0000000000090573&sum=20000 [10:33:56]StoreToDocumentArchive [10:33:56]shift 323 fd 123208 [10:33:56]save to /storage/0323/doc_00123208 [10:33:56]save last doc name /storage/0323/doc_00123208 to /storage/kkm_last_doc_name [10:33:56]save OK [10:33:56]Clear old archive folders... [10:33:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:33:56]tlvbuf is 00DFD030 [10:33:56]SAM_PROTO_ClearQueue [10:33:56]wFMCommunicate request_size=4 [10:33:56]MH_SAM_APDU [10:33:56]CAPDU: 80 09 00 00 [10:33:56]Write to MH i2c: E2 08 00 C2 1B 80 09 00 00 00 00 00 00 4F [10:33:56]Write i2c OK [10:33:56]MH_I2C_Read... [10:33:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:33:56]Read from MH i2c: E2 [10:33:56]MH_I2C_Read... [10:33:56]Read from MH i2c: E2 03 00 [10:33:56]MH_I2C_Read... [10:33:56]Read from MH i2c: E2 03 00 C2 1B 00 90 00 51 [10:33:56]RAPDU: 90 00 [10:33:56]wFMCommunicate OK [10:33:56]SAM_PROTO_ClearQueue done [10:33:56]KKMCreateOFDPacket [10:33:56]OFDProtocolAddRootSTLVToBuf [10:33:56]FM_MakeSignedData [10:33:56]FM_MakeSignedData [10:33:56]SAM_PROTO_SignData [10:33:56]wFMCommunicate request_size=4 [10:33:56]MH_SAM_APDU [10:33:56]CAPDU: 80 0D 01 02 [10:33:56]Write to MH i2c: E2 08 00 C3 1B 80 0D 01 02 00 00 00 00 57 [10:33:56]Write i2c OK [10:33:56]MH_I2C_Read... [10:33:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:33:56]Read from MH i2c: E2 [10:33:56]MH_I2C_Read... [10:33:56]Read from MH i2c: E2 03 00 [10:33:56]MH_I2C_Read... [10:33:56]Read from MH i2c: E2 03 00 C3 1B 00 90 00 52 [10:33:56]RAPDU: 90 00 [10:33:56]wFMCommunicate OK [10:33:56]wFMCommunicate request_size=255 [10:33:56]MH_SAM_APDU [10:33:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 0C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 58 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 52 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 41 00 00 00 F4 03 04 00 15 52 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 48 E1 01 00 35 04 06 00 6D [10:33:56]Write to MH i2c: E2 02 01 C4 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 0C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 58 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 52 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 41 00 00 00 F4 03 04 00 15 52 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 48 E1 01 00 35 04 06 00 6D 00 00 BE [10:33:56]Write i2c OK [10:33:56]MH_I2C_Read... [10:33:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:33:56]Read from MH i2c: E2 [10:33:56]MH_I2C_Read... [10:33:56]Read from MH i2c: E2 03 00 [10:33:56]MH_I2C_Read... [10:33:56]Read from MH i2c: E2 03 00 C4 1B 00 90 00 53 [10:33:56]RAPDU: 90 00 [10:33:56]wFMCommunicate OK [10:33:56]wFMCommunicate request_size=10 [10:33:56]MH_SAM_APDU [10:33:56]CAPDU: 80 0D 02 02 05 F3 A3 20 03 47 [10:33:56]Write to MH i2c: E2 0D 00 C5 1B 80 0D 02 02 05 00 F3 A3 20 03 47 00 00 64 [10:33:56]Write i2c OK [10:33:56]MH_I2C_Read... [10:33:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:33:56]Read from MH i2c: E2 [10:33:56]MH_I2C_Read... [10:33:56]Read from MH i2c: E2 03 00 [10:33:56]MH_I2C_Read... [10:33:56]Read from MH i2c: E2 03 00 C5 1B 00 90 00 54 [10:33:56]RAPDU: 90 00 [10:33:56]wFMCommunicate OK [10:33:56]wFMCommunicate request_size=4 [10:33:56]MH_SAM_APDU [10:33:56]CAPDU: 80 0D 03 02 [10:33:56]Write to MH i2c: E2 08 00 C6 1B 80 0D 03 02 00 00 00 00 5C [10:33:56]Write i2c OK [10:33:56]MH_I2C_Read... [10:33:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:33:56]Read from MH i2c: E2 [10:33:56]MH_I2C_Read... [10:33:56]Read from MH i2c: E2 0B 00 [10:33:56]MH_I2C_Read... [10:33:56]Read from MH i2c: E2 0B 00 C6 1B 00 88 69 B5 14 76 46 D6 60 90 00 09 [10:33:56]RAPDU: 88 69 B5 14 76 46 D6 60 90 00 [10:33:56]wFMCommunicate OK [10:33:56]SAM_PROTO_SignData done [10:33:56]FM_MakeSignedData done [10:33:56]CreateOFDProtocolMessage [10:33:56]wFMCommunicate request_size=4 [10:33:56]MH_SAM_APDU [10:33:56]CAPDU: 80 11 00 00 [10:33:56]Write to MH i2c: E2 08 00 C7 1B 80 11 00 00 00 00 00 00 5C [10:33:56]Write i2c OK [10:33:56]MH_I2C_Read... [10:33:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:33:56]Read from MH i2c: E2 [10:33:56]MH_I2C_Read... [10:33:56]Read from MH i2c: E2 17 00 [10:33:56]MH_I2C_Read... [10:33:56]Read from MH i2c: E2 17 00 C7 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 BA [10:33:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [10:33:56]wFMCommunicate OK [10:33:56]CreateOFDProtocolMessage done [10:33:56]OFDSenderStorePacket 123208 [10:33:56]StoreOFDPacket docnum=123208 [10:33:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 CB 95 07 01 63 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 0C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 58 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 52 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 41 00 00 00 F4 03 04 00 15 52 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 48 E1 01 00 35 04 06 00 6D F3 A3 20 03 47 88 69 B5 14 76 46 D6 60 [10:33:56]CheckFolder [10:33:56]dirname=/storage/ofd_packets [10:33:56]CheckFolder done [10:33:56]ProducePacketName [10:33:56]name=ofd_packets/00123208 [10:33:56]NVStorageSaveData ofd_packets/00123208 [10:33:56]File name is /storage/ofd_packets/00123208 [10:33:56]Write 301 bytes [10:33:56]NVStorageSaveData done [10:33:56]OFDSenderStorePacket done [10:33:56]KKMCreateOFDPacket done [10:33:56]NVStorageSaveData kkm_last_timestamp [10:33:56]File name is /storage/kkm_last_timestamp [10:33:56]Write 4 bytes [10:33:56]NVStorageSaveData done [10:33:56]ExternCall_PrintAddStr [10:33:56]wPrintStart [10:33:56]Write to MH i2c: 01 00 00 C8 1B E3 [10:33:56]Write i2c OK [10:33:56]MH_I2C_Read... [10:33:56]Read from MH i2c: 01 [10:33:56]MH_I2C_Read... [10:33:56]Read from MH i2c: 01 07 00 [10:33:56]MH_I2C_Read... [10:33:56]Read from MH i2c: 01 07 00 C8 1B 00 00 00 00 00 FF 0F F8 [10:33:56]RasterBufferAndPrint [10:33:56]line Счет N : (1)1106129 [10:33:56]line ИНН: 02508201610067 [10:33:56]line Контрольно-Кассовый Чек [10:33:56]line ПРОДАЖА [10:33:56]line ТРК (МРК, ГНК) : 52 [10:33:56]line Товар: 2710124130 [10:33:56]line Аи-92-К-5 [10:33:56]line 3.240 * 61.90 [10:33:56]line = 200.56 [10:33:56]line НДС 12% НСП 1% [10:33:56]line > о реализуемом товаре [10:33:56]line ОКРУГЛЕНИЕ: -0.56 [10:33:56]line ИТОГО: 200.00 [10:33:56]line Внесено: 200.00 [10:33:56]line СДАЧА: 0.00 [10:33:56]line НСП 1% : 1.77 [10:33:56]line НДС 12% : 21.30 [10:33:56]line Наличными: 200.00 [10:33:56]line Безнал.: 0.00 [10:33:56]line Место: АЗС № 25 "Партнер Нефть" [10:33:56]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [10:33:56]line СНО: Общий режим [10:33:56]line Чек 65 03.03.2024 10:33 [10:33:56]line Смена: 323 ФФД: 1.0 [10:33:56]line ЗНМ: 0300000019 [10:33:56]line РНМ: 0000000000090573 [10:33:56]line Версия ККМ: 001 [10:33:56]line ФМ: 0000000000874798 [10:33:56]line ФД: 123208 [10:33:56]line ФПД: 120893181264711 [10:33:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T103357&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123208&fm=120893181264711&tin=02508201610067®Number=0000000000090573&sum=20000 [10:33:57]OFD Sender: Processing packet 123208 [packets to send 112, broken 111] [10:33:57]ProducePacketName [10:33:57]name=ofd_packets/00123208 [10:33:57]OFD Sender: To server: pG, [10:33:57]CommunicateWithHost lk.salyk.kg:30040 [10:33:57]ConnectInit lk.salyk.kg [10:33:57]written 0, free lines is 4095 [10:33:57]Connected sock=7 [10:33: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 37 39 38 0F 01 00 00 CB 95 07 01 63 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 0C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 58 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 52 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 41 00 00 00 F4 03 04 00 15 52 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 48 E1 01 00 35 04 06 00 6D F3 A3 20 03 47 88 69 B5 14 76 46 D6 60 [10:33:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 C3 19 47 00 01 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 37 39 38 10 04 04 00 48 E1 01 00 F4 03 04 00 42 FE E3 65 B6 04 01 00 00 42 CD 25 EB E8 61 97 6B [10:33:57]CommunicateWithHost err = 0 [10:33:57]CheckOFDResponse [10:33:57]1017 (14) - 77093643461234 [10:33:57]1041 (16) - 0000000000874798 [10:33:57]1040 (4) - 123208 [10:33:57]1012 (4) - 03.03.2024 04:36 [10:33:57]1206 (1) - 0 [10:33:57]OFD Sender: Remove packet 123208 [10:33:57]ProducePacketName [10:33:57]name=ofd_packets/00123208 [10:33:57]NVStorageDeleteData [10:33:57]Write to MH i2c: 01 00 00 F3 1B 0E [10:33:57]Write i2c OK [10:33:57]MH_I2C_Read... [10:33:57]Read from MH i2c: 01 [10:33:57]MH_I2C_Read... [10:33:57]Read from MH i2c: 01 07 00 [10:33:57]MH_I2C_Read... [10:33:57]Read from MH i2c: 01 07 00 F3 1B 00 00 00 00 00 EA 0C 0B [10:33:57]RasterBufferAndPrint [10:33:57]line [10:33:57]line [10:33:57]line [10:33:57]line [10:33:57]line [10:33:57]written 0, free lines is 3312 [10:33:57]MH_Cut [10:33:57]Write to MH i2c: D1 01 00 FA 1B 01 E7 [10:33:57]Write i2c OK [10:33:57]MH_I2C_Read... [10:33:57]Read from MH i2c: D1 [10:33:57]MH_I2C_Read... [10:33:57]Read from MH i2c: D1 01 00 [10:33:57]MH_I2C_Read... [10:33:57]Read from MH i2c: D1 01 00 FA 1B 00 E6 [10:33:57]Write to MH i2c: 01 00 00 FB 1B 16 [10:33:57]Write i2c OK [10:33:57]MH_I2C_Read... [10:33:58]OFD Sender: No OFD packet to send [10:33:58]*** Cut start [10:33:58]*** Purtial cut [10:33:58]*** Stage 1: CUTSNS_PIN = 1 [10:34:00]Read from MH i2c: 01 [10:34:00]MH_I2C_Read... [10:34:00]*** Stop cut motor [10:34:00]*** Cut end [10:34:00]Read from MH i2c: 01 07 00 [10:34:00]MH_I2C_Read... [10:34:00]Read from MH i2c: 01 07 00 FB 1B 00 00 00 00 00 FF 0F 2B [10:34:00]process_action close_receipt done [10:34:00]requested_data is exist [10:34:00]produce_requested_data [10:34:00]requested_item fm.sn is exist - process it [10:34:00]wFMCommunicate request_size=4 [10:34:00]MH_SAM_APDU [10:34:00]CAPDU: 80 11 00 00 [10:34:00]Write to MH i2c: E2 08 00 FC 1B 80 11 00 00 00 00 00 00 91 [10:34:00]Write i2c OK [10:34:00]MH_I2C_Read... [10:34:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:00]Read from MH i2c: E2 [10:34:00]MH_I2C_Read... [10:34:00]Read from MH i2c: E2 17 00 [10:34:00]MH_I2C_Read... [10:34:00]Read from MH i2c: E2 17 00 FC 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 EF [10:34:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [10:34:00]wFMCommunicate OK [10:34:00]requested_item fd.num is exist - process it [10:34:00]SAM_PROTO_GetFieldsCounters [10:34:00]wFMCommunicate request_size=4 [10:34:00]MH_SAM_APDU [10:34:00]CAPDU: 80 13 00 00 [10:34:00]Write to MH i2c: E2 08 00 FD 1B 80 13 00 00 00 00 00 00 94 [10:34:00]Write i2c OK [10:34:00]MH_I2C_Read... [10:34:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:34:00]Read from MH i2c: E2 [10:34:00]MH_I2C_Read... [10:34:00]Read from MH i2c: E2 62 00 [10:34:00]MH_I2C_Read... [10:34:00]Read from MH i2c: E2 62 00 FD 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 48 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 F0 [10:34:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 48 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:34:00]wFMCommunicate OK [10:34:00]SAM_PROTO_GetFieldsCounters done [10:34:00]requested_item shift.num is exist - process it [10:34:00]requested_item shift.opened is exist - process it [10:34:00]req_shift_opened [10:34:00]FM_GetShiftState [10:34:00]SAM_PROTO_GetShiftState [10:34:00]wFMCommunicate request_size=4 [10:34:00]MH_SAM_APDU [10:34:00]CAPDU: 80 13 01 00 [10:34:00]Write to MH i2c: E2 08 00 FE 1B 80 13 01 00 00 00 00 00 96 [10:34:00]Write i2c OK [10:34:00]MH_I2C_Read... [10:34:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:00]Read from MH i2c: E2 [10:34:00]MH_I2C_Read... [10:34:00]Read from MH i2c: E2 0E 00 [10:34:00]MH_I2C_Read... [10:34:00]Read from MH i2c: E2 0E 00 FE 1B 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 58 [10:34:00]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [10:34:00]wFMCommunicate OK [10:34:00]SAM_PROTO_GetShiftState done [10:34:00]FM_GetShiftState done [10:34:00]req_shift_opened done [10:34:00]requested_item shift.open_date is exist - process it [10:34:00]req_shift_open_date [10:34:00]req_shift_open_date done [10:34:00]produce_requested_data done [10:34:00]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123208,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [10:34:00]process_action_free close_receipt [10:34:00]json_value_free [10:34:00]json_value_free done [10:34:00]process_json_proto returns [10:34:00]Send response to host [10:34:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123208,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [10:34:00]free response buf [10:34:00]execute_script done [10:34:00]execute_script returns [10:34:00]free content buf [10:34:00]Sock 9.Close socket [10:34:00]Sock 9.Thread stoped [10:34:03]OFD Sender: No OFD packet to send [10:34:08]OFD Sender: No OFD packet to send [10:34:13]OFD Sender: No OFD packet to send [10:34:18]OFD Sender: No OFD packet to send [10:34:23]OFD Sender: No OFD packet to send [10:34:28]OFD Sender: No OFD packet to send [10:34:33]OFD Sender: No OFD packet to send [10:34:38]OFD Sender: No OFD packet to send [10:34:43]OFD Sender: No OFD packet to send [10:34:48]OFD Sender: No OFD packet to send [10:34:53]OFD Sender: No OFD packet to send [10:34:58]OFD Sender: No OFD packet to send [10:35:03]OFD Sender: No OFD packet to send [10:35:08]OFD Sender: No OFD packet to send [10:35:13]OFD Sender: No OFD packet to send [10:35:18]OFD Sender: No OFD packet to send [10:35:23]OFD Sender: No OFD packet to send [10:35:28]OFD Sender: No OFD packet to send [10:35:33]OFD Sender: No OFD packet to send [10:35:38]OFD Sender: No OFD packet to send [10:35:43]OFD Sender: No OFD packet to send [10:35:48]OFD Sender: No OFD packet to send [10:35:53]OFD Sender: No OFD packet to send [10:35:58]OFD Sender: No OFD packet to send [10:36:03]OFD Sender: No OFD packet to send [10:36:08]OFD Sender: No OFD packet to send [10:36:13]OFD Sender: No OFD packet to send [10:36:18]OFD Sender: No OFD packet to send [10:36:23]OFD Sender: No OFD packet to send [10:36:28]OFD Sender: No OFD packet to send [10:36:33]OFD Sender: No OFD packet to send [10:36:38]OFD Sender: No OFD packet to send [10:36:43]OFD Sender: No OFD packet to send [10:36:48]OFD Sender: No OFD packet to send [10:36:53]OFD Sender: No OFD packet to send [10:36:58]OFD Sender: No OFD packet to send [10:37:03]OFD Sender: No OFD packet to send [10:37:08]OFD Sender: No OFD packet to send [10:37:13]OFD Sender: No OFD packet to send [10:37:18]OFD Sender: No OFD packet to send [10:37:23]OFD Sender: No OFD packet to send [10:37:28]OFD Sender: No OFD packet to send [10:37:33]OFD Sender: No OFD packet to send [10:37:38]OFD Sender: No OFD packet to send [10:37:43]OFD Sender: No OFD packet to send [10:37:48]OFD Sender: No OFD packet to send [10:37:53]OFD Sender: No OFD packet to send [10:37:58]OFD Sender: No OFD packet to send [10:38:03]OFD Sender: No OFD packet to send [10:38:08]OFD Sender: No OFD packet to send [10:38:13]OFD Sender: No OFD packet to send [10:38:18]OFD Sender: No OFD packet to send [10:38:23]OFD Sender: No OFD packet to send [10:38:28]OFD Sender: No OFD packet to send [10:38:33]OFD Sender: No OFD packet to send [10:38:38]OFD Sender: No OFD packet to send [10:38:43]OFD Sender: No OFD packet to send [10:38:48]OFD Sender: No OFD packet to send [10:38:53]OFD Sender: No OFD packet to send [10:38:58]OFD Sender: No OFD packet to send [10:39:03]OFD Sender: No OFD packet to send [10:39:08]OFD Sender: No OFD packet to send [10:39:13]OFD Sender: No OFD packet to send [10:39:18]OFD Sender: No OFD packet to send [10:39:23]OFD Sender: No OFD packet to send [10:39:28]OFD Sender: No OFD packet to send [10:39:33]OFD Sender: No OFD packet to send [10:39:38]OFD Sender: No OFD packet to send [10:39:43]OFD Sender: No OFD packet to send [10:39:48]OFD Sender: No OFD packet to send [10:39:53]OFD Sender: No OFD packet to send [10:39:58]OFD Sender: No OFD packet to send [10:40:03]OFD Sender: No OFD packet to send [10:40:08]OFD Sender: No OFD packet to send [10:40:13]OFD Sender: No OFD packet to send [10:40:18]OFD Sender: No OFD packet to send [10:40:23]OFD Sender: No OFD packet to send [10:40:28]OFD Sender: No OFD packet to send [10:40:33]OFD Sender: No OFD packet to send [10:40:38]OFD Sender: No OFD packet to send [10:40:43]OFD Sender: No OFD packet to send [10:40:48]OFD Sender: No OFD packet to send [10:40:53]OFD Sender: No OFD packet to send [10:40:58]OFD Sender: No OFD packet to send [10:41:03]OFD Sender: No OFD packet to send [10:41:08]OFD Sender: No OFD packet to send [10:41:13]OFD Sender: No OFD packet to send [10:41:18]OFD Sender: No OFD packet to send [10:41:23]OFD Sender: No OFD packet to send [10:41:28]OFD Sender: No OFD packet to send [10:41:33]OFD Sender: No OFD packet to send [10:41:38]OFD Sender: No OFD packet to send [10:41:43]OFD Sender: No OFD packet to send [10:41:48]OFD Sender: No OFD packet to send [10:41:53]OFD Sender: No OFD packet to send [10:41:58]OFD Sender: No OFD packet to send [10:42:03]OFD Sender: No OFD packet to send [10:42:08]OFD Sender: No OFD packet to send [10:42:12]accept exits with 10 [10:42:12]New connection [10:42:12]New thread 3067252068 created [10:42:12]Thread 3067395428 joined [10:42:12]Waiting for new connection... [10:42:12] Sock 10.Parse request [10:42:12]Sock 10.Check first char [10:42:12]Sock 10.First char is OK [10:42:12]request: POST /json_proto HTTP/1.0 [10:42:12]Method: POST [10:42:12]URL: /json_proto [10:42:12]Method is POST - this is cgi request [10:42:12]url: /json_proto [10:42:12]query_string will be loaded in cgi processing [10:42:12]execute_cgi json_proto POST (null) [10:42:12]execute_cgi path=json_proto method=POST [10:42:12]POST find Content-Length [10:42:12]Host: 172.17.48.197:8080 [10:42:12]Content-Length: 807 [10:42:12]Content-Type: application/json [10:42:12] [10:42:12]POST finish read [10:42:12]Found Content-Length = 807 [10:42:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106130", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 11.310, "sum" : 700.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 700.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:42:12]execute_script... [10:42:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106130", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 11.310, "sum" : 700.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 700.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:42:12]POST & json_proto [10:42:12]process_json_proto [10:42:12]json parsed OK: [10:42:12]protocol is kg_v1.0 [10:42:12]action value=close_receipt [10:42:12]process_action close_receipt [10:42:12]cmd_close_receipt [10:42:12]MH_GetDate [10:42:12]Write to MH i2c: F0 00 00 FF 1B 09 [10:42:12]Write i2c OK [10:42:12]MH_I2C_Read... [10:42:12]Read from MH i2c: F0 [10:42:12]MH_I2C_Read... [10:42:12]Read from MH i2c: F0 09 00 [10:42:12]MH_I2C_Read... [10:42:12]Read from MH i2c: F0 09 00 FF 1B 00 06 54 E4 65 6C AF E3 65 18 [10:42:12]GetLastDocTimeStamp 1709462037 [10:42:12]current date 1709462534 [10:42:12]FM_GetShiftState [10:42:12]SAM_PROTO_GetShiftState [10:42:12]wFMCommunicate request_size=4 [10:42:12]MH_SAM_APDU [10:42:12]CAPDU: 80 13 01 00 [10:42:12]Write to MH i2c: E2 08 00 00 1C 80 13 01 00 00 00 00 00 99 [10:42:12]Write i2c OK [10:42:12]MH_I2C_Read... [10:42:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:12]Read from MH i2c: E2 [10:42:12]MH_I2C_Read... [10:42:12]Read from MH i2c: E2 0E 00 [10:42:12]MH_I2C_Read... [10:42:12]Read from MH i2c: E2 0E 00 00 1C 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 5B [10:42:12]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [10:42:12]wFMCommunicate OK [10:42:12]SAM_PROTO_GetShiftState done [10:42:12]FM_GetShiftState done [10:42:12]opened in 1709425579 [10:42:12]opened+sec_in_day 1709511979 [10:42:12]quantity*price = 70008 [10:42:12]sum+1 = 70010 [10:42:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.09 НСП 1% : 6.19 НДС 12% : 74.35 Наличными: 0.00 Безнал.: 700.09 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 66 03.03.2024 10:42 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874798 ФД: 123209 ФПД: 253702378079846 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T104214&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123209&fm=253702378079846&tin=02508201610067®Number=0000000000090573&sum=70009 [10:42:13]StoreToDocumentArchive [10:42:13]shift 323 fd 123209 [10:42:13]save to /storage/0323/doc_00123209 [10:42:13]save last doc name /storage/0323/doc_00123209 to /storage/kkm_last_doc_name [10:42:13]save OK [10:42:13]Clear old archive folders... [10:42:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:42:13]tlvbuf is 00E2C5A0 [10:42:13]SAM_PROTO_ClearQueue [10:42:13]wFMCommunicate request_size=4 [10:42:13]MH_SAM_APDU [10:42:13]CAPDU: 80 09 00 00 [10:42:13]Write to MH i2c: E2 08 00 0D 1C 80 09 00 00 00 00 00 00 9B [10:42:13]Write i2c OK [10:42:13]MH_I2C_Read... [10:42:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:42:13]Read from MH i2c: E2 [10:42:13]MH_I2C_Read... [10:42:13]Read from MH i2c: E2 03 00 [10:42:13]MH_I2C_Read... [10:42:13]Read from MH i2c: E2 03 00 0D 1C 00 90 00 9D [10:42:13]RAPDU: 90 00 [10:42:13]wFMCommunicate OK [10:42:13]SAM_PROTO_ClearQueue done [10:42:13]KKMCreateOFDPacket [10:42:13]OFDProtocolAddRootSTLVToBuf [10:42:13]FM_MakeSignedData [10:42:13]FM_MakeSignedData [10:42:13]SAM_PROTO_SignData [10:42:13]wFMCommunicate request_size=4 [10:42:13]MH_SAM_APDU [10:42:13]CAPDU: 80 0D 01 02 [10:42:13]Write to MH i2c: E2 08 00 0E 1C 80 0D 01 02 00 00 00 00 A3 [10:42:13]Write i2c OK [10:42:13]MH_I2C_Read... [10:42:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:42:13]Read from MH i2c: E2 [10:42:13]MH_I2C_Read... [10:42:13]Read from MH i2c: E2 03 00 [10:42:13]MH_I2C_Read... [10:42:13]Read from MH i2c: E2 03 00 0E 1C 00 90 00 9E [10:42:13]RAPDU: 90 00 [10:42:13]wFMCommunicate OK [10:42:13]wFMCommunicate request_size=255 [10:42:13]MH_SAM_APDU [10:42:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 2C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 79 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 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 00 00 00 00 00 00 39 04 06 00 79 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 06 54 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 49 E1 01 00 35 04 06 00 E6 [10:42:13]Write to MH i2c: E2 02 01 0F 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 35 FF 03 08 00 03 2E 2C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 79 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 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 00 00 00 00 00 00 39 04 06 00 79 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 06 54 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 49 E1 01 00 35 04 06 00 E6 00 00 C7 [10:42:13]Write i2c OK [10:42:13]MH_I2C_Read... [10:42:13]OFD Sender: No OFD packet to send [10:42:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:13]Read from MH i2c: E2 [10:42:13]MH_I2C_Read... [10:42:13]Read from MH i2c: E2 03 00 [10:42:13]MH_I2C_Read... [10:42:13]Read from MH i2c: E2 03 00 0F 1C 00 90 00 9F [10:42:13]RAPDU: 90 00 [10:42:13]wFMCommunicate OK [10:42:13]wFMCommunicate request_size=10 [10:42:13]MH_SAM_APDU [10:42:13]CAPDU: 80 0D 02 02 05 BD B0 1F C6 66 [10:42:13]Write to MH i2c: E2 0D 00 10 1C 80 0D 02 02 05 00 BD B0 1F C6 66 00 00 68 [10:42:13]Write i2c OK [10:42:13]MH_I2C_Read... [10:42:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:13]Read from MH i2c: E2 [10:42:13]MH_I2C_Read... [10:42:13]Read from MH i2c: E2 03 00 [10:42:13]MH_I2C_Read... [10:42:13]Read from MH i2c: E2 03 00 10 1C 00 90 00 A0 [10:42:13]RAPDU: 90 00 [10:42:13]wFMCommunicate OK [10:42:13]wFMCommunicate request_size=4 [10:42:13]MH_SAM_APDU [10:42:13]CAPDU: 80 0D 03 02 [10:42:13]Write to MH i2c: E2 08 00 11 1C 80 0D 03 02 00 00 00 00 A8 [10:42:13]Write i2c OK [10:42:13]MH_I2C_Read... [10:42:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:42:13]Read from MH i2c: E2 [10:42:13]MH_I2C_Read... [10:42:13]Read from MH i2c: E2 0B 00 [10:42:13]MH_I2C_Read... [10:42:13]Read from MH i2c: E2 0B 00 11 1C 00 0E FA 36 16 BE C4 CB AD 90 00 F7 [10:42:13]RAPDU: 0E FA 36 16 BE C4 CB AD 90 00 [10:42:13]wFMCommunicate OK [10:42:13]SAM_PROTO_SignData done [10:42:13]FM_MakeSignedData done [10:42:13]CreateOFDProtocolMessage [10:42:13]wFMCommunicate request_size=4 [10:42:13]MH_SAM_APDU [10:42:13]CAPDU: 80 11 00 00 [10:42:13]Write to MH i2c: E2 08 00 12 1C 80 11 00 00 00 00 00 00 A8 [10:42:13]Write i2c OK [10:42:13]MH_I2C_Read... [10:42:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:42:13]Read from MH i2c: E2 [10:42:13]MH_I2C_Read... [10:42:13]Read from MH i2c: E2 17 00 [10:42:13]MH_I2C_Read... [10:42:13]Read from MH i2c: E2 17 00 12 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 06 [10:42:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [10:42:13]wFMCommunicate OK [10:42:13]CreateOFDProtocolMessage done [10:42:13]OFDSenderStorePacket 123209 [10:42:13]StoreOFDPacket docnum=123209 [10:42:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 9D 5C 07 01 37 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 2C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 79 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 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 00 00 00 00 00 00 39 04 06 00 79 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 06 54 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 49 E1 01 00 35 04 06 00 E6 BD B0 1F C6 66 0E FA 36 16 BE C4 CB AD [10:42:13]CheckFolder [10:42:13]dirname=/storage/ofd_packets [10:42:13]CheckFolder done [10:42:13]ProducePacketName [10:42:13]name=ofd_packets/00123209 [10:42:13]NVStorageSaveData ofd_packets/00123209 [10:42:13]File name is /storage/ofd_packets/00123209 [10:42:13]Write 301 bytes [10:42:13]NVStorageSaveData done [10:42:13]OFDSenderStorePacket done [10:42:13]KKMCreateOFDPacket done [10:42:13]NVStorageSaveData kkm_last_timestamp [10:42:13]File name is /storage/kkm_last_timestamp [10:42:13]Write 4 bytes [10:42:13]NVStorageSaveData done [10:42:13]ExternCall_PrintAddStr [10:42:13]wPrintStart [10:42:13]Write to MH i2c: 01 00 00 13 1C 2F [10:42:13]Write i2c OK [10:42:13]MH_I2C_Read... [10:42:13]Read from MH i2c: 01 [10:42:13]MH_I2C_Read... [10:42:13]Read from MH i2c: 01 07 00 [10:42:13]MH_I2C_Read... [10:42:13]Read from MH i2c: 01 07 00 13 1C 00 00 00 00 00 FF 0F 44 [10:42:13]RasterBufferAndPrint [10:42:13]line Счет N : (1)1106130 [10:42:13]line ИНН: 02508201610067 [10:42:13]line Контрольно-Кассовый Чек [10:42:13]line ПРОДАЖА [10:42:13]line ТРК (МРК, ГНК) : 52 [10:42:13]line Товар: 2710124130 [10:42:13]line Аи-92-К-5 [10:42:13]line 11.310 * 61.90 [10:42:13]line = 700.09 [10:42:13]line НДС 12% НСП 1% [10:42:13]line > о реализуемом товаре [10:42:13]line ИТОГО: 700.09 [10:42:13]line НСП 1% : 6.19 [10:42:13]line НДС 12% : 74.35 [10:42:13]line Наличными: 0.00 [10:42:13]line Безнал.: 700.09 [10:42:13]line Место: АЗС № 25 "Партнер Нефть" [10:42:13]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [10:42:13]line СНО: Общий режим [10:42:13]line Чек 66 03.03.2024 10:42 [10:42:13]line Смена: 323 ФФД: 1.0 [10:42:13]line ЗНМ: 0300000019 [10:42:13]line РНМ: 0000000000090573 [10:42:13]line Версия ККМ: 001 [10:42:13]line Платежная система: О! деньги [10:42:13]line ФМ: 0000000000874798 [10:42:13]line ФД: 123209 [10:42:13]line ФПД: 253702378079846 [10:42:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T104214&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123209&fm=253702378079846&tin=02508201610067®Number=0000000000090573&sum=70009 [10:42:14]OFD Sender: Processing packet 123209 [packets to send 112, broken 111] [10:42:14]ProducePacketName [10:42:14]name=ofd_packets/00123209 [10:42:14]OFD Sender: To server: pG, [10:42:14]CommunicateWithHost lk.salyk.kg:30040 [10:42:14]ConnectInit lk.salyk.kg [10:42:14]written 0, free lines is 4095 [10:42:14]Connected sock=9 [10:42: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 37 39 38 0F 01 00 00 9D 5C 07 01 37 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 2C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 79 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 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 00 00 00 00 00 00 39 04 06 00 79 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 06 54 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 49 E1 01 00 35 04 06 00 E6 BD B0 1F C6 66 0E FA 36 16 BE C4 CB AD [10:42:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 3F 19 47 00 96 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 37 39 38 10 04 04 00 49 E1 01 00 F4 03 04 00 33 00 E4 65 B6 04 01 00 00 98 15 5A 77 AE F3 7A 56 [10:42:14]CommunicateWithHost err = 0 [10:42:14]CheckOFDResponse [10:42:14]1017 (14) - 77093643461234 [10:42:14]1041 (16) - 0000000000874798 [10:42:14]1040 (4) - 123209 [10:42:14]1012 (4) - 03.03.2024 04:44 [10:42:14]1206 (1) - 0 [10:42:14]OFD Sender: Remove packet 123209 [10:42:14]ProducePacketName [10:42:14]name=ofd_packets/00123209 [10:42:14]NVStorageDeleteData [10:42:14]Write to MH i2c: 01 00 00 3D 1C 59 [10:42:14]Write i2c OK [10:42:14]MH_I2C_Read... [10:42:14]Read from MH i2c: 01 [10:42:14]MH_I2C_Read... [10:42:14]Read from MH i2c: 01 07 00 [10:42:14]MH_I2C_Read... [10:42:14]Read from MH i2c: 01 07 00 3D 1C 00 00 00 00 00 FF 0C 6B [10:42:14]RasterBufferAndPrint [10:42:14]line [10:42:14]line [10:42:14]line [10:42:14]line [10:42:14]line [10:42:14]written 0, free lines is 3333 [10:42:14]MH_Cut [10:42:14]Write to MH i2c: D1 01 00 44 1C 01 32 [10:42:14]Write i2c OK [10:42:14]MH_I2C_Read... [10:42:14]Read from MH i2c: D1 [10:42:14]MH_I2C_Read... [10:42:14]Read from MH i2c: D1 01 00 [10:42:14]MH_I2C_Read... [10:42:14]Read from MH i2c: D1 01 00 44 1C 00 31 [10:42:14]Write to MH i2c: 01 00 00 45 1C 61 [10:42:14]Write i2c OK [10:42:14]MH_I2C_Read... [10:42:15]OFD Sender: No OFD packet to send [10:42:15]*** Cut start [10:42:15]*** Purtial cut [10:42:15]*** Stage 1: CUTSNS_PIN = 1 [10:42:17]Read from MH i2c: 01 [10:42:17]MH_I2C_Read... [10:42:17]*** Stop cut motor [10:42:17]*** Cut end [10:42:17]Read from MH i2c: 01 07 00 [10:42:17]MH_I2C_Read... [10:42:17]Read from MH i2c: 01 07 00 45 1C 00 00 00 00 00 FF 0F 76 [10:42:17]process_action close_receipt done [10:42:17]requested_data is exist [10:42:17]produce_requested_data [10:42:17]requested_item fm.sn is exist - process it [10:42:17]wFMCommunicate request_size=4 [10:42:17]MH_SAM_APDU [10:42:17]CAPDU: 80 11 00 00 [10:42:17]Write to MH i2c: E2 08 00 46 1C 80 11 00 00 00 00 00 00 DC [10:42:17]Write i2c OK [10:42:17]MH_I2C_Read... [10:42:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:42:17]Read from MH i2c: E2 [10:42:17]MH_I2C_Read... [10:42:17]Read from MH i2c: E2 17 00 [10:42:17]MH_I2C_Read... [10:42:17]Read from MH i2c: E2 17 00 46 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 3A [10:42:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [10:42:17]wFMCommunicate OK [10:42:17]requested_item fd.num is exist - process it [10:42:17]SAM_PROTO_GetFieldsCounters [10:42:17]wFMCommunicate request_size=4 [10:42:17]MH_SAM_APDU [10:42:17]CAPDU: 80 13 00 00 [10:42:17]Write to MH i2c: E2 08 00 47 1C 80 13 00 00 00 00 00 00 DF [10:42:17]Write i2c OK [10:42:17]MH_I2C_Read... [10:42:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:42:17]Read from MH i2c: E2 [10:42:17]MH_I2C_Read... [10:42:17]Read from MH i2c: E2 62 00 [10:42:17]MH_I2C_Read... [10:42:17]Read from MH i2c: E2 62 00 47 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 49 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 3F [10:42: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 49 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:42:17]wFMCommunicate OK [10:42:17]SAM_PROTO_GetFieldsCounters done [10:42:17]requested_item shift.num is exist - process it [10:42:17]requested_item shift.opened is exist - process it [10:42:17]req_shift_opened [10:42:17]FM_GetShiftState [10:42:17]SAM_PROTO_GetShiftState [10:42:17]wFMCommunicate request_size=4 [10:42:17]MH_SAM_APDU [10:42:17]CAPDU: 80 13 01 00 [10:42:17]Write to MH i2c: E2 08 00 48 1C 80 13 01 00 00 00 00 00 E1 [10:42:17]Write i2c OK [10:42:17]MH_I2C_Read... [10:42:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:17]Read from MH i2c: E2 [10:42:17]MH_I2C_Read... [10:42:17]Read from MH i2c: E2 0E 00 [10:42:17]MH_I2C_Read... [10:42:17]Read from MH i2c: E2 0E 00 48 1C 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 A3 [10:42:17]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [10:42:17]wFMCommunicate OK [10:42:17]SAM_PROTO_GetShiftState done [10:42:17]FM_GetShiftState done [10:42:17]req_shift_opened done [10:42:17]requested_item shift.open_date is exist - process it [10:42:17]req_shift_open_date [10:42:17]req_shift_open_date done [10:42:17]produce_requested_data done [10:42:17]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123209,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [10:42:17]process_action_free close_receipt [10:42:17]json_value_free [10:42:17]json_value_free done [10:42:17]process_json_proto returns [10:42:17]Send response to host [10:42:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123209,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [10:42:17]free response buf [10:42:17]execute_script done [10:42:17]execute_script returns [10:42:17]free content buf [10:42:17]Sock 10.Close socket [10:42:17]Sock 10.Thread stoped [10:42:20]OFD Sender: No OFD packet to send [10:42:25]OFD Sender: No OFD packet to send [10:42:30]OFD Sender: No OFD packet to send [10:42:35]OFD Sender: No OFD packet to send [10:42:40]OFD Sender: No OFD packet to send [10:42:45]OFD Sender: No OFD packet to send [10:42:50]OFD Sender: No OFD packet to send [10:42:55]OFD Sender: No OFD packet to send [10:43:00]OFD Sender: No OFD packet to send [10:43:05]OFD Sender: No OFD packet to send [10:43:10]OFD Sender: No OFD packet to send [10:43:15]OFD Sender: No OFD packet to send [10:43:20]OFD Sender: No OFD packet to send [10:43:25]OFD Sender: No OFD packet to send [10:43:30]OFD Sender: No OFD packet to send [10:43:35]OFD Sender: No OFD packet to send [10:43:40]OFD Sender: No OFD packet to send [10:43:45]OFD Sender: No OFD packet to send [10:43:50]OFD Sender: No OFD packet to send [10:43:55]OFD Sender: No OFD packet to send [10:44:00]OFD Sender: No OFD packet to send [10:44:05]OFD Sender: No OFD packet to send [10:44:10]OFD Sender: No OFD packet to send [10:44:15]OFD Sender: No OFD packet to send [10:44:20]OFD Sender: No OFD packet to send [10:44:25]OFD Sender: No OFD packet to send [10:44:30]OFD Sender: No OFD packet to send [10:44:35]OFD Sender: No OFD packet to send [10:44:40]OFD Sender: No OFD packet to send [10:44:45]OFD Sender: No OFD packet to send [10:44:50]OFD Sender: No OFD packet to send [10:44:55]OFD Sender: No OFD packet to send [10:45:00]OFD Sender: No OFD packet to send [10:45:05]OFD Sender: No OFD packet to send [10:45:10]OFD Sender: No OFD packet to send [10:45:15]OFD Sender: No OFD packet to send [10:45:20]OFD Sender: No OFD packet to send [10:45:25]OFD Sender: No OFD packet to send [10:45:30]OFD Sender: No OFD packet to send [10:45:35]OFD Sender: No OFD packet to send [10:45:40]OFD Sender: No OFD packet to send [10:45:45]OFD Sender: No OFD packet to send [10:45:50]OFD Sender: No OFD packet to send [10:45:55]OFD Sender: No OFD packet to send [10:46:00]OFD Sender: No OFD packet to send [10:46:05]OFD Sender: No OFD packet to send [10:46:10]OFD Sender: No OFD packet to send [10:46:15]OFD Sender: No OFD packet to send [10:46:20]OFD Sender: No OFD packet to send [10:46:25]OFD Sender: No OFD packet to send [10:46:30]OFD Sender: No OFD packet to send [10:46:35]OFD Sender: No OFD packet to send [10:46:40]OFD Sender: No OFD packet to send [10:46:45]OFD Sender: No OFD packet to send [10:46:50]OFD Sender: No OFD packet to send [10:46:55]OFD Sender: No OFD packet to send [10:47:00]OFD Sender: No OFD packet to send [10:47:05]OFD Sender: No OFD packet to send [10:47:10]OFD Sender: No OFD packet to send [10:47:15]OFD Sender: No OFD packet to send [10:47:20]OFD Sender: No OFD packet to send [10:47:25]OFD Sender: No OFD packet to send [10:47:30]OFD Sender: No OFD packet to send [10:47:35]OFD Sender: No OFD packet to send [10:47:40]OFD Sender: No OFD packet to send [10:47:45]OFD Sender: No OFD packet to send [10:47:50]OFD Sender: No OFD packet to send [10:47:55]OFD Sender: No OFD packet to send [10:48:00]OFD Sender: No OFD packet to send [10:48:05]OFD Sender: No OFD packet to send [10:48:10]OFD Sender: No OFD packet to send [10:48:15]OFD Sender: No OFD packet to send [10:48:20]OFD Sender: No OFD packet to send [10:48:25]OFD Sender: No OFD packet to send [10:48:30]OFD Sender: No OFD packet to send [10:48:35]OFD Sender: No OFD packet to send [10:48:40]OFD Sender: No OFD packet to send [10:48:45]OFD Sender: No OFD packet to send [10:48:50]OFD Sender: No OFD packet to send [10:48:55]OFD Sender: No OFD packet to send [10:49:00]OFD Sender: No OFD packet to send [10:49:05]OFD Sender: No OFD packet to send [10:49:10]OFD Sender: No OFD packet to send [10:49:15]OFD Sender: No OFD packet to send [10:49:20]OFD Sender: No OFD packet to send [10:49:25]OFD Sender: No OFD packet to send [10:49:30]OFD Sender: No OFD packet to send [10:49:35]OFD Sender: No OFD packet to send [10:49:40]OFD Sender: No OFD packet to send [10:49:45]OFD Sender: No OFD packet to send [10:49:50]OFD Sender: No OFD packet to send [10:49:55]OFD Sender: No OFD packet to send [10:50:00]OFD Sender: No OFD packet to send [10:50:05]OFD Sender: No OFD packet to send [10:50:10]OFD Sender: No OFD packet to send [10:50:15]OFD Sender: No OFD packet to send [10:50:20]OFD Sender: No OFD packet to send [10:50:25]OFD Sender: No OFD packet to send [10:50:30]OFD Sender: No OFD packet to send [10:50:35]OFD Sender: No OFD packet to send [10:50:40]OFD Sender: No OFD packet to send [10:50:45]OFD Sender: No OFD packet to send [10:50:50]OFD Sender: No OFD packet to send [10:50:55]OFD Sender: No OFD packet to send [10:51:00]OFD Sender: No OFD packet to send [10:51:05]OFD Sender: No OFD packet to send [10:51:10]OFD Sender: No OFD packet to send [10:51:15]OFD Sender: No OFD packet to send [10:51:20]OFD Sender: No OFD packet to send [10:51:25]OFD Sender: No OFD packet to send [10:51:25]accept exits with 7 [10:51:25]New connection [10:51:25]New thread 3067395428 created [10:51:25]Thread 3067252068 joined [10:51:25]Waiting for new connection... [10:51:25] Sock 7.Parse request [10:51:25]Sock 7.Check first char [10:51:25]Sock 7.First char is OK [10:51:25]request: POST /json_proto HTTP/1.0 [10:51:25]Method: POST [10:51:25]URL: /json_proto [10:51:25]Method is POST - this is cgi request [10:51:25]url: /json_proto [10:51:25]query_string will be loaded in cgi processing [10:51:25]execute_cgi json_proto POST (null) [10:51:25]execute_cgi path=json_proto method=POST [10:51:25]POST find Content-Length [10:51:25]Host: 172.17.48.197:8080 [10:51:25]Content-Length: 678 [10:51:25]Content-Type: application/json [10:51:25] [10:51:25]POST finish read [10:51:25]Found Content-Length = 678 [10:51:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106132", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 6.470, "sum" : 400.49, "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" ] } } [10:51:25]execute_script... [10:51:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106132", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 6.470, "sum" : 400.49, "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" ] } } [10:51:25]POST & json_proto [10:51:25]process_json_proto [10:51:25]json parsed OK: [10:51:25]protocol is kg_v1.0 [10:51:25]action value=close_receipt [10:51:25]process_action close_receipt [10:51:25]cmd_close_receipt [10:51:25]MH_GetDate [10:51:25]Write to MH i2c: F0 00 00 49 1C 54 [10:51:25]Write i2c OK [10:51:25]MH_I2C_Read... [10:51:25]Read from MH i2c: F0 [10:51:25]MH_I2C_Read... [10:51:25]Read from MH i2c: F0 09 00 [10:51:25]MH_I2C_Read... [10:51:25]Read from MH i2c: F0 09 00 49 1C 00 30 56 E4 65 6C AF E3 65 8F [10:51:25]GetLastDocTimeStamp 1709462534 [10:51:25]current date 1709463088 [10:51:25]FM_GetShiftState [10:51:25]SAM_PROTO_GetShiftState [10:51:25]wFMCommunicate request_size=4 [10:51:25]MH_SAM_APDU [10:51:25]CAPDU: 80 13 01 00 [10:51:25]Write to MH i2c: E2 08 00 4A 1C 80 13 01 00 00 00 00 00 E3 [10:51:25]Write i2c OK [10:51:25]MH_I2C_Read... [10:51:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:51:26]Read from MH i2c: E2 [10:51:26]MH_I2C_Read... [10:51:26]Read from MH i2c: E2 0E 00 [10:51:26]MH_I2C_Read... [10:51:26]Read from MH i2c: E2 0E 00 4A 1C 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 A5 [10:51:26]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [10:51:26]wFMCommunicate OK [10:51:26]SAM_PROTO_GetShiftState done [10:51:26]FM_GetShiftState done [10:51:26]opened in 1709425579 [10:51:26]opened+sec_in_day 1709511979 [10:51:26]quantity*price = 40049 [10:51:26]sum+1 = 40050 [10:51:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.53 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 67 03.03.2024 10:51 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123210 ФПД: 235702477119621 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T105128&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123210&fm=235702477119621&tin=02508201610067®Number=0000000000090573&sum=40000 [10:51:27]StoreToDocumentArchive [10:51:27]shift 323 fd 123210 [10:51:27]save to /storage/0323/doc_00123210 [10:51:27]save last doc name /storage/0323/doc_00123210 to /storage/kkm_last_doc_name [10:51:27]save OK [10:51:27]Clear old archive folders... [10:51:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:51:27]tlvbuf is 00E33BC0 [10:51:27]SAM_PROTO_ClearQueue [10:51:27]wFMCommunicate request_size=4 [10:51:27]MH_SAM_APDU [10:51:27]CAPDU: 80 09 00 00 [10:51:27]Write to MH i2c: E2 08 00 57 1C 80 09 00 00 00 00 00 00 E5 [10:51:27]Write i2c OK [10:51:27]MH_I2C_Read... [10:51:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:51:27]Read from MH i2c: E2 [10:51:27]MH_I2C_Read... [10:51:27]Read from MH i2c: E2 03 00 [10:51:27]MH_I2C_Read... [10:51:27]Read from MH i2c: E2 03 00 57 1C 00 90 00 E7 [10:51:27]RAPDU: 90 00 [10:51:27]wFMCommunicate OK [10:51:27]SAM_PROTO_ClearQueue done [10:51:27]KKMCreateOFDPacket [10:51:27]OFDProtocolAddRootSTLVToBuf [10:51:27]FM_MakeSignedData [10:51:27]FM_MakeSignedData [10:51:27]SAM_PROTO_SignData [10:51:27]wFMCommunicate request_size=4 [10:51:27]MH_SAM_APDU [10:51:27]CAPDU: 80 0D 01 02 [10:51:27]Write to MH i2c: E2 08 00 58 1C 80 0D 01 02 00 00 00 00 ED [10:51:27]Write i2c OK [10:51:27]MH_I2C_Read... [10:51:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:51:27]Read from MH i2c: E2 [10:51:27]MH_I2C_Read... [10:51:27]Read from MH i2c: E2 03 00 [10:51:27]MH_I2C_Read... [10:51:27]Read from MH i2c: E2 03 00 58 1C 00 90 00 E8 [10:51:27]RAPDU: 90 00 [10:51:27]wFMCommunicate OK [10:51:27]wFMCommunicate request_size=255 [10:51:27]MH_SAM_APDU [10:51:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 19 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 71 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 9D 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 43 00 00 00 F4 03 04 00 30 56 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 4A E1 01 00 35 04 06 00 D6 [10:51:27]Write to MH i2c: E2 02 01 59 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 35 FF 03 08 00 03 46 19 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 71 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 9D 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 43 00 00 00 F4 03 04 00 30 56 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 4A E1 01 00 35 04 06 00 D6 00 00 D3 [10:51:27]Write i2c OK [10:51:27]MH_I2C_Read... [10:51:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:51:27]Read from MH i2c: E2 [10:51:27]MH_I2C_Read... [10:51:27]Read from MH i2c: E2 03 00 [10:51:27]MH_I2C_Read... [10:51:27]Read from MH i2c: E2 03 00 59 1C 00 90 00 E9 [10:51:27]RAPDU: 90 00 [10:51:27]wFMCommunicate OK [10:51:27]wFMCommunicate request_size=10 [10:51:27]MH_SAM_APDU [10:51:27]CAPDU: 80 0D 02 02 05 5E C2 6B E0 85 [10:51:27]Write to MH i2c: E2 0D 00 5A 1C 80 0D 02 02 05 00 5E C2 6B E0 85 00 00 EA [10:51:27]Write i2c OK [10:51:27]MH_I2C_Read... [10:51:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:51:27]Read from MH i2c: E2 [10:51:27]MH_I2C_Read... [10:51:27]Read from MH i2c: E2 03 00 [10:51:27]MH_I2C_Read... [10:51:27]Read from MH i2c: E2 03 00 5A 1C 00 90 00 EA [10:51:27]RAPDU: 90 00 [10:51:27]wFMCommunicate OK [10:51:27]wFMCommunicate request_size=4 [10:51:27]MH_SAM_APDU [10:51:27]CAPDU: 80 0D 03 02 [10:51:27]Write to MH i2c: E2 08 00 5B 1C 80 0D 03 02 00 00 00 00 F2 [10:51:27]Write i2c OK [10:51:27]MH_I2C_Read... [10:51:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:51:27]Read from MH i2c: E2 [10:51:27]MH_I2C_Read... [10:51:27]Read from MH i2c: E2 0B 00 [10:51:27]MH_I2C_Read... [10:51:27]Read from MH i2c: E2 0B 00 5B 1C 00 F8 55 40 D8 75 04 DF AA 90 00 5A [10:51:27]RAPDU: F8 55 40 D8 75 04 DF AA 90 00 [10:51:27]wFMCommunicate OK [10:51:27]SAM_PROTO_SignData done [10:51:27]FM_MakeSignedData done [10:51:27]CreateOFDProtocolMessage [10:51:27]wFMCommunicate request_size=4 [10:51:27]MH_SAM_APDU [10:51:27]CAPDU: 80 11 00 00 [10:51:27]Write to MH i2c: E2 08 00 5C 1C 80 11 00 00 00 00 00 00 F2 [10:51:27]Write i2c OK [10:51:27]MH_I2C_Read... [10:51:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:51:27]Read from MH i2c: E2 [10:51:27]MH_I2C_Read... [10:51:27]Read from MH i2c: E2 17 00 [10:51:27]MH_I2C_Read... [10:51:27]Read from MH i2c: E2 17 00 5C 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 50 [10:51:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [10:51:27]wFMCommunicate OK [10:51:27]CreateOFDProtocolMessage done [10:51:27]OFDSenderStorePacket 123210 [10:51:27]StoreOFDPacket docnum=123210 [10:51:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 D2 FD 07 01 92 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 35 FF 03 08 00 03 46 19 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 71 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 9D 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 43 00 00 00 F4 03 04 00 30 56 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 4A E1 01 00 35 04 06 00 D6 5E C2 6B E0 85 F8 55 40 D8 75 04 DF AA [10:51:27]CheckFolder [10:51:27]dirname=/storage/ofd_packets [10:51:27]CheckFolder done [10:51:27]ProducePacketName [10:51:27]name=ofd_packets/00123210 [10:51:27]NVStorageSaveData ofd_packets/00123210 [10:51:27]File name is /storage/ofd_packets/00123210 [10:51:27]Write 301 bytes [10:51:27]NVStorageSaveData done [10:51:27]OFDSenderStorePacket done [10:51:27]KKMCreateOFDPacket done [10:51:27]NVStorageSaveData kkm_last_timestamp [10:51:27]File name is /storage/kkm_last_timestamp [10:51:27]Write 4 bytes [10:51:27]NVStorageSaveData done [10:51:27]ExternCall_PrintAddStr [10:51:27]wPrintStart [10:51:27]Write to MH i2c: 01 00 00 5D 1C 79 [10:51:27]Write i2c OK [10:51:27]MH_I2C_Read... [10:51:27]Read from MH i2c: 01 [10:51:27]MH_I2C_Read... [10:51:27]Read from MH i2c: 01 07 00 [10:51:27]MH_I2C_Read... [10:51:27]Read from MH i2c: 01 07 00 5D 1C 00 00 00 00 00 FF 0F 8E [10:51:27]RasterBufferAndPrint [10:51:27]line Счет N : (1)1106132 [10:51:27]line ИНН: 02508201610067 [10:51:27]line Контрольно-Кассовый Чек [10:51:27]line ПРОДАЖА [10:51:27]line ТРК (МРК, ГНК) : 32 [10:51:27]line Товар: 2710124130 [10:51:27]line Аи-92-К-5 [10:51:27]line 6.470 * 61.90 [10:51:27]line = 400.49 [10:51:27]line НДС 12% НСП 1% [10:51:27]line > о реализуемом товаре [10:51:27]line ОКРУГЛЕНИЕ: -0.49 [10:51:27]line ИТОГО: 400.00 [10:51:27]line Внесено: 400.00 [10:51:27]line СДАЧА: 0.00 [10:51:27]line НСП 1% : 3.54 [10:51:27]line НДС 12% : 42.53 [10:51:27]line Наличными: 400.00 [10:51:27]line Безнал.: 0.00 [10:51:27]line Место: АЗС № 25 "Партнер Нефть" [10:51:27]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [10:51:27]line СНО: Общий режим [10:51:27]line Чек 67 03.03.2024 10:51 [10:51:27]line Смена: 323 ФФД: 1.0 [10:51:27]line ЗНМ: 0300000019 [10:51:27]line РНМ: 0000000000090573 [10:51:27]line Версия ККМ: 001 [10:51:27]line ФМ: 0000000000874798 [10:51:27]line ФД: 123210 [10:51:27]line ФПД: 235702477119621 [10:51:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T105128&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123210&fm=235702477119621&tin=02508201610067®Number=0000000000090573&sum=40000 [10:51:28]OFD Sender: Processing packet 123210 [packets to send 112, broken 111] [10:51:28]ProducePacketName [10:51:28]name=ofd_packets/00123210 [10:51:28]OFD Sender: To server: pG, [10:51:28]CommunicateWithHost lk.salyk.kg:30040 [10:51:28]ConnectInit lk.salyk.kg [10:51:28]written 0, free lines is 4095 [10:51:28]Connected sock=10 [10:51: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 37 39 38 0F 01 00 00 D2 FD 07 01 92 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 35 FF 03 08 00 03 46 19 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 71 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 9D 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 43 00 00 00 F4 03 04 00 30 56 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 4A E1 01 00 35 04 06 00 D6 5E C2 6B E0 85 F8 55 40 D8 75 04 DF AA [10:51:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 AB 12 47 00 44 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 37 39 38 10 04 04 00 4A E1 01 00 F4 03 04 00 5C 02 E4 65 B6 04 01 00 00 4E C6 8B 58 EF 2C 24 0A [10:51:28]CommunicateWithHost err = 0 [10:51:28]CheckOFDResponse [10:51:28]1017 (14) - 77093643461234 [10:51:28]1041 (16) - 0000000000874798 [10:51:28]1040 (4) - 123210 [10:51:28]1012 (4) - 03.03.2024 04:53 [10:51:28]1206 (1) - 0 [10:51:28]OFD Sender: Remove packet 123210 [10:51:28]ProducePacketName [10:51:28]name=ofd_packets/00123210 [10:51:28]NVStorageDeleteData [10:51:28]Write to MH i2c: 01 00 00 88 1C A4 [10:51:28]Write i2c OK [10:51:28]MH_I2C_Read... [10:51:28]Read from MH i2c: 01 [10:51:28]MH_I2C_Read... [10:51:28]Read from MH i2c: 01 07 00 [10:51:28]MH_I2C_Read... [10:51:28]Read from MH i2c: 01 07 00 88 1C 00 00 00 00 00 E9 0C A0 [10:51:28]RasterBufferAndPrint [10:51:28]line [10:51:28]line [10:51:28]line [10:51:28]line [10:51:28]line [10:51:28]written 0, free lines is 3311 [10:51:28]MH_Cut [10:51:28]Write to MH i2c: D1 01 00 8F 1C 01 7D [10:51:28]Write i2c OK [10:51:28]MH_I2C_Read... [10:51:28]Read from MH i2c: D1 [10:51:28]MH_I2C_Read... [10:51:28]Read from MH i2c: D1 01 00 [10:51:28]MH_I2C_Read... [10:51:28]Read from MH i2c: D1 01 00 8F 1C 00 7C [10:51:28]Write to MH i2c: 01 00 00 90 1C AC [10:51:28]Write i2c OK [10:51:28]MH_I2C_Read... [10:51:28]OFD Sender: No OFD packet to send [10:51:29]*** Cut start [10:51:29]*** Purtial cut [10:51:29]*** Stage 1: CUTSNS_PIN = 1 [10:51:31]Read from MH i2c: 01 [10:51:31]MH_I2C_Read... [10:51:31]*** Stop cut motor [10:51:31]*** Cut end [10:51:31]Read from MH i2c: 01 07 00 [10:51:31]MH_I2C_Read... [10:51:31]Read from MH i2c: 01 07 00 90 1C 00 00 00 00 00 FF 0F C1 [10:51:31]process_action close_receipt done [10:51:31]requested_data is exist [10:51:31]produce_requested_data [10:51:31]requested_item fm.sn is exist - process it [10:51:31]wFMCommunicate request_size=4 [10:51:31]MH_SAM_APDU [10:51:31]CAPDU: 80 11 00 00 [10:51:31]Write to MH i2c: E2 08 00 91 1C 80 11 00 00 00 00 00 00 27 [10:51:31]Write i2c OK [10:51:31]MH_I2C_Read... [10:51:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:51:31]Read from MH i2c: E2 [10:51:31]MH_I2C_Read... [10:51:31]Read from MH i2c: E2 17 00 [10:51:31]MH_I2C_Read... [10:51:31]Read from MH i2c: E2 17 00 91 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 85 [10:51:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [10:51:31]wFMCommunicate OK [10:51:31]requested_item fd.num is exist - process it [10:51:31]SAM_PROTO_GetFieldsCounters [10:51:31]wFMCommunicate request_size=4 [10:51:31]MH_SAM_APDU [10:51:31]CAPDU: 80 13 00 00 [10:51:31]Write to MH i2c: E2 08 00 92 1C 80 13 00 00 00 00 00 00 2A [10:51:31]Write i2c OK [10:51:31]MH_I2C_Read... [10:51:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:51:31]Read from MH i2c: E2 [10:51:31]MH_I2C_Read... [10:51:31]Read from MH i2c: E2 62 00 [10:51:31]MH_I2C_Read... [10:51:31]Read from MH i2c: E2 62 00 92 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 4A E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 8E [10:51: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 4A E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:51:31]wFMCommunicate OK [10:51:31]SAM_PROTO_GetFieldsCounters done [10:51:31]requested_item shift.num is exist - process it [10:51:31]requested_item shift.opened is exist - process it [10:51:31]req_shift_opened [10:51:31]FM_GetShiftState [10:51:31]SAM_PROTO_GetShiftState [10:51:31]wFMCommunicate request_size=4 [10:51:31]MH_SAM_APDU [10:51:31]CAPDU: 80 13 01 00 [10:51:31]Write to MH i2c: E2 08 00 93 1C 80 13 01 00 00 00 00 00 2C [10:51:31]Write i2c OK [10:51:31]MH_I2C_Read... [10:51:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:51:31]Read from MH i2c: E2 [10:51:31]MH_I2C_Read... [10:51:31]Read from MH i2c: E2 0E 00 [10:51:31]MH_I2C_Read... [10:51:31]Read from MH i2c: E2 0E 00 93 1C 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 EE [10:51:31]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [10:51:31]wFMCommunicate OK [10:51:31]SAM_PROTO_GetShiftState done [10:51:31]FM_GetShiftState done [10:51:31]req_shift_opened done [10:51:31]requested_item shift.open_date is exist - process it [10:51:31]req_shift_open_date [10:51:31]req_shift_open_date done [10:51:31]produce_requested_data done [10:51:31]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123210,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [10:51:31]process_action_free close_receipt [10:51:31]json_value_free [10:51:31]json_value_free done [10:51:31]process_json_proto returns [10:51:31]Send response to host [10:51:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123210,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [10:51:31]free response buf [10:51:31]execute_script done [10:51:31]execute_script returns [10:51:31]free content buf [10:51:31]Sock 7.Close socket [10:51:31]Sock 7.Thread stoped [10:51:33]OFD Sender: No OFD packet to send [10:51:35]accept exits with 9 [10:51:35]New connection [10:51:35]New thread 3067252068 created [10:51:35]Thread 3067395428 joined [10:51:35]Waiting for new connection... [10:51:35] Sock 9.Parse request [10:51:35]Sock 9.Check first char [10:51:35]Sock 9.First char is OK [10:51:35]request: POST /json_proto HTTP/1.0 [10:51:35]Method: POST [10:51:35]URL: /json_proto [10:51:35]Method is POST - this is cgi request [10:51:35]url: /json_proto [10:51:35]query_string will be loaded in cgi processing [10:51:35]execute_cgi json_proto POST (null) [10:51:35]execute_cgi path=json_proto method=POST [10:51:35]POST find Content-Length [10:51:35]Host: 172.17.48.197:8080 [10:51:35]Content-Length: 809 [10:51:35]Content-Type: application/json [10:51:35] [10:51:35]POST finish read [10:51:35]Found Content-Length = 809 [10:51:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106131", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 24.240, "sum" : 1500.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.46 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:51:35]execute_script... [10:51:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106131", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 24.240, "sum" : 1500.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.46 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:51:35]POST & json_proto [10:51:35]process_json_proto [10:51:35]json parsed OK: [10:51:35]protocol is kg_v1.0 [10:51:35]action value=close_receipt [10:51:35]process_action close_receipt [10:51:35]cmd_close_receipt [10:51:35]MH_GetDate [10:51:35]Write to MH i2c: F0 00 00 94 1C 9F [10:51:35]Write i2c OK [10:51:35]MH_I2C_Read... [10:51:35]Read from MH i2c: F0 [10:51:35]MH_I2C_Read... [10:51:35]Read from MH i2c: F0 09 00 [10:51:35]MH_I2C_Read... [10:51:35]Read from MH i2c: F0 09 00 94 1C 00 39 56 E4 65 6C AF E3 65 E3 [10:51:35]GetLastDocTimeStamp 1709463088 [10:51:35]current date 1709463097 [10:51:35]FM_GetShiftState [10:51:35]SAM_PROTO_GetShiftState [10:51:35]wFMCommunicate request_size=4 [10:51:35]MH_SAM_APDU [10:51:35]CAPDU: 80 13 01 00 [10:51:35]Write to MH i2c: E2 08 00 95 1C 80 13 01 00 00 00 00 00 2E [10:51:35]Write i2c OK [10:51:35]MH_I2C_Read... [10:51:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:51:35]Read from MH i2c: E2 [10:51:35]MH_I2C_Read... [10:51:35]Read from MH i2c: E2 0E 00 [10:51:35]MH_I2C_Read... [10:51:35]Read from MH i2c: E2 0E 00 95 1C 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 F0 [10:51:35]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [10:51:35]wFMCommunicate OK [10:51:35]SAM_PROTO_GetShiftState done [10:51:35]FM_GetShiftState done [10:51:35]opened in 1709425579 [10:51:35]opened+sec_in_day 1709511979 [10:51:35]quantity*price = 150045 [10:51:35]sum+1 = 150047 [10:51:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.46 НСП 1% : 13.28 НДС 12% : 159.34 Наличными: 0.00 Безнал.: 1500.46 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 68 03.03.2024 10:51 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874798 ФД: 123211 ФПД: 204993567468284 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T105137&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123211&fm=204993567468284&tin=02508201610067®Number=0000000000090573&sum=150046 [10:51:36]StoreToDocumentArchive [10:51:36]shift 323 fd 123211 [10:51:36]save to /storage/0323/doc_00123211 [10:51:36]save last doc name /storage/0323/doc_00123211 to /storage/kkm_last_doc_name [10:51:36]save OK [10:51:36]Clear old archive folders... [10:51:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:51:36]tlvbuf is B6FC4520 [10:51:36]SAM_PROTO_ClearQueue [10:51:36]wFMCommunicate request_size=4 [10:51:36]MH_SAM_APDU [10:51:36]CAPDU: 80 09 00 00 [10:51:36]Write to MH i2c: E2 08 00 A2 1C 80 09 00 00 00 00 00 00 30 [10:51:36]Write i2c OK [10:51:36]MH_I2C_Read... [10:51:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:51:36]Read from MH i2c: E2 [10:51:36]MH_I2C_Read... [10:51:36]Read from MH i2c: E2 03 00 [10:51:36]MH_I2C_Read... [10:51:36]Read from MH i2c: E2 03 00 A2 1C 00 90 00 32 [10:51:36]RAPDU: 90 00 [10:51:36]wFMCommunicate OK [10:51:36]SAM_PROTO_ClearQueue done [10:51:36]KKMCreateOFDPacket [10:51:36]OFDProtocolAddRootSTLVToBuf [10:51:36]FM_MakeSignedData [10:51:36]FM_MakeSignedData [10:51:36]SAM_PROTO_SignData [10:51:36]wFMCommunicate request_size=4 [10:51:36]MH_SAM_APDU [10:51:36]CAPDU: 80 0D 01 02 [10:51:36]Write to MH i2c: E2 08 00 A3 1C 80 0D 01 02 00 00 00 00 38 [10:51:36]Write i2c OK [10:51:36]MH_I2C_Read... [10:51:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:51:36]Read from MH i2c: E2 [10:51:36]MH_I2C_Read... [10:51:36]Read from MH i2c: E2 03 00 [10:51:36]MH_I2C_Read... [10:51:36]Read from MH i2c: E2 03 00 A3 1C 00 90 00 33 [10:51:36]RAPDU: 90 00 [10:51:36]wFMCommunicate OK [10:51:36]wFMCommunicate request_size=255 [10:51:36]MH_SAM_APDU [10:51:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 5E 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 1E 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1E 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1E 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 39 56 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 4B E1 01 00 35 04 06 00 BA [10:51:36]Write to MH i2c: E2 02 01 A4 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 35 FF 03 08 00 03 B0 5E 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 1E 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1E 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1E 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 39 56 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 4B E1 01 00 35 04 06 00 BA 00 00 D6 [10:51:36]Write i2c OK [10:51:36]MH_I2C_Read... [10:51:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:51:36]Read from MH i2c: E2 [10:51:36]MH_I2C_Read... [10:51:36]Read from MH i2c: E2 03 00 [10:51:36]MH_I2C_Read... [10:51:36]Read from MH i2c: E2 03 00 A4 1C 00 90 00 34 [10:51:36]RAPDU: 90 00 [10:51:36]wFMCommunicate OK [10:51:36]wFMCommunicate request_size=10 [10:51:36]MH_SAM_APDU [10:51:36]CAPDU: 80 0D 02 02 05 70 C8 C5 2A FC [10:51:36]Write to MH i2c: E2 0D 00 A5 1C 80 0D 02 02 05 00 70 C8 C5 2A FC 00 00 68 [10:51:36]Write i2c OK [10:51:36]MH_I2C_Read... [10:51:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:51:36]Read from MH i2c: E2 [10:51:36]MH_I2C_Read... [10:51:36]Read from MH i2c: E2 03 00 [10:51:36]MH_I2C_Read... [10:51:36]Read from MH i2c: E2 03 00 A5 1C 00 90 00 35 [10:51:36]RAPDU: 90 00 [10:51:36]wFMCommunicate OK [10:51:36]wFMCommunicate request_size=4 [10:51:36]MH_SAM_APDU [10:51:36]CAPDU: 80 0D 03 02 [10:51:36]Write to MH i2c: E2 08 00 A6 1C 80 0D 03 02 00 00 00 00 3D [10:51:36]Write i2c OK [10:51:36]MH_I2C_Read... [10:51:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:51:36]Read from MH i2c: E2 [10:51:36]MH_I2C_Read... [10:51:36]Read from MH i2c: E2 0B 00 [10:51:36]MH_I2C_Read... [10:51:36]Read from MH i2c: E2 0B 00 A6 1C 00 3C EA 6F FF 27 6C 3D 98 90 00 3A [10:51:36]RAPDU: 3C EA 6F FF 27 6C 3D 98 90 00 [10:51:36]wFMCommunicate OK [10:51:36]SAM_PROTO_SignData done [10:51:36]FM_MakeSignedData done [10:51:36]CreateOFDProtocolMessage [10:51:36]wFMCommunicate request_size=4 [10:51:36]MH_SAM_APDU [10:51:36]CAPDU: 80 11 00 00 [10:51:36]Write to MH i2c: E2 08 00 A7 1C 80 11 00 00 00 00 00 00 3D [10:51:36]Write i2c OK [10:51:36]MH_I2C_Read... [10:51:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:51:36]Read from MH i2c: E2 [10:51:36]MH_I2C_Read... [10:51:36]Read from MH i2c: E2 17 00 [10:51:36]MH_I2C_Read... [10:51:36]Read from MH i2c: E2 17 00 A7 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 9B [10:51:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [10:51:36]wFMCommunicate OK [10:51:36]CreateOFDProtocolMessage done [10:51:36]OFDSenderStorePacket 123211 [10:51:36]StoreOFDPacket docnum=123211 [10:51:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 10 28 07 01 C8 BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 5E 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 1E 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1E 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1E 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 39 56 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 4B E1 01 00 35 04 06 00 BA 70 C8 C5 2A FC 3C EA 6F FF 27 6C 3D 98 [10:51:36]CheckFolder [10:51:36]dirname=/storage/ofd_packets [10:51:36]CheckFolder done [10:51:36]ProducePacketName [10:51:36]name=ofd_packets/00123211 [10:51:36]NVStorageSaveData ofd_packets/00123211 [10:51:36]File name is /storage/ofd_packets/00123211 [10:51:36]Write 301 bytes [10:51:36]NVStorageSaveData done [10:51:36]OFDSenderStorePacket done [10:51:36]KKMCreateOFDPacket done [10:51:36]NVStorageSaveData kkm_last_timestamp [10:51:36]File name is /storage/kkm_last_timestamp [10:51:36]Write 4 bytes [10:51:36]NVStorageSaveData done [10:51:36]ExternCall_PrintAddStr [10:51:36]wPrintStart [10:51:36]Write to MH i2c: 01 00 00 A8 1C C4 [10:51:36]Write i2c OK [10:51:36]MH_I2C_Read... [10:51:36]Read from MH i2c: 01 [10:51:36]MH_I2C_Read... [10:51:36]Read from MH i2c: 01 07 00 [10:51:36]MH_I2C_Read... [10:51:36]Read from MH i2c: 01 07 00 A8 1C 00 00 00 00 00 FF 0F D9 [10:51:36]RasterBufferAndPrint [10:51:36]line Счет N : (1)1106131 [10:51:36]line ИНН: 02508201610067 [10:51:36]line Контрольно-Кассовый Чек [10:51:36]line ПРОДАЖА [10:51:36]line ТРК (МРК, ГНК) : 11 [10:51:36]line Товар: 2710124130 [10:51:36]line Аи-92-К-5 [10:51:36]line 24.240 * 61.90 [10:51:36]line = 1500.46 [10:51:36]line НДС 12% НСП 1% [10:51:36]line > о реализуемом товаре [10:51:36]line ИТОГО: 1500.46 [10:51:36]line НСП 1% : 13.28 [10:51:36]line НДС 12% : 159.34 [10:51:36]line Наличными: 0.00 [10:51:36]line Безнал.: 1500.46 [10:51:36]line Место: АЗС № 25 "Партнер Нефть" [10:51:36]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [10:51:36]line СНО: Общий режим [10:51:36]line Чек 68 03.03.2024 10:51 [10:51:36]line Смена: 323 ФФД: 1.0 [10:51:36]line ЗНМ: 0300000019 [10:51:36]line РНМ: 0000000000090573 [10:51:36]line Версия ККМ: 001 [10:51:36]line Платежная система: О! деньги [10:51:36]line ФМ: 0000000000874798 [10:51:36]line ФД: 123211 [10:51:36]line ФПД: 204993567468284 [10:51:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T105137&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123211&fm=204993567468284&tin=02508201610067®Number=0000000000090573&sum=150046 [10:51:36]OFD Sender: Processing packet 123211 [packets to send 112, broken 111] [10:51:36]ProducePacketName [10:51:36]name=ofd_packets/00123211 [10:51:36]OFD Sender: To server: pG, [10:51:36]CommunicateWithHost lk.salyk.kg:30040 [10:51:36]ConnectInit lk.salyk.kg [10:51:37]Connected sock=10 [10:51: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 37 39 38 0F 01 00 00 10 28 07 01 C8 BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 5E 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 1E 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1E 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1E 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 39 56 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 4B E1 01 00 35 04 06 00 BA 70 C8 C5 2A FC 3C EA 6F FF 27 6C 3D 98 [10:51:37]written 0, free lines is 4095 [10:51:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 E1 70 47 00 F6 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 37 39 38 10 04 04 00 4B E1 01 00 F4 03 04 00 66 02 E4 65 B6 04 01 00 00 15 65 CA 56 1E E4 D4 C7 [10:51:37]CommunicateWithHost err = 0 [10:51:37]CheckOFDResponse [10:51:37]1017 (14) - 77093643461234 [10:51:37]1041 (16) - 0000000000874798 [10:51:37]1040 (4) - 123211 [10:51:37]1012 (4) - 03.03.2024 04:53 [10:51:37]1206 (1) - 0 [10:51:37]OFD Sender: Remove packet 123211 [10:51:37]ProducePacketName [10:51:37]name=ofd_packets/00123211 [10:51:37]NVStorageDeleteData [10:51:37]Write to MH i2c: 01 00 00 D2 1C EE [10:51:37]Write i2c OK [10:51:37]MH_I2C_Read... [10:51:37]Read from MH i2c: 01 [10:51:37]MH_I2C_Read... [10:51:37]Read from MH i2c: 01 07 00 [10:51:37]MH_I2C_Read... [10:51:37]Read from MH i2c: 01 07 00 D2 1C 00 00 00 00 00 04 0D 06 [10:51:37]RasterBufferAndPrint [10:51:37]line [10:51:37]line [10:51:37]line [10:51:37]line [10:51:37]line [10:51:37]written 0, free lines is 3343 [10:51:37]MH_Cut [10:51:37]Write to MH i2c: D1 01 00 D9 1C 01 C7 [10:51:37]Write i2c OK [10:51:37]MH_I2C_Read... [10:51:37]Read from MH i2c: D1 [10:51:37]MH_I2C_Read... [10:51:37]Read from MH i2c: D1 01 00 [10:51:37]MH_I2C_Read... [10:51:37]Read from MH i2c: D1 01 00 D9 1C 00 C6 [10:51:37]Write to MH i2c: 01 00 00 DA 1C F6 [10:51:37]Write i2c OK [10:51:37]MH_I2C_Read... [10:51:37]OFD Sender: No OFD packet to send [10:51:38]*** Cut start [10:51:38]*** Purtial cut [10:51:38]*** Stage 1: CUTSNS_PIN = 1 [10:51:40]Read from MH i2c: 01 [10:51:40]MH_I2C_Read... [10:51:40]*** Stop cut motor [10:51:40]*** Cut end [10:51:40]Read from MH i2c: 01 07 00 [10:51:40]MH_I2C_Read... [10:51:40]Read from MH i2c: 01 07 00 DA 1C 00 00 00 00 00 FF 0F 0B [10:51:40]process_action close_receipt done [10:51:40]requested_data is exist [10:51:40]produce_requested_data [10:51:40]requested_item fm.sn is exist - process it [10:51:40]wFMCommunicate request_size=4 [10:51:40]MH_SAM_APDU [10:51:40]CAPDU: 80 11 00 00 [10:51:40]Write to MH i2c: E2 08 00 DB 1C 80 11 00 00 00 00 00 00 71 [10:51:40]Write i2c OK [10:51:40]MH_I2C_Read... [10:51:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:51:40]Read from MH i2c: E2 [10:51:40]MH_I2C_Read... [10:51:40]Read from MH i2c: E2 17 00 [10:51:40]MH_I2C_Read... [10:51:40]Read from MH i2c: E2 17 00 DB 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 CF [10:51:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [10:51:40]wFMCommunicate OK [10:51:40]requested_item fd.num is exist - process it [10:51:40]SAM_PROTO_GetFieldsCounters [10:51:40]wFMCommunicate request_size=4 [10:51:40]MH_SAM_APDU [10:51:40]CAPDU: 80 13 00 00 [10:51:40]Write to MH i2c: E2 08 00 DC 1C 80 13 00 00 00 00 00 00 74 [10:51:40]Write i2c OK [10:51:40]MH_I2C_Read... [10:51:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:51:40]Read from MH i2c: E2 [10:51:40]MH_I2C_Read... [10:51:40]Read from MH i2c: E2 62 00 [10:51:40]MH_I2C_Read... [10:51:40]Read from MH i2c: E2 62 00 DC 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 4B E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 DC [10:51: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 4B E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:51:40]wFMCommunicate OK [10:51:40]SAM_PROTO_GetFieldsCounters done [10:51:40]requested_item shift.num is exist - process it [10:51:40]requested_item shift.opened is exist - process it [10:51:40]req_shift_opened [10:51:40]FM_GetShiftState [10:51:40]SAM_PROTO_GetShiftState [10:51:40]wFMCommunicate request_size=4 [10:51:40]MH_SAM_APDU [10:51:40]CAPDU: 80 13 01 00 [10:51:40]Write to MH i2c: E2 08 00 DD 1C 80 13 01 00 00 00 00 00 76 [10:51:40]Write i2c OK [10:51:40]MH_I2C_Read... [10:51:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:51:40]Read from MH i2c: E2 [10:51:40]MH_I2C_Read... [10:51:40]Read from MH i2c: E2 0E 00 [10:51:40]MH_I2C_Read... [10:51:40]Read from MH i2c: E2 0E 00 DD 1C 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 38 [10:51:40]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [10:51:40]wFMCommunicate OK [10:51:40]SAM_PROTO_GetShiftState done [10:51:40]FM_GetShiftState done [10:51:40]req_shift_opened done [10:51:40]requested_item shift.open_date is exist - process it [10:51:40]req_shift_open_date [10:51:40]req_shift_open_date done [10:51:40]produce_requested_data done [10:51:40]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123211,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [10:51:40]process_action_free close_receipt [10:51:40]json_value_free [10:51:40]json_value_free done [10:51:40]process_json_proto returns [10:51:40]Send response to host [10:51:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123211,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [10:51:40]free response buf [10:51:40]execute_script done [10:51:40]execute_script returns [10:51:40]free content buf [10:51:40]Sock 9.Close socket [10:51:40]Sock 9.Thread stoped [10:51:42]OFD Sender: No OFD packet to send [10:51:48]OFD Sender: No OFD packet to send [10:51:53]OFD Sender: No OFD packet to send [10:51:58]OFD Sender: No OFD packet to send [10:52:03]OFD Sender: No OFD packet to send [10:52:08]OFD Sender: No OFD packet to send [10:52:13]OFD Sender: No OFD packet to send [10:52:18]OFD Sender: No OFD packet to send [10:52:23]OFD Sender: No OFD packet to send [10:52:28]OFD Sender: No OFD packet to send [10:52:33]OFD Sender: No OFD packet to send [10:52:38]OFD Sender: No OFD packet to send [10:52:43]OFD Sender: No OFD packet to send [10:52:48]OFD Sender: No OFD packet to send [10:52:53]OFD Sender: No OFD packet to send [10:52:58]OFD Sender: No OFD packet to send [10:53:03]OFD Sender: No OFD packet to send [10:53:08]OFD Sender: No OFD packet to send [10:53:13]OFD Sender: No OFD packet to send [10:53:18]OFD Sender: No OFD packet to send [10:53:23]OFD Sender: No OFD packet to send [10:53:28]OFD Sender: No OFD packet to send [10:53:33]OFD Sender: No OFD packet to send [10:53:38]OFD Sender: No OFD packet to send [10:53:43]OFD Sender: No OFD packet to send [10:53:48]OFD Sender: No OFD packet to send [10:53:53]OFD Sender: No OFD packet to send [10:53:58]OFD Sender: No OFD packet to send [10:54:03]OFD Sender: No OFD packet to send [10:54:08]OFD Sender: No OFD packet to send [10:54:13]OFD Sender: No OFD packet to send [10:54:18]OFD Sender: No OFD packet to send [10:54:23]OFD Sender: No OFD packet to send [10:54:28]OFD Sender: No OFD packet to send [10:54:33]OFD Sender: No OFD packet to send [10:54:38]OFD Sender: No OFD packet to send [10:54:43]OFD Sender: No OFD packet to send [10:54:48]OFD Sender: No OFD packet to send [10:54:53]OFD Sender: No OFD packet to send [10:54:58]OFD Sender: No OFD packet to send [10:55:03]OFD Sender: No OFD packet to send [10:55:08]OFD Sender: No OFD packet to send [10:55:13]OFD Sender: No OFD packet to send [10:55:18]OFD Sender: No OFD packet to send [10:55:23]OFD Sender: No OFD packet to send [10:55:25]accept exits with 7 [10:55:25]New connection [10:55:25]New thread 3067395428 created [10:55:25]Thread 3067252068 joined [10:55:25]Waiting for new connection... [10:55:25] Sock 7.Parse request [10:55:25]Sock 7.Check first char [10:55:25]Sock 7.First char is OK [10:55:25]request: POST /json_proto HTTP/1.0 [10:55:25]Method: POST [10:55:25]URL: /json_proto [10:55:25]Method is POST - this is cgi request [10:55:25]url: /json_proto [10:55:25]query_string will be loaded in cgi processing [10:55:25]execute_cgi json_proto POST (null) [10:55:25]execute_cgi path=json_proto method=POST [10:55:25]POST find Content-Length [10:55:25]Host: 172.17.48.197:8080 [10:55:25]Content-Length: 809 [10:55:25]Content-Type: application/json [10:55:25] [10:55:25]POST finish read [10:55:25]Found Content-Length = 809 [10:55:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106133", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:55:25]execute_script... [10:55:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106133", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:55:25]POST & json_proto [10:55:25]process_json_proto [10:55:25]json parsed OK: [10:55:25]protocol is kg_v1.0 [10:55:25]action value=close_receipt [10:55:25]process_action close_receipt [10:55:25]cmd_close_receipt [10:55:25]MH_GetDate [10:55:25]Write to MH i2c: F0 00 00 DE 1C E9 [10:55:25]Write i2c OK [10:55:25]MH_I2C_Read... [10:55:25]Read from MH i2c: F0 [10:55:25]MH_I2C_Read... [10:55:25]Read from MH i2c: F0 09 00 [10:55:25]MH_I2C_Read... [10:55:25]Read from MH i2c: F0 09 00 DE 1C 00 20 57 E4 65 6C AF E3 65 15 [10:55:25]GetLastDocTimeStamp 1709463097 [10:55:25]current date 1709463328 [10:55:25]FM_GetShiftState [10:55:25]SAM_PROTO_GetShiftState [10:55:25]wFMCommunicate request_size=4 [10:55:25]MH_SAM_APDU [10:55:25]CAPDU: 80 13 01 00 [10:55:25]Write to MH i2c: E2 08 00 DF 1C 80 13 01 00 00 00 00 00 78 [10:55:25]Write i2c OK [10:55:25]MH_I2C_Read... [10:55:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:25]Read from MH i2c: E2 [10:55:25]MH_I2C_Read... [10:55:25]Read from MH i2c: E2 0E 00 [10:55:25]MH_I2C_Read... [10:55:25]Read from MH i2c: E2 0E 00 DF 1C 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 3A [10:55:25]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [10:55:25]wFMCommunicate OK [10:55:25]SAM_PROTO_GetShiftState done [10:55:25]FM_GetShiftState done [10:55:25]opened in 1709425579 [10:55:25]opened+sec_in_day 1709511979 [10:55:25]quantity*price = 100010 [10:55:25]sum+1 = 100012 [10:55:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.11 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.11 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 69 03.03.2024 10:55 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874798 ФД: 123212 ФПД: 122258125188852 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T105528&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123212&fm=122258125188852&tin=02508201610067®Number=0000000000090573&sum=100011 [10:55:26]StoreToDocumentArchive [10:55:26]shift 323 fd 123212 [10:55:26]save to /storage/0323/doc_00123212 [10:55:26]save last doc name /storage/0323/doc_00123212 to /storage/kkm_last_doc_name [10:55:26]save OK [10:55:26]Clear old archive folders... [10:55:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:55:26]tlvbuf is 00DFC880 [10:55:26]SAM_PROTO_ClearQueue [10:55:26]wFMCommunicate request_size=4 [10:55:26]MH_SAM_APDU [10:55:26]CAPDU: 80 09 00 00 [10:55:26]Write to MH i2c: E2 08 00 EC 1C 80 09 00 00 00 00 00 00 7A [10:55:26]Write i2c OK [10:55:26]MH_I2C_Read... [10:55:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:55:26]Read from MH i2c: E2 [10:55:26]MH_I2C_Read... [10:55:26]Read from MH i2c: E2 03 00 [10:55:26]MH_I2C_Read... [10:55:26]Read from MH i2c: E2 03 00 EC 1C 00 90 00 7C [10:55:26]RAPDU: 90 00 [10:55:26]wFMCommunicate OK [10:55:26]SAM_PROTO_ClearQueue done [10:55:26]KKMCreateOFDPacket [10:55:26]OFDProtocolAddRootSTLVToBuf [10:55:26]FM_MakeSignedData [10:55:26]FM_MakeSignedData [10:55:26]SAM_PROTO_SignData [10:55:26]wFMCommunicate request_size=4 [10:55:26]MH_SAM_APDU [10:55:26]CAPDU: 80 0D 01 02 [10:55:26]Write to MH i2c: E2 08 00 ED 1C 80 0D 01 02 00 00 00 00 82 [10:55:26]Write i2c OK [10:55:26]MH_I2C_Read... [10:55:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:55:27]Read from MH i2c: E2 [10:55:27]MH_I2C_Read... [10:55:27]Read from MH i2c: E2 03 00 [10:55:27]MH_I2C_Read... [10:55:27]Read from MH i2c: E2 03 00 ED 1C 00 90 00 7D [10:55:27]RAPDU: 90 00 [10:55:27]wFMCommunicate OK [10:55:27]wFMCommunicate request_size=255 [10:55:27]MH_SAM_APDU [10:55:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 20 57 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 4C E1 01 00 35 04 06 00 6F [10:55:27]Write to MH i2c: E2 02 01 EE 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 20 57 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 4C E1 01 00 35 04 06 00 6F 00 00 E3 [10:55:27]Write i2c OK [10:55:27]MH_I2C_Read... [10:55:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:55:27]Read from MH i2c: E2 [10:55:27]MH_I2C_Read... [10:55:27]Read from MH i2c: E2 03 00 [10:55:27]MH_I2C_Read... [10:55:27]Read from MH i2c: E2 03 00 EE 1C 00 90 00 7E [10:55:27]RAPDU: 90 00 [10:55:27]wFMCommunicate OK [10:55:27]wFMCommunicate request_size=10 [10:55:27]MH_SAM_APDU [10:55:27]CAPDU: 80 0D 02 02 05 31 70 1F 6E F4 [10:55:27]Write to MH i2c: E2 0D 00 EF 1C 80 0D 02 02 05 00 31 70 1F 6E F4 00 00 B1 [10:55:27]Write i2c OK [10:55:27]MH_I2C_Read... [10:55:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:55:27]Read from MH i2c: E2 [10:55:27]MH_I2C_Read... [10:55:27]Read from MH i2c: E2 03 00 [10:55:27]MH_I2C_Read... [10:55:27]Read from MH i2c: E2 03 00 EF 1C 00 90 00 7F [10:55:27]RAPDU: 90 00 [10:55:27]wFMCommunicate OK [10:55:27]wFMCommunicate request_size=4 [10:55:27]MH_SAM_APDU [10:55:27]CAPDU: 80 0D 03 02 [10:55:27]Write to MH i2c: E2 08 00 F0 1C 80 0D 03 02 00 00 00 00 87 [10:55:27]Write i2c OK [10:55:27]MH_I2C_Read... [10:55:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:55:27]Read from MH i2c: E2 [10:55:27]MH_I2C_Read... [10:55:27]Read from MH i2c: E2 0B 00 [10:55:27]MH_I2C_Read... [10:55:27]Read from MH i2c: E2 0B 00 F0 1C 00 E2 EA 26 A9 79 A2 0B 5C 90 00 A5 [10:55:27]RAPDU: E2 EA 26 A9 79 A2 0B 5C 90 00 [10:55:27]wFMCommunicate OK [10:55:27]SAM_PROTO_SignData done [10:55:27]FM_MakeSignedData done [10:55:27]CreateOFDProtocolMessage [10:55:27]wFMCommunicate request_size=4 [10:55:27]MH_SAM_APDU [10:55:27]CAPDU: 80 11 00 00 [10:55:27]Write to MH i2c: E2 08 00 F1 1C 80 11 00 00 00 00 00 00 87 [10:55:27]Write i2c OK [10:55:27]MH_I2C_Read... [10:55:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:27]Read from MH i2c: E2 [10:55:27]MH_I2C_Read... [10:55:27]Read from MH i2c: E2 17 00 [10:55:27]MH_I2C_Read... [10:55:27]Read from MH i2c: E2 17 00 F1 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 E5 [10:55:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [10:55:27]wFMCommunicate OK [10:55:27]CreateOFDProtocolMessage done [10:55:27]OFDSenderStorePacket 123212 [10:55:27]StoreOFDPacket docnum=123212 [10:55:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 DF 4E 07 01 EC 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 20 57 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 4C E1 01 00 35 04 06 00 6F 31 70 1F 6E F4 E2 EA 26 A9 79 A2 0B 5C [10:55:27]CheckFolder [10:55:27]dirname=/storage/ofd_packets [10:55:27]CheckFolder done [10:55:27]ProducePacketName [10:55:27]name=ofd_packets/00123212 [10:55:27]NVStorageSaveData ofd_packets/00123212 [10:55:27]File name is /storage/ofd_packets/00123212 [10:55:27]Write 301 bytes [10:55:27]NVStorageSaveData done [10:55:27]OFDSenderStorePacket done [10:55:27]KKMCreateOFDPacket done [10:55:27]NVStorageSaveData kkm_last_timestamp [10:55:27]File name is /storage/kkm_last_timestamp [10:55:27]Write 4 bytes [10:55:27]NVStorageSaveData done [10:55:27]ExternCall_PrintAddStr [10:55:27]wPrintStart [10:55:27]Write to MH i2c: 01 00 00 F2 1C 0E [10:55:27]Write i2c OK [10:55:27]MH_I2C_Read... [10:55:27]Read from MH i2c: 01 [10:55:27]MH_I2C_Read... [10:55:27]Read from MH i2c: 01 07 00 [10:55:27]MH_I2C_Read... [10:55:27]Read from MH i2c: 01 07 00 F2 1C 00 00 00 00 00 FF 0F 23 [10:55:27]RasterBufferAndPrint [10:55:27]line Счет N : (1)1106133 [10:55:27]line ИНН: 02508201610067 [10:55:27]line Контрольно-Кассовый Чек [10:55:27]line ПРОДАЖА [10:55:27]line ТРК (МРК, ГНК) : 63 [10:55:27]line Товар: 2710124500 [10:55:27]line Аи-95-К-5 [10:55:27]line 14.390 * 69.50 [10:55:27]line = 1000.11 [10:55:27]line НДС 12% НСП 1% [10:55:27]line > о реализуемом товаре [10:55:27]line ИТОГО: 1000.11 [10:55:27]line НСП 1% : 8.85 [10:55:27]line НДС 12% : 106.21 [10:55:27]line Наличными: 0.00 [10:55:27]line Безнал.: 1000.11 [10:55:27]line Место: АЗС № 25 "Партнер Нефть" [10:55:27]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [10:55:27]line СНО: Общий режим [10:55:27]line Чек 69 03.03.2024 10:55 [10:55:27]line Смена: 323 ФФД: 1.0 [10:55:27]line ЗНМ: 0300000019 [10:55:27]line РНМ: 0000000000090573 [10:55:27]line Версия ККМ: 001 [10:55:27]line Платежная система: О! деньги [10:55:27]line ФМ: 0000000000874798 [10:55:27]line ФД: 123212 [10:55:27]line ФПД: 122258125188852 [10:55:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T105528&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123212&fm=122258125188852&tin=02508201610067®Number=0000000000090573&sum=100011 [10:55:27]OFD Sender: Processing packet 123212 [packets to send 112, broken 111] [10:55:27]ProducePacketName [10:55:27]name=ofd_packets/00123212 [10:55:27]OFD Sender: To server: pG, [10:55:27]CommunicateWithHost lk.salyk.kg:30040 [10:55:27]ConnectInit lk.salyk.kg [10:55:27]written 0, free lines is 4095 [10:55:27]Connected sock=10 [10:55: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 37 39 38 0F 01 00 00 DF 4E 07 01 EC 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 20 57 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 4C E1 01 00 35 04 06 00 6F 31 70 1F 6E F4 E2 EA 26 A9 79 A2 0B 5C [10:55:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 73 4E 47 00 5A 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 37 39 38 10 04 04 00 4C E1 01 00 F4 03 04 00 4C 03 E4 65 B6 04 01 00 00 FB 36 1A 17 76 A1 44 2D [10:55:28]CommunicateWithHost err = 0 [10:55:28]CheckOFDResponse [10:55:28]1017 (14) - 77093643461234 [10:55:28]1041 (16) - 0000000000874798 [10:55:28]1040 (4) - 123212 [10:55:28]1012 (4) - 03.03.2024 04:57 [10:55:28]1206 (1) - 0 [10:55:28]OFD Sender: Remove packet 123212 [10:55:28]ProducePacketName [10:55:28]name=ofd_packets/00123212 [10:55:28]NVStorageDeleteData [10:55:28]Write to MH i2c: 01 00 00 1C 1D 39 [10:55:28]Write i2c OK [10:55:28]MH_I2C_Read... [10:55:28]Read from MH i2c: 01 [10:55:28]MH_I2C_Read... [10:55:28]Read from MH i2c: 01 07 00 [10:55:28]MH_I2C_Read... [10:55:28]Read from MH i2c: 01 07 00 1C 1D 00 00 00 00 00 05 0D 52 [10:55:28]RasterBufferAndPrint [10:55:28]line [10:55:28]line [10:55:28]line [10:55:28]line [10:55:28]line [10:55:28]written 0, free lines is 3339 [10:55:28]MH_Cut [10:55:28]Write to MH i2c: D1 01 00 23 1D 01 12 [10:55:28]Write i2c OK [10:55:28]MH_I2C_Read... [10:55:28]Read from MH i2c: D1 [10:55:28]MH_I2C_Read... [10:55:28]Read from MH i2c: D1 01 00 [10:55:28]MH_I2C_Read... [10:55:28]Read from MH i2c: D1 01 00 23 1D 00 11 [10:55:28]Write to MH i2c: 01 00 00 24 1D 41 [10:55:28]Write i2c OK [10:55:28]MH_I2C_Read... [10:55:28]OFD Sender: No OFD packet to send [10:55:28]*** Cut start [10:55:28]*** Purtial cut [10:55:28]*** Stage 1: CUTSNS_PIN = 1 [10:55:30]Read from MH i2c: 01 [10:55:30]MH_I2C_Read... [10:55:30]*** Stop cut motor [10:55:30]*** Cut end [10:55:30]Read from MH i2c: 01 07 00 [10:55:30]MH_I2C_Read... [10:55:30]Read from MH i2c: 01 07 00 24 1D 00 00 00 00 00 FF 0F 56 [10:55:30]process_action close_receipt done [10:55:30]requested_data is exist [10:55:30]produce_requested_data [10:55:30]requested_item fm.sn is exist - process it [10:55:30]wFMCommunicate request_size=4 [10:55:30]MH_SAM_APDU [10:55:30]CAPDU: 80 11 00 00 [10:55:30]Write to MH i2c: E2 08 00 25 1D 80 11 00 00 00 00 00 00 BC [10:55:30]Write i2c OK [10:55:30]MH_I2C_Read... [10:55:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:31]Read from MH i2c: E2 [10:55:31]MH_I2C_Read... [10:55:31]Read from MH i2c: E2 17 00 [10:55:31]MH_I2C_Read... [10:55:31]Read from MH i2c: E2 17 00 25 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 1A [10:55:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [10:55:31]wFMCommunicate OK [10:55:31]requested_item fd.num is exist - process it [10:55:31]SAM_PROTO_GetFieldsCounters [10:55:31]wFMCommunicate request_size=4 [10:55:31]MH_SAM_APDU [10:55:31]CAPDU: 80 13 00 00 [10:55:31]Write to MH i2c: E2 08 00 26 1D 80 13 00 00 00 00 00 00 BF [10:55:31]Write i2c OK [10:55:31]MH_I2C_Read... [10:55:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:55:31]Read from MH i2c: E2 [10:55:31]MH_I2C_Read... [10:55:31]Read from MH i2c: E2 62 00 [10:55:31]MH_I2C_Read... [10:55:31]Read from MH i2c: E2 62 00 26 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 4C E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 2B [10:55: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 4C E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:55:31]wFMCommunicate OK [10:55:31]SAM_PROTO_GetFieldsCounters done [10:55:31]requested_item shift.num is exist - process it [10:55:31]requested_item shift.opened is exist - process it [10:55:31]req_shift_opened [10:55:31]FM_GetShiftState [10:55:31]SAM_PROTO_GetShiftState [10:55:31]wFMCommunicate request_size=4 [10:55:31]MH_SAM_APDU [10:55:31]CAPDU: 80 13 01 00 [10:55:31]Write to MH i2c: E2 08 00 27 1D 80 13 01 00 00 00 00 00 C1 [10:55:31]Write i2c OK [10:55:31]MH_I2C_Read... [10:55:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:31]Read from MH i2c: E2 [10:55:31]MH_I2C_Read... [10:55:31]Read from MH i2c: E2 0E 00 [10:55:31]MH_I2C_Read... [10:55:31]Read from MH i2c: E2 0E 00 27 1D 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 83 [10:55:31]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [10:55:31]wFMCommunicate OK [10:55:31]SAM_PROTO_GetShiftState done [10:55:31]FM_GetShiftState done [10:55:31]req_shift_opened done [10:55:31]requested_item shift.open_date is exist - process it [10:55:31]req_shift_open_date [10:55:31]req_shift_open_date done [10:55:31]produce_requested_data done [10:55:31]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123212,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [10:55:31]process_action_free close_receipt [10:55:31]json_value_free [10:55:31]json_value_free done [10:55:31]process_json_proto returns [10:55:31]Send response to host [10:55:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123212,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [10:55:31]free response buf [10:55:31]execute_script done [10:55:31]execute_script returns [10:55:31]free content buf [10:55:31]Sock 7.Close socket [10:55:31]Sock 7.Thread stoped [10:55:33]OFD Sender: No OFD packet to send [10:55:38]OFD Sender: No OFD packet to send [10:55:43]OFD Sender: No OFD packet to send [10:55:48]OFD Sender: No OFD packet to send [10:55:53]OFD Sender: No OFD packet to send [10:55:58]OFD Sender: No OFD packet to send [10:56:03]OFD Sender: No OFD packet to send [10:56:08]OFD Sender: No OFD packet to send [10:56:13]OFD Sender: No OFD packet to send [10:56:18]OFD Sender: No OFD packet to send [10:56:23]OFD Sender: No OFD packet to send [10:56:28]OFD Sender: No OFD packet to send [10:56:33]OFD Sender: No OFD packet to send [10:56:38]OFD Sender: No OFD packet to send [10:56:43]OFD Sender: No OFD packet to send [10:56:48]OFD Sender: No OFD packet to send [10:56:53]OFD Sender: No OFD packet to send [10:56:58]OFD Sender: No OFD packet to send [10:57:03]OFD Sender: No OFD packet to send [10:57:08]OFD Sender: No OFD packet to send [10:57:13]OFD Sender: No OFD packet to send [10:57:18]OFD Sender: No OFD packet to send [10:57:23]OFD Sender: No OFD packet to send [10:57:28]OFD Sender: No OFD packet to send [10:57:33]OFD Sender: No OFD packet to send [10:57:38]OFD Sender: No OFD packet to send [10:57:43]OFD Sender: No OFD packet to send [10:57:48]OFD Sender: No OFD packet to send [10:57:53]OFD Sender: No OFD packet to send [10:57:58]OFD Sender: No OFD packet to send [10:58:03]OFD Sender: No OFD packet to send [10:58:04]accept exits with 9 [10:58:04]New connection [10:58:04]New thread 3067252068 created [10:58:04]Thread 3067395428 joined [10:58:04]Waiting for new connection... [10:58:04] Sock 9.Parse request [10:58:04]Sock 9.Check first char [10:58:04]Sock 9.First char is OK [10:58:04]request: POST /json_proto HTTP/1.0 [10:58:04]Method: POST [10:58:04]URL: /json_proto [10:58:04]Method is POST - this is cgi request [10:58:04]url: /json_proto [10:58:04]query_string will be loaded in cgi processing [10:58:04]execute_cgi json_proto POST (null) [10:58:04]execute_cgi path=json_proto method=POST [10:58:04]POST find Content-Length [10:58:04]Host: 172.17.48.197:8080 [10:58:04]Content-Length: 1251 [10:58:04]Content-Type: application/json [10:58:04] [10:58:04]POST finish read [10:58:04]Found Content-Length = 1251 [10:58:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106134\u000A03.03.2024 10:54\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 13\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 50.000 x 69.50\u000A\u0418\u0422\u041E\u0413: 3475.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A2070806/20700805/2071273/2070804/2070803\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:58:04]execute_script... [10:58:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106134\u000A03.03.2024 10:54\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 13\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 50.000 x 69.50\u000A\u0418\u0422\u041E\u0413: 3475.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A2070806/20700805/2071273/2070804/2070803\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:58:04]POST & json_proto [10:58:04]process_json_proto [10:58:04]json parsed OK: [10:58:04]protocol is kg_v1.0 [10:58:04]action value=print_text [10:58:04]process_action print_text [10:58:04]cmd_print_text [10:58:04]ExternCall_PrintAddStr [10:58:04]wPrintStart [10:58:04]Write to MH i2c: 01 00 00 28 1D 45 [10:58:04]Write i2c OK [10:58:04]MH_I2C_Read... [10:58:04]Read from MH i2c: 01 [10:58:04]MH_I2C_Read... [10:58:04]Read from MH i2c: 01 07 00 [10:58:04]MH_I2C_Read... [10:58:04]Read from MH i2c: 01 07 00 28 1D 00 00 00 00 00 FF 0F 5A [10:58:04]RasterBufferAndPrint [10:58:04]line *****ТОВАРНЫЙ ЧЕК***** [10:58:04]line АЗС 25 [10:58:04]line Партнер нефть [10:58:04]line 02508201610067 [10:58:04]line Кассир : Турдумбек у. К. [10:58:04]line Счет N : (1)1106134 [10:58:04]line 03.03.2024 10:54 [10:58:04]line ПРОДАЖА [10:58:04]line ТРК (МРК, ГНК): 13 [10:58:04]line Вид ГСМ : 2710124500 [10:58:04]line Аи-95-К-5 [10:58:04]line 50.000 x 69.50 [10:58:04]line ИТОГ: 3475.00 [10:58:04]line Тип оплаты: Талоны: Топливные Талоны [10:58:04]line 2070806/20700805/2071273/2070804/2070803 [10:58:04]line ______________________ [10:58:04]line (подпись) [10:58:04]written 0, free lines is 4095 [10:58:04]Write to MH i2c: 01 00 00 3E 1D 5B [10:58:04]Write i2c OK [10:58:04]MH_I2C_Read... [10:58:04]Read from MH i2c: 01 [10:58:04]MH_I2C_Read... [10:58:04]Read from MH i2c: 01 07 00 [10:58:04]MH_I2C_Read... [10:58:04]Read from MH i2c: 01 07 00 3E 1D 00 00 00 00 00 F1 0D 60 [10:58:04]RasterBufferAndPrint [10:58:04]line [10:58:04]line [10:58:04]line [10:58:04]line [10:58:04]line [10:58:04]written 0, free lines is 3573 [10:58:04]MH_Cut [10:58:04]Write to MH i2c: D1 01 00 45 1D 01 34 [10:58:04]Write i2c OK [10:58:04]MH_I2C_Read... [10:58:04]Read from MH i2c: D1 [10:58:04]MH_I2C_Read... [10:58:04]Read from MH i2c: D1 01 00 [10:58:04]MH_I2C_Read... [10:58:04]Read from MH i2c: D1 01 00 45 1D 00 33 [10:58:04]Write to MH i2c: 01 00 00 46 1D 63 [10:58:04]Write i2c OK [10:58:04]MH_I2C_Read... [10:58:05]*** Cut start [10:58:05]*** Purtial cut [10:58:05]*** Stage 1: CUTSNS_PIN = 1 [10:58:07]Read from MH i2c: 01 [10:58:07]MH_I2C_Read... [10:58:07]*** Stop cut motor [10:58:07]*** Cut end [10:58:07]Read from MH i2c: 01 07 00 [10:58:07]MH_I2C_Read... [10:58:07]Read from MH i2c: 01 07 00 46 1D 00 00 00 00 00 FF 0F 78 [10:58:07]process_action print_text done [10:58:07]requested_data is exist [10:58:07]produce_requested_data [10:58:07]requested_item fm.sn is exist - process it [10:58:07]wFMCommunicate request_size=4 [10:58:07]MH_SAM_APDU [10:58:07]CAPDU: 80 11 00 00 [10:58:07]Write to MH i2c: E2 08 00 47 1D 80 11 00 00 00 00 00 00 DE [10:58:07]Write i2c OK [10:58:07]MH_I2C_Read... [10:58:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:58:07]Read from MH i2c: E2 [10:58:07]MH_I2C_Read... [10:58:07]Read from MH i2c: E2 17 00 [10:58:07]MH_I2C_Read... [10:58:07]Read from MH i2c: E2 17 00 47 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 3C [10:58:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [10:58:07]wFMCommunicate OK [10:58:07]requested_item fd.num is exist - process it [10:58:07]SAM_PROTO_GetFieldsCounters [10:58:07]wFMCommunicate request_size=4 [10:58:07]MH_SAM_APDU [10:58:07]CAPDU: 80 13 00 00 [10:58:07]Write to MH i2c: E2 08 00 48 1D 80 13 00 00 00 00 00 00 E1 [10:58:07]Write i2c OK [10:58:07]MH_I2C_Read... [10:58:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:58:07]Read from MH i2c: E2 [10:58:07]MH_I2C_Read... [10:58:07]Read from MH i2c: E2 62 00 [10:58:07]MH_I2C_Read... [10:58:07]Read from MH i2c: E2 62 00 48 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 4C E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 4D [10:58: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 4C E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:58:07]wFMCommunicate OK [10:58:07]SAM_PROTO_GetFieldsCounters done [10:58:07]requested_item shift.num is exist - process it [10:58:07]requested_item shift.opened is exist - process it [10:58:07]req_shift_opened [10:58:07]FM_GetShiftState [10:58:07]SAM_PROTO_GetShiftState [10:58:07]wFMCommunicate request_size=4 [10:58:07]MH_SAM_APDU [10:58:07]CAPDU: 80 13 01 00 [10:58:07]Write to MH i2c: E2 08 00 49 1D 80 13 01 00 00 00 00 00 E3 [10:58:07]Write i2c OK [10:58:07]MH_I2C_Read... [10:58:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:58:07]Read from MH i2c: E2 [10:58:07]MH_I2C_Read... [10:58:07]Read from MH i2c: E2 0E 00 [10:58:07]MH_I2C_Read... [10:58:07]Read from MH i2c: E2 0E 00 49 1D 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 A5 [10:58:07]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [10:58:07]wFMCommunicate OK [10:58:07]SAM_PROTO_GetShiftState done [10:58:07]FM_GetShiftState done [10:58:07]req_shift_opened done [10:58:07]requested_item shift.open_date is exist - process it [10:58:07]req_shift_open_date [10:58:07]req_shift_open_date done [10:58:07]produce_requested_data done [10:58:07]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123212,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [10:58:07]process_action_free print_text [10:58:07]json_value_free [10:58:07]json_value_free done [10:58:07]process_json_proto returns [10:58:07]Send response to host [10:58:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123212,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [10:58:07]free response buf [10:58:07]execute_script done [10:58:07]execute_script returns [10:58:07]free content buf [10:58:07]Sock 9.Close socket [10:58:07]Sock 9.Thread stoped [10:58:08]OFD Sender: No OFD packet to send [10:58:13]OFD Sender: No OFD packet to send [10:58:18]OFD Sender: No OFD packet to send [10:58:23]OFD Sender: No OFD packet to send [10:58:28]OFD Sender: No OFD packet to send [10:58:33]OFD Sender: No OFD packet to send [10:58:38]OFD Sender: No OFD packet to send [10:58:43]OFD Sender: No OFD packet to send [10:58:48]OFD Sender: No OFD packet to send [10:58:53]OFD Sender: No OFD packet to send [10:58:58]OFD Sender: No OFD packet to send [10:59:03]OFD Sender: No OFD packet to send [10:59:08]OFD Sender: No OFD packet to send [10:59:13]OFD Sender: No OFD packet to send [10:59:18]OFD Sender: No OFD packet to send [10:59:23]OFD Sender: No OFD packet to send [10:59:25]accept exits with 7 [10:59:25]New connection [10:59:25]New thread 3067395428 created [10:59:25]Thread 3067252068 joined [10:59:25]Waiting for new connection... [10:59:25] Sock 7.Parse request [10:59:25]Sock 7.Check first char [10:59:25]Sock 7.First char is OK [10:59:25]request: POST /json_proto HTTP/1.0 [10:59:25]Method: POST [10:59:25]URL: /json_proto [10:59:25]Method is POST - this is cgi request [10:59:25]url: /json_proto [10:59:25]query_string will be loaded in cgi processing [10:59:25]execute_cgi json_proto POST (null) [10:59:25]execute_cgi path=json_proto method=POST [10:59:25]POST find Content-Length [10:59:25]Host: 172.17.48.197:8080 [10:59:25]Content-Length: 806 [10:59:25]Content-Type: application/json [10:59:25] [10:59:25]POST finish read [10:59:25]Found Content-Length = 806 [10:59:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106135", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:59:25]execute_script... [10:59:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106135", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:59:25]POST & json_proto [10:59:25]process_json_proto [10:59:25]json parsed OK: [10:59:25]protocol is kg_v1.0 [10:59:25]action value=close_receipt [10:59:25]process_action close_receipt [10:59:25]cmd_close_receipt [10:59:25]MH_GetDate [10:59:25]Write to MH i2c: F0 00 00 4A 1D 56 [10:59:25]Write i2c OK [10:59:25]MH_I2C_Read... [10:59:25]Read from MH i2c: F0 [10:59:25]MH_I2C_Read... [10:59:25]Read from MH i2c: F0 09 00 [10:59:25]MH_I2C_Read... [10:59:25]Read from MH i2c: F0 09 00 4A 1D 00 0F 58 E4 65 6C AF E3 65 72 [10:59:25]GetLastDocTimeStamp 1709463328 [10:59:25]current date 1709463567 [10:59:25]FM_GetShiftState [10:59:25]SAM_PROTO_GetShiftState [10:59:25]wFMCommunicate request_size=4 [10:59:25]MH_SAM_APDU [10:59:25]CAPDU: 80 13 01 00 [10:59:25]Write to MH i2c: E2 08 00 4B 1D 80 13 01 00 00 00 00 00 E5 [10:59:25]Write i2c OK [10:59:25]MH_I2C_Read... [10:59:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:25]Read from MH i2c: E2 [10:59:25]MH_I2C_Read... [10:59:25]Read from MH i2c: E2 0E 00 [10:59:25]MH_I2C_Read... [10:59:25]Read from MH i2c: E2 0E 00 4B 1D 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 A7 [10:59:25]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [10:59:25]wFMCommunicate OK [10:59:25]SAM_PROTO_GetShiftState done [10:59:25]FM_GetShiftState done [10:59:25]opened in 1709425579 [10:59:25]opened+sec_in_day 1709511979 [10:59:25]quantity*price = 50015 [10:59:25]sum+1 = 50016 [10:59:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.15 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.15 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 70 03.03.2024 10:59 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874798 ФД: 123213 ФПД: 193081000305465 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T105927&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123213&fm=193081000305465&tin=02508201610067®Number=0000000000090573&sum=50015 [10:59:26]StoreToDocumentArchive [10:59:26]shift 323 fd 123213 [10:59:26]save to /storage/0323/doc_00123213 [10:59:26]save last doc name /storage/0323/doc_00123213 to /storage/kkm_last_doc_name [10:59:26]save OK [10:59:26]Clear old archive folders... [10:59:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:59:26]tlvbuf is 00D9EAA0 [10:59:26]SAM_PROTO_ClearQueue [10:59:26]wFMCommunicate request_size=4 [10:59:26]MH_SAM_APDU [10:59:26]CAPDU: 80 09 00 00 [10:59:26]Write to MH i2c: E2 08 00 58 1D 80 09 00 00 00 00 00 00 E7 [10:59:26]Write i2c OK [10:59:26]MH_I2C_Read... [10:59:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:59:26]Read from MH i2c: E2 [10:59:26]MH_I2C_Read... [10:59:26]Read from MH i2c: E2 03 00 [10:59:26]MH_I2C_Read... [10:59:26]Read from MH i2c: E2 03 00 58 1D 00 90 00 E9 [10:59:26]RAPDU: 90 00 [10:59:26]wFMCommunicate OK [10:59:26]SAM_PROTO_ClearQueue done [10:59:26]KKMCreateOFDPacket [10:59:26]OFDProtocolAddRootSTLVToBuf [10:59:26]FM_MakeSignedData [10:59:26]FM_MakeSignedData [10:59:26]SAM_PROTO_SignData [10:59:26]wFMCommunicate request_size=4 [10:59:26]MH_SAM_APDU [10:59:26]CAPDU: 80 0D 01 02 [10:59:26]Write to MH i2c: E2 08 00 59 1D 80 0D 01 02 00 00 00 00 EF [10:59:26]Write i2c OK [10:59:26]MH_I2C_Read... [10:59:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:59:26]Read from MH i2c: E2 [10:59:26]MH_I2C_Read... [10:59:26]Read from MH i2c: E2 03 00 [10:59:26]MH_I2C_Read... [10:59:26]Read from MH i2c: E2 03 00 59 1D 00 90 00 EA [10:59:26]RAPDU: 90 00 [10:59:26]wFMCommunicate OK [10:59:26]wFMCommunicate request_size=255 [10:59:26]MH_SAM_APDU [10:59:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 0F 58 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 4D E1 01 00 35 04 06 00 AF [10:59:26]Write to MH i2c: E2 02 01 5A 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 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 0F 58 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 4D E1 01 00 35 04 06 00 AF 00 00 05 [10:59:26]Write i2c OK [10:59:26]MH_I2C_Read... [10:59:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:26]Read from MH i2c: E2 [10:59:26]MH_I2C_Read... [10:59:26]Read from MH i2c: E2 03 00 [10:59:26]MH_I2C_Read... [10:59:26]Read from MH i2c: E2 03 00 5A 1D 00 90 00 EB [10:59:26]RAPDU: 90 00 [10:59:26]wFMCommunicate OK [10:59:26]wFMCommunicate request_size=10 [10:59:26]MH_SAM_APDU [10:59:26]CAPDU: 80 0D 02 02 05 9B 2C 6F A3 39 [10:59:26]Write to MH i2c: E2 0D 00 5B 1D 80 0D 02 02 05 00 9B 2C 6F A3 39 00 00 0E [10:59:26]Write i2c OK [10:59:26]MH_I2C_Read... [10:59:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:26]Read from MH i2c: E2 [10:59:26]MH_I2C_Read... [10:59:26]Read from MH i2c: E2 03 00 [10:59:26]MH_I2C_Read... [10:59:26]Read from MH i2c: E2 03 00 5B 1D 00 90 00 EC [10:59:26]RAPDU: 90 00 [10:59:26]wFMCommunicate OK [10:59:26]wFMCommunicate request_size=4 [10:59:26]MH_SAM_APDU [10:59:26]CAPDU: 80 0D 03 02 [10:59:26]Write to MH i2c: E2 08 00 5C 1D 80 0D 03 02 00 00 00 00 F4 [10:59:26]Write i2c OK [10:59:26]MH_I2C_Read... [10:59:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:59:26]Read from MH i2c: E2 [10:59:26]MH_I2C_Read... [10:59:26]Read from MH i2c: E2 0B 00 [10:59:26]MH_I2C_Read... [10:59:26]Read from MH i2c: E2 0B 00 5C 1D 00 10 08 16 AB 62 60 78 93 90 00 9B [10:59:26]RAPDU: 10 08 16 AB 62 60 78 93 90 00 [10:59:26]wFMCommunicate OK [10:59:26]SAM_PROTO_SignData done [10:59:26]FM_MakeSignedData done [10:59:26]CreateOFDProtocolMessage [10:59:26]wFMCommunicate request_size=4 [10:59:26]MH_SAM_APDU [10:59:26]CAPDU: 80 11 00 00 [10:59:26]Write to MH i2c: E2 08 00 5D 1D 80 11 00 00 00 00 00 00 F4 [10:59:26]Write i2c OK [10:59:26]MH_I2C_Read... [10:59:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:26]Read from MH i2c: E2 [10:59:26]MH_I2C_Read... [10:59:26]Read from MH i2c: E2 17 00 [10:59:26]MH_I2C_Read... [10:59:26]Read from MH i2c: E2 17 00 5D 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 52 [10:59:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [10:59:26]wFMCommunicate OK [10:59:26]CreateOFDProtocolMessage done [10:59:26]OFDSenderStorePacket 123213 [10:59:26]StoreOFDPacket docnum=123213 [10:59:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 FF 19 07 01 99 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 0F 58 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 4D E1 01 00 35 04 06 00 AF 9B 2C 6F A3 39 10 08 16 AB 62 60 78 93 [10:59:26]CheckFolder [10:59:26]dirname=/storage/ofd_packets [10:59:26]CheckFolder done [10:59:26]ProducePacketName [10:59:26]name=ofd_packets/00123213 [10:59:26]NVStorageSaveData ofd_packets/00123213 [10:59:26]File name is /storage/ofd_packets/00123213 [10:59:26]Write 301 bytes [10:59:26]NVStorageSaveData done [10:59:26]OFDSenderStorePacket done [10:59:26]KKMCreateOFDPacket done [10:59:26]NVStorageSaveData kkm_last_timestamp [10:59:26]File name is /storage/kkm_last_timestamp [10:59:26]Write 4 bytes [10:59:26]NVStorageSaveData done [10:59:26]ExternCall_PrintAddStr [10:59:26]wPrintStart [10:59:26]Write to MH i2c: 01 00 00 5E 1D 7B [10:59:26]Write i2c OK [10:59:26]MH_I2C_Read... [10:59:26]Read from MH i2c: 01 [10:59:26]MH_I2C_Read... [10:59:26]Read from MH i2c: 01 07 00 [10:59:26]MH_I2C_Read... [10:59:26]Read from MH i2c: 01 07 00 5E 1D 00 00 00 00 00 FF 0F 90 [10:59:26]RasterBufferAndPrint [10:59:26]line Счет N : (1)1106135 [10:59:26]line ИНН: 02508201610067 [10:59:26]line Контрольно-Кассовый Чек [10:59:26]line ПРОДАЖА [10:59:26]line ТРК (МРК, ГНК) : 52 [10:59:26]line Товар: 2710124130 [10:59:26]line Аи-92-К-5 [10:59:26]line 8.080 * 61.90 [10:59:26]line = 500.15 [10:59:26]line НДС 12% НСП 1% [10:59:26]line > о реализуемом товаре [10:59:26]line ИТОГО: 500.15 [10:59:26]line НСП 1% : 4.43 [10:59:26]line НДС 12% : 53.11 [10:59:26]line Наличными: 0.00 [10:59:26]line Безнал.: 500.15 [10:59:26]line Место: АЗС № 25 "Партнер Нефть" [10:59:26]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [10:59:26]line СНО: Общий режим [10:59:26]line Чек 70 03.03.2024 10:59 [10:59:26]line Смена: 323 ФФД: 1.0 [10:59:26]line ЗНМ: 0300000019 [10:59:26]line РНМ: 0000000000090573 [10:59:26]line Версия ККМ: 001 [10:59:26]line Платежная система: О! деньги [10:59:26]line ФМ: 0000000000874798 [10:59:26]line ФД: 123213 [10:59:26]line ФПД: 193081000305465 [10:59:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T105927&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123213&fm=193081000305465&tin=02508201610067®Number=0000000000090573&sum=50015 [10:59:27]OFD Sender: Processing packet 123213 [packets to send 112, broken 111] [10:59:27]ProducePacketName [10:59:27]name=ofd_packets/00123213 [10:59:27]OFD Sender: To server: pG, [10:59:27]CommunicateWithHost lk.salyk.kg:30040 [10:59:27]ConnectInit lk.salyk.kg [10:59:27]written 0, free lines is 4095 [10:59:27]Connected sock=9 [10:59: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 37 39 38 0F 01 00 00 FF 19 07 01 99 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 0F 58 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 4D E1 01 00 35 04 06 00 AF 9B 2C 6F A3 39 10 08 16 AB 62 60 78 93 [10:59:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 CA 6E 47 00 5E 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 37 39 38 10 04 04 00 4D E1 01 00 F4 03 04 00 3C 04 E4 65 B6 04 01 00 00 A5 3D 0E 59 F5 2D 2B FC [10:59:27]CommunicateWithHost err = 0 [10:59:27]CheckOFDResponse [10:59:27]1017 (14) - 77093643461234 [10:59:27]1041 (16) - 0000000000874798 [10:59:27]1040 (4) - 123213 [10:59:27]1012 (4) - 03.03.2024 05:01 [10:59:27]1206 (1) - 0 [10:59:27]OFD Sender: Remove packet 123213 [10:59:27]ProducePacketName [10:59:27]name=ofd_packets/00123213 [10:59:27]NVStorageDeleteData [10:59:27]Write to MH i2c: 01 00 00 88 1D A5 [10:59:27]Write i2c OK [10:59:27]MH_I2C_Read... [10:59:27]Read from MH i2c: 01 [10:59:27]MH_I2C_Read... [10:59:27]Read from MH i2c: 01 07 00 [10:59:27]MH_I2C_Read... [10:59:27]Read from MH i2c: 01 07 00 88 1D 00 00 00 00 00 08 0D C1 [10:59:27]RasterBufferAndPrint [10:59:27]line [10:59:27]line [10:59:27]line [10:59:27]line [10:59:27]line [10:59:27]written 0, free lines is 3342 [10:59:27]MH_Cut [10:59:27]Write to MH i2c: D1 01 00 8F 1D 01 7E [10:59:27]Write i2c OK [10:59:27]MH_I2C_Read... [10:59:27]Read from MH i2c: D1 [10:59:27]MH_I2C_Read... [10:59:27]Read from MH i2c: D1 01 00 [10:59:27]MH_I2C_Read... [10:59:27]Read from MH i2c: D1 01 00 8F 1D 00 7D [10:59:27]Write to MH i2c: 01 00 00 90 1D AD [10:59:27]Write i2c OK [10:59:27]MH_I2C_Read... [10:59:27]OFD Sender: No OFD packet to send [10:59:28]*** Cut start [10:59:28]*** Purtial cut [10:59:28]*** Stage 1: CUTSNS_PIN = 1 [10:59:30]Read from MH i2c: 01 [10:59:30]MH_I2C_Read... [10:59:30]Read from MH i2c: 01 07 00 [10:59:30]MH_I2C_Read... [10:59:30]*** Stop cut motor [10:59:30]*** Cut end [10:59:30]Read from MH i2c: 01 07 00 90 1D 00 00 00 00 00 FF 0F C2 [10:59:30]process_action close_receipt done [10:59:30]requested_data is exist [10:59:30]produce_requested_data [10:59:30]requested_item fm.sn is exist - process it [10:59:30]wFMCommunicate request_size=4 [10:59:30]MH_SAM_APDU [10:59:30]CAPDU: 80 11 00 00 [10:59:30]Write to MH i2c: E2 08 00 91 1D 80 11 00 00 00 00 00 00 28 [10:59:30]Write i2c OK [10:59:30]MH_I2C_Read... [10:59:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:30]Read from MH i2c: E2 [10:59:30]MH_I2C_Read... [10:59:30]Read from MH i2c: E2 17 00 [10:59:30]MH_I2C_Read... [10:59:30]Read from MH i2c: E2 17 00 91 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 86 [10:59:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [10:59:30]wFMCommunicate OK [10:59:30]requested_item fd.num is exist - process it [10:59:30]SAM_PROTO_GetFieldsCounters [10:59:30]wFMCommunicate request_size=4 [10:59:30]MH_SAM_APDU [10:59:30]CAPDU: 80 13 00 00 [10:59:30]Write to MH i2c: E2 08 00 92 1D 80 13 00 00 00 00 00 00 2B [10:59:30]Write i2c OK [10:59:30]MH_I2C_Read... [10:59:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:59:30]Read from MH i2c: E2 [10:59:30]MH_I2C_Read... [10:59:30]Read from MH i2c: E2 62 00 [10:59:30]MH_I2C_Read... [10:59:30]Read from MH i2c: E2 62 00 92 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 4D E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 9B [10:59: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 4D E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:59:30]wFMCommunicate OK [10:59:30]SAM_PROTO_GetFieldsCounters done [10:59:30]requested_item shift.num is exist - process it [10:59:30]requested_item shift.opened is exist - process it [10:59:30]req_shift_opened [10:59:30]FM_GetShiftState [10:59:30]SAM_PROTO_GetShiftState [10:59:30]wFMCommunicate request_size=4 [10:59:30]MH_SAM_APDU [10:59:30]CAPDU: 80 13 01 00 [10:59:30]Write to MH i2c: E2 08 00 93 1D 80 13 01 00 00 00 00 00 2D [10:59:30]Write i2c OK [10:59:30]MH_I2C_Read... [10:59:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:30]Read from MH i2c: E2 [10:59:30]MH_I2C_Read... [10:59:30]Read from MH i2c: E2 0E 00 [10:59:30]MH_I2C_Read... [10:59:30]Read from MH i2c: E2 0E 00 93 1D 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 EF [10:59:30]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [10:59:30]wFMCommunicate OK [10:59:30]SAM_PROTO_GetShiftState done [10:59:30]FM_GetShiftState done [10:59:30]req_shift_opened done [10:59:30]requested_item shift.open_date is exist - process it [10:59:30]req_shift_open_date [10:59:30]req_shift_open_date done [10:59:30]produce_requested_data done [10:59:30]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123213,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [10:59:30]process_action_free close_receipt [10:59:30]json_value_free [10:59:30]json_value_free done [10:59:30]process_json_proto returns [10:59:30]Send response to host [10:59:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123213,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [10:59:30]free response buf [10:59:30]execute_script done [10:59:30]execute_script returns [10:59:30]free content buf [10:59:30]Sock 7.Close socket [10:59:30]Sock 7.Thread stoped [10:59:32]OFD Sender: No OFD packet to send [10:59:37]OFD Sender: No OFD packet to send [10:59:42]OFD Sender: No OFD packet to send [10:59:47]OFD Sender: No OFD packet to send [10:59:53]OFD Sender: No OFD packet to send [10:59:58]OFD Sender: No OFD packet to send [11:00:03]OFD Sender: No OFD packet to send [11:00:08]OFD Sender: No OFD packet to send [11:00:11]accept exits with 10 [11:00:11]New connection [11:00:11]New thread 3067252068 created [11:00:11]Thread 3067395428 joined [11:00:11]Waiting for new connection... [11:00:11] Sock 10.Parse request [11:00:11]Sock 10.Check first char [11:00:11]Sock 10.First char is OK [11:00:11]request: POST /json_proto HTTP/1.0 [11:00:11]Method: POST [11:00:11]URL: /json_proto [11:00:11]Method is POST - this is cgi request [11:00:11]url: /json_proto [11:00:11]query_string will be loaded in cgi processing [11:00:11]execute_cgi json_proto POST (null) [11:00:11]execute_cgi path=json_proto method=POST [11:00:11]POST find Content-Length [11:00:11]Host: 172.17.48.197:8080 [11:00:11]Content-Length: 678 [11:00:11]Content-Type: application/json [11:00:11] [11:00:11]POST finish read [11:00:11]Found Content-Length = 678 [11:00:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106136", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 1.620, "sum" : 100.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:00:11]execute_script... [11:00: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)1106136", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 1.620, "sum" : 100.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:00:11]POST & json_proto [11:00:11]process_json_proto [11:00:11]json parsed OK: [11:00:11]protocol is kg_v1.0 [11:00:11]action value=close_receipt [11:00:11]process_action close_receipt [11:00:11]cmd_close_receipt [11:00:11]MH_GetDate [11:00:11]Write to MH i2c: F0 00 00 94 1D A0 [11:00:11]Write i2c OK [11:00:11]MH_I2C_Read... [11:00:11]Read from MH i2c: F0 [11:00:11]MH_I2C_Read... [11:00:11]Read from MH i2c: F0 09 00 [11:00:11]MH_I2C_Read... [11:00:11]Read from MH i2c: F0 09 00 94 1D 00 3E 58 E4 65 6C AF E3 65 EB [11:00:11]GetLastDocTimeStamp 1709463567 [11:00:11]current date 1709463614 [11:00:11]FM_GetShiftState [11:00:11]SAM_PROTO_GetShiftState [11:00:11]wFMCommunicate request_size=4 [11:00:11]MH_SAM_APDU [11:00:11]CAPDU: 80 13 01 00 [11:00:11]Write to MH i2c: E2 08 00 95 1D 80 13 01 00 00 00 00 00 2F [11:00:11]Write i2c OK [11:00:11]MH_I2C_Read... [11:00:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:11]Read from MH i2c: E2 [11:00:11]MH_I2C_Read... [11:00:11]Read from MH i2c: E2 0E 00 [11:00:11]MH_I2C_Read... [11:00:11]Read from MH i2c: E2 0E 00 95 1D 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 F1 [11:00:11]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [11:00:11]wFMCommunicate OK [11:00:11]SAM_PROTO_GetShiftState done [11:00:11]FM_GetShiftState done [11:00:11]opened in 1709425579 [11:00:11]opened+sec_in_day 1709511979 [11:00:11]quantity*price = 10027 [11:00:11]sum+1 = 10029 [11:00:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.65 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 71 03.03.2024 11:00 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123214 ФПД: 90645979906035 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T110014&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123214&fm=90645979906035&tin=02508201610067®Number=0000000000090573&sum=10000 [11:00:12]StoreToDocumentArchive [11:00:12]shift 323 fd 123214 [11:00:12]save to /storage/0323/doc_00123214 [11:00:12]save last doc name /storage/0323/doc_00123214 to /storage/kkm_last_doc_name [11:00:12]save OK [11:00:12]Clear old archive folders... [11:00:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:00:12]tlvbuf is 00DC4E50 [11:00:12]SAM_PROTO_ClearQueue [11:00:12]wFMCommunicate request_size=4 [11:00:12]MH_SAM_APDU [11:00:12]CAPDU: 80 09 00 00 [11:00:12]Write to MH i2c: E2 08 00 A2 1D 80 09 00 00 00 00 00 00 31 [11:00:12]Write i2c OK [11:00:12]MH_I2C_Read... [11:00:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:00:12]Read from MH i2c: E2 [11:00:12]MH_I2C_Read... [11:00:12]Read from MH i2c: E2 03 00 [11:00:12]MH_I2C_Read... [11:00:12]Read from MH i2c: E2 03 00 A2 1D 00 90 00 33 [11:00:12]RAPDU: 90 00 [11:00:12]wFMCommunicate OK [11:00:12]SAM_PROTO_ClearQueue done [11:00:12]KKMCreateOFDPacket [11:00:12]OFDProtocolAddRootSTLVToBuf [11:00:12]FM_MakeSignedData [11:00:12]FM_MakeSignedData [11:00:12]SAM_PROTO_SignData [11:00:12]wFMCommunicate request_size=4 [11:00:12]MH_SAM_APDU [11:00:12]CAPDU: 80 0D 01 02 [11:00:12]Write to MH i2c: E2 08 00 A3 1D 80 0D 01 02 00 00 00 00 39 [11:00:12]Write i2c OK [11:00:12]MH_I2C_Read... [11:00:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:00:13]Read from MH i2c: E2 [11:00:13]MH_I2C_Read... [11:00:13]Read from MH i2c: E2 03 00 [11:00:13]MH_I2C_Read... [11:00:13]Read from MH i2c: E2 03 00 A3 1D 00 90 00 34 [11:00:13]RAPDU: 90 00 [11:00:13]wFMCommunicate OK [11:00:13]wFMCommunicate request_size=255 [11:00:13]MH_SAM_APDU [11:00:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 54 06 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 2C 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 3E 58 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 4E E1 01 00 35 04 06 00 52 [11:00:13]Write to MH i2c: E2 02 01 A4 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 35 FF 03 08 00 03 54 06 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 2C 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 3E 58 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 4E E1 01 00 35 04 06 00 52 00 00 20 [11:00:13]OFD Sender: No OFD packet to send [11:00:13]Write i2c OK [11:00:13]MH_I2C_Read... [11:00:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:13]Read from MH i2c: E2 [11:00:13]MH_I2C_Read... [11:00:13]Read from MH i2c: E2 03 00 [11:00:13]MH_I2C_Read... [11:00:13]Read from MH i2c: E2 03 00 A4 1D 00 90 00 35 [11:00:13]RAPDU: 90 00 [11:00:13]wFMCommunicate OK [11:00:13]wFMCommunicate request_size=10 [11:00:13]MH_SAM_APDU [11:00:13]CAPDU: 80 0D 02 02 05 71 29 6E BF F3 [11:00:13]Write to MH i2c: E2 0D 00 A5 1D 80 0D 02 02 05 00 71 29 6E BF F3 00 00 00 [11:00:13]Write i2c OK [11:00:13]MH_I2C_Read... [11:00:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:13]Read from MH i2c: E2 [11:00:13]MH_I2C_Read... [11:00:13]Read from MH i2c: E2 03 00 [11:00:13]MH_I2C_Read... [11:00:13]Read from MH i2c: E2 03 00 A5 1D 00 90 00 36 [11:00:13]RAPDU: 90 00 [11:00:13]wFMCommunicate OK [11:00:13]wFMCommunicate request_size=4 [11:00:13]MH_SAM_APDU [11:00:13]CAPDU: 80 0D 03 02 [11:00:13]Write to MH i2c: E2 08 00 A6 1D 80 0D 03 02 00 00 00 00 3E [11:00:13]Write i2c OK [11:00:13]MH_I2C_Read... [11:00:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:00:13]Read from MH i2c: E2 [11:00:13]MH_I2C_Read... [11:00:13]Read from MH i2c: E2 0B 00 [11:00:13]MH_I2C_Read... [11:00:13]Read from MH i2c: E2 0B 00 A6 1D 00 7D 8F E3 FA 42 15 7E EC 90 00 E9 [11:00:13]RAPDU: 7D 8F E3 FA 42 15 7E EC 90 00 [11:00:13]wFMCommunicate OK [11:00:13]SAM_PROTO_SignData done [11:00:13]FM_MakeSignedData done [11:00:13]CreateOFDProtocolMessage [11:00:13]wFMCommunicate request_size=4 [11:00:13]MH_SAM_APDU [11:00:13]CAPDU: 80 11 00 00 [11:00:13]Write to MH i2c: E2 08 00 A7 1D 80 11 00 00 00 00 00 00 3E [11:00:13]Write i2c OK [11:00:13]MH_I2C_Read... [11:00:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:13]Read from MH i2c: E2 [11:00:13]MH_I2C_Read... [11:00:13]Read from MH i2c: E2 17 00 [11:00:13]MH_I2C_Read... [11:00:13]Read from MH i2c: E2 17 00 A7 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 9C [11:00:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [11:00:13]wFMCommunicate OK [11:00:13]CreateOFDProtocolMessage done [11:00:13]OFDSenderStorePacket 123214 [11:00:13]StoreOFDPacket docnum=123214 [11:00:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 05 0D 07 01 70 F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 54 06 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 2C 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 3E 58 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 4E E1 01 00 35 04 06 00 52 71 29 6E BF F3 7D 8F E3 FA 42 15 7E EC [11:00:13]CheckFolder [11:00:13]dirname=/storage/ofd_packets [11:00:13]CheckFolder done [11:00:13]ProducePacketName [11:00:13]name=ofd_packets/00123214 [11:00:13]NVStorageSaveData ofd_packets/00123214 [11:00:13]File name is /storage/ofd_packets/00123214 [11:00:13]Write 301 bytes [11:00:13]NVStorageSaveData done [11:00:13]OFDSenderStorePacket done [11:00:13]KKMCreateOFDPacket done [11:00:13]NVStorageSaveData kkm_last_timestamp [11:00:13]File name is /storage/kkm_last_timestamp [11:00:13]Write 4 bytes [11:00:13]NVStorageSaveData done [11:00:13]ExternCall_PrintAddStr [11:00:13]wPrintStart [11:00:13]Write to MH i2c: 01 00 00 A8 1D C5 [11:00:13]Write i2c OK [11:00:13]MH_I2C_Read... [11:00:13]Read from MH i2c: 01 [11:00:13]MH_I2C_Read... [11:00:13]Read from MH i2c: 01 07 00 [11:00:13]MH_I2C_Read... [11:00:13]Read from MH i2c: 01 07 00 A8 1D 00 00 00 00 00 FF 0F DA [11:00:13]RasterBufferAndPrint [11:00:13]line Счет N : (1)1106136 [11:00:13]line ИНН: 02508201610067 [11:00:13]line Контрольно-Кассовый Чек [11:00:13]line ПРОДАЖА [11:00:13]line ТРК (МРК, ГНК) : 62 [11:00:13]line Товар: 2710124130 [11:00:13]line Аи-92-К-5 [11:00:13]line 1.620 * 61.90 [11:00:13]line = 100.28 [11:00:13]line НДС 12% НСП 1% [11:00:13]line > о реализуемом товаре [11:00:13]line ОКРУГЛЕНИЕ: -0.28 [11:00:13]line ИТОГО: 100.00 [11:00:13]line Внесено: 100.00 [11:00:13]line СДАЧА: 0.00 [11:00:13]line НСП 1% : 0.89 [11:00:13]line НДС 12% : 10.65 [11:00:13]line Наличными: 100.00 [11:00:13]line Безнал.: 0.00 [11:00:13]line Место: АЗС № 25 "Партнер Нефть" [11:00:13]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [11:00:13]line СНО: Общий режим [11:00:13]line Чек 71 03.03.2024 11:00 [11:00:13]line Смена: 323 ФФД: 1.0 [11:00:13]line ЗНМ: 0300000019 [11:00:13]line РНМ: 0000000000090573 [11:00:13]line Версия ККМ: 001 [11:00:13]line ФМ: 0000000000874798 [11:00:13]line ФД: 123214 [11:00:13]line ФПД: 90645979906035 [11:00:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T110014&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123214&fm=90645979906035&tin=02508201610067®Number=0000000000090573&sum=10000 [11:00:13]written 0, free lines is 4095 [11:00:13]OFD Sender: Processing packet 123214 [packets to send 112, broken 111] [11:00:13]ProducePacketName [11:00:13]name=ofd_packets/00123214 [11:00:13]OFD Sender: To server: pG, [11:00:13]CommunicateWithHost lk.salyk.kg:30040 [11:00:13]ConnectInit lk.salyk.kg [11:00:13]Connected sock=9 [11:00: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 37 39 38 0F 01 00 00 05 0D 07 01 70 F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 54 06 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 2C 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 3E 58 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 4E E1 01 00 35 04 06 00 52 71 29 6E BF F3 7D 8F E3 FA 42 15 7E EC [11:00:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 08 5F 47 00 9B 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 37 39 38 10 04 04 00 4E E1 01 00 F4 03 04 00 6A 04 E4 65 B6 04 01 00 00 8A 91 AE 6B EE 99 5C 23 [11:00:13]CommunicateWithHost err = 0 [11:00:13]CheckOFDResponse [11:00:13]1017 (14) - 77093643461234 [11:00:13]1041 (16) - 0000000000874798 [11:00:13]1040 (4) - 123214 [11:00:13]1012 (4) - 03.03.2024 05:02 [11:00:13]1206 (1) - 0 [11:00:13]OFD Sender: Remove packet 123214 [11:00:13]ProducePacketName [11:00:13]name=ofd_packets/00123214 [11:00:13]NVStorageDeleteData [11:00:13]Write to MH i2c: 01 00 00 D3 1D F0 [11:00:13]Write i2c OK [11:00:13]MH_I2C_Read... [11:00:13]Read from MH i2c: 01 [11:00:13]MH_I2C_Read... [11:00:13]Read from MH i2c: 01 07 00 [11:00:13]MH_I2C_Read... [11:00:13]Read from MH i2c: 01 07 00 D3 1D 00 00 00 00 00 E9 0C EC [11:00:13]RasterBufferAndPrint [11:00:13]line [11:00:13]line [11:00:13]line [11:00:13]line [11:00:13]line [11:00:13]written 0, free lines is 3311 [11:00:13]MH_Cut [11:00:13]Write to MH i2c: D1 01 00 DA 1D 01 C9 [11:00:13]Write i2c OK [11:00:13]MH_I2C_Read... [11:00:13]Read from MH i2c: D1 [11:00:13]MH_I2C_Read... [11:00:13]Read from MH i2c: D1 01 00 [11:00:13]MH_I2C_Read... [11:00:13]Read from MH i2c: D1 01 00 DA 1D 00 C8 [11:00:13]Write to MH i2c: 01 00 00 DB 1D F8 [11:00:13]Write i2c OK [11:00:13]MH_I2C_Read... [11:00:14]OFD Sender: No OFD packet to send [11:00:14]*** Cut start [11:00:14]*** Purtial cut [11:00:14]*** Stage 1: CUTSNS_PIN = 1 [11:00:16]Read from MH i2c: 01 [11:00:16]MH_I2C_Read... [11:00:16]*** Stop cut motor [11:00:16]*** Cut end [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 DB 1D 00 00 00 00 00 FF 0F 0D [11:00:16]process_action close_receipt done [11:00:16]requested_data is exist [11:00:16]produce_requested_data [11:00:16]requested_item fm.sn is exist - process it [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 DC 1D 80 11 00 00 00 00 00 00 73 [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 DC 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 D1 [11:00:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [11:00:16]wFMCommunicate OK [11:00:16]requested_item fd.num is exist - process it [11:00:16]SAM_PROTO_GetFieldsCounters [11:00:16]wFMCommunicate request_size=4 [11:00:16]MH_SAM_APDU [11:00:16]CAPDU: 80 13 00 00 [11:00:16]Write to MH i2c: E2 08 00 DD 1D 80 13 00 00 00 00 00 00 76 [11:00:16]Write i2c OK [11:00:16]MH_I2C_Read... [11:00:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:00:16]Read from MH i2c: E2 [11:00:16]MH_I2C_Read... [11:00:16]Read from MH i2c: E2 62 00 [11:00:16]MH_I2C_Read... [11:00:16]Read from MH i2c: E2 62 00 DD 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 4E E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 EA [11:00: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 4E E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:00:16]wFMCommunicate OK [11:00:16]SAM_PROTO_GetFieldsCounters done [11:00:16]requested_item shift.num is exist - process it [11:00:16]requested_item shift.opened is exist - process it [11:00:16]req_shift_opened [11:00:16]FM_GetShiftState [11:00:16]SAM_PROTO_GetShiftState [11:00:16]wFMCommunicate request_size=4 [11:00:16]MH_SAM_APDU [11:00:16]CAPDU: 80 13 01 00 [11:00:16]Write to MH i2c: E2 08 00 DE 1D 80 13 01 00 00 00 00 00 78 [11:00:16]Write i2c OK [11:00:16]MH_I2C_Read... [11:00:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:16]Read from MH i2c: E2 [11:00:16]MH_I2C_Read... [11:00:16]Read from MH i2c: E2 0E 00 [11:00:16]MH_I2C_Read... [11:00:16]Read from MH i2c: E2 0E 00 DE 1D 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 3A [11:00:16]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [11:00:16]wFMCommunicate OK [11:00:16]SAM_PROTO_GetShiftState done [11:00:16]FM_GetShiftState done [11:00:16]req_shift_opened done [11:00:16]requested_item shift.open_date is exist - process it [11:00:16]req_shift_open_date [11:00:16]req_shift_open_date done [11:00:16]produce_requested_data done [11:00:16]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123214,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [11:00:16]process_action_free close_receipt [11:00:16]json_value_free [11:00:16]json_value_free done [11:00:16]process_json_proto returns [11:00:16]Send response to host [11:00:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123214,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [11:00:16]free response buf [11:00:16]execute_script done [11:00:16]execute_script returns [11:00:16]free content buf [11:00:16]Sock 10.Close socket [11:00:16]Sock 10.Thread stoped [11:00:19]OFD Sender: No OFD packet to send [11:00:24]OFD Sender: No OFD packet to send [11:00:29]OFD Sender: No OFD packet to send [11:00:34]OFD Sender: No OFD packet to send [11:00:39]OFD Sender: No OFD packet to send [11:00:44]OFD Sender: No OFD packet to send [11:00:49]OFD Sender: No OFD packet to send [11:00:54]OFD Sender: No OFD packet to send [11:00:59]OFD Sender: No OFD packet to send [11:01:04]OFD Sender: No OFD packet to send [11:01:09]OFD Sender: No OFD packet to send [11:01:14]OFD Sender: No OFD packet to send [11:01:19]OFD Sender: No OFD packet to send [11:01:24]OFD Sender: No OFD packet to send [11:01:29]OFD Sender: No OFD packet to send [11:01:34]OFD Sender: No OFD packet to send [11:01:39]OFD Sender: No OFD packet to send [11:01:44]OFD Sender: No OFD packet to send [11:01:49]OFD Sender: No OFD packet to send [11:01:54]OFD Sender: No OFD packet to send [11:01:59]OFD Sender: No OFD packet to send [11:02:04]OFD Sender: No OFD packet to send [11:02:09]OFD Sender: No OFD packet to send [11:02:14]OFD Sender: No OFD packet to send [11:02:19]OFD Sender: No OFD packet to send [11:02:24]OFD Sender: No OFD packet to send [11:02:29]OFD Sender: No OFD packet to send [11:02:34]OFD Sender: No OFD packet to send [11:02:39]OFD Sender: No OFD packet to send [11:02:44]OFD Sender: No OFD packet to send [11:02:49]OFD Sender: No OFD packet to send [11:02:54]OFD Sender: No OFD packet to send [11:02:59]OFD Sender: No OFD packet to send [11:03:04]OFD Sender: No OFD packet to send [11:03:09]OFD Sender: No OFD packet to send [11:03:13]accept exits with 7 [11:03:13]New connection [11:03:13]New thread 3067395428 created [11:03:13]Thread 3067252068 joined [11:03:13]Waiting for new connection... [11:03:13] Sock 7.Parse request [11:03:13]Sock 7.Check first char [11:03:13]Sock 7.First char is OK [11:03:13]request: POST /json_proto HTTP/1.0 [11:03:13]Method: POST [11:03:13]URL: /json_proto [11:03:13]Method is POST - this is cgi request [11:03:13]url: /json_proto [11:03:13]query_string will be loaded in cgi processing [11:03:13]execute_cgi json_proto POST (null) [11:03:13]execute_cgi path=json_proto method=POST [11:03:13]POST find Content-Length [11:03:13]Host: 172.17.48.197:8080 [11:03:13]Content-Length: 688 [11:03:13]Content-Type: application/json [11:03:13] [11:03:13]POST finish read [11:03:13]Found Content-Length = 688 [11:03:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106137", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 70.90, "quantity" : 28.210, "sum" : 2000.09, "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:03:13]execute_script... [11:03: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)1106137", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 70.90, "quantity" : 28.210, "sum" : 2000.09, "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:03:13]POST & json_proto [11:03:13]process_json_proto [11:03:13]json parsed OK: [11:03:13]protocol is kg_v1.0 [11:03:13]action value=close_receipt [11:03:13]process_action close_receipt [11:03:13]cmd_close_receipt [11:03:13]MH_GetDate [11:03:13]Write to MH i2c: F0 00 00 DF 1D EB [11:03:13]Write i2c OK [11:03:13]MH_I2C_Read... [11:03:13]Read from MH i2c: F0 [11:03:13]MH_I2C_Read... [11:03:13]Read from MH i2c: F0 09 00 [11:03:13]MH_I2C_Read... [11:03:13]Read from MH i2c: F0 09 00 DF 1D 00 F4 58 E4 65 6C AF E3 65 EC [11:03:13]GetLastDocTimeStamp 1709463614 [11:03:13]current date 1709463796 [11:03:13]FM_GetShiftState [11:03:13]SAM_PROTO_GetShiftState [11:03:13]wFMCommunicate request_size=4 [11:03:13]MH_SAM_APDU [11:03:13]CAPDU: 80 13 01 00 [11:03:13]Write to MH i2c: E2 08 00 E0 1D 80 13 01 00 00 00 00 00 7A [11:03:13]Write i2c OK [11:03:13]MH_I2C_Read... [11:03:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:03:13]Read from MH i2c: E2 [11:03:13]MH_I2C_Read... [11:03:13]Read from MH i2c: E2 0E 00 [11:03:13]MH_I2C_Read... [11:03:13]Read from MH i2c: E2 0E 00 E0 1D 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 3C [11:03:13]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [11:03:13]wFMCommunicate OK [11:03:13]SAM_PROTO_GetShiftState done [11:03:13]FM_GetShiftState done [11:03:13]opened in 1709425579 [11:03:13]opened+sec_in_day 1709511979 [11:03:13]quantity*price = 200008 [11:03:13]sum+1 = 200010 [11:03:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 72 03.03.2024 11:03 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123215 ФПД: 270013145634971 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T110316&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123215&fm=270013145634971&tin=02508201610067®Number=0000000000090573&sum=200000 [11:03:14]StoreToDocumentArchive [11:03:14]shift 323 fd 123215 [11:03:14]save to /storage/0323/doc_00123215 [11:03:14]save last doc name /storage/0323/doc_00123215 to /storage/kkm_last_doc_name [11:03:14]save OK [11:03:14]Clear old archive folders... [11:03:14]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:03:14]tlvbuf is 00DA8BE0 [11:03:14]SAM_PROTO_ClearQueue [11:03:14]wFMCommunicate request_size=4 [11:03:14]MH_SAM_APDU [11:03:14]CAPDU: 80 09 00 00 [11:03:14]Write to MH i2c: E2 08 00 ED 1D 80 09 00 00 00 00 00 00 7C [11:03:14]Write i2c OK [11:03:14]MH_I2C_Read... [11:03:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:03:14]Read from MH i2c: E2 [11:03:14]MH_I2C_Read... [11:03:14]Read from MH i2c: E2 03 00 [11:03:14]MH_I2C_Read... [11:03:14]Read from MH i2c: E2 03 00 ED 1D 00 90 00 7E [11:03:14]RAPDU: 90 00 [11:03:14]wFMCommunicate OK [11:03:14]SAM_PROTO_ClearQueue done [11:03:14]KKMCreateOFDPacket [11:03:14]OFDProtocolAddRootSTLVToBuf [11:03:14]FM_MakeSignedData [11:03:14]FM_MakeSignedData [11:03:14]SAM_PROTO_SignData [11:03:14]wFMCommunicate request_size=4 [11:03:14]MH_SAM_APDU [11:03:14]CAPDU: 80 0D 01 02 [11:03:14]Write to MH i2c: E2 08 00 EE 1D 80 0D 01 02 00 00 00 00 84 [11:03:14]Write i2c OK [11:03:14]MH_I2C_Read... [11:03:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:03:14]Read from MH i2c: E2 [11:03:14]MH_I2C_Read... [11:03:14]Read from MH i2c: E2 03 00 [11:03:14]MH_I2C_Read... [11:03:14]Read from MH i2c: E2 03 00 EE 1D 00 90 00 7F [11:03:14]RAPDU: 90 00 [11:03:14]wFMCommunicate OK [11:03:14]wFMCommunicate request_size=255 [11:03:14]MH_SAM_APDU [11:03:14]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 35 FF 03 08 00 03 32 6E 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 49 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 F4 58 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 4F E1 01 00 35 04 06 00 [11:03:14]Write to MH i2c: E2 02 01 EF 1D 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 35 FF 03 08 00 03 32 6E 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 49 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 F4 58 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 4F E1 01 00 35 04 06 00 00 00 C5 [11:03:14]Write i2c OK [11:03:14]MH_I2C_Read... [11:03:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:03:14]Read from MH i2c: E2 [11:03:14]MH_I2C_Read... [11:03:14]Read from MH i2c: E2 03 00 [11:03:14]MH_I2C_Read... [11:03:14]Read from MH i2c: E2 03 00 EF 1D 00 90 00 80 [11:03:14]RAPDU: 90 00 [11:03:14]wFMCommunicate OK [11:03:14]wFMCommunicate request_size=11 [11:03:14]MH_SAM_APDU [11:03:14]CAPDU: 80 0D 02 02 06 F5 93 55 A1 58 9B [11:03:14]Write to MH i2c: E2 0E 00 F0 1D 80 0D 02 02 06 00 F5 93 55 A1 58 9B 00 00 04 [11:03:14]Write i2c OK [11:03:14]MH_I2C_Read... [11:03:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:03:14]Read from MH i2c: E2 [11:03:14]MH_I2C_Read... [11:03:14]Read from MH i2c: E2 03 00 [11:03:14]MH_I2C_Read... [11:03:14]Read from MH i2c: E2 03 00 F0 1D 00 90 00 81 [11:03:14]RAPDU: 90 00 [11:03:14]wFMCommunicate OK [11:03:14]wFMCommunicate request_size=4 [11:03:14]MH_SAM_APDU [11:03:14]CAPDU: 80 0D 03 02 [11:03:14]Write to MH i2c: E2 08 00 F1 1D 80 0D 03 02 00 00 00 00 89 [11:03:14]Write i2c OK [11:03:14]MH_I2C_Read... [11:03:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:03:15]Read from MH i2c: E2 [11:03:15]MH_I2C_Read... [11:03:15]Read from MH i2c: E2 0B 00 [11:03:15]MH_I2C_Read... [11:03:15]Read from MH i2c: E2 0B 00 F1 1D 00 85 03 BE EF E5 F1 93 01 90 00 29 [11:03:15]RAPDU: 85 03 BE EF E5 F1 93 01 90 00 [11:03:15]wFMCommunicate OK [11:03:15]SAM_PROTO_SignData done [11:03:15]FM_MakeSignedData done [11:03:15]CreateOFDProtocolMessage [11:03:15]wFMCommunicate request_size=4 [11:03:15]MH_SAM_APDU [11:03:15]CAPDU: 80 11 00 00 [11:03:15]Write to MH i2c: E2 08 00 F2 1D 80 11 00 00 00 00 00 00 89 [11:03:15]Write i2c OK [11:03:15]MH_I2C_Read... [11:03:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:03:15]Read from MH i2c: E2 [11:03:15]MH_I2C_Read... [11:03:15]Read from MH i2c: E2 17 00 [11:03:15]MH_I2C_Read... [11:03:15]Read from MH i2c: E2 17 00 F2 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 E7 [11:03:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [11:03:15]wFMCommunicate OK [11:03:15]CreateOFDProtocolMessage done [11:03:15]OFDSenderStorePacket 123215 [11:03:15]StoreOFDPacket docnum=123215 [11:03:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 01 00 00 82 9A 08 01 4B 9C 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 35 FF 03 08 00 03 32 6E 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 49 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 F4 58 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 4F E1 01 00 35 04 06 00 F5 93 55 A1 58 9B 85 03 BE EF E5 F1 93 01 [11:03:15]CheckFolder [11:03:15]dirname=/storage/ofd_packets [11:03:15]CheckFolder done [11:03:15]ProducePacketName [11:03:15]name=ofd_packets/00123215 [11:03:15]NVStorageSaveData ofd_packets/00123215 [11:03:15]File name is /storage/ofd_packets/00123215 [11:03:15]Write 302 bytes [11:03:15]NVStorageSaveData done [11:03:15]OFDSenderStorePacket done [11:03:15]KKMCreateOFDPacket done [11:03:15]NVStorageSaveData kkm_last_timestamp [11:03:15]File name is /storage/kkm_last_timestamp [11:03:15]Write 4 bytes [11:03:15]NVStorageSaveData done [11:03:15]ExternCall_PrintAddStr [11:03:15]wPrintStart [11:03:15]Write to MH i2c: 01 00 00 F3 1D 10 [11:03:15]Write i2c OK [11:03:15]MH_I2C_Read... [11:03:15]Read from MH i2c: 01 [11:03:15]MH_I2C_Read... [11:03:15]Read from MH i2c: 01 07 00 [11:03:15]MH_I2C_Read... [11:03:15]Read from MH i2c: 01 07 00 F3 1D 00 00 00 00 00 FF 0F 25 [11:03:15]RasterBufferAndPrint [11:03:15]line Счет N : (1)1106137 [11:03:15]line ИНН: 02508201610067 [11:03:15]line Контрольно-Кассовый Чек [11:03:15]line ПРОДАЖА [11:03:15]line ТРК (МРК, ГНК) : 61 [11:03:15]line Товар: 2710194210 [11:03:15]line ДТ(л)-К-5 [11:03:15]line 28.210 * 70.90 [11:03:15]line = 2000.09 [11:03:15]line НДС 12% НСП 1% [11:03:15]line > о реализуемом товаре [11:03:15]line ОКРУГЛЕНИЕ: -0.09 [11:03:15]line ИТОГО: 2000.00 [11:03:15]line Внесено: 2000.00 [11:03:15]line СДАЧА: 0.00 [11:03:15]line НСП 1% : 17.70 [11:03:15]line НДС 12% : 212.40 [11:03:15]line Наличными: 2000.00 [11:03:15]line Безнал.: 0.00 [11:03:15]line Место: АЗС № 25 "Партнер Нефть" [11:03:15]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [11:03:15]line СНО: Общий режим [11:03:15]line Чек 72 03.03.2024 11:03 [11:03:15]line Смена: 323 ФФД: 1.0 [11:03:15]line ЗНМ: 0300000019 [11:03:15]line РНМ: 0000000000090573 [11:03:15]line Версия ККМ: 001 [11:03:15]line ФМ: 0000000000874798 [11:03:15]line ФД: 123215 [11:03:15]line ФПД: 270013145634971 [11:03:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T110316&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123215&fm=270013145634971&tin=02508201610067®Number=0000000000090573&sum=200000 [11:03:15]OFD Sender: Processing packet 123215 [packets to send 112, broken 111] [11:03:15]ProducePacketName [11:03:15]name=ofd_packets/00123215 [11:03:15]OFD Sender: To server: pG, [11:03:15]CommunicateWithHost lk.salyk.kg:30040 [11:03:15]ConnectInit lk.salyk.kg [11:03:15]written 0, free lines is 4095 [11:03:15]Connected sock=10 [11:03: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 37 39 38 10 01 00 00 82 9A 08 01 4B 9C 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 35 FF 03 08 00 03 32 6E 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 49 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 F4 58 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 4F E1 01 00 35 04 06 00 F5 93 55 A1 58 9B 85 03 BE EF E5 F1 93 01 [11:03:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 06 A1 47 00 AD 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 37 39 38 10 04 04 00 4F E1 01 00 F4 03 04 00 20 05 E4 65 B6 04 01 00 00 B6 09 92 13 A8 26 67 30 [11:03:15]CommunicateWithHost err = 0 [11:03:15]CheckOFDResponse [11:03:15]1017 (14) - 77093643461234 [11:03:15]1041 (16) - 0000000000874798 [11:03:15]1040 (4) - 123215 [11:03:15]1012 (4) - 03.03.2024 05:05 [11:03:15]1206 (1) - 0 [11:03:15]OFD Sender: Remove packet 123215 [11:03:15]ProducePacketName [11:03:15]name=ofd_packets/00123215 [11:03:15]NVStorageDeleteData [11:03:15]Write to MH i2c: 01 00 00 1E 1E 3C [11:03:15]Write i2c OK [11:03:15]MH_I2C_Read... [11:03:15]Read from MH i2c: 01 [11:03:15]MH_I2C_Read... [11:03:15]Read from MH i2c: 01 07 00 [11:03:15]MH_I2C_Read... [11:03:15]Read from MH i2c: 01 07 00 1E 1E 00 00 00 00 00 F0 0C 3F [11:03:15]RasterBufferAndPrint [11:03:15]line [11:03:15]line [11:03:15]line [11:03:15]line [11:03:15]line [11:03:15]written 0, free lines is 3318 [11:03:15]MH_Cut [11:03:15]Write to MH i2c: D1 01 00 25 1E 01 15 [11:03:15]Write i2c OK [11:03:15]MH_I2C_Read... [11:03:15]Read from MH i2c: D1 [11:03:15]MH_I2C_Read... [11:03:15]Read from MH i2c: D1 01 00 [11:03:15]MH_I2C_Read... [11:03:15]Read from MH i2c: D1 01 00 25 1E 00 14 [11:03:15]Write to MH i2c: 01 00 00 26 1E 44 [11:03:15]Write i2c OK [11:03:15]MH_I2C_Read... [11:03:16]OFD Sender: No OFD packet to send [11:03:16]*** Cut start [11:03:16]*** Purtial cut [11:03:16]*** Stage 1: CUTSNS_PIN = 1 [11:03:18]Read from MH i2c: 01 [11:03:18]MH_I2C_Read... [11:03:18]*** Stop cut motor [11:03:18]*** Cut end [11:03:18]Read from MH i2c: 01 07 00 [11:03:18]MH_I2C_Read... [11:03:18]Read from MH i2c: 01 07 00 26 1E 00 00 00 00 00 FF 0F 59 [11:03:18]process_action close_receipt done [11:03:18]requested_data is exist [11:03:18]produce_requested_data [11:03:18]requested_item fm.sn is exist - process it [11:03:18]wFMCommunicate request_size=4 [11:03:18]MH_SAM_APDU [11:03:18]CAPDU: 80 11 00 00 [11:03:18]Write to MH i2c: E2 08 00 27 1E 80 11 00 00 00 00 00 00 BF [11:03:18]Write i2c OK [11:03:18]MH_I2C_Read... [11:03:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:03:18]Read from MH i2c: E2 [11:03:18]MH_I2C_Read... [11:03:18]Read from MH i2c: E2 17 00 [11:03:18]MH_I2C_Read... [11:03:18]Read from MH i2c: E2 17 00 27 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 1D [11:03:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [11:03:18]wFMCommunicate OK [11:03:18]requested_item fd.num is exist - process it [11:03:18]SAM_PROTO_GetFieldsCounters [11:03:18]wFMCommunicate request_size=4 [11:03:18]MH_SAM_APDU [11:03:18]CAPDU: 80 13 00 00 [11:03:18]Write to MH i2c: E2 08 00 28 1E 80 13 00 00 00 00 00 00 C2 [11:03:18]Write i2c OK [11:03:18]MH_I2C_Read... [11:03:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:03:18]Read from MH i2c: E2 [11:03:18]MH_I2C_Read... [11:03:18]Read from MH i2c: E2 62 00 [11:03:18]MH_I2C_Read... [11:03:18]Read from MH i2c: E2 62 00 28 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 4F E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 3A [11:03: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 4F E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:03:18]wFMCommunicate OK [11:03:18]SAM_PROTO_GetFieldsCounters done [11:03:18]requested_item shift.num is exist - process it [11:03:18]requested_item shift.opened is exist - process it [11:03:18]req_shift_opened [11:03:18]FM_GetShiftState [11:03:18]SAM_PROTO_GetShiftState [11:03:18]wFMCommunicate request_size=4 [11:03:18]MH_SAM_APDU [11:03:18]CAPDU: 80 13 01 00 [11:03:18]Write to MH i2c: E2 08 00 29 1E 80 13 01 00 00 00 00 00 C4 [11:03:18]Write i2c OK [11:03:18]MH_I2C_Read... [11:03:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:03:18]Read from MH i2c: E2 [11:03:18]MH_I2C_Read... [11:03:18]Read from MH i2c: E2 0E 00 [11:03:18]MH_I2C_Read... [11:03:18]Read from MH i2c: E2 0E 00 29 1E 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 86 [11:03:18]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [11:03:18]wFMCommunicate OK [11:03:18]SAM_PROTO_GetShiftState done [11:03:18]FM_GetShiftState done [11:03:18]req_shift_opened done [11:03:18]requested_item shift.open_date is exist - process it [11:03:18]req_shift_open_date [11:03:18]req_shift_open_date done [11:03:18]produce_requested_data done [11:03:18]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123215,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [11:03:18]process_action_free close_receipt [11:03:18]json_value_free [11:03:18]json_value_free done [11:03:18]process_json_proto returns [11:03:18]Send response to host [11:03:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123215,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [11:03:18]free response buf [11:03:18]execute_script done [11:03:18]execute_script returns [11:03:18]free content buf [11:03:18]Sock 7.Close socket [11:03:18]Sock 7.Thread stoped [11:03:20]accept exits with 9 [11:03:20]New connection [11:03:20]New thread 3067252068 created [11:03:20]Thread 3067395428 joined [11:03:20]Waiting for new connection... [11:03:20] Sock 9.Parse request [11:03:20]Sock 9.Check first char [11:03:20]Sock 9.First char is OK [11:03:20]request: POST /json_proto HTTP/1.0 [11:03:20]Method: POST [11:03:20]URL: /json_proto [11:03:20]Method is POST - this is cgi request [11:03:20]url: /json_proto [11:03:20]query_string will be loaded in cgi processing [11:03:20]execute_cgi json_proto POST (null) [11:03:20]execute_cgi path=json_proto method=POST [11:03:20]POST find Content-Length [11:03:20]Host: 172.17.48.197:8080 [11:03:20]Content-Length: 745 [11:03:20]Content-Type: application/json [11:03:20] [11:03:20]POST finish read [11:03:20]Found Content-Length = 745 [11:03:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 123215, "base_FM": "0000000000874798", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106137", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 70.90, "quantity" : 28.210, "sum" : 2000.09, "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:03:20]execute_script... [11:03:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 123215, "base_FM": "0000000000874798", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106137", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 70.90, "quantity" : 28.210, "sum" : 2000.09, "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:03:20]POST & json_proto [11:03:20]process_json_proto [11:03:20]json parsed OK: [11:03:20]protocol is kg_v1.0 [11:03:20]action value=close_receipt [11:03:20]process_action close_receipt [11:03:20]cmd_close_receipt [11:03:20]MH_GetDate [11:03:20]Write to MH i2c: F0 00 00 2A 1E 37 [11:03:20]Write i2c OK [11:03:20]MH_I2C_Read... [11:03:20]Read from MH i2c: F0 [11:03:20]MH_I2C_Read... [11:03:20]Read from MH i2c: F0 09 00 [11:03:20]MH_I2C_Read... [11:03:20]Read from MH i2c: F0 09 00 2A 1E 00 FB 58 E4 65 6C AF E3 65 3F [11:03:20]GetLastDocTimeStamp 1709463796 [11:03:20]current date 1709463803 [11:03:20]FM_GetShiftState [11:03:20]SAM_PROTO_GetShiftState [11:03:20]wFMCommunicate request_size=4 [11:03:20]MH_SAM_APDU [11:03:20]CAPDU: 80 13 01 00 [11:03:20]Write to MH i2c: E2 08 00 2B 1E 80 13 01 00 00 00 00 00 C6 [11:03:20]Write i2c OK [11:03:20]MH_I2C_Read... [11:03:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:03:20]Read from MH i2c: E2 [11:03:20]MH_I2C_Read... [11:03:20]Read from MH i2c: E2 0E 00 [11:03:20]MH_I2C_Read... [11:03:20]Read from MH i2c: E2 0E 00 2B 1E 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 88 [11:03:20]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [11:03:20]wFMCommunicate OK [11:03:20]SAM_PROTO_GetShiftState done [11:03:20]FM_GetShiftState done [11:03:20]opened in 1709425579 [11:03:20]opened+sec_in_day 1709511979 [11:03:20]quantity*price = 200008 [11:03:20]sum+1 = 200010 [11:03:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 2000.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 73 03.03.2024 11:03 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФД осн.: 123215 ФМ осн.: 0000000000874798 ФМ: 0000000000874798 ФД: 123216 ФПД: 72517256417467 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T110323&type=2&operation_type=1&fn_number=0000000000874798&fd_number=123216&fm=72517256417467&tin=02508201610067®Number=0000000000090573&sum=200000 [11:03:21]StoreToDocumentArchive [11:03:21]shift 323 fd 123216 [11:03:21]save to /storage/0323/doc_00123216 [11:03:21]save last doc name /storage/0323/doc_00123216 to /storage/kkm_last_doc_name [11:03:21]save OK [11:03:21]Clear old archive folders... [11:03:21]ProcessDocumentItem done err = 0, tmpTLVsize=280 [11:03:21]tlvbuf is 00E36010 [11:03:21]SAM_PROTO_ClearQueue [11:03:21]wFMCommunicate request_size=4 [11:03:21]MH_SAM_APDU [11:03:21]CAPDU: 80 09 00 00 [11:03:21]Write to MH i2c: E2 08 00 3A 1E 80 09 00 00 00 00 00 00 CA [11:03:21]Write i2c OK [11:03:21]MH_I2C_Read... [11:03:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:03:21]Read from MH i2c: E2 [11:03:21]MH_I2C_Read... [11:03:21]Read from MH i2c: E2 03 00 [11:03:21]MH_I2C_Read... [11:03:21]Read from MH i2c: E2 03 00 3A 1E 00 90 00 CC [11:03:21]RAPDU: 90 00 [11:03:21]wFMCommunicate OK [11:03:21]SAM_PROTO_ClearQueue done [11:03:21]KKMCreateOFDPacket [11:03:21]OFDProtocolAddRootSTLVToBuf [11:03:21]FM_MakeSignedData [11:03:21]FM_MakeSignedData [11:03:21]SAM_PROTO_SignData [11:03:21]wFMCommunicate request_size=4 [11:03:21]MH_SAM_APDU [11:03:21]CAPDU: 80 0D 01 02 [11:03:21]Write to MH i2c: E2 08 00 3B 1E 80 0D 01 02 00 00 00 00 D2 [11:03:21]Write i2c OK [11:03:21]MH_I2C_Read... [11:03:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:03:21]Read from MH i2c: E2 [11:03:21]MH_I2C_Read... [11:03:21]Read from MH i2c: E2 03 00 [11:03:21]MH_I2C_Read... [11:03:21]Read from MH i2c: E2 03 00 3B 1E 00 90 00 CD [11:03:21]RAPDU: 90 00 [11:03:21]wFMCommunicate OK [11:03:21]wFMCommunicate request_size=255 [11:03:21]MH_SAM_APDU [11:03:21]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 35 FF 03 08 00 03 32 6E 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 49 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 FB 58 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 27 04 04 00 4F E1 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 11 04 10 00 [11:03:21]Write to MH i2c: E2 02 01 3C 1E 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 35 FF 03 08 00 03 32 6E 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 49 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 FB 58 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 27 04 04 00 4F E1 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 11 04 10 00 00 00 4D [11:03:21]Write i2c OK [11:03:21]MH_I2C_Read... [11:03:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:03:22]Read from MH i2c: E2 [11:03:22]MH_I2C_Read... [11:03:22]Read from MH i2c: E2 03 00 [11:03:22]MH_I2C_Read... [11:03:22]Read from MH i2c: E2 03 00 3C 1E 00 90 00 CE [11:03:22]RAPDU: 90 00 [11:03:22]wFMCommunicate OK [11:03:22]wFMCommunicate request_size=39 [11:03:22]MH_SAM_APDU [11:03:22]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 50 E1 01 00 35 04 06 00 41 F4 3D 4F 10 BB [11:03:22]Write to MH i2c: E2 2A 00 3D 1E 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 50 E1 01 00 35 04 06 00 41 F4 3D 4F 10 BB 00 00 59 [11:03:22]Write i2c OK [11:03:22]MH_I2C_Read... [11:03:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:03:22]Read from MH i2c: E2 [11:03:22]MH_I2C_Read... [11:03:22]Read from MH i2c: E2 03 00 [11:03:22]MH_I2C_Read... [11:03:22]Read from MH i2c: E2 03 00 3D 1E 00 90 00 CF [11:03:22]RAPDU: 90 00 [11:03:22]wFMCommunicate OK [11:03:22]wFMCommunicate request_size=4 [11:03:22]MH_SAM_APDU [11:03:22]CAPDU: 80 0D 03 02 [11:03:22]Write to MH i2c: E2 08 00 3E 1E 80 0D 03 02 00 00 00 00 D7 [11:03:22]Write i2c OK [11:03:22]MH_I2C_Read... [11:03:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:03:22]Read from MH i2c: E2 [11:03:22]MH_I2C_Read... [11:03:22]Read from MH i2c: E2 0B 00 [11:03:22]MH_I2C_Read... [11:03:22]Read from MH i2c: E2 0B 00 3E 1E 00 C2 A5 74 FC F0 28 13 4A 90 00 24 [11:03:22]RAPDU: C2 A5 74 FC F0 28 13 4A 90 00 [11:03:22]wFMCommunicate OK [11:03:22]SAM_PROTO_SignData done [11:03:22]FM_MakeSignedData done [11:03:22]CreateOFDProtocolMessage [11:03:22]wFMCommunicate request_size=4 [11:03:22]MH_SAM_APDU [11:03:22]CAPDU: 80 11 00 00 [11:03:22]Write to MH i2c: E2 08 00 3F 1E 80 11 00 00 00 00 00 00 D7 [11:03:22]Write i2c OK [11:03:22]MH_I2C_Read... [11:03:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:03:22]Read from MH i2c: E2 [11:03:22]MH_I2C_Read... [11:03:22]Read from MH i2c: E2 17 00 [11:03:22]MH_I2C_Read... [11:03:22]Read from MH i2c: E2 17 00 3F 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 35 [11:03:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [11:03:22]wFMCommunicate OK [11:03:22]CreateOFDProtocolMessage done [11:03:22]OFDSenderStorePacket 123216 [11:03:22]StoreOFDPacket docnum=123216 [11:03:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 2C 01 00 00 CD 52 24 01 89 FB 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 35 FF 03 08 00 03 32 6E 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 49 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 FB 58 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 27 04 04 00 4F E1 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 50 E1 01 00 35 04 06 00 41 F4 3D 4F 10 BB C2 A5 74 FC F0 28 13 4A [11:03:22]CheckFolder [11:03:22]dirname=/storage/ofd_packets [11:03:22]CheckFolder done [11:03:22]ProducePacketName [11:03:22]name=ofd_packets/00123216 [11:03:22]NVStorageSaveData ofd_packets/00123216 [11:03:22]File name is /storage/ofd_packets/00123216 [11:03:22]Write 330 bytes [11:03:22]NVStorageSaveData done [11:03:22]OFDSenderStorePacket done [11:03:22]KKMCreateOFDPacket done [11:03:22]NVStorageSaveData kkm_last_timestamp [11:03:22]File name is /storage/kkm_last_timestamp [11:03:22]Write 4 bytes [11:03:22]NVStorageSaveData done [11:03:22]ExternCall_PrintAddStr [11:03:22]wPrintStart [11:03:22]Write to MH i2c: 01 00 00 40 1E 5E [11:03:22]Write i2c OK [11:03:22]MH_I2C_Read... [11:03:22]Read from MH i2c: 01 [11:03:22]MH_I2C_Read... [11:03:22]Read from MH i2c: 01 07 00 [11:03:22]MH_I2C_Read... [11:03:22]Read from MH i2c: 01 07 00 40 1E 00 00 00 00 00 FF 0F 73 [11:03:22]RasterBufferAndPrint [11:03:22]line Счет N : (1)1106137 [11:03:22]line ИНН: 02508201610067 [11:03:22]line Контрольно-Кассовый Чек [11:03:22]line ВОЗВРАТ ПРОДАЖИ [11:03:22]line ТРК (МРК, ГНК) : 61 [11:03:22]line Товар: 2710194210 [11:03:22]line ДТ(л)-К-5 [11:03:22]line 28.210 * 70.90 [11:03:22]line = 2000.09 [11:03:22]line НДС 12% НСП 1% [11:03:22]line > о реализуемом товаре [11:03:22]line ОКРУГЛЕНИЕ: -0.09 [11:03:22]line ИТОГО: 2000.00 [11:03:22]line НСП 1% : 17.70 [11:03:22]line НДС 12% : 212.40 [11:03:22]line Наличными: 2000.00 [11:03:22]line Безнал.: 0.00 [11:03:22]line Место: АЗС № 25 "Партнер Нефть" [11:03:22]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [11:03:22]line СНО: Общий режим [11:03:22]line Чек 73 03.03.2024 11:03 [11:03:22]line Смена: 323 ФФД: 1.0 [11:03:22]line ЗНМ: 0300000019 [11:03:22]line РНМ: 0000000000090573 [11:03:22]line Версия ККМ: 001 [11:03:22]line ФД осн.: 123215 [11:03:22]line ФМ осн.: 0000000000874798 [11:03:22]line ФМ: 0000000000874798 [11:03:22]line ФД: 123216 [11:03:22]line ФПД: 72517256417467 [11:03:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T110323&type=2&operation_type=1&fn_number=0000000000874798&fd_number=123216&fm=72517256417467&tin=02508201610067®Number=0000000000090573&sum=200000 [11:03:22]written 0, free lines is 4095 [11:03:22]OFD Sender: Processing packet 123216 [packets to send 112, broken 111] [11:03:22]ProducePacketName [11:03:22]name=ofd_packets/00123216 [11:03:22]OFD Sender: To server: pG, [11:03:22]CommunicateWithHost lk.salyk.kg:30040 [11:03:22]ConnectInit lk.salyk.kg [11:03:22]Connected sock=10 [11:03:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 2C 01 00 00 CD 52 24 01 89 FB 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 35 FF 03 08 00 03 32 6E 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 49 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 FB 58 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 27 04 04 00 4F E1 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 50 E1 01 00 35 04 06 00 41 F4 3D 4F 10 BB C2 A5 74 FC F0 28 13 4A [11:03:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 B8 FD 47 00 65 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 37 39 38 10 04 04 00 50 E1 01 00 F4 03 04 00 27 05 E4 65 B6 04 01 00 00 01 95 89 EF BE 68 C3 CD [11:03:22]CommunicateWithHost err = 0 [11:03:22]CheckOFDResponse [11:03:22]1017 (14) - 77093643461234 [11:03:22]1041 (16) - 0000000000874798 [11:03:22]1040 (4) - 123216 [11:03:22]1012 (4) - 03.03.2024 05:05 [11:03:22]1206 (1) - 0 [11:03:22]OFD Sender: Remove packet 123216 [11:03:22]ProducePacketName [11:03:22]name=ofd_packets/00123216 [11:03:22]NVStorageDeleteData [11:03:22]Write to MH i2c: 01 00 00 6B 1E 89 [11:03:22]Write i2c OK [11:03:22]MH_I2C_Read... [11:03:22]Read from MH i2c: 01 [11:03:22]MH_I2C_Read... [11:03:22]Read from MH i2c: 01 07 00 [11:03:22]MH_I2C_Read... [11:03:22]Read from MH i2c: 01 07 00 6B 1E 00 00 00 00 00 FE 0C 9A [11:03:22]RasterBufferAndPrint [11:03:22]line [11:03:22]line [11:03:22]line [11:03:22]line [11:03:22]line [11:03:22]written 0, free lines is 3335 [11:03:22]MH_Cut [11:03:22]Write to MH i2c: D1 01 00 72 1E 01 62 [11:03:22]Write i2c OK [11:03:22]MH_I2C_Read... [11:03:22]Read from MH i2c: D1 [11:03:22]MH_I2C_Read... [11:03:22]Read from MH i2c: D1 01 00 [11:03:22]MH_I2C_Read... [11:03:22]Read from MH i2c: D1 01 00 72 1E 00 61 [11:03:22]Write to MH i2c: 01 00 00 73 1E 91 [11:03:22]Write i2c OK [11:03:22]MH_I2C_Read... [11:03:23]OFD Sender: No OFD packet to send [11:03:23]*** Cut start [11:03:23]*** Purtial cut [11:03:23]*** Stage 1: CUTSNS_PIN = 1 [11:03:25]Read from MH i2c: 01 [11:03:25]MH_I2C_Read... [11:03:25]*** Stop cut motor [11:03:25]*** Cut end [11:03:25]Read from MH i2c: 01 07 00 [11:03:25]MH_I2C_Read... [11:03:25]Read from MH i2c: 01 07 00 73 1E 00 00 00 00 00 FF 0F A6 [11:03:25]process_action close_receipt done [11:03:25]requested_data is exist [11:03:25]produce_requested_data [11:03:25]requested_item fm.sn is exist - process it [11:03:25]wFMCommunicate request_size=4 [11:03:25]MH_SAM_APDU [11:03:25]CAPDU: 80 11 00 00 [11:03:25]Write to MH i2c: E2 08 00 74 1E 80 11 00 00 00 00 00 00 0C [11:03:25]Write i2c OK [11:03:25]MH_I2C_Read... [11:03:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:03:25]Read from MH i2c: E2 [11:03:25]MH_I2C_Read... [11:03:25]Read from MH i2c: E2 17 00 [11:03:25]MH_I2C_Read... [11:03:25]Read from MH i2c: E2 17 00 74 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 6A [11:03:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [11:03:25]wFMCommunicate OK [11:03:25]requested_item fd.num is exist - process it [11:03:25]SAM_PROTO_GetFieldsCounters [11:03:25]wFMCommunicate request_size=4 [11:03:25]MH_SAM_APDU [11:03:25]CAPDU: 80 13 00 00 [11:03:25]Write to MH i2c: E2 08 00 75 1E 80 13 00 00 00 00 00 00 0F [11:03:25]Write i2c OK [11:03:25]MH_I2C_Read... [11:03:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:03:25]Read from MH i2c: E2 [11:03:25]MH_I2C_Read... [11:03:25]Read from MH i2c: E2 62 00 [11:03:25]MH_I2C_Read... [11:03:25]Read from MH i2c: E2 62 00 75 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 50 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 8B [11:03: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 50 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:03:25]wFMCommunicate OK [11:03:25]SAM_PROTO_GetFieldsCounters done [11:03:25]requested_item shift.num is exist - process it [11:03:25]requested_item shift.opened is exist - process it [11:03:25]req_shift_opened [11:03:25]FM_GetShiftState [11:03:25]SAM_PROTO_GetShiftState [11:03:25]wFMCommunicate request_size=4 [11:03:25]MH_SAM_APDU [11:03:25]CAPDU: 80 13 01 00 [11:03:25]Write to MH i2c: E2 08 00 76 1E 80 13 01 00 00 00 00 00 11 [11:03:25]Write i2c OK [11:03:25]MH_I2C_Read... [11:03:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:03:25]Read from MH i2c: E2 [11:03:25]MH_I2C_Read... [11:03:25]Read from MH i2c: E2 0E 00 [11:03:25]MH_I2C_Read... [11:03:25]Read from MH i2c: E2 0E 00 76 1E 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 D3 [11:03:25]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [11:03:25]wFMCommunicate OK [11:03:25]SAM_PROTO_GetShiftState done [11:03:25]FM_GetShiftState done [11:03:25]req_shift_opened done [11:03:25]requested_item shift.open_date is exist - process it [11:03:25]req_shift_open_date [11:03:25]req_shift_open_date done [11:03:25]produce_requested_data done [11:03:25]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123216,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [11:03:25]process_action_free close_receipt [11:03:25]json_value_free [11:03:25]json_value_free done [11:03:25]process_json_proto returns [11:03:25]Send response to host [11:03:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123216,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [11:03:25]free response buf [11:03:25]execute_script done [11:03:25]execute_script returns [11:03:25]free content buf [11:03:25]Sock 9.Close socket [11:03:25]Sock 9.Thread stoped [11:03:28]OFD Sender: No OFD packet to send [11:03:33]OFD Sender: No OFD packet to send [11:03:38]OFD Sender: No OFD packet to send [11:03:43]OFD Sender: No OFD packet to send [11:03:48]OFD Sender: No OFD packet to send [11:03:53]OFD Sender: No OFD packet to send [11:03:58]OFD Sender: No OFD packet to send [11:04:03]OFD Sender: No OFD packet to send [11:04:08]OFD Sender: No OFD packet to send [11:04:13]OFD Sender: No OFD packet to send [11:04:18]OFD Sender: No OFD packet to send [11:04:23]OFD Sender: No OFD packet to send [11:04:28]OFD Sender: No OFD packet to send [11:04:33]OFD Sender: No OFD packet to send [11:04:36]accept exits with 7 [11:04:36]New connection [11:04:36]New thread 3067395428 created [11:04:36]Thread 3067252068 joined [11:04:36]Waiting for new connection... [11:04:36] Sock 7.Parse request [11:04:36]Sock 7.Check first char [11:04:36]Sock 7.First char is OK [11:04:36]request: POST /json_proto HTTP/1.0 [11:04:36]Method: POST [11:04:36]URL: /json_proto [11:04:36]Method is POST - this is cgi request [11:04:36]url: /json_proto [11:04:36]query_string will be loaded in cgi processing [11:04:36]execute_cgi json_proto POST (null) [11:04:36]execute_cgi path=json_proto method=POST [11:04:36]POST find Content-Length [11:04:36]Host: 172.17.48.197:8080 [11:04:36]Content-Length: 1215 [11:04:36]Content-Type: application/json [11:04:36] [11:04:36]POST finish read [11:04:36]Found Content-Length = 1215 [11:04:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106138\u000A03.03.2024 11:00\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 14.110 x 70.90\u000A\u0418\u0422\u041E\u0413: 1000.40\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02551\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:04:36]execute_script... [11:04:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106138\u000A03.03.2024 11:00\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 14.110 x 70.90\u000A\u0418\u0422\u041E\u0413: 1000.40\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02551\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:04:36]POST & json_proto [11:04:36]process_json_proto [11:04:36]json parsed OK: [11:04:36]protocol is kg_v1.0 [11:04:36]action value=print_text [11:04:36]process_action print_text [11:04:36]cmd_print_text [11:04:36]ExternCall_PrintAddStr [11:04:36]wPrintStart [11:04:36]Write to MH i2c: 01 00 00 77 1E 95 [11:04:36]Write i2c OK [11:04:36]MH_I2C_Read... [11:04:36]Read from MH i2c: 01 [11:04:36]MH_I2C_Read... [11:04:36]Read from MH i2c: 01 07 00 [11:04:36]MH_I2C_Read... [11:04:36]Read from MH i2c: 01 07 00 77 1E 00 00 00 00 00 FF 0F AA [11:04:36]RasterBufferAndPrint [11:04:36]line *****ТОВАРНЫЙ ЧЕК***** [11:04:36]line АЗС 25 [11:04:36]line Партнер нефть [11:04:36]line 02508201610067 [11:04:36]line Кассир : Турдумбек у. К. [11:04:36]line Счет N : (1)1106138 [11:04:36]line 03.03.2024 11:00 [11:04:36]line ПРОДАЖА [11:04:36]line ТРК (МРК, ГНК): 51 [11:04:36]line Вид ГСМ : 2710194210 [11:04:36]line ДТ(л)-К-5 [11:04:36]line 14.110 x 70.90 [11:04:36]line ИТОГ: 1000.40 [11:04:36]line Тип оплаты: Талоны: Топливная Карта [11:04:36]line 02551 [11:04:36]line ______________________ [11:04:36]line (подпись) [11:04:36]written 0, free lines is 4095 [11:04:36]Write to MH i2c: 01 00 00 8C 1E AA [11:04:36]Write i2c OK [11:04:36]MH_I2C_Read... [11:04:36]Read from MH i2c: 01 [11:04:36]MH_I2C_Read... [11:04:36]Read from MH i2c: 01 07 00 [11:04:36]MH_I2C_Read... [11:04:36]Read from MH i2c: 01 07 00 8C 1E 00 00 00 00 00 F4 0D B2 [11:04:36]RasterBufferAndPrint [11:04:36]line [11:04:36]line [11:04:36]line [11:04:36]line [11:04:36]line [11:04:36]written 0, free lines is 3574 [11:04:36]MH_Cut [11:04:36]Write to MH i2c: D1 01 00 93 1E 01 83 [11:04:36]Write i2c OK [11:04:36]MH_I2C_Read... [11:04:36]Read from MH i2c: D1 [11:04:36]MH_I2C_Read... [11:04:36]Read from MH i2c: D1 01 00 [11:04:36]MH_I2C_Read... [11:04:36]Read from MH i2c: D1 01 00 93 1E 00 82 [11:04:36]Write to MH i2c: 01 00 00 94 1E B2 [11:04:36]Write i2c OK [11:04:36]MH_I2C_Read... [11:04:37]*** Cut start [11:04:37]*** Purtial cut [11:04:37]*** Stage 1: CUTSNS_PIN = 1 [11:04:38]OFD Sender: No OFD packet to send [11:04:39]Read from MH i2c: 01 [11:04:39]MH_I2C_Read... [11:04:39]*** Stop cut motor [11:04:39]*** Cut end [11:04:39]Read from MH i2c: 01 07 00 [11:04:39]MH_I2C_Read... [11:04:39]Read from MH i2c: 01 07 00 94 1E 00 00 00 00 00 FF 0F C7 [11:04:39]process_action print_text done [11:04:39]requested_data is exist [11:04:39]produce_requested_data [11:04:39]requested_item fm.sn is exist - process it [11:04:39]wFMCommunicate request_size=4 [11:04:39]MH_SAM_APDU [11:04:39]CAPDU: 80 11 00 00 [11:04:39]Write to MH i2c: E2 08 00 95 1E 80 11 00 00 00 00 00 00 2D [11:04:39]Write i2c OK [11:04:39]MH_I2C_Read... [11:04:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:04:39]Read from MH i2c: E2 [11:04:39]MH_I2C_Read... [11:04:39]Read from MH i2c: E2 17 00 [11:04:39]MH_I2C_Read... [11:04:39]Read from MH i2c: E2 17 00 95 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 8B [11:04:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [11:04:39]wFMCommunicate OK [11:04:39]requested_item fd.num is exist - process it [11:04:39]SAM_PROTO_GetFieldsCounters [11:04:39]wFMCommunicate request_size=4 [11:04:39]MH_SAM_APDU [11:04:39]CAPDU: 80 13 00 00 [11:04:39]Write to MH i2c: E2 08 00 96 1E 80 13 00 00 00 00 00 00 30 [11:04:39]Write i2c OK [11:04:39]MH_I2C_Read... [11:04:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:04:39]Read from MH i2c: E2 [11:04:39]MH_I2C_Read... [11:04:39]Read from MH i2c: E2 62 00 [11:04:39]MH_I2C_Read... [11:04:39]Read from MH i2c: E2 62 00 96 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 50 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 AC [11:04: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 50 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:04:39]wFMCommunicate OK [11:04:39]SAM_PROTO_GetFieldsCounters done [11:04:39]requested_item shift.num is exist - process it [11:04:39]requested_item shift.opened is exist - process it [11:04:39]req_shift_opened [11:04:39]FM_GetShiftState [11:04:39]SAM_PROTO_GetShiftState [11:04:39]wFMCommunicate request_size=4 [11:04:39]MH_SAM_APDU [11:04:39]CAPDU: 80 13 01 00 [11:04:39]Write to MH i2c: E2 08 00 97 1E 80 13 01 00 00 00 00 00 32 [11:04:39]Write i2c OK [11:04:39]MH_I2C_Read... [11:04:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:04:39]Read from MH i2c: E2 [11:04:39]MH_I2C_Read... [11:04:39]Read from MH i2c: E2 0E 00 [11:04:39]MH_I2C_Read... [11:04:39]Read from MH i2c: E2 0E 00 97 1E 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 F4 [11:04:39]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [11:04:39]wFMCommunicate OK [11:04:39]SAM_PROTO_GetShiftState done [11:04:39]FM_GetShiftState done [11:04:39]req_shift_opened done [11:04:39]requested_item shift.open_date is exist - process it [11:04:39]req_shift_open_date [11:04:39]req_shift_open_date done [11:04:39]produce_requested_data done [11:04:39]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123216,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [11:04:39]process_action_free print_text [11:04:39]json_value_free [11:04:39]json_value_free done [11:04:39]process_json_proto returns [11:04:39]Send response to host [11:04:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123216,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [11:04:39]free response buf [11:04:39]execute_script done [11:04:39]execute_script returns [11:04:39]free content buf [11:04:39]Sock 7.Close socket [11:04:39]Sock 7.Thread stoped [11:04:40]int [11:04:40]Write to MH i2c: 01 00 00 98 1E B6 [11:04:40]*** FLAG_PRN_PAP1 set [11:04:40]Write i2c OK [11:04:40]MH_I2C_Read... [11:04:40]Read from MH i2c: 01 [11:04:40]MH_I2C_Read... [11:04:40]Read from MH i2c: 01 07 00 [11:04:40]MH_I2C_Read... [11:04:40]Read from MH i2c: 01 07 00 98 1E 00 01 00 00 00 FF 0F CC [11:04:40]state=0 [11:04:40]No paper [11:04:40]int [11:04:40]Write to MH i2c: 01 00 00 99 1E B7 [11:04:40]*** FLAG_PRN_PAP2 set [11:04:40]Write i2c OK [11:04:40]MH_I2C_Read... [11:04:40]Read from MH i2c: 01 [11:04:40]MH_I2C_Read... [11:04:40]Read from MH i2c: 01 07 00 [11:04:40]MH_I2C_Read... [11:04:40]Read from MH i2c: 01 07 00 99 1E 00 03 00 00 00 FF 0F CF [11:04:40]state=0 [11:04:40]No paper [11:04:40]Cover opened [11:04:43]OFD Sender: No OFD packet to send [11:04:45]Write to MH i2c: 01 00 00 9A 1E B8 [11:04:45]Write i2c OK [11:04:45]MH_I2C_Read... [11:04:45]Read from MH i2c: 01 [11:04:45]MH_I2C_Read... [11:04:45]Read from MH i2c: 01 07 00 [11:04:45]MH_I2C_Read... [11:04:45]Read from MH i2c: 01 07 00 9A 1E 00 03 00 00 00 FF 0F D0 [11:04:45]state=3 [11:04:45]No paper [11:04:45]Cover opened [11:04:48]OFD Sender: No OFD packet to send [11:04:50]Write to MH i2c: 01 00 00 9B 1E B9 [11:04:50]Write i2c OK [11:04:50]MH_I2C_Read... [11:04:50]Read from MH i2c: 01 [11:04:50]MH_I2C_Read... [11:04:50]Read from MH i2c: 01 07 00 [11:04:50]MH_I2C_Read... [11:04:50]Read from MH i2c: 01 07 00 9B 1E 00 03 00 00 00 FF 0F D1 [11:04:50]state=3 [11:04:50]No paper [11:04:50]Cover opened [11:04:53]OFD Sender: No OFD packet to send [11:04:55]Write to MH i2c: 01 00 00 9C 1E BA [11:04:55]Write i2c OK [11:04:55]MH_I2C_Read... [11:04:55]Read from MH i2c: 01 [11:04:55]MH_I2C_Read... [11:04:55]Read from MH i2c: 01 07 00 [11:04:55]MH_I2C_Read... [11:04:55]Read from MH i2c: 01 07 00 9C 1E 00 03 00 00 00 FF 0F D2 [11:04:55]state=3 [11:04:55]No paper [11:04:55]Cover opened [11:04:58]OFD Sender: No OFD packet to send [11:05:00]Write to MH i2c: 01 00 00 9D 1E BB [11:05:00]Write i2c OK [11:05:00]MH_I2C_Read... [11:05:00]Read from MH i2c: 01 [11:05:00]MH_I2C_Read... [11:05:00]Read from MH i2c: 01 07 00 [11:05:00]MH_I2C_Read... [11:05:00]Read from MH i2c: 01 07 00 9D 1E 00 03 00 00 00 FF 0F D3 [11:05:00]state=3 [11:05:00]No paper [11:05:00]Cover opened [11:05:03]OFD Sender: No OFD packet to send [11:05:05]Write to MH i2c: 01 00 00 9E 1E BC [11:05:05]Write i2c OK [11:05:05]MH_I2C_Read... [11:05:05]Read from MH i2c: 01 [11:05:05]MH_I2C_Read... [11:05:05]Read from MH i2c: 01 07 00 [11:05:05]MH_I2C_Read... [11:05:05]Read from MH i2c: 01 07 00 9E 1E 00 03 00 00 00 FF 0F D4 [11:05:05]state=3 [11:05:05]No paper [11:05:05]Cover opened [11:05:08]OFD Sender: No OFD packet to send [11:05:10]Write to MH i2c: 01 00 00 9F 1E BD [11:05:10]Write i2c OK [11:05:10]MH_I2C_Read... [11:05:10]Read from MH i2c: 01 [11:05:10]MH_I2C_Read... [11:05:10]Read from MH i2c: 01 07 00 [11:05:10]MH_I2C_Read... [11:05:10]Read from MH i2c: 01 07 00 9F 1E 00 03 00 00 00 FF 0F D5 [11:05:10]state=3 [11:05:10]No paper [11:05:10]Cover opened [11:05:13]OFD Sender: No OFD packet to send [11:05:15]Write to MH i2c: 01 00 00 A0 1E BE [11:05:15]Write i2c OK [11:05:15]MH_I2C_Read... [11:05:15]Read from MH i2c: 01 [11:05:15]MH_I2C_Read... [11:05:15]Read from MH i2c: 01 07 00 [11:05:15]MH_I2C_Read... [11:05:15]Read from MH i2c: 01 07 00 A0 1E 00 03 00 00 00 FF 0F D6 [11:05:15]state=3 [11:05:15]No paper [11:05:15]Cover opened [11:05:18]OFD Sender: No OFD packet to send [11:05:20]Write to MH i2c: 01 00 00 A1 1E BF [11:05:20]Write i2c OK [11:05:20]MH_I2C_Read... [11:05:20]Read from MH i2c: 01 [11:05:20]MH_I2C_Read... [11:05:20]Read from MH i2c: 01 07 00 [11:05:20]MH_I2C_Read... [11:05:20]Read from MH i2c: 01 07 00 A1 1E 00 03 00 00 00 FF 0F D7 [11:05:20]state=3 [11:05:20]No paper [11:05:20]Cover opened [11:05:23]OFD Sender: No OFD packet to send [11:05:25]Write to MH i2c: 01 00 00 A2 1E C0 [11:05:25]Write i2c OK [11:05:25]MH_I2C_Read... [11:05:25]Read from MH i2c: 01 [11:05:25]MH_I2C_Read... [11:05:25]Read from MH i2c: 01 07 00 [11:05:25]MH_I2C_Read... [11:05:25]Read from MH i2c: 01 07 00 A2 1E 00 03 00 00 00 FF 0F D8 [11:05:25]state=3 [11:05:25]No paper [11:05:25]Cover opened [11:05:28]OFD Sender: No OFD packet to send [11:05:30]Write to MH i2c: 01 00 00 A3 1E C1 [11:05:30]Write i2c OK [11:05:30]MH_I2C_Read... [11:05:30]Read from MH i2c: 01 [11:05:30]MH_I2C_Read... [11:05:30]Read from MH i2c: 01 07 00 [11:05:30]MH_I2C_Read... [11:05:30]Read from MH i2c: 01 07 00 A3 1E 00 03 00 00 00 FF 0F D9 [11:05:30]state=3 [11:05:30]No paper [11:05:30]Cover opened [11:05:33]OFD Sender: No OFD packet to send [11:05:35]Write to MH i2c: 01 00 00 A4 1E C2 [11:05:35]Write i2c OK [11:05:35]MH_I2C_Read... [11:05:35]Read from MH i2c: 01 [11:05:35]MH_I2C_Read... [11:05:35]Read from MH i2c: 01 07 00 [11:05:35]MH_I2C_Read... [11:05:35]Read from MH i2c: 01 07 00 A4 1E 00 03 00 00 00 FF 0F DA [11:05:35]state=3 [11:05:35]No paper [11:05:35]Cover opened [11:05:38]OFD Sender: No OFD packet to send [11:05:40]Write to MH i2c: 01 00 00 A5 1E C3 [11:05:40]Write i2c OK [11:05:40]MH_I2C_Read... [11:05:40]Read from MH i2c: 01 [11:05:40]MH_I2C_Read... [11:05:40]Read from MH i2c: 01 07 00 [11:05:40]MH_I2C_Read... [11:05:40]Read from MH i2c: 01 07 00 A5 1E 00 03 00 00 00 FF 0F DB [11:05:40]state=3 [11:05:40]No paper [11:05:40]Cover opened [11:05:43]OFD Sender: No OFD packet to send [11:05:45]Write to MH i2c: 01 00 00 A6 1E C4 [11:05:45]Write i2c OK [11:05:45]MH_I2C_Read... [11:05:45]Read from MH i2c: 01 [11:05:45]MH_I2C_Read... [11:05:45]Read from MH i2c: 01 07 00 [11:05:45]MH_I2C_Read... [11:05:45]Read from MH i2c: 01 07 00 A6 1E 00 03 00 00 00 FF 0F DC [11:05:45]state=3 [11:05:45]No paper [11:05:45]Cover opened [11:05:48]OFD Sender: No OFD packet to send [11:05:50]Write to MH i2c: 01 00 00 A7 1E C5 [11:05:50]Write i2c OK [11:05:50]MH_I2C_Read... [11:05:50]Read from MH i2c: 01 [11:05:50]MH_I2C_Read... [11:05:50]Read from MH i2c: 01 07 00 [11:05:50]MH_I2C_Read... [11:05:50]Read from MH i2c: 01 07 00 A7 1E 00 03 00 00 00 FF 0F DD [11:05:50]state=3 [11:05:50]No paper [11:05:50]Cover opened [11:05:53]OFD Sender: No OFD packet to send [11:05:55]Write to MH i2c: 01 00 00 A8 1E C6 [11:05:55]Write i2c OK [11:05:55]MH_I2C_Read... [11:05:55]Read from MH i2c: 01 [11:05:55]MH_I2C_Read... [11:05:55]Read from MH i2c: 01 07 00 [11:05:55]MH_I2C_Read... [11:05:55]Read from MH i2c: 01 07 00 A8 1E 00 03 00 00 00 FF 0F DE [11:05:55]state=3 [11:05:55]No paper [11:05:55]Cover opened [11:05:58]OFD Sender: No OFD packet to send [11:06:00]Write to MH i2c: 01 00 00 A9 1E C7 [11:06:00]Write i2c OK [11:06:00]MH_I2C_Read... [11:06:00]Read from MH i2c: 01 [11:06:00]MH_I2C_Read... [11:06:00]Read from MH i2c: 01 07 00 [11:06:00]MH_I2C_Read... [11:06:00]Read from MH i2c: 01 07 00 A9 1E 00 03 00 00 00 FF 0F DF [11:06:00]state=3 [11:06:00]No paper [11:06:00]Cover opened [11:06:03]OFD Sender: No OFD packet to send [11:06:05]Write to MH i2c: 01 00 00 AA 1E C8 [11:06:05]Write i2c OK [11:06:05]MH_I2C_Read... [11:06:05]Read from MH i2c: 01 [11:06:05]MH_I2C_Read... [11:06:05]Read from MH i2c: 01 07 00 [11:06:05]MH_I2C_Read... [11:06:05]Read from MH i2c: 01 07 00 AA 1E 00 03 00 00 00 FF 0F E0 [11:06:05]state=3 [11:06:05]No paper [11:06:05]Cover opened [11:06:08]OFD Sender: No OFD packet to send [11:06:10]Write to MH i2c: 01 00 00 AB 1E C9 [11:06:10]Write i2c OK [11:06:10]MH_I2C_Read... [11:06:10]Read from MH i2c: 01 [11:06:10]MH_I2C_Read... [11:06:10]Read from MH i2c: 01 07 00 [11:06:10]MH_I2C_Read... [11:06:10]Read from MH i2c: 01 07 00 AB 1E 00 03 00 00 00 FF 0F E1 [11:06:10]state=3 [11:06:10]No paper [11:06:10]Cover opened [11:06:13]OFD Sender: No OFD packet to send [11:06:15]Write to MH i2c: 01 00 00 AC 1E CA [11:06:15]Write i2c OK [11:06:15]MH_I2C_Read... [11:06:15]Read from MH i2c: 01 [11:06:15]MH_I2C_Read... [11:06:15]Read from MH i2c: 01 07 00 [11:06:15]MH_I2C_Read... [11:06:15]Read from MH i2c: 01 07 00 AC 1E 00 03 00 00 00 FF 0F E2 [11:06:15]state=3 [11:06:15]No paper [11:06:15]Cover opened [11:06:18]OFD Sender: No OFD packet to send [11:06:20]Write to MH i2c: 01 00 00 AD 1E CB [11:06:20]Write i2c OK [11:06:20]MH_I2C_Read... [11:06:20]Read from MH i2c: 01 [11:06:20]MH_I2C_Read... [11:06:20]Read from MH i2c: 01 07 00 [11:06:20]MH_I2C_Read... [11:06:20]Read from MH i2c: 01 07 00 AD 1E 00 03 00 00 00 FF 0F E3 [11:06:20]state=3 [11:06:20]No paper [11:06:20]Cover opened [11:06:23]int [11:06:23]Write to MH i2c: 01 00 00 AE 1E CC [11:06:23]*** FLAG_PRN_PAP2 reset [11:06:23]Write i2c OK [11:06:23]MH_I2C_Read... [11:06:23]Read from MH i2c: 01 [11:06:23]MH_I2C_Read... [11:06:23]Read from MH i2c: 01 07 00 [11:06:23]MH_I2C_Read... [11:06:23]Read from MH i2c: 01 07 00 AE 1E 00 01 00 00 00 FF 0F E2 [11:06:23]state=3 [11:06:23]No paper [11:06:23]Cover closed [11:06:23]int [11:06:23]Write to MH i2c: 01 00 00 AF 1E CD [11:06:23]*** FLAG_PRN_PAP1 reset [11:06:23]Write i2c OK [11:06:23]MH_I2C_Read... [11:06:23]Read from MH i2c: 01 [11:06:23]MH_I2C_Read... [11:06:23]Read from MH i2c: 01 07 00 [11:06:23]MH_I2C_Read... [11:06:23]Read from MH i2c: 01 07 00 AF 1E 00 00 00 00 00 FF 0F E2 [11:06:23]state=0 [11:06:23]OFD Sender: No OFD packet to send [11:06:28]OFD Sender: No OFD packet to send [11:06:33]OFD Sender: No OFD packet to send [11:06:38]OFD Sender: No OFD packet to send [11:06:43]OFD Sender: No OFD packet to send [11:06:48]OFD Sender: No OFD packet to send [11:06:53]OFD Sender: No OFD packet to send [11:06:58]OFD Sender: No OFD packet to send [11:07:03]OFD Sender: No OFD packet to send [11:07:08]OFD Sender: No OFD packet to send [11:07:13]OFD Sender: No OFD packet to send [11:07:18]OFD Sender: No OFD packet to send [11:07:23]OFD Sender: No OFD packet to send [11:07:28]OFD Sender: No OFD packet to send [11:07:33]OFD Sender: No OFD packet to send [11:07:37]int [11:07:37]Write to MH i2c: 01 00 00 B0 1E CE [11:07:37]*** FLAG_PRN_PAP1 set [11:07:37]Write i2c OK [11:07:37]MH_I2C_Read... [11:07:37]Read from MH i2c: 01 [11:07:37]MH_I2C_Read... [11:07:37]Read from MH i2c: 01 07 00 [11:07:37]MH_I2C_Read... [11:07:37]Read from MH i2c: 01 07 00 B0 1E 00 01 00 00 00 FF 0F E4 [11:07:37]state=0 [11:07:37]No paper [11:07:37]int [11:07:37]Write to MH i2c: 01 00 00 B1 1E CF [11:07:37]*** FLAG_PRN_PAP2 set [11:07:37]Write i2c OK [11:07:37]MH_I2C_Read... [11:07:37]Read from MH i2c: 01 [11:07:37]MH_I2C_Read... [11:07:37]Read from MH i2c: 01 07 00 [11:07:37]MH_I2C_Read... [11:07:37]Read from MH i2c: 01 07 00 B1 1E 00 03 00 00 00 FF 0F E7 [11:07:37]state=0 [11:07:37]No paper [11:07:37]Cover opened [11:07:38]OFD Sender: No OFD packet to send [11:07:42]Write to MH i2c: 01 00 00 B2 1E D0 [11:07:42]Write i2c OK [11:07:42]MH_I2C_Read... [11:07:42]Read from MH i2c: 01 [11:07:42]MH_I2C_Read... [11:07:42]Read from MH i2c: 01 07 00 [11:07:42]MH_I2C_Read... [11:07:42]Read from MH i2c: 01 07 00 B2 1E 00 03 00 00 00 FF 0F E8 [11:07:42]state=3 [11:07:42]No paper [11:07:42]Cover opened [11:07:43]OFD Sender: No OFD packet to send [11:07:46]int [11:07:46]Write to MH i2c: 01 00 00 B3 1E D1 [11:07:46]*** FLAG_PRN_PAP1 reset [11:07:46]*** FLAG_PRN_PAP2 reset [11:07:46]Write i2c OK [11:07:46]MH_I2C_Read... [11:07:46]Read from MH i2c: 01 [11:07:46]MH_I2C_Read... [11:07:46]Read from MH i2c: 01 07 00 [11:07:46]MH_I2C_Read... [11:07:46]Read from MH i2c: 01 07 00 B3 1E 00 00 00 00 00 FF 0F E6 [11:07:46]state=3 [11:07:46]Cover closed [11:07:48]OFD Sender: No OFD packet to send [11:07:53]OFD Sender: No OFD packet to send [11:07:58]OFD Sender: No OFD packet to send [11:08:03]OFD Sender: No OFD packet to send [11:08:08]OFD Sender: No OFD packet to send [11:08:13]OFD Sender: No OFD packet to send [11:08:18]OFD Sender: No OFD packet to send [11:08:23]OFD Sender: No OFD packet to send [11:08:28]OFD Sender: No OFD packet to send [11:08:33]OFD Sender: No OFD packet to send [11:08:38]OFD Sender: No OFD packet to send [11:08:43]OFD Sender: No OFD packet to send [11:08:48]OFD Sender: No OFD packet to send [11:08:53]OFD Sender: No OFD packet to send [11:08:58]OFD Sender: No OFD packet to send [11:09:03]OFD Sender: No OFD packet to send [11:09:08]OFD Sender: No OFD packet to send [11:09:13]OFD Sender: No OFD packet to send [11:09:18]OFD Sender: No OFD packet to send [11:09:23]OFD Sender: No OFD packet to send [11:09:28]OFD Sender: No OFD packet to send [11:09:33]OFD Sender: No OFD packet to send [11:09:38]OFD Sender: No OFD packet to send [11:09:43]OFD Sender: No OFD packet to send [11:09:48]OFD Sender: No OFD packet to send [11:09:53]OFD Sender: No OFD packet to send [11:09:58]OFD Sender: No OFD packet to send [11:10:03]OFD Sender: No OFD packet to send [11:10:08]OFD Sender: No OFD packet to send [11:10:13]OFD Sender: No OFD packet to send [11:10:18]OFD Sender: No OFD packet to send [11:10:23]OFD Sender: No OFD packet to send [11:10:28]OFD Sender: No OFD packet to send [11:10:33]OFD Sender: No OFD packet to send [11:10:38]OFD Sender: No OFD packet to send [11:10:43]OFD Sender: No OFD packet to send [11:10:48]OFD Sender: No OFD packet to send [11:10:53]OFD Sender: No OFD packet to send [11:10:58]OFD Sender: No OFD packet to send [11:11:03]OFD Sender: No OFD packet to send [11:11:08]OFD Sender: No OFD packet to send [11:11:13]OFD Sender: No OFD packet to send [11:11:18]OFD Sender: No OFD packet to send [11:11:23]OFD Sender: No OFD packet to send [11:11:28]OFD Sender: No OFD packet to send [11:11:33]OFD Sender: No OFD packet to send [11:11:38]OFD Sender: No OFD packet to send [11:11:43]OFD Sender: No OFD packet to send [11:11:48]OFD Sender: No OFD packet to send [11:11:53]OFD Sender: No OFD packet to send [11:11:58]OFD Sender: No OFD packet to send [11:12:03]OFD Sender: No OFD packet to send [11:12:08]OFD Sender: No OFD packet to send [11:12:13]OFD Sender: No OFD packet to send [11:12:18]OFD Sender: No OFD packet to send [11:12:23]OFD Sender: No OFD packet to send [11:12:28]OFD Sender: No OFD packet to send [11:12:33]OFD Sender: No OFD packet to send [11:12:38]OFD Sender: No OFD packet to send [11:12:43]OFD Sender: No OFD packet to send [11:12:48]OFD Sender: No OFD packet to send [11:12:53]OFD Sender: No OFD packet to send [11:12:58]OFD Sender: No OFD packet to send [11:13:03]OFD Sender: No OFD packet to send [11:13:08]OFD Sender: No OFD packet to send [11:13:13]OFD Sender: No OFD packet to send [11:13:18]OFD Sender: No OFD packet to send [11:13:23]OFD Sender: No OFD packet to send [11:13:28]OFD Sender: No OFD packet to send [11:13:33]OFD Sender: No OFD packet to send [11:13:38]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:58]OFD Sender: No OFD packet to send [11:14:03]OFD Sender: No OFD packet to send [11:14:08]OFD Sender: No OFD packet to send [11:14:13]OFD Sender: No OFD packet to send [11:14:18]OFD Sender: No OFD packet to send [11:14:23]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]accept exits with 9 [11:15:08]New connection [11:15:08]New thread 3067252068 created [11:15:08]Thread 3067395428 joined [11:15:08]Waiting for new connection... [11:15:08] Sock 9.Parse request [11:15:08]Sock 9.Check first char [11:15:08]Sock 9.First char is OK [11:15:08]request: POST /json_proto HTTP/1.0 [11:15:08]Method: POST [11:15:08]URL: /json_proto [11:15:08]Method is POST - this is cgi request [11:15:08]url: /json_proto [11:15:08]query_string will be loaded in cgi processing [11:15:08]execute_cgi json_proto POST (null) [11:15:08]execute_cgi path=json_proto method=POST [11:15:08]POST find Content-Length [11:15:08]Host: 172.17.48.197:8080 [11:15:08]Content-Length: 809 [11:15:08]Content-Type: application/json [11:15:08] [11:15:08]POST finish read [11:15:08]Found Content-Length = 809 [11:15:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106139", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 55.480, "sum" : 3855.86, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3855.86 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:15:08]execute_script... [11:15: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)1106139", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 55.480, "sum" : 3855.86, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3855.86 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:15:08]POST & json_proto [11:15:08]process_json_proto [11:15:08]json parsed OK: [11:15:08]protocol is kg_v1.0 [11:15:08]action value=close_receipt [11:15:08]process_action close_receipt [11:15:08]cmd_close_receipt [11:15:08]MH_GetDate [11:15:08]Write to MH i2c: F0 00 00 B4 1E C1 [11:15:08]Write i2c OK [11:15:08]MH_I2C_Read... [11:15:08]Read from MH i2c: F0 [11:15:08]MH_I2C_Read... [11:15:08]Read from MH i2c: F0 09 00 [11:15:08]MH_I2C_Read... [11:15:08]Read from MH i2c: F0 09 00 B4 1E 00 BE 5B E4 65 6C AF E3 65 8F [11:15:08]GetLastDocTimeStamp 1709463803 [11:15:08]current date 1709464510 [11:15:08]FM_GetShiftState [11:15:08]SAM_PROTO_GetShiftState [11:15:08]wFMCommunicate request_size=4 [11:15:08]MH_SAM_APDU [11:15:08]CAPDU: 80 13 01 00 [11:15:08]Write to MH i2c: E2 08 00 B5 1E 80 13 01 00 00 00 00 00 50 [11:15:08]Write i2c OK [11:15:08]MH_I2C_Read... [11:15:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:15:08]Read from MH i2c: E2 [11:15:08]MH_I2C_Read... [11:15:08]Read from MH i2c: E2 0E 00 [11:15:08]MH_I2C_Read... [11:15:08]Read from MH i2c: E2 0E 00 B5 1E 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 12 [11:15:08]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [11:15:08]wFMCommunicate OK [11:15:08]SAM_PROTO_GetShiftState done [11:15:08]FM_GetShiftState done [11:15:08]opened in 1709425579 [11:15:08]opened+sec_in_day 1709511979 [11:15:08]quantity*price = 385586 [11:15:08]sum+1 = 385587 [11:15:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3855.86 НСП 1% : 34.12 НДС 12% : 409.47 Наличными: 0.00 Безнал.: 3855.86 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 74 03.03.2024 11:15 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874798 ФД: 123217 ФПД: 192626569278861 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T111510&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123217&fm=192626569278861&tin=02508201610067®Number=0000000000090573&sum=385586 [11:15:09]StoreToDocumentArchive [11:15:09]shift 323 fd 123217 [11:15:09]save to /storage/0323/doc_00123217 [11:15:09]save last doc name /storage/0323/doc_00123217 to /storage/kkm_last_doc_name [11:15:09]save OK [11:15:09]Clear old archive folders... [11:15:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:15:09]tlvbuf is 00DCB870 [11:15:09]SAM_PROTO_ClearQueue [11:15:09]wFMCommunicate request_size=4 [11:15:09]MH_SAM_APDU [11:15:09]CAPDU: 80 09 00 00 [11:15:09]Write to MH i2c: E2 08 00 C2 1E 80 09 00 00 00 00 00 00 52 [11:15:09]Write i2c OK [11:15:09]MH_I2C_Read... [11:15:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:15:09]Read from MH i2c: E2 [11:15:09]MH_I2C_Read... [11:15:09]Read from MH i2c: E2 03 00 [11:15:09]MH_I2C_Read... [11:15:09]Read from MH i2c: E2 03 00 C2 1E 00 90 00 54 [11:15:09]RAPDU: 90 00 [11:15:09]wFMCommunicate OK [11:15:09]SAM_PROTO_ClearQueue done [11:15:09]KKMCreateOFDPacket [11:15:09]OFDProtocolAddRootSTLVToBuf [11:15:09]FM_MakeSignedData [11:15:09]FM_MakeSignedData [11:15:09]SAM_PROTO_SignData [11:15:09]wFMCommunicate request_size=4 [11:15:09]MH_SAM_APDU [11:15:09]CAPDU: 80 0D 01 02 [11:15:09]Write to MH i2c: E2 08 00 C3 1E 80 0D 01 02 00 00 00 00 5A [11:15:09]Write i2c OK [11:15:09]MH_I2C_Read... [11:15:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:15:09]Read from MH i2c: E2 [11:15:09]MH_I2C_Read... [11:15:09]Read from MH i2c: E2 03 00 [11:15:09]MH_I2C_Read... [11:15:09]Read from MH i2c: E2 03 00 C3 1E 00 90 00 55 [11:15:09]RAPDU: 90 00 [11:15:09]wFMCommunicate OK [11:15:09]wFMCommunicate request_size=255 [11:15:09]MH_SAM_APDU [11:15: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B8 D8 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 32 E2 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 32 E2 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 9F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 32 E2 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 BE 5B E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 51 E1 01 00 35 04 06 00 AF [11:15:09]Write to MH i2c: E2 02 01 C4 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 35 FF 03 08 00 03 B8 D8 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 32 E2 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 32 E2 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 9F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 32 E2 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 BE 5B E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 51 E1 01 00 35 04 06 00 AF 00 00 53 [11:15:09]Write i2c OK [11:15:09]MH_I2C_Read... [11:15:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:15:09]Read from MH i2c: E2 [11:15:09]MH_I2C_Read... [11:15:09]Read from MH i2c: E2 03 00 [11:15:09]MH_I2C_Read... [11:15:09]Read from MH i2c: E2 03 00 C4 1E 00 90 00 56 [11:15:09]RAPDU: 90 00 [11:15:09]wFMCommunicate OK [11:15:09]wFMCommunicate request_size=10 [11:15:09]MH_SAM_APDU [11:15:09]CAPDU: 80 0D 02 02 05 31 5E 3C 75 8D [11:15:09]Write to MH i2c: E2 0D 00 C5 1E 80 0D 02 02 05 00 31 5E 3C 75 8D 00 00 34 [11:15:09]Write i2c OK [11:15:09]MH_I2C_Read... [11:15:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:15:09]Read from MH i2c: E2 [11:15:09]MH_I2C_Read... [11:15:09]Read from MH i2c: E2 03 00 [11:15:09]MH_I2C_Read... [11:15:09]Read from MH i2c: E2 03 00 C5 1E 00 90 00 57 [11:15:09]RAPDU: 90 00 [11:15:09]wFMCommunicate OK [11:15:09]wFMCommunicate request_size=4 [11:15:09]MH_SAM_APDU [11:15:09]CAPDU: 80 0D 03 02 [11:15:09]Write to MH i2c: E2 08 00 C6 1E 80 0D 03 02 00 00 00 00 5F [11:15:09]Write i2c OK [11:15:09]MH_I2C_Read... [11:15:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:15:09]Read from MH i2c: E2 [11:15:09]MH_I2C_Read... [11:15:09]Read from MH i2c: E2 0B 00 [11:15:09]MH_I2C_Read... [11:15:09]Read from MH i2c: E2 0B 00 C6 1E 00 D2 A1 39 33 70 CB 62 8E 90 00 6A [11:15:09]RAPDU: D2 A1 39 33 70 CB 62 8E 90 00 [11:15:09]wFMCommunicate OK [11:15:09]SAM_PROTO_SignData done [11:15:09]FM_MakeSignedData done [11:15:09]CreateOFDProtocolMessage [11:15:09]wFMCommunicate request_size=4 [11:15:09]MH_SAM_APDU [11:15:09]CAPDU: 80 11 00 00 [11:15:09]Write to MH i2c: E2 08 00 C7 1E 80 11 00 00 00 00 00 00 5F [11:15:09]Write i2c OK [11:15:09]MH_I2C_Read... [11:15:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:15:09]Read from MH i2c: E2 [11:15:09]MH_I2C_Read... [11:15:09]Read from MH i2c: E2 17 00 [11:15:09]MH_I2C_Read... [11:15:09]Read from MH i2c: E2 17 00 C7 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 BD [11:15:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [11:15:09]wFMCommunicate OK [11:15:09]CreateOFDProtocolMessage done [11:15:09]OFDSenderStorePacket 123217 [11:15:09]StoreOFDPacket docnum=123217 [11:15:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 38 AC 07 01 8F 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B8 D8 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 32 E2 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 32 E2 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 9F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 32 E2 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 BE 5B E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 51 E1 01 00 35 04 06 00 AF 31 5E 3C 75 8D D2 A1 39 33 70 CB 62 8E [11:15:09]CheckFolder [11:15:09]dirname=/storage/ofd_packets [11:15:09]CheckFolder done [11:15:09]ProducePacketName [11:15:09]name=ofd_packets/00123217 [11:15:09]NVStorageSaveData ofd_packets/00123217 [11:15:09]File name is /storage/ofd_packets/00123217 [11:15:09]Write 301 bytes [11:15:09]NVStorageSaveData done [11:15:09]OFDSenderStorePacket done [11:15:09]KKMCreateOFDPacket done [11:15:09]NVStorageSaveData kkm_last_timestamp [11:15:09]File name is /storage/kkm_last_timestamp [11:15:09]Write 4 bytes [11:15:09]NVStorageSaveData done [11:15:09]ExternCall_PrintAddStr [11:15:09]wPrintStart [11:15:09]Write to MH i2c: 01 00 00 C8 1E E6 [11:15:09]Write i2c OK [11:15:09]MH_I2C_Read... [11:15:09]Read from MH i2c: 01 [11:15:09]MH_I2C_Read... [11:15:09]Read from MH i2c: 01 07 00 [11:15:09]MH_I2C_Read... [11:15:09]Read from MH i2c: 01 07 00 C8 1E 00 00 00 00 00 FF 0F FB [11:15:09]RasterBufferAndPrint [11:15:09]line Счет N : (1)1106139 [11:15:09]line ИНН: 02508201610067 [11:15:09]line Контрольно-Кассовый Чек [11:15:09]line ПРОДАЖА [11:15:09]line ТРК (МРК, ГНК) : 23 [11:15:09]line Товар: 2710124500 [11:15:09]line Аи-95-К-5 [11:15:09]line 55.480 * 69.50 [11:15:09]line = 3855.86 [11:15:09]line НДС 12% НСП 1% [11:15:09]line > о реализуемом товаре [11:15:09]line ИТОГО: 3855.86 [11:15:09]line НСП 1% : 34.12 [11:15:09]line НДС 12% : 409.47 [11:15:09]line Наличными: 0.00 [11:15:09]line Безнал.: 3855.86 [11:15:09]line Место: АЗС № 25 "Партнер Нефть" [11:15:09]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [11:15:09]line СНО: Общий режим [11:15:09]line Чек 74 03.03.2024 11:15 [11:15:09]line Смена: 323 ФФД: 1.0 [11:15:09]line ЗНМ: 0300000019 [11:15:09]line РНМ: 0000000000090573 [11:15:09]line Версия ККМ: 001 [11:15:09]line Платежная система: О! деньги [11:15:09]line ФМ: 0000000000874798 [11:15:09]line ФД: 123217 [11:15:09]line ФПД: 192626569278861 [11:15:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T111510&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123217&fm=192626569278861&tin=02508201610067®Number=0000000000090573&sum=385586 [11:15:10]written 0, free lines is 4095 [11:15:10]OFD Sender: Processing packet 123217 [packets to send 112, broken 111] [11:15:10]ProducePacketName [11:15:10]name=ofd_packets/00123217 [11:15:10]OFD Sender: To server: pG, [11:15:10]CommunicateWithHost lk.salyk.kg:30040 [11:15:10]ConnectInit lk.salyk.kg [11:15:10]Connected sock=10 [11:15: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 37 39 38 0F 01 00 00 38 AC 07 01 8F 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B8 D8 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 32 E2 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 32 E2 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 9F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 32 E2 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 BE 5B E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 51 E1 01 00 35 04 06 00 AF 31 5E 3C 75 8D D2 A1 39 33 70 CB 62 8E [11:15:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 B4 94 47 00 6D 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 37 39 38 10 04 04 00 51 E1 01 00 F4 03 04 00 EB 07 E4 65 B6 04 01 00 00 B2 F1 3F 92 35 F7 92 C8 [11:15:10]CommunicateWithHost err = 0 [11:15:10]CheckOFDResponse [11:15:10]1017 (14) - 77093643461234 [11:15:10]1041 (16) - 0000000000874798 [11:15:10]1040 (4) - 123217 [11:15:10]1012 (4) - 03.03.2024 05:17 [11:15:10]1206 (1) - 0 [11:15:10]OFD Sender: Remove packet 123217 [11:15:10]ProducePacketName [11:15:10]name=ofd_packets/00123217 [11:15:10]NVStorageDeleteData [11:15:10]Write to MH i2c: 01 00 00 F2 1E 10 [11:15:10]Write i2c OK [11:15:10]MH_I2C_Read... [11:15:10]Read from MH i2c: 01 [11:15:10]MH_I2C_Read... [11:15:10]Read from MH i2c: 01 07 00 [11:15:10]MH_I2C_Read... [11:15:10]Read from MH i2c: 01 07 00 F2 1E 00 00 00 00 00 17 0D 3B [11:15:10]RasterBufferAndPrint [11:15:10]line [11:15:10]line [11:15:10]line [11:15:10]line [11:15:10]line [11:15:10]written 0, free lines is 3357 [11:15:10]MH_Cut [11:15:10]Write to MH i2c: D1 01 00 F9 1E 01 E9 [11:15:10]Write i2c OK [11:15:10]MH_I2C_Read... [11:15:10]Read from MH i2c: D1 [11:15:10]MH_I2C_Read... [11:15:10]Read from MH i2c: D1 01 00 [11:15:10]MH_I2C_Read... [11:15:10]Read from MH i2c: D1 01 00 F9 1E 00 E8 [11:15:10]Write to MH i2c: 01 00 00 FA 1E 18 [11:15:10]Write i2c OK [11:15:10]MH_I2C_Read... [11:15:10]OFD Sender: No OFD packet to send [11:15:11]*** Cut start [11:15:11]*** Purtial cut [11:15:11]*** Stage 1: CUTSNS_PIN = 1 [11:15:13]Read from MH i2c: 01 [11:15:13]MH_I2C_Read... [11:15:13]*** Stop cut motor [11:15:13]*** Cut end [11:15:13]Read from MH i2c: 01 07 00 [11:15:13]MH_I2C_Read... [11:15:13]Read from MH i2c: 01 07 00 FA 1E 00 00 00 00 00 FF 0F 2D [11:15:13]process_action close_receipt done [11:15:13]requested_data is exist [11:15:13]produce_requested_data [11:15:13]requested_item fm.sn is exist - process it [11:15:13]wFMCommunicate request_size=4 [11:15:13]MH_SAM_APDU [11:15:13]CAPDU: 80 11 00 00 [11:15:13]Write to MH i2c: E2 08 00 FB 1E 80 11 00 00 00 00 00 00 93 [11:15:13]Write i2c OK [11:15:13]MH_I2C_Read... [11:15:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:15:13]Read from MH i2c: E2 [11:15:13]MH_I2C_Read... [11:15:13]Read from MH i2c: E2 17 00 [11:15:13]MH_I2C_Read... [11:15:13]Read from MH i2c: E2 17 00 FB 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 F1 [11:15:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [11:15:13]wFMCommunicate OK [11:15:13]requested_item fd.num is exist - process it [11:15:13]SAM_PROTO_GetFieldsCounters [11:15:13]wFMCommunicate request_size=4 [11:15:13]MH_SAM_APDU [11:15:13]CAPDU: 80 13 00 00 [11:15:13]Write to MH i2c: E2 08 00 FC 1E 80 13 00 00 00 00 00 00 96 [11:15:13]Write i2c OK [11:15:13]MH_I2C_Read... [11:15:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:15:13]Read from MH i2c: E2 [11:15:13]MH_I2C_Read... [11:15:13]Read from MH i2c: E2 62 00 [11:15:13]MH_I2C_Read... [11:15:13]Read from MH i2c: E2 62 00 FC 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 51 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 16 [11: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 51 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:15:13]wFMCommunicate OK [11:15:13]SAM_PROTO_GetFieldsCounters done [11:15:13]requested_item shift.num is exist - process it [11:15:13]requested_item shift.opened is exist - process it [11:15:13]req_shift_opened [11:15:13]FM_GetShiftState [11:15:13]SAM_PROTO_GetShiftState [11:15:13]wFMCommunicate request_size=4 [11:15:13]MH_SAM_APDU [11:15:13]CAPDU: 80 13 01 00 [11:15:13]Write to MH i2c: E2 08 00 FD 1E 80 13 01 00 00 00 00 00 98 [11:15:13]Write i2c OK [11:15:13]MH_I2C_Read... [11:15:13]Read from MH i2c: E2 [11:15:13]MH_I2C_Read... [11:15:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:15:13]Read from MH i2c: E2 0E 00 [11:15:13]MH_I2C_Read... [11:15:13]Read from MH i2c: E2 0E 00 FD 1E 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 5A [11:15:13]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [11:15:13]wFMCommunicate OK [11:15:13]SAM_PROTO_GetShiftState done [11:15:13]FM_GetShiftState done [11:15:13]req_shift_opened done [11:15:13]requested_item shift.open_date is exist - process it [11:15:13]req_shift_open_date [11:15:13]req_shift_open_date done [11:15:13]produce_requested_data done [11:15:13]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123217,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [11:15:13]process_action_free close_receipt [11:15:13]json_value_free [11:15:13]json_value_free done [11:15:13]process_json_proto returns [11:15:13]Send response to host [11:15:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123217,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [11:15:13]free response buf [11:15:13]execute_script done [11:15:13]execute_script returns [11:15:13]free content buf [11:15:13]Sock 9.Close socket [11:15:13]Sock 9.Thread stoped [11:15:15]OFD Sender: No OFD packet to send [11:15:20]OFD Sender: No OFD packet to send [11:15:25]OFD Sender: No OFD packet to send [11:15:30]OFD Sender: No OFD packet to send [11:15:35]OFD Sender: No OFD packet to send [11:15:40]OFD Sender: No OFD packet to send [11:15:45]OFD Sender: No OFD packet to send [11:15:50]OFD Sender: No OFD packet to send [11:15:55]OFD Sender: No OFD packet to send [11:16:00]OFD Sender: No OFD packet to send [11:16:05]OFD Sender: No OFD packet to send [11:16:10]OFD Sender: No OFD packet to send [11:16:15]OFD Sender: No OFD packet to send [11:16:20]OFD Sender: No OFD packet to send [11:16:26]OFD Sender: No OFD packet to send [11:16:31]OFD Sender: No OFD packet to send [11:16:36]OFD Sender: No OFD packet to send [11:16:41]OFD Sender: No OFD packet to send [11:16:46]OFD Sender: No OFD packet to send [11:16:51]OFD Sender: No OFD packet to send [11:16:56]OFD Sender: No OFD packet to send [11:16:58]accept exits with 7 [11:16:58]New connection [11:16:58]New thread 3067395428 created [11:16:58]Thread 3067252068 joined [11:16:58]Waiting for new connection... [11:16:58] Sock 7.Parse request [11:16:58]Sock 7.Check first char [11:16:58]Sock 7.First char is OK [11:16:58]request: POST /json_proto HTTP/1.0 [11:16:58]Method: POST [11:16:58]URL: /json_proto [11:16:58]Method is POST - this is cgi request [11:16:58]url: /json_proto [11:16:58]query_string will be loaded in cgi processing [11:16:58]execute_cgi json_proto POST (null) [11:16:58]execute_cgi path=json_proto method=POST [11:16:58]POST find Content-Length [11:16:58]Host: 172.17.48.197:8080 [11:16:58]Content-Length: 683 [11:16:58]Content-Type: application/json [11:16:58] [11:16:58]POST finish read [11:16:58]Found Content-Length = 683 [11:16:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106140", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.520, "sum" : 1009.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1009.00, "total" : 1009.00, "payments": [ { "type": 0, "sum" : 1009.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:58]execute_script... [11:16: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)1106140", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.520, "sum" : 1009.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1009.00, "total" : 1009.00, "payments": [ { "type": 0, "sum" : 1009.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:58]POST & json_proto [11:16:58]process_json_proto [11:16:58]json parsed OK: [11:16:58]protocol is kg_v1.0 [11:16:58]action value=close_receipt [11:16:58]process_action close_receipt [11:16:58]cmd_close_receipt [11:16:58]MH_GetDate [11:16:58]Write to MH i2c: F0 00 00 FE 1E 0B [11:16:58]Write i2c OK [11:16:58]MH_I2C_Read... [11:16:58]Read from MH i2c: F0 [11:16:58]MH_I2C_Read... [11:16:58]Read from MH i2c: F0 09 00 [11:16:58]MH_I2C_Read... [11:16:58]Read from MH i2c: F0 09 00 FE 1E 00 2C 5C E4 65 6C AF E3 65 48 [11:16:58]GetLastDocTimeStamp 1709464510 [11:16:58]current date 1709464620 [11:16:58]FM_GetShiftState [11:16:58]SAM_PROTO_GetShiftState [11:16:58]wFMCommunicate request_size=4 [11:16:58]MH_SAM_APDU [11:16:58]CAPDU: 80 13 01 00 [11:16:58]Write to MH i2c: E2 08 00 FF 1E 80 13 01 00 00 00 00 00 9A [11:16:58]Write i2c OK [11:16:58]MH_I2C_Read... [11:16:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:58]Read from MH i2c: E2 [11:16:58]MH_I2C_Read... [11:16:58]Read from MH i2c: E2 0E 00 [11:16:58]MH_I2C_Read... [11:16:58]Read from MH i2c: E2 0E 00 FF 1E 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 5C [11:16:58]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [11:16:58]wFMCommunicate OK [11:16:58]SAM_PROTO_GetShiftState done [11:16:58]FM_GetShiftState done [11:16:58]opened in 1709425579 [11:16:58]opened+sec_in_day 1709511979 [11:16:58]quantity*price = 100914 [11:16:58]sum+1 = 100915 [11:16:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 1009.00 Внесено: 1009.00 СДАЧА: 0.00 НСП 1% : 8.93 НДС 12% : 107.16 Наличными: 1009.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 75 03.03.2024 11:17 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123218 ФПД: 145804077345523 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T111701&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123218&fm=145804077345523&tin=02508201610067®Number=0000000000090573&sum=100900 [11:16:59]StoreToDocumentArchive [11:16:59]shift 323 fd 123218 [11:16:59]save to /storage/0323/doc_00123218 [11:16:59]save last doc name /storage/0323/doc_00123218 to /storage/kkm_last_doc_name [11:16:59]save OK [11:16:59]Clear old archive folders... [11:16:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:16:59]tlvbuf is 00DA27C0 [11:16:59]SAM_PROTO_ClearQueue [11:16:59]wFMCommunicate request_size=4 [11:16:59]MH_SAM_APDU [11:16:59]CAPDU: 80 09 00 00 [11:16:59]Write to MH i2c: E2 08 00 0C 1F 80 09 00 00 00 00 00 00 9D [11:16:59]Write i2c OK [11:16:59]MH_I2C_Read... [11:16:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:16:59]Read from MH i2c: E2 [11:16:59]MH_I2C_Read... [11:16:59]Read from MH i2c: E2 03 00 [11:16:59]MH_I2C_Read... [11:16:59]Read from MH i2c: E2 03 00 0C 1F 00 90 00 9F [11:16:59]RAPDU: 90 00 [11:16:59]wFMCommunicate OK [11:16:59]SAM_PROTO_ClearQueue done [11:16:59]KKMCreateOFDPacket [11:16:59]OFDProtocolAddRootSTLVToBuf [11:16:59]FM_MakeSignedData [11:16:59]FM_MakeSignedData [11:16:59]SAM_PROTO_SignData [11:16:59]wFMCommunicate request_size=4 [11:16:59]MH_SAM_APDU [11:16:59]CAPDU: 80 0D 01 02 [11:16:59]Write to MH i2c: E2 08 00 0D 1F 80 0D 01 02 00 00 00 00 A5 [11:16:59]Write i2c OK [11:16:59]MH_I2C_Read... [11:16:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:16:59]Read from MH i2c: E2 [11:16:59]MH_I2C_Read... [11:16:59]Read from MH i2c: E2 03 00 [11:16:59]MH_I2C_Read... [11:16:59]Read from MH i2c: E2 03 00 0D 1F 00 90 00 A0 [11:16:59]RAPDU: 90 00 [11:16:59]wFMCommunicate OK [11:16:59]wFMCommunicate request_size=255 [11:16:59]MH_SAM_APDU [11:16:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B8 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 32 8A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 8A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 29 00 00 00 00 07 04 06 00 24 8A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 2D 5C E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 52 E1 01 00 35 04 06 00 84 [11:16:59]Write to MH i2c: E2 02 01 0E 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B8 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 32 8A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 8A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 29 00 00 00 00 07 04 06 00 24 8A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 2D 5C E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 52 E1 01 00 35 04 06 00 84 00 00 A7 [11:16:59]Write i2c OK [11:16:59]MH_I2C_Read... [11:16:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:59]Read from MH i2c: E2 [11:16:59]MH_I2C_Read... [11:16:59]Read from MH i2c: E2 03 00 [11:16:59]MH_I2C_Read... [11:16:59]Read from MH i2c: E2 03 00 0E 1F 00 90 00 A1 [11:16:59]RAPDU: 90 00 [11:16:59]wFMCommunicate OK [11:16:59]wFMCommunicate request_size=10 [11:16:59]MH_SAM_APDU [11:16:59]CAPDU: 80 0D 02 02 05 9B A8 3C AA F3 [11:16:59]Write to MH i2c: E2 0D 00 0F 1F 80 0D 02 02 05 00 9B A8 3C AA F3 00 00 CE [11:16:59]Write i2c OK [11:16:59]MH_I2C_Read... [11:16:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:59]Read from MH i2c: E2 [11:16:59]MH_I2C_Read... [11:16:59]Read from MH i2c: E2 03 00 [11:16:59]MH_I2C_Read... [11:16:59]Read from MH i2c: E2 03 00 0F 1F 00 90 00 A2 [11:16:59]RAPDU: 90 00 [11:16:59]wFMCommunicate OK [11:16:59]wFMCommunicate request_size=4 [11:16:59]MH_SAM_APDU [11:16:59]CAPDU: 80 0D 03 02 [11:16:59]Write to MH i2c: E2 08 00 10 1F 80 0D 03 02 00 00 00 00 AA [11:16:59]Write i2c OK [11:16:59]MH_I2C_Read... [11:16:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:16:59]Read from MH i2c: E2 [11:16:59]MH_I2C_Read... [11:16:59]Read from MH i2c: E2 0B 00 [11:16:59]MH_I2C_Read... [11:16:59]Read from MH i2c: E2 0B 00 10 1F 00 6A 51 E2 C3 15 B6 BE 5D 90 00 F1 [11:16:59]RAPDU: 6A 51 E2 C3 15 B6 BE 5D 90 00 [11:16:59]wFMCommunicate OK [11:16:59]SAM_PROTO_SignData done [11:16:59]FM_MakeSignedData done [11:16:59]CreateOFDProtocolMessage [11:16:59]wFMCommunicate request_size=4 [11:16:59]MH_SAM_APDU [11:16:59]CAPDU: 80 11 00 00 [11:16:59]Write to MH i2c: E2 08 00 11 1F 80 11 00 00 00 00 00 00 AA [11:16:59]Write i2c OK [11:16:59]MH_I2C_Read... [11:16:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:59]Read from MH i2c: E2 [11:16:59]MH_I2C_Read... [11:16:59]Read from MH i2c: E2 17 00 [11:16:59]MH_I2C_Read... [11:16:59]Read from MH i2c: E2 17 00 11 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 08 [11:16:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [11:16:59]wFMCommunicate OK [11:16:59]CreateOFDProtocolMessage done [11:16:59]OFDSenderStorePacket 123218 [11:16:59]StoreOFDPacket docnum=123218 [11:16:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 0A 15 07 01 5A 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B8 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 32 8A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 8A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 29 00 00 00 00 07 04 06 00 24 8A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 2D 5C E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 52 E1 01 00 35 04 06 00 84 9B A8 3C AA F3 6A 51 E2 C3 15 B6 BE 5D [11:16:59]CheckFolder [11:16:59]dirname=/storage/ofd_packets [11:16:59]CheckFolder done [11:16:59]ProducePacketName [11:16:59]name=ofd_packets/00123218 [11:16:59]NVStorageSaveData ofd_packets/00123218 [11:16:59]File name is /storage/ofd_packets/00123218 [11:16:59]Write 301 bytes [11:16:59]NVStorageSaveData done [11:16:59]OFDSenderStorePacket done [11:16:59]KKMCreateOFDPacket done [11:16:59]NVStorageSaveData kkm_last_timestamp [11:16:59]File name is /storage/kkm_last_timestamp [11:16:59]Write 4 bytes [11:16:59]NVStorageSaveData done [11:16:59]ExternCall_PrintAddStr [11:16:59]wPrintStart [11:16:59]Write to MH i2c: 01 00 00 12 1F 31 [11:16:59]Write i2c OK [11:16:59]MH_I2C_Read... [11:16:59]Read from MH i2c: 01 [11:16:59]MH_I2C_Read... [11:16:59]Read from MH i2c: 01 07 00 [11:16:59]MH_I2C_Read... [11:16:59]Read from MH i2c: 01 07 00 12 1F 00 00 00 00 00 FF 0F 46 [11:16:59]RasterBufferAndPrint [11:16:59]line Счет N : (1)1106140 [11:16:59]line ИНН: 02508201610067 [11:16:59]line Контрольно-Кассовый Чек [11:16:59]line ПРОДАЖА [11:16:59]line ТРК (МРК, ГНК) : 23 [11:16:59]line Товар: 2710124500 [11:16:59]line Аи-95-К-5 [11:16:59]line 14.520 * 69.50 [11:16:59]line = 1009.14 [11:16:59]line НДС 12% НСП 1% [11:16:59]line > о реализуемом товаре [11:16:59]line ОКРУГЛЕНИЕ: -0.14 [11:16:59]line ИТОГО: 1009.00 [11:16:59]line Внесено: 1009.00 [11:16:59]line СДАЧА: 0.00 [11:16:59]line НСП 1% : 8.93 [11:16:59]line НДС 12% : 107.16 [11:16:59]line Наличными: 1009.00 [11:16:59]line Безнал.: 0.00 [11:16:59]line Место: АЗС № 25 "Партнер Нефть" [11:16:59]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [11:16:59]line СНО: Общий режим [11:16:59]line Чек 75 03.03.2024 11:17 [11:16:59]line Смена: 323 ФФД: 1.0 [11:16:59]line ЗНМ: 0300000019 [11:16:59]line РНМ: 0000000000090573 [11:16:59]line Версия ККМ: 001 [11:16:59]line ФМ: 0000000000874798 [11:16:59]line ФД: 123218 [11:16:59]line ФПД: 145804077345523 [11:17:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T111701&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123218&fm=145804077345523&tin=02508201610067®Number=0000000000090573&sum=100900 [11:17:00]OFD Sender: Processing packet 123218 [packets to send 112, broken 111] [11:17:00]ProducePacketName [11:17:00]name=ofd_packets/00123218 [11:17:00]OFD Sender: To server: pG, [11:17:00]CommunicateWithHost lk.salyk.kg:30040 [11:17:00]ConnectInit lk.salyk.kg [11:17:00]written 0, free lines is 4095 [11:17:00]Connected sock=10 [11:17: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 37 39 38 0F 01 00 00 0A 15 07 01 5A 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B8 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 32 8A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 8A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 29 00 00 00 00 07 04 06 00 24 8A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 2D 5C E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 52 E1 01 00 35 04 06 00 84 9B A8 3C AA F3 6A 51 E2 C3 15 B6 BE 5D [11:17:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 48 15 47 00 CF 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 37 39 38 10 04 04 00 52 E1 01 00 F4 03 04 00 59 08 E4 65 B6 04 01 00 00 41 D7 89 60 96 95 E0 06 [11:17:00]CommunicateWithHost err = 0 [11:17:00]CheckOFDResponse [11:17:00]1017 (14) - 77093643461234 [11:17:00]1041 (16) - 0000000000874798 [11:17:00]1040 (4) - 123218 [11:17:00]1012 (4) - 03.03.2024 05:19 [11:17:00]1206 (1) - 0 [11:17:00]OFD Sender: Remove packet 123218 [11:17:00]ProducePacketName [11:17:00]name=ofd_packets/00123218 [11:17:00]NVStorageDeleteData [11:17:00]Write to MH i2c: 01 00 00 3D 1F 5C [11:17:00]Write i2c OK [11:17:00]MH_I2C_Read... [11:17:00]Read from MH i2c: 01 [11:17:00]MH_I2C_Read... [11:17:00]Read from MH i2c: 01 07 00 [11:17:00]MH_I2C_Read... [11:17:00]Read from MH i2c: 01 07 00 3D 1F 00 00 00 00 00 FC 0C 6B [11:17:00]RasterBufferAndPrint [11:17:00]line [11:17:00]line [11:17:00]line [11:17:00]line [11:17:00]line [11:17:00]written 0, free lines is 3330 [11:17:00]MH_Cut [11:17:00]Write to MH i2c: D1 01 00 44 1F 01 35 [11:17:00]Write i2c OK [11:17:00]MH_I2C_Read... [11:17:00]Read from MH i2c: D1 [11:17:00]MH_I2C_Read... [11:17:00]Read from MH i2c: D1 01 00 [11:17:00]MH_I2C_Read... [11:17:00]Read from MH i2c: D1 01 00 44 1F 00 34 [11:17:00]Write to MH i2c: 01 00 00 45 1F 64 [11:17:00]Write i2c OK [11:17:00]MH_I2C_Read... [11:17:00]OFD Sender: No OFD packet to send [11:17:01]*** Cut start [11:17:01]*** Purtial cut [11:17:01]*** Stage 1: CUTSNS_PIN = 1 [11:17:03]Read from MH i2c: 01 [11:17:03]MH_I2C_Read... [11:17:03]*** Stop cut motor [11:17:03]*** Cut end [11:17:03]Read from MH i2c: 01 07 00 [11:17:03]MH_I2C_Read... [11:17:03]Read from MH i2c: 01 07 00 45 1F 00 00 00 00 00 FF 0F 79 [11:17:03]process_action close_receipt done [11:17:03]requested_data is exist [11:17:03]produce_requested_data [11:17:03]requested_item fm.sn is exist - process it [11:17:03]wFMCommunicate request_size=4 [11:17:03]MH_SAM_APDU [11:17:03]CAPDU: 80 11 00 00 [11:17:03]Write to MH i2c: E2 08 00 46 1F 80 11 00 00 00 00 00 00 DF [11:17:03]Write i2c OK [11:17:03]MH_I2C_Read... [11:17:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:03]Read from MH i2c: E2 [11:17:03]MH_I2C_Read... [11:17:03]Read from MH i2c: E2 17 00 [11:17:03]MH_I2C_Read... [11:17:03]Read from MH i2c: E2 17 00 46 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 3D [11:17:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [11:17:03]wFMCommunicate OK [11:17:03]requested_item fd.num is exist - process it [11:17:03]SAM_PROTO_GetFieldsCounters [11:17:03]wFMCommunicate request_size=4 [11:17:03]MH_SAM_APDU [11:17:03]CAPDU: 80 13 00 00 [11:17:03]Write to MH i2c: E2 08 00 47 1F 80 13 00 00 00 00 00 00 E2 [11:17:03]Write i2c OK [11:17:03]MH_I2C_Read... [11:17:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:17:03]Read from MH i2c: E2 [11:17:03]MH_I2C_Read... [11:17:03]Read from MH i2c: E2 62 00 [11:17:03]MH_I2C_Read... [11:17:03]Read from MH i2c: E2 62 00 47 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 52 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 66 [11:17:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 52 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:17:03]wFMCommunicate OK [11:17:03]SAM_PROTO_GetFieldsCounters done [11:17:03]requested_item shift.num is exist - process it [11:17:03]requested_item shift.opened is exist - process it [11:17:03]req_shift_opened [11:17:03]FM_GetShiftState [11:17:03]SAM_PROTO_GetShiftState [11:17:03]wFMCommunicate request_size=4 [11:17:03]MH_SAM_APDU [11:17:03]CAPDU: 80 13 01 00 [11:17:03]Write to MH i2c: E2 08 00 48 1F 80 13 01 00 00 00 00 00 E4 [11:17:03]Write i2c OK [11:17:03]MH_I2C_Read... [11:17:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:03]Read from MH i2c: E2 [11:17:03]MH_I2C_Read... [11:17:03]Read from MH i2c: E2 0E 00 [11:17:03]MH_I2C_Read... [11:17:03]Read from MH i2c: E2 0E 00 48 1F 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 A6 [11:17:03]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [11:17:03]wFMCommunicate OK [11:17:03]SAM_PROTO_GetShiftState done [11:17:03]FM_GetShiftState done [11:17:03]req_shift_opened done [11:17:03]requested_item shift.open_date is exist - process it [11:17:03]req_shift_open_date [11:17:03]req_shift_open_date done [11:17:03]produce_requested_data done [11:17:03]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123218,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [11:17:03]process_action_free close_receipt [11:17:03]json_value_free [11:17:03]json_value_free done [11:17:03]process_json_proto returns [11:17:03]Send response to host [11:17:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123218,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [11:17:03]free response buf [11:17:03]execute_script done [11:17:03]execute_script returns [11:17:03]free content buf [11:17:03]Sock 7.Close socket [11:17:03]Sock 7.Thread stoped [11:17:05]OFD Sender: No OFD packet to send [11:17:10]OFD Sender: No OFD packet to send [11:17:15]OFD Sender: No OFD packet to send [11:17:20]OFD Sender: No OFD packet to send [11:17:25]OFD Sender: No OFD packet to send [11:17:30]OFD Sender: No OFD packet to send [11:17:35]OFD Sender: No OFD packet to send [11:17:40]OFD Sender: No OFD packet to send [11:17:45]OFD Sender: No OFD packet to send [11:17:50]OFD Sender: No OFD packet to send [11:17:56]OFD Sender: No OFD packet to send [11:18:01]OFD Sender: No OFD packet to send [11:18:06]OFD Sender: No OFD packet to send [11:18:11]OFD Sender: No OFD packet to send [11:18:16]OFD Sender: No OFD packet to send [11:18:21]OFD Sender: No OFD packet to send [11:18:26]OFD Sender: No OFD packet to send [11:18:31]OFD Sender: No OFD packet to send [11:18:36]OFD Sender: No OFD packet to send [11:18:41]OFD Sender: No OFD packet to send [11:18:46]OFD Sender: No OFD packet to send [11:18:51]OFD Sender: No OFD packet to send [11:18:56]OFD Sender: No OFD packet to send [11:19:01]OFD Sender: No OFD packet to send [11:19:06]OFD Sender: No OFD packet to send [11:19:11]OFD Sender: No OFD packet to send [11:19:16]OFD Sender: No OFD packet to send [11:19:21]OFD Sender: No OFD packet to send [11:19:26]OFD Sender: No OFD packet to send [11:19:26]accept exits with 9 [11:19:26]New connection [11:19:26]New thread 3067252068 created [11:19:26]Thread 3067395428 joined [11:19:26]Waiting for new connection... [11:19:26] Sock 9.Parse request [11:19:26]Sock 9.Check first char [11:19:26]Sock 9.First char is OK [11:19:26]request: POST /json_proto HTTP/1.0 [11:19:26]Method: POST [11:19:26]URL: /json_proto [11:19:26]Method is POST - this is cgi request [11:19:26]url: /json_proto [11:19:26]query_string will be loaded in cgi processing [11:19:26]execute_cgi json_proto POST (null) [11:19:26]execute_cgi path=json_proto method=POST [11:19:26]POST find Content-Length [11:19:26]Host: 172.17.48.197:8080 [11:19:26]Content-Length: 683 [11:19:26]Content-Type: application/json [11:19:26] [11:19:26]POST finish read [11:19:26]Found Content-Length = 683 [11:19:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106141", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "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:19:26]execute_script... [11:19: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)1106141", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "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:19:26]POST & json_proto [11:19:26]process_json_proto [11:19:26]json parsed OK: [11:19:26]protocol is kg_v1.0 [11:19:26]action value=close_receipt [11:19:26]process_action close_receipt [11:19:26]cmd_close_receipt [11:19:26]MH_GetDate [11:19:26]Write to MH i2c: F0 00 00 49 1F 57 [11:19:26]Write i2c OK [11:19:26]MH_I2C_Read... [11:19:26]Read from MH i2c: F0 [11:19:26]MH_I2C_Read... [11:19:26]Read from MH i2c: F0 09 00 [11:19:26]MH_I2C_Read... [11:19:26]Read from MH i2c: F0 09 00 49 1F 00 C1 5C E4 65 6C AF E3 65 29 [11:19:26]GetLastDocTimeStamp 1709464621 [11:19:26]current date 1709464769 [11:19:26]FM_GetShiftState [11:19:26]SAM_PROTO_GetShiftState [11:19:26]wFMCommunicate request_size=4 [11:19:26]MH_SAM_APDU [11:19:26]CAPDU: 80 13 01 00 [11:19:26]Write to MH i2c: E2 08 00 4A 1F 80 13 01 00 00 00 00 00 E6 [11:19:26]Write i2c OK [11:19:26]MH_I2C_Read... [11:19:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:26]Read from MH i2c: E2 [11:19:26]MH_I2C_Read... [11:19:26]Read from MH i2c: E2 0E 00 [11:19:26]MH_I2C_Read... [11:19:26]Read from MH i2c: E2 0E 00 4A 1F 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 A8 [11:19:26]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [11:19:26]wFMCommunicate OK [11:19:26]SAM_PROTO_GetShiftState done [11:19:26]FM_GetShiftState done [11:19:26]opened in 1709425579 [11:19:26]opened+sec_in_day 1709511979 [11:19:26]quantity*price = 100030 [11:19:26]sum+1 = 100031 [11:19:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 76 03.03.2024 11:19 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123219 ФПД: 58002596110059 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T111929&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123219&fm=58002596110059&tin=02508201610067®Number=0000000000090573&sum=100000 [11:19:27]StoreToDocumentArchive [11:19:27]shift 323 fd 123219 [11:19:27]save to /storage/0323/doc_00123219 [11:19:27]save last doc name /storage/0323/doc_00123219 to /storage/kkm_last_doc_name [11:19:27]save OK [11:19:27]Clear old archive folders... [11:19:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:19:27]tlvbuf is 00DC08B0 [11:19:27]SAM_PROTO_ClearQueue [11:19:27]wFMCommunicate request_size=4 [11:19:27]MH_SAM_APDU [11:19:27]CAPDU: 80 09 00 00 [11:19:27]Write to MH i2c: E2 08 00 57 1F 80 09 00 00 00 00 00 00 E8 [11:19:27]Write i2c OK [11:19:27]MH_I2C_Read... [11:19:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:19:27]Read from MH i2c: E2 [11:19:27]MH_I2C_Read... [11:19:27]Read from MH i2c: E2 03 00 [11:19:27]MH_I2C_Read... [11:19:27]Read from MH i2c: E2 03 00 57 1F 00 90 00 EA [11:19:27]RAPDU: 90 00 [11:19:27]wFMCommunicate OK [11:19:27]SAM_PROTO_ClearQueue done [11:19:27]KKMCreateOFDPacket [11:19:27]OFDProtocolAddRootSTLVToBuf [11:19:27]FM_MakeSignedData [11:19:27]FM_MakeSignedData [11:19:27]SAM_PROTO_SignData [11:19:27]wFMCommunicate request_size=4 [11:19:27]MH_SAM_APDU [11:19:27]CAPDU: 80 0D 01 02 [11:19:27]Write to MH i2c: E2 08 00 58 1F 80 0D 01 02 00 00 00 00 F0 [11:19:27]Write i2c OK [11:19:27]MH_I2C_Read... [11:19:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:19:27]Read from MH i2c: E2 [11:19:27]MH_I2C_Read... [11:19:27]Read from MH i2c: E2 03 00 [11:19:27]MH_I2C_Read... [11:19:27]Read from MH i2c: E2 03 00 58 1F 00 90 00 EB [11:19:27]RAPDU: 90 00 [11:19:27]wFMCommunicate OK [11:19:27]wFMCommunicate request_size=255 [11:19:27]MH_SAM_APDU [11:19:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 4C 00 00 00 F4 03 04 00 C1 5C E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 53 E1 01 00 35 04 06 00 34 [11:19:27]Write to MH i2c: E2 02 01 59 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 4C 00 00 00 F4 03 04 00 C1 5C E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 53 E1 01 00 35 04 06 00 34 00 00 BB [11:19:27]Write i2c OK [11:19:27]MH_I2C_Read... [11:19:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:28]Read from MH i2c: E2 [11:19:28]MH_I2C_Read... [11:19:28]Read from MH i2c: E2 03 00 [11:19:28]MH_I2C_Read... [11:19:28]Read from MH i2c: E2 03 00 59 1F 00 90 00 EC [11:19:28]RAPDU: 90 00 [11:19:28]wFMCommunicate OK [11:19:28]wFMCommunicate request_size=10 [11:19:28]MH_SAM_APDU [11:19:28]CAPDU: 80 0D 02 02 05 C0 C8 23 1E EB [11:19:28]Write to MH i2c: E2 0D 00 5A 1F 80 0D 02 02 05 00 C0 C8 23 1E EB 00 00 B1 [11:19:28]Write i2c OK [11:19:28]MH_I2C_Read... [11:19:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:28]Read from MH i2c: E2 [11:19:28]MH_I2C_Read... [11:19:28]Read from MH i2c: E2 03 00 [11:19:28]MH_I2C_Read... [11:19:28]Read from MH i2c: E2 03 00 5A 1F 00 90 00 ED [11:19:28]RAPDU: 90 00 [11:19:28]wFMCommunicate OK [11:19:28]wFMCommunicate request_size=4 [11:19:28]MH_SAM_APDU [11:19:28]CAPDU: 80 0D 03 02 [11:19:28]Write to MH i2c: E2 08 00 5B 1F 80 0D 03 02 00 00 00 00 F5 [11:19:28]Write i2c OK [11:19:28]MH_I2C_Read... [11:19:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:19:28]Read from MH i2c: E2 [11:19:28]MH_I2C_Read... [11:19:28]Read from MH i2c: E2 0B 00 [11:19:28]MH_I2C_Read... [11:19:28]Read from MH i2c: E2 0B 00 5B 1F 00 EE A4 F8 82 D6 DC 0E A0 90 00 62 [11:19:28]RAPDU: EE A4 F8 82 D6 DC 0E A0 90 00 [11:19:28]wFMCommunicate OK [11:19:28]SAM_PROTO_SignData done [11:19:28]FM_MakeSignedData done [11:19:28]CreateOFDProtocolMessage [11:19:28]wFMCommunicate request_size=4 [11:19:28]MH_SAM_APDU [11:19:28]CAPDU: 80 11 00 00 [11:19:28]Write to MH i2c: E2 08 00 5C 1F 80 11 00 00 00 00 00 00 F5 [11:19:28]Write i2c OK [11:19:28]MH_I2C_Read... [11:19:28]Read from MH i2c: E2 [11:19:28]MH_I2C_Read... [11:19:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:28]Read from MH i2c: E2 17 00 [11:19:28]MH_I2C_Read... [11:19:28]Read from MH i2c: E2 17 00 5C 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 53 [11:19:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [11:19:28]wFMCommunicate OK [11:19:28]CreateOFDProtocolMessage done [11:19:28]OFDSenderStorePacket 123219 [11:19:28]StoreOFDPacket docnum=123219 [11:19:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 A9 16 07 01 43 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 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 4C 00 00 00 F4 03 04 00 C1 5C E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 53 E1 01 00 35 04 06 00 34 C0 C8 23 1E EB EE A4 F8 82 D6 DC 0E A0 [11:19:28]CheckFolder [11:19:28]dirname=/storage/ofd_packets [11:19:28]CheckFolder done [11:19:28]ProducePacketName [11:19:28]name=ofd_packets/00123219 [11:19:28]NVStorageSaveData ofd_packets/00123219 [11:19:28]File name is /storage/ofd_packets/00123219 [11:19:28]Write 301 bytes [11:19:28]NVStorageSaveData done [11:19:28]OFDSenderStorePacket done [11:19:28]KKMCreateOFDPacket done [11:19:28]NVStorageSaveData kkm_last_timestamp [11:19:28]File name is /storage/kkm_last_timestamp [11:19:28]Write 4 bytes [11:19:28]NVStorageSaveData done [11:19:28]ExternCall_PrintAddStr [11:19:28]wPrintStart [11:19:28]Write to MH i2c: 01 00 00 5D 1F 7C [11:19:28]Write i2c OK [11:19:28]MH_I2C_Read... [11:19:28]Read from MH i2c: 01 [11:19:28]MH_I2C_Read... [11:19:28]Read from MH i2c: 01 07 00 [11:19:28]MH_I2C_Read... [11:19:28]Read from MH i2c: 01 07 00 5D 1F 00 00 00 00 00 FF 0F 91 [11:19:28]RasterBufferAndPrint [11:19:28]line Счет N : (1)1106141 [11:19:28]line ИНН: 02508201610067 [11:19:28]line Контрольно-Кассовый Чек [11:19:28]line ПРОДАЖА [11:19:28]line ТРК (МРК, ГНК) : 52 [11:19:28]line Товар: 2710124130 [11:19:28]line Аи-92-К-5 [11:19:28]line 16.160 * 61.90 [11:19:28]line = 1000.30 [11:19:28]line НДС 12% НСП 1% [11:19:28]line > о реализуемом товаре [11:19:28]line ОКРУГЛЕНИЕ: -0.30 [11:19:28]line ИТОГО: 1000.00 [11:19:28]line Внесено: 1000.00 [11:19:28]line СДАЧА: 0.00 [11:19:28]line НСП 1% : 8.85 [11:19:28]line НДС 12% : 106.23 [11:19:28]line Наличными: 1000.00 [11:19:28]line Безнал.: 0.00 [11:19:28]line Место: АЗС № 25 "Партнер Нефть" [11:19:28]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [11:19:28]line СНО: Общий режим [11:19:28]line Чек 76 03.03.2024 11:19 [11:19:28]line Смена: 323 ФФД: 1.0 [11:19:28]line ЗНМ: 0300000019 [11:19:28]line РНМ: 0000000000090573 [11:19:28]line Версия ККМ: 001 [11:19:28]line ФМ: 0000000000874798 [11:19:28]line ФД: 123219 [11:19:28]line ФПД: 58002596110059 [11:19:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T111929&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123219&fm=58002596110059&tin=02508201610067®Number=0000000000090573&sum=100000 [11:19:28]written 0, free lines is 4095 [11:19:28]OFD Sender: Processing packet 123219 [packets to send 112, broken 111] [11:19:28]ProducePacketName [11:19:28]name=ofd_packets/00123219 [11:19:28]OFD Sender: To server: pG, [11:19:28]CommunicateWithHost lk.salyk.kg:30040 [11:19:28]ConnectInit lk.salyk.kg [11:19:28]Connected sock=10 [11:19: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 37 39 38 0F 01 00 00 A9 16 07 01 43 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 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 4C 00 00 00 F4 03 04 00 C1 5C E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 53 E1 01 00 35 04 06 00 34 C0 C8 23 1E EB EE A4 F8 82 D6 DC 0E A0 [11:19:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 53 97 47 00 26 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 37 39 38 10 04 04 00 53 E1 01 00 F4 03 04 00 ED 08 E4 65 B6 04 01 00 00 BE E4 A5 11 D1 15 E9 F8 [11:19:28]CommunicateWithHost err = 0 [11:19:28]CheckOFDResponse [11:19:28]1017 (14) - 77093643461234 [11:19:28]1041 (16) - 0000000000874798 [11:19:28]1040 (4) - 123219 [11:19:28]1012 (4) - 03.03.2024 05:21 [11:19:28]1206 (1) - 0 [11:19:28]OFD Sender: Remove packet 123219 [11:19:28]ProducePacketName [11:19:28]name=ofd_packets/00123219 [11:19:28]NVStorageDeleteData [11:19:28]Write to MH i2c: 01 00 00 88 1F A7 [11:19:28]Write i2c OK [11:19:28]MH_I2C_Read... [11:19:28]Read from MH i2c: 01 [11:19:28]MH_I2C_Read... [11:19:28]Read from MH i2c: 01 07 00 [11:19:28]MH_I2C_Read... [11:19:28]Read from MH i2c: 01 07 00 88 1F 00 00 00 00 00 F9 0C B3 [11:19:28]RasterBufferAndPrint [11:19:28]line [11:19:28]line [11:19:28]line [11:19:28]line [11:19:28]line [11:19:28]written 0, free lines is 3330 [11:19:28]MH_Cut [11:19:28]Write to MH i2c: D1 01 00 8F 1F 01 80 [11:19:28]Write i2c OK [11:19:28]MH_I2C_Read... [11:19:28]Read from MH i2c: D1 [11:19:28]MH_I2C_Read... [11:19:28]Read from MH i2c: D1 01 00 [11:19:28]MH_I2C_Read... [11:19:28]Read from MH i2c: D1 01 00 8F 1F 00 7F [11:19:28]Write to MH i2c: 01 00 00 90 1F AF [11:19:28]Write i2c OK [11:19:28]MH_I2C_Read... [11:19:29]OFD Sender: No OFD packet to send [11:19:29]*** Cut start [11:19:29]*** Purtial cut [11:19:29]*** Stage 1: CUTSNS_PIN = 1 [11:19:31]Read from MH i2c: 01 [11:19:31]MH_I2C_Read... [11:19:31]*** Stop cut motor [11:19:31]*** Cut end [11:19:31]Read from MH i2c: 01 07 00 [11:19:31]MH_I2C_Read... [11:19:31]Read from MH i2c: 01 07 00 90 1F 00 00 00 00 00 FF 0F C4 [11:19:31]process_action close_receipt done [11:19:31]requested_data is exist [11:19:31]produce_requested_data [11:19:31]requested_item fm.sn is exist - process it [11:19:31]wFMCommunicate request_size=4 [11:19:31]MH_SAM_APDU [11:19:31]CAPDU: 80 11 00 00 [11:19:31]Write to MH i2c: E2 08 00 91 1F 80 11 00 00 00 00 00 00 2A [11:19:31]Write i2c OK [11:19:31]MH_I2C_Read... [11:19:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:31]Read from MH i2c: E2 [11:19:31]MH_I2C_Read... [11:19:31]Read from MH i2c: E2 17 00 [11:19:31]MH_I2C_Read... [11:19:31]Read from MH i2c: E2 17 00 91 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 88 [11:19:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [11:19:31]wFMCommunicate OK [11:19:31]requested_item fd.num is exist - process it [11:19:31]SAM_PROTO_GetFieldsCounters [11:19:31]wFMCommunicate request_size=4 [11:19:31]MH_SAM_APDU [11:19:31]CAPDU: 80 13 00 00 [11:19:31]Write to MH i2c: E2 08 00 92 1F 80 13 00 00 00 00 00 00 2D [11:19:31]Write i2c OK [11:19:31]MH_I2C_Read... [11:19:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:19:31]Read from MH i2c: E2 [11:19:31]MH_I2C_Read... [11:19:31]Read from MH i2c: E2 62 00 [11:19:31]MH_I2C_Read... [11:19:31]Read from MH i2c: E2 62 00 92 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 53 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 B5 [11:19: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 53 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:19:31]wFMCommunicate OK [11:19:31]SAM_PROTO_GetFieldsCounters done [11:19:31]requested_item shift.num is exist - process it [11:19:31]requested_item shift.opened is exist - process it [11:19:31]req_shift_opened [11:19:31]FM_GetShiftState [11:19:31]SAM_PROTO_GetShiftState [11:19:31]wFMCommunicate request_size=4 [11:19:31]MH_SAM_APDU [11:19:31]CAPDU: 80 13 01 00 [11:19:31]Write to MH i2c: E2 08 00 93 1F 80 13 01 00 00 00 00 00 2F [11:19:31]Write i2c OK [11:19:31]MH_I2C_Read... [11:19:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:31]Read from MH i2c: E2 [11:19:31]MH_I2C_Read... [11:19:31]Read from MH i2c: E2 0E 00 [11:19:31]MH_I2C_Read... [11:19:31]Read from MH i2c: E2 0E 00 93 1F 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 F1 [11:19:31]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [11:19:31]wFMCommunicate OK [11:19:31]SAM_PROTO_GetShiftState done [11:19:31]FM_GetShiftState done [11:19:31]req_shift_opened done [11:19:31]requested_item shift.open_date is exist - process it [11:19:31]req_shift_open_date [11:19:31]req_shift_open_date done [11:19:31]produce_requested_data done [11:19:31]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123219,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [11:19:31]process_action_free close_receipt [11:19:31]json_value_free [11:19:31]json_value_free done [11:19:31]process_json_proto returns [11:19:31]Send response to host [11:19:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123219,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [11:19:31]free response buf [11:19:31]execute_script done [11:19:31]execute_script returns [11:19:31]free content buf [11:19:31]Sock 9.Close socket [11:19:31]Sock 9.Thread stoped [11:19:34]OFD Sender: No OFD packet to send [11:19:39]OFD Sender: No OFD packet to send [11:19:44]OFD Sender: No OFD packet to send [11:19:49]OFD Sender: No OFD packet to send [11:19:54]OFD Sender: No OFD packet to send [11:19:59]OFD Sender: No OFD packet to send [11:20:04]OFD Sender: No OFD packet to send [11:20:09]OFD Sender: No OFD packet to send [11:20:14]OFD Sender: No OFD packet to send [11:20:19]OFD Sender: No OFD packet to send [11:20:24]OFD Sender: No OFD packet to send [11:20:29]OFD Sender: No OFD packet to send [11:20:34]OFD Sender: No OFD packet to send [11:20:39]OFD Sender: No OFD packet to send [11:20:44]OFD Sender: No OFD packet to send [11:20:49]OFD Sender: No OFD packet to send [11:20:54]OFD Sender: No OFD packet to send [11:20:59]OFD Sender: No OFD packet to send [11:21:04]OFD Sender: No OFD packet to send [11:21:09]OFD Sender: No OFD packet to send [11:21:14]OFD Sender: No OFD packet to send [11:21:19]OFD Sender: No OFD packet to send [11:21:24]OFD Sender: No OFD packet to send [11:21:29]OFD Sender: No OFD packet to send [11:21:34]OFD Sender: No OFD packet to send [11:21:39]OFD Sender: No OFD packet to send [11:21:44]OFD Sender: No OFD packet to send [11:21:49]OFD Sender: No OFD packet to send [11:21:54]OFD Sender: No OFD packet to send [11:21:59]OFD Sender: No OFD packet to send [11:22:04]OFD Sender: No OFD packet to send [11:22:09]OFD Sender: No OFD packet to send [11:22:14]OFD Sender: No OFD packet to send [11:22:19]OFD Sender: No OFD packet to send [11:22:24]OFD Sender: No OFD packet to send [11:22:29]OFD Sender: No OFD packet to send [11:22:34]OFD Sender: No OFD packet to send [11:22:39]OFD Sender: No OFD packet to send [11:22:44]OFD Sender: No OFD packet to send [11:22:49]OFD Sender: No OFD packet to send [11:22:54]OFD Sender: No OFD packet to send [11:22:59]OFD Sender: No OFD packet to send [11:23:04]OFD Sender: No OFD packet to send [11:23:09]OFD Sender: No OFD packet to send [11:23:14]OFD Sender: No OFD packet to send [11:23:19]OFD Sender: No OFD packet to send [11:23:24]OFD Sender: No OFD packet to send [11:23:29]OFD Sender: No OFD packet to send [11:23:34]OFD Sender: No OFD packet to send [11:23:39]OFD Sender: No OFD packet to send [11:23:44]OFD Sender: No OFD packet to send [11:23:49]OFD Sender: No OFD packet to send [11:23:54]OFD Sender: No OFD packet to send [11:23:59]OFD Sender: No OFD packet to send [11:24:04]OFD Sender: No OFD packet to send [11:24:09]OFD Sender: No OFD packet to send [11:24:14]OFD Sender: No OFD packet to send [11:24:19]OFD Sender: No OFD packet to send [11:24:24]OFD Sender: No OFD packet to send [11:24:29]OFD Sender: No OFD packet to send [11:24:34]OFD Sender: No OFD packet to send [11:24:39]OFD Sender: No OFD packet to send [11:24:44]OFD Sender: No OFD packet to send [11:24:49]OFD Sender: No OFD packet to send [11:24:54]OFD Sender: No OFD packet to send [11:24:59]OFD Sender: No OFD packet to send [11:25:04]OFD Sender: No OFD packet to send [11:25:09]OFD Sender: No OFD packet to send [11:25:14]OFD Sender: No OFD packet to send [11:25:19]OFD Sender: No OFD packet to send [11:25:24]OFD Sender: No OFD packet to send [11:25:29]OFD Sender: No OFD packet to send [11:25:34]OFD Sender: No OFD packet to send [11:25:39]OFD Sender: No OFD packet to send [11:25:44]OFD Sender: No OFD packet to send [11:25:49]OFD Sender: No OFD packet to send [11:25:54]OFD Sender: No OFD packet to send [11:25:59]OFD Sender: No OFD packet to send [11:26:04]OFD Sender: No OFD packet to send [11:26:09]OFD Sender: No OFD packet to send [11:26:14]OFD Sender: No OFD packet to send [11:26:19]OFD Sender: No OFD packet to send [11:26:24]OFD Sender: No OFD packet to send [11:26:29]OFD Sender: No OFD packet to send [11:26:34]OFD Sender: No OFD packet to send [11:26:39]OFD Sender: No OFD packet to send [11:26:44]OFD Sender: No OFD packet to send [11:26:49]OFD Sender: No OFD packet to send [11:26:54]OFD Sender: No OFD packet to send [11:26:59]OFD Sender: No OFD packet to send [11:27:04]OFD Sender: No OFD packet to send [11:27:09]OFD Sender: No OFD packet to send [11:27:14]OFD Sender: No OFD packet to send [11:27:19]OFD Sender: No OFD packet to send [11:27:24]OFD Sender: No OFD packet to send [11:27:29]OFD Sender: No OFD packet to send [11:27:34]OFD Sender: No OFD packet to send [11:27:39]OFD Sender: No OFD packet to send [11:27:44]OFD Sender: No OFD packet to send [11:27:49]OFD Sender: No OFD packet to send [11:27:54]OFD Sender: No OFD packet to send [11:27:59]OFD Sender: No OFD packet to send [11:28:04]OFD Sender: No OFD packet to send [11:28:09]OFD Sender: No OFD packet to send [11:28:14]OFD Sender: No OFD packet to send [11:28:19]OFD Sender: No OFD packet to send [11:28:24]OFD Sender: No OFD packet to send [11:28:29]OFD Sender: No OFD packet to send [11:28:34]OFD Sender: No OFD packet to send [11:28:39]OFD Sender: No OFD packet to send [11:28:44]OFD Sender: No OFD packet to send [11:28:49]OFD Sender: No OFD packet to send [11:28:54]OFD Sender: No OFD packet to send [11:28:59]OFD Sender: No OFD packet to send [11:29:04]OFD Sender: No OFD packet to send [11:29:09]OFD Sender: No OFD packet to send [11:29:14]OFD Sender: No OFD packet to send [11:29:19]OFD Sender: No OFD packet to send [11:29:24]OFD Sender: No OFD packet to send [11:29:24]accept exits with 7 [11:29:24]New connection [11:29:24]New thread 3067395428 created [11:29:24]Thread 3067252068 joined [11:29:24]Waiting for new connection... [11:29:24] Sock 7.Parse request [11:29:24]Sock 7.Check first char [11:29:24]Sock 7.First char is OK [11:29:24]request: POST /json_proto HTTP/1.0 [11:29:24]Method: POST [11:29:24]URL: /json_proto [11:29:24]Method is POST - this is cgi request [11:29:24]url: /json_proto [11:29:24]query_string will be loaded in cgi processing [11:29:24]execute_cgi json_proto POST (null) [11:29:24]execute_cgi path=json_proto method=POST [11:29:24]POST find Content-Length [11:29:24]Host: 172.17.48.197:8080 [11:29:24]Content-Length: 678 [11:29:24]Content-Type: application/json [11:29:24] [11:29:24]POST finish read [11:29:24]Found Content-Length = 678 [11:29:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106142", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 7.200, "sum" : 500.40, "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:29:24]execute_script... [11:29:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106142", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 7.200, "sum" : 500.40, "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:29:24]POST & json_proto [11:29:24]process_json_proto [11:29:24]json parsed OK: [11:29:24]protocol is kg_v1.0 [11:29:24]action value=close_receipt [11:29:24]process_action close_receipt [11:29:24]cmd_close_receipt [11:29:24]MH_GetDate [11:29:24]Write to MH i2c: F0 00 00 94 1F A2 [11:29:24]Write i2c OK [11:29:24]MH_I2C_Read... [11:29:24]Read from MH i2c: F0 [11:29:24]MH_I2C_Read... [11:29:24]Read from MH i2c: F0 09 00 [11:29:24]MH_I2C_Read... [11:29:24]Read from MH i2c: F0 09 00 94 1F 00 17 5F E4 65 6C AF E3 65 CD [11:29:24]GetLastDocTimeStamp 1709464769 [11:29:24]current date 1709465367 [11:29:24]FM_GetShiftState [11:29:24]SAM_PROTO_GetShiftState [11:29:24]wFMCommunicate request_size=4 [11:29:24]MH_SAM_APDU [11:29:24]CAPDU: 80 13 01 00 [11:29:24]Write to MH i2c: E2 08 00 95 1F 80 13 01 00 00 00 00 00 31 [11:29:24]Write i2c OK [11:29:24]MH_I2C_Read... [11:29:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:24]Read from MH i2c: E2 [11:29:24]MH_I2C_Read... [11:29:24]Read from MH i2c: E2 0E 00 [11:29:24]MH_I2C_Read... [11:29:24]Read from MH i2c: E2 0E 00 95 1F 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 F3 [11:29:24]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [11:29:24]wFMCommunicate OK [11:29:24]SAM_PROTO_GetShiftState done [11:29:24]FM_GetShiftState done [11:29:24]opened in 1709425579 [11:29:24]opened+sec_in_day 1709511979 [11:29:24]quantity*price = 50040 [11:29:24]sum+1 = 50041 [11:29:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 77 03.03.2024 11:29 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123220 ФПД: 276818434003624 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T112927&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123220&fm=276818434003624&tin=02508201610067®Number=0000000000090573&sum=50000 [11:29:25]StoreToDocumentArchive [11:29:25]shift 323 fd 123220 [11:29:25]save to /storage/0323/doc_00123220 [11:29:25]save last doc name /storage/0323/doc_00123220 to /storage/kkm_last_doc_name [11:29:25]save OK [11:29:25]Clear old archive folders... [11:29:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:29:25]tlvbuf is 00E0D210 [11:29:25]SAM_PROTO_ClearQueue [11:29:25]wFMCommunicate request_size=4 [11:29:25]MH_SAM_APDU [11:29:25]CAPDU: 80 09 00 00 [11:29:25]Write to MH i2c: E2 08 00 A2 1F 80 09 00 00 00 00 00 00 33 [11:29:25]Write i2c OK [11:29:25]MH_I2C_Read... [11:29:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:29:26]Read from MH i2c: E2 [11:29:26]MH_I2C_Read... [11:29:26]Read from MH i2c: E2 03 00 [11:29:26]MH_I2C_Read... [11:29:26]Read from MH i2c: E2 03 00 A2 1F 00 90 00 35 [11:29:26]RAPDU: 90 00 [11:29:26]wFMCommunicate OK [11:29:26]SAM_PROTO_ClearQueue done [11:29:26]KKMCreateOFDPacket [11:29:26]OFDProtocolAddRootSTLVToBuf [11:29:26]FM_MakeSignedData [11:29:26]FM_MakeSignedData [11:29:26]SAM_PROTO_SignData [11:29:26]wFMCommunicate request_size=4 [11:29:26]MH_SAM_APDU [11:29:26]CAPDU: 80 0D 01 02 [11:29:26]Write to MH i2c: E2 08 00 A3 1F 80 0D 01 02 00 00 00 00 3B [11:29:26]Write i2c OK [11:29:26]MH_I2C_Read... [11:29:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:29:26]Read from MH i2c: E2 [11:29:26]MH_I2C_Read... [11:29:26]Read from MH i2c: E2 03 00 [11:29:26]MH_I2C_Read... [11:29:26]Read from MH i2c: E2 03 00 A3 1F 00 90 00 36 [11:29:26]RAPDU: 90 00 [11:29:26]wFMCommunicate OK [11:29:26]wFMCommunicate request_size=255 [11:29:26]MH_SAM_APDU [11:29:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 1C 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 78 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 4D 00 00 00 F4 03 04 00 17 5F E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 54 E1 01 00 35 04 06 00 FB [11:29:26]Write to MH i2c: E2 02 01 A4 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 1C 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 78 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 4D 00 00 00 F4 03 04 00 17 5F E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 54 E1 01 00 35 04 06 00 FB 00 00 44 [11:29:26]Write i2c OK [11:29:26]MH_I2C_Read... [11:29:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:26]Read from MH i2c: E2 [11:29:26]MH_I2C_Read... [11:29:26]Read from MH i2c: E2 03 00 [11:29:26]MH_I2C_Read... [11:29:26]Read from MH i2c: E2 03 00 A4 1F 00 90 00 37 [11:29:26]RAPDU: 90 00 [11:29:26]wFMCommunicate OK [11:29:26]wFMCommunicate request_size=10 [11:29:26]MH_SAM_APDU [11:29:26]CAPDU: 80 0D 02 02 05 C3 D0 6D 12 A8 [11:29:26]Write to MH i2c: E2 0D 00 A5 1F 80 0D 02 02 05 00 C3 D0 6D 12 A8 00 00 02 [11:29:26]Write i2c OK [11:29:26]MH_I2C_Read... [11:29:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:26]Read from MH i2c: E2 [11:29:26]MH_I2C_Read... [11:29:26]Read from MH i2c: E2 03 00 [11:29:26]MH_I2C_Read... [11:29:26]Read from MH i2c: E2 03 00 A5 1F 00 90 00 38 [11:29:26]RAPDU: 90 00 [11:29:26]wFMCommunicate OK [11:29:26]wFMCommunicate request_size=4 [11:29:26]MH_SAM_APDU [11:29:26]CAPDU: 80 0D 03 02 [11:29:26]Write to MH i2c: E2 08 00 A6 1F 80 0D 03 02 00 00 00 00 40 [11:29:26]Write i2c OK [11:29:26]MH_I2C_Read... [11:29:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:29:26]Read from MH i2c: E2 [11:29:26]MH_I2C_Read... [11:29:26]Read from MH i2c: E2 0B 00 [11:29:26]MH_I2C_Read... [11:29:26]Read from MH i2c: E2 0B 00 A6 1F 00 86 42 4B 65 51 9A 6D 40 90 00 51 [11:29:26]RAPDU: 86 42 4B 65 51 9A 6D 40 90 00 [11:29:26]wFMCommunicate OK [11:29:26]SAM_PROTO_SignData done [11:29:26]FM_MakeSignedData done [11:29:26]CreateOFDProtocolMessage [11:29:26]wFMCommunicate request_size=4 [11:29:26]MH_SAM_APDU [11:29:26]CAPDU: 80 11 00 00 [11:29:26]Write to MH i2c: E2 08 00 A7 1F 80 11 00 00 00 00 00 00 40 [11:29:26]Write i2c OK [11:29:26]MH_I2C_Read... [11:29:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:26]Read from MH i2c: E2 [11:29:26]MH_I2C_Read... [11:29:26]Read from MH i2c: E2 17 00 [11:29:26]MH_I2C_Read... [11:29:26]Read from MH i2c: E2 17 00 A7 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 9E [11:29:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [11:29:26]wFMCommunicate OK [11:29:26]CreateOFDProtocolMessage done [11:29:26]OFDSenderStorePacket 123220 [11:29:26]StoreOFDPacket docnum=123220 [11:29:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 4B 13 07 01 01 B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 1C 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 78 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 4D 00 00 00 F4 03 04 00 17 5F E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 54 E1 01 00 35 04 06 00 FB C3 D0 6D 12 A8 86 42 4B 65 51 9A 6D 40 [11:29:26]CheckFolder [11:29:26]dirname=/storage/ofd_packets [11:29:26]CheckFolder done [11:29:26]ProducePacketName [11:29:26]name=ofd_packets/00123220 [11:29:26]NVStorageSaveData ofd_packets/00123220 [11:29:26]File name is /storage/ofd_packets/00123220 [11:29:26]Write 301 bytes [11:29:26]NVStorageSaveData done [11:29:26]OFDSenderStorePacket done [11:29:26]KKMCreateOFDPacket done [11:29:26]NVStorageSaveData kkm_last_timestamp [11:29:26]File name is /storage/kkm_last_timestamp [11:29:26]Write 4 bytes [11:29:26]NVStorageSaveData done [11:29:26]ExternCall_PrintAddStr [11:29:26]wPrintStart [11:29:26]Write to MH i2c: 01 00 00 A8 1F C7 [11:29:26]Write i2c OK [11:29:26]MH_I2C_Read... [11:29:26]Read from MH i2c: 01 [11:29:26]MH_I2C_Read... [11:29:26]Read from MH i2c: 01 07 00 [11:29:26]MH_I2C_Read... [11:29:26]Read from MH i2c: 01 07 00 A8 1F 00 00 00 00 00 FF 0F DC [11:29:26]RasterBufferAndPrint [11:29:26]line Счет N : (1)1106142 [11:29:26]line ИНН: 02508201610067 [11:29:26]line Контрольно-Кассовый Чек [11:29:26]line ПРОДАЖА [11:29:26]line ТРК (МРК, ГНК) : 53 [11:29:26]line Товар: 2710124500 [11:29:26]line Аи-95-К-5 [11:29:26]line 7.200 * 69.50 [11:29:26]line = 500.40 [11:29:26]line НДС 12% НСП 1% [11:29:26]line > о реализуемом товаре [11:29:26]line ОКРУГЛЕНИЕ: -0.40 [11:29:26]line ИТОГО: 500.00 [11:29:26]line Внесено: 500.00 [11:29:26]line СДАЧА: 0.00 [11:29:26]line НСП 1% : 4.43 [11:29:26]line НДС 12% : 53.14 [11:29:26]line Наличными: 500.00 [11:29:26]line Безнал.: 0.00 [11:29:26]line Место: АЗС № 25 "Партнер Нефть" [11:29:26]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [11:29:26]line СНО: Общий режим [11:29:26]line Чек 77 03.03.2024 11:29 [11:29:26]line Смена: 323 ФФД: 1.0 [11:29:26]line ЗНМ: 0300000019 [11:29:26]line РНМ: 0000000000090573 [11:29:26]line Версия ККМ: 001 [11:29:26]line ФМ: 0000000000874798 [11:29:26]line ФД: 123220 [11:29:26]line ФПД: 276818434003624 [11:29:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T112927&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123220&fm=276818434003624&tin=02508201610067®Number=0000000000090573&sum=50000 [11:29:26]OFD Sender: Processing packet 123220 [packets to send 112, broken 111] [11:29:26]ProducePacketName [11:29:26]name=ofd_packets/00123220 [11:29:26]OFD Sender: To server: pG, [11:29:26]CommunicateWithHost lk.salyk.kg:30040 [11:29:26]ConnectInit lk.salyk.kg [11:29:26]written 0, free lines is 4095 [11:29:26]Connected sock=10 [11:29: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 37 39 38 0F 01 00 00 4B 13 07 01 01 B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 1C 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 78 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 4D 00 00 00 F4 03 04 00 17 5F E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 54 E1 01 00 35 04 06 00 FB C3 D0 6D 12 A8 86 42 4B 65 51 9A 6D 40 [11:29:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 17 58 47 00 87 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 37 39 38 10 04 04 00 54 E1 01 00 F4 03 04 00 43 0B E4 65 B6 04 01 00 00 81 CE 21 40 F3 3F AD 49 [11:29:27]CommunicateWithHost err = 0 [11:29:27]CheckOFDResponse [11:29:27]1017 (14) - 77093643461234 [11:29:27]1041 (16) - 0000000000874798 [11:29:27]1040 (4) - 123220 [11:29:27]1012 (4) - 03.03.2024 05:31 [11:29:27]1206 (1) - 0 [11:29:27]OFD Sender: Remove packet 123220 [11:29:27]ProducePacketName [11:29:27]name=ofd_packets/00123220 [11:29:27]NVStorageDeleteData [11:29:27]Write to MH i2c: 01 00 00 D3 1F F2 [11:29:27]Write i2c OK [11:29:27]MH_I2C_Read... [11:29:27]Read from MH i2c: 01 [11:29:27]MH_I2C_Read... [11:29:27]Read from MH i2c: 01 07 00 [11:29:27]MH_I2C_Read... [11:29:27]Read from MH i2c: 01 07 00 D3 1F 00 00 00 00 00 FB 0C 00 [11:29:27]RasterBufferAndPrint [11:29:27]line [11:29:27]line [11:29:27]line [11:29:27]line [11:29:27]line [11:29:27]written 0, free lines is 3329 [11:29:27]MH_Cut [11:29:27]Write to MH i2c: D1 01 00 DA 1F 01 CB [11:29:27]Write i2c OK [11:29:27]MH_I2C_Read... [11:29:27]Read from MH i2c: D1 [11:29:27]MH_I2C_Read... [11:29:27]Read from MH i2c: D1 01 00 [11:29:27]MH_I2C_Read... [11:29:27]Read from MH i2c: D1 01 00 DA 1F 00 CA [11:29:27]Write to MH i2c: 01 00 00 DB 1F FA [11:29:27]Write i2c OK [11:29:27]MH_I2C_Read... [11:29:27]OFD Sender: No OFD packet to send [11:29:28]*** Cut start [11:29:28]*** Purtial cut [11:29:28]*** Stage 1: CUTSNS_PIN = 1 [11:29:30]Read from MH i2c: 01 [11:29:30]MH_I2C_Read... [11:29:30]*** Stop cut motor [11:29:30]*** Cut end [11:29:30]Read from MH i2c: 01 07 00 [11:29:30]MH_I2C_Read... [11:29:30]Read from MH i2c: 01 07 00 DB 1F 00 00 00 00 00 FF 0F 0F [11:29:30]process_action close_receipt done [11:29:30]requested_data is exist [11:29:30]produce_requested_data [11:29:30]requested_item fm.sn is exist - process it [11:29:30]wFMCommunicate request_size=4 [11:29:30]MH_SAM_APDU [11:29:30]CAPDU: 80 11 00 00 [11:29:30]Write to MH i2c: E2 08 00 DC 1F 80 11 00 00 00 00 00 00 75 [11:29:30]Write i2c OK [11:29:30]MH_I2C_Read... [11:29:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:30]Read from MH i2c: E2 [11:29:30]MH_I2C_Read... [11:29:30]Read from MH i2c: E2 17 00 [11:29:30]MH_I2C_Read... [11:29:30]Read from MH i2c: E2 17 00 DC 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 D3 [11:29:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [11:29:30]wFMCommunicate OK [11:29:30]requested_item fd.num is exist - process it [11:29:30]SAM_PROTO_GetFieldsCounters [11:29:30]wFMCommunicate request_size=4 [11:29:30]MH_SAM_APDU [11:29:30]CAPDU: 80 13 00 00 [11:29:30]Write to MH i2c: E2 08 00 DD 1F 80 13 00 00 00 00 00 00 78 [11:29:30]Write i2c OK [11:29:30]MH_I2C_Read... [11:29:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:29:30]Read from MH i2c: E2 [11:29:30]MH_I2C_Read... [11:29:30]Read from MH i2c: E2 62 00 [11:29:30]MH_I2C_Read... [11:29:30]Read from MH i2c: E2 62 00 DD 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 54 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 04 [11:29: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 54 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:29:30]wFMCommunicate OK [11:29:30]SAM_PROTO_GetFieldsCounters done [11:29:30]requested_item shift.num is exist - process it [11:29:30]requested_item shift.opened is exist - process it [11:29:30]req_shift_opened [11:29:30]FM_GetShiftState [11:29:30]SAM_PROTO_GetShiftState [11:29:30]wFMCommunicate request_size=4 [11:29:30]MH_SAM_APDU [11:29:30]CAPDU: 80 13 01 00 [11:29:30]Write to MH i2c: E2 08 00 DE 1F 80 13 01 00 00 00 00 00 7A [11:29:30]Write i2c OK [11:29:30]MH_I2C_Read... [11:29:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:30]Read from MH i2c: E2 [11:29:30]MH_I2C_Read... [11:29:30]Read from MH i2c: E2 0E 00 [11:29:30]MH_I2C_Read... [11:29:30]Read from MH i2c: E2 0E 00 DE 1F 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 3C [11:29:30]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [11:29:30]wFMCommunicate OK [11:29:30]SAM_PROTO_GetShiftState done [11:29:30]FM_GetShiftState done [11:29:30]req_shift_opened done [11:29:30]requested_item shift.open_date is exist - process it [11:29:30]req_shift_open_date [11:29:30]req_shift_open_date done [11:29:30]produce_requested_data done [11:29:30]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123220,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [11:29:30]process_action_free close_receipt [11:29:30]json_value_free [11:29:30]json_value_free done [11:29:30]process_json_proto returns [11:29:30]Send response to host [11:29:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123220,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [11:29:30]free response buf [11:29:30]execute_script done [11:29:30]execute_script returns [11:29:30]free content buf [11:29:30]Sock 7.Close socket [11:29:30]Sock 7.Thread stoped [11:29:32]OFD Sender: No OFD packet to send [11:29:37]OFD Sender: No OFD packet to send [11:29:42]OFD Sender: No OFD packet to send [11:29:47]OFD Sender: No OFD packet to send [11:29:52]OFD Sender: No OFD packet to send [11:29:57]OFD Sender: No OFD packet to send [11:30:02]OFD Sender: No OFD packet to send [11:30:07]OFD Sender: No OFD packet to send [11:30:12]OFD Sender: No OFD packet to send [11:30:17]OFD Sender: No OFD packet to send [11:30:22]OFD Sender: No OFD packet to send [11:30:27]OFD Sender: No OFD packet to send [11:30:32]OFD Sender: No OFD packet to send [11:30:37]OFD Sender: No OFD packet to send [11:30:42]OFD Sender: No OFD packet to send [11:30:47]OFD Sender: No OFD packet to send [11:30:52]OFD Sender: No OFD packet to send [11:30:57]OFD Sender: No OFD packet to send [11:31:02]OFD Sender: No OFD packet to send [11:31:07]OFD Sender: No OFD packet to send [11:31:12]OFD Sender: No OFD packet to send [11:31:17]OFD Sender: No OFD packet to send [11:31:22]OFD Sender: No OFD packet to send [11:31:27]OFD Sender: No OFD packet to send [11:31:32]OFD Sender: No OFD packet to send [11:31:37]OFD Sender: No OFD packet to send [11:31:42]OFD Sender: No OFD packet to send [11:31:47]OFD Sender: No OFD packet to send [11:31:52]OFD Sender: No OFD packet to send [11:31:57]OFD Sender: No OFD packet to send [11:32:02]OFD Sender: No OFD packet to send [11:32:07]OFD Sender: No OFD packet to send [11:32:12]OFD Sender: No OFD packet to send [11:32:17]OFD Sender: No OFD packet to send [11:32:22]OFD Sender: No OFD packet to send [11:32:27]OFD Sender: No OFD packet to send [11:32:32]OFD Sender: No OFD packet to send [11:32:37]OFD Sender: No OFD packet to send [11:32:42]OFD Sender: No OFD packet to send [11:32:47]OFD Sender: No OFD packet to send [11:32:52]OFD Sender: No OFD packet to send [11:32:57]OFD Sender: No OFD packet to send [11:33:02]OFD Sender: No OFD packet to send [11:33:07]OFD Sender: No OFD packet to send [11:33:12]OFD Sender: No OFD packet to send [11:33:17]OFD Sender: No OFD packet to send [11:33:22]OFD Sender: No OFD packet to send [11:33:27]OFD Sender: No OFD packet to send [11:33:32]OFD Sender: No OFD packet to send [11:33:37]OFD Sender: No OFD packet to send [11:33:42]OFD Sender: No OFD packet to send [11:33:47]OFD Sender: No OFD packet to send [11:33:52]OFD Sender: No OFD packet to send [11:33:57]OFD Sender: No OFD packet to send [11:34:02]OFD Sender: No OFD packet to send [11:34:07]OFD Sender: No OFD packet to send [11:34:12]OFD Sender: No OFD packet to send [11:34:17]OFD Sender: No OFD packet to send [11:34:22]OFD Sender: No OFD packet to send [11:34:27]OFD Sender: No OFD packet to send [11:34:32]OFD Sender: No OFD packet to send [11:34:37]OFD Sender: No OFD packet to send [11:34:42]OFD Sender: No OFD packet to send [11:34:48]OFD Sender: No OFD packet to send [11:34:53]OFD Sender: No OFD packet to send [11:34:58]OFD Sender: No OFD packet to send [11:35:03]OFD Sender: No OFD packet to send [11:35:08]OFD Sender: No OFD packet to send [11:35:13]OFD Sender: No OFD packet to send [11:35:18]OFD Sender: No OFD packet to send [11:35:23]OFD Sender: No OFD packet to send [11:35:28]OFD Sender: No OFD packet to send [11:35:33]OFD Sender: No OFD packet to send [11:35:38]OFD Sender: No OFD packet to send [11:35:43]OFD Sender: No OFD packet to send [11:35:48]OFD Sender: No OFD packet to send [11:35:53]OFD Sender: No OFD packet to send [11:35:58]OFD Sender: No OFD packet to send [11:36:03]OFD Sender: No OFD packet to send [11:36:08]OFD Sender: No OFD packet to send [11:36:13]OFD Sender: No OFD packet to send [11:36:18]OFD Sender: No OFD packet to send [11:36:23]OFD Sender: No OFD packet to send [11:36:28]OFD Sender: No OFD packet to send [11:36:33]OFD Sender: No OFD packet to send [11:36:38]OFD Sender: No OFD packet to send [11:36:43]OFD Sender: No OFD packet to send [11:36:48]OFD Sender: No OFD packet to send [11:36:53]OFD Sender: No OFD packet to send [11:36:58]OFD Sender: No OFD packet to send [11:37:03]OFD Sender: No OFD packet to send [11:37:08]OFD Sender: No OFD packet to send [11:37:13]OFD Sender: No OFD packet to send [11:37:18]OFD Sender: No OFD packet to send [11:37:23]OFD Sender: No OFD packet to send [11:37:28]OFD Sender: No OFD packet to send [11:37:33]OFD Sender: No OFD packet to send [11:37:38]OFD Sender: No OFD packet to send [11:37:43]OFD Sender: No OFD packet to send [11:37:48]OFD Sender: No OFD packet to send [11:37:53]OFD Sender: No OFD packet to send [11:37:58]OFD Sender: No OFD packet to send [11:38:03]OFD Sender: No OFD packet to send [11:38:08]OFD Sender: No OFD packet to send [11:38:13]OFD Sender: No OFD packet to send [11:38:18]OFD Sender: No OFD packet to send [11:38:23]OFD Sender: No OFD packet to send [11:38:28]OFD Sender: No OFD packet to send [11:38:33]OFD Sender: No OFD packet to send [11:38:38]OFD Sender: No OFD packet to send [11:38:43]OFD Sender: No OFD packet to send [11:38:48]OFD Sender: No OFD packet to send [11:38:53]OFD Sender: No OFD packet to send [11:38:58]OFD Sender: No OFD packet to send [11:39:03]OFD Sender: No OFD packet to send [11:39:08]OFD Sender: No OFD packet to send [11:39:13]OFD Sender: No OFD packet to send [11:39:18]OFD Sender: No OFD packet to send [11:39:23]OFD Sender: No OFD packet to send [11:39:28]OFD Sender: No OFD packet to send [11:39:33]OFD Sender: No OFD packet to send [11:39:38]OFD Sender: No OFD packet to send [11:39:43]OFD Sender: No OFD packet to send [11:39:48]OFD Sender: No OFD packet to send [11:39:53]OFD Sender: No OFD packet to send [11:39:55]accept exits with 9 [11:39:55]New connection [11:39:55]New thread 3067252068 created [11:39:55]Thread 3067395428 joined [11:39:55]Waiting for new connection... [11:39:55] Sock 9.Parse request [11:39:55]Sock 9.Check first char [11:39:55]Sock 9.First char is OK [11:39:55]request: POST /json_proto HTTP/1.0 [11:39:55]Method: POST [11:39:55]URL: /json_proto [11:39:55]Method is POST - this is cgi request [11:39:55]url: /json_proto [11:39:55]query_string will be loaded in cgi processing [11:39:55]execute_cgi json_proto POST (null) [11:39:55]execute_cgi path=json_proto method=POST [11:39:55]POST find Content-Length [11:39:55]Host: 172.17.48.197:8080 [11:39:55]Content-Length: 688 [11:39:55]Content-Type: application/json [11:39:55] [11:39:55]POST finish read [11:39:55]Found Content-Length = 688 [11:39:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106145", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 70.90, "quantity" : 35.270, "sum" : 2500.64, "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:39:55]execute_script... [11:39: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)1106145", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 70.90, "quantity" : 35.270, "sum" : 2500.64, "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:39:55]POST & json_proto [11:39:55]process_json_proto [11:39:55]json parsed OK: [11:39:55]protocol is kg_v1.0 [11:39:55]action value=close_receipt [11:39:55]process_action close_receipt [11:39:55]cmd_close_receipt [11:39:55]MH_GetDate [11:39:55]Write to MH i2c: F0 00 00 DF 1F ED [11:39:55]Write i2c OK [11:39:55]MH_I2C_Read... [11:39:55]Read from MH i2c: F0 [11:39:55]MH_I2C_Read... [11:39:55]Read from MH i2c: F0 09 00 [11:39:55]MH_I2C_Read... [11:39:55]Read from MH i2c: F0 09 00 DF 1F 00 8E 61 E4 65 6C AF E3 65 91 [11:39:55]GetLastDocTimeStamp 1709465367 [11:39:55]current date 1709465998 [11:39:55]FM_GetShiftState [11:39:55]SAM_PROTO_GetShiftState [11:39:55]wFMCommunicate request_size=4 [11:39:55]MH_SAM_APDU [11:39:55]CAPDU: 80 13 01 00 [11:39:55]Write to MH i2c: E2 08 00 E0 1F 80 13 01 00 00 00 00 00 7C [11:39:55]Write i2c OK [11:39:55]MH_I2C_Read... [11:39:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:39:55]Read from MH i2c: E2 [11:39:55]MH_I2C_Read... [11:39:55]Read from MH i2c: E2 0E 00 [11:39:55]MH_I2C_Read... [11:39:55]Read from MH i2c: E2 0E 00 E0 1F 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 3E [11:39:55]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [11:39:55]wFMCommunicate OK [11:39:55]SAM_PROTO_GetShiftState done [11:39:55]FM_GetShiftState done [11:39:55]opened in 1709425579 [11:39:55]opened+sec_in_day 1709511979 [11:39:55]quantity*price = 250064 [11:39:55]sum+1 = 250065 [11:39:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.55 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 78 03.03.2024 11:39 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123221 ФПД: 119597586805708 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T113958&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123221&fm=119597586805708&tin=02508201610067®Number=0000000000090573&sum=250000 [11:39:56]StoreToDocumentArchive [11:39:56]shift 323 fd 123221 [11:39:56]save to /storage/0323/doc_00123221 [11:39:56]save last doc name /storage/0323/doc_00123221 to /storage/kkm_last_doc_name [11:39:56]save OK [11:39:56]Clear old archive folders... [11:39:56]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:39:56]tlvbuf is 00E4E160 [11:39:56]SAM_PROTO_ClearQueue [11:39:56]wFMCommunicate request_size=4 [11:39:56]MH_SAM_APDU [11:39:56]CAPDU: 80 09 00 00 [11:39:56]Write to MH i2c: E2 08 00 ED 1F 80 09 00 00 00 00 00 00 7E [11:39:56]Write i2c OK [11:39:56]MH_I2C_Read... [11:39:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:39:57]Read from MH i2c: E2 [11:39:57]MH_I2C_Read... [11:39:57]Read from MH i2c: E2 03 00 [11:39:57]MH_I2C_Read... [11:39:57]Read from MH i2c: E2 03 00 ED 1F 00 90 00 80 [11:39:57]RAPDU: 90 00 [11:39:57]wFMCommunicate OK [11:39:57]SAM_PROTO_ClearQueue done [11:39:57]KKMCreateOFDPacket [11:39:57]OFDProtocolAddRootSTLVToBuf [11:39:57]FM_MakeSignedData [11:39:57]FM_MakeSignedData [11:39:57]SAM_PROTO_SignData [11:39:57]wFMCommunicate request_size=4 [11:39:57]MH_SAM_APDU [11:39:57]CAPDU: 80 0D 01 02 [11:39:57]Write to MH i2c: E2 08 00 EE 1F 80 0D 01 02 00 00 00 00 86 [11:39:57]Write i2c OK [11:39:57]MH_I2C_Read... [11:39:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:39:57]Read from MH i2c: E2 [11:39:57]MH_I2C_Read... [11:39:57]Read from MH i2c: E2 03 00 [11:39:57]MH_I2C_Read... [11:39:57]Read from MH i2c: E2 03 00 EE 1F 00 90 00 81 [11:39:57]RAPDU: 90 00 [11:39:57]wFMCommunicate OK [11:39:57]wFMCommunicate request_size=255 [11:39:57]MH_SAM_APDU [11:39: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 35 FF 03 08 00 03 C6 89 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 D0 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 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 4E 00 00 00 F4 03 04 00 8E 61 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 55 E1 01 00 35 04 06 00 [11:39:57]Write to MH i2c: E2 02 01 EF 1F 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 35 FF 03 08 00 03 C6 89 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 D0 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 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 4E 00 00 00 F4 03 04 00 8E 61 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 55 E1 01 00 35 04 06 00 00 00 2A [11:39:57]Write i2c OK [11:39:57]MH_I2C_Read... [11:39:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:39:57]Read from MH i2c: E2 [11:39:57]MH_I2C_Read... [11:39:57]Read from MH i2c: E2 03 00 [11:39:57]MH_I2C_Read... [11:39:57]Read from MH i2c: E2 03 00 EF 1F 00 90 00 82 [11:39:57]RAPDU: 90 00 [11:39:57]wFMCommunicate OK [11:39:57]wFMCommunicate request_size=11 [11:39:57]MH_SAM_APDU [11:39:57]CAPDU: 80 0D 02 02 06 6C C5 FB AD 73 CC [11:39:57]Write to MH i2c: E2 0E 00 F0 1F 80 0D 02 02 06 00 6C C5 FB AD 73 CC 00 00 AD [11:39:57]Write i2c OK [11:39:57]MH_I2C_Read... [11:39:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:39:57]Read from MH i2c: E2 [11:39:57]MH_I2C_Read... [11:39:57]Read from MH i2c: E2 03 00 [11:39:57]MH_I2C_Read... [11:39:57]Read from MH i2c: E2 03 00 F0 1F 00 90 00 83 [11:39:57]RAPDU: 90 00 [11:39:57]wFMCommunicate OK [11:39:57]wFMCommunicate request_size=4 [11:39:57]MH_SAM_APDU [11:39:57]CAPDU: 80 0D 03 02 [11:39:57]Write to MH i2c: E2 08 00 F1 1F 80 0D 03 02 00 00 00 00 8B [11:39:57]Write i2c OK [11:39:57]MH_I2C_Read... [11:39:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:39:57]Read from MH i2c: E2 [11:39:57]MH_I2C_Read... [11:39:57]Read from MH i2c: E2 0B 00 [11:39:57]MH_I2C_Read... [11:39:57]Read from MH i2c: E2 0B 00 F1 1F 00 1A 55 41 09 30 6A 49 15 90 00 3D [11:39:57]RAPDU: 1A 55 41 09 30 6A 49 15 90 00 [11:39:57]wFMCommunicate OK [11:39:57]SAM_PROTO_SignData done [11:39:57]FM_MakeSignedData done [11:39:57]CreateOFDProtocolMessage [11:39:57]wFMCommunicate request_size=4 [11:39:57]MH_SAM_APDU [11:39:57]CAPDU: 80 11 00 00 [11:39:57]Write to MH i2c: E2 08 00 F2 1F 80 11 00 00 00 00 00 00 8B [11:39:57]Write i2c OK [11:39:57]MH_I2C_Read... [11:39:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:39:57]Read from MH i2c: E2 [11:39:57]MH_I2C_Read... [11:39:57]Read from MH i2c: E2 17 00 [11:39:57]MH_I2C_Read... [11:39:57]Read from MH i2c: E2 17 00 F2 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 E9 [11:39:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [11:39:57]wFMCommunicate OK [11:39:57]CreateOFDProtocolMessage done [11:39:57]OFDSenderStorePacket 123221 [11:39:57]StoreOFDPacket docnum=123221 [11:39:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 01 00 00 5F F0 08 01 96 AF 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 35 FF 03 08 00 03 C6 89 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 D0 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 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 4E 00 00 00 F4 03 04 00 8E 61 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 55 E1 01 00 35 04 06 00 6C C5 FB AD 73 CC 1A 55 41 09 30 6A 49 15 [11:39:57]CheckFolder [11:39:57]dirname=/storage/ofd_packets [11:39:57]CheckFolder done [11:39:57]ProducePacketName [11:39:57]name=ofd_packets/00123221 [11:39:57]NVStorageSaveData ofd_packets/00123221 [11:39:57]File name is /storage/ofd_packets/00123221 [11:39:57]Write 302 bytes [11:39:57]NVStorageSaveData done [11:39:57]OFDSenderStorePacket done [11:39:57]KKMCreateOFDPacket done [11:39:57]NVStorageSaveData kkm_last_timestamp [11:39:57]File name is /storage/kkm_last_timestamp [11:39:57]Write 4 bytes [11:39:57]NVStorageSaveData done [11:39:57]ExternCall_PrintAddStr [11:39:57]wPrintStart [11:39:57]Write to MH i2c: 01 00 00 F3 1F 12 [11:39:57]Write i2c OK [11:39:57]MH_I2C_Read... [11:39:57]Read from MH i2c: 01 [11:39:57]MH_I2C_Read... [11:39:57]Read from MH i2c: 01 07 00 [11:39:57]MH_I2C_Read... [11:39:57]Read from MH i2c: 01 07 00 F3 1F 00 00 00 00 00 FF 0F 27 [11:39:57]RasterBufferAndPrint [11:39:57]line Счет N : (1)1106145 [11:39:57]line ИНН: 02508201610067 [11:39:57]line Контрольно-Кассовый Чек [11:39:57]line ПРОДАЖА [11:39:57]line ТРК (МРК, ГНК) : 41 [11:39:57]line Товар: 2710194210 [11:39:57]line ДТ(л)-К-5 [11:39:57]line 35.270 * 70.90 [11:39:57]line = 2500.64 [11:39:57]line НДС 12% НСП 1% [11:39:57]line > о реализуемом товаре [11:39:57]line ОКРУГЛЕНИЕ: -0.64 [11:39:57]line ИТОГО: 2500.00 [11:39:57]line Внесено: 2500.00 [11:39:57]line СДАЧА: 0.00 [11:39:57]line НСП 1% : 22.13 [11:39:57]line НДС 12% : 265.55 [11:39:57]line Наличными: 2500.00 [11:39:57]line Безнал.: 0.00 [11:39:57]line Место: АЗС № 25 "Партнер Нефть" [11:39:57]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [11:39:57]line СНО: Общий режим [11:39:57]line Чек 78 03.03.2024 11:39 [11:39:57]line Смена: 323 ФФД: 1.0 [11:39:57]line ЗНМ: 0300000019 [11:39:57]line РНМ: 0000000000090573 [11:39:57]line Версия ККМ: 001 [11:39:57]line ФМ: 0000000000874798 [11:39:57]line ФД: 123221 [11:39:57]line ФПД: 119597586805708 [11:39:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T113958&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123221&fm=119597586805708&tin=02508201610067®Number=0000000000090573&sum=250000 [11:39:57]OFD Sender: Processing packet 123221 [packets to send 112, broken 111] [11:39:57]ProducePacketName [11:39:57]name=ofd_packets/00123221 [11:39:57]OFD Sender: To server: pG, [11:39:57]CommunicateWithHost lk.salyk.kg:30040 [11:39:57]ConnectInit lk.salyk.kg [11:39:57]written 0, free lines is 4095 [11:39:57]Connected sock=10 [11:39: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 37 39 38 10 01 00 00 5F F0 08 01 96 AF 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 35 FF 03 08 00 03 C6 89 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 D0 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 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 4E 00 00 00 F4 03 04 00 8E 61 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 55 E1 01 00 35 04 06 00 6C C5 FB AD 73 CC 1A 55 41 09 30 6A 49 15 [11:39:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 C5 DA 47 00 2E 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 55 E1 01 00 F4 03 04 00 BA 0D E4 65 B6 04 01 00 00 54 8F 02 25 64 C0 D4 74 [11:39:58]CommunicateWithHost err = 0 [11:39:58]CheckOFDResponse [11:39:58]1017 (14) - 77093643461234 [11:39:58]1041 (16) - 0000000000874798 [11:39:58]1040 (4) - 123221 [11:39:58]1012 (4) - 03.03.2024 05:42 [11:39:58]1206 (1) - 0 [11:39:58]OFD Sender: Remove packet 123221 [11:39:58]ProducePacketName [11:39:58]name=ofd_packets/00123221 [11:39:58]NVStorageDeleteData [11:39:58]Write to MH i2c: 01 00 00 1E 20 3E [11:39:58]Write i2c OK [11:39:58]MH_I2C_Read... [11:39:58]Read from MH i2c: 01 [11:39:58]MH_I2C_Read... [11:39:58]Read from MH i2c: 01 07 00 [11:39:58]MH_I2C_Read... [11:39:58]Read from MH i2c: 01 07 00 1E 20 00 00 00 00 00 FE 0C 4F [11:39:58]RasterBufferAndPrint [11:39:58]line [11:39:58]line [11:39:58]line [11:39:58]line [11:39:58]line [11:39:58]written 0, free lines is 3332 [11:39:58]MH_Cut [11:39:58]Write to MH i2c: D1 01 00 25 20 01 17 [11:39:58]Write i2c OK [11:39:58]MH_I2C_Read... [11:39:58]Read from MH i2c: D1 [11:39:58]MH_I2C_Read... [11:39:58]Read from MH i2c: D1 01 00 [11:39:58]MH_I2C_Read... [11:39:58]Read from MH i2c: D1 01 00 25 20 00 16 [11:39:58]Write to MH i2c: 01 00 00 26 20 46 [11:39:58]Write i2c OK [11:39:58]MH_I2C_Read... [11:39:58]OFD Sender: No OFD packet to send [11:39:58]*** Cut start [11:39:58]*** Purtial cut [11:39:58]*** Stage 1: CUTSNS_PIN = 1 [11:40:00]Read from MH i2c: 01 [11:40:00]MH_I2C_Read... [11:40:00]*** Stop cut motor [11:40:00]*** Cut end [11:40:00]Read from MH i2c: 01 07 00 [11:40:00]MH_I2C_Read... [11:40:01]Read from MH i2c: 01 07 00 26 20 00 00 00 00 00 FF 0F 5B [11:40:01]process_action close_receipt done [11:40:01]requested_data is exist [11:40:01]produce_requested_data [11:40:01]requested_item fm.sn is exist - process it [11:40:01]wFMCommunicate request_size=4 [11:40:01]MH_SAM_APDU [11:40:01]CAPDU: 80 11 00 00 [11:40:01]Write to MH i2c: E2 08 00 27 20 80 11 00 00 00 00 00 00 C1 [11:40:01]Write i2c OK [11:40:01]MH_I2C_Read... [11:40:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:01]Read from MH i2c: E2 [11:40:01]MH_I2C_Read... [11:40:01]Read from MH i2c: E2 17 00 [11:40:01]MH_I2C_Read... [11:40:01]Read from MH i2c: E2 17 00 27 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 1F [11:40:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [11:40:01]wFMCommunicate OK [11:40:01]requested_item fd.num is exist - process it [11:40:01]SAM_PROTO_GetFieldsCounters [11:40:01]wFMCommunicate request_size=4 [11:40:01]MH_SAM_APDU [11:40:01]CAPDU: 80 13 00 00 [11:40:01]Write to MH i2c: E2 08 00 28 20 80 13 00 00 00 00 00 00 C4 [11:40:01]Write i2c OK [11:40:01]MH_I2C_Read... [11:40:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:40:01]Read from MH i2c: E2 [11:40:01]MH_I2C_Read... [11:40:01]Read from MH i2c: E2 62 00 [11:40:01]MH_I2C_Read... [11:40:01]Read from MH i2c: E2 62 00 28 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 55 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 54 [11:40: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 55 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:40:01]wFMCommunicate OK [11:40:01]SAM_PROTO_GetFieldsCounters done [11:40:01]requested_item shift.num is exist - process it [11:40:01]requested_item shift.opened is exist - process it [11:40:01]req_shift_opened [11:40:01]FM_GetShiftState [11:40:01]SAM_PROTO_GetShiftState [11:40:01]wFMCommunicate request_size=4 [11:40:01]MH_SAM_APDU [11:40:01]CAPDU: 80 13 01 00 [11:40:01]Write to MH i2c: E2 08 00 29 20 80 13 01 00 00 00 00 00 C6 [11:40:01]Write i2c OK [11:40:01]MH_I2C_Read... [11:40:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:40:01]Read from MH i2c: E2 [11:40:01]MH_I2C_Read... [11:40:01]Read from MH i2c: E2 0E 00 [11:40:01]MH_I2C_Read... [11:40:01]Read from MH i2c: E2 0E 00 29 20 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 88 [11:40:01]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [11:40:01]wFMCommunicate OK [11:40:01]SAM_PROTO_GetShiftState done [11:40:01]FM_GetShiftState done [11:40:01]req_shift_opened done [11:40:01]requested_item shift.open_date is exist - process it [11:40:01]req_shift_open_date [11:40:01]req_shift_open_date done [11:40:01]produce_requested_data done [11:40:01]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123221,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [11:40:01]process_action_free close_receipt [11:40:01]json_value_free [11:40:01]json_value_free done [11:40:01]process_json_proto returns [11:40:01]Send response to host [11:40:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123221,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [11:40:01]free response buf [11:40:01]execute_script done [11:40:01]execute_script returns [11:40:01]free content buf [11:40:01]Sock 9.Close socket [11:40:01]Sock 9.Thread stoped [11:40:03]OFD Sender: No OFD packet to send [11:40:08]OFD Sender: No OFD packet to send [11:40:13]OFD Sender: No OFD packet to send [11:40:18]OFD Sender: No OFD packet to send [11:40:23]OFD Sender: No OFD packet to send [11:40:28]OFD Sender: No OFD packet to send [11:40:33]OFD Sender: No OFD packet to send [11:40:35]accept exits with 7 [11:40:35]New connection [11:40:35]New thread 3067395428 created [11:40:35]Thread 3067252068 joined [11:40:35]Waiting for new connection... [11:40:35] Sock 7.Parse request [11:40:35]Sock 7.Check first char [11:40:35]Sock 7.First char is OK [11:40:35]request: POST /json_proto HTTP/1.0 [11:40:35]Method: POST [11:40:35]URL: /json_proto [11:40:35]Method is POST - this is cgi request [11:40:35]url: /json_proto [11:40:35]query_string will be loaded in cgi processing [11:40:35]execute_cgi json_proto POST (null) [11:40:35]execute_cgi path=json_proto method=POST [11:40:35]POST find Content-Length [11:40:35]Host: 172.17.48.197:8080 [11:40:35]Content-Length: 745 [11:40:35]Content-Type: application/json [11:40:35] [11:40:35]POST finish read [11:40:35]Found Content-Length = 745 [11:40:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 123221, "base_FM": "0000000000874798", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106145", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 70.90, "quantity" : 35.270, "sum" : 2500.64, "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:40:35]execute_script... [11:40:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 123221, "base_FM": "0000000000874798", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106145", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 70.90, "quantity" : 35.270, "sum" : 2500.64, "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:40:35]POST & json_proto [11:40:35]process_json_proto [11:40:35]json parsed OK: [11:40:35]protocol is kg_v1.0 [11:40:35]action value=close_receipt [11:40:35]process_action close_receipt [11:40:35]cmd_close_receipt [11:40:35]MH_GetDate [11:40:35]Write to MH i2c: F0 00 00 2A 20 39 [11:40:35]Write i2c OK [11:40:35]MH_I2C_Read... [11:40:35]Read from MH i2c: F0 [11:40:35]MH_I2C_Read... [11:40:35]Read from MH i2c: F0 09 00 [11:40:35]MH_I2C_Read... [11:40:35]Read from MH i2c: F0 09 00 2A 20 00 B6 61 E4 65 6C AF E3 65 05 [11:40:35]GetLastDocTimeStamp 1709465998 [11:40:35]current date 1709466038 [11:40:35]FM_GetShiftState [11:40:35]SAM_PROTO_GetShiftState [11:40:35]wFMCommunicate request_size=4 [11:40:35]MH_SAM_APDU [11:40:35]CAPDU: 80 13 01 00 [11:40:35]Write to MH i2c: E2 08 00 2B 20 80 13 01 00 00 00 00 00 C8 [11:40:35]Write i2c OK [11:40:35]MH_I2C_Read... [11:40:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:40:35]Read from MH i2c: E2 [11:40:35]MH_I2C_Read... [11:40:35]Read from MH i2c: E2 0E 00 [11:40:35]MH_I2C_Read... [11:40:35]Read from MH i2c: E2 0E 00 2B 20 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 8A [11:40:35]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [11:40:35]wFMCommunicate OK [11:40:35]SAM_PROTO_GetShiftState done [11:40:35]FM_GetShiftState done [11:40:35]opened in 1709425579 [11:40:35]opened+sec_in_day 1709511979 [11:40:35]quantity*price = 250064 [11:40:35]sum+1 = 250065 [11:40:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 2500.00 НСП 1% : 22.13 НДС 12% : 265.55 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 79 03.03.2024 11:40 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФД осн.: 123221 ФМ осн.: 0000000000874798 ФМ: 0000000000874798 ФД: 123222 ФПД: 100375060524318 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T114038&type=2&operation_type=1&fn_number=0000000000874798&fd_number=123222&fm=100375060524318&tin=02508201610067®Number=0000000000090573&sum=250000 [11:40:37]StoreToDocumentArchive [11:40:37]shift 323 fd 123222 [11:40:37]save to /storage/0323/doc_00123222 [11:40:37]save last doc name /storage/0323/doc_00123222 to /storage/kkm_last_doc_name [11:40:37]save OK [11:40:37]Clear old archive folders... [11:40:37]ProcessDocumentItem done err = 0, tmpTLVsize=280 [11:40:37]tlvbuf is 00DFCC50 [11:40:37]SAM_PROTO_ClearQueue [11:40:37]wFMCommunicate request_size=4 [11:40:37]MH_SAM_APDU [11:40:37]CAPDU: 80 09 00 00 [11:40:37]Write to MH i2c: E2 08 00 3A 20 80 09 00 00 00 00 00 00 CC [11:40:37]Write i2c OK [11:40:37]MH_I2C_Read... [11:40:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:40:37]Read from MH i2c: E2 [11:40:37]MH_I2C_Read... [11:40:37]Read from MH i2c: E2 03 00 [11:40:37]MH_I2C_Read... [11:40:37]Read from MH i2c: E2 03 00 3A 20 00 90 00 CE [11:40:37]RAPDU: 90 00 [11:40:37]wFMCommunicate OK [11:40:37]SAM_PROTO_ClearQueue done [11:40:37]KKMCreateOFDPacket [11:40:37]OFDProtocolAddRootSTLVToBuf [11:40:37]FM_MakeSignedData [11:40:37]FM_MakeSignedData [11:40:37]SAM_PROTO_SignData [11:40:37]wFMCommunicate request_size=4 [11:40:37]MH_SAM_APDU [11:40:37]CAPDU: 80 0D 01 02 [11:40:37]Write to MH i2c: E2 08 00 3B 20 80 0D 01 02 00 00 00 00 D4 [11:40:37]Write i2c OK [11:40:37]MH_I2C_Read... [11:40:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:40:37]Read from MH i2c: E2 [11:40:37]MH_I2C_Read... [11:40:37]Read from MH i2c: E2 03 00 [11:40:37]MH_I2C_Read... [11:40:37]Read from MH i2c: E2 03 00 3B 20 00 90 00 CF [11:40:37]RAPDU: 90 00 [11:40:37]wFMCommunicate OK [11:40:37]wFMCommunicate request_size=255 [11:40:37]MH_SAM_APDU [11:40:37]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 35 FF 03 08 00 03 C6 89 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 D0 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 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 4F 00 00 00 F4 03 04 00 B6 61 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 27 04 04 00 55 E1 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 11 04 10 00 [11:40:37]Write to MH i2c: E2 02 01 3C 20 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 35 FF 03 08 00 03 C6 89 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 D0 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 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 4F 00 00 00 F4 03 04 00 B6 61 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 27 04 04 00 55 E1 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 11 04 10 00 00 00 D3 [11:40:37]Write i2c OK [11:40:37]MH_I2C_Read... [11:40:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:40:37]Read from MH i2c: E2 [11:40:37]MH_I2C_Read... [11:40:37]Read from MH i2c: E2 03 00 [11:40:37]MH_I2C_Read... [11:40:37]Read from MH i2c: E2 03 00 3C 20 00 90 00 D0 [11:40:37]RAPDU: 90 00 [11:40:37]wFMCommunicate OK [11:40:37]wFMCommunicate request_size=39 [11:40:37]MH_SAM_APDU [11:40:37]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 56 E1 01 00 35 04 06 00 5B 4A 63 D3 AD 1E [11:40:37]Write to MH i2c: E2 2A 00 3D 20 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 56 E1 01 00 35 04 06 00 5B 4A 63 D3 AD 1E 00 00 7B [11:40:37]Write i2c OK [11:40:37]MH_I2C_Read... [11:40:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:40:37]Read from MH i2c: E2 [11:40:37]MH_I2C_Read... [11:40:37]Read from MH i2c: E2 03 00 [11:40:37]MH_I2C_Read... [11:40:37]Read from MH i2c: E2 03 00 3D 20 00 90 00 D1 [11:40:37]RAPDU: 90 00 [11:40:37]wFMCommunicate OK [11:40:37]wFMCommunicate request_size=4 [11:40:37]MH_SAM_APDU [11:40:37]CAPDU: 80 0D 03 02 [11:40:37]Write to MH i2c: E2 08 00 3E 20 80 0D 03 02 00 00 00 00 D9 [11:40:37]Write i2c OK [11:40:37]MH_I2C_Read... [11:40:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:40:37]Read from MH i2c: E2 [11:40:37]MH_I2C_Read... [11:40:37]Read from MH i2c: E2 0B 00 [11:40:37]MH_I2C_Read... [11:40:37]Read from MH i2c: E2 0B 00 3E 20 00 80 D6 10 04 A3 42 58 EF 90 00 70 [11:40:37]RAPDU: 80 D6 10 04 A3 42 58 EF 90 00 [11:40:37]wFMCommunicate OK [11:40:37]SAM_PROTO_SignData done [11:40:37]FM_MakeSignedData done [11:40:37]CreateOFDProtocolMessage [11:40:37]wFMCommunicate request_size=4 [11:40:37]MH_SAM_APDU [11:40:37]CAPDU: 80 11 00 00 [11:40:37]Write to MH i2c: E2 08 00 3F 20 80 11 00 00 00 00 00 00 D9 [11:40:37]Write i2c OK [11:40:37]MH_I2C_Read... [11:40:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:37]Read from MH i2c: E2 [11:40:37]MH_I2C_Read... [11:40:37]Read from MH i2c: E2 17 00 [11:40:37]MH_I2C_Read... [11:40:37]Read from MH i2c: E2 17 00 3F 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 37 [11:40:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [11:40:37]wFMCommunicate OK [11:40:37]CreateOFDProtocolMessage done [11:40:37]OFDSenderStorePacket 123222 [11:40:37]StoreOFDPacket docnum=123222 [11:40:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 2C 01 00 00 A2 61 24 01 FA 4D 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 35 FF 03 08 00 03 C6 89 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 D0 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 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 4F 00 00 00 F4 03 04 00 B6 61 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 27 04 04 00 55 E1 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 56 E1 01 00 35 04 06 00 5B 4A 63 D3 AD 1E 80 D6 10 04 A3 42 58 EF [11:40:37]CheckFolder [11:40:37]dirname=/storage/ofd_packets [11:40:37]CheckFolder done [11:40:37]ProducePacketName [11:40:37]name=ofd_packets/00123222 [11:40:37]NVStorageSaveData ofd_packets/00123222 [11:40:37]File name is /storage/ofd_packets/00123222 [11:40:37]Write 330 bytes [11:40:37]NVStorageSaveData done [11:40:37]OFDSenderStorePacket done [11:40:37]KKMCreateOFDPacket done [11:40:37]NVStorageSaveData kkm_last_timestamp [11:40:37]File name is /storage/kkm_last_timestamp [11:40:37]Write 4 bytes [11:40:37]NVStorageSaveData done [11:40:37]ExternCall_PrintAddStr [11:40:37]wPrintStart [11:40:37]Write to MH i2c: 01 00 00 40 20 60 [11:40:37]Write i2c OK [11:40:37]MH_I2C_Read... [11:40:37]Read from MH i2c: 01 [11:40:37]MH_I2C_Read... [11:40:37]Read from MH i2c: 01 07 00 [11:40:37]MH_I2C_Read... [11:40:37]Read from MH i2c: 01 07 00 40 20 00 00 00 00 00 FF 0F 75 [11:40:37]RasterBufferAndPrint [11:40:37]line Счет N : (1)1106145 [11:40:37]line ИНН: 02508201610067 [11:40:37]line Контрольно-Кассовый Чек [11:40:37]line ВОЗВРАТ ПРОДАЖИ [11:40:37]line ТРК (МРК, ГНК) : 41 [11:40:37]line Товар: 2710194210 [11:40:37]line ДТ(л)-К-5 [11:40:37]line 35.270 * 70.90 [11:40:37]line = 2500.64 [11:40:37]line НДС 12% НСП 1% [11:40:37]line > о реализуемом товаре [11:40:37]line ОКРУГЛЕНИЕ: -0.64 [11:40:37]line ИТОГО: 2500.00 [11:40:37]line НСП 1% : 22.13 [11:40:37]line НДС 12% : 265.55 [11:40:37]line Наличными: 2500.00 [11:40:37]line Безнал.: 0.00 [11:40:37]line Место: АЗС № 25 "Партнер Нефть" [11:40:37]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [11:40:37]line СНО: Общий режим [11:40:37]line Чек 79 03.03.2024 11:40 [11:40:37]line Смена: 323 ФФД: 1.0 [11:40:37]line ЗНМ: 0300000019 [11:40:37]line РНМ: 0000000000090573 [11:40:37]line Версия ККМ: 001 [11:40:37]line ФД осн.: 123221 [11:40:37]line ФМ осн.: 0000000000874798 [11:40:37]line ФМ: 0000000000874798 [11:40:37]line ФД: 123222 [11:40:37]line ФПД: 100375060524318 [11:40:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T114038&type=2&operation_type=1&fn_number=0000000000874798&fd_number=123222&fm=100375060524318&tin=02508201610067®Number=0000000000090573&sum=250000 [11:40:37]written 0, free lines is 4095 [11:40:37]OFD Sender: Processing packet 123222 [packets to send 112, broken 111] [11:40:37]ProducePacketName [11:40:37]name=ofd_packets/00123222 [11:40:37]OFD Sender: To server: pG, [11:40:37]CommunicateWithHost lk.salyk.kg:30040 [11:40:37]ConnectInit lk.salyk.kg [11:40:37]Connected sock=10 [11:40: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 37 39 38 2C 01 00 00 A2 61 24 01 FA 4D 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 35 FF 03 08 00 03 C6 89 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 D0 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 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 4F 00 00 00 F4 03 04 00 B6 61 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 27 04 04 00 55 E1 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 56 E1 01 00 35 04 06 00 5B 4A 63 D3 AD 1E 80 D6 10 04 A3 42 58 EF [11: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 37 39 38 4F 00 00 00 B1 E9 47 00 50 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 56 E1 01 00 F4 03 04 00 E2 0D E4 65 B6 04 01 00 00 CB 6B 75 12 07 14 85 EB [11:40:38]CommunicateWithHost err = 0 [11:40:38]CheckOFDResponse [11:40:38]1017 (14) - 77093643461234 [11:40:38]1041 (16) - 0000000000874798 [11:40:38]1040 (4) - 123222 [11:40:38]1012 (4) - 03.03.2024 05:42 [11:40:38]1206 (1) - 0 [11:40:38]OFD Sender: Remove packet 123222 [11:40:38]ProducePacketName [11:40:38]name=ofd_packets/00123222 [11:40:38]NVStorageDeleteData [11:40:38]Write to MH i2c: 01 00 00 6B 20 8B [11:40:38]Write i2c OK [11:40:38]MH_I2C_Read... [11:40:38]Read from MH i2c: 01 [11:40:38]MH_I2C_Read... [11:40:38]Read from MH i2c: 01 07 00 [11:40:38]MH_I2C_Read... [11:40:38]Read from MH i2c: 01 07 00 6B 20 00 00 00 00 00 02 0D A1 [11:40:38]RasterBufferAndPrint [11:40:38]line [11:40:38]line [11:40:38]line [11:40:38]line [11:40:38]line [11:40:38]written 0, free lines is 3338 [11:40:38]MH_Cut [11:40:38]Write to MH i2c: D1 01 00 72 20 01 64 [11:40:38]Write i2c OK [11:40:38]MH_I2C_Read... [11:40:38]Read from MH i2c: D1 [11:40:38]MH_I2C_Read... [11:40:38]Read from MH i2c: D1 01 00 [11:40:38]MH_I2C_Read... [11:40:38]Read from MH i2c: D1 01 00 72 20 00 63 [11:40:38]Write to MH i2c: 01 00 00 73 20 93 [11:40:38]Write i2c OK [11:40:38]MH_I2C_Read... [11:40:38]OFD Sender: No OFD packet to send [11:40:38]*** Cut start [11:40:38]*** Purtial cut [11:40:38]*** Stage 1: CUTSNS_PIN = 1 [11:40:40]Read from MH i2c: 01 [11:40:40]MH_I2C_Read... [11:40:40]*** Stop cut motor [11:40:40]*** Cut end [11:40:40]Read from MH i2c: 01 07 00 [11:40:40]MH_I2C_Read... [11:40:40]Read from MH i2c: 01 07 00 73 20 00 00 00 00 00 FF 0F A8 [11:40:40]process_action close_receipt done [11:40:40]requested_data is exist [11:40:40]produce_requested_data [11:40:40]requested_item fm.sn is exist - process it [11:40:40]wFMCommunicate request_size=4 [11:40:40]MH_SAM_APDU [11:40:40]CAPDU: 80 11 00 00 [11:40:40]Write to MH i2c: E2 08 00 74 20 80 11 00 00 00 00 00 00 0E [11:40:40]Write i2c OK [11:40:40]MH_I2C_Read... [11:40:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:40]Read from MH i2c: E2 [11:40:40]MH_I2C_Read... [11:40:40]Read from MH i2c: E2 17 00 [11:40:40]MH_I2C_Read... [11:40:40]Read from MH i2c: E2 17 00 74 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 6C [11:40:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [11:40:40]wFMCommunicate OK [11:40:40]requested_item fd.num is exist - process it [11:40:40]SAM_PROTO_GetFieldsCounters [11:40:40]wFMCommunicate request_size=4 [11:40:40]MH_SAM_APDU [11:40:40]CAPDU: 80 13 00 00 [11:40:40]Write to MH i2c: E2 08 00 75 20 80 13 00 00 00 00 00 00 11 [11:40:40]Write i2c OK [11:40:40]MH_I2C_Read... [11:40:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:40:41]Read from MH i2c: E2 [11:40:41]MH_I2C_Read... [11:40:41]Read from MH i2c: E2 62 00 [11:40:41]MH_I2C_Read... [11:40:41]Read from MH i2c: E2 62 00 75 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 56 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 A5 [11:40: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 56 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:40:41]wFMCommunicate OK [11:40:41]SAM_PROTO_GetFieldsCounters done [11:40:41]requested_item shift.num is exist - process it [11:40:41]requested_item shift.opened is exist - process it [11:40:41]req_shift_opened [11:40:41]FM_GetShiftState [11:40:41]SAM_PROTO_GetShiftState [11:40:41]wFMCommunicate request_size=4 [11:40:41]MH_SAM_APDU [11:40:41]CAPDU: 80 13 01 00 [11:40:41]Write to MH i2c: E2 08 00 76 20 80 13 01 00 00 00 00 00 13 [11:40:41]Write i2c OK [11:40:41]MH_I2C_Read... [11:40:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:40:41]Read from MH i2c: E2 [11:40:41]MH_I2C_Read... [11:40:41]Read from MH i2c: E2 0E 00 [11:40:41]MH_I2C_Read... [11:40:41]Read from MH i2c: E2 0E 00 76 20 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 D5 [11:40:41]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [11:40:41]wFMCommunicate OK [11:40:41]SAM_PROTO_GetShiftState done [11:40:41]FM_GetShiftState done [11:40:41]req_shift_opened done [11:40:41]requested_item shift.open_date is exist - process it [11:40:41]req_shift_open_date [11:40:41]req_shift_open_date done [11:40:41]produce_requested_data done [11:40:41]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123222,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [11:40:41]process_action_free close_receipt [11:40:41]json_value_free [11:40:41]json_value_free done [11:40:41]process_json_proto returns [11:40:41]Send response to host [11:40:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123222,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [11:40:41]free response buf [11:40:41]execute_script done [11:40:41]execute_script returns [11:40:41]free content buf [11:40:41]Sock 7.Close socket [11:40:41]Sock 7.Thread stoped [11:40:43]OFD Sender: No OFD packet to send [11:40:47]accept exits with 9 [11:40:47]New connection [11:40:47]New thread 3067252068 created [11:40:47]Thread 3067395428 joined [11:40:47]Waiting for new connection... [11:40:47] Sock 9.Parse request [11:40:47]Sock 9.Check first char [11:40:47]Sock 9.First char is OK [11:40:47]request: POST /json_proto HTTP/1.0 [11:40:47]Method: POST [11:40:47]URL: /json_proto [11:40:47]Method is POST - this is cgi request [11:40:47]url: /json_proto [11:40:47]query_string will be loaded in cgi processing [11:40:47]execute_cgi json_proto POST (null) [11:40:47]execute_cgi path=json_proto method=POST [11:40:47]POST find Content-Length [11:40:47]Host: 172.17.48.197:8080 [11:40:47]Content-Length: 1210 [11:40:47]Content-Type: application/json [11:40:47] [11:40:47]POST finish read [11:40:47]Found Content-Length = 1210 [11:40:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106143\u000A03.03.2024 11:37\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 53\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 50.940 x 69.50\u000A\u0418\u0422\u041E\u0413: 3540.33\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03382\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:40:47]execute_script... [11:40:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106143\u000A03.03.2024 11:37\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 53\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 50.940 x 69.50\u000A\u0418\u0422\u041E\u0413: 3540.33\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03382\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:40:47]POST & json_proto [11:40:47]process_json_proto [11:40:47]json parsed OK: [11:40:47]protocol is kg_v1.0 [11:40:47]action value=print_text [11:40:47]process_action print_text [11:40:47]cmd_print_text [11:40:47]ExternCall_PrintAddStr [11:40:47]wPrintStart [11:40:47]Write to MH i2c: 01 00 00 77 20 97 [11:40:47]Write i2c OK [11:40:47]MH_I2C_Read... [11:40:47]Read from MH i2c: 01 [11:40:47]MH_I2C_Read... [11:40:47]Read from MH i2c: 01 07 00 [11:40:47]MH_I2C_Read... [11:40:47]Read from MH i2c: 01 07 00 77 20 00 00 00 00 00 FF 0F AC [11:40:47]RasterBufferAndPrint [11:40:47]line *****ТОВАРНЫЙ ЧЕК***** [11:40:47]line АЗС 25 [11:40:47]line Партнер нефть [11:40:47]line 02508201610067 [11:40:47]line Кассир : Турдумбек у. К. [11:40:47]line Счет N : (1)1106143 [11:40:47]line 03.03.2024 11:37 [11:40:47]line ПРОДАЖА [11:40:47]line ТРК (МРК, ГНК): 53 [11:40:47]line Вид ГСМ : 2710124500 [11:40:47]line Аи-95-К-5 [11:40:47]line 50.940 x 69.50 [11:40:47]line ИТОГ: 3540.33 [11:40:47]line Тип оплаты: Талоны: Топливная Карта [11:40:47]line 03382 [11:40:47]line ______________________ [11:40:47]line (подпись) [11:40:47]written 0, free lines is 4095 [11:40:47]Write to MH i2c: 01 00 00 8C 20 AC [11:40:47]Write i2c OK [11:40:47]MH_I2C_Read... [11:40:47]Read from MH i2c: 01 [11:40:47]MH_I2C_Read... [11:40:47]Read from MH i2c: 01 07 00 [11:40:47]MH_I2C_Read... [11:40:47]Read from MH i2c: 01 07 00 8C 20 00 00 00 00 00 F7 0D B7 [11:40:47]RasterBufferAndPrint [11:40:47]line [11:40:47]line [11:40:47]line [11:40:47]line [11:40:47]line [11:40:47]written 0, free lines is 3577 [11:40:47]MH_Cut [11:40:47]Write to MH i2c: D1 01 00 93 20 01 85 [11:40:47]Write i2c OK [11:40:47]MH_I2C_Read... [11:40:47]Read from MH i2c: D1 [11:40:47]MH_I2C_Read... [11:40:47]Read from MH i2c: D1 01 00 [11:40:47]MH_I2C_Read... [11:40:47]Read from MH i2c: D1 01 00 93 20 00 84 [11:40:47]Write to MH i2c: 01 00 00 94 20 B4 [11:40:47]Write i2c OK [11:40:47]MH_I2C_Read... [11:40:47]*** Cut start [11:40:47]*** Purtial cut [11:40:47]*** Stage 1: CUTSNS_PIN = 1 [11:40:48]OFD Sender: No OFD packet to send [11:40:50]Read from MH i2c: 01 [11:40:50]MH_I2C_Read... [11:40:50]*** Stop cut motor [11:40:50]*** Cut end [11:40:50]Read from MH i2c: 01 07 00 [11:40:50]MH_I2C_Read... [11:40:50]Read from MH i2c: 01 07 00 94 20 00 00 00 00 00 FF 0F C9 [11:40:50]process_action print_text done [11:40:50]requested_data is exist [11:40:50]produce_requested_data [11:40:50]requested_item fm.sn is exist - process it [11:40:50]wFMCommunicate request_size=4 [11:40:50]MH_SAM_APDU [11:40:50]CAPDU: 80 11 00 00 [11:40:50]Write to MH i2c: E2 08 00 95 20 80 11 00 00 00 00 00 00 2F [11:40:50]Write i2c OK [11:40:50]MH_I2C_Read... [11:40:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:50]Read from MH i2c: E2 [11:40:50]MH_I2C_Read... [11:40:50]Read from MH i2c: E2 17 00 [11:40:50]MH_I2C_Read... [11:40:50]Read from MH i2c: E2 17 00 95 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 8D [11:40:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [11:40:50]wFMCommunicate OK [11:40:50]requested_item fd.num is exist - process it [11:40:50]SAM_PROTO_GetFieldsCounters [11:40:50]wFMCommunicate request_size=4 [11:40:50]MH_SAM_APDU [11:40:50]CAPDU: 80 13 00 00 [11:40:50]Write to MH i2c: E2 08 00 96 20 80 13 00 00 00 00 00 00 32 [11:40:50]Write i2c OK [11:40:50]MH_I2C_Read... [11:40:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:40:50]Read from MH i2c: E2 [11:40:50]MH_I2C_Read... [11:40:50]Read from MH i2c: E2 62 00 [11:40:50]MH_I2C_Read... [11:40:50]Read from MH i2c: E2 62 00 96 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 56 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 C6 [11:40:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 56 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:40:50]wFMCommunicate OK [11:40:50]SAM_PROTO_GetFieldsCounters done [11:40:50]requested_item shift.num is exist - process it [11:40:50]requested_item shift.opened is exist - process it [11:40:50]req_shift_opened [11:40:50]FM_GetShiftState [11:40:50]SAM_PROTO_GetShiftState [11:40:50]wFMCommunicate request_size=4 [11:40:50]MH_SAM_APDU [11:40:50]CAPDU: 80 13 01 00 [11:40:50]Write to MH i2c: E2 08 00 97 20 80 13 01 00 00 00 00 00 34 [11:40:50]Write i2c OK [11:40:50]MH_I2C_Read... [11:40:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:40:50]Read from MH i2c: E2 [11:40:50]MH_I2C_Read... [11:40:50]Read from MH i2c: E2 0E 00 [11:40:50]MH_I2C_Read... [11:40:50]Read from MH i2c: E2 0E 00 97 20 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 F6 [11:40:50]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [11:40:50]wFMCommunicate OK [11:40:50]SAM_PROTO_GetShiftState done [11:40:50]FM_GetShiftState done [11:40:50]req_shift_opened done [11:40:50]requested_item shift.open_date is exist - process it [11:40:50]req_shift_open_date [11:40:50]req_shift_open_date done [11:40:50]produce_requested_data done [11:40:50]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123222,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [11:40:50]process_action_free print_text [11:40:50]json_value_free [11:40:50]json_value_free done [11:40:50]process_json_proto returns [11:40:50]Send response to host [11:40:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123222,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [11:40:50]free response buf [11:40:50]execute_script done [11:40:50]execute_script returns [11:40:50]free content buf [11:40:50]Sock 9.Close socket [11:40:50]Sock 9.Thread stoped [11:40:53]OFD Sender: No OFD packet to send [11:40:58]OFD Sender: No OFD packet to send [11:41:03]OFD Sender: No OFD packet to send [11:41:08]OFD Sender: No OFD packet to send [11:41:13]OFD Sender: No OFD packet to send [11:41:18]OFD Sender: No OFD packet to send [11:41:20]accept exits with 7 [11:41:20]New connection [11:41:20]New thread 3067395428 created [11:41:20]Thread 3067252068 joined [11:41:20]Waiting for new connection... [11:41:20] Sock 7.Parse request [11:41:20]Sock 7.Check first char [11:41:20]Sock 7.First char is OK [11:41:20]request: POST /json_proto HTTP/1.0 [11:41:20]Method: POST [11:41:20]URL: /json_proto [11:41:20]Method is POST - this is cgi request [11:41:20]url: /json_proto [11:41:20]query_string will be loaded in cgi processing [11:41:20]execute_cgi json_proto POST (null) [11:41:20]execute_cgi path=json_proto method=POST [11:41:20]POST find Content-Length [11:41:20]Host: 172.17.48.197:8080 [11:41:20]Content-Length: 1215 [11:41:20]Content-Type: application/json [11:41:20] [11:41:20]POST finish read [11:41:20]Found Content-Length = 1215 [11:41:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106144\u000A03.03.2024 11:37\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 35.270 x 70.90\u000A\u0418\u0422\u041E\u0413: 2500.64\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02551\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:41:20]execute_script... [11:41:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106144\u000A03.03.2024 11:37\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 35.270 x 70.90\u000A\u0418\u0422\u041E\u0413: 2500.64\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02551\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:41:20]POST & json_proto [11:41:20]process_json_proto [11:41:20]json parsed OK: [11:41:20]protocol is kg_v1.0 [11:41:20]action value=print_text [11:41:20]process_action print_text [11:41:20]cmd_print_text [11:41:20]ExternCall_PrintAddStr [11:41:20]wPrintStart [11:41:20]Write to MH i2c: 01 00 00 98 20 B8 [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 98 20 00 00 00 00 00 FF 0F CD [11:41:20]RasterBufferAndPrint [11:41:20]line *****ТОВАРНЫЙ ЧЕК***** [11:41:20]line АЗС 25 [11:41:20]line Партнер нефть [11:41:20]line 02508201610067 [11:41:20]line Кассир : Турдумбек у. К. [11:41:20]line Счет N : (1)1106144 [11:41:20]line 03.03.2024 11:37 [11:41:20]line ПРОДАЖА [11:41:20]line ТРК (МРК, ГНК): 31 [11:41:20]line Вид ГСМ : 2710194210 [11:41:20]line ДТ(л)-К-5 [11:41:20]line 35.270 x 70.90 [11:41:20]line ИТОГ: 2500.64 [11:41:20]line Тип оплаты: Талоны: Топливная Карта [11:41:20]line 02551 [11:41:20]line ______________________ [11:41:20]line (подпись) [11:41:20]written 0, free lines is 4095 [11:41:20]Write to MH i2c: 01 00 00 AD 20 CD [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 AD 20 00 00 00 00 00 F5 0D D6 [11:41:20]RasterBufferAndPrint [11:41:20]line [11:41:20]line [11:41:20]line [11:41:20]line [11:41:20]line [11:41:20]written 0, free lines is 3575 [11:41:20]MH_Cut [11:41:20]Write to MH i2c: D1 01 00 B4 20 01 A6 [11:41:20]Write i2c OK [11:41:20]MH_I2C_Read... [11:41:20]Read from MH i2c: D1 [11:41:20]MH_I2C_Read... [11:41:20]Read from MH i2c: D1 01 00 [11:41:20]MH_I2C_Read... [11:41:20]Read from MH i2c: D1 01 00 B4 20 00 A5 [11:41:20]Write to MH i2c: 01 00 00 B5 20 D5 [11:41:20]Write i2c OK [11:41:20]MH_I2C_Read... [11:41:20]*** Cut start [11:41:20]*** Purtial cut [11:41:20]*** Stage 1: CUTSNS_PIN = 1 [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 B5 20 00 00 00 00 00 FF 0F EA [11:41:22]process_action print_text 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 B6 20 80 11 00 00 00 00 00 00 50 [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 B6 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 AE [11:41:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 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 B7 20 80 13 00 00 00 00 00 00 53 [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 B7 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 56 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 E7 [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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 56 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [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 B8 20 80 13 01 00 00 00 00 00 55 [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 B8 20 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 17 [11:41:22]RAPDU: 09 00 01 AB C3 E3 65 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":"0000000000874798","fd.num":123222,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [11:41:22]process_action_free print_text [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":"0000000000874798","fd.num":123222,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [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 7.Close socket [11:41:22]Sock 7.Thread stoped [11:41:23]OFD Sender: No OFD packet to send [11:41:24]int [11:41:24]Write to MH i2c: 01 00 00 B9 20 D9 [11:41:24]*** FLAG_PRN_KEY set [11:41:24]Write i2c OK [11:41:24]MH_I2C_Read... [11:41:24]Read from MH i2c: 01 [11:41:24]MH_I2C_Read... [11:41:24]Read from MH i2c: 01 07 00 [11:41:24]MH_I2C_Read... [11:41:24]Read from MH i2c: 01 07 00 B9 20 00 08 00 00 00 FF 0F F6 [11:41:24]state=0 [11:41:24]Key pressed [11:41:24]Feed [11:41:24]Write to MH i2c: D8 00 00 BA 20 B1 [11:41:24]Write i2c OK [11:41:24]MH_I2C_Read... [11:41:24]Read from MH i2c: D8 [11:41:24]MH_I2C_Read... [11:41:24]Read from MH i2c: D8 01 00 [11:41:24]MH_I2C_Read... [11:41:24]Read from MH i2c: D8 01 00 BA 20 00 B2 [11:41:24]int [11:41:24]Write to MH i2c: 01 00 00 BB 20 DB [11:41:24]Write i2c OK [11:41:24]MH_I2C_Read... [11:41:24]Read from MH i2c: 01 [11:41:24]MH_I2C_Read... [11:41:24]Read from MH i2c: 01 07 00 [11:41:24]MH_I2C_Read... [11:41:24]Read from MH i2c: 01 07 00 BB 20 00 48 00 00 00 3C 00 66 [11:41:24]state=2 [11:41:24]Key pressed [11:41:24]int [11:41:24]Write to MH i2c: 01 00 00 BC 20 DC [11:41:24]*** FLAG_PRN_KEY reset [11:41:24]Write i2c OK [11:41:24]MH_I2C_Read... [11:41:24]Read from MH i2c: 01 [11:41:24]MH_I2C_Read... [11:41:24]Read from MH i2c: 01 07 00 [11:41:24]MH_I2C_Read... [11:41:24]Read from MH i2c: 01 07 00 BC 20 00 00 00 00 00 F7 0F E9 [11:41:24]state=2 [11:41:24]Stop feed [11:41:24]int [11:41:24]Write to MH i2c: 01 00 00 BD 20 DD [11:41:24]*** FLAG_PRN_KEY set [11:41:24]Write i2c OK [11:41:24]MH_I2C_Read... [11:41:24]Read from MH i2c: 01 [11:41:24]MH_I2C_Read... [11:41:24]Read from MH i2c: 01 07 00 [11:41:24]MH_I2C_Read... [11:41:24]Read from MH i2c: 01 07 00 BD 20 00 08 00 00 00 FF 0F FA [11:41:24]state=0 [11:41:24]Key pressed [11:41:24]Feed [11:41:24]Write to MH i2c: D8 00 00 BE 20 B5 [11:41:24]Write i2c OK [11:41:24]MH_I2C_Read... [11:41:24]Read from MH i2c: D8 [11:41:24]MH_I2C_Read... [11:41:24]Read from MH i2c: D8 01 00 [11:41:24]MH_I2C_Read... [11:41:24]Read from MH i2c: D8 01 00 BE 20 00 B6 [11:41:24]int [11:41:24]Write to MH i2c: 01 00 00 BF 20 DF [11:41:24]Write i2c OK [11:41:24]MH_I2C_Read... [11:41:24]Read from MH i2c: 01 [11:41:24]MH_I2C_Read... [11:41:24]Read from MH i2c: 01 07 00 [11:41:24]MH_I2C_Read... [11:41:24]Read from MH i2c: 01 07 00 BF 20 00 48 00 00 00 3C 00 6A [11:41:24]state=2 [11:41:24]Key pressed [11:41:24]int [11:41:24]Write to MH i2c: 01 00 00 C0 20 E0 [11:41:24]*** FLAG_PRN_KEY reset [11:41:24]Write i2c OK [11:41:24]MH_I2C_Read... [11:41:24]Read from MH i2c: 01 [11:41:24]MH_I2C_Read... [11:41:24]Read from MH i2c: 01 07 00 [11:41:24]MH_I2C_Read... [11:41:24]Read from MH i2c: 01 07 00 C0 20 00 00 00 00 00 F5 0F EB [11:41:24]state=2 [11:41:24]Stop feed [11:41:24]int [11:41:24]Write to MH i2c: 01 00 00 C1 20 E1 [11:41:24]*** FLAG_PRN_KEY set [11:41:24]Write i2c OK [11:41:24]MH_I2C_Read... [11:41:24]Read from MH i2c: 01 [11:41:24]MH_I2C_Read... [11:41:24]Read from MH i2c: 01 07 00 [11:41:24]MH_I2C_Read... [11:41:24]Read from MH i2c: 01 07 00 C1 20 00 08 00 00 00 FF 0F FE [11:41:24]state=0 [11:41:24]Key pressed [11:41:24]Feed [11:41:24]Write to MH i2c: D8 00 00 C2 20 B9 [11:41:24]Write i2c OK [11:41:24]MH_I2C_Read... [11:41:24]Read from MH i2c: D8 [11:41:24]MH_I2C_Read... [11:41:24]Read from MH i2c: D8 01 00 [11:41:24]MH_I2C_Read... [11:41:24]Read from MH i2c: D8 01 00 C2 20 00 BA [11:41:24]int [11:41:24]Write to MH i2c: 01 00 00 C3 20 E3 [11:41:24]Write i2c OK [11:41:24]MH_I2C_Read... [11:41:24]Read from MH i2c: 01 [11:41:24]MH_I2C_Read... [11:41:24]Read from MH i2c: 01 07 00 [11:41:24]MH_I2C_Read... [11:41:24]Read from MH i2c: 01 07 00 C3 20 00 48 00 00 00 3C 00 6E [11:41:24]state=2 [11:41:24]Key pressed [11:41:24]int [11:41:24]Write to MH i2c: 01 00 00 C4 20 E4 [11:41:24]*** FLAG_PRN_KEY reset [11:41:24]Write i2c OK [11:41:24]MH_I2C_Read... [11:41:24]Read from MH i2c: 01 [11:41:24]MH_I2C_Read... [11:41:24]Read from MH i2c: 01 07 00 [11:41:24]MH_I2C_Read... [11:41:24]Read from MH i2c: 01 07 00 C4 20 00 00 00 00 00 F6 0F F0 [11:41:24]state=2 [11:41:24]Stop feed [11:41:24]int [11:41:24]Write to MH i2c: 01 00 00 C5 20 E5 [11:41:24]*** FLAG_PRN_KEY set [11:41:24]Write i2c OK [11:41:24]MH_I2C_Read... [11:41:24]Read from MH i2c: 01 [11:41:24]MH_I2C_Read... [11:41:24]Read from MH i2c: 01 07 00 [11:41:24]MH_I2C_Read... [11:41:24]Read from MH i2c: 01 07 00 C5 20 00 08 00 00 00 FF 0F 02 [11:41:24]state=0 [11:41:24]Key pressed [11:41:24]Feed [11:41:24]Write to MH i2c: D8 00 00 C6 20 BD [11:41:24]Write i2c OK [11:41:24]MH_I2C_Read... [11:41:24]Read from MH i2c: D8 [11:41:24]MH_I2C_Read... [11:41:24]Read from MH i2c: D8 01 00 [11:41:24]MH_I2C_Read... [11:41:24]Read from MH i2c: D8 01 00 C6 20 00 BE [11:41:24]int [11:41:24]Write to MH i2c: 01 00 00 C7 20 E7 [11:41:24]Write i2c OK [11:41:24]MH_I2C_Read... [11:41:24]Read from MH i2c: 01 [11:41:24]MH_I2C_Read... [11:41:24]Read from MH i2c: 01 07 00 [11:41:24]MH_I2C_Read... [11:41:24]Read from MH i2c: 01 07 00 C7 20 00 48 00 00 00 3C 00 72 [11:41:24]state=2 [11:41:24]Key pressed [11:41:24]int [11:41:24]Write to MH i2c: 01 00 00 C8 20 E8 [11:41:24]*** FLAG_PRN_KEY reset [11:41:24]Write i2c OK [11:41:24]MH_I2C_Read... [11:41:24]Read from MH i2c: 01 [11:41:24]MH_I2C_Read... [11:41:24]Read from MH i2c: 01 07 00 [11:41:24]MH_I2C_Read... [11:41:24]Read from MH i2c: 01 07 00 C8 20 00 00 00 00 00 F5 0F F3 [11:41:24]state=2 [11:41:24]Stop feed [11:41:25]int [11:41:25]Write to MH i2c: 01 00 00 C9 20 E9 [11:41:25]*** FLAG_PRN_KEY set [11:41:25]Write i2c OK [11:41:25]MH_I2C_Read... [11:41:25]Read from MH i2c: 01 [11:41:25]MH_I2C_Read... [11:41:25]Read from MH i2c: 01 07 00 [11:41:25]MH_I2C_Read... [11:41:25]Read from MH i2c: 01 07 00 C9 20 00 08 00 00 00 FF 0F 06 [11:41:25]state=0 [11:41:25]Key pressed [11:41:25]Feed [11:41:25]Write to MH i2c: D8 00 00 CA 20 C1 [11:41:25]*** FLAG_PRN_KEY reset [11:41:25]Write i2c OK [11:41:25]MH_I2C_Read... [11:41:25]Read from MH i2c: D8 [11:41:25]MH_I2C_Read... [11:41:25]Read from MH i2c: D8 01 00 [11:41:25]MH_I2C_Read... [11:41:25]Read from MH i2c: D8 01 00 CA 20 00 C2 [11:41:25]int line is 0 - check status [11:41:25]Write to MH i2c: 01 00 00 CB 20 EB [11:41:25]Write i2c OK [11:41:25]MH_I2C_Read... [11:41:25]Read from MH i2c: 01 [11:41:25]MH_I2C_Read... [11:41:25]Read from MH i2c: 01 07 00 [11:41:25]MH_I2C_Read... [11:41:25]Read from MH i2c: 01 07 00 CB 20 00 00 00 00 00 F5 0F F6 [11:41:25]state=2 [11:41:25]Stop feed [11:41:25]int [11:41:25]Write to MH i2c: 01 00 00 CC 20 EC [11:41:25]Write i2c OK [11:41:25]MH_I2C_Read... [11:41:25]Read from MH i2c: 01 [11:41:25]MH_I2C_Read... [11:41:25]Read from MH i2c: 01 07 00 [11:41:25]MH_I2C_Read... [11:41:25]Read from MH i2c: 01 07 00 CC 20 00 00 00 00 00 F5 0F F7 [11:41:25]state=0 [11:41:25]int [11:41:25]Write to MH i2c: 01 00 00 CD 20 ED [11:41:25]*** FLAG_PRN_KEY set [11:41:25]Write i2c OK [11:41:25]MH_I2C_Read... [11:41:25]Read from MH i2c: 01 [11:41:25]MH_I2C_Read... [11:41:25]Read from MH i2c: 01 07 00 [11:41:25]MH_I2C_Read... [11:41:25]Read from MH i2c: 01 07 00 CD 20 00 08 00 00 00 F5 0F 00 [11:41:25]state=0 [11:41:25]Key pressed [11:41:25]Feed [11:41:25]Write to MH i2c: D8 00 00 CE 20 C5 [11:41:25]Write i2c OK [11:41:25]MH_I2C_Read... [11:41:25]Read from MH i2c: D8 [11:41:25]MH_I2C_Read... [11:41:25]Read from MH i2c: D8 01 00 [11:41:25]MH_I2C_Read... [11:41:25]Read from MH i2c: D8 01 00 CE 20 00 C6 [11:41:25]int [11:41:25]Write to MH i2c: 01 00 00 CF 20 EF [11:41:25]Write i2c OK [11:41:25]MH_I2C_Read... [11:41:25]Read from MH i2c: 01 [11:41:25]MH_I2C_Read... [11:41:25]Read from MH i2c: 01 07 00 [11:41:25]MH_I2C_Read... [11:41:25]Read from MH i2c: 01 07 00 CF 20 00 48 00 00 00 3C 00 7A [11:41:25]state=2 [11:41:25]Key pressed [11:41:25]int [11:41:25]Write to MH i2c: 01 00 00 D0 20 F0 [11:41:25]*** FLAG_PRN_KEY reset [11:41:25]Write i2c OK [11:41:25]MH_I2C_Read... [11:41:25]Read from MH i2c: 01 [11:41:25]MH_I2C_Read... [11:41:25]Read from MH i2c: 01 07 00 [11:41:25]MH_I2C_Read... [11:41:25]Read from MH i2c: 01 07 00 D0 20 00 00 00 00 00 F5 0F FB [11:41:25]state=2 [11:41:25]Stop feed [11:41:25]int [11:41:25]Write to MH i2c: 01 00 00 D1 20 F1 [11:41:25]*** FLAG_PRN_KEY set [11:41:25]Write i2c OK [11:41:25]MH_I2C_Read... [11:41:25]Read from MH i2c: 01 [11:41:25]MH_I2C_Read... [11:41:25]Read from MH i2c: 01 07 00 [11:41:25]MH_I2C_Read... [11:41:25]Read from MH i2c: 01 07 00 D1 20 00 08 00 00 00 FF 0F 0E [11:41:25]state=0 [11:41:25]Key pressed [11:41:25]Feed [11:41:25]Write to MH i2c: D8 00 00 D2 20 C9 [11:41:25]Write i2c OK [11:41:25]MH_I2C_Read... [11:41:25]Read from MH i2c: D8 [11:41:25]MH_I2C_Read... [11:41:25]Read from MH i2c: D8 01 00 [11:41:25]MH_I2C_Read... [11:41:25]Read from MH i2c: D8 01 00 D2 20 00 CA [11:41:25]int [11:41:25]Write to MH i2c: 01 00 00 D3 20 F3 [11:41:25]Write i2c OK [11:41:25]MH_I2C_Read... [11:41:25]Read from MH i2c: 01 [11:41:25]MH_I2C_Read... [11:41:25]Read from MH i2c: 01 07 00 [11:41:25]MH_I2C_Read... [11:41:25]Read from MH i2c: 01 07 00 D3 20 00 48 00 00 00 3C 00 7E [11:41:25]state=2 [11:41:25]Key pressed [11:41:25]int [11:41:25]Write to MH i2c: 01 00 00 D4 20 F4 [11:41:25]*** FLAG_PRN_KEY reset [11:41:25]Write i2c OK [11:41:25]MH_I2C_Read... [11:41:25]Read from MH i2c: 01 [11:41:25]MH_I2C_Read... [11:41:25]Read from MH i2c: 01 07 00 [11:41:25]MH_I2C_Read... [11:41:25]Read from MH i2c: 01 07 00 D4 20 00 00 00 00 00 F5 0F FF [11:41:25]state=2 [11:41:25]Stop feed [11:41:25]int [11:41:25]Write to MH i2c: 01 00 00 D5 20 F5 [11:41:25]*** FLAG_PRN_KEY set [11:41:25]Write i2c OK [11:41:25]MH_I2C_Read... [11:41:25]Read from MH i2c: 01 [11:41:25]MH_I2C_Read... [11:41:25]Read from MH i2c: 01 07 00 [11:41:25]MH_I2C_Read... [11:41:25]Read from MH i2c: 01 07 00 D5 20 00 08 00 00 00 FF 0F 12 [11:41:25]state=0 [11:41:25]Key pressed [11:41:25]Feed [11:41:25]Write to MH i2c: D8 00 00 D6 20 CD [11:41:25]Write i2c OK [11:41:25]MH_I2C_Read... [11:41:25]Read from MH i2c: D8 [11:41:25]MH_I2C_Read... [11:41:25]Read from MH i2c: D8 01 00 [11:41:25]MH_I2C_Read... [11:41:25]Read from MH i2c: D8 01 00 D6 20 00 CE [11:41:25]int [11:41:25]Write to MH i2c: 01 00 00 D7 20 F7 [11:41:25]Write i2c OK [11:41:25]MH_I2C_Read... [11:41:25]Read from MH i2c: 01 [11:41:25]MH_I2C_Read... [11:41:25]Read from MH i2c: 01 07 00 [11:41:25]MH_I2C_Read... [11:41:25]Read from MH i2c: 01 07 00 D7 20 00 48 00 00 00 3C 00 82 [11:41:25]state=2 [11:41:25]Key pressed [11:41:25]int [11:41:25]Write to MH i2c: 01 00 00 D8 20 F8 [11:41:25]*** FLAG_PRN_KEY reset [11:41:25]Write i2c OK [11:41:25]MH_I2C_Read... [11:41:25]Read from MH i2c: 01 [11:41:25]MH_I2C_Read... [11:41:25]Read from MH i2c: 01 07 00 [11:41:25]MH_I2C_Read... [11:41:25]Read from MH i2c: 01 07 00 D8 20 00 00 00 00 00 F5 0F 03 [11:41:25]state=2 [11:41:25]Stop feed [11:41:28]OFD Sender: No OFD packet to send [11:41:33]OFD Sender: No OFD packet to send [11:41:38]OFD Sender: No OFD packet to send [11:41:43]OFD Sender: No OFD packet to send [11:41:48]OFD Sender: No OFD packet to send [11:41:53]OFD Sender: No OFD packet to send [11:41:58]OFD Sender: No OFD packet to send [11:42:03]OFD Sender: No OFD packet to send [11:42:08]OFD Sender: No OFD packet to send [11:42:13]OFD Sender: No OFD packet to send [11:42:18]OFD Sender: No OFD packet to send [11:42:23]OFD Sender: No OFD packet to send [11:42:28]OFD Sender: No OFD packet to send [11:42:33]OFD Sender: No OFD packet to send [11:42:38]OFD Sender: No OFD packet to send [11:42:43]OFD Sender: No OFD packet to send [11:42:48]OFD Sender: No OFD packet to send [11:42:53]OFD Sender: No OFD packet to send [11:42:58]OFD Sender: No OFD packet to send [11:43:03]OFD Sender: No OFD packet to send [11:43:08]OFD Sender: No OFD packet to send [11:43:13]OFD Sender: No OFD packet to send [11:43:18]OFD Sender: No OFD packet to send [11:43:23]OFD Sender: No OFD packet to send [11:43:28]OFD Sender: No OFD packet to send [11:43:33]OFD Sender: No OFD packet to send [11:43:38]OFD Sender: No OFD packet to send [11:43:43]OFD Sender: No OFD packet to send [11:43:48]OFD Sender: No OFD packet to send [11:43:53]OFD Sender: No OFD packet to send [11:43:58]OFD Sender: No OFD packet to send [11:44:03]OFD Sender: No OFD packet to send [11:44:08]OFD Sender: No OFD packet to send [11:44:13]OFD Sender: No OFD packet to send [11:44:18]OFD Sender: No OFD packet to send [11:44:23]OFD Sender: No OFD packet to send [11:44:28]OFD Sender: No OFD packet to send [11:44:33]OFD Sender: No OFD packet to send [11:44:38]OFD Sender: No OFD packet to send [11:44:43]OFD Sender: No OFD packet to send [11:44:48]OFD Sender: No OFD packet to send [11:44:53]OFD Sender: No OFD packet to send [11:44:58]OFD Sender: No OFD packet to send [11:45:01]accept exits with 9 [11:45:01]New connection [11:45:01]New thread 3067252068 created [11:45:01]Thread 3067395428 joined [11:45:01]Waiting for new connection... [11:45:01] Sock 9.Parse request [11:45:01]Sock 9.Check first char [11:45:01]Sock 9.First char is OK [11:45:01]request: POST /json_proto HTTP/1.0 [11:45:01]Method: POST [11:45:01]URL: /json_proto [11:45:01]Method is POST - this is cgi request [11:45:01]url: /json_proto [11:45:01]query_string will be loaded in cgi processing [11:45:01]execute_cgi json_proto POST (null) [11:45:01]execute_cgi path=json_proto method=POST [11:45:01]POST find Content-Length [11:45:01]Host: 172.17.48.197:8080 [11:45:01]Content-Length: 809 [11:45:01]Content-Type: application/json [11:45:01] [11:45:01]POST finish read [11:45:01]Found Content-Length = 809 [11:45:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106146", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 30.060, "sum" : 2089.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2089.17 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:45:01]execute_script... [11:45: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)1106146", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 30.060, "sum" : 2089.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2089.17 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:45:01]POST & json_proto [11:45:01]process_json_proto [11:45:01]json parsed OK: [11:45:01]protocol is kg_v1.0 [11:45:01]action value=close_receipt [11:45:01]process_action close_receipt [11:45:01]cmd_close_receipt [11:45:01]MH_GetDate [11:45:01]Write to MH i2c: F0 00 00 D9 20 E8 [11:45:01]Write i2c OK [11:45:01]MH_I2C_Read... [11:45:01]Read from MH i2c: F0 [11:45:01]MH_I2C_Read... [11:45:01]Read from MH i2c: F0 09 00 [11:45:01]MH_I2C_Read... [11:45:01]Read from MH i2c: F0 09 00 D9 20 00 C0 62 E4 65 6C AF E3 65 BF [11:45:01]GetLastDocTimeStamp 1709466038 [11:45:01]current date 1709466304 [11:45:01]FM_GetShiftState [11:45:01]SAM_PROTO_GetShiftState [11:45:01]wFMCommunicate request_size=4 [11:45:01]MH_SAM_APDU [11:45:01]CAPDU: 80 13 01 00 [11:45:01]Write to MH i2c: E2 08 00 DA 20 80 13 01 00 00 00 00 00 77 [11:45:01]Write i2c OK [11:45:01]MH_I2C_Read... [11:45:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:45:01]Read from MH i2c: E2 [11:45:01]MH_I2C_Read... [11:45:01]Read from MH i2c: E2 0E 00 [11:45:01]MH_I2C_Read... [11:45:01]Read from MH i2c: E2 0E 00 DA 20 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 39 [11:45:01]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [11:45:01]wFMCommunicate OK [11:45:01]SAM_PROTO_GetShiftState done [11:45:01]FM_GetShiftState done [11:45:01]opened in 1709425579 [11:45:01]opened+sec_in_day 1709511979 [11:45:01]quantity*price = 208917 [11:45:01]sum+1 = 208918 [11:45:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2089.17 НСП 1% : 18.49 НДС 12% : 221.86 Наличными: 0.00 Безнал.: 2089.17 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 80 03.03.2024 11:45 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874798 ФД: 123223 ФПД: 195493921113042 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T114504&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123223&fm=195493921113042&tin=02508201610067®Number=0000000000090573&sum=208917 [11:45:02]StoreToDocumentArchive [11:45:02]shift 323 fd 123223 [11:45:02]save to /storage/0323/doc_00123223 [11:45:02]save last doc name /storage/0323/doc_00123223 to /storage/kkm_last_doc_name [11:45:02]save OK [11:45:02]Clear old archive folders... [11:45:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:45:02]tlvbuf is 00DA2E60 [11:45:02]SAM_PROTO_ClearQueue [11:45:02]wFMCommunicate request_size=4 [11:45:02]MH_SAM_APDU [11:45:02]CAPDU: 80 09 00 00 [11:45:02]Write to MH i2c: E2 08 00 E7 20 80 09 00 00 00 00 00 00 79 [11:45:02]Write i2c OK [11:45:02]MH_I2C_Read... [11:45:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:45:02]Read from MH i2c: E2 [11:45:02]MH_I2C_Read... [11:45:02]Read from MH i2c: E2 03 00 [11:45:02]MH_I2C_Read... [11:45:02]Read from MH i2c: E2 03 00 E7 20 00 90 00 7B [11:45:02]RAPDU: 90 00 [11:45:02]wFMCommunicate OK [11:45:02]SAM_PROTO_ClearQueue done [11:45:02]KKMCreateOFDPacket [11:45:02]OFDProtocolAddRootSTLVToBuf [11:45:02]FM_MakeSignedData [11:45:02]FM_MakeSignedData [11:45:02]SAM_PROTO_SignData [11:45:02]wFMCommunicate request_size=4 [11:45:02]MH_SAM_APDU [11:45:02]CAPDU: 80 0D 01 02 [11:45:02]Write to MH i2c: E2 08 00 E8 20 80 0D 01 02 00 00 00 00 81 [11:45:02]Write i2c OK [11:45:02]MH_I2C_Read... [11:45:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:45:02]Read from MH i2c: E2 [11:45:02]MH_I2C_Read... [11:45:02]Read from MH i2c: E2 03 00 [11:45:02]MH_I2C_Read... [11:45:02]Read from MH i2c: E2 03 00 E8 20 00 90 00 7C [11:45:02]RAPDU: 90 00 [11:45:02]wFMCommunicate OK [11:45:02]wFMCommunicate request_size=255 [11:45:02]MH_SAM_APDU [11:45:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 6C 75 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 15 30 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 15 30 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AA 56 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 15 30 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 C0 62 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 57 E1 01 00 35 04 06 00 B1 [11:45:02]Write to MH i2c: E2 02 01 E9 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 6C 75 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 15 30 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 15 30 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AA 56 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 15 30 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 C0 62 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 57 E1 01 00 35 04 06 00 B1 00 00 BC [11:45:02]Write i2c OK [11:45:02]MH_I2C_Read... [11:45:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:45:02]Read from MH i2c: E2 [11:45:02]MH_I2C_Read... [11:45:02]Read from MH i2c: E2 03 00 [11:45:02]MH_I2C_Read... [11:45:02]Read from MH i2c: E2 03 00 E9 20 00 90 00 7D [11:45:02]RAPDU: 90 00 [11:45:02]wFMCommunicate OK [11:45:02]wFMCommunicate request_size=10 [11:45:02]MH_SAM_APDU [11:45:02]CAPDU: 80 0D 02 02 05 CC F9 B9 43 D2 [11:45:02]Write to MH i2c: E2 0D 00 EA 20 80 0D 02 02 05 00 CC F9 B9 43 D2 00 00 21 [11:45:02]Write i2c OK [11:45:02]MH_I2C_Read... [11:45:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:45:02]Read from MH i2c: E2 [11:45:02]MH_I2C_Read... [11:45:02]Read from MH i2c: E2 03 00 [11:45:02]MH_I2C_Read... [11:45:02]Read from MH i2c: E2 03 00 EA 20 00 90 00 7E [11:45:02]RAPDU: 90 00 [11:45:02]wFMCommunicate OK [11:45:02]wFMCommunicate request_size=4 [11:45:02]MH_SAM_APDU [11:45:02]CAPDU: 80 0D 03 02 [11:45:02]Write to MH i2c: E2 08 00 EB 20 80 0D 03 02 00 00 00 00 86 [11:45:02]Write i2c OK [11:45:02]MH_I2C_Read... [11:45:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:45:02]Read from MH i2c: E2 [11:45:02]MH_I2C_Read... [11:45:02]Read from MH i2c: E2 0B 00 [11:45:02]MH_I2C_Read... [11:45:02]Read from MH i2c: E2 0B 00 EB 20 00 43 33 F9 6D 30 8E 2D 5B 90 00 A9 [11:45:02]RAPDU: 43 33 F9 6D 30 8E 2D 5B 90 00 [11:45:02]wFMCommunicate OK [11:45:02]SAM_PROTO_SignData done [11:45:02]FM_MakeSignedData done [11:45:02]CreateOFDProtocolMessage [11:45:02]wFMCommunicate request_size=4 [11:45:02]MH_SAM_APDU [11:45:02]CAPDU: 80 11 00 00 [11:45:02]Write to MH i2c: E2 08 00 EC 20 80 11 00 00 00 00 00 00 86 [11:45:02]Write i2c OK [11:45:02]MH_I2C_Read... [11:45:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:45:02]Read from MH i2c: E2 [11:45:02]MH_I2C_Read... [11:45:02]Read from MH i2c: E2 17 00 [11:45:02]MH_I2C_Read... [11:45:02]Read from MH i2c: E2 17 00 EC 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 E4 [11:45:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [11:45:02]wFMCommunicate OK [11:45:02]CreateOFDProtocolMessage done [11:45:02]OFDSenderStorePacket 123223 [11:45:02]StoreOFDPacket docnum=123223 [11:45:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 88 F7 07 01 94 FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 6C 75 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 15 30 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 15 30 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AA 56 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 15 30 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 C0 62 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 57 E1 01 00 35 04 06 00 B1 CC F9 B9 43 D2 43 33 F9 6D 30 8E 2D 5B [11:45:02]CheckFolder [11:45:02]dirname=/storage/ofd_packets [11:45:02]CheckFolder done [11:45:02]ProducePacketName [11:45:02]name=ofd_packets/00123223 [11:45:02]NVStorageSaveData ofd_packets/00123223 [11:45:02]File name is /storage/ofd_packets/00123223 [11:45:02]Write 301 bytes [11:45:02]NVStorageSaveData done [11:45:02]OFDSenderStorePacket done [11:45:02]KKMCreateOFDPacket done [11:45:02]NVStorageSaveData kkm_last_timestamp [11:45:02]File name is /storage/kkm_last_timestamp [11:45:02]Write 4 bytes [11:45:02]NVStorageSaveData done [11:45:02]ExternCall_PrintAddStr [11:45:02]wPrintStart [11:45:02]Write to MH i2c: 01 00 00 ED 20 0D [11:45:02]Write i2c OK [11:45:02]MH_I2C_Read... [11:45:02]Read from MH i2c: 01 [11:45:02]MH_I2C_Read... [11:45:02]Read from MH i2c: 01 07 00 [11:45:02]MH_I2C_Read... [11:45:02]Read from MH i2c: 01 07 00 ED 20 00 00 00 00 00 FF 0F 22 [11:45:02]RasterBufferAndPrint [11:45:02]line Счет N : (1)1106146 [11:45:02]line ИНН: 02508201610067 [11:45:02]line Контрольно-Кассовый Чек [11:45:02]line ПРОДАЖА [11:45:02]line ТРК (МРК, ГНК) : 53 [11:45:02]line Товар: 2710124500 [11:45:02]line Аи-95-К-5 [11:45:02]line 30.060 * 69.50 [11:45:02]line = 2089.17 [11:45:02]line НДС 12% НСП 1% [11:45:02]line > о реализуемом товаре [11:45:02]line ИТОГО: 2089.17 [11:45:02]line НСП 1% : 18.49 [11:45:02]line НДС 12% : 221.86 [11:45:02]line Наличными: 0.00 [11:45:02]line Безнал.: 2089.17 [11:45:02]line Место: АЗС № 25 "Партнер Нефть" [11:45:02]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [11:45:02]line СНО: Общий режим [11:45:02]line Чек 80 03.03.2024 11:45 [11:45:02]line Смена: 323 ФФД: 1.0 [11:45:02]line ЗНМ: 0300000019 [11:45:02]line РНМ: 0000000000090573 [11:45:02]line Версия ККМ: 001 [11:45:02]line Платежная система: О! деньги [11:45:02]line ФМ: 0000000000874798 [11:45:02]line ФД: 123223 [11:45:02]line ФПД: 195493921113042 [11:45:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T114504&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123223&fm=195493921113042&tin=02508201610067®Number=0000000000090573&sum=208917 [11:45:03]OFD Sender: Processing packet 123223 [packets to send 112, broken 111] [11:45:03]ProducePacketName [11:45:03]name=ofd_packets/00123223 [11:45:03]OFD Sender: To server: pG, [11:45:03]CommunicateWithHost lk.salyk.kg:30040 [11:45:03]ConnectInit lk.salyk.kg [11:45:03]written 0, free lines is 4095 [11:45:03]Connected sock=10 [11:45: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 37 39 38 0F 01 00 00 88 F7 07 01 94 FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 6C 75 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 15 30 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 15 30 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AA 56 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 15 30 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 C0 62 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 57 E1 01 00 35 04 06 00 B1 CC F9 B9 43 D2 43 33 F9 6D 30 8E 2D 5B [11:45:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 23 11 47 00 87 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 37 39 38 10 04 04 00 57 E1 01 00 F4 03 04 00 EC 0E E4 65 B6 04 01 00 00 60 8B 6E 86 99 66 D4 7C [11:45:03]CommunicateWithHost err = 0 [11:45:03]CheckOFDResponse [11:45:03]1017 (14) - 77093643461234 [11:45:03]1041 (16) - 0000000000874798 [11:45:03]1040 (4) - 123223 [11:45:03]1012 (4) - 03.03.2024 05:47 [11:45:03]1206 (1) - 0 [11:45:03]OFD Sender: Remove packet 123223 [11:45:03]ProducePacketName [11:45:03]name=ofd_packets/00123223 [11:45:03]NVStorageDeleteData [11:45:03]Write to MH i2c: 01 00 00 17 21 38 [11:45:03]Write i2c OK [11:45:03]MH_I2C_Read... [11:45:03]Read from MH i2c: 01 [11:45:03]MH_I2C_Read... [11:45:03]Read from MH i2c: 01 07 00 [11:45:03]MH_I2C_Read... [11:45:03]Read from MH i2c: 01 07 00 17 21 00 00 00 00 00 17 0D 63 [11:45:03]RasterBufferAndPrint [11:45:03]line [11:45:03]line [11:45:03]line [11:45:03]line [11:45:03]line [11:45:03]written 0, free lines is 3357 [11:45:03]MH_Cut [11:45:03]Write to MH i2c: D1 01 00 1E 21 01 11 [11:45:03]Write i2c OK [11:45:03]MH_I2C_Read... [11:45:03]Read from MH i2c: D1 [11:45:03]MH_I2C_Read... [11:45:03]Read from MH i2c: D1 01 00 [11:45:03]MH_I2C_Read... [11:45:03]Read from MH i2c: D1 01 00 1E 21 00 10 [11:45:03]Write to MH i2c: 01 00 00 1F 21 40 [11:45:03]Write i2c OK [11:45:03]MH_I2C_Read... [11:45:03]OFD Sender: No OFD packet to send [11:45:04]*** Cut start [11:45:04]*** Purtial cut [11:45:04]*** Stage 1: CUTSNS_PIN = 1 [11:45:06]Read from MH i2c: 01 [11:45:06]MH_I2C_Read... [11:45:06]*** Stop cut motor [11:45:06]*** Cut end [11:45:06]Read from MH i2c: 01 07 00 [11:45:06]MH_I2C_Read... [11:45:06]Read from MH i2c: 01 07 00 1F 21 00 00 00 00 00 FF 0F 55 [11:45:06]process_action close_receipt done [11:45:06]requested_data is exist [11:45:06]produce_requested_data [11:45:06]requested_item fm.sn is exist - process it [11:45:06]wFMCommunicate request_size=4 [11:45:06]MH_SAM_APDU [11:45:06]CAPDU: 80 11 00 00 [11:45:06]Write to MH i2c: E2 08 00 20 21 80 11 00 00 00 00 00 00 BB [11:45:06]Write i2c OK [11:45:06]MH_I2C_Read... [11:45:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:45:06]Read from MH i2c: E2 [11:45:06]MH_I2C_Read... [11:45:06]Read from MH i2c: E2 17 00 [11:45:06]MH_I2C_Read... [11:45:06]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 37 39 38 90 00 19 [11:45:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [11:45:06]wFMCommunicate OK [11:45:06]requested_item fd.num is exist - process it [11:45:06]SAM_PROTO_GetFieldsCounters [11:45:06]wFMCommunicate request_size=4 [11:45:06]MH_SAM_APDU [11:45:06]CAPDU: 80 13 00 00 [11:45:06]Write to MH i2c: E2 08 00 21 21 80 13 00 00 00 00 00 00 BE [11:45:06]Write i2c OK [11:45:06]MH_I2C_Read... [11:45:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:45:06]Read from MH i2c: E2 [11:45:06]MH_I2C_Read... [11:45:06]Read from MH i2c: E2 62 00 [11:45:06]MH_I2C_Read... [11:45:06]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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 57 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 56 [11: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 57 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:45:06]wFMCommunicate OK [11:45:06]SAM_PROTO_GetFieldsCounters done [11:45:06]requested_item shift.num is exist - process it [11:45:06]requested_item shift.opened is exist - process it [11:45:06]req_shift_opened [11:45:06]FM_GetShiftState [11:45:06]SAM_PROTO_GetShiftState [11:45:06]wFMCommunicate request_size=4 [11:45:06]MH_SAM_APDU [11:45:06]CAPDU: 80 13 01 00 [11:45:06]Write to MH i2c: E2 08 00 22 21 80 13 01 00 00 00 00 00 C0 [11:45:06]Write i2c OK [11:45:06]MH_I2C_Read... [11:45:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:45:06]Read from MH i2c: E2 [11:45:06]MH_I2C_Read... [11:45:06]Read from MH i2c: E2 0E 00 [11:45:06]MH_I2C_Read... [11:45:06]Read from MH i2c: E2 0E 00 22 21 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 82 [11:45:06]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [11:45:06]wFMCommunicate OK [11:45:06]SAM_PROTO_GetShiftState done [11:45:06]FM_GetShiftState done [11:45:06]req_shift_opened done [11:45:06]requested_item shift.open_date is exist - process it [11:45:06]req_shift_open_date [11:45:06]req_shift_open_date done [11:45:06]produce_requested_data done [11:45:06]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123223,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [11:45:06]process_action_free close_receipt [11:45:06]json_value_free [11:45:06]json_value_free done [11:45:06]process_json_proto returns [11:45:06]Send response to host [11:45:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123223,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [11:45:06]free response buf [11:45:06]execute_script done [11:45:06]execute_script returns [11:45:06]free content buf [11:45:06]Sock 9.Close socket [11:45:06]Sock 9.Thread stoped [11:45:08]OFD Sender: No OFD packet to send [11:45:13]OFD Sender: No OFD packet to send [11:45:18]OFD Sender: No OFD packet to send [11:45:23]OFD Sender: No OFD packet to send [11:45:28]OFD Sender: No OFD packet to send [11:45:33]OFD Sender: No OFD packet to send [11:45:38]OFD Sender: No OFD packet to send [11:45:43]OFD Sender: No OFD packet to send [11:45:48]OFD Sender: No OFD packet to send [11:45:54]OFD Sender: No OFD packet to send [11:45:59]OFD Sender: No OFD packet to send [11:46:04]OFD Sender: No OFD packet to send [11:46:09]OFD Sender: No OFD packet to send [11:46:14]OFD Sender: No OFD packet to send [11:46:19]OFD Sender: No OFD packet to send [11:46:24]OFD Sender: No OFD packet to send [11:46:29]OFD Sender: No OFD packet to send [11:46:34]OFD Sender: No OFD packet to send [11:46:39]OFD Sender: No OFD packet to send [11:46:44]OFD Sender: No OFD packet to send [11:46:49]OFD Sender: No OFD packet to send [11:46:54]OFD Sender: No OFD packet to send [11:46:59]OFD Sender: No OFD packet to send [11:47:04]OFD Sender: No OFD packet to send [11:47:09]OFD Sender: No OFD packet to send [11:47:14]OFD Sender: No OFD packet to send [11:47:14]accept exits with 7 [11:47:14]New connection [11:47:14]New thread 3067395428 created [11:47:14]Thread 3067252068 joined [11:47:14]Waiting for new connection... [11:47:14] Sock 7.Parse request [11:47:14]Sock 7.Check first char [11:47:14]Sock 7.First char is OK [11:47:14]request: POST /json_proto HTTP/1.0 [11:47:14]Method: POST [11:47:14]URL: /json_proto [11:47:14]Method is POST - this is cgi request [11:47:14]url: /json_proto [11:47:14]query_string will be loaded in cgi processing [11:47:14]execute_cgi json_proto POST (null) [11:47:14]execute_cgi path=json_proto method=POST [11:47:14]POST find Content-Length [11:47:14]Host: 172.17.48.197:8080 [11:47:14]Content-Length: 817 [11:47:14]Content-Type: application/json [11:47:14] [11:47:14]POST finish read [11:47:14]Found Content-Length = 817 [11:47:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106147", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:47:14]execute_script... [11:47: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)1106147", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:47:14]POST & json_proto [11:47:14]process_json_proto [11:47:14]json parsed OK: [11:47:14]protocol is kg_v1.0 [11:47:14]action value=close_receipt [11:47:14]process_action close_receipt [11:47:14]cmd_close_receipt [11:47:14]MH_GetDate [11:47:14]Write to MH i2c: F0 00 00 23 21 33 [11:47:14]Write i2c OK [11:47:14]MH_I2C_Read... [11:47:14]Read from MH i2c: F0 [11:47:14]MH_I2C_Read... [11:47:14]Read from MH i2c: F0 09 00 [11:47:14]MH_I2C_Read... [11:47:14]Read from MH i2c: F0 09 00 23 21 00 45 63 E4 65 6C AF E3 65 90 [11:47:14]GetLastDocTimeStamp 1709466304 [11:47:14]current date 1709466437 [11:47:14]FM_GetShiftState [11:47:14]SAM_PROTO_GetShiftState [11:47:14]wFMCommunicate request_size=4 [11:47:14]MH_SAM_APDU [11:47:14]CAPDU: 80 13 01 00 [11:47:14]Write to MH i2c: E2 08 00 24 21 80 13 01 00 00 00 00 00 C2 [11:47:14]Write i2c OK [11:47:14]MH_I2C_Read... [11:47:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:14]Read from MH i2c: E2 [11:47:14]MH_I2C_Read... [11:47:14]Read from MH i2c: E2 0E 00 [11:47:14]MH_I2C_Read... [11:47:14]Read from MH i2c: E2 0E 00 24 21 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 84 [11:47:14]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [11:47:14]wFMCommunicate OK [11:47:14]SAM_PROTO_GetShiftState done [11:47:14]FM_GetShiftState done [11:47:14]opened in 1709425579 [11:47:14]opened+sec_in_day 1709511979 [11:47:14]quantity*price = 50015 [11:47:14]sum+1 = 50016 [11:47:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.15 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.15 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 81 03.03.2024 11:47 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874798 ФД: 123224 ФПД: 184952751212825 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T114717&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123224&fm=184952751212825&tin=02508201610067®Number=0000000000090573&sum=50015 [11:47:15]StoreToDocumentArchive [11:47:15]shift 323 fd 123224 [11:47:15]save to /storage/0323/doc_00123224 [11:47:15]save last doc name /storage/0323/doc_00123224 to /storage/kkm_last_doc_name [11:47:15]save OK [11:47:15]Clear old archive folders... [11:47:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:47:15]tlvbuf is 00E33450 [11:47:15]SAM_PROTO_ClearQueue [11:47:15]wFMCommunicate request_size=4 [11:47:15]MH_SAM_APDU [11:47:15]CAPDU: 80 09 00 00 [11:47:15]Write to MH i2c: E2 08 00 31 21 80 09 00 00 00 00 00 00 C4 [11:47:15]Write i2c OK [11:47:15]MH_I2C_Read... [11:47:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:47:15]Read from MH i2c: E2 [11:47:15]MH_I2C_Read... [11:47:15]Read from MH i2c: E2 03 00 [11:47:15]MH_I2C_Read... [11:47:15]Read from MH i2c: E2 03 00 31 21 00 90 00 C6 [11:47:15]RAPDU: 90 00 [11:47:15]wFMCommunicate OK [11:47:15]SAM_PROTO_ClearQueue done [11:47:15]KKMCreateOFDPacket [11:47:15]OFDProtocolAddRootSTLVToBuf [11:47:15]FM_MakeSignedData [11:47:15]FM_MakeSignedData [11:47:15]SAM_PROTO_SignData [11:47:15]wFMCommunicate request_size=4 [11:47:15]MH_SAM_APDU [11:47:15]CAPDU: 80 0D 01 02 [11:47:15]Write to MH i2c: E2 08 00 32 21 80 0D 01 02 00 00 00 00 CC [11:47:15]Write i2c OK [11:47:15]MH_I2C_Read... [11:47:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:47:15]Read from MH i2c: E2 [11:47:15]MH_I2C_Read... [11:47:15]Read from MH i2c: E2 03 00 [11:47:15]MH_I2C_Read... [11:47:15]Read from MH i2c: E2 03 00 32 21 00 90 00 C7 [11:47:15]RAPDU: 90 00 [11:47:15]wFMCommunicate OK [11:47:15]wFMCommunicate request_size=255 [11:47:15]MH_SAM_APDU [11:47:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 45 63 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 58 E1 01 00 35 04 06 00 A8 [11:47:15]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 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 45 63 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 58 E1 01 00 35 04 06 00 A8 00 00 32 [11:47:15]Write i2c OK [11:47:15]MH_I2C_Read... [11:47:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:16]Read from MH i2c: E2 [11:47:16]MH_I2C_Read... [11:47:16]Read from MH i2c: E2 03 00 [11:47:16]MH_I2C_Read... [11:47:16]Read from MH i2c: E2 03 00 33 21 00 90 00 C8 [11:47:16]RAPDU: 90 00 [11:47:16]wFMCommunicate OK [11:47:16]wFMCommunicate request_size=10 [11:47:16]MH_SAM_APDU [11:47:16]CAPDU: 80 0D 02 02 05 36 AB 09 49 19 [11:47:16]Write to MH i2c: E2 0D 00 34 21 80 0D 02 02 05 00 36 AB 09 49 19 00 00 25 [11:47:16]Write i2c OK [11:47:16]MH_I2C_Read... [11:47:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:16]Read from MH i2c: E2 [11:47:16]MH_I2C_Read... [11:47:16]Read from MH i2c: E2 03 00 [11:47:16]MH_I2C_Read... [11:47:16]Read from MH i2c: E2 03 00 34 21 00 90 00 C9 [11:47:16]RAPDU: 90 00 [11:47:16]wFMCommunicate OK [11:47:16]wFMCommunicate request_size=4 [11:47:16]MH_SAM_APDU [11:47:16]CAPDU: 80 0D 03 02 [11:47:16]Write to MH i2c: E2 08 00 35 21 80 0D 03 02 00 00 00 00 D1 [11:47:16]Write i2c OK [11:47:16]MH_I2C_Read... [11:47:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:47:16]Read from MH i2c: E2 [11:47:16]MH_I2C_Read... [11:47:16]Read from MH i2c: E2 0B 00 [11:47:16]MH_I2C_Read... [11:47:16]Read from MH i2c: E2 0B 00 35 21 00 0D 56 5E 43 AD 4D 4C A3 90 00 BF [11:47:16]RAPDU: 0D 56 5E 43 AD 4D 4C A3 90 00 [11:47:16]wFMCommunicate OK [11:47:16]SAM_PROTO_SignData done [11:47:16]FM_MakeSignedData done [11:47:16]CreateOFDProtocolMessage [11:47:16]wFMCommunicate request_size=4 [11:47:16]MH_SAM_APDU [11:47:16]CAPDU: 80 11 00 00 [11:47:16]Write to MH i2c: E2 08 00 36 21 80 11 00 00 00 00 00 00 D1 [11:47:16]Write i2c OK [11:47:16]MH_I2C_Read... [11:47:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:16]Read from MH i2c: E2 [11:47:16]MH_I2C_Read... [11:47:16]Read from MH i2c: E2 17 00 [11:47:16]MH_I2C_Read... [11:47:16]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 37 39 38 90 00 2F [11:47:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [11:47:16]wFMCommunicate OK [11:47:16]CreateOFDProtocolMessage done [11:47:16]OFDSenderStorePacket 123224 [11:47:16]StoreOFDPacket docnum=123224 [11:47:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 AC 92 07 01 33 B2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 45 63 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 58 E1 01 00 35 04 06 00 A8 36 AB 09 49 19 0D 56 5E 43 AD 4D 4C A3 [11:47:16]CheckFolder [11:47:16]dirname=/storage/ofd_packets [11:47:16]CheckFolder done [11:47:16]ProducePacketName [11:47:16]name=ofd_packets/00123224 [11:47:16]NVStorageSaveData ofd_packets/00123224 [11:47:16]File name is /storage/ofd_packets/00123224 [11:47:16]Write 301 bytes [11:47:16]NVStorageSaveData done [11:47:16]OFDSenderStorePacket done [11:47:16]KKMCreateOFDPacket done [11:47:16]NVStorageSaveData kkm_last_timestamp [11:47:16]File name is /storage/kkm_last_timestamp [11:47:16]Write 4 bytes [11:47:16]NVStorageSaveData done [11:47:16]ExternCall_PrintAddStr [11:47:16]wPrintStart [11:47:16]Write to MH i2c: 01 00 00 37 21 58 [11:47:16]Write i2c OK [11:47:16]MH_I2C_Read... [11:47:16]Read from MH i2c: 01 [11:47:16]MH_I2C_Read... [11:47:16]Read from MH i2c: 01 07 00 [11:47:16]MH_I2C_Read... [11:47:16]Read from MH i2c: 01 07 00 37 21 00 00 00 00 00 FF 0F 6D [11:47:16]RasterBufferAndPrint [11:47:16]line Счет N : (1)1106147 [11:47:16]line ИНН: 02508201610067 [11:47:16]line Контрольно-Кассовый Чек [11:47:16]line ПРОДАЖА [11:47:16]line ТРК (МРК, ГНК) : 11 [11:47:16]line Товар: 2710124130 [11:47:16]line Аи-92-К-5 [11:47:16]line 8.080 * 61.90 [11:47:16]line = 500.15 [11:47:16]line НДС 12% НСП 1% [11:47:16]line > о реализуемом товаре [11:47:16]line ИТОГО: 500.15 [11:47:16]line НСП 1% : 4.43 [11:47:16]line НДС 12% : 53.11 [11:47:16]line Наличными: 0.00 [11:47:16]line Безнал.: 500.15 [11:47:16]line Место: АЗС № 25 "Партнер Нефть" [11:47:16]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [11:47:16]line СНО: Общий режим [11:47:16]line Чек 81 03.03.2024 11:47 [11:47:16]line Смена: 323 ФФД: 1.0 [11:47:16]line ЗНМ: 0300000019 [11:47:16]line РНМ: 0000000000090573 [11:47:16]line Версия ККМ: 001 [11:47:16]line Платежная система: Бакай Банк [11:47:16]line ФМ: 0000000000874798 [11:47:16]line ФД: 123224 [11:47:16]line ФПД: 184952751212825 [11:47:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T114717&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123224&fm=184952751212825&tin=02508201610067®Number=0000000000090573&sum=50015 [11:47:16]written 0, free lines is 4095 [11:47:16]OFD Sender: Processing packet 123224 [packets to send 112, broken 111] [11:47:16]ProducePacketName [11:47:16]name=ofd_packets/00123224 [11:47:16]OFD Sender: To server: pG, [11:47:16]CommunicateWithHost lk.salyk.kg:30040 [11:47:16]ConnectInit lk.salyk.kg [11:47:16]Connected sock=10 [11:47: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 37 39 38 0F 01 00 00 AC 92 07 01 33 B2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 45 63 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 58 E1 01 00 35 04 06 00 A8 36 AB 09 49 19 0D 56 5E 43 AD 4D 4C A3 [11:47:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 AE 50 47 00 BC 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 37 39 38 10 04 04 00 58 E1 01 00 F4 03 04 00 71 0F E4 65 B6 04 01 00 00 C9 72 FA C3 BC 0A ED 7D [11:47:16]CommunicateWithHost err = 0 [11:47:16]CheckOFDResponse [11:47:16]1017 (14) - 77093643461234 [11:47:16]1041 (16) - 0000000000874798 [11:47:16]1040 (4) - 123224 [11:47:16]1012 (4) - 03.03.2024 05:49 [11:47:16]1206 (1) - 0 [11:47:16]OFD Sender: Remove packet 123224 [11:47:16]ProducePacketName [11:47:16]name=ofd_packets/00123224 [11:47:16]NVStorageDeleteData [11:47:16]Write to MH i2c: 01 00 00 61 21 82 [11:47:16]Write i2c OK [11:47:16]MH_I2C_Read... [11:47:16]Read from MH i2c: 01 [11:47:16]MH_I2C_Read... [11:47:16]Read from MH i2c: 01 07 00 [11:47:16]MH_I2C_Read... [11:47:16]Read from MH i2c: 01 07 00 61 21 00 00 00 00 00 FF 0C 94 [11:47:16]RasterBufferAndPrint [11:47:16]line [11:47:16]line [11:47:16]line [11:47:16]line [11:47:16]line [11:47:16]written 0, free lines is 3333 [11:47:16]MH_Cut [11:47:16]Write to MH i2c: D1 01 00 68 21 01 5B [11:47:16]Write i2c OK [11:47:16]MH_I2C_Read... [11:47:16]Read from MH i2c: D1 [11:47:16]MH_I2C_Read... [11:47:16]Read from MH i2c: D1 01 00 [11:47:16]MH_I2C_Read... [11:47:16]Read from MH i2c: D1 01 00 68 21 00 5A [11:47:16]Write to MH i2c: 01 00 00 69 21 8A [11:47:16]Write i2c OK [11:47:16]MH_I2C_Read... [11:47:17]OFD Sender: No OFD packet to send [11:47:17]*** Cut start [11:47:17]*** Purtial cut [11:47:17]*** Stage 1: CUTSNS_PIN = 1 [11:47:19]Read from MH i2c: 01 [11:47:19]MH_I2C_Read... [11:47:19]*** Stop cut motor [11:47:19]*** Cut end [11:47:19]Read from MH i2c: 01 07 00 [11:47:19]MH_I2C_Read... [11:47:19]Read from MH i2c: 01 07 00 69 21 00 00 00 00 00 FF 0F 9F [11:47:19]process_action close_receipt done [11:47:19]requested_data is exist [11:47:19]produce_requested_data [11:47:19]requested_item fm.sn is exist - process it [11:47:19]wFMCommunicate request_size=4 [11:47:19]MH_SAM_APDU [11:47:19]CAPDU: 80 11 00 00 [11:47:19]Write to MH i2c: E2 08 00 6A 21 80 11 00 00 00 00 00 00 05 [11:47:19]Write i2c OK [11:47:19]MH_I2C_Read... [11:47:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:19]Read from MH i2c: E2 [11:47:19]MH_I2C_Read... [11:47:19]Read from MH i2c: E2 17 00 [11:47:19]MH_I2C_Read... [11:47:19]Read from MH i2c: E2 17 00 6A 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 63 [11:47:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [11:47:19]wFMCommunicate OK [11:47:19]requested_item fd.num is exist - process it [11:47:19]SAM_PROTO_GetFieldsCounters [11:47:19]wFMCommunicate request_size=4 [11:47:19]MH_SAM_APDU [11:47:19]CAPDU: 80 13 00 00 [11:47:19]Write to MH i2c: E2 08 00 6B 21 80 13 00 00 00 00 00 00 08 [11:47:19]Write i2c OK [11:47:19]MH_I2C_Read... [11:47:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:47:19]Read from MH i2c: E2 [11:47:19]MH_I2C_Read... [11:47:19]Read from MH i2c: E2 62 00 [11:47:19]MH_I2C_Read... [11:47:19]Read from MH i2c: E2 62 00 6B 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 58 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 A4 [11:47: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 58 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:47:19]wFMCommunicate OK [11:47:19]SAM_PROTO_GetFieldsCounters done [11:47:19]requested_item shift.num is exist - process it [11:47:19]requested_item shift.opened is exist - process it [11:47:19]req_shift_opened [11:47:19]FM_GetShiftState [11:47:19]SAM_PROTO_GetShiftState [11:47:19]wFMCommunicate request_size=4 [11:47:19]MH_SAM_APDU [11:47:19]CAPDU: 80 13 01 00 [11:47:19]Write to MH i2c: E2 08 00 6C 21 80 13 01 00 00 00 00 00 0A [11:47:19]Write i2c OK [11:47:19]MH_I2C_Read... [11:47:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:19]Read from MH i2c: E2 [11:47:19]MH_I2C_Read... [11:47:19]Read from MH i2c: E2 0E 00 [11:47:19]MH_I2C_Read... [11:47:19]Read from MH i2c: E2 0E 00 6C 21 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 CC [11:47:19]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [11:47:19]wFMCommunicate OK [11:47:19]SAM_PROTO_GetShiftState done [11:47:19]FM_GetShiftState done [11:47:19]req_shift_opened done [11:47:19]requested_item shift.open_date is exist - process it [11:47:19]req_shift_open_date [11:47:19]req_shift_open_date done [11:47:19]produce_requested_data done [11:47:19]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123224,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [11:47:19]process_action_free close_receipt [11:47:19]json_value_free [11:47:19]json_value_free done [11:47:19]process_json_proto returns [11:47:19]Send response to host [11:47:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123224,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [11:47:19]free response buf [11:47:19]execute_script done [11:47:19]execute_script returns [11:47:19]free content buf [11:47:19]Sock 7.Close socket [11:47:19]Sock 7.Thread stoped [11:47:22]OFD Sender: No OFD packet to send [11:47:27]OFD Sender: No OFD packet to send [11:47:32]OFD Sender: No OFD packet to send [11:47:37]OFD Sender: No OFD packet to send [11:47:42]OFD Sender: No OFD packet to send [11:47:47]OFD Sender: No OFD packet to send [11:47:52]OFD Sender: No OFD packet to send [11:47:57]OFD Sender: No OFD packet to send [11:48:02]OFD Sender: No OFD packet to send [11:48:07]OFD Sender: No OFD packet to send [11:48:12]OFD Sender: No OFD packet to send [11:48:17]OFD Sender: No OFD packet to send [11:48:22]OFD Sender: No OFD packet to send [11:48:27]OFD Sender: No OFD packet to send [11:48:32]OFD Sender: No OFD packet to send [11:48:37]OFD Sender: No OFD packet to send [11:48:42]OFD Sender: No OFD packet to send [11:48:47]OFD Sender: No OFD packet to send [11:48:52]OFD Sender: No OFD packet to send [11:48:53]accept exits with 9 [11:48:53]New connection [11:48:53]New thread 3067252068 created [11:48:53]Thread 3067395428 joined [11:48:53]Waiting for new connection... [11:48:53] Sock 9.Parse request [11:48:53]Sock 9.Check first char [11:48:53]Sock 9.First char is OK [11:48:53]request: POST /json_proto HTTP/1.0 [11:48:53]Method: POST [11:48:53]URL: /json_proto [11:48:53]Method is POST - this is cgi request [11:48:53]url: /json_proto [11:48:53]query_string will be loaded in cgi processing [11:48:53]execute_cgi json_proto POST (null) [11:48:53]execute_cgi path=json_proto method=POST [11:48:53]POST find Content-Length [11:48:53]Host: 172.17.48.197:8080 [11:48:53]Content-Length: 809 [11:48:53]Content-Type: application/json [11:48:53] [11:48:53]POST finish read [11:48:53]Found Content-Length = 809 [11:48:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106148", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 20.000, "sum" : 1238.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1238.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:53]execute_script... [11:48:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106148", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 20.000, "sum" : 1238.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1238.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:53]POST & json_proto [11:48:53]process_json_proto [11:48:53]json parsed OK: [11:48:53]protocol is kg_v1.0 [11:48:53]action value=close_receipt [11:48:53]process_action close_receipt [11:48:53]cmd_close_receipt [11:48:53]MH_GetDate [11:48:53]Write to MH i2c: F0 00 00 6D 21 7D [11:48:53]Write i2c OK [11:48:53]MH_I2C_Read... [11:48:53]Read from MH i2c: F0 [11:48:53]MH_I2C_Read... [11:48:53]Read from MH i2c: F0 09 00 [11:48:53]MH_I2C_Read... [11:48:53]Read from MH i2c: F0 09 00 6D 21 00 A8 63 E4 65 6C AF E3 65 3D [11:48:53]GetLastDocTimeStamp 1709466437 [11:48:53]current date 1709466536 [11:48:53]FM_GetShiftState [11:48:53]SAM_PROTO_GetShiftState [11:48:53]wFMCommunicate request_size=4 [11:48:53]MH_SAM_APDU [11:48:53]CAPDU: 80 13 01 00 [11:48:53]Write to MH i2c: E2 08 00 6E 21 80 13 01 00 00 00 00 00 0C [11:48:53]Write i2c OK [11:48:53]MH_I2C_Read... [11:48:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:53]Read from MH i2c: E2 [11:48:53]MH_I2C_Read... [11:48:53]Read from MH i2c: E2 0E 00 [11:48:53]MH_I2C_Read... [11:48:53]Read from MH i2c: E2 0E 00 6E 21 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 CE [11:48:53]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [11:48:53]wFMCommunicate OK [11:48:53]SAM_PROTO_GetShiftState done [11:48:53]FM_GetShiftState done [11:48:53]opened in 1709425579 [11:48:53]opened+sec_in_day 1709511979 [11:48:53]quantity*price = 123800 [11:48:53]sum+1 = 123801 [11:48:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1238.00 НСП 1% : 10.96 НДС 12% : 131.47 Наличными: 0.00 Безнал.: 1238.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 82 03.03.2024 11:48 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874798 ФД: 123225 ФПД: 216912166548613 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T114856&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123225&fm=216912166548613&tin=02508201610067®Number=0000000000090573&sum=123800 [11:48:55]StoreToDocumentArchive [11:48:55]shift 323 fd 123225 [11:48:55]save to /storage/0323/doc_00123225 [11:48:55]save last doc name /storage/0323/doc_00123225 to /storage/kkm_last_doc_name [11:48:55]save OK [11:48:55]Clear old archive folders... [11:48:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:48:55]tlvbuf is 00DB7BD0 [11:48:55]SAM_PROTO_ClearQueue [11:48:55]wFMCommunicate request_size=4 [11:48:55]MH_SAM_APDU [11:48:55]CAPDU: 80 09 00 00 [11:48:55]Write to MH i2c: E2 08 00 7B 21 80 09 00 00 00 00 00 00 0E [11:48:55]Write i2c OK [11:48:55]MH_I2C_Read... [11:48:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:48:55]Read from MH i2c: E2 [11:48:55]MH_I2C_Read... [11:48:55]Read from MH i2c: E2 03 00 [11:48:55]MH_I2C_Read... [11:48:55]Read from MH i2c: E2 03 00 7B 21 00 90 00 10 [11:48:55]RAPDU: 90 00 [11:48:55]wFMCommunicate OK [11:48:55]SAM_PROTO_ClearQueue done [11:48:55]KKMCreateOFDPacket [11:48:55]OFDProtocolAddRootSTLVToBuf [11:48:55]FM_MakeSignedData [11:48:55]FM_MakeSignedData [11:48:55]SAM_PROTO_SignData [11:48:55]wFMCommunicate request_size=4 [11:48:55]MH_SAM_APDU [11:48:55]CAPDU: 80 0D 01 02 [11:48:55]Write to MH i2c: E2 08 00 7C 21 80 0D 01 02 00 00 00 00 16 [11:48:55]Write i2c OK [11:48:55]MH_I2C_Read... [11:48:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:48:55]Read from MH i2c: E2 [11:48:55]MH_I2C_Read... [11:48:55]Read from MH i2c: E2 03 00 [11:48:55]MH_I2C_Read... [11:48:55]Read from MH i2c: E2 03 00 7C 21 00 90 00 11 [11:48:55]RAPDU: 90 00 [11:48:55]wFMCommunicate OK [11:48:55]wFMCommunicate request_size=255 [11:48:55]MH_SAM_APDU [11:48:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 98 E3 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 E3 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 33 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 E3 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 A8 63 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 59 E1 01 00 35 04 06 00 C5 [11:48:55]Write to MH i2c: E2 02 01 7D 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 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 98 E3 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 E3 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 33 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 E3 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 A8 63 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 59 E1 01 00 35 04 06 00 C5 00 00 16 [11:48:55]Write i2c OK [11:48:55]MH_I2C_Read... [11:48:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:55]Read from MH i2c: E2 [11:48:55]MH_I2C_Read... [11:48:55]Read from MH i2c: E2 03 00 [11:48:55]MH_I2C_Read... [11:48:55]Read from MH i2c: E2 03 00 7D 21 00 90 00 12 [11:48:55]RAPDU: 90 00 [11:48:55]wFMCommunicate OK [11:48:55]wFMCommunicate request_size=10 [11:48:55]MH_SAM_APDU [11:48:55]CAPDU: 80 0D 02 02 05 47 CC A2 74 85 [11:48:55]Write to MH i2c: E2 0D 00 7E 21 80 0D 02 02 05 00 47 CC A2 74 85 00 00 D1 [11:48:55]Write i2c OK [11:48:55]MH_I2C_Read... [11:48:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:55]Read from MH i2c: E2 [11:48:55]MH_I2C_Read... [11:48:55]Read from MH i2c: E2 03 00 [11:48:55]MH_I2C_Read... [11:48:55]Read from MH i2c: E2 03 00 7E 21 00 90 00 13 [11:48:55]RAPDU: 90 00 [11:48:55]wFMCommunicate OK [11:48:55]wFMCommunicate request_size=4 [11:48:55]MH_SAM_APDU [11:48:55]CAPDU: 80 0D 03 02 [11:48:55]Write to MH i2c: E2 08 00 7F 21 80 0D 03 02 00 00 00 00 1B [11:48:55]Write i2c OK [11:48:55]MH_I2C_Read... [11:48:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:48:55]Read from MH i2c: E2 [11:48:55]MH_I2C_Read... [11:48:55]Read from MH i2c: E2 0B 00 [11:48:55]MH_I2C_Read... [11:48:55]Read from MH i2c: E2 0B 00 7F 21 00 E8 FB 5A 3D 0D 50 D6 DE 90 00 A7 [11:48:55]RAPDU: E8 FB 5A 3D 0D 50 D6 DE 90 00 [11:48:55]wFMCommunicate OK [11:48:55]SAM_PROTO_SignData done [11:48:55]FM_MakeSignedData done [11:48:55]CreateOFDProtocolMessage [11:48:55]wFMCommunicate request_size=4 [11:48:55]MH_SAM_APDU [11:48:55]CAPDU: 80 11 00 00 [11:48:55]Write to MH i2c: E2 08 00 80 21 80 11 00 00 00 00 00 00 1B [11:48:55]Write i2c OK [11:48:55]MH_I2C_Read... [11:48:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:55]Read from MH i2c: E2 [11:48:55]MH_I2C_Read... [11:48:55]Read from MH i2c: E2 17 00 [11:48:55]MH_I2C_Read... [11:48:55]Read from MH i2c: E2 17 00 80 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 79 [11:48:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [11:48:55]wFMCommunicate OK [11:48:55]CreateOFDProtocolMessage done [11:48:55]OFDSenderStorePacket 123225 [11:48:55]StoreOFDPacket docnum=123225 [11:48:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 D3 71 07 01 AD 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 98 E3 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 E3 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 33 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 E3 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 A8 63 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 59 E1 01 00 35 04 06 00 C5 47 CC A2 74 85 E8 FB 5A 3D 0D 50 D6 DE [11:48:55]CheckFolder [11:48:55]dirname=/storage/ofd_packets [11:48:55]CheckFolder done [11:48:55]ProducePacketName [11:48:55]name=ofd_packets/00123225 [11:48:55]NVStorageSaveData ofd_packets/00123225 [11:48:55]File name is /storage/ofd_packets/00123225 [11:48:55]Write 301 bytes [11:48:55]NVStorageSaveData done [11:48:55]OFDSenderStorePacket done [11:48:55]KKMCreateOFDPacket done [11:48:55]NVStorageSaveData kkm_last_timestamp [11:48:55]File name is /storage/kkm_last_timestamp [11:48:55]Write 4 bytes [11:48:55]NVStorageSaveData done [11:48:55]ExternCall_PrintAddStr [11:48:55]wPrintStart [11:48:55]Write to MH i2c: 01 00 00 81 21 A2 [11:48:55]Write i2c OK [11:48:55]MH_I2C_Read... [11:48:55]Read from MH i2c: 01 [11:48:55]MH_I2C_Read... [11:48:55]Read from MH i2c: 01 07 00 [11:48:55]MH_I2C_Read... [11:48:55]Read from MH i2c: 01 07 00 81 21 00 00 00 00 00 FF 0F B7 [11:48:55]RasterBufferAndPrint [11:48:55]line Счет N : (1)1106148 [11:48:55]line ИНН: 02508201610067 [11:48:55]line Контрольно-Кассовый Чек [11:48:55]line ПРОДАЖА [11:48:55]line ТРК (МРК, ГНК) : 32 [11:48:55]line Товар: 2710124130 [11:48:55]line Аи-92-К-5 [11:48:55]line 20.000 * 61.90 [11:48:55]line = 1238.00 [11:48:55]line НДС 12% НСП 1% [11:48:55]line > о реализуемом товаре [11:48:55]line ИТОГО: 1238.00 [11:48:55]line НСП 1% : 10.96 [11:48:55]line НДС 12% : 131.47 [11:48:55]line Наличными: 0.00 [11:48:55]line Безнал.: 1238.00 [11:48:55]line Место: АЗС № 25 "Партнер Нефть" [11:48:55]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [11:48:55]line СНО: Общий режим [11:48:55]line Чек 82 03.03.2024 11:48 [11:48:55]line Смена: 323 ФФД: 1.0 [11:48:55]line ЗНМ: 0300000019 [11:48:55]line РНМ: 0000000000090573 [11:48:55]line Версия ККМ: 001 [11:48:55]line Платежная система: О! деньги [11:48:55]line ФМ: 0000000000874798 [11:48:55]line ФД: 123225 [11:48:55]line ФПД: 216912166548613 [11:48:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T114856&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123225&fm=216912166548613&tin=02508201610067®Number=0000000000090573&sum=123800 [11:48:55]OFD Sender: Processing packet 123225 [packets to send 112, broken 111] [11:48:55]ProducePacketName [11:48:55]name=ofd_packets/00123225 [11:48:55]OFD Sender: To server: pG, [11:48:55]CommunicateWithHost lk.salyk.kg:30040 [11:48:55]ConnectInit lk.salyk.kg [11:48:55]written 0, free lines is 4095 [11:48:56]Connected sock=10 [11:48: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 37 39 38 0F 01 00 00 D3 71 07 01 AD 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 98 E3 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 E3 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 33 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 E3 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 A8 63 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 59 E1 01 00 35 04 06 00 C5 47 CC A2 74 85 E8 FB 5A 3D 0D 50 D6 DE [11:48:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 42 79 47 00 B0 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 37 39 38 10 04 04 00 59 E1 01 00 F4 03 04 00 D4 0F E4 65 B6 04 01 00 00 E6 0A A0 BA 04 93 D9 65 [11:48:56]CommunicateWithHost err = 0 [11:48:56]CheckOFDResponse [11:48:56]1017 (14) - 77093643461234 [11:48:56]1041 (16) - 0000000000874798 [11:48:56]1040 (4) - 123225 [11:48:56]1012 (4) - 03.03.2024 05:51 [11:48:56]1206 (1) - 0 [11:48:56]OFD Sender: Remove packet 123225 [11:48:56]ProducePacketName [11:48:56]name=ofd_packets/00123225 [11:48:56]NVStorageDeleteData [11:48:56]Write to MH i2c: 01 00 00 AB 21 CC [11:48:56]Write i2c OK [11:48:56]MH_I2C_Read... [11:48:56]Read from MH i2c: 01 [11:48:56]MH_I2C_Read... [11:48:56]Read from MH i2c: 01 07 00 [11:48:56]MH_I2C_Read... [11:48:56]Read from MH i2c: 01 07 00 AB 21 00 00 00 00 00 0F 0D EF [11:48:56]RasterBufferAndPrint [11:48:56]line [11:48:56]line [11:48:56]line [11:48:56]line [11:48:56]line [11:48:56]written 0, free lines is 3350 [11:48:56]MH_Cut [11:48:56]Write to MH i2c: D1 01 00 B2 21 01 A5 [11:48:56]Write i2c OK [11:48:56]MH_I2C_Read... [11:48:56]Read from MH i2c: D1 [11:48:56]MH_I2C_Read... [11:48:56]Read from MH i2c: D1 01 00 [11:48:56]MH_I2C_Read... [11:48:56]Read from MH i2c: D1 01 00 B2 21 00 A4 [11:48:56]Write to MH i2c: 01 00 00 B3 21 D4 [11:48:56]Write i2c OK [11:48:56]MH_I2C_Read... [11:48:56]OFD Sender: No OFD packet to send [11:48:57]*** Cut start [11:48:57]*** Purtial cut [11:48:57]*** Stage 1: CUTSNS_PIN = 1 [11:48:59]Read from MH i2c: 01 [11:48:59]MH_I2C_Read... [11:48:59]*** Stop cut motor [11:48:59]*** Cut end [11:48:59]Read from MH i2c: 01 07 00 [11:48:59]MH_I2C_Read... [11:48:59]Read from MH i2c: 01 07 00 B3 21 00 00 00 00 00 FF 0F E9 [11:48:59]process_action close_receipt done [11:48:59]requested_data is exist [11:48:59]produce_requested_data [11:48:59]requested_item fm.sn is exist - process it [11:48:59]wFMCommunicate request_size=4 [11:48:59]MH_SAM_APDU [11:48:59]CAPDU: 80 11 00 00 [11:48:59]Write to MH i2c: E2 08 00 B4 21 80 11 00 00 00 00 00 00 4F [11:48:59]Write i2c OK [11:48:59]MH_I2C_Read... [11:48:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:59]Read from MH i2c: E2 [11:48:59]MH_I2C_Read... [11:48:59]Read from MH i2c: E2 17 00 [11:48:59]MH_I2C_Read... [11:48:59]Read from MH i2c: E2 17 00 B4 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 AD [11:48:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [11:48:59]wFMCommunicate OK [11:48:59]requested_item fd.num is exist - process it [11:48:59]SAM_PROTO_GetFieldsCounters [11:48:59]wFMCommunicate request_size=4 [11:48:59]MH_SAM_APDU [11:48:59]CAPDU: 80 13 00 00 [11:48:59]Write to MH i2c: E2 08 00 B5 21 80 13 00 00 00 00 00 00 52 [11:48:59]Write i2c OK [11:48:59]MH_I2C_Read... [11:48:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:48:59]Read from MH i2c: E2 [11:48:59]MH_I2C_Read... [11:48:59]Read from MH i2c: E2 62 00 [11:48:59]MH_I2C_Read... [11:48:59]Read from MH i2c: E2 62 00 B5 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 59 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 F2 [11:48: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 59 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:48:59]wFMCommunicate OK [11:48:59]SAM_PROTO_GetFieldsCounters done [11:48:59]requested_item shift.num is exist - process it [11:48:59]requested_item shift.opened is exist - process it [11:48:59]req_shift_opened [11:48:59]FM_GetShiftState [11:48:59]SAM_PROTO_GetShiftState [11:48:59]wFMCommunicate request_size=4 [11:48:59]MH_SAM_APDU [11:48:59]CAPDU: 80 13 01 00 [11:48:59]Write to MH i2c: E2 08 00 B6 21 80 13 01 00 00 00 00 00 54 [11:48:59]Write i2c OK [11:48:59]MH_I2C_Read... [11:48:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:59]Read from MH i2c: E2 [11:48:59]MH_I2C_Read... [11:48:59]Read from MH i2c: E2 0E 00 [11:48:59]MH_I2C_Read... [11:48:59]Read from MH i2c: E2 0E 00 B6 21 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 16 [11:48:59]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [11:48:59]wFMCommunicate OK [11:48:59]SAM_PROTO_GetShiftState done [11:48:59]FM_GetShiftState done [11:48:59]req_shift_opened done [11:48:59]requested_item shift.open_date is exist - process it [11:48:59]req_shift_open_date [11:48:59]req_shift_open_date done [11:48:59]produce_requested_data done [11:48:59]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123225,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [11:48:59]process_action_free close_receipt [11:48:59]json_value_free [11:48:59]json_value_free done [11:48:59]process_json_proto returns [11:48:59]Send response to host [11:48:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123225,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [11:48:59]free response buf [11:48:59]execute_script done [11:48:59]execute_script returns [11:48:59]free content buf [11:48:59]Sock 9.Close socket [11:48:59]Sock 9.Thread stoped [11:49:01]OFD Sender: No OFD packet to send [11:49:06]OFD Sender: No OFD packet to send [11:49:11]OFD Sender: No OFD packet to send [11:49:16]OFD Sender: No OFD packet to send [11:49:21]OFD Sender: No OFD packet to send [11:49:26]OFD Sender: No OFD packet to send [11:49:31]OFD Sender: No OFD packet to send [11:49:36]OFD Sender: No OFD packet to send [11:49:41]OFD Sender: No OFD packet to send [11:49:46]OFD Sender: No OFD packet to send [11:49:51]OFD Sender: No OFD packet to send [11:49:56]OFD Sender: No OFD packet to send [11:50:01]OFD Sender: No OFD packet to send [11:50:06]OFD Sender: No OFD packet to send [11:50:11]OFD Sender: No OFD packet to send [11:50:16]OFD Sender: No OFD packet to send [11:50:21]OFD Sender: No OFD packet to send [11:50:26]OFD Sender: No OFD packet to send [11:50:31]OFD Sender: No OFD packet to send [11:50:36]OFD Sender: No OFD packet to send [11:50:41]OFD Sender: No OFD packet to send [11:50:46]OFD Sender: No OFD packet to send [11:50:51]OFD Sender: No OFD packet to send [11:50:56]OFD Sender: No OFD packet to send [11:51:01]OFD Sender: No OFD packet to send [11:51:06]OFD Sender: No OFD packet to send [11:51:11]OFD Sender: No OFD packet to send [11:51:16]OFD Sender: No OFD packet to send [11:51:21]OFD Sender: No OFD packet to send [11:51:26]OFD Sender: No OFD packet to send [11:51:31]OFD Sender: No OFD packet to send [11:51:36]OFD Sender: No OFD packet to send [11:51:41]OFD Sender: No OFD packet to send [11:51:46]OFD Sender: No OFD packet to send [11:51:51]OFD Sender: No OFD packet to send [11:51:56]OFD Sender: No OFD packet to send [11:52:01]OFD Sender: No OFD packet to send [11:52:06]OFD Sender: No OFD packet to send [11:52:11]OFD Sender: No OFD packet to send [11:52:16]OFD Sender: No OFD packet to send [11:52:21]OFD Sender: No OFD packet to send [11:52:26]OFD Sender: No OFD packet to send [11:52:31]OFD Sender: No OFD packet to send [11:52:36]OFD Sender: No OFD packet to send [11:52:41]OFD Sender: No OFD packet to send [11:52:46]OFD Sender: No OFD packet to send [11:52:51]OFD Sender: No OFD packet to send [11:52:56]OFD Sender: No OFD packet to send [11:53:01]OFD Sender: No OFD packet to send [11:53:06]OFD Sender: No OFD packet to send [11:53:12]OFD Sender: No OFD packet to send [11:53:17]OFD Sender: No OFD packet to send [11:53:22]OFD Sender: No OFD packet to send [11:53:27]OFD Sender: No OFD packet to send [11:53:32]OFD Sender: No OFD packet to send [11:53:37]OFD Sender: No OFD packet to send [11:53:42]OFD Sender: No OFD packet to send [11:53:47]OFD Sender: No OFD packet to send [11:53:52]OFD Sender: No OFD packet to send [11:53:57]OFD Sender: No OFD packet to send [11:54:02]OFD Sender: No OFD packet to send [11:54:07]OFD Sender: No OFD packet to send [11:54:12]OFD Sender: No OFD packet to send [11:54:17]OFD Sender: No OFD packet to send [11:54:22]OFD Sender: No OFD packet to send [11:54:27]OFD Sender: No OFD packet to send [11:54:32]OFD Sender: No OFD packet to send [11:54:37]OFD Sender: No OFD packet to send [11:54:42]OFD Sender: No OFD packet to send [11:54:47]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:04]accept exits with 7 [11:59:04]New connection [11:59:04]New thread 3067395428 created [11:59:04]Thread 3067252068 joined [11:59:04]Waiting for new connection... [11:59:04] Sock 7.Parse request [11:59:04]Sock 7.Check first char [11:59:04]Sock 7.First char is OK [11:59:04]request: POST /json_proto HTTP/1.0 [11:59:04]Method: POST [11:59:04]URL: /json_proto [11:59:04]Method is POST - this is cgi request [11:59:04]url: /json_proto [11:59:04]query_string will be loaded in cgi processing [11:59:04]execute_cgi json_proto POST (null) [11:59:04]execute_cgi path=json_proto method=POST [11:59:04]POST find Content-Length [11:59:04]Host: 172.17.48.197:8080 [11:59:04]Content-Length: 807 [11:59:04]Content-Type: application/json [11:59:04] [11:59:04]POST finish read [11:59:04]Found Content-Length = 807 [11:59:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106150", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 10.340, "sum" : 640.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 640.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:59:04]execute_script... [11:59: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)1106150", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 10.340, "sum" : 640.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 640.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:59:04]POST & json_proto [11:59:04]process_json_proto [11:59:04]json parsed OK: [11:59:04]protocol is kg_v1.0 [11:59:04]action value=close_receipt [11:59:04]process_action close_receipt [11:59:04]cmd_close_receipt [11:59:04]MH_GetDate [11:59:04]Write to MH i2c: F0 00 00 B7 21 C7 [11:59:04]Write i2c OK [11:59:04]MH_I2C_Read... [11:59:04]Read from MH i2c: F0 [11:59:04]MH_I2C_Read... [11:59:04]Read from MH i2c: F0 09 00 [11:59:04]MH_I2C_Read... [11:59:04]Read from MH i2c: F0 09 00 B7 21 00 0B 66 E4 65 6C AF E3 65 ED [11:59:04]GetLastDocTimeStamp 1709466536 [11:59:04]current date 1709467147 [11:59:04]FM_GetShiftState [11:59:04]SAM_PROTO_GetShiftState [11:59:04]wFMCommunicate request_size=4 [11:59:04]MH_SAM_APDU [11:59:04]CAPDU: 80 13 01 00 [11:59:04]Write to MH i2c: E2 08 00 B8 21 80 13 01 00 00 00 00 00 56 [11:59:04]Write i2c OK [11:59:04]MH_I2C_Read... [11:59:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:59:04]Read from MH i2c: E2 [11:59:04]MH_I2C_Read... [11:59:04]Read from MH i2c: E2 0E 00 [11:59:04]MH_I2C_Read... [11:59:04]Read from MH i2c: E2 0E 00 B8 21 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 18 [11:59:04]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [11:59:04]wFMCommunicate OK [11:59:04]SAM_PROTO_GetShiftState done [11:59:04]FM_GetShiftState done [11:59:04]opened in 1709425579 [11:59:04]opened+sec_in_day 1709511979 [11:59:04]quantity*price = 64004 [11:59:04]sum+1 = 64006 [11:59:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 640.05 НСП 1% : 5.66 НДС 12% : 67.97 Наличными: 0.00 Безнал.: 640.05 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 83 03.03.2024 11:59 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874798 ФД: 123226 ФПД: 15436425458118 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T115907&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123226&fm=15436425458118&tin=02508201610067®Number=0000000000090573&sum=64005 [11:59:05]StoreToDocumentArchive [11:59:05]shift 323 fd 123226 [11:59:05]save to /storage/0323/doc_00123226 [11:59:05]save last doc name /storage/0323/doc_00123226 to /storage/kkm_last_doc_name [11:59:05]save OK [11:59:05]Clear old archive folders... [11:59:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:59:05]tlvbuf is 00E3FC30 [11:59:05]SAM_PROTO_ClearQueue [11:59:05]wFMCommunicate request_size=4 [11:59:05]MH_SAM_APDU [11:59:05]CAPDU: 80 09 00 00 [11:59:05]Write to MH i2c: E2 08 00 C5 21 80 09 00 00 00 00 00 00 58 [11:59:05]Write i2c OK [11:59:05]MH_I2C_Read... [11:59:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:59:05]Read from MH i2c: E2 [11:59:05]MH_I2C_Read... [11:59:05]Read from MH i2c: E2 03 00 [11:59:05]MH_I2C_Read... [11:59:05]Read from MH i2c: E2 03 00 C5 21 00 90 00 5A [11:59:05]RAPDU: 90 00 [11:59:05]wFMCommunicate OK [11:59:05]SAM_PROTO_ClearQueue done [11:59:05]KKMCreateOFDPacket [11:59:05]OFDProtocolAddRootSTLVToBuf [11:59:05]FM_MakeSignedData [11:59:05]FM_MakeSignedData [11:59:05]SAM_PROTO_SignData [11:59:05]wFMCommunicate request_size=4 [11:59:05]MH_SAM_APDU [11:59:05]CAPDU: 80 0D 01 02 [11:59:05]Write to MH i2c: E2 08 00 C6 21 80 0D 01 02 00 00 00 00 60 [11:59:05]Write i2c OK [11:59:05]MH_I2C_Read... [11:59:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:59:05]Read from MH i2c: E2 [11:59:05]MH_I2C_Read... [11:59:05]Read from MH i2c: E2 03 00 [11:59:05]MH_I2C_Read... [11:59:05]Read from MH i2c: E2 03 00 C6 21 00 90 00 5B [11:59:05]RAPDU: 90 00 [11:59:05]wFMCommunicate OK [11:59:05]wFMCommunicate request_size=255 [11:59:05]MH_SAM_APDU [11:59: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 35 FF 03 08 00 03 64 28 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 05 FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 05 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8D 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 05 FA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 0B 66 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 5A E1 01 00 35 04 06 00 0E [11:59:05]Write to MH i2c: E2 02 01 C7 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 35 FF 03 08 00 03 64 28 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 05 FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 05 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8D 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 05 FA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 0B 66 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 5A E1 01 00 35 04 06 00 0E 00 00 BD [11:59:05]Write i2c OK [11:59:05]MH_I2C_Read... [11:59:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:59:05]Read from MH i2c: E2 [11:59:05]MH_I2C_Read... [11:59:05]Read from MH i2c: E2 03 00 [11:59:05]MH_I2C_Read... [11:59:05]Read from MH i2c: E2 03 00 C7 21 00 90 00 5C [11:59:05]RAPDU: 90 00 [11:59:05]wFMCommunicate OK [11:59:05]wFMCommunicate request_size=10 [11:59:05]MH_SAM_APDU [11:59:05]CAPDU: 80 0D 02 02 05 0A 12 A7 F1 C6 [11:59:05]Write to MH i2c: E2 0D 00 C8 21 80 0D 02 02 05 00 0A 12 A7 F1 C6 00 00 E7 [11:59:05]Write i2c OK [11:59:05]MH_I2C_Read... [11:59:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:59:05]Read from MH i2c: E2 [11:59:05]MH_I2C_Read... [11:59:05]Read from MH i2c: E2 03 00 [11:59:05]MH_I2C_Read... [11:59:05]Read from MH i2c: E2 03 00 C8 21 00 90 00 5D [11:59:05]RAPDU: 90 00 [11:59:05]wFMCommunicate OK [11:59:05]wFMCommunicate request_size=4 [11:59:05]MH_SAM_APDU [11:59:05]CAPDU: 80 0D 03 02 [11:59:05]Write to MH i2c: E2 08 00 C9 21 80 0D 03 02 00 00 00 00 65 [11:59:05]Write i2c OK [11:59:05]MH_I2C_Read... [11:59:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:59:05]Read from MH i2c: E2 [11:59:05]MH_I2C_Read... [11:59:05]Read from MH i2c: E2 0B 00 [11:59:05]MH_I2C_Read... [11:59:05]Read from MH i2c: E2 0B 00 C9 21 00 46 F0 57 2B FC 8E FF F9 90 00 A0 [11:59:05]RAPDU: 46 F0 57 2B FC 8E FF F9 90 00 [11:59:05]wFMCommunicate OK [11:59:05]SAM_PROTO_SignData done [11:59:05]FM_MakeSignedData done [11:59:05]CreateOFDProtocolMessage [11:59:05]wFMCommunicate request_size=4 [11:59:05]MH_SAM_APDU [11:59:05]CAPDU: 80 11 00 00 [11:59:05]Write to MH i2c: E2 08 00 CA 21 80 11 00 00 00 00 00 00 65 [11:59:05]Write i2c OK [11:59:05]MH_I2C_Read... [11:59:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:59:05]Read from MH i2c: E2 [11:59:05]MH_I2C_Read... [11:59:05]Read from MH i2c: E2 17 00 [11:59:05]MH_I2C_Read... [11:59:05]Read from MH i2c: E2 17 00 CA 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 C3 [11:59:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [11:59:05]wFMCommunicate OK [11:59:05]CreateOFDProtocolMessage done [11:59:05]OFDSenderStorePacket 123226 [11:59:05]StoreOFDPacket docnum=123226 [11:59:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 C6 EA 07 01 7C 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 28 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 05 FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 05 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8D 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 05 FA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 0B 66 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 5A E1 01 00 35 04 06 00 0E 0A 12 A7 F1 C6 46 F0 57 2B FC 8E FF F9 [11:59:05]CheckFolder [11:59:05]dirname=/storage/ofd_packets [11:59:05]CheckFolder done [11:59:05]ProducePacketName [11:59:05]name=ofd_packets/00123226 [11:59:05]NVStorageSaveData ofd_packets/00123226 [11:59:05]File name is /storage/ofd_packets/00123226 [11:59:05]Write 301 bytes [11:59:05]NVStorageSaveData done [11:59:05]OFDSenderStorePacket done [11:59:05]KKMCreateOFDPacket done [11:59:05]NVStorageSaveData kkm_last_timestamp [11:59:05]File name is /storage/kkm_last_timestamp [11:59:05]Write 4 bytes [11:59:05]NVStorageSaveData done [11:59:05]ExternCall_PrintAddStr [11:59:05]wPrintStart [11:59:05]Write to MH i2c: 01 00 00 CB 21 EC [11:59:05]Write i2c OK [11:59:05]MH_I2C_Read... [11:59:05]Read from MH i2c: 01 [11:59:05]MH_I2C_Read... [11:59:05]Read from MH i2c: 01 07 00 [11:59:05]MH_I2C_Read... [11:59:05]Read from MH i2c: 01 07 00 CB 21 00 00 00 00 00 FF 0F 01 [11:59:05]RasterBufferAndPrint [11:59:05]line Счет N : (1)1106150 [11:59:05]line ИНН: 02508201610067 [11:59:05]line Контрольно-Кассовый Чек [11:59:05]line ПРОДАЖА [11:59:05]line ТРК (МРК, ГНК) : 62 [11:59:05]line Товар: 2710124130 [11:59:05]line Аи-92-К-5 [11:59:05]line 10.340 * 61.90 [11:59:05]line = 640.05 [11:59:05]line НДС 12% НСП 1% [11:59:05]line > о реализуемом товаре [11:59:05]line ИТОГО: 640.05 [11:59:05]line НСП 1% : 5.66 [11:59:05]line НДС 12% : 67.97 [11:59:05]line Наличными: 0.00 [11:59:05]line Безнал.: 640.05 [11:59:05]line Место: АЗС № 25 "Партнер Нефть" [11:59:05]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [11:59:05]line СНО: Общий режим [11:59:05]line Чек 83 03.03.2024 11:59 [11:59:05]line Смена: 323 ФФД: 1.0 [11:59:05]line ЗНМ: 0300000019 [11:59:05]line РНМ: 0000000000090573 [11:59:05]line Версия ККМ: 001 [11:59:05]line Платежная система: О! деньги [11:59:05]line ФМ: 0000000000874798 [11:59:05]line ФД: 123226 [11:59:05]line ФПД: 15436425458118 [11:59:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T115907&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123226&fm=15436425458118&tin=02508201610067®Number=0000000000090573&sum=64005 [11:59:06]OFD Sender: Processing packet 123226 [packets to send 112, broken 111] [11:59:06]ProducePacketName [11:59:06]name=ofd_packets/00123226 [11:59:06]OFD Sender: To server: pG, [11:59:06]CommunicateWithHost lk.salyk.kg:30040 [11:59:06]ConnectInit lk.salyk.kg [11:59:06]written 0, free lines is 4095 [11:59:06]Connected sock=10 [11:59: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 37 39 38 0F 01 00 00 C6 EA 07 01 7C 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 28 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 05 FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 05 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8D 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 05 FA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 0B 66 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 5A E1 01 00 35 04 06 00 0E 0A 12 A7 F1 C6 46 F0 57 2B FC 8E FF F9 [11:59:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 A2 9F 47 00 51 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 37 39 38 10 04 04 00 5A E1 01 00 F4 03 04 00 37 12 E4 65 B6 04 01 00 00 60 19 00 68 7C 22 89 30 [11:59:06]CommunicateWithHost err = 0 [11:59:06]CheckOFDResponse [11:59:06]1017 (14) - 77093643461234 [11:59:06]1041 (16) - 0000000000874798 [11:59:06]1040 (4) - 123226 [11:59:06]1012 (4) - 03.03.2024 06:01 [11:59:06]1206 (1) - 0 [11:59:06]OFD Sender: Remove packet 123226 [11:59:06]ProducePacketName [11:59:06]name=ofd_packets/00123226 [11:59:06]NVStorageDeleteData [11:59:06]Write to MH i2c: 01 00 00 F5 21 16 [11:59:06]Write i2c OK [11:59:06]MH_I2C_Read... [11:59:06]Read from MH i2c: 01 [11:59:06]MH_I2C_Read... [11:59:06]Read from MH i2c: 01 07 00 [11:59:06]MH_I2C_Read... [11:59:06]Read from MH i2c: 01 07 00 F5 21 00 00 00 00 00 02 0D 2C [11:59:06]RasterBufferAndPrint [11:59:06]line [11:59:06]line [11:59:06]line [11:59:06]line [11:59:06]line [11:59:06]written 0, free lines is 3338 [11:59:06]MH_Cut [11:59:06]Write to MH i2c: D1 01 00 FC 21 01 EF [11:59:06]Write i2c OK [11:59:06]MH_I2C_Read... [11:59:06]Read from MH i2c: D1 [11:59:06]MH_I2C_Read... [11:59:06]Read from MH i2c: D1 01 00 [11:59:06]MH_I2C_Read... [11:59:06]Read from MH i2c: D1 01 00 FC 21 00 EE [11:59:06]Write to MH i2c: 01 00 00 FD 21 1E [11:59:06]Write i2c OK [11:59:06]MH_I2C_Read... [11:59:07]OFD Sender: No OFD packet to send [11:59:07]*** Cut start [11:59:07]*** Purtial cut [11:59:07]*** Stage 1: CUTSNS_PIN = 1 [11:59:09]Read from MH i2c: 01 [11:59:09]MH_I2C_Read... [11:59:09]*** Stop cut motor [11:59:09]*** Cut end [11:59:09]Read from MH i2c: 01 07 00 [11:59:09]MH_I2C_Read... [11:59:09]Read from MH i2c: 01 07 00 FD 21 00 00 00 00 00 FF 0F 33 [11:59:09]process_action close_receipt done [11:59:09]requested_data is exist [11:59:09]produce_requested_data [11:59:09]requested_item fm.sn is exist - process it [11:59:09]wFMCommunicate request_size=4 [11:59:09]MH_SAM_APDU [11:59:09]CAPDU: 80 11 00 00 [11:59:09]Write to MH i2c: E2 08 00 FE 21 80 11 00 00 00 00 00 00 99 [11:59:09]Write i2c OK [11:59:09]MH_I2C_Read... [11:59:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:59:09]Read from MH i2c: E2 [11:59:09]MH_I2C_Read... [11:59:09]Read from MH i2c: E2 17 00 [11:59:09]MH_I2C_Read... [11:59:09]Read from MH i2c: E2 17 00 FE 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 F7 [11:59:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [11:59:09]wFMCommunicate OK [11:59:09]requested_item fd.num is exist - process it [11:59:09]SAM_PROTO_GetFieldsCounters [11:59:09]wFMCommunicate request_size=4 [11:59:09]MH_SAM_APDU [11:59:09]CAPDU: 80 13 00 00 [11:59:09]Write to MH i2c: E2 08 00 FF 21 80 13 00 00 00 00 00 00 9C [11:59:09]Write i2c OK [11:59:09]MH_I2C_Read... [11:59:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:59:09]Read from MH i2c: E2 [11:59:09]MH_I2C_Read... [11:59:09]Read from MH i2c: E2 62 00 [11:59:09]MH_I2C_Read... [11:59:09]Read from MH i2c: E2 62 00 FF 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 5A E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 40 [11:59: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 5A E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:59:09]wFMCommunicate OK [11:59:09]SAM_PROTO_GetFieldsCounters done [11:59:09]requested_item shift.num is exist - process it [11:59:09]requested_item shift.opened is exist - process it [11:59:09]req_shift_opened [11:59:09]FM_GetShiftState [11:59:09]SAM_PROTO_GetShiftState [11:59:09]wFMCommunicate request_size=4 [11:59:09]MH_SAM_APDU [11:59:09]CAPDU: 80 13 01 00 [11:59:09]Write to MH i2c: E2 08 00 00 22 80 13 01 00 00 00 00 00 9F [11:59:09]Write i2c OK [11:59:09]MH_I2C_Read... [11:59:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:59:09]Read from MH i2c: E2 [11:59:09]MH_I2C_Read... [11:59:09]Read from MH i2c: E2 0E 00 [11:59:09]MH_I2C_Read... [11:59:09]Read from MH i2c: E2 0E 00 00 22 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 61 [11:59:09]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [11:59:09]wFMCommunicate OK [11:59:09]SAM_PROTO_GetShiftState done [11:59:09]FM_GetShiftState done [11:59:09]req_shift_opened done [11:59:09]requested_item shift.open_date is exist - process it [11:59:09]req_shift_open_date [11:59:09]req_shift_open_date done [11:59:09]produce_requested_data done [11:59:09]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123226,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [11:59:09]process_action_free close_receipt [11:59:09]json_value_free [11:59:09]json_value_free done [11:59:09]process_json_proto returns [11:59:09]Send response to host [11:59:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123226,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [11:59:09]free response buf [11:59:09]execute_script done [11:59:09]execute_script returns [11:59:09]free content buf [11:59:09]Sock 7.Close socket [11:59:09]Sock 7.Thread stoped [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:44]accept exits with 9 [12:02:44]New connection [12:02:44]New thread 3067252068 created [12:02:44]Thread 3067395428 joined [12:02:44]Waiting for new connection... [12:02:44] Sock 9.Parse request [12:02:44]Sock 9.Check first char [12:02:44]Sock 9.First char is OK [12:02:44]request: POST /json_proto HTTP/1.0 [12:02:44]Method: POST [12:02:44]URL: /json_proto [12:02:44]Method is POST - this is cgi request [12:02:44]url: /json_proto [12:02:44]query_string will be loaded in cgi processing [12:02:44]execute_cgi json_proto POST (null) [12:02:44]execute_cgi path=json_proto method=POST [12:02:44]POST find Content-Length [12:02:44]Host: 172.17.48.197:8080 [12:02:44]Content-Length: 1210 [12:02:44]Content-Type: application/json [12:02:44] [12:02:44]POST finish read [12:02:44]Found Content-Length = 1210 [12:02:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106151\u000A03.03.2024 11:59\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 63\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 50.000 x 69.50\u000A\u0418\u0422\u041E\u0413: 3475.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A01988\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:02:44]execute_script... [12:02:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106151\u000A03.03.2024 11:59\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 63\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 50.000 x 69.50\u000A\u0418\u0422\u041E\u0413: 3475.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A01988\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:02:44]POST & json_proto [12:02:44]process_json_proto [12:02:44]json parsed OK: [12:02:44]protocol is kg_v1.0 [12:02:44]action value=print_text [12:02:44]process_action print_text [12:02:44]cmd_print_text [12:02:44]ExternCall_PrintAddStr [12:02:44]wPrintStart [12:02:44]Write to MH i2c: 01 00 00 01 22 23 [12:02:44]Write i2c OK [12:02:44]MH_I2C_Read... [12:02:44]Read from MH i2c: 01 [12:02:44]MH_I2C_Read... [12:02:44]Read from MH i2c: 01 07 00 [12:02:44]MH_I2C_Read... [12:02:44]Read from MH i2c: 01 07 00 01 22 00 00 00 00 00 FF 0F 38 [12:02:44]RasterBufferAndPrint [12:02:44]line *****ТОВАРНЫЙ ЧЕК***** [12:02:44]line АЗС 25 [12:02:44]line Партнер нефть [12:02:44]line 02508201610067 [12:02:44]line Кассир : Турдумбек у. К. [12:02:44]line Счет N : (1)1106151 [12:02:44]line 03.03.2024 11:59 [12:02:44]line ПРОДАЖА [12:02:44]line ТРК (МРК, ГНК): 63 [12:02:44]line Вид ГСМ : 2710124500 [12:02:44]line Аи-95-К-5 [12:02:44]line 50.000 x 69.50 [12:02:44]line ИТОГ: 3475.00 [12:02:44]line Тип оплаты: Талоны: Топливная Карта [12:02:44]line 01988 [12:02:44]line ______________________ [12:02:44]line (подпись) [12:02:44]written 0, free lines is 4095 [12:02:44]Write to MH i2c: 01 00 00 16 22 38 [12:02:44]Write i2c OK [12:02:44]MH_I2C_Read... [12:02:44]Read from MH i2c: 01 [12:02:44]MH_I2C_Read... [12:02:44]Read from MH i2c: 01 07 00 [12:02:44]MH_I2C_Read... [12:02:44]Read from MH i2c: 01 07 00 16 22 00 00 00 00 00 F6 0D 42 [12:02:44]RasterBufferAndPrint [12:02:44]line [12:02:44]line [12:02:44]line [12:02:44]line [12:02:44]line [12:02:44]written 0, free lines is 3576 [12:02:44]MH_Cut [12:02:44]Write to MH i2c: D1 01 00 1D 22 01 11 [12:02:44]Write i2c OK [12:02:44]MH_I2C_Read... [12:02:44]Read from MH i2c: D1 [12:02:44]MH_I2C_Read... [12:02:44]Read from MH i2c: D1 01 00 [12:02:44]MH_I2C_Read... [12:02:44]Read from MH i2c: D1 01 00 1D 22 00 10 [12:02:44]Write to MH i2c: 01 00 00 1E 22 40 [12:02:44]Write i2c OK [12:02:44]MH_I2C_Read... [12:02:45]*** Cut start [12:02:45]*** Purtial cut [12:02:45]*** Stage 1: CUTSNS_PIN = 1 [12:02:47]Read from MH i2c: 01 [12:02:47]MH_I2C_Read... [12:02:47]*** Stop cut motor [12:02:47]*** Cut end [12:02:47]Read from MH i2c: 01 07 00 [12:02:47]MH_I2C_Read... [12:02:47]Read from MH i2c: 01 07 00 1E 22 00 00 00 00 00 FF 0F 55 [12:02:47]process_action print_text done [12:02:47]requested_data is exist [12:02:47]produce_requested_data [12:02:47]requested_item fm.sn is exist - process it [12:02:47]wFMCommunicate request_size=4 [12:02:47]MH_SAM_APDU [12:02:47]CAPDU: 80 11 00 00 [12:02:47]Write to MH i2c: E2 08 00 1F 22 80 11 00 00 00 00 00 00 BB [12:02:47]Write i2c OK [12:02:47]MH_I2C_Read... [12:02:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:47]Read from MH i2c: E2 [12:02:47]MH_I2C_Read... [12:02:47]Read from MH i2c: E2 17 00 [12:02:47]MH_I2C_Read... [12:02:47]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 37 39 38 90 00 19 [12:02:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [12:02:47]wFMCommunicate OK [12:02:47]requested_item fd.num is exist - process it [12:02:47]SAM_PROTO_GetFieldsCounters [12:02:47]wFMCommunicate request_size=4 [12:02:47]MH_SAM_APDU [12:02:47]CAPDU: 80 13 00 00 [12:02:47]Write to MH i2c: E2 08 00 20 22 80 13 00 00 00 00 00 00 BE [12:02:47]Write i2c OK [12:02:47]MH_I2C_Read... [12:02:47]OFD Sender: No OFD packet to send [12:02:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:02:47]Read from MH i2c: E2 [12:02:47]MH_I2C_Read... [12:02:47]Read from MH i2c: E2 62 00 [12:02:47]MH_I2C_Read... [12:02:47]Read from MH i2c: E2 62 00 20 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 5A E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [12:02: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 5A E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:02:47]wFMCommunicate OK [12:02:47]SAM_PROTO_GetFieldsCounters done [12:02:47]requested_item shift.num is exist - process it [12:02:47]requested_item shift.opened is exist - process it [12:02:47]req_shift_opened [12:02:47]FM_GetShiftState [12:02:47]SAM_PROTO_GetShiftState [12:02:47]wFMCommunicate request_size=4 [12:02:47]MH_SAM_APDU [12:02:47]CAPDU: 80 13 01 00 [12:02:47]Write to MH i2c: E2 08 00 21 22 80 13 01 00 00 00 00 00 C0 [12:02:47]Write i2c OK [12:02:47]MH_I2C_Read... [12:02:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:47]Read from MH i2c: E2 [12:02:47]MH_I2C_Read... [12:02:47]Read from MH i2c: E2 0E 00 [12:02:47]MH_I2C_Read... [12:02:47]Read from MH i2c: E2 0E 00 21 22 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 82 [12:02:47]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [12:02:47]wFMCommunicate OK [12:02:47]SAM_PROTO_GetShiftState done [12:02:47]FM_GetShiftState done [12:02:47]req_shift_opened done [12:02:47]requested_item shift.open_date is exist - process it [12:02:47]req_shift_open_date [12:02:47]req_shift_open_date done [12:02:47]produce_requested_data done [12:02:47]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123226,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [12:02:47]process_action_free print_text [12:02:47]json_value_free [12:02:47]json_value_free done [12:02:47]process_json_proto returns [12:02:47]Send response to host [12:02:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123226,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [12:02:47]free response buf [12:02:47]execute_script done [12:02:47]execute_script returns [12:02:47]free content buf [12:02:47]Sock 9.Close socket [12:02:47]Sock 9.Thread stoped [12:02:52]OFD Sender: No OFD packet to send [12:02:53]int [12:02:53]Write to MH i2c: 01 00 00 22 22 44 [12:02:53]*** FLAG_PRN_KEY set [12:02:53]Write i2c OK [12:02:53]MH_I2C_Read... [12:02:53]Read from MH i2c: 01 [12:02:53]MH_I2C_Read... [12:02:53]Read from MH i2c: 01 07 00 [12:02:53]MH_I2C_Read... [12:02:53]Read from MH i2c: 01 07 00 22 22 00 08 00 00 00 FF 0F 61 [12:02:53]state=0 [12:02:53]Key pressed [12:02:53]Feed [12:02:53]Write to MH i2c: D8 00 00 23 22 1C [12:02:53]Write i2c OK [12:02:53]MH_I2C_Read... [12:02:53]Read from MH i2c: D8 [12:02:53]MH_I2C_Read... [12:02:53]Read from MH i2c: D8 01 00 [12:02:53]MH_I2C_Read... [12:02:53]Read from MH i2c: D8 01 00 23 22 00 1D [12:02:53]int [12:02:53]Write to MH i2c: 01 00 00 24 22 46 [12:02:53]Write i2c OK [12:02:53]MH_I2C_Read... [12:02:53]Read from MH i2c: 01 [12:02:53]MH_I2C_Read... [12:02:53]Read from MH i2c: 01 07 00 [12:02:53]MH_I2C_Read... [12:02:53]Read from MH i2c: 01 07 00 24 22 00 48 00 00 00 3C 00 D1 [12:02:53]state=2 [12:02:53]Key pressed [12:02:53]int [12:02:53]Write to MH i2c: 01 00 00 25 22 47 [12:02:53]*** FLAG_PRN_KEY reset [12:02:53]Write i2c OK [12:02:53]MH_I2C_Read... [12:02:53]Read from MH i2c: 01 [12:02:53]MH_I2C_Read... [12:02:53]Read from MH i2c: 01 07 00 [12:02:53]MH_I2C_Read... [12:02:53]Read from MH i2c: 01 07 00 25 22 00 00 00 00 00 F6 0F 53 [12:02:53]state=2 [12:02:53]Stop feed [12:02:53]int [12:02:53]Write to MH i2c: 01 00 00 26 22 48 [12:02:53]*** FLAG_PRN_KEY set [12:02:53]Write i2c OK [12:02:53]MH_I2C_Read... [12:02:53]Read from MH i2c: 01 [12:02:53]MH_I2C_Read... [12:02:53]Read from MH i2c: 01 07 00 [12:02:53]MH_I2C_Read... [12:02:53]Read from MH i2c: 01 07 00 26 22 00 08 00 00 00 FF 0F 65 [12:02:53]state=0 [12:02:53]Key pressed [12:02:53]Feed [12:02:53]Write to MH i2c: D8 00 00 27 22 20 [12:02:53]Write i2c OK [12:02:53]MH_I2C_Read... [12:02:53]Read from MH i2c: D8 [12:02:53]MH_I2C_Read... [12:02:53]Read from MH i2c: D8 01 00 [12:02:53]MH_I2C_Read... [12:02:53]Read from MH i2c: D8 01 00 27 22 00 21 [12:02:53]int [12:02:53]Write to MH i2c: 01 00 00 28 22 4A [12:02:53]Write i2c OK [12:02:53]MH_I2C_Read... [12:02:53]Read from MH i2c: 01 [12:02:53]MH_I2C_Read... [12:02:53]Read from MH i2c: 01 07 00 [12:02:53]MH_I2C_Read... [12:02:53]Read from MH i2c: 01 07 00 28 22 00 48 00 00 00 3C 00 D5 [12:02:53]state=2 [12:02:53]Key pressed [12:02:54]int [12:02:54]Write to MH i2c: 01 00 00 29 22 4B [12:02:54]*** FLAG_PRN_KEY reset [12:02:54]Write i2c OK [12:02:54]MH_I2C_Read... [12:02:54]Read from MH i2c: 01 [12:02:54]MH_I2C_Read... [12:02:54]Read from MH i2c: 01 07 00 [12:02:54]MH_I2C_Read... [12:02:54]Read from MH i2c: 01 07 00 29 22 00 00 00 00 00 F6 0F 57 [12:02:54]state=2 [12:02:54]Stop feed [12:02:54]int [12:02:54]Write to MH i2c: 01 00 00 2A 22 4C [12:02:54]*** FLAG_PRN_KEY set [12:02:54]Write i2c OK [12:02:54]MH_I2C_Read... [12:02:54]Read from MH i2c: 01 [12:02:54]MH_I2C_Read... [12:02:54]Read from MH i2c: 01 07 00 [12:02:54]MH_I2C_Read... [12:02:54]Read from MH i2c: 01 07 00 2A 22 00 08 00 00 00 FF 0F 69 [12:02:54]state=0 [12:02:54]Key pressed [12:02:54]Feed [12:02:54]Write to MH i2c: D8 00 00 2B 22 24 [12:02:54]Write i2c OK [12:02:54]MH_I2C_Read... [12:02:54]Read from MH i2c: D8 [12:02:54]MH_I2C_Read... [12:02:54]Read from MH i2c: D8 01 00 [12:02:54]MH_I2C_Read... [12:02:54]Read from MH i2c: D8 01 00 2B 22 00 25 [12:02:54]int [12:02:54]Write to MH i2c: 01 00 00 2C 22 4E [12:02:54]Write i2c OK [12:02:54]MH_I2C_Read... [12:02:54]Read from MH i2c: 01 [12:02:54]MH_I2C_Read... [12:02:54]Read from MH i2c: 01 07 00 [12:02:54]MH_I2C_Read... [12:02:54]Read from MH i2c: 01 07 00 2C 22 00 48 00 00 00 3C 00 D9 [12:02:54]state=2 [12:02:54]Key pressed [12:02:54]int [12:02:54]Write to MH i2c: 01 00 00 2D 22 4F [12:02:54]*** FLAG_PRN_KEY reset [12:02:54]Write i2c OK [12:02:54]MH_I2C_Read... [12:02:54]Read from MH i2c: 01 [12:02:54]MH_I2C_Read... [12:02:54]Read from MH i2c: 01 07 00 [12:02:54]MH_I2C_Read... [12:02:54]Read from MH i2c: 01 07 00 2D 22 00 00 00 00 00 F6 0F 5B [12:02:54]state=2 [12:02:54]Stop feed [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:28]accept exits with 7 [12:03:28]New connection [12:03:28]New thread 3067395428 created [12:03:28]Thread 3067252068 joined [12:03:28]Waiting for new connection... [12:03:28] Sock 7.Parse request [12:03:28]Sock 7.Check first char [12:03:28]Sock 7.First char is OK [12:03:28]request: POST /json_proto HTTP/1.0 [12:03:28]Method: POST [12:03:28]URL: /json_proto [12:03:28]Method is POST - this is cgi request [12:03:28]url: /json_proto [12:03:28]query_string will be loaded in cgi processing [12:03:28]execute_cgi json_proto POST (null) [12:03:28]execute_cgi path=json_proto method=POST [12:03:28]POST find Content-Length [12:03:28]Host: 172.17.48.197:8080 [12:03:28]Content-Length: 1234 [12:03:28]Content-Type: application/json [12:03:28] [12:03:28]POST finish read [12:03:28]Found Content-Length = 1234 [12:03:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106152\u000A03.03.2024 11:59\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 52\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 50.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 3095.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3829647/3582100/3583691\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:03:28]execute_script... [12:03:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106152\u000A03.03.2024 11:59\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 52\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 50.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 3095.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3829647/3582100/3583691\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:03:28]POST & json_proto [12:03:28]process_json_proto [12:03:28]json parsed OK: [12:03:28]protocol is kg_v1.0 [12:03:28]action value=print_text [12:03:28]process_action print_text [12:03:28]cmd_print_text [12:03:28]ExternCall_PrintAddStr [12:03:28]wPrintStart [12:03:28]Write to MH i2c: 01 00 00 2E 22 50 [12:03:28]Write i2c OK [12:03:28]MH_I2C_Read... [12:03:28]Read from MH i2c: 01 [12:03:28]MH_I2C_Read... [12:03:28]Read from MH i2c: 01 07 00 [12:03:28]MH_I2C_Read... [12:03:28]Read from MH i2c: 01 07 00 2E 22 00 00 00 00 00 FF 0F 65 [12:03:28]RasterBufferAndPrint [12:03:28]line *****ТОВАРНЫЙ ЧЕК***** [12:03:28]line АЗС 25 [12:03:28]line Партнер нефть [12:03:28]line 02508201610067 [12:03:28]line Кассир : Турдумбек у. К. [12:03:28]line Счет N : (1)1106152 [12:03:28]line 03.03.2024 11:59 [12:03:28]line ПРОДАЖА [12:03:28]line ТРК (МРК, ГНК): 52 [12:03:28]line Вид ГСМ : 2710124130 [12:03:28]line Аи-92-К-5 [12:03:28]line 50.000 x 61.90 [12:03:28]line ИТОГ: 3095.00 [12:03:28]line Тип оплаты: Талоны: Топливные Талоны [12:03:28]line 3829647/3582100/3583691 [12:03:28]line ______________________ [12:03:28]line (подпись) [12:03:28]written 0, free lines is 4095 [12:03:29]Write to MH i2c: 01 00 00 43 22 65 [12:03:29]Write i2c OK [12:03:29]MH_I2C_Read... [12:03:29]Read from MH i2c: 01 [12:03:29]MH_I2C_Read... [12:03:29]Read from MH i2c: 01 07 00 [12:03:29]MH_I2C_Read... [12:03:29]Read from MH i2c: 01 07 00 43 22 00 00 00 00 00 05 0E 7F [12:03:29]RasterBufferAndPrint [12:03:29]line [12:03:29]line [12:03:29]line [12:03:29]line [12:03:29]line [12:03:29]written 0, free lines is 3591 [12:03:29]MH_Cut [12:03:29]Write to MH i2c: D1 01 00 4A 22 01 3E [12:03:29]Write i2c OK [12:03:29]MH_I2C_Read... [12:03:29]Read from MH i2c: D1 [12:03:29]MH_I2C_Read... [12:03:29]Read from MH i2c: D1 01 00 [12:03:29]MH_I2C_Read... [12:03:29]Read from MH i2c: D1 01 00 4A 22 00 3D [12:03:29]Write to MH i2c: 01 00 00 4B 22 6D [12:03:29]Write i2c OK [12:03:29]MH_I2C_Read... [12:03:29]*** Cut start [12:03:29]*** Purtial cut [12:03:29]*** Stage 1: CUTSNS_PIN = 1 [12:03:31]Read from MH i2c: 01 [12:03:31]MH_I2C_Read... [12:03:31]*** Stop cut motor [12:03:31]*** Cut end [12:03:31]Read from MH i2c: 01 07 00 [12:03:31]MH_I2C_Read... [12:03:31]Read from MH i2c: 01 07 00 4B 22 00 00 00 00 00 FF 0F 82 [12:03:31]process_action print_text done [12:03:31]requested_data is exist [12:03:31]produce_requested_data [12:03:31]requested_item fm.sn is exist - process it [12:03:31]wFMCommunicate request_size=4 [12:03:31]MH_SAM_APDU [12:03:31]CAPDU: 80 11 00 00 [12:03:31]Write to MH i2c: E2 08 00 4C 22 80 11 00 00 00 00 00 00 E8 [12:03:31]Write i2c OK [12:03:31]MH_I2C_Read... [12:03:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:31]Read from MH i2c: E2 [12:03:31]MH_I2C_Read... [12:03:31]Read from MH i2c: E2 17 00 [12:03:31]MH_I2C_Read... [12:03:31]Read from MH i2c: E2 17 00 4C 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 46 [12:03:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [12:03:31]wFMCommunicate OK [12:03:31]requested_item fd.num is exist - process it [12:03:31]SAM_PROTO_GetFieldsCounters [12:03:31]wFMCommunicate request_size=4 [12:03:31]MH_SAM_APDU [12:03:31]CAPDU: 80 13 00 00 [12:03:31]Write to MH i2c: E2 08 00 4D 22 80 13 00 00 00 00 00 00 EB [12:03:31]Write i2c OK [12:03:31]MH_I2C_Read... [12:03:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:03:31]Read from MH i2c: E2 [12:03:31]MH_I2C_Read... [12:03:31]Read from MH i2c: E2 62 00 [12:03:31]MH_I2C_Read... [12:03:31]Read from MH i2c: E2 62 00 4D 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 5A E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 8F [12:03: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 5A E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:03:31]wFMCommunicate OK [12:03:31]SAM_PROTO_GetFieldsCounters done [12:03:31]requested_item shift.num is exist - process it [12:03:31]requested_item shift.opened is exist - process it [12:03:31]req_shift_opened [12:03:31]FM_GetShiftState [12:03:31]SAM_PROTO_GetShiftState [12:03:31]wFMCommunicate request_size=4 [12:03:31]MH_SAM_APDU [12:03:31]CAPDU: 80 13 01 00 [12:03:31]Write to MH i2c: E2 08 00 4E 22 80 13 01 00 00 00 00 00 ED [12:03:31]Write i2c OK [12:03:31]MH_I2C_Read... [12:03:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:31]Read from MH i2c: E2 [12:03:31]MH_I2C_Read... [12:03:31]Read from MH i2c: E2 0E 00 [12:03:31]MH_I2C_Read... [12:03:31]Read from MH i2c: E2 0E 00 4E 22 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 AF [12:03:31]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [12:03:31]wFMCommunicate OK [12:03:31]SAM_PROTO_GetShiftState done [12:03:31]FM_GetShiftState done [12:03:31]req_shift_opened done [12:03:31]requested_item shift.open_date is exist - process it [12:03:31]req_shift_open_date [12:03:31]req_shift_open_date done [12:03:31]produce_requested_data done [12:03:31]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123226,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [12:03:31]process_action_free print_text [12:03:31]json_value_free [12:03:31]json_value_free done [12:03:31]process_json_proto returns [12:03:31]Send response to host [12:03:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123226,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [12:03:31]free response buf [12:03:31]execute_script done [12:03:31]execute_script returns [12:03:31]free content buf [12:03:31]Sock 7.Close socket [12:03:31]Sock 7.Thread stoped [12:03:32]OFD Sender: No OFD packet to send [12:03:37]OFD Sender: No OFD packet to send [12:03:42]OFD Sender: No OFD packet to send [12:03:47]OFD Sender: No OFD packet to send [12:03:52]OFD Sender: No OFD packet to send [12:03:57]OFD Sender: No OFD packet to send [12:04:02]OFD Sender: No OFD packet to send [12:04:07]OFD Sender: No OFD packet to send [12:04:12]OFD Sender: No OFD packet to send [12:04:17]OFD Sender: No OFD packet to send [12:04:22]OFD Sender: No OFD packet to send [12:04:27]OFD Sender: No OFD packet to send [12:04:32]OFD Sender: No OFD packet to send [12:04:37]OFD Sender: No OFD packet to send [12:04:42]OFD Sender: No OFD packet to send [12:04:47]OFD Sender: No OFD packet to send [12:04:52]OFD Sender: No OFD packet to send [12:04:57]OFD Sender: No OFD packet to send [12:05:02]OFD Sender: No OFD packet to send [12:05:07]OFD Sender: No OFD packet to send [12:05:12]OFD Sender: No OFD packet to send [12:05:17]OFD Sender: No OFD packet to send [12:05:22]OFD Sender: No OFD packet to send [12:05:27]OFD Sender: No OFD packet to send [12:05:32]OFD Sender: No OFD packet to send [12:05:37]OFD Sender: No OFD packet to send [12:05:41]accept exits with 9 [12:05:41]New connection [12:05:41]New thread 3067252068 created [12:05:41]Thread 3067395428 joined [12:05:41]Waiting for new connection... [12:05:41] Sock 9.Parse request [12:05:41]Sock 9.Check first char [12:05:41]Sock 9.First char is OK [12:05:41]request: POST /json_proto HTTP/1.0 [12:05:41]Method: POST [12:05:41]URL: /json_proto [12:05:41]Method is POST - this is cgi request [12:05:41]url: /json_proto [12:05:41]query_string will be loaded in cgi processing [12:05:41]execute_cgi json_proto POST (null) [12:05:41]execute_cgi path=json_proto method=POST [12:05:41]POST find Content-Length [12:05:41]Host: 172.17.48.197:8080 [12:05:41]Content-Length: 641 [12:05:41]Content-Type: application/json [12:05:41] [12:05:41]POST finish read [12:05:41]Found Content-Length = 641 [12:05:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106154", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 10.000, "sum" : 619.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 619.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:05:41]execute_script... [12:05: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)1106154", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 10.000, "sum" : 619.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 619.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:05:41]POST & json_proto [12:05:41]process_json_proto [12:05:41]json parsed OK: [12:05:41]protocol is kg_v1.0 [12:05:41]action value=close_receipt [12:05:41]process_action close_receipt [12:05:41]cmd_close_receipt [12:05:41]MH_GetDate [12:05:41]Write to MH i2c: F0 00 00 4F 22 60 [12:05:41]Write i2c OK [12:05:41]MH_I2C_Read... [12:05:41]Read from MH i2c: F0 [12:05:41]MH_I2C_Read... [12:05:41]Read from MH i2c: F0 09 00 [12:05:41]MH_I2C_Read... [12:05:41]Read from MH i2c: F0 09 00 4F 22 00 98 67 E4 65 6C AF E3 65 14 [12:05:41]GetLastDocTimeStamp 1709467147 [12:05:41]current date 1709467544 [12:05:41]FM_GetShiftState [12:05:41]SAM_PROTO_GetShiftState [12:05:41]wFMCommunicate request_size=4 [12:05:41]MH_SAM_APDU [12:05:41]CAPDU: 80 13 01 00 [12:05:41]Write to MH i2c: E2 08 00 50 22 80 13 01 00 00 00 00 00 EF [12:05:41]Write i2c OK [12:05:41]MH_I2C_Read... [12:05:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:41]Read from MH i2c: E2 [12:05:41]MH_I2C_Read... [12:05:41]Read from MH i2c: E2 0E 00 [12:05:41]MH_I2C_Read... [12:05:41]Read from MH i2c: E2 0E 00 50 22 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 B1 [12:05:41]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [12:05:41]wFMCommunicate OK [12:05:41]SAM_PROTO_GetShiftState done [12:05:41]FM_GetShiftState done [12:05:41]opened in 1709425579 [12:05:41]opened+sec_in_day 1709511979 [12:05:41]quantity*price = 61900 [12:05:41]sum+1 = 61901 [12:05:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 619.00 НСП 1% : 5.48 НДС 12% : 65.73 Наличными: 619.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 84 03.03.2024 12:05 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123227 ФПД: 195008547525939 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T120544&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123227&fm=195008547525939&tin=02508201610067®Number=0000000000090573&sum=61900 [12:05:42]StoreToDocumentArchive [12:05:42]shift 323 fd 123227 [12:05:42]save to /storage/0323/doc_00123227 [12:05:42]save last doc name /storage/0323/doc_00123227 to /storage/kkm_last_doc_name [12:05:42]save OK [12:05:42]Clear old archive folders... [12:05:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:05:42]tlvbuf is B6FC1010 [12:05:42]SAM_PROTO_ClearQueue [12:05:42]wFMCommunicate request_size=4 [12:05:42]MH_SAM_APDU [12:05:42]CAPDU: 80 09 00 00 [12:05:42]Write to MH i2c: E2 08 00 5D 22 80 09 00 00 00 00 00 00 F1 [12:05:42]Write i2c OK [12:05:42]MH_I2C_Read... [12:05:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:05:42]Read from MH i2c: E2 [12:05:42]MH_I2C_Read... [12:05:42]Read from MH i2c: E2 03 00 [12:05:42]MH_I2C_Read... [12:05:42]Read from MH i2c: E2 03 00 5D 22 00 90 00 F3 [12:05:42]RAPDU: 90 00 [12:05:42]wFMCommunicate OK [12:05:42]SAM_PROTO_ClearQueue done [12:05:42]KKMCreateOFDPacket [12:05:42]OFDProtocolAddRootSTLVToBuf [12:05:42]FM_MakeSignedData [12:05:42]FM_MakeSignedData [12:05:42]SAM_PROTO_SignData [12:05:42]wFMCommunicate request_size=4 [12:05:42]MH_SAM_APDU [12:05:42]CAPDU: 80 0D 01 02 [12:05:42]Write to MH i2c: E2 08 00 5E 22 80 0D 01 02 00 00 00 00 F9 [12:05:42]Write i2c OK [12:05:42]MH_I2C_Read... [12:05:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:05:43]Read from MH i2c: E2 [12:05:43]MH_I2C_Read... [12:05:43]Read from MH i2c: E2 03 00 [12:05:43]MH_I2C_Read... [12:05:43]Read from MH i2c: E2 03 00 5E 22 00 90 00 F4 [12:05:43]RAPDU: 90 00 [12:05:43]wFMCommunicate OK [12:05:43]wFMCommunicate request_size=255 [12:05:43]MH_SAM_APDU [12:05:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 CC F1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC F1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 19 00 00 00 00 07 04 06 00 CC F1 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 98 67 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 5B E1 01 00 35 04 06 00 B1 [12:05:43]Write to MH i2c: E2 02 01 5F 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 CC F1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC F1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 19 00 00 00 00 07 04 06 00 CC F1 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 98 67 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 5B E1 01 00 35 04 06 00 B1 00 00 7B [12:05:43]Write i2c OK [12:05:43]MH_I2C_Read... [12:05:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:05:43]Read from MH i2c: E2 [12:05:43]MH_I2C_Read... [12:05:43]Read from MH i2c: E2 03 00 [12:05:43]MH_I2C_Read... [12:05:43]Read from MH i2c: E2 03 00 5F 22 00 90 00 F5 [12:05:43]RAPDU: 90 00 [12:05:43]wFMCommunicate OK [12:05:43]wFMCommunicate request_size=10 [12:05:43]MH_SAM_APDU [12:05:43]CAPDU: 80 0D 02 02 05 5B F7 34 15 33 [12:05:43]Write to MH i2c: E2 0D 00 60 22 80 0D 02 02 05 00 5B F7 34 15 33 00 00 D4 [12:05:43]Write i2c OK [12:05:43]MH_I2C_Read... [12:05:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:05:43]Read from MH i2c: E2 [12:05:43]MH_I2C_Read... [12:05:43]Read from MH i2c: E2 03 00 [12:05:43]MH_I2C_Read... [12:05:43]Read from MH i2c: E2 03 00 60 22 00 90 00 F6 [12:05:43]RAPDU: 90 00 [12:05:43]wFMCommunicate OK [12:05:43]wFMCommunicate request_size=4 [12:05:43]MH_SAM_APDU [12:05:43]CAPDU: 80 0D 03 02 [12:05:43]Write to MH i2c: E2 08 00 61 22 80 0D 03 02 00 00 00 00 FE [12:05:43]Write i2c OK [12:05:43]MH_I2C_Read... [12:05:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:05:43]Read from MH i2c: E2 [12:05:43]MH_I2C_Read... [12:05:43]Read from MH i2c: E2 0B 00 [12:05:43]MH_I2C_Read... [12:05:43]Read from MH i2c: E2 0B 00 61 22 00 A1 56 E7 04 96 BE 48 51 90 00 CE [12:05:43]RAPDU: A1 56 E7 04 96 BE 48 51 90 00 [12:05:43]wFMCommunicate OK [12:05:43]SAM_PROTO_SignData done [12:05:43]FM_MakeSignedData done [12:05:43]CreateOFDProtocolMessage [12:05:43]wFMCommunicate request_size=4 [12:05:43]MH_SAM_APDU [12:05:43]CAPDU: 80 11 00 00 [12:05:43]Write to MH i2c: E2 08 00 62 22 80 11 00 00 00 00 00 00 FE [12:05:43]Write i2c OK [12:05:43]MH_I2C_Read... [12:05:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:43]Read from MH i2c: E2 [12:05:43]MH_I2C_Read... [12:05:43]Read from MH i2c: E2 17 00 [12:05:43]MH_I2C_Read... [12:05:43]Read from MH i2c: E2 17 00 62 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 5C [12:05:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [12:05:43]wFMCommunicate OK [12:05:43]CreateOFDProtocolMessage done [12:05:43]OFDSenderStorePacket 123227 [12:05:43]StoreOFDPacket docnum=123227 [12:05:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 3E 05 07 01 FC 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 CC F1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC F1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 19 00 00 00 00 07 04 06 00 CC F1 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 98 67 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 5B E1 01 00 35 04 06 00 B1 5B F7 34 15 33 A1 56 E7 04 96 BE 48 51 [12:05:43]CheckFolder [12:05:43]dirname=/storage/ofd_packets [12:05:43]CheckFolder done [12:05:43]ProducePacketName [12:05:43]name=ofd_packets/00123227 [12:05:43]NVStorageSaveData ofd_packets/00123227 [12:05:43]File name is /storage/ofd_packets/00123227 [12:05:43]Write 301 bytes [12:05:43]NVStorageSaveData done [12:05:43]OFDSenderStorePacket done [12:05:43]KKMCreateOFDPacket done [12:05:43]NVStorageSaveData kkm_last_timestamp [12:05:43]File name is /storage/kkm_last_timestamp [12:05:43]Write 4 bytes [12:05:43]NVStorageSaveData done [12:05:43]ExternCall_PrintAddStr [12:05:43]wPrintStart [12:05:43]Write to MH i2c: 01 00 00 63 22 85 [12:05:43]Write i2c OK [12:05:43]MH_I2C_Read... [12:05:43]Read from MH i2c: 01 [12:05:43]MH_I2C_Read... [12:05:43]Read from MH i2c: 01 07 00 [12:05:43]MH_I2C_Read... [12:05:43]Read from MH i2c: 01 07 00 63 22 00 00 00 00 00 FF 0F 9A [12:05:43]RasterBufferAndPrint [12:05:43]line Счет N : (1)1106154 [12:05:43]line ИНН: 02508201610067 [12:05:43]line Контрольно-Кассовый Чек [12:05:43]line ПРОДАЖА [12:05:43]line ТРК (МРК, ГНК) : 62 [12:05:43]line Товар: 2710124130 [12:05:43]line Аи-92-К-5 [12:05:43]line 10.000 * 61.90 [12:05:43]line = 619.00 [12:05:43]line НДС 12% НСП 1% [12:05:43]line > о реализуемом товаре [12:05:43]line ИТОГО: 619.00 [12:05:43]line НСП 1% : 5.48 [12:05:43]line НДС 12% : 65.73 [12:05:43]line Наличными: 619.00 [12:05:43]line Безнал.: 0.00 [12:05:43]line Место: АЗС № 25 "Партнер Нефть" [12:05:43]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [12:05:43]line СНО: Общий режим [12:05:43]line Чек 84 03.03.2024 12:05 [12:05:43]line Смена: 323 ФФД: 1.0 [12:05:43]line ЗНМ: 0300000019 [12:05:43]line РНМ: 0000000000090573 [12:05:43]line Версия ККМ: 001 [12:05:43]line ФМ: 0000000000874798 [12:05:43]line ФД: 123227 [12:05:43]line ФПД: 195008547525939 [12:05:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T120544&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123227&fm=195008547525939&tin=02508201610067®Number=0000000000090573&sum=61900 [12:05:43]OFD Sender: Processing packet 123227 [packets to send 112, broken 111] [12:05:43]ProducePacketName [12:05:43]name=ofd_packets/00123227 [12:05:43]OFD Sender: To server: pG, [12:05:43]CommunicateWithHost lk.salyk.kg:30040 [12:05:43]ConnectInit lk.salyk.kg [12:05:43]written 0, free lines is 4095 [12:05:43]Connected sock=10 [12:05: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 37 39 38 0F 01 00 00 3E 05 07 01 FC 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 CC F1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC F1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 19 00 00 00 00 07 04 06 00 CC F1 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 98 67 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 5B E1 01 00 35 04 06 00 B1 5B F7 34 15 33 A1 56 E7 04 96 BE 48 51 [12:05:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 2F AA 47 00 FA 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 37 39 38 10 04 04 00 5B E1 01 00 F4 03 04 00 C4 13 E4 65 B6 04 01 00 00 59 E0 A3 4E 46 31 C0 95 [12:05:44]CommunicateWithHost err = 0 [12:05:44]CheckOFDResponse [12:05:44]1017 (14) - 77093643461234 [12:05:44]1041 (16) - 0000000000874798 [12:05:44]1040 (4) - 123227 [12:05:44]1012 (4) - 03.03.2024 06:08 [12:05:44]1206 (1) - 0 [12:05:44]OFD Sender: Remove packet 123227 [12:05:44]ProducePacketName [12:05:44]name=ofd_packets/00123227 [12:05:44]NVStorageDeleteData [12:05:44]Write to MH i2c: 01 00 00 8B 22 AD [12:05:44]Write i2c OK [12:05:44]MH_I2C_Read... [12:05:44]Read from MH i2c: 01 [12:05:44]MH_I2C_Read... [12:05:44]Read from MH i2c: 01 07 00 [12:05:44]MH_I2C_Read... [12:05:44]Read from MH i2c: 01 07 00 8B 22 00 00 00 00 00 23 0D E4 [12:05:44]RasterBufferAndPrint [12:05:44]line [12:05:44]line [12:05:44]line [12:05:44]line [12:05:44]line [12:05:44]written 0, free lines is 3369 [12:05:44]MH_Cut [12:05:44]Write to MH i2c: D1 01 00 92 22 01 86 [12:05:44]Write i2c OK [12:05:44]MH_I2C_Read... [12:05:44]Read from MH i2c: D1 [12:05:44]MH_I2C_Read... [12:05:44]Read from MH i2c: D1 01 00 [12:05:44]MH_I2C_Read... [12:05:44]Read from MH i2c: D1 01 00 92 22 00 85 [12:05:44]Write to MH i2c: 01 00 00 93 22 B5 [12:05:44]Write i2c OK [12:05:44]MH_I2C_Read... [12:05:44]OFD Sender: No OFD packet to send [12:05:44]*** Cut start [12:05:44]*** Purtial cut [12:05:44]*** Stage 1: CUTSNS_PIN = 1 [12:05:46]Read from MH i2c: 01 [12:05:46]MH_I2C_Read... [12:05:46]*** Stop cut motor [12:05:46]*** Cut end [12:05:46]Read from MH i2c: 01 07 00 [12:05:46]MH_I2C_Read... [12:05:46]Read from MH i2c: 01 07 00 93 22 00 00 00 00 00 FF 0F CA [12:05:46]process_action close_receipt done [12:05:46]requested_data is exist [12:05:46]produce_requested_data [12:05:46]requested_item fm.sn is exist - process it [12:05:46]wFMCommunicate request_size=4 [12:05:46]MH_SAM_APDU [12:05:46]CAPDU: 80 11 00 00 [12:05:46]Write to MH i2c: E2 08 00 94 22 80 11 00 00 00 00 00 00 30 [12:05:46]Write i2c OK [12:05:46]MH_I2C_Read... [12:05:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:46]Read from MH i2c: E2 [12:05:46]MH_I2C_Read... [12:05:46]Read from MH i2c: E2 17 00 [12:05:46]MH_I2C_Read... [12:05:46]Read from MH i2c: E2 17 00 94 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 8E [12:05:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [12:05:46]wFMCommunicate OK [12:05:46]requested_item fd.num is exist - process it [12:05:46]SAM_PROTO_GetFieldsCounters [12:05:46]wFMCommunicate request_size=4 [12:05:46]MH_SAM_APDU [12:05:46]CAPDU: 80 13 00 00 [12:05:46]Write to MH i2c: E2 08 00 95 22 80 13 00 00 00 00 00 00 33 [12:05:46]Write i2c OK [12:05:46]MH_I2C_Read... [12:05:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:05:47]Read from MH i2c: E2 [12:05:47]MH_I2C_Read... [12:05:47]Read from MH i2c: E2 62 00 [12:05:47]MH_I2C_Read... [12:05:47]Read from MH i2c: E2 62 00 95 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 5B E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 DB [12:05: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 5B E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:05:47]wFMCommunicate OK [12:05:47]SAM_PROTO_GetFieldsCounters done [12:05:47]requested_item shift.num is exist - process it [12:05:47]requested_item shift.opened is exist - process it [12:05:47]req_shift_opened [12:05:47]FM_GetShiftState [12:05:47]SAM_PROTO_GetShiftState [12:05:47]wFMCommunicate request_size=4 [12:05:47]MH_SAM_APDU [12:05:47]CAPDU: 80 13 01 00 [12:05:47]Write to MH i2c: E2 08 00 96 22 80 13 01 00 00 00 00 00 35 [12:05:47]Write i2c OK [12:05:47]MH_I2C_Read... [12:05:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:47]Read from MH i2c: E2 [12:05:47]MH_I2C_Read... [12:05:47]Read from MH i2c: E2 0E 00 [12:05:47]MH_I2C_Read... [12:05:47]Read from MH i2c: E2 0E 00 96 22 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 F7 [12:05:47]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [12:05:47]wFMCommunicate OK [12:05:47]SAM_PROTO_GetShiftState done [12:05:47]FM_GetShiftState done [12:05:47]req_shift_opened done [12:05:47]requested_item shift.open_date is exist - process it [12:05:47]req_shift_open_date [12:05:47]req_shift_open_date done [12:05:47]produce_requested_data done [12:05:47]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123227,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [12:05:47]process_action_free close_receipt [12:05:47]json_value_free [12:05:47]json_value_free done [12:05:47]process_json_proto returns [12:05:47]Send response to host [12:05:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123227,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [12:05:47]free response buf [12:05:47]execute_script done [12:05:47]execute_script returns [12:05:47]free content buf [12:05:47]Sock 9.Close socket [12:05:47]Sock 9.Thread stoped [12:05:49]OFD Sender: No OFD packet to send [12:05:51]accept exits with 7 [12:05:51]New connection [12:05:51]New thread 3067395428 created [12:05:51]Thread 3067252068 joined [12:05:51]Waiting for new connection... [12:05:51] Sock 7.Parse request [12:05:51]Sock 7.Check first char [12:05:51]Sock 7.First char is OK [12:05:51]request: POST /json_proto HTTP/1.0 [12:05:51]Method: POST [12:05:51]URL: /json_proto [12:05:51]Method is POST - this is cgi request [12:05:51]url: /json_proto [12:05:51]query_string will be loaded in cgi processing [12:05:51]execute_cgi json_proto POST (null) [12:05:51]execute_cgi path=json_proto method=POST [12:05:51]POST find Content-Length [12:05:51]Host: 172.17.48.197:8080 [12:05:51]Content-Length: 698 [12:05:51]Content-Type: application/json [12:05:51] [12:05:51]POST finish read [12:05:51]Found Content-Length = 698 [12:05:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 123227, "base_FM": "0000000000874798", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106154", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 10.000, "sum" : 619.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 619.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:05:51]execute_script... [12:05:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 123227, "base_FM": "0000000000874798", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106154", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 10.000, "sum" : 619.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 619.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:05:51]POST & json_proto [12:05:51]process_json_proto [12:05:51]json parsed OK: [12:05:51]protocol is kg_v1.0 [12:05:51]action value=close_receipt [12:05:51]process_action close_receipt [12:05:51]cmd_close_receipt [12:05:51]MH_GetDate [12:05:51]Write to MH i2c: F0 00 00 97 22 A8 [12:05:51]Write i2c OK [12:05:51]MH_I2C_Read... [12:05:51]Read from MH i2c: F0 [12:05:51]MH_I2C_Read... [12:05:51]Read from MH i2c: F0 09 00 [12:05:51]MH_I2C_Read... [12:05:51]Read from MH i2c: F0 09 00 97 22 00 A2 67 E4 65 6C AF E3 65 66 [12:05:51]GetLastDocTimeStamp 1709467544 [12:05:51]current date 1709467554 [12:05:51]FM_GetShiftState [12:05:51]SAM_PROTO_GetShiftState [12:05:51]wFMCommunicate request_size=4 [12:05:51]MH_SAM_APDU [12:05:51]CAPDU: 80 13 01 00 [12:05:51]Write to MH i2c: E2 08 00 98 22 80 13 01 00 00 00 00 00 37 [12:05:51]Write i2c OK [12:05:51]MH_I2C_Read... [12:05:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:51]Read from MH i2c: E2 [12:05:51]MH_I2C_Read... [12:05:51]Read from MH i2c: E2 0E 00 [12:05:51]MH_I2C_Read... [12:05:51]Read from MH i2c: E2 0E 00 98 22 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 F9 [12:05:51]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [12:05:51]wFMCommunicate OK [12:05:51]SAM_PROTO_GetShiftState done [12:05:51]FM_GetShiftState done [12:05:51]opened in 1709425579 [12:05:51]opened+sec_in_day 1709511979 [12:05:51]quantity*price = 61900 [12:05:51]sum+1 = 61901 [12:05:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 619.00 НСП 1% : 5.48 НДС 12% : 65.73 Наличными: 619.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 85 03.03.2024 12:05 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФД осн.: 123227 ФМ осн.: 0000000000874798 ФМ: 0000000000874798 ФД: 123228 ФПД: 167046181495101 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T120554&type=2&operation_type=1&fn_number=0000000000874798&fd_number=123228&fm=167046181495101&tin=02508201610067®Number=0000000000090573&sum=61900 [12:05:52]StoreToDocumentArchive [12:05:52]shift 323 fd 123228 [12:05:52]save to /storage/0323/doc_00123228 [12:05:52]save last doc name /storage/0323/doc_00123228 to /storage/kkm_last_doc_name [12:05:52]save OK [12:05:52]Clear old archive folders... [12:05:52]ProcessDocumentItem done err = 0, tmpTLVsize=279 [12:05:52]tlvbuf is 00DB0120 [12:05:52]SAM_PROTO_ClearQueue [12:05:52]wFMCommunicate request_size=4 [12:05:52]MH_SAM_APDU [12:05:52]CAPDU: 80 09 00 00 [12:05:52]Write to MH i2c: E2 08 00 A7 22 80 09 00 00 00 00 00 00 3B [12:05:52]Write i2c OK [12:05:52]MH_I2C_Read... [12:05:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:05:52]Read from MH i2c: E2 [12:05:52]MH_I2C_Read... [12:05:52]Read from MH i2c: E2 03 00 [12:05:52]MH_I2C_Read... [12:05:52]Read from MH i2c: E2 03 00 A7 22 00 90 00 3D [12:05:52]RAPDU: 90 00 [12:05:52]wFMCommunicate OK [12:05:52]SAM_PROTO_ClearQueue done [12:05:52]KKMCreateOFDPacket [12:05:52]OFDProtocolAddRootSTLVToBuf [12:05:52]FM_MakeSignedData [12:05:52]FM_MakeSignedData [12:05:52]SAM_PROTO_SignData [12:05:52]wFMCommunicate request_size=4 [12:05:52]MH_SAM_APDU [12:05:52]CAPDU: 80 0D 01 02 [12:05:52]Write to MH i2c: E2 08 00 A8 22 80 0D 01 02 00 00 00 00 43 [12:05:52]Write i2c OK [12:05:52]MH_I2C_Read... [12:05:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:05:53]Read from MH i2c: E2 [12:05:53]MH_I2C_Read... [12:05:53]Read from MH i2c: E2 03 00 [12:05:53]MH_I2C_Read... [12:05:53]Read from MH i2c: E2 03 00 A8 22 00 90 00 3E [12:05:53]RAPDU: 90 00 [12:05:53]wFMCommunicate OK [12:05:53]wFMCommunicate request_size=255 [12:05:53]MH_SAM_APDU [12:05:53]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 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 CC F1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC F1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 19 00 00 00 00 07 04 06 00 CC F1 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 A2 67 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 27 04 04 00 5B E1 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 11 04 10 00 30 [12:05:53]Write to MH i2c: E2 02 01 A9 22 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 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 CC F1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC F1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 19 00 00 00 00 07 04 06 00 CC F1 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 A2 67 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 27 04 04 00 5B E1 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 11 04 10 00 30 00 00 81 [12:05:53]Write i2c OK [12:05:53]MH_I2C_Read... [12:05:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:05:53]Read from MH i2c: E2 [12:05:53]MH_I2C_Read... [12:05:53]Read from MH i2c: E2 03 00 [12:05:53]MH_I2C_Read... [12:05:53]Read from MH i2c: E2 03 00 A9 22 00 90 00 3F [12:05:53]RAPDU: 90 00 [12:05:53]wFMCommunicate OK [12:05:53]wFMCommunicate request_size=38 [12:05:53]MH_SAM_APDU [12:05:53]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 5C E1 01 00 35 04 06 00 97 ED 78 4F 21 3D [12:05:53]Write to MH i2c: E2 29 00 AA 22 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 5C E1 01 00 35 04 06 00 97 ED 78 4F 21 3D 00 00 C1 [12:05:53]Write i2c OK [12:05:53]MH_I2C_Read... [12:05:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:05:53]Read from MH i2c: E2 [12:05:53]MH_I2C_Read... [12:05:53]Read from MH i2c: E2 03 00 [12:05:53]MH_I2C_Read... [12:05:53]Read from MH i2c: E2 03 00 AA 22 00 90 00 40 [12:05:53]RAPDU: 90 00 [12:05:53]wFMCommunicate OK [12:05:53]wFMCommunicate request_size=4 [12:05:53]MH_SAM_APDU [12:05:53]CAPDU: 80 0D 03 02 [12:05:53]Write to MH i2c: E2 08 00 AB 22 80 0D 03 02 00 00 00 00 48 [12:05:53]Write i2c OK [12:05:53]MH_I2C_Read... [12:05:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:05:53]Read from MH i2c: E2 [12:05:53]MH_I2C_Read... [12:05:53]Read from MH i2c: E2 0B 00 [12:05:53]MH_I2C_Read... [12:05:53]Read from MH i2c: E2 0B 00 AB 22 00 73 13 9F C1 6C 9F 57 74 90 00 05 [12:05:53]RAPDU: 73 13 9F C1 6C 9F 57 74 90 00 [12:05:53]wFMCommunicate OK [12:05:53]SAM_PROTO_SignData done [12:05:53]FM_MakeSignedData done [12:05:53]CreateOFDProtocolMessage [12:05:53]wFMCommunicate request_size=4 [12:05:53]MH_SAM_APDU [12:05:53]CAPDU: 80 11 00 00 [12:05:53]Write to MH i2c: E2 08 00 AC 22 80 11 00 00 00 00 00 00 48 [12:05:53]Write i2c OK [12:05:53]MH_I2C_Read... [12:05:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:53]Read from MH i2c: E2 [12:05:53]MH_I2C_Read... [12:05:53]Read from MH i2c: E2 17 00 [12:05:53]MH_I2C_Read... [12:05:53]Read from MH i2c: E2 17 00 AC 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 A6 [12:05:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [12:05:53]wFMCommunicate OK [12:05:53]CreateOFDProtocolMessage done [12:05:53]OFDSenderStorePacket 123228 [12:05:53]StoreOFDPacket docnum=123228 [12:05:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 2B 01 00 00 6B 05 23 01 E7 CA 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 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 CC F1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC F1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 19 00 00 00 00 07 04 06 00 CC F1 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 A2 67 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 27 04 04 00 5B E1 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 5C E1 01 00 35 04 06 00 97 ED 78 4F 21 3D 73 13 9F C1 6C 9F 57 74 [12:05:53]CheckFolder [12:05:53]dirname=/storage/ofd_packets [12:05:53]CheckFolder done [12:05:53]ProducePacketName [12:05:53]name=ofd_packets/00123228 [12:05:53]NVStorageSaveData ofd_packets/00123228 [12:05:53]File name is /storage/ofd_packets/00123228 [12:05:53]Write 329 bytes [12:05:53]NVStorageSaveData done [12:05:53]OFDSenderStorePacket done [12:05:53]KKMCreateOFDPacket done [12:05:53]NVStorageSaveData kkm_last_timestamp [12:05:53]File name is /storage/kkm_last_timestamp [12:05:53]Write 4 bytes [12:05:53]NVStorageSaveData done [12:05:53]ExternCall_PrintAddStr [12:05:53]wPrintStart [12:05:53]Write to MH i2c: 01 00 00 AD 22 CF [12:05:53]Write i2c OK [12:05:53]MH_I2C_Read... [12:05:53]Read from MH i2c: 01 [12:05:53]MH_I2C_Read... [12:05:53]Read from MH i2c: 01 07 00 [12:05:53]MH_I2C_Read... [12:05:53]Read from MH i2c: 01 07 00 AD 22 00 00 00 00 00 FF 0F E4 [12:05:53]RasterBufferAndPrint [12:05:53]line Счет N : (1)1106154 [12:05:53]line ИНН: 02508201610067 [12:05:53]line Контрольно-Кассовый Чек [12:05:53]line ВОЗВРАТ ПРОДАЖИ [12:05:53]line ТРК (МРК, ГНК) : 62 [12:05:53]line Товар: 2710124130 [12:05:53]line Аи-92-К-5 [12:05:53]line 10.000 * 61.90 [12:05:53]line = 619.00 [12:05:53]line НДС 12% НСП 1% [12:05:53]line > о реализуемом товаре [12:05:53]line ИТОГО: 619.00 [12:05:53]line НСП 1% : 5.48 [12:05:53]line НДС 12% : 65.73 [12:05:53]line Наличными: 619.00 [12:05:53]line Безнал.: 0.00 [12:05:53]line Место: АЗС № 25 "Партнер Нефть" [12:05:53]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [12:05:53]line СНО: Общий режим [12:05:53]line Чек 85 03.03.2024 12:05 [12:05:53]line Смена: 323 ФФД: 1.0 [12:05:53]line ЗНМ: 0300000019 [12:05:53]line РНМ: 0000000000090573 [12:05:53]line Версия ККМ: 001 [12:05:53]line ФД осн.: 123227 [12:05:53]line ФМ осн.: 0000000000874798 [12:05:53]line ФМ: 0000000000874798 [12:05:53]line ФД: 123228 [12:05:53]line ФПД: 167046181495101 [12:05:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T120554&type=2&operation_type=1&fn_number=0000000000874798&fd_number=123228&fm=167046181495101&tin=02508201610067®Number=0000000000090573&sum=61900 [12:05:53]written 0, free lines is 4095 [12:05:53]OFD Sender: Processing packet 123228 [packets to send 112, broken 111] [12:05:53]ProducePacketName [12:05:53]name=ofd_packets/00123228 [12:05:53]OFD Sender: To server: pG, [12:05:53]CommunicateWithHost lk.salyk.kg:30040 [12:05:53]ConnectInit lk.salyk.kg [12:05:53]Connected sock=10 [12:05: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 37 39 38 2B 01 00 00 6B 05 23 01 E7 CA 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 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 CC F1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC F1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 19 00 00 00 00 07 04 06 00 CC F1 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 A2 67 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 27 04 04 00 5B E1 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 5C E1 01 00 35 04 06 00 97 ED 78 4F 21 3D 73 13 9F C1 6C 9F 57 74 [12:05:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 62 9C 47 00 FD 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 37 39 38 10 04 04 00 5C E1 01 00 F4 03 04 00 CE 13 E4 65 B6 04 01 00 00 B3 BD 49 AC 40 66 FC BB [12:05:54]CommunicateWithHost err = 0 [12:05:54]CheckOFDResponse [12:05:54]1017 (14) - 77093643461234 [12:05:54]1041 (16) - 0000000000874798 [12:05:54]1040 (4) - 123228 [12:05:54]1012 (4) - 03.03.2024 06:08 [12:05:54]1206 (1) - 0 [12:05:54]OFD Sender: Remove packet 123228 [12:05:54]ProducePacketName [12:05:54]name=ofd_packets/00123228 [12:05:54]NVStorageDeleteData [12:05:54]Write to MH i2c: 01 00 00 D7 22 F9 [12:05:54]Write i2c OK [12:05:54]MH_I2C_Read... [12:05:54]Read from MH i2c: 01 [12:05:54]MH_I2C_Read... [12:05:54]Read from MH i2c: 01 07 00 [12:05:54]MH_I2C_Read... [12:05:54]Read from MH i2c: 01 07 00 D7 22 00 00 00 00 00 02 0D 0F [12:05:54]RasterBufferAndPrint [12:05:54]line [12:05:54]line [12:05:54]line [12:05:54]line [12:05:54]line [12:05:54]written 0, free lines is 3338 [12:05:54]MH_Cut [12:05:54]Write to MH i2c: D1 01 00 DE 22 01 D2 [12:05:54]Write i2c OK [12:05:54]MH_I2C_Read... [12:05:54]Read from MH i2c: D1 [12:05:54]MH_I2C_Read... [12:05:54]Read from MH i2c: D1 01 00 [12:05:54]MH_I2C_Read... [12:05:54]Read from MH i2c: D1 01 00 DE 22 00 D1 [12:05:54]Write to MH i2c: 01 00 00 DF 22 01 [12:05:54]Write i2c OK [12:05:54]MH_I2C_Read... [12:05:54]OFD Sender: No OFD packet to send [12:05:54]*** Cut start [12:05:54]*** Purtial cut [12:05:54]*** Stage 1: CUTSNS_PIN = 1 [12:05:56]Read from MH i2c: 01 [12:05:56]MH_I2C_Read... [12:05:56]*** Stop cut motor [12:05:56]*** Cut end [12:05:56]Read from MH i2c: 01 07 00 [12:05:56]MH_I2C_Read... [12:05:56]Read from MH i2c: 01 07 00 DF 22 00 00 00 00 00 FF 0F 16 [12:05:56]process_action close_receipt done [12:05:56]requested_data is exist [12:05:56]produce_requested_data [12:05:56]requested_item fm.sn is exist - process it [12:05:56]wFMCommunicate request_size=4 [12:05:56]MH_SAM_APDU [12:05:56]CAPDU: 80 11 00 00 [12:05:56]Write to MH i2c: E2 08 00 E0 22 80 11 00 00 00 00 00 00 7C [12:05:56]Write i2c OK [12:05:56]MH_I2C_Read... [12:05:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:57]Read from MH i2c: E2 [12:05:57]MH_I2C_Read... [12:05:57]Read from MH i2c: E2 17 00 [12:05:57]MH_I2C_Read... [12:05:57]Read from MH i2c: E2 17 00 E0 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 DA [12:05:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [12:05:57]wFMCommunicate OK [12:05:57]requested_item fd.num is exist - process it [12:05:57]SAM_PROTO_GetFieldsCounters [12:05:57]wFMCommunicate request_size=4 [12:05:57]MH_SAM_APDU [12:05:57]CAPDU: 80 13 00 00 [12:05:57]Write to MH i2c: E2 08 00 E1 22 80 13 00 00 00 00 00 00 7F [12:05:57]Write i2c OK [12:05:57]MH_I2C_Read... [12:05:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:05:57]Read from MH i2c: E2 [12:05:57]MH_I2C_Read... [12:05:57]Read from MH i2c: E2 62 00 [12:05:57]MH_I2C_Read... [12:05:57]Read from MH i2c: E2 62 00 E1 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 5C E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 2B [12:05: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 5C E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:05:57]wFMCommunicate OK [12:05:57]SAM_PROTO_GetFieldsCounters done [12:05:57]requested_item shift.num is exist - process it [12:05:57]requested_item shift.opened is exist - process it [12:05:57]req_shift_opened [12:05:57]FM_GetShiftState [12:05:57]SAM_PROTO_GetShiftState [12:05:57]wFMCommunicate request_size=4 [12:05:57]MH_SAM_APDU [12:05:57]CAPDU: 80 13 01 00 [12:05:57]Write to MH i2c: E2 08 00 E2 22 80 13 01 00 00 00 00 00 81 [12:05:57]Write i2c OK [12:05:57]MH_I2C_Read... [12:05:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:57]Read from MH i2c: E2 [12:05:57]MH_I2C_Read... [12:05:57]Read from MH i2c: E2 0E 00 [12:05:57]MH_I2C_Read... [12:05:57]Read from MH i2c: E2 0E 00 E2 22 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 43 [12:05:57]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [12:05:57]wFMCommunicate OK [12:05:57]SAM_PROTO_GetShiftState done [12:05:57]FM_GetShiftState done [12:05:57]req_shift_opened done [12:05:57]requested_item shift.open_date is exist - process it [12:05:57]req_shift_open_date [12:05:57]req_shift_open_date done [12:05:57]produce_requested_data done [12:05:57]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123228,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [12:05:57]process_action_free close_receipt [12:05:57]json_value_free [12:05:57]json_value_free done [12:05:57]process_json_proto returns [12:05:57]Send response to host [12:05:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123228,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [12:05:57]free response buf [12:05:57]execute_script done [12:05:57]execute_script returns [12:05:57]free content buf [12:05:57]Sock 7.Close socket [12:05:57]Sock 7.Thread stoped [12:05:59]OFD Sender: No OFD packet to send [12:06:04]OFD Sender: No OFD packet to send [12:06:09]OFD Sender: No OFD packet to send [12:06:14]OFD Sender: No OFD packet to send [12:06:19]OFD Sender: No OFD packet to send [12:06:24]OFD Sender: No OFD packet to send [12:06:29]OFD Sender: No OFD packet to send [12:06:34]OFD Sender: No OFD packet to send [12:06:39]OFD Sender: No OFD packet to send [12:06:44]OFD Sender: No OFD packet to send [12:06:47]accept exits with 9 [12:06:47]New connection [12:06:47]New thread 3067252068 created [12:06:47]Thread 3067395428 joined [12:06:47]Waiting for new connection... [12:06:47] Sock 9.Parse request [12:06:47]Sock 9.Check first char [12:06:47]Sock 9.First char is OK [12:06:47]request: POST /json_proto HTTP/1.0 [12:06:47]Method: POST [12:06:47]URL: /json_proto [12:06:47]Method is POST - this is cgi request [12:06:47]url: /json_proto [12:06:47]query_string will be loaded in cgi processing [12:06:47]execute_cgi json_proto POST (null) [12:06:47]execute_cgi path=json_proto method=POST [12:06:47]POST find Content-Length [12:06:47]Host: 172.17.48.197:8080 [12:06:47]Content-Length: 1217 [12:06:47]Content-Type: application/json [12:06:47] [12:06:47]POST finish read [12:06:47]Found Content-Length = 1217 [12:06:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106153\u000A03.03.2024 12:03\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 52\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 619.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3862646\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:06:47]execute_script... [12:06:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106153\u000A03.03.2024 12:03\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 52\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 619.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3862646\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:06:47]POST & json_proto [12:06:47]process_json_proto [12:06:47]json parsed OK: [12:06:47]protocol is kg_v1.0 [12:06:47]action value=print_text [12:06:47]process_action print_text [12:06:47]cmd_print_text [12:06:47]ExternCall_PrintAddStr [12:06:47]wPrintStart [12:06:47]Write to MH i2c: 01 00 00 E3 22 05 [12:06:47]Write i2c OK [12:06:47]MH_I2C_Read... [12:06:47]Read from MH i2c: 01 [12:06:47]MH_I2C_Read... [12:06:47]Read from MH i2c: 01 07 00 [12:06:47]MH_I2C_Read... [12:06:47]Read from MH i2c: 01 07 00 E3 22 00 00 00 00 00 FF 0F 1A [12:06:47]RasterBufferAndPrint [12:06:47]line *****ТОВАРНЫЙ ЧЕК***** [12:06:47]line АЗС 25 [12:06:47]line Партнер нефть [12:06:47]line 02508201610067 [12:06:47]line Кассир : Турдумбек у. К. [12:06:47]line Счет N : (1)1106153 [12:06:47]line 03.03.2024 12:03 [12:06:47]line ПРОДАЖА [12:06:47]line ТРК (МРК, ГНК): 52 [12:06:47]line Вид ГСМ : 2710124130 [12:06:47]line Аи-92-К-5 [12:06:47]line 10.000 x 61.90 [12:06:47]line ИТОГ: 619.00 [12:06:47]line Тип оплаты: Талоны: Топливные Талоны [12:06:47]line 3862646 [12:06:47]line ______________________ [12:06:47]line (подпись) [12:06:47]written 0, free lines is 4095 [12:06:48]Write to MH i2c: 01 00 00 F8 22 1A [12:06:48]Write i2c OK [12:06:48]MH_I2C_Read... [12:06:48]Read from MH i2c: 01 [12:06:48]MH_I2C_Read... [12:06:48]Read from MH i2c: 01 07 00 [12:06:48]MH_I2C_Read... [12:06:48]Read from MH i2c: 01 07 00 F8 22 00 00 00 00 00 F5 0D 23 [12:06:48]RasterBufferAndPrint [12:06:48]line [12:06:48]line [12:06:48]line [12:06:48]line [12:06:48]line [12:06:48]written 0, free lines is 3574 [12:06:48]MH_Cut [12:06:48]Write to MH i2c: D1 01 00 FF 22 01 F3 [12:06:48]Write i2c OK [12:06:48]MH_I2C_Read... [12:06:48]Read from MH i2c: D1 [12:06:48]MH_I2C_Read... [12:06:48]Read from MH i2c: D1 01 00 [12:06:48]MH_I2C_Read... [12:06:48]Read from MH i2c: D1 01 00 FF 22 00 F2 [12:06:48]Write to MH i2c: 01 00 00 00 23 23 [12:06:48]Write i2c OK [12:06:48]MH_I2C_Read... [12:06:48]*** Cut start [12:06:48]*** Purtial cut [12:06:48]*** Stage 1: CUTSNS_PIN = 1 [12:06:49]OFD Sender: No OFD packet to send [12:06:50]Read from MH i2c: 01 [12:06:50]MH_I2C_Read... [12:06:50]Read from MH i2c: 01 07 00 [12:06:50]MH_I2C_Read... [12:06:50]*** Stop cut motor [12:06:50]*** Cut end [12:06:50]Read from MH i2c: 01 07 00 00 23 00 00 00 00 00 FF 0F 38 [12:06:50]process_action print_text done [12:06:50]requested_data is exist [12:06:50]produce_requested_data [12:06:50]requested_item fm.sn is exist - process it [12:06:50]wFMCommunicate request_size=4 [12:06:50]MH_SAM_APDU [12:06:50]CAPDU: 80 11 00 00 [12:06:50]Write to MH i2c: E2 08 00 01 23 80 11 00 00 00 00 00 00 9E [12:06:50]Write i2c OK [12:06:50]MH_I2C_Read... [12:06:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:06:50]Read from MH i2c: E2 [12:06:50]MH_I2C_Read... [12:06:50]Read from MH i2c: E2 17 00 [12:06:50]MH_I2C_Read... [12:06:50]Read from MH i2c: E2 17 00 01 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 FC [12:06:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [12:06:50]wFMCommunicate OK [12:06:50]requested_item fd.num is exist - process it [12:06:50]SAM_PROTO_GetFieldsCounters [12:06:50]wFMCommunicate request_size=4 [12:06:50]MH_SAM_APDU [12:06:50]CAPDU: 80 13 00 00 [12:06:50]Write to MH i2c: E2 08 00 02 23 80 13 00 00 00 00 00 00 A1 [12:06:50]Write i2c OK [12:06:50]MH_I2C_Read... [12:06:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:06:50]Read from MH i2c: E2 [12:06:50]MH_I2C_Read... [12:06:50]Read from MH i2c: E2 62 00 [12:06:50]MH_I2C_Read... [12:06:50]Read from MH i2c: E2 62 00 02 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 5C E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 4D [12:06: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 5C E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:06:50]wFMCommunicate OK [12:06:50]SAM_PROTO_GetFieldsCounters done [12:06:50]requested_item shift.num is exist - process it [12:06:50]requested_item shift.opened is exist - process it [12:06:50]req_shift_opened [12:06:50]FM_GetShiftState [12:06:50]SAM_PROTO_GetShiftState [12:06:50]wFMCommunicate request_size=4 [12:06:50]MH_SAM_APDU [12:06:50]CAPDU: 80 13 01 00 [12:06:50]Write to MH i2c: E2 08 00 03 23 80 13 01 00 00 00 00 00 A3 [12:06:50]Write i2c OK [12:06:50]MH_I2C_Read... [12:06:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:06:50]Read from MH i2c: E2 [12:06:50]MH_I2C_Read... [12:06:50]Read from MH i2c: E2 0E 00 [12:06:50]MH_I2C_Read... [12:06:50]Read from MH i2c: E2 0E 00 03 23 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 65 [12:06:50]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [12:06:50]wFMCommunicate OK [12:06:50]SAM_PROTO_GetShiftState done [12:06:50]FM_GetShiftState done [12:06:50]req_shift_opened done [12:06:50]requested_item shift.open_date is exist - process it [12:06:50]req_shift_open_date [12:06:50]req_shift_open_date done [12:06:50]produce_requested_data done [12:06:50]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123228,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [12:06:50]process_action_free print_text [12:06:50]json_value_free [12:06:50]json_value_free done [12:06:50]process_json_proto returns [12:06:50]Send response to host [12:06:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123228,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [12:06:50]free response buf [12:06:50]execute_script done [12:06:50]execute_script returns [12:06:50]free content buf [12:06:50]Sock 9.Close socket [12:06:50]Sock 9.Thread stoped [12:06:54]OFD Sender: No OFD packet to send [12:06:59]OFD Sender: No OFD packet to send [12:07:04]OFD Sender: No OFD packet to send [12:07:09]OFD Sender: No OFD packet to send [12:07:14]OFD Sender: No OFD packet to send [12:07:19]OFD Sender: No OFD packet to send [12:07:24]OFD Sender: No OFD packet to send [12:07:29]OFD Sender: No OFD packet to send [12:07:34]OFD Sender: No OFD packet to send [12:07:39]OFD Sender: No OFD packet to send [12:07:44]OFD Sender: No OFD packet to send [12:07:49]OFD Sender: No OFD packet to send [12:07:54]OFD Sender: No OFD packet to send [12:07:59]OFD Sender: No OFD packet to send [12:08:04]OFD Sender: No OFD packet to send [12:08:09]OFD Sender: No OFD packet to send [12:08:14]OFD Sender: No OFD packet to send [12:08:19]OFD Sender: No OFD packet to send [12:08:24]OFD Sender: No OFD packet to send [12:08:29]OFD Sender: No OFD packet to send [12:08:34]OFD Sender: No OFD packet to send [12:08:39]OFD Sender: No OFD packet to send [12:08:44]OFD Sender: No OFD packet to send [12:08:49]OFD Sender: No OFD packet to send [12:08:54]OFD Sender: No OFD packet to send [12:08:59]OFD Sender: No OFD packet to send [12:09:04]OFD Sender: No OFD packet to send [12:09:09]OFD Sender: No OFD packet to send [12:09:14]OFD Sender: No OFD packet to send [12:09:19]OFD Sender: No OFD packet to send [12:09:24]OFD Sender: No OFD packet to send [12:09:29]OFD Sender: No OFD packet to send [12:09:34]OFD Sender: No OFD packet to send [12:09:39]OFD Sender: No OFD packet to send [12:09:44]OFD Sender: No OFD packet to send [12:09:49]OFD Sender: No OFD packet to send [12:09:54]OFD Sender: No OFD packet to send [12:09:59]OFD Sender: No OFD packet to send [12:10:04]OFD Sender: No OFD packet to send [12:10:09]OFD Sender: No OFD packet to send [12:10:14]OFD Sender: No OFD packet to send [12:10:19]OFD Sender: No OFD packet to send [12:10:24]OFD Sender: No OFD packet to send [12:10:29]OFD Sender: No OFD packet to send [12:10:34]OFD Sender: No OFD packet to send [12:10:39]OFD Sender: No OFD packet to send [12:10:44]OFD Sender: No OFD packet to send [12:10:49]OFD Sender: No OFD packet to send [12:10:54]OFD Sender: No OFD packet to send [12:10:59]OFD Sender: No OFD packet to send [12:11:04]OFD Sender: No OFD packet to send [12:11:09]OFD Sender: No OFD packet to send [12:11:11]accept exits with 7 [12:11:11]New connection [12:11:11]New thread 3067395428 created [12:11:11]Thread 3067252068 joined [12:11:11]Waiting for new connection... [12:11:11] Sock 7.Parse request [12:11:11]Sock 7.Check first char [12:11:11]Sock 7.First char is OK [12:11:11]request: POST /json_proto HTTP/1.0 [12:11:11]Method: POST [12:11:11]URL: /json_proto [12:11:11]Method is POST - this is cgi request [12:11:11]url: /json_proto [12:11:11]query_string will be loaded in cgi processing [12:11:11]execute_cgi json_proto POST (null) [12:11:11]execute_cgi path=json_proto method=POST [12:11:11]POST find Content-Length [12:11:11]Host: 172.17.48.197:8080 [12:11:11]Content-Length: 678 [12:11:11]Content-Type: application/json [12:11:11] [12:11:11]POST finish read [12:11:11]Found Content-Length = 678 [12:11:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106155", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 4.850, "sum" : 300.22, "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" ] } } [12:11:11]execute_script... [12: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 : (1)1106155", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 4.850, "sum" : 300.22, "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" ] } } [12:11:11]POST & json_proto [12:11:11]process_json_proto [12:11:11]json parsed OK: [12:11:11]protocol is kg_v1.0 [12:11:11]action value=close_receipt [12:11:11]process_action close_receipt [12:11:11]cmd_close_receipt [12:11:11]MH_GetDate [12:11:11]Write to MH i2c: F0 00 00 04 23 16 [12:11:11]Write i2c OK [12:11:11]MH_I2C_Read... [12:11:11]Read from MH i2c: F0 [12:11:11]MH_I2C_Read... [12:11:11]Read from MH i2c: F0 09 00 [12:11:11]MH_I2C_Read... [12:11:11]Read from MH i2c: F0 09 00 04 23 00 E2 68 E4 65 6C AF E3 65 15 [12:11:11]GetLastDocTimeStamp 1709467554 [12:11:11]current date 1709467874 [12:11:11]FM_GetShiftState [12:11:11]SAM_PROTO_GetShiftState [12:11:11]wFMCommunicate request_size=4 [12:11:11]MH_SAM_APDU [12:11:11]CAPDU: 80 13 01 00 [12:11:11]Write to MH i2c: E2 08 00 05 23 80 13 01 00 00 00 00 00 A5 [12:11:11]Write i2c OK [12:11:11]MH_I2C_Read... [12:11:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:11]Read from MH i2c: E2 [12:11:11]MH_I2C_Read... [12:11:11]Read from MH i2c: E2 0E 00 [12:11:11]MH_I2C_Read... [12:11:11]Read from MH i2c: E2 0E 00 05 23 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 67 [12:11:11]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [12:11:11]wFMCommunicate OK [12:11:11]SAM_PROTO_GetShiftState done [12:11:11]FM_GetShiftState done [12:11:11]opened in 1709425579 [12:11:11]opened+sec_in_day 1709511979 [12:11:11]quantity*price = 30021 [12:11:11]sum+1 = 30023 [12:11:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.88 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 86 03.03.2024 12:11 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123229 ФПД: 219545910751466 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T121114&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123229&fm=219545910751466&tin=02508201610067®Number=0000000000090573&sum=30000 [12:11:12]StoreToDocumentArchive [12:11:12]shift 323 fd 123229 [12:11:12]save to /storage/0323/doc_00123229 [12:11:12]save last doc name /storage/0323/doc_00123229 to /storage/kkm_last_doc_name [12:11:12]save OK [12:11:12]Clear old archive folders... [12:11:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:11:12]tlvbuf is 00E82E80 [12:11:12]SAM_PROTO_ClearQueue [12:11:12]wFMCommunicate request_size=4 [12:11:12]MH_SAM_APDU [12:11:12]CAPDU: 80 09 00 00 [12:11:12]Write to MH i2c: E2 08 00 12 23 80 09 00 00 00 00 00 00 A7 [12:11:12]Write i2c OK [12:11:12]MH_I2C_Read... [12:11:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:11:12]Read from MH i2c: E2 [12:11:12]MH_I2C_Read... [12:11:12]Read from MH i2c: E2 03 00 [12:11:12]MH_I2C_Read... [12:11:12]Read from MH i2c: E2 03 00 12 23 00 90 00 A9 [12:11:12]RAPDU: 90 00 [12:11:12]wFMCommunicate OK [12:11:12]SAM_PROTO_ClearQueue done [12:11:12]KKMCreateOFDPacket [12:11:12]OFDProtocolAddRootSTLVToBuf [12:11:12]FM_MakeSignedData [12:11:12]FM_MakeSignedData [12:11:12]SAM_PROTO_SignData [12:11:12]wFMCommunicate request_size=4 [12:11:12]MH_SAM_APDU [12:11:12]CAPDU: 80 0D 01 02 [12:11:12]Write to MH i2c: E2 08 00 13 23 80 0D 01 02 00 00 00 00 AF [12:11:12]Write i2c OK [12:11:12]MH_I2C_Read... [12:11:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:11:12]Read from MH i2c: E2 [12:11:12]MH_I2C_Read... [12:11:12]Read from MH i2c: E2 03 00 [12:11:12]MH_I2C_Read... [12:11:12]Read from MH i2c: E2 03 00 13 23 00 90 00 AA [12:11:12]RAPDU: 90 00 [12:11:12]wFMCommunicate OK [12:11:12]wFMCommunicate request_size=255 [12:11:12]MH_SAM_APDU [12:11:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 12 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 46 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 74 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 56 00 00 00 F4 03 04 00 E2 68 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 5D E1 01 00 35 04 06 00 C7 [12:11:12]Write to MH i2c: E2 02 01 14 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 12 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 46 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 74 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 56 00 00 00 F4 03 04 00 E2 68 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 5D E1 01 00 35 04 06 00 C7 00 00 D0 [12:11:12]Write i2c OK [12:11:12]MH_I2C_Read... [12:11:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:12]Read from MH i2c: E2 [12:11:12]MH_I2C_Read... [12:11:12]Read from MH i2c: E2 03 00 [12:11:12]MH_I2C_Read... [12:11:12]Read from MH i2c: E2 03 00 14 23 00 90 00 AB [12:11:12]RAPDU: 90 00 [12:11:12]wFMCommunicate OK [12:11:12]wFMCommunicate request_size=10 [12:11:12]MH_SAM_APDU [12:11:12]CAPDU: 80 0D 02 02 05 AD 04 05 B0 EA [12:11:12]Write to MH i2c: E2 0D 00 15 23 80 0D 02 02 05 00 AD 04 05 B0 EA 00 00 0C [12:11:12]Write i2c OK [12:11:12]MH_I2C_Read... [12:11:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:13]Read from MH i2c: E2 [12:11:13]MH_I2C_Read... [12:11:13]Read from MH i2c: E2 03 00 [12:11:13]MH_I2C_Read... [12:11:13]Read from MH i2c: E2 03 00 15 23 00 90 00 AC [12:11:13]RAPDU: 90 00 [12:11:13]wFMCommunicate OK [12:11:13]wFMCommunicate request_size=4 [12:11:13]MH_SAM_APDU [12:11:13]CAPDU: 80 0D 03 02 [12:11:13]Write to MH i2c: E2 08 00 16 23 80 0D 03 02 00 00 00 00 B4 [12:11:13]Write i2c OK [12:11:13]MH_I2C_Read... [12:11:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:11:13]Read from MH i2c: E2 [12:11:13]MH_I2C_Read... [12:11:13]Read from MH i2c: E2 0B 00 [12:11:13]MH_I2C_Read... [12:11:13]Read from MH i2c: E2 0B 00 16 23 00 92 7E 0E 3A DA 5B CC B4 90 00 C2 [12:11:13]RAPDU: 92 7E 0E 3A DA 5B CC B4 90 00 [12:11:13]wFMCommunicate OK [12:11:13]SAM_PROTO_SignData done [12:11:13]FM_MakeSignedData done [12:11:13]CreateOFDProtocolMessage [12:11:13]wFMCommunicate request_size=4 [12:11:13]MH_SAM_APDU [12:11:13]CAPDU: 80 11 00 00 [12:11:13]Write to MH i2c: E2 08 00 17 23 80 11 00 00 00 00 00 00 B4 [12:11:13]Write i2c OK [12:11:13]MH_I2C_Read... [12:11:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:13]Read from MH i2c: E2 [12:11:13]MH_I2C_Read... [12:11:13]Read from MH i2c: E2 17 00 [12:11:13]MH_I2C_Read... [12:11:13]Read from MH i2c: E2 17 00 17 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 12 [12:11:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [12:11:13]wFMCommunicate OK [12:11:13]CreateOFDProtocolMessage done [12:11:13]OFDSenderStorePacket 123229 [12:11:13]StoreOFDPacket docnum=123229 [12:11:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 FD 1E 07 01 64 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 12 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 46 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 74 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 56 00 00 00 F4 03 04 00 E2 68 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 5D E1 01 00 35 04 06 00 C7 AD 04 05 B0 EA 92 7E 0E 3A DA 5B CC B4 [12:11:13]CheckFolder [12:11:13]dirname=/storage/ofd_packets [12:11:13]CheckFolder done [12:11:13]ProducePacketName [12:11:13]name=ofd_packets/00123229 [12:11:13]NVStorageSaveData ofd_packets/00123229 [12:11:13]File name is /storage/ofd_packets/00123229 [12:11:13]Write 301 bytes [12:11:13]NVStorageSaveData done [12:11:13]OFDSenderStorePacket done [12:11:13]KKMCreateOFDPacket done [12:11:13]NVStorageSaveData kkm_last_timestamp [12:11:13]File name is /storage/kkm_last_timestamp [12:11:13]Write 4 bytes [12:11:13]NVStorageSaveData done [12:11:13]ExternCall_PrintAddStr [12:11:13]wPrintStart [12:11:13]Write to MH i2c: 01 00 00 18 23 3B [12:11:13]Write i2c OK [12:11:13]MH_I2C_Read... [12:11:13]Read from MH i2c: 01 [12:11:13]MH_I2C_Read... [12:11:13]Read from MH i2c: 01 07 00 [12:11:13]MH_I2C_Read... [12:11:13]Read from MH i2c: 01 07 00 18 23 00 00 00 00 00 FF 0F 50 [12:11:13]RasterBufferAndPrint [12:11:13]line Счет N : (1)1106155 [12:11:13]line ИНН: 02508201610067 [12:11:13]line Контрольно-Кассовый Чек [12:11:13]line ПРОДАЖА [12:11:13]line ТРК (МРК, ГНК) : 52 [12:11:13]line Товар: 2710124130 [12:11:13]line Аи-92-К-5 [12:11:13]line 4.850 * 61.90 [12:11:13]line = 300.22 [12:11:13]line НДС 12% НСП 1% [12:11:13]line > о реализуемом товаре [12:11:13]line ОКРУГЛЕНИЕ: -0.22 [12:11:13]line ИТОГО: 300.00 [12:11:13]line Внесено: 300.00 [12:11:13]line СДАЧА: 0.00 [12:11:13]line НСП 1% : 2.66 [12:11:13]line НДС 12% : 31.88 [12:11:13]line Наличными: 300.00 [12:11:13]line Безнал.: 0.00 [12:11:13]line Место: АЗС № 25 "Партнер Нефть" [12:11:13]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [12:11:13]line СНО: Общий режим [12:11:13]line Чек 86 03.03.2024 12:11 [12:11:13]line Смена: 323 ФФД: 1.0 [12:11:13]line ЗНМ: 0300000019 [12:11:13]line РНМ: 0000000000090573 [12:11:13]line Версия ККМ: 001 [12:11:13]line ФМ: 0000000000874798 [12:11:13]line ФД: 123229 [12:11:13]line ФПД: 219545910751466 [12:11:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T121114&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123229&fm=219545910751466&tin=02508201610067®Number=0000000000090573&sum=30000 [12:11:13]OFD Sender: Processing packet 123229 [packets to send 112, broken 111] [12:11:13]ProducePacketName [12:11:13]name=ofd_packets/00123229 [12:11:13]OFD Sender: To server: pG, [12:11:13]CommunicateWithHost lk.salyk.kg:30040 [12:11:13]ConnectInit lk.salyk.kg [12:11:13]written 0, free lines is 4095 [12:11:13]Connected sock=10 [12: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 37 39 38 0F 01 00 00 FD 1E 07 01 64 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 12 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 46 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 74 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 56 00 00 00 F4 03 04 00 E2 68 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 5D E1 01 00 35 04 06 00 C7 AD 04 05 B0 EA 92 7E 0E 3A DA 5B CC B4 [12: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 37 39 38 4F 00 00 00 B6 33 47 00 79 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 37 39 38 10 04 04 00 5D E1 01 00 F4 03 04 00 0E 15 E4 65 B6 04 01 00 00 2A 0D 42 6A 95 F4 A1 95 [12:11:13]CommunicateWithHost err = 0 [12:11:13]CheckOFDResponse [12:11:13]1017 (14) - 77093643461234 [12:11:13]1041 (16) - 0000000000874798 [12:11:13]1040 (4) - 123229 [12:11:13]1012 (4) - 03.03.2024 06:13 [12:11:13]1206 (1) - 0 [12:11:13]OFD Sender: Remove packet 123229 [12:11:13]ProducePacketName [12:11:13]name=ofd_packets/00123229 [12:11:13]NVStorageDeleteData [12:11:13]Write to MH i2c: 01 00 00 43 23 66 [12:11:13]Write i2c OK [12:11:13]MH_I2C_Read... [12:11:13]Read from MH i2c: 01 [12:11:13]MH_I2C_Read... [12:11:13]Read from MH i2c: 01 07 00 [12:11:13]MH_I2C_Read... [12:11:13]Read from MH i2c: 01 07 00 43 23 00 00 00 00 00 E3 0C 5C [12:11:13]RasterBufferAndPrint [12:11:13]line [12:11:13]line [12:11:13]line [12:11:13]line [12:11:13]line [12:11:13]written 0, free lines is 3305 [12:11:13]MH_Cut [12:11:13]Write to MH i2c: D1 01 00 4A 23 01 3F [12:11:13]Write i2c OK [12:11:13]MH_I2C_Read... [12:11:13]Read from MH i2c: D1 [12:11:13]MH_I2C_Read... [12:11:13]Read from MH i2c: D1 01 00 [12:11:13]MH_I2C_Read... [12:11:13]Read from MH i2c: D1 01 00 4A 23 00 3E [12:11:13]Write to MH i2c: 01 00 00 4B 23 6E [12:11:13]Write i2c OK [12:11:13]MH_I2C_Read... [12:11:14]OFD Sender: No OFD packet to send [12:11:14]*** Cut start [12:11:14]*** Purtial cut [12:11:14]*** Stage 1: CUTSNS_PIN = 1 [12:11:16]Read from MH i2c: 01 [12:11:16]MH_I2C_Read... [12:11:16]*** Stop cut motor [12:11:16]*** Cut end [12:11:16]Read from MH i2c: 01 07 00 [12:11:16]MH_I2C_Read... [12:11:16]Read from MH i2c: 01 07 00 4B 23 00 00 00 00 00 FF 0F 83 [12:11:16]process_action close_receipt done [12:11:16]requested_data is exist [12:11:16]produce_requested_data [12:11:16]requested_item fm.sn is exist - process it [12:11:16]wFMCommunicate request_size=4 [12:11:16]MH_SAM_APDU [12:11:16]CAPDU: 80 11 00 00 [12:11:16]Write to MH i2c: E2 08 00 4C 23 80 11 00 00 00 00 00 00 E9 [12:11:16]Write i2c OK [12:11:16]MH_I2C_Read... [12:11:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:16]Read from MH i2c: E2 [12:11:16]MH_I2C_Read... [12:11:16]Read from MH i2c: E2 17 00 [12:11:16]MH_I2C_Read... [12:11:16]Read from MH i2c: E2 17 00 4C 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 47 [12:11:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [12:11:16]wFMCommunicate OK [12:11:16]requested_item fd.num is exist - process it [12:11:16]SAM_PROTO_GetFieldsCounters [12:11:16]wFMCommunicate request_size=4 [12:11:16]MH_SAM_APDU [12:11:16]CAPDU: 80 13 00 00 [12:11:16]Write to MH i2c: E2 08 00 4D 23 80 13 00 00 00 00 00 00 EC [12:11:16]Write i2c OK [12:11:16]MH_I2C_Read... [12:11:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:11:16]Read from MH i2c: E2 [12:11:16]MH_I2C_Read... [12:11:16]Read from MH i2c: E2 62 00 [12:11:16]MH_I2C_Read... [12:11:16]Read from MH i2c: E2 62 00 4D 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 5D E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 9C [12:11: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 5D E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:11:16]wFMCommunicate OK [12:11:16]SAM_PROTO_GetFieldsCounters done [12:11:16]requested_item shift.num is exist - process it [12:11:16]requested_item shift.opened is exist - process it [12:11:16]req_shift_opened [12:11:16]FM_GetShiftState [12:11:16]SAM_PROTO_GetShiftState [12:11:16]wFMCommunicate request_size=4 [12:11:16]MH_SAM_APDU [12:11:16]CAPDU: 80 13 01 00 [12:11:16]Write to MH i2c: E2 08 00 4E 23 80 13 01 00 00 00 00 00 EE [12:11:16]Write i2c OK [12:11:16]MH_I2C_Read... [12:11:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:16]Read from MH i2c: E2 [12:11:16]MH_I2C_Read... [12:11:16]Read from MH i2c: E2 0E 00 [12:11:16]MH_I2C_Read... [12:11:16]Read from MH i2c: E2 0E 00 4E 23 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 B0 [12:11:16]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [12:11:16]wFMCommunicate OK [12:11:16]SAM_PROTO_GetShiftState done [12:11:16]FM_GetShiftState done [12:11:16]req_shift_opened done [12:11:16]requested_item shift.open_date is exist - process it [12:11:16]req_shift_open_date [12:11:16]req_shift_open_date done [12:11:16]produce_requested_data done [12:11:16]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123229,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [12:11:16]process_action_free close_receipt [12:11:16]json_value_free [12:11:16]json_value_free done [12:11:16]process_json_proto returns [12:11:16]Send response to host [12:11:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123229,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [12:11:16]free response buf [12:11:16]execute_script done [12:11:16]execute_script returns [12:11:16]free content buf [12:11:16]Sock 7.Close socket [12:11:16]Sock 7.Thread stoped [12:11:19]OFD Sender: No OFD packet to send [12:11:24]OFD Sender: No OFD packet to send [12:11:29]OFD Sender: No OFD packet to send [12:11:34]OFD Sender: No OFD packet to send [12:11:39]OFD Sender: No OFD packet to send [12:11:44]OFD Sender: No OFD packet to send [12:11:49]OFD Sender: No OFD packet to send [12:11:54]OFD Sender: No OFD packet to send [12:11:59]OFD Sender: No OFD packet to send [12:12:04]OFD Sender: No OFD packet to send [12:12:09]OFD Sender: No OFD packet to send [12:12:14]OFD Sender: No OFD packet to send [12:12:19]OFD Sender: No OFD packet to send [12:12:24]OFD Sender: No OFD packet to send [12:12:29]OFD Sender: No OFD packet to send [12:12:34]OFD Sender: No OFD packet to send [12:12:39]OFD Sender: No OFD packet to send [12:12:44]OFD Sender: No OFD packet to send [12:12:49]OFD Sender: No OFD packet to send [12:12:54]OFD Sender: No OFD packet to send [12:12:59]OFD Sender: No OFD packet to send [12:13:04]OFD Sender: No OFD packet to send [12:13:09]OFD Sender: No OFD packet to send [12:13:14]OFD Sender: No OFD packet to send [12:13:19]OFD Sender: No OFD packet to send [12:13:24]OFD Sender: No OFD packet to send [12:13:29]OFD Sender: No OFD packet to send [12:13:34]OFD Sender: No OFD packet to send [12:13:34]accept exits with 9 [12:13:34]New connection [12:13:34]New thread 3067252068 created [12:13:34]Thread 3067395428 joined [12:13:34]Waiting for new connection... [12:13:34] Sock 9.Parse request [12:13:34]Sock 9.Check first char [12:13:34]Sock 9.First char is OK [12:13:34]request: POST /json_proto HTTP/1.0 [12:13:34]Method: POST [12:13:34]URL: /json_proto [12:13:34]Method is POST - this is cgi request [12:13:34]url: /json_proto [12:13:34]query_string will be loaded in cgi processing [12:13:34]execute_cgi json_proto POST (null) [12:13:34]execute_cgi path=json_proto method=POST [12:13:34]POST find Content-Length [12:13:34]Host: 172.17.48.197:8080 [12:13:34]Content-Length: 806 [12:13:34]Content-Type: application/json [12:13:34] [12:13:34]POST finish read [12:13:34]Found Content-Length = 806 [12:13:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106156", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 9.700, "sum" : 600.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:13:34]execute_script... [12:13:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106156", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 9.700, "sum" : 600.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:13:34]POST & json_proto [12:13:34]process_json_proto [12:13:34]json parsed OK: [12:13:34]protocol is kg_v1.0 [12:13:34]action value=close_receipt [12:13:34]process_action close_receipt [12:13:34]cmd_close_receipt [12:13:34]MH_GetDate [12:13:34]Write to MH i2c: F0 00 00 4F 23 61 [12:13:34]Write i2c OK [12:13:34]MH_I2C_Read... [12:13:34]Read from MH i2c: F0 [12:13:34]MH_I2C_Read... [12:13:34]Read from MH i2c: F0 09 00 [12:13:34]MH_I2C_Read... [12:13:34]Read from MH i2c: F0 09 00 4F 23 00 71 69 E4 65 6C AF E3 65 F0 [12:13:34]GetLastDocTimeStamp 1709467874 [12:13:34]current date 1709468017 [12:13:34]FM_GetShiftState [12:13:34]SAM_PROTO_GetShiftState [12:13:34]wFMCommunicate request_size=4 [12:13:34]MH_SAM_APDU [12:13:34]CAPDU: 80 13 01 00 [12:13:34]Write to MH i2c: E2 08 00 50 23 80 13 01 00 00 00 00 00 F0 [12:13:34]Write i2c OK [12:13:34]MH_I2C_Read... [12:13:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:13:34]Read from MH i2c: E2 [12:13:34]MH_I2C_Read... [12:13:34]Read from MH i2c: E2 0E 00 [12:13:34]MH_I2C_Read... [12:13:34]Read from MH i2c: E2 0E 00 50 23 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 B2 [12:13:34]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [12:13:34]wFMCommunicate OK [12:13:34]SAM_PROTO_GetShiftState done [12:13:34]FM_GetShiftState done [12:13:34]opened in 1709425579 [12:13:34]opened+sec_in_day 1709511979 [12:13:34]quantity*price = 60043 [12:13:34]sum+1 = 60044 [12:13:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.43 НСП 1% : 5.31 НДС 12% : 63.76 Наличными: 0.00 Безнал.: 600.43 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 87 03.03.2024 12:13 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874798 ФД: 123230 ФПД: 222676172380396 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T121337&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123230&fm=222676172380396&tin=02508201610067®Number=0000000000090573&sum=60043 [12:13:36]StoreToDocumentArchive [12:13:36]shift 323 fd 123230 [12:13:36]save to /storage/0323/doc_00123230 [12:13:36]save last doc name /storage/0323/doc_00123230 to /storage/kkm_last_doc_name [12:13:36]save OK [12:13:36]Clear old archive folders... [12:13:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:13:36]tlvbuf is B6FC4840 [12:13:36]SAM_PROTO_ClearQueue [12:13:36]wFMCommunicate request_size=4 [12:13:36]MH_SAM_APDU [12:13:36]CAPDU: 80 09 00 00 [12:13:36]Write to MH i2c: E2 08 00 5D 23 80 09 00 00 00 00 00 00 F2 [12:13:36]Write i2c OK [12:13:36]MH_I2C_Read... [12:13:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:13:36]Read from MH i2c: E2 [12:13:36]MH_I2C_Read... [12:13:36]Read from MH i2c: E2 03 00 [12:13:36]MH_I2C_Read... [12:13:36]Read from MH i2c: E2 03 00 5D 23 00 90 00 F4 [12:13:36]RAPDU: 90 00 [12:13:36]wFMCommunicate OK [12:13:36]SAM_PROTO_ClearQueue done [12:13:36]KKMCreateOFDPacket [12:13:36]OFDProtocolAddRootSTLVToBuf [12:13:36]FM_MakeSignedData [12:13:36]FM_MakeSignedData [12:13:36]SAM_PROTO_SignData [12:13:36]wFMCommunicate request_size=4 [12:13:36]MH_SAM_APDU [12:13:36]CAPDU: 80 0D 01 02 [12:13:36]Write to MH i2c: E2 08 00 5E 23 80 0D 01 02 00 00 00 00 FA [12:13:36]Write i2c OK [12:13:36]MH_I2C_Read... [12:13:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:13:36]Read from MH i2c: E2 [12:13:36]MH_I2C_Read... [12:13:36]Read from MH i2c: E2 03 00 [12:13:36]MH_I2C_Read... [12:13:36]Read from MH i2c: E2 03 00 5E 23 00 90 00 F5 [12:13:36]RAPDU: 90 00 [12:13:36]wFMCommunicate OK [12:13:36]wFMCommunicate request_size=255 [12:13:36]MH_SAM_APDU [12:13:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 25 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 8B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8B 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 E8 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8B EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 71 69 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 5E E1 01 00 35 04 06 00 CA [12:13:36]Write to MH i2c: E2 02 01 5F 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 25 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 8B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8B 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 E8 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8B EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 71 69 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 5E E1 01 00 35 04 06 00 CA 00 00 99 [12:13:36]Write i2c OK [12:13:36]MH_I2C_Read... [12:13:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:13:36]Read from MH i2c: E2 [12:13:36]MH_I2C_Read... [12:13:36]Read from MH i2c: E2 03 00 [12:13:36]MH_I2C_Read... [12:13:36]Read from MH i2c: E2 03 00 5F 23 00 90 00 F6 [12:13:36]RAPDU: 90 00 [12:13:36]wFMCommunicate OK [12:13:36]wFMCommunicate request_size=10 [12:13:36]MH_SAM_APDU [12:13:36]CAPDU: 80 0D 02 02 05 85 D6 27 98 EC [12:13:36]Write to MH i2c: E2 0D 00 60 23 80 0D 02 02 05 00 85 D6 27 98 EC 00 00 0D [12:13:36]Write i2c OK [12:13:36]MH_I2C_Read... [12:13:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:13:36]Read from MH i2c: E2 [12:13:36]MH_I2C_Read... [12:13:36]Read from MH i2c: E2 03 00 [12:13:36]MH_I2C_Read... [12:13:36]Read from MH i2c: E2 03 00 60 23 00 90 00 F7 [12:13:36]RAPDU: 90 00 [12:13:36]wFMCommunicate OK [12:13:36]wFMCommunicate request_size=4 [12:13:36]MH_SAM_APDU [12:13:36]CAPDU: 80 0D 03 02 [12:13:36]Write to MH i2c: E2 08 00 61 23 80 0D 03 02 00 00 00 00 FF [12:13:36]Write i2c OK [12:13:36]MH_I2C_Read... [12:13:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:13:36]Read from MH i2c: E2 [12:13:36]MH_I2C_Read... [12:13:36]Read from MH i2c: E2 0B 00 [12:13:36]MH_I2C_Read... [12:13:36]Read from MH i2c: E2 0B 00 61 23 00 A0 78 E5 AF 04 C7 3E 45 90 00 FA [12:13:36]RAPDU: A0 78 E5 AF 04 C7 3E 45 90 00 [12:13:36]wFMCommunicate OK [12:13:36]SAM_PROTO_SignData done [12:13:36]FM_MakeSignedData done [12:13:36]CreateOFDProtocolMessage [12:13:36]wFMCommunicate request_size=4 [12:13:36]MH_SAM_APDU [12:13:36]CAPDU: 80 11 00 00 [12:13:36]Write to MH i2c: E2 08 00 62 23 80 11 00 00 00 00 00 00 FF [12:13:36]Write i2c OK [12:13:36]MH_I2C_Read... [12:13:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:13:36]Read from MH i2c: E2 [12:13:36]MH_I2C_Read... [12:13:36]Read from MH i2c: E2 17 00 [12:13:36]MH_I2C_Read... [12:13:36]Read from MH i2c: E2 17 00 62 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 5D [12:13:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [12:13:36]wFMCommunicate OK [12:13:36]CreateOFDProtocolMessage done [12:13:36]OFDSenderStorePacket 123230 [12:13:36]StoreOFDPacket docnum=123230 [12:13:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 7B 46 07 01 D8 B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 25 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 8B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8B 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 E8 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8B EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 71 69 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 5E E1 01 00 35 04 06 00 CA 85 D6 27 98 EC A0 78 E5 AF 04 C7 3E 45 [12:13:36]CheckFolder [12:13:36]dirname=/storage/ofd_packets [12:13:36]CheckFolder done [12:13:36]ProducePacketName [12:13:36]name=ofd_packets/00123230 [12:13:36]NVStorageSaveData ofd_packets/00123230 [12:13:36]File name is /storage/ofd_packets/00123230 [12:13:36]Write 301 bytes [12:13:36]NVStorageSaveData done [12:13:36]OFDSenderStorePacket done [12:13:36]KKMCreateOFDPacket done [12:13:36]NVStorageSaveData kkm_last_timestamp [12:13:36]File name is /storage/kkm_last_timestamp [12:13:36]Write 4 bytes [12:13:36]NVStorageSaveData done [12:13:36]ExternCall_PrintAddStr [12:13:36]wPrintStart [12:13:36]Write to MH i2c: 01 00 00 63 23 86 [12:13:36]Write i2c OK [12:13:36]MH_I2C_Read... [12:13:36]Read from MH i2c: 01 [12:13:36]MH_I2C_Read... [12:13:36]Read from MH i2c: 01 07 00 [12:13:36]MH_I2C_Read... [12:13:36]Read from MH i2c: 01 07 00 63 23 00 00 00 00 00 FF 0F 9B [12:13:36]RasterBufferAndPrint [12:13:36]line Счет N : (1)1106156 [12:13:36]line ИНН: 02508201610067 [12:13:36]line Контрольно-Кассовый Чек [12:13:36]line ПРОДАЖА [12:13:36]line ТРК (МРК, ГНК) : 62 [12:13:36]line Товар: 2710124130 [12:13:36]line Аи-92-К-5 [12:13:36]line 9.700 * 61.90 [12:13:36]line = 600.43 [12:13:36]line НДС 12% НСП 1% [12:13:36]line > о реализуемом товаре [12:13:36]line ИТОГО: 600.43 [12:13:36]line НСП 1% : 5.31 [12:13:36]line НДС 12% : 63.76 [12:13:36]line Наличными: 0.00 [12:13:36]line Безнал.: 600.43 [12:13:36]line Место: АЗС № 25 "Партнер Нефть" [12:13:36]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [12:13:36]line СНО: Общий режим [12:13:36]line Чек 87 03.03.2024 12:13 [12:13:36]line Смена: 323 ФФД: 1.0 [12:13:36]line ЗНМ: 0300000019 [12:13:36]line РНМ: 0000000000090573 [12:13:36]line Версия ККМ: 001 [12:13:36]line Платежная система: О! деньги [12:13:36]line ФМ: 0000000000874798 [12:13:36]line ФД: 123230 [12:13:36]line ФПД: 222676172380396 [12:13:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T121337&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123230&fm=222676172380396&tin=02508201610067®Number=0000000000090573&sum=60043 [12:13:36]OFD Sender: Processing packet 123230 [packets to send 112, broken 111] [12:13:36]ProducePacketName [12:13:36]name=ofd_packets/00123230 [12:13:36]OFD Sender: To server: pG, [12:13:36]CommunicateWithHost lk.salyk.kg:30040 [12:13:36]ConnectInit lk.salyk.kg [12:13:36]written 0, free lines is 4095 [12:13:36]Connected sock=10 [12:13: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 37 39 38 0F 01 00 00 7B 46 07 01 D8 B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 25 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 8B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8B 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 E8 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8B EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 71 69 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 5E E1 01 00 35 04 06 00 CA 85 D6 27 98 EC A0 78 E5 AF 04 C7 3E 45 [12:13:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 2C 5F 47 00 9E 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 37 39 38 10 04 04 00 5E E1 01 00 F4 03 04 00 9D 15 E4 65 B6 04 01 00 00 E1 CC D6 60 D5 D3 EC 12 [12:13:37]CommunicateWithHost err = 0 [12:13:37]CheckOFDResponse [12:13:37]1017 (14) - 77093643461234 [12:13:37]1041 (16) - 0000000000874798 [12:13:37]1040 (4) - 123230 [12:13:37]1012 (4) - 03.03.2024 06:15 [12:13:37]1206 (1) - 0 [12:13:37]OFD Sender: Remove packet 123230 [12:13:37]ProducePacketName [12:13:37]name=ofd_packets/00123230 [12:13:37]NVStorageDeleteData [12:13:37]Write to MH i2c: 01 00 00 8D 23 B0 [12:13:37]Write i2c OK [12:13:37]MH_I2C_Read... [12:13:37]Read from MH i2c: 01 [12:13:37]MH_I2C_Read... [12:13:37]Read from MH i2c: 01 07 00 [12:13:37]MH_I2C_Read... [12:13:37]Read from MH i2c: 01 07 00 8D 23 00 00 00 00 00 F4 0C B7 [12:13:37]RasterBufferAndPrint [12:13:37]line [12:13:37]line [12:13:37]line [12:13:37]line [12:13:37]line [12:13:37]written 0, free lines is 3322 [12:13:37]MH_Cut [12:13:37]Write to MH i2c: D1 01 00 94 23 01 89 [12:13:37]Write i2c OK [12:13:37]MH_I2C_Read... [12:13:37]Read from MH i2c: D1 [12:13:37]MH_I2C_Read... [12:13:37]Read from MH i2c: D1 01 00 [12:13:37]MH_I2C_Read... [12:13:37]Read from MH i2c: D1 01 00 94 23 00 88 [12:13:37]Write to MH i2c: 01 00 00 95 23 B8 [12:13:37]Write i2c OK [12:13:37]MH_I2C_Read... [12:13:37]OFD Sender: No OFD packet to send [12:13:38]*** Cut start [12:13:38]*** Purtial cut [12:13:38]*** Stage 1: CUTSNS_PIN = 1 [12:13:40]Read from MH i2c: 01 [12:13:40]MH_I2C_Read... [12:13:40]*** Stop cut motor [12:13:40]Read from MH i2c: 01 07 00 [12:13:40]MH_I2C_Read... [12:13:40]*** Cut end [12:13:40]Read from MH i2c: 01 07 00 95 23 00 00 00 00 00 FF 0F CD [12:13:40]process_action close_receipt done [12:13:40]requested_data is exist [12:13:40]produce_requested_data [12:13:40]requested_item fm.sn is exist - process it [12:13:40]wFMCommunicate request_size=4 [12:13:40]MH_SAM_APDU [12:13:40]CAPDU: 80 11 00 00 [12:13:40]Write to MH i2c: E2 08 00 96 23 80 11 00 00 00 00 00 00 33 [12:13:40]Write i2c OK [12:13:40]MH_I2C_Read... [12:13:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:13:40]Read from MH i2c: E2 [12:13:40]MH_I2C_Read... [12:13:40]Read from MH i2c: E2 17 00 [12:13:40]MH_I2C_Read... [12:13:40]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 37 39 38 90 00 91 [12:13:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [12:13:40]wFMCommunicate OK [12:13:40]requested_item fd.num is exist - process it [12:13:40]SAM_PROTO_GetFieldsCounters [12:13:40]wFMCommunicate request_size=4 [12:13:40]MH_SAM_APDU [12:13:40]CAPDU: 80 13 00 00 [12:13:40]Write to MH i2c: E2 08 00 97 23 80 13 00 00 00 00 00 00 36 [12:13:40]Write i2c OK [12:13:40]MH_I2C_Read... [12:13:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:13:40]Read from MH i2c: E2 [12:13:40]MH_I2C_Read... [12:13:40]Read from MH i2c: E2 62 00 [12:13:40]MH_I2C_Read... [12:13:40]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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 5E E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 EA [12:13: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 5E E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:13:40]wFMCommunicate OK [12:13:40]SAM_PROTO_GetFieldsCounters done [12:13:40]requested_item shift.num is exist - process it [12:13:40]requested_item shift.opened is exist - process it [12:13:40]req_shift_opened [12:13:40]FM_GetShiftState [12:13:40]SAM_PROTO_GetShiftState [12:13:40]wFMCommunicate request_size=4 [12:13:40]MH_SAM_APDU [12:13:40]CAPDU: 80 13 01 00 [12:13:40]Write to MH i2c: E2 08 00 98 23 80 13 01 00 00 00 00 00 38 [12:13:40]Write i2c OK [12:13:40]MH_I2C_Read... [12:13:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:13:40]Read from MH i2c: E2 [12:13:40]MH_I2C_Read... [12:13:40]Read from MH i2c: E2 0E 00 [12:13:40]MH_I2C_Read... [12:13:40]Read from MH i2c: E2 0E 00 98 23 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 FA [12:13:40]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [12:13:40]wFMCommunicate OK [12:13:40]SAM_PROTO_GetShiftState done [12:13:40]FM_GetShiftState done [12:13:40]req_shift_opened done [12:13:40]requested_item shift.open_date is exist - process it [12:13:40]req_shift_open_date [12:13:40]req_shift_open_date done [12:13:40]produce_requested_data done [12:13:40]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123230,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [12:13:40]process_action_free close_receipt [12:13:40]json_value_free [12:13:40]json_value_free done [12:13:40]process_json_proto returns [12:13:40]Send response to host [12:13:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123230,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [12:13:40]free response buf [12:13:40]execute_script done [12:13:40]execute_script returns [12:13:40]free content buf [12:13:40]Sock 9.Close socket [12:13:40]Sock 9.Thread stoped [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]accept exits with 7 [12:14:37]New connection [12:14:37]New thread 3067395428 created [12:14:37]Thread 3067252068 joined [12:14:37]Waiting for new connection... [12:14:37] Sock 7.Parse request [12:14:37]Sock 7.Check first char [12:14:37]Sock 7.First char is OK [12:14:37]request: POST /json_proto HTTP/1.0 [12:14:37]Method: POST [12:14:37]URL: /json_proto [12:14:37]Method is POST - this is cgi request [12:14:37]url: /json_proto [12:14:37]query_string will be loaded in cgi processing [12:14:37]execute_cgi json_proto POST (null) [12:14:37]execute_cgi path=json_proto method=POST [12:14:37]POST find Content-Length [12:14:37]Host: 172.17.48.197:8080 [12:14:37]Content-Length: 817 [12:14:37]Content-Type: application/json [12:14:37] [12:14:37]POST finish read [12:14:37]Found Content-Length = 817 [12:14:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106157", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:14:37]execute_script... [12:14:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106157", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:14:37]POST & json_proto [12:14:37]process_json_proto [12:14:37]json parsed OK: [12:14:37]protocol is kg_v1.0 [12:14:37]action value=close_receipt [12:14:37]process_action close_receipt [12:14:37]cmd_close_receipt [12:14:37]MH_GetDate [12:14:37]Write to MH i2c: F0 00 00 99 23 AB [12:14:37]Write i2c OK [12:14:37]MH_I2C_Read... [12:14:37]Read from MH i2c: F0 [12:14:37]MH_I2C_Read... [12:14:37]Read from MH i2c: F0 09 00 [12:14:37]MH_I2C_Read... [12:14:37]Read from MH i2c: F0 09 00 99 23 00 B0 69 E4 65 6C AF E3 65 79 [12:14:37]GetLastDocTimeStamp 1709468017 [12:14:37]current date 1709468080 [12:14:37]FM_GetShiftState [12:14:37]SAM_PROTO_GetShiftState [12:14:37]wFMCommunicate request_size=4 [12:14:37]MH_SAM_APDU [12:14:37]CAPDU: 80 13 01 00 [12:14:37]Write to MH i2c: E2 08 00 9A 23 80 13 01 00 00 00 00 00 3A [12:14:37]Write i2c OK [12:14:37]MH_I2C_Read... [12:14:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:14:37]Read from MH i2c: E2 [12:14:37]MH_I2C_Read... [12:14:37]Read from MH i2c: E2 0E 00 [12:14:37]MH_I2C_Read... [12:14:37]Read from MH i2c: E2 0E 00 9A 23 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 FC [12:14:37]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [12:14:37]wFMCommunicate OK [12:14:37]SAM_PROTO_GetShiftState done [12:14:37]FM_GetShiftState done [12:14:37]opened in 1709425579 [12:14:37]opened+sec_in_day 1709511979 [12:14:37]quantity*price = 50015 [12:14:37]sum+1 = 50016 [12:14:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.15 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.15 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 88 03.03.2024 12:14 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874798 ФД: 123231 ФПД: 247536530509510 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T121440&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123231&fm=247536530509510&tin=02508201610067®Number=0000000000090573&sum=50015 [12:14:38]StoreToDocumentArchive [12:14:38]shift 323 fd 123231 [12:14:38]save to /storage/0323/doc_00123231 [12:14:38]save last doc name /storage/0323/doc_00123231 to /storage/kkm_last_doc_name [12:14:38]save OK [12:14:38]Clear old archive folders... [12:14:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:14:38]tlvbuf is 00DA9150 [12:14:38]SAM_PROTO_ClearQueue [12:14:38]wFMCommunicate request_size=4 [12:14:38]MH_SAM_APDU [12:14:38]CAPDU: 80 09 00 00 [12:14:38]Write to MH i2c: E2 08 00 A7 23 80 09 00 00 00 00 00 00 3C [12:14:38]Write i2c OK [12:14:38]MH_I2C_Read... [12:14:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:14:38]Read from MH i2c: E2 [12:14:38]MH_I2C_Read... [12:14:38]Read from MH i2c: E2 03 00 [12:14:38]MH_I2C_Read... [12:14:38]Read from MH i2c: E2 03 00 A7 23 00 90 00 3E [12:14:38]RAPDU: 90 00 [12:14:38]wFMCommunicate OK [12:14:38]SAM_PROTO_ClearQueue done [12:14:38]KKMCreateOFDPacket [12:14:38]OFDProtocolAddRootSTLVToBuf [12:14:38]FM_MakeSignedData [12:14:38]FM_MakeSignedData [12:14:38]SAM_PROTO_SignData [12:14:38]wFMCommunicate request_size=4 [12:14:38]MH_SAM_APDU [12:14:38]CAPDU: 80 0D 01 02 [12:14:38]Write to MH i2c: E2 08 00 A8 23 80 0D 01 02 00 00 00 00 44 [12:14:38]Write i2c OK [12:14:38]MH_I2C_Read... [12:14:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:14:38]Read from MH i2c: E2 [12:14:38]MH_I2C_Read... [12:14:38]Read from MH i2c: E2 03 00 [12:14:38]MH_I2C_Read... [12:14:38]Read from MH i2c: E2 03 00 A8 23 00 90 00 3F [12:14:38]RAPDU: 90 00 [12:14:38]wFMCommunicate OK [12:14:38]wFMCommunicate request_size=255 [12:14:38]MH_SAM_APDU [12:14:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 B0 69 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 5F E1 01 00 35 04 06 00 E1 [12:14:38]Write to MH i2c: E2 02 01 A9 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 B0 69 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 5F E1 01 00 35 04 06 00 E1 00 00 62 [12:14:38]Write i2c OK [12:14:38]MH_I2C_Read... [12:14:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:14:39]Read from MH i2c: E2 [12:14:39]MH_I2C_Read... [12:14:39]Read from MH i2c: E2 03 00 [12:14:39]MH_I2C_Read... [12:14:39]Read from MH i2c: E2 03 00 A9 23 00 90 00 40 [12:14:39]RAPDU: 90 00 [12:14:39]wFMCommunicate OK [12:14:39]wFMCommunicate request_size=10 [12:14:39]MH_SAM_APDU [12:14:39]CAPDU: 80 0D 02 02 05 22 16 F8 4E C6 [12:14:39]Write to MH i2c: E2 0D 00 AA 23 80 0D 02 02 05 00 22 16 F8 4E C6 00 00 95 [12:14:39]Write i2c OK [12:14:39]MH_I2C_Read... [12:14:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:14:39]Read from MH i2c: E2 [12:14:39]MH_I2C_Read... [12:14:39]Read from MH i2c: E2 03 00 [12:14:39]MH_I2C_Read... [12:14:39]Read from MH i2c: E2 03 00 AA 23 00 90 00 41 [12:14:39]RAPDU: 90 00 [12:14:39]wFMCommunicate OK [12:14:39]wFMCommunicate request_size=4 [12:14:39]MH_SAM_APDU [12:14:39]CAPDU: 80 0D 03 02 [12:14:39]Write to MH i2c: E2 08 00 AB 23 80 0D 03 02 00 00 00 00 49 [12:14:39]Write i2c OK [12:14:39]MH_I2C_Read... [12:14:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:14:39]Read from MH i2c: E2 [12:14:39]MH_I2C_Read... [12:14:39]Read from MH i2c: E2 0B 00 [12:14:39]MH_I2C_Read... [12:14:39]Read from MH i2c: E2 0B 00 AB 23 00 A8 06 E6 90 8B D7 30 CB 90 00 CB [12:14:39]RAPDU: A8 06 E6 90 8B D7 30 CB 90 00 [12:14:39]wFMCommunicate OK [12:14:39]SAM_PROTO_SignData done [12:14:39]FM_MakeSignedData done [12:14:39]CreateOFDProtocolMessage [12:14:39]wFMCommunicate request_size=4 [12:14:39]MH_SAM_APDU [12:14:39]CAPDU: 80 11 00 00 [12:14:39]Write to MH i2c: E2 08 00 AC 23 80 11 00 00 00 00 00 00 49 [12:14:39]Write i2c OK [12:14:39]MH_I2C_Read... [12:14:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:14:39]Read from MH i2c: E2 [12:14:39]MH_I2C_Read... [12:14:39]Read from MH i2c: E2 17 00 [12:14:39]MH_I2C_Read... [12:14:39]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 37 39 38 90 00 A7 [12:14:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [12:14:39]wFMCommunicate OK [12:14:39]CreateOFDProtocolMessage done [12:14:39]OFDSenderStorePacket 123231 [12:14:39]StoreOFDPacket docnum=123231 [12:14:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 8E 1F 07 01 04 3C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 B0 69 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 5F E1 01 00 35 04 06 00 E1 22 16 F8 4E C6 A8 06 E6 90 8B D7 30 CB [12:14:39]CheckFolder [12:14:39]dirname=/storage/ofd_packets [12:14:39]CheckFolder done [12:14:39]ProducePacketName [12:14:39]name=ofd_packets/00123231 [12:14:39]NVStorageSaveData ofd_packets/00123231 [12:14:39]File name is /storage/ofd_packets/00123231 [12:14:39]Write 301 bytes [12:14:39]NVStorageSaveData done [12:14:39]OFDSenderStorePacket done [12:14:39]KKMCreateOFDPacket done [12:14:39]NVStorageSaveData kkm_last_timestamp [12:14:39]File name is /storage/kkm_last_timestamp [12:14:39]Write 4 bytes [12:14:39]NVStorageSaveData done [12:14:39]ExternCall_PrintAddStr [12:14:39]wPrintStart [12:14:39]Write to MH i2c: 01 00 00 AD 23 D0 [12:14:39]Write i2c OK [12:14:39]MH_I2C_Read... [12:14:39]Read from MH i2c: 01 [12:14:39]MH_I2C_Read... [12:14:39]Read from MH i2c: 01 07 00 [12:14:39]MH_I2C_Read... [12:14:39]Read from MH i2c: 01 07 00 AD 23 00 00 00 00 00 FF 0F E5 [12:14:39]RasterBufferAndPrint [12:14:39]line Счет N : (1)1106157 [12:14:39]line ИНН: 02508201610067 [12:14:39]line Контрольно-Кассовый Чек [12:14:39]line ПРОДАЖА [12:14:39]line ТРК (МРК, ГНК) : 21 [12:14:39]line Товар: 2710124130 [12:14:39]line Аи-92-К-5 [12:14:39]line 8.080 * 61.90 [12:14:39]line = 500.15 [12:14:39]line НДС 12% НСП 1% [12:14:39]line > о реализуемом товаре [12:14:39]line ИТОГО: 500.15 [12:14:39]line НСП 1% : 4.43 [12:14:39]line НДС 12% : 53.11 [12:14:39]line Наличными: 0.00 [12:14:39]line Безнал.: 500.15 [12:14:39]line Место: АЗС № 25 "Партнер Нефть" [12:14:39]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [12:14:39]line СНО: Общий режим [12:14:39]line Чек 88 03.03.2024 12:14 [12:14:39]line Смена: 323 ФФД: 1.0 [12:14:39]line ЗНМ: 0300000019 [12:14:39]line РНМ: 0000000000090573 [12:14:39]line Версия ККМ: 001 [12:14:39]line Платежная система: Бакай Банк [12:14:39]line ФМ: 0000000000874798 [12:14:39]line ФД: 123231 [12:14:39]line ФПД: 247536530509510 [12:14:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T121440&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123231&fm=247536530509510&tin=02508201610067®Number=0000000000090573&sum=50015 [12:14:39]OFD Sender: Processing packet 123231 [packets to send 112, broken 111] [12:14:39]ProducePacketName [12:14:39]name=ofd_packets/00123231 [12:14:39]OFD Sender: To server: pG, [12:14:39]CommunicateWithHost lk.salyk.kg:30040 [12:14:39]ConnectInit lk.salyk.kg [12:14:39]written 0, free lines is 4095 [12:14:39]Connected sock=10 [12:14:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 8E 1F 07 01 04 3C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 B0 69 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 5F E1 01 00 35 04 06 00 E1 22 16 F8 4E C6 A8 06 E6 90 8B D7 30 CB [12:14:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 DD 73 47 00 EE C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 5F E1 01 00 F4 03 04 00 DC 15 E4 65 B6 04 01 00 00 AB 59 55 2A C9 0B CB E1 [12:14:39]CommunicateWithHost err = 0 [12:14:39]CheckOFDResponse [12:14:39]1017 (14) - 77093643461234 [12:14:39]1041 (16) - 0000000000874798 [12:14:39]1040 (4) - 123231 [12:14:39]1012 (4) - 03.03.2024 06:17 [12:14:39]1206 (1) - 0 [12:14:39]OFD Sender: Remove packet 123231 [12:14:39]ProducePacketName [12:14:39]name=ofd_packets/00123231 [12:14:39]NVStorageDeleteData [12:14:40]Write to MH i2c: 01 00 00 D7 23 FA [12:14:40]Write i2c OK [12:14:40]MH_I2C_Read... [12:14:40]Read from MH i2c: 01 [12:14:40]MH_I2C_Read... [12:14:40]Read from MH i2c: 01 07 00 [12:14:40]MH_I2C_Read... [12:14:40]Read from MH i2c: 01 07 00 D7 23 00 00 00 00 00 FC 0C 09 [12:14:40]RasterBufferAndPrint [12:14:40]line [12:14:40]line [12:14:40]line [12:14:40]line [12:14:40]line [12:14:40]written 0, free lines is 3331 [12:14:40]MH_Cut [12:14:40]Write to MH i2c: D1 01 00 DE 23 01 D3 [12:14:40]Write i2c OK [12:14:40]MH_I2C_Read... [12:14:40]Read from MH i2c: D1 [12:14:40]MH_I2C_Read... [12:14:40]Read from MH i2c: D1 01 00 [12:14:40]MH_I2C_Read... [12:14:40]Read from MH i2c: D1 01 00 DE 23 00 D2 [12:14:40]Write to MH i2c: 01 00 00 DF 23 02 [12:14:40]Write i2c OK [12:14:40]MH_I2C_Read... [12:14:40]OFD Sender: No OFD packet to send [12:14:40]*** Cut start [12:14:40]*** Purtial cut [12:14:40]*** Stage 1: CUTSNS_PIN = 1 [12:14:42]Read from MH i2c: 01 [12:14:42]MH_I2C_Read... [12:14:42]*** Stop cut motor [12:14:42]*** Cut end [12:14:42]Read from MH i2c: 01 07 00 [12:14:42]MH_I2C_Read... [12:14:42]Read from MH i2c: 01 07 00 DF 23 00 00 00 00 00 FF 0F 17 [12:14:42]process_action close_receipt done [12:14:42]requested_data is exist [12:14:42]produce_requested_data [12:14:42]requested_item fm.sn is exist - process it [12:14:42]wFMCommunicate request_size=4 [12:14:42]MH_SAM_APDU [12:14:42]CAPDU: 80 11 00 00 [12:14:42]Write to MH i2c: E2 08 00 E0 23 80 11 00 00 00 00 00 00 7D [12:14:42]Write i2c OK [12:14:42]MH_I2C_Read... [12:14:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:14:42]Read from MH i2c: E2 [12:14:42]MH_I2C_Read... [12:14:42]Read from MH i2c: E2 17 00 [12:14:42]MH_I2C_Read... [12:14:42]Read from MH i2c: E2 17 00 E0 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 DB [12:14:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [12:14:42]wFMCommunicate OK [12:14:42]requested_item fd.num is exist - process it [12:14:42]SAM_PROTO_GetFieldsCounters [12:14:42]wFMCommunicate request_size=4 [12:14:42]MH_SAM_APDU [12:14:42]CAPDU: 80 13 00 00 [12:14:42]Write to MH i2c: E2 08 00 E1 23 80 13 00 00 00 00 00 00 80 [12:14:42]Write i2c OK [12:14:42]MH_I2C_Read... [12:14:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:14:43]Read from MH i2c: E2 [12:14:43]MH_I2C_Read... [12:14:43]Read from MH i2c: E2 62 00 [12:14:43]MH_I2C_Read... [12:14:43]Read from MH i2c: E2 62 00 E1 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 5F E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 38 [12:14: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 5F E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:14:43]wFMCommunicate OK [12:14:43]SAM_PROTO_GetFieldsCounters done [12:14:43]requested_item shift.num is exist - process it [12:14:43]requested_item shift.opened is exist - process it [12:14:43]req_shift_opened [12:14:43]FM_GetShiftState [12:14:43]SAM_PROTO_GetShiftState [12:14:43]wFMCommunicate request_size=4 [12:14:43]MH_SAM_APDU [12:14:43]CAPDU: 80 13 01 00 [12:14:43]Write to MH i2c: E2 08 00 E2 23 80 13 01 00 00 00 00 00 82 [12:14:43]Write i2c OK [12:14:43]MH_I2C_Read... [12:14:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:14:43]Read from MH i2c: E2 [12:14:43]MH_I2C_Read... [12:14:43]Read from MH i2c: E2 0E 00 [12:14:43]MH_I2C_Read... [12:14:43]Read from MH i2c: E2 0E 00 E2 23 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 44 [12:14:43]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [12:14:43]wFMCommunicate OK [12:14:43]SAM_PROTO_GetShiftState done [12:14:43]FM_GetShiftState done [12:14:43]req_shift_opened done [12:14:43]requested_item shift.open_date is exist - process it [12:14:43]req_shift_open_date [12:14:43]req_shift_open_date done [12:14:43]produce_requested_data done [12:14:43]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123231,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [12:14:43]process_action_free close_receipt [12:14:43]json_value_free [12:14:43]json_value_free done [12:14:43]process_json_proto returns [12:14:43]Send response to host [12:14:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123231,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [12:14:43]free response buf [12:14:43]execute_script done [12:14:43]execute_script returns [12:14:43]free content buf [12:14:43]Sock 7.Close socket [12:14:43]Sock 7.Thread stoped [12:14:45]OFD Sender: No OFD packet to send [12:14:50]OFD Sender: No OFD packet to send [12:14:55]OFD Sender: No OFD packet to send [12:15:00]OFD Sender: No OFD packet to send [12:15:05]OFD Sender: No OFD packet to send [12:15:10]OFD Sender: No OFD packet to send [12:15:15]OFD Sender: No OFD packet to send [12:15:20]OFD Sender: No OFD packet to send [12:15:25]OFD Sender: No OFD packet to send [12:15:30]OFD Sender: No OFD packet to send [12:15:35]OFD Sender: No OFD packet to send [12:15:40]OFD Sender: No OFD packet to send [12:15:45]OFD Sender: No OFD packet to send [12:15:50]OFD Sender: No OFD packet to send [12:15:55]OFD Sender: No OFD packet to send [12:16:00]OFD Sender: No OFD packet to send [12:16:05]OFD Sender: No OFD packet to send [12:16:10]OFD Sender: No OFD packet to send [12:16:15]OFD Sender: No OFD packet to send [12:16:20]OFD Sender: No OFD packet to send [12:16:25]OFD Sender: No OFD packet to send [12:16:30]OFD Sender: No OFD packet to send [12:16:35]OFD Sender: No OFD packet to send [12:16:40]OFD Sender: No OFD packet to send [12:16:45]OFD Sender: No OFD packet to send [12:16:50]OFD Sender: No OFD packet to send [12:16:55]OFD Sender: No OFD packet to send [12:17:00]OFD Sender: No OFD packet to send [12:17:05]OFD Sender: No OFD packet to send [12:17:10]OFD Sender: No OFD packet to send [12:17:15]OFD Sender: No OFD packet to send [12:17:20]OFD Sender: No OFD packet to send [12:17:25]OFD Sender: No OFD packet to send [12:17:30]OFD Sender: No OFD packet to send [12:17:35]OFD Sender: No OFD packet to send [12:17:40]OFD Sender: No OFD packet to send [12:17:45]OFD Sender: No OFD packet to send [12:17:50]OFD Sender: No OFD packet to send [12:17:55]OFD Sender: No OFD packet to send [12:18:00]OFD Sender: No OFD packet to send [12:18:05]OFD Sender: No OFD packet to send [12:18:10]OFD Sender: No OFD packet to send [12:18:15]OFD Sender: No OFD packet to send [12:18:20]OFD Sender: No OFD packet to send [12:18:25]OFD Sender: No OFD packet to send [12:18:30]OFD Sender: No OFD packet to send [12:18:35]OFD Sender: No OFD packet to send [12:18:40]OFD Sender: No OFD packet to send [12:18:45]OFD Sender: No OFD packet to send [12:18:50]OFD Sender: No OFD packet to send [12:18:55]OFD Sender: No OFD packet to send [12:19:00]OFD Sender: No OFD packet to send [12:19:05]OFD Sender: No OFD packet to send [12:19:10]OFD Sender: No OFD packet to send [12:19:15]OFD Sender: No OFD packet to send [12:19:20]OFD Sender: No OFD packet to send [12:19:25]OFD Sender: No OFD packet to send [12:19:30]OFD Sender: No OFD packet to send [12:19:35]OFD Sender: No OFD packet to send [12:19:40]OFD Sender: No OFD packet to send [12:19:45]OFD Sender: No OFD packet to send [12:19:50]OFD Sender: No OFD packet to send [12:19:55]OFD Sender: No OFD packet to send [12:20:00]OFD Sender: No OFD packet to send [12:20:05]OFD Sender: No OFD packet to send [12:20:10]OFD Sender: No OFD packet to send [12:20:15]OFD Sender: No OFD packet to send [12:20:20]OFD Sender: No OFD packet to send [12:20:25]OFD Sender: No OFD packet to send [12:20:30]OFD Sender: No OFD packet to send [12:20:35]OFD Sender: No OFD packet to send [12:20:40]OFD Sender: No OFD packet to send [12:20:45]OFD Sender: No OFD packet to send [12:20:50]OFD Sender: No OFD packet to send [12:20:55]OFD Sender: No OFD packet to send [12:21:00]OFD Sender: No OFD packet to send [12:21:05]OFD Sender: No OFD packet to send [12:21:10]OFD Sender: No OFD packet to send [12:21:15]OFD Sender: No OFD packet to send [12:21:16]accept exits with 9 [12:21:16]New connection [12:21:16]New thread 3067252068 created [12:21:16]Thread 3067395428 joined [12:21:16]Waiting for new connection... [12:21:16] Sock 9.Parse request [12:21:16]Sock 9.Check first char [12:21:16]Sock 9.First char is OK [12:21:16]request: POST /json_proto HTTP/1.0 [12:21:16]Method: POST [12:21:16]URL: /json_proto [12:21:16]Method is POST - this is cgi request [12:21:16]url: /json_proto [12:21:16]query_string will be loaded in cgi processing [12:21:16]execute_cgi json_proto POST (null) [12:21:16]execute_cgi path=json_proto method=POST [12:21:16]POST find Content-Length [12:21:16]Host: 172.17.48.197:8080 [12:21:16]Content-Length: 809 [12:21:16]Content-Type: application/json [12:21:16] [12:21:16]POST finish read [12:21:16]Found Content-Length = 809 [12:21:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106158", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 35.980, "sum" : 2500.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2500.61 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:21:16]execute_script... [12:21:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106158", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 35.980, "sum" : 2500.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2500.61 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:21:16]POST & json_proto [12:21:16]process_json_proto [12:21:16]json parsed OK: [12:21:16]protocol is kg_v1.0 [12:21:16]action value=close_receipt [12:21:16]process_action close_receipt [12:21:16]cmd_close_receipt [12:21:16]MH_GetDate [12:21:16]Write to MH i2c: F0 00 00 E3 23 F5 [12:21:16]Write i2c OK [12:21:16]MH_I2C_Read... [12:21:16]Read from MH i2c: F0 [12:21:16]MH_I2C_Read... [12:21:16]Read from MH i2c: F0 09 00 [12:21:16]MH_I2C_Read... [12:21:16]Read from MH i2c: F0 09 00 E3 23 00 3F 6B E4 65 6C AF E3 65 54 [12:21:16]GetLastDocTimeStamp 1709468080 [12:21:16]current date 1709468479 [12:21:16]FM_GetShiftState [12:21:16]SAM_PROTO_GetShiftState [12:21:16]wFMCommunicate request_size=4 [12:21:16]MH_SAM_APDU [12:21:16]CAPDU: 80 13 01 00 [12:21:16]Write to MH i2c: E2 08 00 E4 23 80 13 01 00 00 00 00 00 84 [12:21:16]Write i2c OK [12:21:16]MH_I2C_Read... [12:21:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:21:16]Read from MH i2c: E2 [12:21:16]MH_I2C_Read... [12:21:16]Read from MH i2c: E2 0E 00 [12:21:16]MH_I2C_Read... [12:21:16]Read from MH i2c: E2 0E 00 E4 23 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 46 [12:21:16]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [12:21:16]wFMCommunicate OK [12:21:16]SAM_PROTO_GetShiftState done [12:21:16]FM_GetShiftState done [12:21:16]opened in 1709425579 [12:21:16]opened+sec_in_day 1709511979 [12:21:16]quantity*price = 250061 [12:21:16]sum+1 = 250062 [12:21:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2500.61 НСП 1% : 22.13 НДС 12% : 265.55 Наличными: 0.00 Безнал.: 2500.61 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 89 03.03.2024 12:21 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874798 ФД: 123232 ФПД: 112503728079380 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T122119&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123232&fm=112503728079380&tin=02508201610067®Number=0000000000090573&sum=250061 [12:21:17]StoreToDocumentArchive [12:21:17]shift 323 fd 123232 [12:21:17]save to /storage/0323/doc_00123232 [12:21:17]save last doc name /storage/0323/doc_00123232 to /storage/kkm_last_doc_name [12:21:17]save OK [12:21:17]Clear old archive folders... [12:21:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:21:17]tlvbuf is 00DDEC20 [12:21:17]SAM_PROTO_ClearQueue [12:21:17]wFMCommunicate request_size=4 [12:21:17]MH_SAM_APDU [12:21:17]CAPDU: 80 09 00 00 [12:21:17]Write to MH i2c: E2 08 00 F1 23 80 09 00 00 00 00 00 00 86 [12:21:17]Write i2c OK [12:21:17]MH_I2C_Read... [12:21:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:21:17]Read from MH i2c: E2 [12:21:17]MH_I2C_Read... [12:21:17]Read from MH i2c: E2 03 00 [12:21:17]MH_I2C_Read... [12:21:17]Read from MH i2c: E2 03 00 F1 23 00 90 00 88 [12:21:17]RAPDU: 90 00 [12:21:17]wFMCommunicate OK [12:21:17]SAM_PROTO_ClearQueue done [12:21:17]KKMCreateOFDPacket [12:21:17]OFDProtocolAddRootSTLVToBuf [12:21:17]FM_MakeSignedData [12:21:17]FM_MakeSignedData [12:21:17]SAM_PROTO_SignData [12:21:17]wFMCommunicate request_size=4 [12:21:17]MH_SAM_APDU [12:21:17]CAPDU: 80 0D 01 02 [12:21:17]Write to MH i2c: E2 08 00 F2 23 80 0D 01 02 00 00 00 00 8E [12:21:17]Write i2c OK [12:21:17]MH_I2C_Read... [12:21:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:21:17]Read from MH i2c: E2 [12:21:17]MH_I2C_Read... [12:21:17]Read from MH i2c: E2 03 00 [12:21:17]MH_I2C_Read... [12:21:17]Read from MH i2c: E2 03 00 F2 23 00 90 00 89 [12:21:17]RAPDU: 90 00 [12:21:17]wFMCommunicate OK [12:21:17]wFMCommunicate request_size=255 [12:21:17]MH_SAM_APDU [12:21:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8C 8C 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 CD D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CD D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CD D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 3F 6B E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 60 E1 01 00 35 04 06 00 66 [12:21:17]Write to MH i2c: E2 02 01 F3 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8C 8C 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 CD D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CD D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CD D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 3F 6B E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 60 E1 01 00 35 04 06 00 66 00 00 E6 [12:21:17]Write i2c OK [12:21:17]MH_I2C_Read... [12:21:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:21:17]Read from MH i2c: E2 [12:21:17]MH_I2C_Read... [12:21:17]Read from MH i2c: E2 03 00 [12:21:17]MH_I2C_Read... [12:21:17]Read from MH i2c: E2 03 00 F3 23 00 90 00 8A [12:21:17]RAPDU: 90 00 [12:21:17]wFMCommunicate OK [12:21:17]wFMCommunicate request_size=10 [12:21:17]MH_SAM_APDU [12:21:17]CAPDU: 80 0D 02 02 05 52 50 BF 82 14 [12:21:17]Write to MH i2c: E2 0D 00 F4 23 80 0D 02 02 05 00 52 50 BF 82 14 00 00 92 [12:21:17]Write i2c OK [12:21:17]MH_I2C_Read... [12:21:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:21:17]Read from MH i2c: E2 [12:21:17]MH_I2C_Read... [12:21:17]Read from MH i2c: E2 03 00 [12:21:17]MH_I2C_Read... [12:21:17]Read from MH i2c: E2 03 00 F4 23 00 90 00 8B [12:21:17]RAPDU: 90 00 [12:21:17]wFMCommunicate OK [12:21:17]wFMCommunicate request_size=4 [12:21:17]MH_SAM_APDU [12:21:17]CAPDU: 80 0D 03 02 [12:21:17]Write to MH i2c: E2 08 00 F5 23 80 0D 03 02 00 00 00 00 93 [12:21:17]Write i2c OK [12:21:17]MH_I2C_Read... [12:21:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:21:18]Read from MH i2c: E2 [12:21:18]MH_I2C_Read... [12:21:18]Read from MH i2c: E2 0B 00 [12:21:18]MH_I2C_Read... [12:21:18]Read from MH i2c: E2 0B 00 F5 23 00 88 42 C8 86 6E 87 C0 B5 90 00 16 [12:21:18]RAPDU: 88 42 C8 86 6E 87 C0 B5 90 00 [12:21:18]wFMCommunicate OK [12:21:18]SAM_PROTO_SignData done [12:21:18]FM_MakeSignedData done [12:21:18]CreateOFDProtocolMessage [12:21:18]wFMCommunicate request_size=4 [12:21:18]MH_SAM_APDU [12:21:18]CAPDU: 80 11 00 00 [12:21:18]Write to MH i2c: E2 08 00 F6 23 80 11 00 00 00 00 00 00 93 [12:21:18]Write i2c OK [12:21:18]MH_I2C_Read... [12:21:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:21:18]Read from MH i2c: E2 [12:21:18]MH_I2C_Read... [12:21:18]Read from MH i2c: E2 17 00 [12:21:18]MH_I2C_Read... [12:21:18]Read from MH i2c: E2 17 00 F6 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 F1 [12:21:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [12:21:18]wFMCommunicate OK [12:21:18]CreateOFDProtocolMessage done [12:21:18]OFDSenderStorePacket 123232 [12:21:18]StoreOFDPacket docnum=123232 [12:21:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 95 DA 07 01 9D E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8C 8C 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 CD D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CD D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CD D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 3F 6B E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 60 E1 01 00 35 04 06 00 66 52 50 BF 82 14 88 42 C8 86 6E 87 C0 B5 [12:21:18]CheckFolder [12:21:18]dirname=/storage/ofd_packets [12:21:18]CheckFolder done [12:21:18]ProducePacketName [12:21:18]name=ofd_packets/00123232 [12:21:18]NVStorageSaveData ofd_packets/00123232 [12:21:18]File name is /storage/ofd_packets/00123232 [12:21:18]Write 301 bytes [12:21:18]NVStorageSaveData done [12:21:18]OFDSenderStorePacket done [12:21:18]KKMCreateOFDPacket done [12:21:18]NVStorageSaveData kkm_last_timestamp [12:21:18]File name is /storage/kkm_last_timestamp [12:21:18]Write 4 bytes [12:21:18]NVStorageSaveData done [12:21:18]ExternCall_PrintAddStr [12:21:18]wPrintStart [12:21:18]Write to MH i2c: 01 00 00 F7 23 1A [12:21:18]Write i2c OK [12:21:18]MH_I2C_Read... [12:21:18]Read from MH i2c: 01 [12:21:18]MH_I2C_Read... [12:21:18]Read from MH i2c: 01 07 00 [12:21:18]MH_I2C_Read... [12:21:18]Read from MH i2c: 01 07 00 F7 23 00 00 00 00 00 FF 0F 2F [12:21:18]RasterBufferAndPrint [12:21:18]line Счет N : (1)1106158 [12:21:18]line ИНН: 02508201610067 [12:21:18]line Контрольно-Кассовый Чек [12:21:18]line ПРОДАЖА [12:21:18]line ТРК (МРК, ГНК) : 53 [12:21:18]line Товар: 2710124500 [12:21:18]line Аи-95-К-5 [12:21:18]line 35.980 * 69.50 [12:21:18]line = 2500.61 [12:21:18]line НДС 12% НСП 1% [12:21:18]line > о реализуемом товаре [12:21:18]line ИТОГО: 2500.61 [12:21:18]line НСП 1% : 22.13 [12:21:18]line НДС 12% : 265.55 [12:21:18]line Наличными: 0.00 [12:21:18]line Безнал.: 2500.61 [12:21:18]line Место: АЗС № 25 "Партнер Нефть" [12:21:18]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [12:21:18]line СНО: Общий режим [12:21:18]line Чек 89 03.03.2024 12:21 [12:21:18]line Смена: 323 ФФД: 1.0 [12:21:18]line ЗНМ: 0300000019 [12:21:18]line РНМ: 0000000000090573 [12:21:18]line Версия ККМ: 001 [12:21:18]line Платежная система: О! деньги [12:21:18]line ФМ: 0000000000874798 [12:21:18]line ФД: 123232 [12:21:18]line ФПД: 112503728079380 [12:21:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T122119&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123232&fm=112503728079380&tin=02508201610067®Number=0000000000090573&sum=250061 [12:21:18]OFD Sender: Processing packet 123232 [packets to send 112, broken 111] [12:21:18]ProducePacketName [12:21:18]name=ofd_packets/00123232 [12:21:18]OFD Sender: To server: pG, [12:21:18]CommunicateWithHost lk.salyk.kg:30040 [12:21:18]ConnectInit lk.salyk.kg [12:21:18]written 0, free lines is 4095 [12:21:18]Connected sock=10 [12:21: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 37 39 38 0F 01 00 00 95 DA 07 01 9D E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8C 8C 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 CD D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CD D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CD D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 3F 6B E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 60 E1 01 00 35 04 06 00 66 52 50 BF 82 14 88 42 C8 86 6E 87 C0 B5 [12:21:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 C7 D7 47 00 82 E7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 60 E1 01 00 F4 03 04 00 6B 17 E4 65 B6 04 01 00 00 D3 4A 0D 87 63 73 7A ED [12:21:18]CommunicateWithHost err = 0 [12:21:18]CheckOFDResponse [12:21:18]1017 (14) - 77093643461234 [12:21:18]1041 (16) - 0000000000874798 [12:21:18]1040 (4) - 123232 [12:21:18]1012 (4) - 03.03.2024 06:23 [12:21:18]1206 (1) - 0 [12:21:18]OFD Sender: Remove packet 123232 [12:21:18]ProducePacketName [12:21:18]name=ofd_packets/00123232 [12:21:18]NVStorageDeleteData [12:21:18]Write to MH i2c: 01 00 00 21 24 45 [12:21:18]Write i2c OK [12:21:18]MH_I2C_Read... [12:21:18]Read from MH i2c: 01 [12:21:18]MH_I2C_Read... [12:21:18]Read from MH i2c: 01 07 00 [12:21:18]MH_I2C_Read... [12:21:18]Read from MH i2c: 01 07 00 21 24 00 00 00 00 00 FE 0C 56 [12:21:18]RasterBufferAndPrint [12:21:18]line [12:21:18]line [12:21:18]line [12:21:18]line [12:21:18]line [12:21:18]written 0, free lines is 3332 [12:21:18]MH_Cut [12:21:18]Write to MH i2c: D1 01 00 28 24 01 1E [12:21:18]Write i2c OK [12:21:18]MH_I2C_Read... [12:21:18]Read from MH i2c: D1 [12:21:18]MH_I2C_Read... [12:21:18]Read from MH i2c: D1 01 00 [12:21:18]MH_I2C_Read... [12:21:18]Read from MH i2c: D1 01 00 28 24 00 1D [12:21:18]Write to MH i2c: 01 00 00 29 24 4D [12:21:18]Write i2c OK [12:21:18]MH_I2C_Read... [12:21:19]OFD Sender: No OFD packet to send [12:21:19]*** Cut start [12:21:19]*** Purtial cut [12:21:19]*** Stage 1: CUTSNS_PIN = 1 [12:21:21]Read from MH i2c: 01 [12:21:21]MH_I2C_Read... [12:21:21]*** Stop cut motor [12:21:21]*** Cut end [12:21:21]Read from MH i2c: 01 07 00 [12:21:21]MH_I2C_Read... [12:21:21]Read from MH i2c: 01 07 00 29 24 00 00 00 00 00 FF 0F 62 [12:21:21]process_action close_receipt done [12:21:21]requested_data is exist [12:21:21]produce_requested_data [12:21:21]requested_item fm.sn is exist - process it [12:21:21]wFMCommunicate request_size=4 [12:21:21]MH_SAM_APDU [12:21:21]CAPDU: 80 11 00 00 [12:21:21]Write to MH i2c: E2 08 00 2A 24 80 11 00 00 00 00 00 00 C8 [12:21:21]Write i2c OK [12:21:21]MH_I2C_Read... [12:21:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:21:21]Read from MH i2c: E2 [12:21:21]MH_I2C_Read... [12:21:21]Read from MH i2c: E2 17 00 [12:21:21]MH_I2C_Read... [12:21:21]Read from MH i2c: E2 17 00 2A 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 26 [12:21:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [12:21:21]wFMCommunicate OK [12:21:21]requested_item fd.num is exist - process it [12:21:21]SAM_PROTO_GetFieldsCounters [12:21:21]wFMCommunicate request_size=4 [12:21:21]MH_SAM_APDU [12:21:21]CAPDU: 80 13 00 00 [12:21:21]Write to MH i2c: E2 08 00 2B 24 80 13 00 00 00 00 00 00 CB [12:21:21]Write i2c OK [12:21:21]MH_I2C_Read... [12:21:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:21:21]Read from MH i2c: E2 [12:21:21]MH_I2C_Read... [12:21:21]Read from MH i2c: E2 62 00 [12:21:21]MH_I2C_Read... [12:21:21]Read from MH i2c: E2 62 00 2B 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 60 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 87 [12:21:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 60 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:21:21]wFMCommunicate OK [12:21:21]SAM_PROTO_GetFieldsCounters done [12:21:21]requested_item shift.num is exist - process it [12:21:21]requested_item shift.opened is exist - process it [12:21:21]req_shift_opened [12:21:21]FM_GetShiftState [12:21:21]SAM_PROTO_GetShiftState [12:21:21]wFMCommunicate request_size=4 [12:21:21]MH_SAM_APDU [12:21:21]CAPDU: 80 13 01 00 [12:21:21]Write to MH i2c: E2 08 00 2C 24 80 13 01 00 00 00 00 00 CD [12:21:21]Write i2c OK [12:21:21]MH_I2C_Read... [12:21:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:21:21]Read from MH i2c: E2 [12:21:21]MH_I2C_Read... [12:21:21]Read from MH i2c: E2 0E 00 [12:21:21]MH_I2C_Read... [12:21:21]Read from MH i2c: E2 0E 00 2C 24 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 8F [12:21:21]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [12:21:21]wFMCommunicate OK [12:21:21]SAM_PROTO_GetShiftState done [12:21:21]FM_GetShiftState done [12:21:21]req_shift_opened done [12:21:21]requested_item shift.open_date is exist - process it [12:21:21]req_shift_open_date [12:21:21]req_shift_open_date done [12:21:21]produce_requested_data done [12:21:21]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123232,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [12:21:21]process_action_free close_receipt [12:21:21]json_value_free [12:21:21]json_value_free done [12:21:21]process_json_proto returns [12:21:21]Send response to host [12:21:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123232,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [12:21:21]free response buf [12:21:21]execute_script done [12:21:21]execute_script returns [12:21:21]free content buf [12:21:21]Sock 9.Close socket [12:21:21]Sock 9.Thread stoped [12:21:24]OFD Sender: No OFD packet to send [12:21:29]OFD Sender: No OFD packet to send [12:21:34]OFD Sender: No OFD packet to send [12:21:39]OFD Sender: No OFD packet to send [12:21:44]OFD Sender: No OFD packet to send [12:21:49]OFD Sender: No OFD packet to send [12:21:54]OFD Sender: No OFD packet to send [12:21:59]OFD Sender: No OFD packet to send [12:22:04]OFD Sender: No OFD packet to send [12:22:09]OFD Sender: No OFD packet to send [12:22:14]OFD Sender: No OFD packet to send [12:22:19]OFD Sender: No OFD packet to send [12:22:24]OFD Sender: No OFD packet to send [12:22:29]OFD Sender: No OFD packet to send [12:22:34]OFD Sender: No OFD packet to send [12:22:39]OFD Sender: No OFD packet to send [12:22:44]OFD Sender: No OFD packet to send [12:22:49]OFD Sender: No OFD packet to send [12:22:54]OFD Sender: No OFD packet to send [12:22:59]OFD Sender: No OFD packet to send [12:23:04]OFD Sender: No OFD packet to send [12:23:09]OFD Sender: No OFD packet to send [12:23:14]OFD Sender: No OFD packet to send [12:23:19]OFD Sender: No OFD packet to send [12:23:24]OFD Sender: No OFD packet to send [12:23:29]OFD Sender: No OFD packet to send [12:23:34]OFD Sender: No OFD packet to send [12:23:39]OFD Sender: No OFD packet to send [12:23:44]OFD Sender: No OFD packet to send [12:23:49]OFD Sender: No OFD packet to send [12:23:54]OFD Sender: No OFD packet to send [12:23:59]OFD Sender: No OFD packet to send [12:24:04]OFD Sender: No OFD packet to send [12:24:09]OFD Sender: No OFD packet to send [12:24:14]OFD Sender: No OFD packet to send [12:24:19]OFD Sender: No OFD packet to send [12:24:24]OFD Sender: No OFD packet to send [12:24:29]OFD Sender: No OFD packet to send [12:24:34]OFD Sender: No OFD packet to send [12:24:39]OFD Sender: No OFD packet to send [12:24:44]OFD Sender: No OFD packet to send [12:24:49]OFD Sender: No OFD packet to send [12:24:54]OFD Sender: No OFD packet to send [12:24:59]OFD Sender: No OFD packet to send [12:25:04]OFD Sender: No OFD packet to send [12:25:09]OFD Sender: No OFD packet to send [12:25:14]OFD Sender: No OFD packet to send [12:25:19]OFD Sender: No OFD packet to send [12:25:24]OFD Sender: No OFD packet to send [12:25:29]OFD Sender: No OFD packet to send [12:25:34]OFD Sender: No OFD packet to send [12:25:39]OFD Sender: No OFD packet to send [12:25:44]OFD Sender: No OFD packet to send [12:25:49]OFD Sender: No OFD packet to send [12:25:54]OFD Sender: No OFD packet to send [12:25:59]OFD Sender: No OFD packet to send [12:26:04]OFD Sender: No OFD packet to send [12:26:09]OFD Sender: No OFD packet to send [12:26:14]OFD Sender: No OFD packet to send [12:26:19]OFD Sender: No OFD packet to send [12:26:24]OFD Sender: No OFD packet to send [12:26:29]OFD Sender: No OFD packet to send [12:26:34]OFD Sender: No OFD packet to send [12:26:39]OFD Sender: No OFD packet to send [12:26:44]OFD Sender: No OFD packet to send [12:26:49]OFD Sender: No OFD packet to send [12:26:54]OFD Sender: No OFD packet to send [12:26:59]OFD Sender: No OFD packet to send [12:27:04]OFD Sender: No OFD packet to send [12:27:09]OFD Sender: No OFD packet to send [12:27:14]OFD Sender: No OFD packet to send [12:27:19]OFD Sender: No OFD packet to send [12:27:24]OFD Sender: No OFD packet to send [12:27:29]OFD Sender: No OFD packet to send [12:27:34]OFD Sender: No OFD packet to send [12:27:39]OFD Sender: No OFD packet to send [12:27:44]OFD Sender: No OFD packet to send [12:27:49]OFD Sender: No OFD packet to send [12:27:54]OFD Sender: No OFD packet to send [12:27:59]OFD Sender: No OFD packet to send [12:28:04]OFD Sender: No OFD packet to send [12:28:09]OFD Sender: No OFD packet to send [12:28:14]OFD Sender: No OFD packet to send [12:28:19]OFD Sender: No OFD packet to send [12:28:24]OFD Sender: No OFD packet to send [12:28:29]OFD Sender: No OFD packet to send [12:28:34]OFD Sender: No OFD packet to send [12:28:39]OFD Sender: No OFD packet to send [12:28:44]OFD Sender: No OFD packet to send [12:28:49]OFD Sender: No OFD packet to send [12:28:54]OFD Sender: No OFD packet to send [12:28:59]OFD Sender: No OFD packet to send [12:29:04]OFD Sender: No OFD packet to send [12:29:09]OFD Sender: No OFD packet to send [12:29:14]OFD Sender: No OFD packet to send [12:29:19]OFD Sender: No OFD packet to send [12:29:24]OFD Sender: No OFD packet to send [12:29:29]OFD Sender: No OFD packet to send [12:29:34]OFD Sender: No OFD packet to send [12:29:39]OFD Sender: No OFD packet to send [12:29:44]OFD Sender: No OFD packet to send [12:29:49]OFD Sender: No OFD packet to send [12:29:54]OFD Sender: No OFD packet to send [12:29:59]OFD Sender: No OFD packet to send [12:30:04]OFD Sender: No OFD packet to send [12:30:09]OFD Sender: No OFD packet to send [12:30:14]OFD Sender: No OFD packet to send [12:30:19]OFD Sender: No OFD packet to send [12:30:24]OFD Sender: No OFD packet to send [12:30:27]accept exits with 7 [12:30:27]New connection [12:30:27]New thread 3067395428 created [12:30:27]Thread 3067252068 joined [12:30:27]Waiting for new connection... [12:30:27] Sock 7.Parse request [12:30:27]Sock 7.Check first char [12:30:27]Sock 7.First char is OK [12:30:27]request: POST /json_proto HTTP/1.0 [12:30:27]Method: POST [12:30:27]URL: /json_proto [12:30:27]Method is POST - this is cgi request [12:30:27]url: /json_proto [12:30:27]query_string will be loaded in cgi processing [12:30:27]execute_cgi json_proto POST (null) [12:30:27]execute_cgi path=json_proto method=POST [12:30:27]POST find Content-Length [12:30:27]Host: 172.17.48.197:8080 [12:30:27]Content-Length: 678 [12:30:27]Content-Type: application/json [12:30:27] [12:30:27]POST finish read [12:30:27]Found Content-Length = 678 [12:30:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106160", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 9.700, "sum" : 600.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:30:27]execute_script... [12:30: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)1106160", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 9.700, "sum" : 600.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:30:27]POST & json_proto [12:30:27]process_json_proto [12:30:27]json parsed OK: [12:30:27]protocol is kg_v1.0 [12:30:27]action value=close_receipt [12:30:27]process_action close_receipt [12:30:27]cmd_close_receipt [12:30:27]MH_GetDate [12:30:27]Write to MH i2c: F0 00 00 2D 24 40 [12:30:27]Write i2c OK [12:30:27]MH_I2C_Read... [12:30:27]Read from MH i2c: F0 [12:30:27]MH_I2C_Read... [12:30:27]Read from MH i2c: F0 09 00 [12:30:27]MH_I2C_Read... [12:30:27]Read from MH i2c: F0 09 00 2D 24 00 67 6D E4 65 6C AF E3 65 C9 [12:30:27]GetLastDocTimeStamp 1709468479 [12:30:27]current date 1709469031 [12:30:27]FM_GetShiftState [12:30:27]SAM_PROTO_GetShiftState [12:30:27]wFMCommunicate request_size=4 [12:30:27]MH_SAM_APDU [12:30:27]CAPDU: 80 13 01 00 [12:30:27]Write to MH i2c: E2 08 00 2E 24 80 13 01 00 00 00 00 00 CF [12:30:27]Write i2c OK [12:30:27]MH_I2C_Read... [12:30:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:30:28]Read from MH i2c: E2 [12:30:28]MH_I2C_Read... [12:30:28]Read from MH i2c: E2 0E 00 [12:30:28]MH_I2C_Read... [12:30:28]Read from MH i2c: E2 0E 00 2E 24 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 91 [12:30:28]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [12:30:28]wFMCommunicate OK [12:30:28]SAM_PROTO_GetShiftState done [12:30:28]FM_GetShiftState done [12:30:28]opened in 1709425579 [12:30:28]opened+sec_in_day 1709511979 [12:30:28]quantity*price = 60043 [12:30:28]sum+1 = 60044 [12:30:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.76 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 90 03.03.2024 12:30 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123233 ФПД: 10579658875648 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T123031&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123233&fm=10579658875648&tin=02508201610067®Number=0000000000090573&sum=60000 [12:30:29]StoreToDocumentArchive [12:30:29]shift 323 fd 123233 [12:30:29]save to /storage/0323/doc_00123233 [12:30:29]save last doc name /storage/0323/doc_00123233 to /storage/kkm_last_doc_name [12:30:29]save OK [12:30:29]Clear old archive folders... [12:30:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:30:29]tlvbuf is 00E1B6F0 [12:30:29]SAM_PROTO_ClearQueue [12:30:29]wFMCommunicate request_size=4 [12:30:29]MH_SAM_APDU [12:30:29]CAPDU: 80 09 00 00 [12:30:29]Write to MH i2c: E2 08 00 3B 24 80 09 00 00 00 00 00 00 D1 [12:30:29]Write i2c OK [12:30:29]MH_I2C_Read... [12:30:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:30:29]Read from MH i2c: E2 [12:30:29]MH_I2C_Read... [12:30:29]Read from MH i2c: E2 03 00 [12:30:29]MH_I2C_Read... [12:30:29]Read from MH i2c: E2 03 00 3B 24 00 90 00 D3 [12:30:29]RAPDU: 90 00 [12:30:29]wFMCommunicate OK [12:30:29]SAM_PROTO_ClearQueue done [12:30:29]KKMCreateOFDPacket [12:30:29]OFDProtocolAddRootSTLVToBuf [12:30:29]FM_MakeSignedData [12:30:29]FM_MakeSignedData [12:30:29]SAM_PROTO_SignData [12:30:29]wFMCommunicate request_size=4 [12:30:29]MH_SAM_APDU [12:30:29]CAPDU: 80 0D 01 02 [12:30:29]Write to MH i2c: E2 08 00 3C 24 80 0D 01 02 00 00 00 00 D9 [12:30:29]Write i2c OK [12:30:29]MH_I2C_Read... [12:30:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:30:29]Read from MH i2c: E2 [12:30:29]MH_I2C_Read... [12:30:29]Read from MH i2c: E2 03 00 [12:30:29]MH_I2C_Read... [12:30:29]Read from MH i2c: E2 03 00 3C 24 00 90 00 D4 [12:30:29]RAPDU: 90 00 [12:30:29]wFMCommunicate OK [12:30:29]wFMCommunicate request_size=255 [12:30:29]MH_SAM_APDU [12:30:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 25 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 8B 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 E8 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 5A 00 00 00 F4 03 04 00 67 6D E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 61 E1 01 00 35 04 06 00 09 [12:30:29]Write to MH i2c: E2 02 01 3D 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 25 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 8B 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 E8 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 5A 00 00 00 F4 03 04 00 67 6D E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 61 E1 01 00 35 04 06 00 09 00 00 61 [12:30:29]Write i2c OK [12:30:29]MH_I2C_Read... [12:30:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:30:29]Read from MH i2c: E2 [12:30:29]MH_I2C_Read... [12:30:29]Read from MH i2c: E2 03 00 [12:30:29]MH_I2C_Read... [12:30:29]Read from MH i2c: E2 03 00 3D 24 00 90 00 D5 [12:30:29]RAPDU: 90 00 [12:30:29]wFMCommunicate OK [12:30:29]wFMCommunicate request_size=10 [12:30:29]MH_SAM_APDU [12:30:29]CAPDU: 80 0D 02 02 05 9F 44 CF 23 00 [12:30:29]Write to MH i2c: E2 0D 00 3E 24 80 0D 02 02 05 00 9F 44 CF 23 00 00 00 BB [12:30:29]Write i2c OK [12:30:29]MH_I2C_Read... [12:30:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:30:29]Read from MH i2c: E2 [12:30:29]MH_I2C_Read... [12:30:29]Read from MH i2c: E2 03 00 [12:30:29]MH_I2C_Read... [12:30:29]Read from MH i2c: E2 03 00 3E 24 00 90 00 D6 [12:30:29]RAPDU: 90 00 [12:30:29]wFMCommunicate OK [12:30:29]wFMCommunicate request_size=4 [12:30:29]MH_SAM_APDU [12:30:29]CAPDU: 80 0D 03 02 [12:30:29]Write to MH i2c: E2 08 00 3F 24 80 0D 03 02 00 00 00 00 DE [12:30:29]Write i2c OK [12:30:29]MH_I2C_Read... [12:30:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:30:29]Read from MH i2c: E2 [12:30:29]MH_I2C_Read... [12:30:29]Read from MH i2c: E2 0B 00 [12:30:29]MH_I2C_Read... [12:30:29]Read from MH i2c: E2 0B 00 3F 24 00 D7 94 74 E9 71 26 C7 43 90 00 48 [12:30:29]RAPDU: D7 94 74 E9 71 26 C7 43 90 00 [12:30:29]wFMCommunicate OK [12:30:29]SAM_PROTO_SignData done [12:30:29]FM_MakeSignedData done [12:30:29]CreateOFDProtocolMessage [12:30:29]wFMCommunicate request_size=4 [12:30:29]MH_SAM_APDU [12:30:29]CAPDU: 80 11 00 00 [12:30:29]Write to MH i2c: E2 08 00 40 24 80 11 00 00 00 00 00 00 DE [12:30:29]Write i2c OK [12:30:29]MH_I2C_Read... [12:30:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:29]Read from MH i2c: E2 [12:30:29]MH_I2C_Read... [12:30:29]Read from MH i2c: E2 17 00 [12:30:29]MH_I2C_Read... [12:30:29]Read from MH i2c: E2 17 00 40 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 3C [12:30:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [12:30:29]wFMCommunicate OK [12:30:29]CreateOFDProtocolMessage done [12:30:29]OFDSenderStorePacket 123233 [12:30:29]StoreOFDPacket docnum=123233 [12:30:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 1D 4A 07 01 5D E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 25 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 8B 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 E8 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 5A 00 00 00 F4 03 04 00 67 6D E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 61 E1 01 00 35 04 06 00 09 9F 44 CF 23 00 D7 94 74 E9 71 26 C7 43 [12:30:29]CheckFolder [12:30:29]dirname=/storage/ofd_packets [12:30:29]CheckFolder done [12:30:29]ProducePacketName [12:30:29]name=ofd_packets/00123233 [12:30:29]NVStorageSaveData ofd_packets/00123233 [12:30:29]File name is /storage/ofd_packets/00123233 [12:30:29]Write 301 bytes [12:30:29]NVStorageSaveData done [12:30:29]OFDSenderStorePacket done [12:30:29]KKMCreateOFDPacket done [12:30:29]NVStorageSaveData kkm_last_timestamp [12:30:29]File name is /storage/kkm_last_timestamp [12:30:29]Write 4 bytes [12:30:29]NVStorageSaveData done [12:30:29]ExternCall_PrintAddStr [12:30:29]wPrintStart [12:30:29]Write to MH i2c: 01 00 00 41 24 65 [12:30:29]Write i2c OK [12:30:29]MH_I2C_Read... [12:30:29]Read from MH i2c: 01 [12:30:29]MH_I2C_Read... [12:30:29]Read from MH i2c: 01 07 00 [12:30:29]MH_I2C_Read... [12:30:29]Read from MH i2c: 01 07 00 41 24 00 00 00 00 00 FF 0F 7A [12:30:29]RasterBufferAndPrint [12:30:29]line Счет N : (1)1106160 [12:30:29]line ИНН: 02508201610067 [12:30:29]line Контрольно-Кассовый Чек [12:30:29]line ПРОДАЖА [12:30:29]line ТРК (МРК, ГНК) : 11 [12:30:29]line Товар: 2710124130 [12:30:29]line Аи-92-К-5 [12:30:29]line 9.700 * 61.90 [12:30:29]line = 600.43 [12:30:29]line НДС 12% НСП 1% [12:30:29]line > о реализуемом товаре [12:30:29]line ОКРУГЛЕНИЕ: -0.43 [12:30:29]line ИТОГО: 600.00 [12:30:29]line Внесено: 600.00 [12:30:29]line СДАЧА: 0.00 [12:30:29]line НСП 1% : 5.31 [12:30:29]line НДС 12% : 63.76 [12:30:29]line Наличными: 600.00 [12:30:29]line Безнал.: 0.00 [12:30:29]line Место: АЗС № 25 "Партнер Нефть" [12:30:29]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [12:30:29]line СНО: Общий режим [12:30:29]line Чек 90 03.03.2024 12:30 [12:30:29]line Смена: 323 ФФД: 1.0 [12:30:29]line ЗНМ: 0300000019 [12:30:29]line РНМ: 0000000000090573 [12:30:29]line Версия ККМ: 001 [12:30:29]line ФМ: 0000000000874798 [12:30:29]line ФД: 123233 [12:30:29]line ФПД: 10579658875648 [12:30:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T123031&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123233&fm=10579658875648&tin=02508201610067®Number=0000000000090573&sum=60000 [12:30:30]OFD Sender: Processing packet 123233 [packets to send 112, broken 111] [12:30:30]ProducePacketName [12:30:30]name=ofd_packets/00123233 [12:30:30]OFD Sender: To server: pG, [12:30:30]CommunicateWithHost lk.salyk.kg:30040 [12:30:30]ConnectInit lk.salyk.kg [12:30:30]written 0, free lines is 4095 [12:30:30]Connected sock=10 [12:30: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 37 39 38 0F 01 00 00 1D 4A 07 01 5D E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 25 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 8B 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 E8 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 5A 00 00 00 F4 03 04 00 67 6D E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 61 E1 01 00 35 04 06 00 09 9F 44 CF 23 00 D7 94 74 E9 71 26 C7 43 [12:30:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 84 A1 47 00 26 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 37 39 38 10 04 04 00 61 E1 01 00 F4 03 04 00 92 19 E4 65 B6 04 01 00 00 3A B5 38 C7 19 BF F1 1F [12:30:30]CommunicateWithHost err = 0 [12:30:30]CheckOFDResponse [12:30:30]1017 (14) - 77093643461234 [12:30:30]1041 (16) - 0000000000874798 [12:30:30]1040 (4) - 123233 [12:30:30]1012 (4) - 03.03.2024 06:32 [12:30:30]1206 (1) - 0 [12:30:30]OFD Sender: Remove packet 123233 [12:30:30]ProducePacketName [12:30:30]name=ofd_packets/00123233 [12:30:30]NVStorageDeleteData [12:30:30]Write to MH i2c: 01 00 00 6C 24 90 [12:30:30]Write i2c OK [12:30:30]MH_I2C_Read... [12:30:30]Read from MH i2c: 01 [12:30:30]MH_I2C_Read... [12:30:30]Read from MH i2c: 01 07 00 [12:30:30]MH_I2C_Read... [12:30:30]Read from MH i2c: 01 07 00 6C 24 00 00 00 00 00 E8 0C 8B [12:30:30]RasterBufferAndPrint [12:30:30]line [12:30:30]line [12:30:30]line [12:30:30]line [12:30:30]line [12:30:30]written 0, free lines is 3310 [12:30:30]MH_Cut [12:30:30]Write to MH i2c: D1 01 00 73 24 01 69 [12:30:30]Write i2c OK [12:30:30]MH_I2C_Read... [12:30:30]Read from MH i2c: D1 [12:30:30]MH_I2C_Read... [12:30:30]Read from MH i2c: D1 01 00 [12:30:30]MH_I2C_Read... [12:30:30]Read from MH i2c: D1 01 00 73 24 00 68 [12:30:30]Write to MH i2c: 01 00 00 74 24 98 [12:30:30]Write i2c OK [12:30:30]MH_I2C_Read... [12:30:30]OFD Sender: No OFD packet to send [12:30:31]*** Cut start [12:30:31]*** Purtial cut [12:30:31]*** Stage 1: CUTSNS_PIN = 1 [12:30:33]Read from MH i2c: 01 [12:30:33]MH_I2C_Read... [12:30:33]*** Stop cut motor [12:30:33]*** Cut end [12:30:33]Read from MH i2c: 01 07 00 [12:30:33]MH_I2C_Read... [12:30:33]Read from MH i2c: 01 07 00 74 24 00 00 00 00 00 FF 0F AD [12:30:33]process_action close_receipt done [12:30:33]requested_data is exist [12:30:33]produce_requested_data [12:30:33]requested_item fm.sn is exist - process it [12:30:33]wFMCommunicate request_size=4 [12:30:33]MH_SAM_APDU [12:30:33]CAPDU: 80 11 00 00 [12:30:33]Write to MH i2c: E2 08 00 75 24 80 11 00 00 00 00 00 00 13 [12:30:33]Write i2c OK [12:30:33]MH_I2C_Read... [12:30:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:33]Read from MH i2c: E2 [12:30:33]MH_I2C_Read... [12:30:33]Read from MH i2c: E2 17 00 [12:30:33]MH_I2C_Read... [12:30:33]Read from MH i2c: E2 17 00 75 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 71 [12:30:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [12:30:33]wFMCommunicate OK [12:30:33]requested_item fd.num is exist - process it [12:30:33]SAM_PROTO_GetFieldsCounters [12:30:33]wFMCommunicate request_size=4 [12:30:33]MH_SAM_APDU [12:30:33]CAPDU: 80 13 00 00 [12:30:33]Write to MH i2c: E2 08 00 76 24 80 13 00 00 00 00 00 00 16 [12:30:33]Write i2c OK [12:30:33]MH_I2C_Read... [12:30:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:30:33]Read from MH i2c: E2 [12:30:33]MH_I2C_Read... [12:30:33]Read from MH i2c: E2 62 00 [12:30:33]MH_I2C_Read... [12:30:33]Read from MH i2c: E2 62 00 76 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 61 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 D6 [12:30: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 61 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:30:33]wFMCommunicate OK [12:30:33]SAM_PROTO_GetFieldsCounters done [12:30:33]requested_item shift.num is exist - process it [12:30:33]requested_item shift.opened is exist - process it [12:30:33]req_shift_opened [12:30:33]FM_GetShiftState [12:30:33]SAM_PROTO_GetShiftState [12:30:33]wFMCommunicate request_size=4 [12:30:33]MH_SAM_APDU [12:30:33]CAPDU: 80 13 01 00 [12:30:33]Write to MH i2c: E2 08 00 77 24 80 13 01 00 00 00 00 00 18 [12:30:33]Write i2c OK [12:30:33]MH_I2C_Read... [12:30:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:30:33]Read from MH i2c: E2 [12:30:33]MH_I2C_Read... [12:30:33]Read from MH i2c: E2 0E 00 [12:30:33]MH_I2C_Read... [12:30:33]Read from MH i2c: E2 0E 00 77 24 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 DA [12:30:33]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [12:30:33]wFMCommunicate OK [12:30:33]SAM_PROTO_GetShiftState done [12:30:33]FM_GetShiftState done [12:30:33]req_shift_opened done [12:30:33]requested_item shift.open_date is exist - process it [12:30:33]req_shift_open_date [12:30:33]req_shift_open_date done [12:30:33]produce_requested_data done [12:30:33]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123233,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [12:30:33]process_action_free close_receipt [12:30:33]json_value_free [12:30:33]json_value_free done [12:30:33]process_json_proto returns [12:30:33]Send response to host [12:30:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123233,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [12:30:33]free response buf [12:30:33]execute_script done [12:30:33]execute_script returns [12:30:33]free content buf [12:30:33]Sock 7.Close socket [12:30:33]Sock 7.Thread stoped [12:30:33]accept exits with 9 [12:30:33]New connection [12:30:33]New thread 3067252068 created [12:30:33]Thread 3067395428 joined [12:30:33]Waiting for new connection... [12:30:33] Sock 9.Parse request [12:30:33]Sock 9.Check first char [12:30:33]Sock 9.First char is OK [12:30:33]request: POST /json_proto HTTP/1.0 [12:30:33]Method: POST [12:30:33]URL: /json_proto [12:30:33]Method is POST - this is cgi request [12:30:33]url: /json_proto [12:30:33]query_string will be loaded in cgi processing [12:30:33]execute_cgi json_proto POST (null) [12:30:33]execute_cgi path=json_proto method=POST [12:30:33]POST find Content-Length [12:30:33]Host: 172.17.48.197:8080 [12:30:33]Content-Length: 820 [12:30:33]Content-Type: application/json [12:30:33] [12:30:33]POST finish read [12:30:33]Found Content-Length = 820 [12:30:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106159", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 32.320, "sum" : 2000.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.61 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:30:33]execute_script... [12:30: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)1106159", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 32.320, "sum" : 2000.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.61 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:30:33]POST & json_proto [12:30:33]process_json_proto [12:30:33]json parsed OK: [12:30:33]protocol is kg_v1.0 [12:30:33]action value=close_receipt [12:30:33]process_action close_receipt [12:30:33]cmd_close_receipt [12:30:33]MH_GetDate [12:30:33]Write to MH i2c: F0 00 00 78 24 8B [12:30:33]Write i2c OK [12:30:33]MH_I2C_Read... [12:30:33]Read from MH i2c: F0 [12:30:33]MH_I2C_Read... [12:30:33]Read from MH i2c: F0 09 00 [12:30:33]MH_I2C_Read... [12:30:33]Read from MH i2c: F0 09 00 78 24 00 6C 6D E4 65 6C AF E3 65 19 [12:30:33]GetLastDocTimeStamp 1709469031 [12:30:33]current date 1709469036 [12:30:33]FM_GetShiftState [12:30:33]SAM_PROTO_GetShiftState [12:30:33]wFMCommunicate request_size=4 [12:30:33]MH_SAM_APDU [12:30:33]CAPDU: 80 13 01 00 [12:30:33]Write to MH i2c: E2 08 00 79 24 80 13 01 00 00 00 00 00 1A [12:30:33]Write i2c OK [12:30:33]MH_I2C_Read... [12:30:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:30:33]Read from MH i2c: E2 [12:30:33]MH_I2C_Read... [12:30:33]Read from MH i2c: E2 0E 00 [12:30:33]MH_I2C_Read... [12:30:33]Read from MH i2c: E2 0E 00 79 24 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 DC [12:30:33]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [12:30:33]wFMCommunicate OK [12:30:33]SAM_PROTO_GetShiftState done [12:30:33]FM_GetShiftState done [12:30:33]opened in 1709425579 [12:30:33]opened+sec_in_day 1709511979 [12:30:33]quantity*price = 200060 [12:30:33]sum+1 = 200062 [12:30:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.61 НСП 1% : 17.70 НДС 12% : 212.45 Наличными: 0.00 Безнал.: 2000.61 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 91 03.03.2024 12:30 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874798 ФД: 123234 ФПД: 207114485723482 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T123036&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123234&fm=207114485723482&tin=02508201610067®Number=0000000000090573&sum=200061 [12:30:35]StoreToDocumentArchive [12:30:35]shift 323 fd 123234 [12:30:35]save to /storage/0323/doc_00123234 [12:30:35]save last doc name /storage/0323/doc_00123234 to /storage/kkm_last_doc_name [12:30:35]save OK [12:30:35]Clear old archive folders... [12:30:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:30:35]tlvbuf is 00DB7A90 [12:30:35]SAM_PROTO_ClearQueue [12:30:35]wFMCommunicate request_size=4 [12:30:35]MH_SAM_APDU [12:30:35]CAPDU: 80 09 00 00 [12:30:35]Write to MH i2c: E2 08 00 86 24 80 09 00 00 00 00 00 00 1C [12:30:35]Write i2c OK [12:30:35]MH_I2C_Read... [12:30:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:30:35]Read from MH i2c: E2 [12:30:35]MH_I2C_Read... [12:30:35]Read from MH i2c: E2 03 00 [12:30:35]MH_I2C_Read... [12:30:35]Read from MH i2c: E2 03 00 86 24 00 90 00 1E [12:30:35]RAPDU: 90 00 [12:30:35]wFMCommunicate OK [12:30:35]SAM_PROTO_ClearQueue done [12:30:35]KKMCreateOFDPacket [12:30:35]OFDProtocolAddRootSTLVToBuf [12:30:35]FM_MakeSignedData [12:30:35]FM_MakeSignedData [12:30:35]SAM_PROTO_SignData [12:30:35]wFMCommunicate request_size=4 [12:30:35]MH_SAM_APDU [12:30:35]CAPDU: 80 0D 01 02 [12:30:35]Write to MH i2c: E2 08 00 87 24 80 0D 01 02 00 00 00 00 24 [12:30:35]Write i2c OK [12:30:35]MH_I2C_Read... [12:30:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:30:35]Read from MH i2c: E2 [12:30:35]MH_I2C_Read... [12:30:35]Read from MH i2c: E2 03 00 [12:30:35]MH_I2C_Read... [12:30:35]Read from MH i2c: E2 03 00 87 24 00 90 00 1F [12:30:35]RAPDU: 90 00 [12:30:35]wFMCommunicate OK [12:30:35]wFMCommunicate request_size=255 [12:30:35]MH_SAM_APDU [12:30: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 35 FF 03 08 00 03 40 7E 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 7D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7D 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 FD 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7D 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 6C 6D E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 62 E1 01 00 35 04 06 00 BC [12:30:35]Write to MH i2c: E2 02 01 88 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 7E 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 7D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7D 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 FD 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7D 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 6C 6D E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 62 E1 01 00 35 04 06 00 BC 00 00 E3 [12:30:35]Write i2c OK [12:30:35]MH_I2C_Read... [12:30:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:30:35]Read from MH i2c: E2 [12:30:35]MH_I2C_Read... [12:30:35]Read from MH i2c: E2 03 00 [12:30:35]MH_I2C_Read... [12:30:35]Read from MH i2c: E2 03 00 88 24 00 90 00 20 [12:30:35]RAPDU: 90 00 [12:30:35]wFMCommunicate OK [12:30:35]wFMCommunicate request_size=10 [12:30:35]MH_SAM_APDU [12:30:35]CAPDU: 80 0D 02 02 05 5E 99 59 71 5A [12:30:35]Write to MH i2c: E2 0D 00 89 24 80 0D 02 02 05 00 5E 99 59 71 5A 00 00 4C [12:30:35]Write i2c OK [12:30:35]MH_I2C_Read... [12:30:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:30:35]Read from MH i2c: E2 [12:30:35]MH_I2C_Read... [12:30:35]Read from MH i2c: E2 03 00 [12:30:35]MH_I2C_Read... [12:30:35]Read from MH i2c: E2 03 00 89 24 00 90 00 21 [12:30:35]RAPDU: 90 00 [12:30:35]wFMCommunicate OK [12:30:35]wFMCommunicate request_size=4 [12:30:35]MH_SAM_APDU [12:30:35]CAPDU: 80 0D 03 02 [12:30:35]Write to MH i2c: E2 08 00 8A 24 80 0D 03 02 00 00 00 00 29 [12:30:35]Write i2c OK [12:30:35]MH_I2C_Read... [12:30:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:30:35]Read from MH i2c: E2 [12:30:35]MH_I2C_Read... [12:30:35]Read from MH i2c: E2 0B 00 [12:30:35]MH_I2C_Read... [12:30:35]Read from MH i2c: E2 0B 00 8A 24 00 E3 7A 65 14 FD 68 9F F1 90 00 F5 [12:30:35]RAPDU: E3 7A 65 14 FD 68 9F F1 90 00 [12:30:35]wFMCommunicate OK [12:30:35]SAM_PROTO_SignData done [12:30:35]FM_MakeSignedData done [12:30:35]CreateOFDProtocolMessage [12:30:35]wFMCommunicate request_size=4 [12:30:35]MH_SAM_APDU [12:30:35]CAPDU: 80 11 00 00 [12:30:35]Write to MH i2c: E2 08 00 8B 24 80 11 00 00 00 00 00 00 29 [12:30:35]Write i2c OK [12:30:35]MH_I2C_Read... [12:30:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:35]Read from MH i2c: E2 [12:30:35]MH_I2C_Read... [12:30:35]Read from MH i2c: E2 17 00 [12:30:35]MH_I2C_Read... [12:30:35]Read from MH i2c: E2 17 00 8B 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 87 [12:30:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [12:30:35]wFMCommunicate OK [12:30:35]CreateOFDProtocolMessage done [12:30:35]OFDSenderStorePacket 123234 [12:30:35]StoreOFDPacket docnum=123234 [12:30:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 23 FC 07 01 3C 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 7E 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 7D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7D 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 FD 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7D 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 6C 6D E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 62 E1 01 00 35 04 06 00 BC 5E 99 59 71 5A E3 7A 65 14 FD 68 9F F1 [12:30:35]CheckFolder [12:30:35]dirname=/storage/ofd_packets [12:30:35]CheckFolder done [12:30:35]ProducePacketName [12:30:35]name=ofd_packets/00123234 [12:30:35]NVStorageSaveData ofd_packets/00123234 [12:30:35]File name is /storage/ofd_packets/00123234 [12:30:35]Write 301 bytes [12:30:35]NVStorageSaveData done [12:30:35]OFDSenderStorePacket done [12:30:35]KKMCreateOFDPacket done [12:30:35]NVStorageSaveData kkm_last_timestamp [12:30:35]File name is /storage/kkm_last_timestamp [12:30:35]Write 4 bytes [12:30:35]NVStorageSaveData done [12:30:35]ExternCall_PrintAddStr [12:30:35]wPrintStart [12:30:35]Write to MH i2c: 01 00 00 8C 24 B0 [12:30:35]Write i2c OK [12:30:35]MH_I2C_Read... [12:30:35]Read from MH i2c: 01 [12:30:35]MH_I2C_Read... [12:30:35]Read from MH i2c: 01 07 00 [12:30:35]MH_I2C_Read... [12:30:35]Read from MH i2c: 01 07 00 8C 24 00 00 00 00 00 FF 0F C5 [12:30:35]RasterBufferAndPrint [12:30:35]line Счет N : (1)1106159 [12:30:35]line ИНН: 02508201610067 [12:30:35]line Контрольно-Кассовый Чек [12:30:35]line ПРОДАЖА [12:30:35]line ТРК (МРК, ГНК) : 21 [12:30:35]line Товар: 2710124130 [12:30:35]line Аи-92-К-5 [12:30:35]line 32.320 * 61.90 [12:30:35]line = 2000.61 [12:30:35]line НДС 12% НСП 1% [12:30:35]line > о реализуемом товаре [12:30:35]line ИТОГО: 2000.61 [12:30:35]line НСП 1% : 17.70 [12:30:35]line НДС 12% : 212.45 [12:30:35]line Наличными: 0.00 [12:30:35]line Безнал.: 2000.61 [12:30:35]line Место: АЗС № 25 "Партнер Нефть" [12:30:35]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [12:30:35]line СНО: Общий режим [12:30:35]line Чек 91 03.03.2024 12:30 [12:30:35]line Смена: 323 ФФД: 1.0 [12:30:35]line ЗНМ: 0300000019 [12:30:35]line РНМ: 0000000000090573 [12:30:35]line Версия ККМ: 001 [12:30:35]line Платежная система: Бакай Банк [12:30:35]line ФМ: 0000000000874798 [12:30:35]line ФД: 123234 [12:30:35]line ФПД: 207114485723482 [12:30:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T123036&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123234&fm=207114485723482&tin=02508201610067®Number=0000000000090573&sum=200061 [12:30:36]OFD Sender: Processing packet 123234 [packets to send 112, broken 111] [12:30:36]ProducePacketName [12:30:36]name=ofd_packets/00123234 [12:30:36]OFD Sender: To server: pG, [12:30:36]CommunicateWithHost lk.salyk.kg:30040 [12:30:36]ConnectInit lk.salyk.kg [12:30:36]written 0, free lines is 4095 [12:30:36]Connected sock=6 [12:30: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 37 39 38 0F 01 00 00 23 FC 07 01 3C 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 7E 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 7D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7D 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 FD 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7D 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 6C 6D E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 62 E1 01 00 35 04 06 00 BC 5E 99 59 71 5A E3 7A 65 14 FD 68 9F F1 [12:30:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 87 57 47 00 F0 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 37 39 38 10 04 04 00 62 E1 01 00 F4 03 04 00 99 19 E4 65 B6 04 01 00 00 6D CB 3F 47 80 51 63 52 [12:30:36]CommunicateWithHost err = 0 [12:30:36]CheckOFDResponse [12:30:36]1017 (14) - 77093643461234 [12:30:36]1041 (16) - 0000000000874798 [12:30:36]1040 (4) - 123234 [12:30:36]1012 (4) - 03.03.2024 06:32 [12:30:36]1206 (1) - 0 [12:30:36]OFD Sender: Remove packet 123234 [12:30:36]ProducePacketName [12:30:36]name=ofd_packets/00123234 [12:30:36]NVStorageDeleteData [12:30:36]Write to MH i2c: 01 00 00 B6 24 DA [12:30:36]Write i2c OK [12:30:36]MH_I2C_Read... [12:30:36]Read from MH i2c: 01 [12:30:36]MH_I2C_Read... [12:30:36]Read from MH i2c: 01 07 00 [12:30:36]MH_I2C_Read... [12:30:36]Read from MH i2c: 01 07 00 B6 24 00 00 00 00 00 F7 0C E4 [12:30:36]RasterBufferAndPrint [12:30:36]line [12:30:36]line [12:30:36]line [12:30:36]line [12:30:36]line [12:30:36]written 0, free lines is 3331 [12:30:36]MH_Cut [12:30:36]Write to MH i2c: D1 01 00 BD 24 01 B3 [12:30:36]Write i2c OK [12:30:36]MH_I2C_Read... [12:30:36]Read from MH i2c: D1 [12:30:36]MH_I2C_Read... [12:30:36]Read from MH i2c: D1 01 00 [12:30:36]MH_I2C_Read... [12:30:36]Read from MH i2c: D1 01 00 BD 24 00 B2 [12:30:36]Write to MH i2c: 01 00 00 BE 24 E2 [12:30:36]Write i2c OK [12:30:36]MH_I2C_Read... [12:30:36]OFD Sender: No OFD packet to send [12:30:37]*** Cut start [12:30:37]*** Purtial cut [12:30:37]*** Stage 1: CUTSNS_PIN = 1 [12:30:39]Read from MH i2c: 01 [12:30:39]MH_I2C_Read... [12:30:39]*** Stop cut motor [12:30:39]*** Cut end [12:30:39]Read from MH i2c: 01 07 00 [12:30:39]MH_I2C_Read... [12:30:39]Read from MH i2c: 01 07 00 BE 24 00 00 00 00 00 FF 0F F7 [12:30:39]process_action close_receipt done [12:30:39]requested_data is exist [12:30:39]produce_requested_data [12:30:39]requested_item fm.sn is exist - process it [12:30:39]wFMCommunicate request_size=4 [12:30:39]MH_SAM_APDU [12:30:39]CAPDU: 80 11 00 00 [12:30:39]Write to MH i2c: E2 08 00 BF 24 80 11 00 00 00 00 00 00 5D [12:30:39]Write i2c OK [12:30:39]MH_I2C_Read... [12:30:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:39]Read from MH i2c: E2 [12:30:39]MH_I2C_Read... [12:30:39]Read from MH i2c: E2 17 00 [12:30:39]MH_I2C_Read... [12:30:39]Read from MH i2c: E2 17 00 BF 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 BB [12:30:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [12:30:39]wFMCommunicate OK [12:30:39]requested_item fd.num is exist - process it [12:30:39]SAM_PROTO_GetFieldsCounters [12:30:39]wFMCommunicate request_size=4 [12:30:39]MH_SAM_APDU [12:30:39]CAPDU: 80 13 00 00 [12:30:39]Write to MH i2c: E2 08 00 C0 24 80 13 00 00 00 00 00 00 60 [12:30:39]Write i2c OK [12:30:39]MH_I2C_Read... [12:30:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:30:39]Read from MH i2c: E2 [12:30:39]MH_I2C_Read... [12:30:39]Read from MH i2c: E2 62 00 [12:30:39]MH_I2C_Read... [12:30:39]Read from MH i2c: E2 62 00 C0 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 62 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 24 [12:30: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 62 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:30:39]wFMCommunicate OK [12:30:39]SAM_PROTO_GetFieldsCounters done [12:30:39]requested_item shift.num is exist - process it [12:30:39]requested_item shift.opened is exist - process it [12:30:39]req_shift_opened [12:30:39]FM_GetShiftState [12:30:39]SAM_PROTO_GetShiftState [12:30:39]wFMCommunicate request_size=4 [12:30:39]MH_SAM_APDU [12:30:39]CAPDU: 80 13 01 00 [12:30:39]Write to MH i2c: E2 08 00 C1 24 80 13 01 00 00 00 00 00 62 [12:30:39]Write i2c OK [12:30:39]MH_I2C_Read... [12:30:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:30:39]Read from MH i2c: E2 [12:30:39]MH_I2C_Read... [12:30:39]Read from MH i2c: E2 0E 00 [12:30:39]MH_I2C_Read... [12:30:39]Read from MH i2c: E2 0E 00 C1 24 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 24 [12:30:39]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [12:30:39]wFMCommunicate OK [12:30:39]SAM_PROTO_GetShiftState done [12:30:39]FM_GetShiftState done [12:30:39]req_shift_opened done [12:30:39]requested_item shift.open_date is exist - process it [12:30:39]req_shift_open_date [12:30:39]req_shift_open_date done [12:30:39]produce_requested_data done [12:30:39]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123234,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [12:30:39]process_action_free close_receipt [12:30:39]json_value_free [12:30:39]json_value_free done [12:30:39]process_json_proto returns [12:30:39]Send response to host [12:30:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123234,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [12:30:39]free response buf [12:30:39]execute_script done [12:30:39]execute_script returns [12:30:39]free content buf [12:30:39]Sock 9.Close socket [12:30:39]Sock 9.Thread stoped [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:42]OFD Sender: No OFD packet to send [12:31:47]OFD Sender: No OFD packet to send [12:31:52]OFD Sender: No OFD packet to send [12:31:57]OFD Sender: No OFD packet to send [12:32:02]OFD Sender: No OFD packet to send [12:32:07]OFD Sender: No OFD packet to send [12:32:12]OFD Sender: No OFD packet to send [12:32:17]OFD Sender: No OFD packet to send [12:32:22]OFD Sender: No OFD packet to send [12:32:27]OFD Sender: No OFD packet to send [12:32:32]OFD Sender: No OFD packet to send [12:32:37]OFD Sender: No OFD packet to send [12:32:42]OFD Sender: No OFD packet to send [12:32:47]OFD Sender: No OFD packet to send [12:32:52]OFD Sender: No OFD packet to send [12:32:57]OFD Sender: No OFD packet to send [12:33:02]OFD Sender: No OFD packet to send [12:33:07]OFD Sender: No OFD packet to send [12:33:12]OFD Sender: No OFD packet to send [12:33:17]OFD Sender: No OFD packet to send [12:33:22]OFD Sender: No OFD packet to send [12:33:27]OFD Sender: No OFD packet to send [12:33:32]OFD Sender: No OFD packet to send [12:33:37]OFD Sender: No OFD packet to send [12:33:42]OFD Sender: No OFD packet to send [12:33:47]OFD Sender: No OFD packet to send [12:33:52]OFD Sender: No OFD packet to send [12:33:57]OFD Sender: No OFD packet to send [12:34:02]OFD Sender: No OFD packet to send [12:34:07]OFD Sender: No OFD packet to send [12:34:12]OFD Sender: No OFD packet to send [12:34:17]OFD Sender: No OFD packet to send [12:34:19]accept exits with 7 [12:34:19]New connection [12:34:19]New thread 3067395428 created [12:34:19]Thread 3067252068 joined [12:34:19]Waiting for new connection... [12:34:19] Sock 7.Parse request [12:34:19]Sock 7.Check first char [12:34:19]Sock 7.First char is OK [12:34:19]request: POST /json_proto HTTP/1.0 [12:34:19]Method: POST [12:34:19]URL: /json_proto [12:34:19]Method is POST - this is cgi request [12:34:19]url: /json_proto [12:34:19]query_string will be loaded in cgi processing [12:34:19]execute_cgi json_proto POST (null) [12:34:19]execute_cgi path=json_proto method=POST [12:34:19]POST find Content-Length [12:34:19]Host: 172.17.48.197:8080 [12:34:19]Content-Length: 809 [12:34:19]Content-Type: application/json [12:34:19] [12:34:19]POST finish read [12:34:19]Found Content-Length = 809 [12:34:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106162", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 43.170, "sum" : 3000.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.32 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:34:19]execute_script... [12:34: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)1106162", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 43.170, "sum" : 3000.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.32 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:34:19]POST & json_proto [12:34:19]process_json_proto [12:34:19]json parsed OK: [12:34:19]protocol is kg_v1.0 [12:34:19]action value=close_receipt [12:34:19]process_action close_receipt [12:34:19]cmd_close_receipt [12:34:19]MH_GetDate [12:34:19]Write to MH i2c: F0 00 00 C2 24 D5 [12:34:19]Write i2c OK [12:34:19]MH_I2C_Read... [12:34:19]Read from MH i2c: F0 [12:34:19]MH_I2C_Read... [12:34:19]Read from MH i2c: F0 09 00 [12:34:19]MH_I2C_Read... [12:34:19]Read from MH i2c: F0 09 00 C2 24 00 4E 6E E4 65 6C AF E3 65 46 [12:34:19]GetLastDocTimeStamp 1709469036 [12:34:19]current date 1709469262 [12:34:19]FM_GetShiftState [12:34:19]SAM_PROTO_GetShiftState [12:34:19]wFMCommunicate request_size=4 [12:34:19]MH_SAM_APDU [12:34:19]CAPDU: 80 13 01 00 [12:34:19]Write to MH i2c: E2 08 00 C3 24 80 13 01 00 00 00 00 00 64 [12:34:19]Write i2c OK [12:34:19]MH_I2C_Read... [12:34:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:34:19]Read from MH i2c: E2 [12:34:19]MH_I2C_Read... [12:34:19]Read from MH i2c: E2 0E 00 [12:34:19]MH_I2C_Read... [12:34:19]Read from MH i2c: E2 0E 00 C3 24 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 26 [12:34:19]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [12:34:19]wFMCommunicate OK [12:34:19]SAM_PROTO_GetShiftState done [12:34:19]FM_GetShiftState done [12:34:19]opened in 1709425579 [12:34:19]opened+sec_in_day 1709511979 [12:34:19]quantity*price = 300031 [12:34:19]sum+1 = 300033 [12:34:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.32 НСП 1% : 26.55 НДС 12% : 318.62 Наличными: 0.00 Безнал.: 3000.32 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 92 03.03.2024 12:34 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874798 ФД: 123235 ФПД: 148992697715406 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T123422&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123235&fm=148992697715406&tin=02508201610067®Number=0000000000090573&sum=300032 [12:34:20]StoreToDocumentArchive [12:34:20]shift 323 fd 123235 [12:34:20]save to /storage/0323/doc_00123235 [12:34:20]save last doc name /storage/0323/doc_00123235 to /storage/kkm_last_doc_name [12:34:20]save OK [12:34:20]Clear old archive folders... [12:34:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:34:20]tlvbuf is 00D9E770 [12:34:20]SAM_PROTO_ClearQueue [12:34:20]wFMCommunicate request_size=4 [12:34:20]MH_SAM_APDU [12:34:20]CAPDU: 80 09 00 00 [12:34:20]Write to MH i2c: E2 08 00 D0 24 80 09 00 00 00 00 00 00 66 [12:34:20]Write i2c OK [12:34:20]MH_I2C_Read... [12:34:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:34:21]Read from MH i2c: E2 [12:34:21]MH_I2C_Read... [12:34:21]Read from MH i2c: E2 03 00 [12:34:21]MH_I2C_Read... [12:34:21]Read from MH i2c: E2 03 00 D0 24 00 90 00 68 [12:34:21]RAPDU: 90 00 [12:34:21]wFMCommunicate OK [12:34:21]SAM_PROTO_ClearQueue done [12:34:21]KKMCreateOFDPacket [12:34:21]OFDProtocolAddRootSTLVToBuf [12:34:21]FM_MakeSignedData [12:34:21]FM_MakeSignedData [12:34:21]SAM_PROTO_SignData [12:34:21]wFMCommunicate request_size=4 [12:34:21]MH_SAM_APDU [12:34:21]CAPDU: 80 0D 01 02 [12:34:21]Write to MH i2c: E2 08 00 D1 24 80 0D 01 02 00 00 00 00 6E [12:34:21]Write i2c OK [12:34:21]MH_I2C_Read... [12:34:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:34:21]Read from MH i2c: E2 [12:34:21]MH_I2C_Read... [12:34:21]Read from MH i2c: E2 03 00 [12:34:21]MH_I2C_Read... [12:34:21]Read from MH i2c: E2 03 00 D1 24 00 90 00 69 [12:34:21]RAPDU: 90 00 [12:34:21]wFMCommunicate OK [12:34:21]wFMCommunicate request_size=255 [12:34:21]MH_SAM_APDU [12:34:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A2 A8 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 00 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 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 76 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 4E 6E E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 63 E1 01 00 35 04 06 00 87 [12:34:21]Write to MH i2c: E2 02 01 D2 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A2 A8 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 00 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 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 76 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 4E 6E E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 63 E1 01 00 35 04 06 00 87 00 00 A5 [12:34:21]Write i2c OK [12:34:21]MH_I2C_Read... [12:34:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:34:21]Read from MH i2c: E2 [12:34:21]MH_I2C_Read... [12:34:21]Read from MH i2c: E2 03 00 [12:34:21]MH_I2C_Read... [12:34:21]Read from MH i2c: E2 03 00 D2 24 00 90 00 6A [12:34:21]RAPDU: 90 00 [12:34:21]wFMCommunicate OK [12:34:21]wFMCommunicate request_size=10 [12:34:21]MH_SAM_APDU [12:34:21]CAPDU: 80 0D 02 02 05 82 10 D2 4A CE [12:34:21]Write to MH i2c: E2 0D 00 D3 24 80 0D 02 02 05 00 82 10 D2 4A CE 00 00 F7 [12:34:21]Write i2c OK [12:34:21]MH_I2C_Read... [12:34:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:34:21]Read from MH i2c: E2 [12:34:21]MH_I2C_Read... [12:34:21]Read from MH i2c: E2 03 00 [12:34:21]MH_I2C_Read... [12:34:21]Read from MH i2c: E2 03 00 D3 24 00 90 00 6B [12:34:21]RAPDU: 90 00 [12:34:21]wFMCommunicate OK [12:34:21]wFMCommunicate request_size=4 [12:34:21]MH_SAM_APDU [12:34:21]CAPDU: 80 0D 03 02 [12:34:21]Write to MH i2c: E2 08 00 D4 24 80 0D 03 02 00 00 00 00 73 [12:34:21]Write i2c OK [12:34:21]MH_I2C_Read... [12:34:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:34:21]Read from MH i2c: E2 [12:34:21]MH_I2C_Read... [12:34:21]Read from MH i2c: E2 0B 00 [12:34:21]MH_I2C_Read... [12:34:21]Read from MH i2c: E2 0B 00 D4 24 00 9F 53 87 AF 0D 21 69 38 90 00 6B [12:34:21]RAPDU: 9F 53 87 AF 0D 21 69 38 90 00 [12:34:21]wFMCommunicate OK [12:34:21]SAM_PROTO_SignData done [12:34:21]FM_MakeSignedData done [12:34:21]CreateOFDProtocolMessage [12:34:21]wFMCommunicate request_size=4 [12:34:21]MH_SAM_APDU [12:34:21]CAPDU: 80 11 00 00 [12:34:21]Write to MH i2c: E2 08 00 D5 24 80 11 00 00 00 00 00 00 73 [12:34:21]Write i2c OK [12:34:21]MH_I2C_Read... [12:34:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:21]Read from MH i2c: E2 [12:34:21]MH_I2C_Read... [12:34:21]Read from MH i2c: E2 17 00 [12:34:21]MH_I2C_Read... [12:34:21]Read from MH i2c: E2 17 00 D5 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 D1 [12:34:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [12:34:21]wFMCommunicate OK [12:34:21]CreateOFDProtocolMessage done [12:34:21]OFDSenderStorePacket 123235 [12:34:21]StoreOFDPacket docnum=123235 [12:34:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 CC 97 07 01 38 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A2 A8 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 00 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 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 76 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 4E 6E E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 63 E1 01 00 35 04 06 00 87 82 10 D2 4A CE 9F 53 87 AF 0D 21 69 38 [12:34:21]CheckFolder [12:34:21]dirname=/storage/ofd_packets [12:34:21]CheckFolder done [12:34:21]ProducePacketName [12:34:21]name=ofd_packets/00123235 [12:34:21]NVStorageSaveData ofd_packets/00123235 [12:34:21]File name is /storage/ofd_packets/00123235 [12:34:21]Write 301 bytes [12:34:21]NVStorageSaveData done [12:34:21]OFDSenderStorePacket done [12:34:21]KKMCreateOFDPacket done [12:34:21]NVStorageSaveData kkm_last_timestamp [12:34:21]File name is /storage/kkm_last_timestamp [12:34:21]Write 4 bytes [12:34:21]NVStorageSaveData done [12:34:21]ExternCall_PrintAddStr [12:34:21]wPrintStart [12:34:21]Write to MH i2c: 01 00 00 D6 24 FA [12:34:21]Write i2c OK [12:34:21]MH_I2C_Read... [12:34:21]Read from MH i2c: 01 [12:34:21]MH_I2C_Read... [12:34:21]Read from MH i2c: 01 07 00 [12:34:21]MH_I2C_Read... [12:34:21]Read from MH i2c: 01 07 00 D6 24 00 00 00 00 00 FF 0F 0F [12:34:21]RasterBufferAndPrint [12:34:21]line Счет N : (1)1106162 [12:34:21]line ИНН: 02508201610067 [12:34:21]line Контрольно-Кассовый Чек [12:34:21]line ПРОДАЖА [12:34:21]line ТРК (МРК, ГНК) : 63 [12:34:21]line Товар: 2710124500 [12:34:21]line Аи-95-К-5 [12:34:21]line 43.170 * 69.50 [12:34:21]line = 3000.32 [12:34:21]line НДС 12% НСП 1% [12:34:21]line > о реализуемом товаре [12:34:21]line ИТОГО: 3000.32 [12:34:21]line НСП 1% : 26.55 [12:34:21]line НДС 12% : 318.62 [12:34:21]line Наличными: 0.00 [12:34:21]line Безнал.: 3000.32 [12:34:21]line Место: АЗС № 25 "Партнер Нефть" [12:34:21]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [12:34:21]line СНО: Общий режим [12:34:21]line Чек 92 03.03.2024 12:34 [12:34:21]line Смена: 323 ФФД: 1.0 [12:34:21]line ЗНМ: 0300000019 [12:34:21]line РНМ: 0000000000090573 [12:34:21]line Версия ККМ: 001 [12:34:21]line Платежная система: О! деньги [12:34:21]line ФМ: 0000000000874798 [12:34:21]line ФД: 123235 [12:34:21]line ФПД: 148992697715406 [12:34:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T123422&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123235&fm=148992697715406&tin=02508201610067®Number=0000000000090573&sum=300032 [12:34:21]OFD Sender: Processing packet 123235 [packets to send 112, broken 111] [12:34:21]ProducePacketName [12:34:21]name=ofd_packets/00123235 [12:34:21]OFD Sender: To server: pG, [12:34:21]CommunicateWithHost lk.salyk.kg:30040 [12:34:21]ConnectInit lk.salyk.kg [12:34:21]written 0, free lines is 4095 [12:34:21]Connected sock=11 [12:34: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 37 39 38 0F 01 00 00 CC 97 07 01 38 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A2 A8 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 00 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 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 76 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 4E 6E E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 63 E1 01 00 35 04 06 00 87 82 10 D2 4A CE 9F 53 87 AF 0D 21 69 38 [12:34:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 57 FC 47 00 F2 B5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 63 E1 01 00 F4 03 04 00 7A 1A E4 65 B6 04 01 00 00 EE B8 F8 91 19 7C 57 29 [12:34:22]CommunicateWithHost err = 0 [12:34:22]CheckOFDResponse [12:34:22]1017 (14) - 77093643461234 [12:34:22]1041 (16) - 0000000000874798 [12:34:22]1040 (4) - 123235 [12:34:22]1012 (4) - 03.03.2024 06:36 [12:34:22]1206 (1) - 0 [12:34:22]OFD Sender: Remove packet 123235 [12:34:22]ProducePacketName [12:34:22]name=ofd_packets/00123235 [12:34:22]NVStorageDeleteData [12:34:22]Write to MH i2c: 01 00 00 00 25 25 [12:34:22]Write i2c OK [12:34:22]MH_I2C_Read... [12:34:22]Read from MH i2c: 01 [12:34:22]MH_I2C_Read... [12:34:22]Read from MH i2c: 01 07 00 [12:34:22]MH_I2C_Read... [12:34:22]Read from MH i2c: 01 07 00 00 25 00 00 00 00 00 FA 0C 32 [12:34:22]RasterBufferAndPrint [12:34:22]line [12:34:22]line [12:34:22]line [12:34:22]line [12:34:22]line [12:34:22]written 0, free lines is 3328 [12:34:22]MH_Cut [12:34:22]Write to MH i2c: D1 01 00 07 25 01 FE [12:34:22]Write i2c OK [12:34:22]MH_I2C_Read... [12:34:22]Read from MH i2c: D1 [12:34:22]MH_I2C_Read... [12:34:22]Read from MH i2c: D1 01 00 [12:34:22]MH_I2C_Read... [12:34:22]Read from MH i2c: D1 01 00 07 25 00 FD [12:34:22]Write to MH i2c: 01 00 00 08 25 2D [12:34:22]Write i2c OK [12:34:22]MH_I2C_Read... [12:34:22]OFD Sender: No OFD packet to send [12:34:22]*** Cut start [12:34:22]*** Purtial cut [12:34:22]*** Stage 1: CUTSNS_PIN = 1 [12:34:24]Read from MH i2c: 01 [12:34:24]MH_I2C_Read... [12:34:24]*** Stop cut motor [12:34:25]*** Cut end [12:34:25]Read from MH i2c: 01 07 00 [12:34:25]MH_I2C_Read... [12:34:25]Read from MH i2c: 01 07 00 08 25 00 00 00 00 00 FF 0F 42 [12:34:25]process_action close_receipt done [12:34:25]requested_data is exist [12:34:25]produce_requested_data [12:34:25]requested_item fm.sn is exist - process it [12:34:25]wFMCommunicate request_size=4 [12:34:25]MH_SAM_APDU [12:34:25]CAPDU: 80 11 00 00 [12:34:25]Write to MH i2c: E2 08 00 09 25 80 11 00 00 00 00 00 00 A8 [12:34:25]Write i2c OK [12:34:25]MH_I2C_Read... [12:34:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:25]Read from MH i2c: E2 [12:34:25]MH_I2C_Read... [12:34:25]Read from MH i2c: E2 17 00 [12:34:25]MH_I2C_Read... [12:34:25]Read from MH i2c: E2 17 00 09 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 06 [12:34:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [12:34:25]wFMCommunicate OK [12:34:25]requested_item fd.num is exist - process it [12:34:25]SAM_PROTO_GetFieldsCounters [12:34:25]wFMCommunicate request_size=4 [12:34:25]MH_SAM_APDU [12:34:25]CAPDU: 80 13 00 00 [12:34:25]Write to MH i2c: E2 08 00 0A 25 80 13 00 00 00 00 00 00 AB [12:34:25]Write i2c OK [12:34:25]MH_I2C_Read... [12:34:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:34:25]Read from MH i2c: E2 [12:34:25]MH_I2C_Read... [12:34:25]Read from MH i2c: E2 62 00 [12:34:25]MH_I2C_Read... [12:34:25]Read from MH i2c: E2 62 00 0A 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 63 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 73 [12:34:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 63 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:34:25]wFMCommunicate OK [12:34:25]SAM_PROTO_GetFieldsCounters done [12:34:25]requested_item shift.num is exist - process it [12:34:25]requested_item shift.opened is exist - process it [12:34:25]req_shift_opened [12:34:25]FM_GetShiftState [12:34:25]SAM_PROTO_GetShiftState [12:34:25]wFMCommunicate request_size=4 [12:34:25]MH_SAM_APDU [12:34:25]CAPDU: 80 13 01 00 [12:34:25]Write to MH i2c: E2 08 00 0B 25 80 13 01 00 00 00 00 00 AD [12:34:25]Write i2c OK [12:34:25]MH_I2C_Read... [12:34:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:34:25]Read from MH i2c: E2 [12:34:25]MH_I2C_Read... [12:34:25]Read from MH i2c: E2 0E 00 [12:34:25]MH_I2C_Read... [12:34:25]Read from MH i2c: E2 0E 00 0B 25 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 6F [12:34:25]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [12:34:25]wFMCommunicate OK [12:34:25]SAM_PROTO_GetShiftState done [12:34:25]FM_GetShiftState done [12:34:25]req_shift_opened done [12:34:25]requested_item shift.open_date is exist - process it [12:34:25]req_shift_open_date [12:34:25]req_shift_open_date done [12:34:25]produce_requested_data done [12:34:25]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123235,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [12:34:25]process_action_free close_receipt [12:34:25]json_value_free [12:34:25]json_value_free done [12:34:25]process_json_proto returns [12:34:25]Send response to host [12:34:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123235,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [12:34:25]free response buf [12:34:25]execute_script done [12:34:25]execute_script returns [12:34:25]free content buf [12:34:25]Sock 7.Close socket [12:34:25]Sock 7.Thread stoped [12:34:27]OFD Sender: No OFD packet to send [12:34:32]OFD Sender: No OFD packet to send [12:34:37]OFD Sender: No OFD packet to send [12:34:42]OFD Sender: No OFD packet to send [12:34:47]OFD Sender: No OFD packet to send [12:34:52]OFD Sender: No OFD packet to send [12:34:57]OFD Sender: No OFD packet to send [12:35:02]OFD Sender: No OFD packet to send [12:35:07]OFD Sender: No OFD packet to send [12:35:12]OFD Sender: No OFD packet to send [12:35:17]OFD Sender: No OFD packet to send [12:35:22]OFD Sender: No OFD packet to send [12:35:27]OFD Sender: No OFD packet to send [12:35:32]OFD Sender: No OFD packet to send [12:35:37]OFD Sender: No OFD packet to send [12:35:42]OFD Sender: No OFD packet to send [12:35:47]OFD Sender: No OFD packet to send [12:35:52]OFD Sender: No OFD packet to send [12:35:57]OFD Sender: No OFD packet to send [12:36:02]OFD Sender: No OFD packet to send [12:36:07]OFD Sender: No OFD packet to send [12:36:12]OFD Sender: No OFD packet to send [12:36:17]OFD Sender: No OFD packet to send [12:36:22]OFD Sender: No OFD packet to send [12:36:27]OFD Sender: No OFD packet to send [12:36:32]OFD Sender: No OFD packet to send [12:36:37]OFD Sender: No OFD packet to send [12:36:42]OFD Sender: No OFD packet to send [12:36:47]OFD Sender: No OFD packet to send [12:36:52]OFD Sender: No OFD packet to send [12:36:57]OFD Sender: No OFD packet to send [12:37:02]OFD Sender: No OFD packet to send [12:37:07]OFD Sender: No OFD packet to send [12:37:12]OFD Sender: No OFD packet to send [12:37:17]OFD Sender: No OFD packet to send [12:37:22]OFD Sender: No OFD packet to send [12:37:27]OFD Sender: No OFD packet to send [12:37:32]OFD Sender: No OFD packet to send [12:37:37]OFD Sender: No OFD packet to send [12:37:42]OFD Sender: No OFD packet to send [12:37:47]OFD Sender: No OFD packet to send [12:37:52]OFD Sender: No OFD packet to send [12:37:57]OFD Sender: No OFD packet to send [12:38:02]OFD Sender: No OFD packet to send [12:38:07]OFD Sender: No OFD packet to send [12:38:12]OFD Sender: No OFD packet to send [12:38:17]OFD Sender: No OFD packet to send [12:38:22]OFD Sender: No OFD packet to send [12:38:27]OFD Sender: No OFD packet to send [12:38:32]OFD Sender: No OFD packet to send [12:38:37]OFD Sender: No OFD packet to send [12:38:42]OFD Sender: No OFD packet to send [12:38:44]accept exits with 9 [12:38:44]New connection [12:38:44]New thread 3067252068 created [12:38:44]Thread 3067395428 joined [12:38:44]Waiting for new connection... [12:38:44] Sock 9.Parse request [12:38:44]Sock 9.Check first char [12:38:44]Sock 9.First char is OK [12:38:44]request: POST /json_proto HTTP/1.0 [12:38:44]Method: POST [12:38:44]URL: /json_proto [12:38:44]Method is POST - this is cgi request [12:38:44]url: /json_proto [12:38:44]query_string will be loaded in cgi processing [12:38:44]execute_cgi json_proto POST (null) [12:38:44]execute_cgi path=json_proto method=POST [12:38:44]POST find Content-Length [12:38:44]Host: 172.17.48.197:8080 [12:38:44]Content-Length: 817 [12:38:44]Content-Type: application/json [12:38:44] [12:38:44]POST finish read [12:38:44]Found Content-Length = 817 [12:38:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106163", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:38:44]execute_script... [12:38: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)1106163", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:38:44]POST & json_proto [12:38:44]process_json_proto [12:38:44]json parsed OK: [12:38:44]protocol is kg_v1.0 [12:38:44]action value=close_receipt [12:38:44]process_action close_receipt [12:38:44]cmd_close_receipt [12:38:44]MH_GetDate [12:38:44]Write to MH i2c: F0 00 00 0C 25 20 [12:38:44]Write i2c OK [12:38:44]MH_I2C_Read... [12:38:44]Read from MH i2c: F0 [12:38:44]MH_I2C_Read... [12:38:44]Read from MH i2c: F0 09 00 [12:38:44]MH_I2C_Read... [12:38:44]Read from MH i2c: F0 09 00 0C 25 00 57 6F E4 65 6C AF E3 65 9B [12:38:44]GetLastDocTimeStamp 1709469262 [12:38:44]current date 1709469527 [12:38:44]FM_GetShiftState [12:38:44]SAM_PROTO_GetShiftState [12:38:44]wFMCommunicate request_size=4 [12:38:44]MH_SAM_APDU [12:38:44]CAPDU: 80 13 01 00 [12:38:44]Write to MH i2c: E2 08 00 0D 25 80 13 01 00 00 00 00 00 AF [12:38:44]Write i2c OK [12:38:44]MH_I2C_Read... [12:38:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:44]Read from MH i2c: E2 [12:38:44]MH_I2C_Read... [12:38:44]Read from MH i2c: E2 0E 00 [12:38:44]MH_I2C_Read... [12:38:44]Read from MH i2c: E2 0E 00 0D 25 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 71 [12:38:44]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [12:38:44]wFMCommunicate OK [12:38:44]SAM_PROTO_GetShiftState done [12:38:44]FM_GetShiftState done [12:38:44]opened in 1709425579 [12:38:44]opened+sec_in_day 1709511979 [12:38:44]quantity*price = 50015 [12:38:44]sum+1 = 50016 [12:38:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.15 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.15 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 93 03.03.2024 12:38 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874798 ФД: 123236 ФПД: 267115009703307 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T123847&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123236&fm=267115009703307&tin=02508201610067®Number=0000000000090573&sum=50015 [12:38:45]StoreToDocumentArchive [12:38:45]shift 323 fd 123236 [12:38:45]save to /storage/0323/doc_00123236 [12:38:45]save last doc name /storage/0323/doc_00123236 to /storage/kkm_last_doc_name [12:38:45]save OK [12:38:45]Clear old archive folders... [12:38:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:38:45]tlvbuf is 00E658E0 [12:38:45]SAM_PROTO_ClearQueue [12:38:45]wFMCommunicate request_size=4 [12:38:45]MH_SAM_APDU [12:38:45]CAPDU: 80 09 00 00 [12:38:45]Write to MH i2c: E2 08 00 1A 25 80 09 00 00 00 00 00 00 B1 [12:38:45]Write i2c OK [12:38:45]MH_I2C_Read... [12:38:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:38:46]Read from MH i2c: E2 [12:38:46]MH_I2C_Read... [12:38:46]Read from MH i2c: E2 03 00 [12:38:46]MH_I2C_Read... [12:38:46]Read from MH i2c: E2 03 00 1A 25 00 90 00 B3 [12:38:46]RAPDU: 90 00 [12:38:46]wFMCommunicate OK [12:38:46]SAM_PROTO_ClearQueue done [12:38:46]KKMCreateOFDPacket [12:38:46]OFDProtocolAddRootSTLVToBuf [12:38:46]FM_MakeSignedData [12:38:46]FM_MakeSignedData [12:38:46]SAM_PROTO_SignData [12:38:46]wFMCommunicate request_size=4 [12:38:46]MH_SAM_APDU [12:38:46]CAPDU: 80 0D 01 02 [12:38:46]Write to MH i2c: E2 08 00 1B 25 80 0D 01 02 00 00 00 00 B9 [12:38:46]Write i2c OK [12:38:46]MH_I2C_Read... [12:38:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:38:46]Read from MH i2c: E2 [12:38:46]MH_I2C_Read... [12:38:46]Read from MH i2c: E2 03 00 [12:38:46]MH_I2C_Read... [12:38:46]Read from MH i2c: E2 03 00 1B 25 00 90 00 B4 [12:38:46]RAPDU: 90 00 [12:38:46]wFMCommunicate OK [12:38:46]wFMCommunicate request_size=255 [12:38:46]MH_SAM_APDU [12:38:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 57 6F E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 64 E1 01 00 35 04 06 00 F2 [12:38:46]Write to MH i2c: E2 02 01 1C 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 57 6F E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 64 E1 01 00 35 04 06 00 F2 00 00 9F [12:38:46]Write i2c OK [12:38:46]MH_I2C_Read... [12:38:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:46]Read from MH i2c: E2 [12:38:46]MH_I2C_Read... [12:38:46]Read from MH i2c: E2 03 00 [12:38:46]MH_I2C_Read... [12:38:46]Read from MH i2c: E2 03 00 1C 25 00 90 00 B5 [12:38:46]RAPDU: 90 00 [12:38:46]wFMCommunicate OK [12:38:46]wFMCommunicate request_size=10 [12:38:46]MH_SAM_APDU [12:38:46]CAPDU: 80 0D 02 02 05 F0 8F 44 7D 8B [12:38:46]Write to MH i2c: E2 0D 00 1D 25 80 0D 02 02 05 00 F0 8F 44 7D 8B 00 00 91 [12:38:46]Write i2c OK [12:38:46]MH_I2C_Read... [12:38:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:46]Read from MH i2c: E2 [12:38:46]MH_I2C_Read... [12:38:46]Read from MH i2c: E2 03 00 [12:38:46]MH_I2C_Read... [12:38:46]Read from MH i2c: E2 03 00 1D 25 00 90 00 B6 [12:38:46]RAPDU: 90 00 [12:38:46]wFMCommunicate OK [12:38:46]wFMCommunicate request_size=4 [12:38:46]MH_SAM_APDU [12:38:46]CAPDU: 80 0D 03 02 [12:38:46]Write to MH i2c: E2 08 00 1E 25 80 0D 03 02 00 00 00 00 BE [12:38:46]Write i2c OK [12:38:46]MH_I2C_Read... [12:38:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:38:46]Read from MH i2c: E2 [12:38:46]MH_I2C_Read... [12:38:46]Read from MH i2c: E2 0B 00 [12:38:46]MH_I2C_Read... [12:38:46]Read from MH i2c: E2 0B 00 1E 25 00 68 20 3F A6 52 B3 1A BD 90 00 08 [12:38:46]RAPDU: 68 20 3F A6 52 B3 1A BD 90 00 [12:38:46]wFMCommunicate OK [12:38:46]SAM_PROTO_SignData done [12:38:46]FM_MakeSignedData done [12:38:46]CreateOFDProtocolMessage [12:38:46]wFMCommunicate request_size=4 [12:38:46]MH_SAM_APDU [12:38:46]CAPDU: 80 11 00 00 [12:38:46]Write to MH i2c: E2 08 00 1F 25 80 11 00 00 00 00 00 00 BE [12:38:46]Write i2c OK [12:38:46]MH_I2C_Read... [12:38:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:46]Read from MH i2c: E2 [12:38:46]MH_I2C_Read... [12:38:46]Read from MH i2c: E2 17 00 [12:38:46]MH_I2C_Read... [12:38:46]Read from MH i2c: E2 17 00 1F 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 1C [12:38:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [12:38:46]wFMCommunicate OK [12:38:46]CreateOFDProtocolMessage done [12:38:46]OFDSenderStorePacket 123236 [12:38:46]StoreOFDPacket docnum=123236 [12:38:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 8D F7 07 01 10 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 57 6F E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 64 E1 01 00 35 04 06 00 F2 F0 8F 44 7D 8B 68 20 3F A6 52 B3 1A BD [12:38:46]CheckFolder [12:38:46]dirname=/storage/ofd_packets [12:38:46]CheckFolder done [12:38:46]ProducePacketName [12:38:46]name=ofd_packets/00123236 [12:38:46]NVStorageSaveData ofd_packets/00123236 [12:38:46]File name is /storage/ofd_packets/00123236 [12:38:46]Write 301 bytes [12:38:46]NVStorageSaveData done [12:38:46]OFDSenderStorePacket done [12:38:46]KKMCreateOFDPacket done [12:38:46]NVStorageSaveData kkm_last_timestamp [12:38:46]File name is /storage/kkm_last_timestamp [12:38:46]Write 4 bytes [12:38:46]NVStorageSaveData done [12:38:46]ExternCall_PrintAddStr [12:38:46]wPrintStart [12:38:46]Write to MH i2c: 01 00 00 20 25 45 [12:38:46]Write i2c OK [12:38:46]MH_I2C_Read... [12:38:46]Read from MH i2c: 01 [12:38:46]MH_I2C_Read... [12:38:46]Read from MH i2c: 01 07 00 [12:38:46]MH_I2C_Read... [12:38:46]Read from MH i2c: 01 07 00 20 25 00 00 00 00 00 FF 0F 5A [12:38:46]RasterBufferAndPrint [12:38:46]line Счет N : (1)1106163 [12:38:46]line ИНН: 02508201610067 [12:38:46]line Контрольно-Кассовый Чек [12:38:46]line ПРОДАЖА [12:38:46]line ТРК (МРК, ГНК) : 21 [12:38:46]line Товар: 2710124130 [12:38:46]line Аи-92-К-5 [12:38:46]line 8.080 * 61.90 [12:38:46]line = 500.15 [12:38:46]line НДС 12% НСП 1% [12:38:46]line > о реализуемом товаре [12:38:46]line ИТОГО: 500.15 [12:38:46]line НСП 1% : 4.43 [12:38:46]line НДС 12% : 53.11 [12:38:46]line Наличными: 0.00 [12:38:46]line Безнал.: 500.15 [12:38:46]line Место: АЗС № 25 "Партнер Нефть" [12:38:46]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [12:38:46]line СНО: Общий режим [12:38:46]line Чек 93 03.03.2024 12:38 [12:38:46]line Смена: 323 ФФД: 1.0 [12:38:46]line ЗНМ: 0300000019 [12:38:46]line РНМ: 0000000000090573 [12:38:46]line Версия ККМ: 001 [12:38:46]line Платежная система: Бакай Банк [12:38:46]line ФМ: 0000000000874798 [12:38:46]line ФД: 123236 [12:38:46]line ФПД: 267115009703307 [12:38:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T123847&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123236&fm=267115009703307&tin=02508201610067®Number=0000000000090573&sum=50015 [12:38:46]OFD Sender: Processing packet 123236 [packets to send 112, broken 111] [12:38:46]ProducePacketName [12:38:46]name=ofd_packets/00123236 [12:38:46]OFD Sender: To server: pG, [12:38:46]CommunicateWithHost lk.salyk.kg:30040 [12:38:46]ConnectInit lk.salyk.kg [12:38:46]written 0, free lines is 4095 [12:38:46]Connected sock=10 [12:38: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 37 39 38 0F 01 00 00 8D F7 07 01 10 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 57 6F E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 64 E1 01 00 35 04 06 00 F2 F0 8F 44 7D 8B 68 20 3F A6 52 B3 1A BD [12:38:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 0D 7D 47 00 BB E1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 64 E1 01 00 F4 03 04 00 83 1B E4 65 B6 04 01 00 00 C1 16 CC 65 42 EA 39 F1 [12:38:47]CommunicateWithHost err = 0 [12:38:47]CheckOFDResponse [12:38:47]1017 (14) - 77093643461234 [12:38:47]1041 (16) - 0000000000874798 [12:38:47]1040 (4) - 123236 [12:38:47]1012 (4) - 03.03.2024 06:41 [12:38:47]1206 (1) - 0 [12:38:47]OFD Sender: Remove packet 123236 [12:38:47]ProducePacketName [12:38:47]name=ofd_packets/00123236 [12:38:47]NVStorageDeleteData [12:38:47]Write to MH i2c: 01 00 00 4A 25 6F [12:38:47]Write i2c OK [12:38:47]MH_I2C_Read... [12:38:47]Read from MH i2c: 01 [12:38:47]MH_I2C_Read... [12:38:47]Read from MH i2c: 01 07 00 [12:38:47]MH_I2C_Read... [12:38:47]Read from MH i2c: 01 07 00 4A 25 00 00 00 00 00 F7 0C 79 [12:38:47]RasterBufferAndPrint [12:38:47]line [12:38:47]line [12:38:47]line [12:38:47]line [12:38:47]line [12:38:47]written 0, free lines is 3327 [12:38:47]MH_Cut [12:38:47]Write to MH i2c: D1 01 00 51 25 01 48 [12:38:47]Write i2c OK [12:38:47]MH_I2C_Read... [12:38:47]Read from MH i2c: D1 [12:38:47]MH_I2C_Read... [12:38:47]Read from MH i2c: D1 01 00 [12:38:47]MH_I2C_Read... [12:38:47]Read from MH i2c: D1 01 00 51 25 00 47 [12:38:47]Write to MH i2c: 01 00 00 52 25 77 [12:38:47]Write i2c OK [12:38:47]MH_I2C_Read... [12:38:47]OFD Sender: No OFD packet to send [12:38:47]*** Cut start [12:38:47]*** Purtial cut [12:38:47]*** Stage 1: CUTSNS_PIN = 1 [12:38:49]Read from MH i2c: 01 [12:38:49]MH_I2C_Read... [12:38:49]*** Stop cut motor [12:38:49]*** Cut end [12:38:49]Read from MH i2c: 01 07 00 [12:38:49]MH_I2C_Read... [12:38:49]Read from MH i2c: 01 07 00 52 25 00 00 00 00 00 FF 0F 8C [12:38:49]process_action close_receipt done [12:38:49]requested_data is exist [12:38:49]produce_requested_data [12:38:49]requested_item fm.sn is exist - process it [12:38:49]wFMCommunicate request_size=4 [12:38:49]MH_SAM_APDU [12:38:49]CAPDU: 80 11 00 00 [12:38:49]Write to MH i2c: E2 08 00 53 25 80 11 00 00 00 00 00 00 F2 [12:38:49]Write i2c OK [12:38:49]MH_I2C_Read... [12:38:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:50]Read from MH i2c: E2 [12:38:50]MH_I2C_Read... [12:38:50]Read from MH i2c: E2 17 00 [12:38:50]MH_I2C_Read... [12:38:50]Read from MH i2c: E2 17 00 53 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 50 [12:38:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [12:38:50]wFMCommunicate OK [12:38:50]requested_item fd.num is exist - process it [12:38:50]SAM_PROTO_GetFieldsCounters [12:38:50]wFMCommunicate request_size=4 [12:38:50]MH_SAM_APDU [12:38:50]CAPDU: 80 13 00 00 [12:38:50]Write to MH i2c: E2 08 00 54 25 80 13 00 00 00 00 00 00 F5 [12:38:50]Write i2c OK [12:38:50]MH_I2C_Read... [12:38:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:38:50]Read from MH i2c: E2 [12:38:50]MH_I2C_Read... [12:38:50]Read from MH i2c: E2 62 00 [12:38:50]MH_I2C_Read... [12:38:50]Read from MH i2c: E2 62 00 54 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 64 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 C1 [12:38: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 64 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:38:50]wFMCommunicate OK [12:38:50]SAM_PROTO_GetFieldsCounters done [12:38:50]requested_item shift.num is exist - process it [12:38:50]requested_item shift.opened is exist - process it [12:38:50]req_shift_opened [12:38:50]FM_GetShiftState [12:38:50]SAM_PROTO_GetShiftState [12:38:50]wFMCommunicate request_size=4 [12:38:50]MH_SAM_APDU [12:38:50]CAPDU: 80 13 01 00 [12:38:50]Write to MH i2c: E2 08 00 55 25 80 13 01 00 00 00 00 00 F7 [12:38:50]Write i2c OK [12:38:50]MH_I2C_Read... [12:38:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:50]Read from MH i2c: E2 [12:38:50]MH_I2C_Read... [12:38:50]Read from MH i2c: E2 0E 00 [12:38:50]MH_I2C_Read... [12:38:50]Read from MH i2c: E2 0E 00 55 25 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 B9 [12:38:50]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [12:38:50]wFMCommunicate OK [12:38:50]SAM_PROTO_GetShiftState done [12:38:50]FM_GetShiftState done [12:38:50]req_shift_opened done [12:38:50]requested_item shift.open_date is exist - process it [12:38:50]req_shift_open_date [12:38:50]req_shift_open_date done [12:38:50]produce_requested_data done [12:38:50]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123236,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [12:38:50]process_action_free close_receipt [12:38:50]json_value_free [12:38:50]json_value_free done [12:38:50]process_json_proto returns [12:38:50]Send response to host [12:38:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123236,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [12:38:50]free response buf [12:38:50]execute_script done [12:38:50]execute_script returns [12:38:50]free content buf [12:38:50]Sock 9.Close socket [12:38:50]Sock 9.Thread stoped [12:38:52]OFD Sender: No OFD packet to send [12:38:57]OFD Sender: No OFD packet to send [12:39:02]OFD Sender: No OFD packet to send [12:39:07]OFD Sender: No OFD packet to send [12:39:12]OFD Sender: No OFD packet to send [12:39:17]OFD Sender: No OFD packet to send [12:39:22]OFD Sender: No OFD packet to send [12:39:27]OFD Sender: No OFD packet to send [12:39:32]OFD Sender: No OFD packet to send [12:39:37]OFD Sender: No OFD packet to send [12:39:42]OFD Sender: No OFD packet to send [12:39:47]OFD Sender: No OFD packet to send [12:39:52]OFD Sender: No OFD packet to send [12:39:57]OFD Sender: No OFD packet to send [12:40:02]OFD Sender: No OFD packet to send [12:40:07]OFD Sender: No OFD packet to send [12:40:12]OFD Sender: No OFD packet to send [12:40:17]OFD Sender: No OFD packet to send [12:40:22]OFD Sender: No OFD packet to send [12:40:27]OFD Sender: No OFD packet to send [12:40:32]OFD Sender: No OFD packet to send [12:40:36]accept exits with 7 [12:40:36]New connection [12:40:36]New thread 3067395428 created [12:40:36]Thread 3067252068 joined [12:40:36]Waiting for new connection... [12:40:36] Sock 7.Parse request [12:40:36]Sock 7.Check first char [12:40:36]Sock 7.First char is OK [12:40:36]request: POST /json_proto HTTP/1.0 [12:40:36]Method: POST [12:40:36]URL: /json_proto [12:40:36]Method is POST - this is cgi request [12:40:36]url: /json_proto [12:40:36]query_string will be loaded in cgi processing [12:40:36]execute_cgi json_proto POST (null) [12:40:36]execute_cgi path=json_proto method=POST [12:40:36]POST find Content-Length [12:40:36]Host: 172.17.48.197:8080 [12:40:36]Content-Length: 683 [12:40:36]Content-Type: application/json [12:40:36] [12:40:36]POST finish read [12:40:36]Found Content-Length = 683 [12:40:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106164", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 21.590, "sum" : 1500.51, "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" ] } } [12:40:36]execute_script... [12: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 : (1)1106164", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 21.590, "sum" : 1500.51, "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" ] } } [12:40:36]POST & json_proto [12:40:36]process_json_proto [12:40:36]json parsed OK: [12:40:36]protocol is kg_v1.0 [12:40:36]action value=close_receipt [12:40:36]process_action close_receipt [12:40:36]cmd_close_receipt [12:40:36]MH_GetDate [12:40:36]Write to MH i2c: F0 00 00 56 25 6A [12:40:36]Write i2c OK [12:40:36]MH_I2C_Read... [12:40:36]Read from MH i2c: F0 [12:40:36]MH_I2C_Read... [12:40:36]Read from MH i2c: F0 09 00 [12:40:36]MH_I2C_Read... [12:40:36]Read from MH i2c: F0 09 00 56 25 00 C7 6F E4 65 6C AF E3 65 55 [12:40:36]GetLastDocTimeStamp 1709469527 [12:40:36]current date 1709469639 [12:40:36]FM_GetShiftState [12:40:36]SAM_PROTO_GetShiftState [12:40:36]wFMCommunicate request_size=4 [12:40:36]MH_SAM_APDU [12:40:36]CAPDU: 80 13 01 00 [12:40:36]Write to MH i2c: E2 08 00 57 25 80 13 01 00 00 00 00 00 F9 [12:40:36]Write i2c OK [12:40:36]MH_I2C_Read... [12:40:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:40:36]Read from MH i2c: E2 [12:40:36]MH_I2C_Read... [12:40:36]Read from MH i2c: E2 0E 00 [12:40:36]MH_I2C_Read... [12:40:36]Read from MH i2c: E2 0E 00 57 25 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 BB [12:40:36]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [12:40:36]wFMCommunicate OK [12:40:36]SAM_PROTO_GetShiftState done [12:40:36]FM_GetShiftState done [12:40:36]opened in 1709425579 [12:40:36]opened+sec_in_day 1709511979 [12:40:36]quantity*price = 150050 [12:40:36]sum+1 = 150052 [12:40:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 94 03.03.2024 12:40 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123237 ФПД: 112048603044225 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T124039&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123237&fm=112048603044225&tin=02508201610067®Number=0000000000090573&sum=150000 [12:40:37]StoreToDocumentArchive [12:40:37]shift 323 fd 123237 [12:40:37]save to /storage/0323/doc_00123237 [12:40:37]save last doc name /storage/0323/doc_00123237 to /storage/kkm_last_doc_name [12:40:37]save OK [12:40:37]Clear old archive folders... [12:40:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:40:37]tlvbuf is 00DC52C0 [12:40:37]SAM_PROTO_ClearQueue [12:40:37]wFMCommunicate request_size=4 [12:40:37]MH_SAM_APDU [12:40:37]CAPDU: 80 09 00 00 [12:40:37]Write to MH i2c: E2 08 00 64 25 80 09 00 00 00 00 00 00 FB [12:40:37]Write i2c OK [12:40:37]MH_I2C_Read... [12:40:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:40:37]Read from MH i2c: E2 [12:40:37]MH_I2C_Read... [12:40:37]Read from MH i2c: E2 03 00 [12:40:37]MH_I2C_Read... [12:40:37]Read from MH i2c: E2 03 00 64 25 00 90 00 FD [12:40:37]RAPDU: 90 00 [12:40:37]wFMCommunicate OK [12:40:37]SAM_PROTO_ClearQueue done [12:40:37]KKMCreateOFDPacket [12:40:37]OFDProtocolAddRootSTLVToBuf [12:40:37]FM_MakeSignedData [12:40:37]FM_MakeSignedData [12:40:37]SAM_PROTO_SignData [12:40:37]wFMCommunicate request_size=4 [12:40:37]MH_SAM_APDU [12:40:37]CAPDU: 80 0D 01 02 [12:40:37]Write to MH i2c: E2 08 00 65 25 80 0D 01 02 00 00 00 00 03 [12:40:37]Write i2c OK [12:40:37]MH_I2C_Read... [12:40:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:40:37]Read from MH i2c: E2 [12:40:37]MH_I2C_Read... [12:40:37]Read from MH i2c: E2 03 00 [12:40:37]MH_I2C_Read... [12:40:37]Read from MH i2c: E2 03 00 65 25 00 90 00 FE [12:40:37]RAPDU: 90 00 [12:40:37]wFMCommunicate OK [12:40:37]wFMCommunicate request_size=255 [12:40:37]MH_SAM_APDU [12:40: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 54 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 23 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 C7 6F E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 65 E1 01 00 35 04 06 00 65 [12:40:37]Write to MH i2c: E2 02 01 66 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 54 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 23 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 C7 6F E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 65 E1 01 00 35 04 06 00 65 00 00 6A [12:40:37]OFD Sender: No OFD packet to send [12:40:37]Write i2c OK [12:40:37]MH_I2C_Read... [12:40:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:40:38]Read from MH i2c: E2 [12:40:38]MH_I2C_Read... [12:40:38]Read from MH i2c: E2 03 00 [12:40:38]MH_I2C_Read... [12:40:38]Read from MH i2c: E2 03 00 66 25 00 90 00 FF [12:40:38]RAPDU: 90 00 [12:40:38]wFMCommunicate OK [12:40:38]wFMCommunicate request_size=10 [12:40:38]MH_SAM_APDU [12:40:38]CAPDU: 80 0D 02 02 05 E8 59 2E 99 81 [12:40:38]Write to MH i2c: E2 0D 00 67 25 80 0D 02 02 05 00 E8 59 2E 99 81 00 00 99 [12:40:38]Write i2c OK [12:40:38]MH_I2C_Read... [12:40:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:40:38]Read from MH i2c: E2 [12:40:38]MH_I2C_Read... [12:40:38]Read from MH i2c: E2 03 00 [12:40:38]MH_I2C_Read... [12:40:38]Read from MH i2c: E2 03 00 67 25 00 90 00 00 [12:40:38]RAPDU: 90 00 [12:40:38]wFMCommunicate OK [12:40:38]wFMCommunicate request_size=4 [12:40:38]MH_SAM_APDU [12:40:38]CAPDU: 80 0D 03 02 [12:40:38]Write to MH i2c: E2 08 00 68 25 80 0D 03 02 00 00 00 00 08 [12:40:38]Write i2c OK [12:40:38]MH_I2C_Read... [12:40:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:40:38]Read from MH i2c: E2 [12:40:38]MH_I2C_Read... [12:40:38]Read from MH i2c: E2 0B 00 [12:40:38]MH_I2C_Read... [12:40:38]Read from MH i2c: E2 0B 00 68 25 00 93 EB 37 74 71 81 FD F2 90 00 13 [12:40:38]RAPDU: 93 EB 37 74 71 81 FD F2 90 00 [12:40:38]wFMCommunicate OK [12:40:38]SAM_PROTO_SignData done [12:40:38]FM_MakeSignedData done [12:40:38]CreateOFDProtocolMessage [12:40:38]wFMCommunicate request_size=4 [12:40:38]MH_SAM_APDU [12:40:38]CAPDU: 80 11 00 00 [12:40:38]Write to MH i2c: E2 08 00 69 25 80 11 00 00 00 00 00 00 08 [12:40:38]Write i2c OK [12:40:38]MH_I2C_Read... [12:40:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:40:38]Read from MH i2c: E2 [12:40:38]MH_I2C_Read... [12:40:38]Read from MH i2c: E2 17 00 [12:40:38]MH_I2C_Read... [12:40:38]Read from MH i2c: E2 17 00 69 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 66 [12:40:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [12:40:38]wFMCommunicate OK [12:40:38]CreateOFDProtocolMessage done [12:40:38]OFDSenderStorePacket 123237 [12:40:38]StoreOFDPacket docnum=123237 [12:40:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 5C C8 07 01 75 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 54 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 23 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 C7 6F E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 65 E1 01 00 35 04 06 00 65 E8 59 2E 99 81 93 EB 37 74 71 81 FD F2 [12:40:38]CheckFolder [12:40:38]dirname=/storage/ofd_packets [12:40:38]CheckFolder done [12:40:38]ProducePacketName [12:40:38]name=ofd_packets/00123237 [12:40:38]NVStorageSaveData ofd_packets/00123237 [12:40:38]File name is /storage/ofd_packets/00123237 [12:40:38]Write 301 bytes [12:40:38]NVStorageSaveData done [12:40:38]OFDSenderStorePacket done [12:40:38]KKMCreateOFDPacket done [12:40:38]NVStorageSaveData kkm_last_timestamp [12:40:38]File name is /storage/kkm_last_timestamp [12:40:38]Write 4 bytes [12:40:38]NVStorageSaveData done [12:40:38]OFD Sender: Processing packet 123237 [packets to send 112, broken 111] [12:40:38]ProducePacketName [12:40:38]name=ofd_packets/00123237 [12:40:38]OFD Sender: To server: pG, [12:40:38]CommunicateWithHost lk.salyk.kg:30040 [12:40:38]ConnectInit lk.salyk.kg [12:40:38]ExternCall_PrintAddStr [12:40:38]wPrintStart [12:40:38]Write to MH i2c: 01 00 00 6A 25 8F [12:40:38]Write i2c OK [12:40:38]MH_I2C_Read... [12:40:38]Read from MH i2c: 01 [12:40:38]MH_I2C_Read... [12:40:38]Read from MH i2c: 01 07 00 [12:40:38]MH_I2C_Read... [12:40:38]Read from MH i2c: 01 07 00 6A 25 00 00 00 00 00 FF 0F A4 [12:40:38]RasterBufferAndPrint [12:40:38]line Счет N : (1)1106164 [12:40:38]line ИНН: 02508201610067 [12:40:38]line Контрольно-Кассовый Чек [12:40:38]line ПРОДАЖА [12:40:38]line ТРК (МРК, ГНК) : 53 [12:40:38]line Товар: 2710124500 [12:40:38]line Аи-95-К-5 [12:40:38]line 21.590 * 69.50 [12:40:38]line = 1500.51 [12:40:38]line НДС 12% НСП 1% [12:40:38]line > о реализуемом товаре [12:40:38]line ОКРУГЛЕНИЕ: -0.51 [12:40:38]line ИТОГО: 1500.00 [12:40:38]line Внесено: 1500.00 [12:40:38]line СДАЧА: 0.00 [12:40:38]line НСП 1% : 13.28 [12:40:38]line НДС 12% : 159.35 [12:40:38]line Наличными: 1500.00 [12:40:38]line Безнал.: 0.00 [12:40:38]line Место: АЗС № 25 "Партнер Нефть" [12:40:38]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [12:40:38]line СНО: Общий режим [12:40:38]line Чек 94 03.03.2024 12:40 [12:40:38]line Смена: 323 ФФД: 1.0 [12:40:38]line ЗНМ: 0300000019 [12:40:38]line РНМ: 0000000000090573 [12:40:38]line Версия ККМ: 001 [12:40:38]line ФМ: 0000000000874798 [12:40:38]line ФД: 123237 [12:40:38]line ФПД: 112048603044225 [12:40:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T124039&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123237&fm=112048603044225&tin=02508201610067®Number=0000000000090573&sum=150000 [12:40:38]Connected sock=11 [12: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 37 39 38 0F 01 00 00 5C C8 07 01 75 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 54 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 23 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 C7 6F E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 65 E1 01 00 35 04 06 00 65 E8 59 2E 99 81 93 EB 37 74 71 81 FD F2 [12:40:38]written 0, free lines is 4095 [12: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 37 39 38 4F 00 00 00 66 94 47 00 60 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 37 39 38 10 04 04 00 65 E1 01 00 F4 03 04 00 F3 1B E4 65 B6 04 01 00 00 1C 6E C6 63 9D 16 22 A1 [12:40:38]CommunicateWithHost err = 0 [12:40:38]CheckOFDResponse [12:40:38]1017 (14) - 77093643461234 [12:40:38]1041 (16) - 0000000000874798 [12:40:38]1040 (4) - 123237 [12:40:38]1012 (4) - 03.03.2024 06:42 [12:40:38]1206 (1) - 0 [12:40:38]OFD Sender: Remove packet 123237 [12:40:38]ProducePacketName [12:40:38]name=ofd_packets/00123237 [12:40:38]NVStorageDeleteData [12:40:39]Write to MH i2c: 01 00 00 95 25 BA [12:40:39]Write i2c OK [12:40:39]MH_I2C_Read... [12:40:39]Read from MH i2c: 01 [12:40:39]MH_I2C_Read... [12:40:39]Read from MH i2c: 01 07 00 [12:40:39]MH_I2C_Read... [12:40:39]Read from MH i2c: 01 07 00 95 25 00 00 00 00 00 E3 0C B0 [12:40:39]RasterBufferAndPrint [12:40:39]line [12:40:39]line [12:40:39]line [12:40:39]line [12:40:39]line [12:40:39]written 0, free lines is 3305 [12:40:39]MH_Cut [12:40:39]Write to MH i2c: D1 01 00 9C 25 01 93 [12:40:39]Write i2c OK [12:40:39]MH_I2C_Read... [12:40:39]Read from MH i2c: D1 [12:40:39]MH_I2C_Read... [12:40:39]Read from MH i2c: D1 01 00 [12:40:39]MH_I2C_Read... [12:40:39]Read from MH i2c: D1 01 00 9C 25 00 92 [12:40:39]Write to MH i2c: 01 00 00 9D 25 C2 [12:40:39]Write i2c OK [12:40:39]MH_I2C_Read... [12:40:39]OFD Sender: No OFD packet to send [12:40:39]*** Cut start [12:40:39]*** Purtial cut [12:40:39]*** Stage 1: CUTSNS_PIN = 1 [12:40:41]Read from MH i2c: 01 [12:40:41]MH_I2C_Read... [12:40:41]*** Stop cut motor [12:40:41]*** Cut end [12:40:41]Read from MH i2c: 01 07 00 [12:40:41]MH_I2C_Read... [12:40:41]Read from MH i2c: 01 07 00 9D 25 00 00 00 00 00 FF 0F D7 [12:40:41]process_action close_receipt done [12:40:41]requested_data is exist [12:40:41]produce_requested_data [12:40:41]requested_item fm.sn is exist - process it [12:40:41]wFMCommunicate request_size=4 [12:40:41]MH_SAM_APDU [12:40:41]CAPDU: 80 11 00 00 [12:40:41]Write to MH i2c: E2 08 00 9E 25 80 11 00 00 00 00 00 00 3D [12:40:41]Write i2c OK [12:40:41]MH_I2C_Read... [12:40:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:40:41]Read from MH i2c: E2 [12:40:41]MH_I2C_Read... [12:40:41]Read from MH i2c: E2 17 00 [12:40:41]MH_I2C_Read... [12:40:41]Read from MH i2c: E2 17 00 9E 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 9B [12:40:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [12:40:41]wFMCommunicate OK [12:40:41]requested_item fd.num is exist - process it [12:40:41]SAM_PROTO_GetFieldsCounters [12:40:41]wFMCommunicate request_size=4 [12:40:41]MH_SAM_APDU [12:40:41]CAPDU: 80 13 00 00 [12:40:41]Write to MH i2c: E2 08 00 9F 25 80 13 00 00 00 00 00 00 40 [12:40:41]Write i2c OK [12:40:41]MH_I2C_Read... [12:40:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:40:41]Read from MH i2c: E2 [12:40:41]MH_I2C_Read... [12:40:41]Read from MH i2c: E2 62 00 [12:40:41]MH_I2C_Read... [12:40:41]Read from MH i2c: E2 62 00 9F 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 65 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 10 [12:40: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 65 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:40:41]wFMCommunicate OK [12:40:41]SAM_PROTO_GetFieldsCounters done [12:40:41]requested_item shift.num is exist - process it [12:40:41]requested_item shift.opened is exist - process it [12:40:41]req_shift_opened [12:40:41]FM_GetShiftState [12:40:41]SAM_PROTO_GetShiftState [12:40:41]wFMCommunicate request_size=4 [12:40:41]MH_SAM_APDU [12:40:41]CAPDU: 80 13 01 00 [12:40:41]Write to MH i2c: E2 08 00 A0 25 80 13 01 00 00 00 00 00 42 [12:40:41]Write i2c OK [12:40:41]MH_I2C_Read... [12:40:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:40:41]Read from MH i2c: E2 [12:40:41]MH_I2C_Read... [12:40:41]Read from MH i2c: E2 0E 00 [12:40:41]MH_I2C_Read... [12:40:41]Read from MH i2c: E2 0E 00 A0 25 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 04 [12:40:41]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [12:40:41]wFMCommunicate OK [12:40:41]SAM_PROTO_GetShiftState done [12:40:41]FM_GetShiftState done [12:40:41]req_shift_opened done [12:40:41]requested_item shift.open_date is exist - process it [12:40:41]req_shift_open_date [12:40:41]req_shift_open_date done [12:40:41]produce_requested_data done [12:40:41]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123237,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [12:40:41]process_action_free close_receipt [12:40:41]json_value_free [12:40:41]json_value_free done [12:40:41]process_json_proto returns [12:40:41]Send response to host [12:40:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123237,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [12:40:41]free response buf [12:40:41]execute_script done [12:40:41]execute_script returns [12:40:41]free content buf [12:40:41]Sock 7.Close socket [12:40:41]Sock 7.Thread stoped [12:40:44]OFD Sender: No OFD packet to send [12:40:49]OFD Sender: No OFD packet to send [12:40:54]OFD Sender: No OFD packet to send [12:40:59]OFD Sender: No OFD packet to send [12:41:04]OFD Sender: No OFD packet to send [12:41:09]OFD Sender: No OFD packet to send [12:41:14]OFD Sender: No OFD packet to send [12:41:19]OFD Sender: No OFD packet to send [12:41:24]OFD Sender: No OFD packet to send [12:41:29]OFD Sender: No OFD packet to send [12:41:34]OFD Sender: No OFD packet to send [12:41:39]OFD Sender: No OFD packet to send [12:41:44]OFD Sender: No OFD packet to send [12:41:49]OFD Sender: No OFD packet to send [12:41:54]OFD Sender: No OFD packet to send [12:41:59]OFD Sender: No OFD packet to send [12:42:04]OFD Sender: No OFD packet to send [12:42:09]OFD Sender: No OFD packet to send [12:42:14]OFD Sender: No OFD packet to send [12:42:19]OFD Sender: No OFD packet to send [12:42:24]OFD Sender: No OFD packet to send [12:42:29]OFD Sender: No OFD packet to send [12:42:34]OFD Sender: No OFD packet to send [12:42:39]OFD Sender: No OFD packet to send [12:42:44]OFD Sender: No OFD packet to send [12:42:49]OFD Sender: No OFD packet to send [12:42:54]OFD Sender: No OFD packet to send [12:42:59]OFD Sender: No OFD packet to send [12:43:04]OFD Sender: No OFD packet to send [12:43:09]OFD Sender: No OFD packet to send [12:43:14]OFD Sender: No OFD packet to send [12:43:19]OFD Sender: No OFD packet to send [12:43:24]OFD Sender: No OFD packet to send [12:43:29]OFD Sender: No OFD packet to send [12:43:34]OFD Sender: No OFD packet to send [12:43:39]OFD Sender: No OFD packet to send [12:43:44]OFD Sender: No OFD packet to send [12:43:49]OFD Sender: No OFD packet to send [12:43:54]OFD Sender: No OFD packet to send [12:43:59]OFD Sender: No OFD packet to send [12:44:04]OFD Sender: No OFD packet to send [12:44: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:25]accept exits with 9 [12:44:25]New connection [12:44:25]New thread 3067252068 created [12:44:25]Thread 3067395428 joined [12:44:25]Waiting for new connection... [12:44:25] Sock 9.Parse request [12:44:25]Sock 9.Check first char [12:44:25]Sock 9.First char is OK [12:44:25]request: POST /json_proto HTTP/1.0 [12:44:25]Method: POST [12:44:25]URL: /json_proto [12:44:25]Method is POST - this is cgi request [12:44:25]url: /json_proto [12:44:25]query_string will be loaded in cgi processing [12:44:25]execute_cgi json_proto POST (null) [12:44:25]execute_cgi path=json_proto method=POST [12:44:25]POST find Content-Length [12:44:25]Host: 172.17.48.197:8080 [12:44:25]Content-Length: 683 [12:44:25]Content-Type: application/json [12:44:25] [12:44:25]POST finish read [12:44:25]Found Content-Length = 683 [12:44:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106165", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:44:25]execute_script... [12:44:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106165", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:44:25]POST & json_proto [12:44:25]process_json_proto [12:44:25]json parsed OK: [12:44:25]protocol is kg_v1.0 [12:44:25]action value=close_receipt [12:44:25]process_action close_receipt [12:44:25]cmd_close_receipt [12:44:25]MH_GetDate [12:44:25]Write to MH i2c: F0 00 00 A1 25 B5 [12:44:25]Write i2c OK [12:44:25]MH_I2C_Read... [12:44:25]Read from MH i2c: F0 [12:44:25]MH_I2C_Read... [12:44:25]Read from MH i2c: F0 09 00 [12:44:25]MH_I2C_Read... [12:44:25]Read from MH i2c: F0 09 00 A1 25 00 AC 70 E4 65 6C AF E3 65 86 [12:44:25]GetLastDocTimeStamp 1709469639 [12:44:25]current date 1709469868 [12:44:25]FM_GetShiftState [12:44:25]SAM_PROTO_GetShiftState [12:44:25]wFMCommunicate request_size=4 [12:44:25]MH_SAM_APDU [12:44:25]CAPDU: 80 13 01 00 [12:44:25]Write to MH i2c: E2 08 00 A2 25 80 13 01 00 00 00 00 00 44 [12:44:25]Write i2c OK [12:44:25]MH_I2C_Read... [12:44:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:44:25]Read from MH i2c: E2 [12:44:25]MH_I2C_Read... [12:44:25]Read from MH i2c: E2 0E 00 [12:44:25]MH_I2C_Read... [12:44:25]Read from MH i2c: E2 0E 00 A2 25 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 06 [12:44:25]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [12:44:25]wFMCommunicate OK [12:44:25]SAM_PROTO_GetShiftState done [12:44:25]FM_GetShiftState done [12:44:25]opened in 1709425579 [12:44:25]opened+sec_in_day 1709511979 [12:44:25]quantity*price = 100010 [12:44:25]sum+1 = 100012 [12:44:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 95 03.03.2024 12:44 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123238 ФПД: 65712056527532 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T124429&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123238&fm=65712056527532&tin=02508201610067®Number=0000000000090573&sum=100000 [12:44:26]StoreToDocumentArchive [12:44:26]shift 323 fd 123238 [12:44:26]save to /storage/0323/doc_00123238 [12:44:26]save last doc name /storage/0323/doc_00123238 to /storage/kkm_last_doc_name [12:44:26]save OK [12:44:26]Clear old archive folders... [12:44:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:44:26]tlvbuf is 00E65940 [12:44:26]SAM_PROTO_ClearQueue [12:44:26]wFMCommunicate request_size=4 [12:44:26]MH_SAM_APDU [12:44:26]CAPDU: 80 09 00 00 [12:44:26]Write to MH i2c: E2 08 00 AF 25 80 09 00 00 00 00 00 00 46 [12:44:26]Write i2c OK [12:44:26]MH_I2C_Read... [12:44:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:44:27]Read from MH i2c: E2 [12:44:27]MH_I2C_Read... [12:44:27]Read from MH i2c: E2 03 00 [12:44:27]MH_I2C_Read... [12:44:27]Read from MH i2c: E2 03 00 AF 25 00 90 00 48 [12:44:27]RAPDU: 90 00 [12:44:27]wFMCommunicate OK [12:44:27]SAM_PROTO_ClearQueue done [12:44:27]KKMCreateOFDPacket [12:44:27]OFDProtocolAddRootSTLVToBuf [12:44:27]FM_MakeSignedData [12:44:27]FM_MakeSignedData [12:44:27]SAM_PROTO_SignData [12:44:27]wFMCommunicate request_size=4 [12:44:27]MH_SAM_APDU [12:44:27]CAPDU: 80 0D 01 02 [12:44:27]Write to MH i2c: E2 08 00 B0 25 80 0D 01 02 00 00 00 00 4E [12:44:27]Write i2c OK [12:44:27]MH_I2C_Read... [12:44:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:44:27]Read from MH i2c: E2 [12:44:27]MH_I2C_Read... [12:44:27]Read from MH i2c: E2 03 00 [12:44:27]MH_I2C_Read... [12:44:27]Read from MH i2c: E2 03 00 B0 25 00 90 00 49 [12:44:27]RAPDU: 90 00 [12:44:27]wFMCommunicate OK [12:44:27]wFMCommunicate request_size=255 [12:44:27]MH_SAM_APDU [12:44:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 AD 70 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 66 E1 01 00 35 04 06 00 3B [12:44:27]Write to MH i2c: E2 02 01 B1 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 AD 70 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 66 E1 01 00 35 04 06 00 3B 00 00 3F [12:44:27]Write i2c OK [12:44:27]MH_I2C_Read... [12:44:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:44:27]Read from MH i2c: E2 [12:44:27]MH_I2C_Read... [12:44:27]Read from MH i2c: E2 03 00 [12:44:27]MH_I2C_Read... [12:44:27]Read from MH i2c: E2 03 00 B1 25 00 90 00 4A [12:44:27]RAPDU: 90 00 [12:44:27]wFMCommunicate OK [12:44:27]wFMCommunicate request_size=10 [12:44:27]MH_SAM_APDU [12:44:27]CAPDU: 80 0D 02 02 05 C3 C7 C9 6A AC [12:44:27]Write to MH i2c: E2 0D 00 B2 25 80 0D 02 02 05 00 C3 C7 C9 6A AC 00 00 C4 [12:44:27]Write i2c OK [12:44:27]MH_I2C_Read... [12:44:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:44:27]Read from MH i2c: E2 [12:44:27]MH_I2C_Read... [12:44:27]Read from MH i2c: E2 03 00 [12:44:27]MH_I2C_Read... [12:44:27]Read from MH i2c: E2 03 00 B2 25 00 90 00 4B [12:44:27]RAPDU: 90 00 [12:44:27]wFMCommunicate OK [12:44:27]wFMCommunicate request_size=4 [12:44:27]MH_SAM_APDU [12:44:27]CAPDU: 80 0D 03 02 [12:44:27]Write to MH i2c: E2 08 00 B3 25 80 0D 03 02 00 00 00 00 53 [12:44:27]Write i2c OK [12:44:27]MH_I2C_Read... [12:44:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:44:27]Read from MH i2c: E2 [12:44:27]MH_I2C_Read... [12:44:27]Read from MH i2c: E2 0B 00 [12:44:27]MH_I2C_Read... [12:44:27]Read from MH i2c: E2 0B 00 B3 25 00 4B 58 3C F0 45 FF D8 50 90 00 8F [12:44:27]RAPDU: 4B 58 3C F0 45 FF D8 50 90 00 [12:44:27]wFMCommunicate OK [12:44:27]SAM_PROTO_SignData done [12:44:27]FM_MakeSignedData done [12:44:27]CreateOFDProtocolMessage [12:44:27]wFMCommunicate request_size=4 [12:44:27]MH_SAM_APDU [12:44:27]CAPDU: 80 11 00 00 [12:44:27]Write to MH i2c: E2 08 00 B4 25 80 11 00 00 00 00 00 00 53 [12:44:27]Write i2c OK [12:44:27]MH_I2C_Read... [12:44:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:44:27]Read from MH i2c: E2 [12:44:27]MH_I2C_Read... [12:44:27]Read from MH i2c: E2 17 00 [12:44:27]MH_I2C_Read... [12:44:27]Read from MH i2c: E2 17 00 B4 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 B1 [12:44:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [12:44:27]wFMCommunicate OK [12:44:27]CreateOFDProtocolMessage done [12:44:27]OFDSenderStorePacket 123238 [12:44:27]StoreOFDPacket docnum=123238 [12:44:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 C0 F7 07 01 0E 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 AD 70 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 66 E1 01 00 35 04 06 00 3B C3 C7 C9 6A AC 4B 58 3C F0 45 FF D8 50 [12:44:27]CheckFolder [12:44:27]dirname=/storage/ofd_packets [12:44:27]CheckFolder done [12:44:27]ProducePacketName [12:44:27]name=ofd_packets/00123238 [12:44:27]NVStorageSaveData ofd_packets/00123238 [12:44:27]File name is /storage/ofd_packets/00123238 [12:44:27]Write 301 bytes [12:44:27]NVStorageSaveData done [12:44:27]OFDSenderStorePacket done [12:44:27]KKMCreateOFDPacket done [12:44:27]NVStorageSaveData kkm_last_timestamp [12:44:27]File name is /storage/kkm_last_timestamp [12:44:27]Write 4 bytes [12:44:27]NVStorageSaveData done [12:44:27]ExternCall_PrintAddStr [12:44:27]wPrintStart [12:44:27]Write to MH i2c: 01 00 00 B5 25 DA [12:44:27]Write i2c OK [12:44:27]MH_I2C_Read... [12:44:27]Read from MH i2c: 01 [12:44:27]MH_I2C_Read... [12:44:27]Read from MH i2c: 01 07 00 [12:44:27]MH_I2C_Read... [12:44:27]Read from MH i2c: 01 07 00 B5 25 00 00 00 00 00 FF 0F EF [12:44:27]RasterBufferAndPrint [12:44:27]line Счет N : (1)1106165 [12:44:27]line ИНН: 02508201610067 [12:44:27]line Контрольно-Кассовый Чек [12:44:27]line ПРОДАЖА [12:44:27]line ТРК (МРК, ГНК) : 53 [12:44:27]line Товар: 2710124500 [12:44:27]line Аи-95-К-5 [12:44:27]line 14.390 * 69.50 [12:44:27]line = 1000.11 [12:44:27]line НДС 12% НСП 1% [12:44:27]line > о реализуемом товаре [12:44:27]line ОКРУГЛЕНИЕ: -0.11 [12:44:27]line ИТОГО: 1000.00 [12:44:27]line Внесено: 1000.00 [12:44:27]line СДАЧА: 0.00 [12:44:27]line НСП 1% : 8.85 [12:44:27]line НДС 12% : 106.21 [12:44:27]line Наличными: 1000.00 [12:44:27]line Безнал.: 0.00 [12:44:27]line Место: АЗС № 25 "Партнер Нефть" [12:44:27]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [12:44:27]line СНО: Общий режим [12:44:27]line Чек 95 03.03.2024 12:44 [12:44:27]line Смена: 323 ФФД: 1.0 [12:44:27]line ЗНМ: 0300000019 [12:44:27]line РНМ: 0000000000090573 [12:44:27]line Версия ККМ: 001 [12:44:27]line ФМ: 0000000000874798 [12:44:27]line ФД: 123238 [12:44:27]line ФПД: 65712056527532 [12:44:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T124429&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123238&fm=65712056527532&tin=02508201610067®Number=0000000000090573&sum=100000 [12:44:27]OFD Sender: Processing packet 123238 [packets to send 112, broken 111] [12:44:27]ProducePacketName [12:44:27]name=ofd_packets/00123238 [12:44:27]OFD Sender: To server: pG, [12:44:27]CommunicateWithHost lk.salyk.kg:30040 [12:44:27]ConnectInit lk.salyk.kg [12:44:27]written 0, free lines is 4095 [12:44:27]Connected sock=10 [12:44: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 37 39 38 0F 01 00 00 C0 F7 07 01 0E 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 AD 70 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 66 E1 01 00 35 04 06 00 3B C3 C7 C9 6A AC 4B 58 3C F0 45 FF D8 50 [12:44:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 65 80 47 00 8C 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 37 39 38 10 04 04 00 66 E1 01 00 F4 03 04 00 D8 1C E4 65 B6 04 01 00 00 60 6C 7A 94 A5 72 39 6B [12:44:28]CommunicateWithHost err = 0 [12:44:28]CheckOFDResponse [12:44:28]1017 (14) - 77093643461234 [12:44:28]1041 (16) - 0000000000874798 [12:44:28]1040 (4) - 123238 [12:44:28]1012 (4) - 03.03.2024 06:46 [12:44:28]1206 (1) - 0 [12:44:28]OFD Sender: Remove packet 123238 [12:44:28]ProducePacketName [12:44:28]name=ofd_packets/00123238 [12:44:28]NVStorageDeleteData [12:44:28]Write to MH i2c: 01 00 00 E0 25 05 [12:44:28]Write i2c OK [12:44:28]MH_I2C_Read... [12:44:28]Read from MH i2c: 01 [12:44:28]MH_I2C_Read... [12:44:28]Read from MH i2c: 01 07 00 [12:44:28]MH_I2C_Read... [12:44:28]Read from MH i2c: 01 07 00 E0 25 00 00 00 00 00 E4 0C FC [12:44:28]RasterBufferAndPrint [12:44:28]line [12:44:28]line [12:44:28]line [12:44:28]line [12:44:28]line [12:44:28]written 0, free lines is 3306 [12:44:28]MH_Cut [12:44:28]Write to MH i2c: D1 01 00 E7 25 01 DE [12:44:28]Write i2c OK [12:44:28]MH_I2C_Read... [12:44:28]Read from MH i2c: D1 [12:44:28]MH_I2C_Read... [12:44:28]Read from MH i2c: D1 01 00 [12:44:28]MH_I2C_Read... [12:44:28]Read from MH i2c: D1 01 00 E7 25 00 DD [12:44:28]Write to MH i2c: 01 00 00 E8 25 0D [12:44:28]Write i2c OK [12:44:28]MH_I2C_Read... [12:44:28]OFD Sender: No OFD packet to send [12:44:28]*** Cut start [12:44:28]*** Purtial cut [12:44:28]*** Stage 1: CUTSNS_PIN = 1 [12:44:30]Read from MH i2c: 01 [12:44:30]MH_I2C_Read... [12:44:30]*** Stop cut motor [12:44:31]*** Cut end [12:44:31]Read from MH i2c: 01 07 00 [12:44:31]MH_I2C_Read... [12:44:31]Read from MH i2c: 01 07 00 E8 25 00 00 00 00 00 FF 0F 22 [12:44:31]process_action close_receipt done [12:44:31]requested_data is exist [12:44:31]produce_requested_data [12:44:31]requested_item fm.sn is exist - process it [12:44:31]wFMCommunicate request_size=4 [12:44:31]MH_SAM_APDU [12:44:31]CAPDU: 80 11 00 00 [12:44:31]Write to MH i2c: E2 08 00 E9 25 80 11 00 00 00 00 00 00 88 [12:44:31]Write i2c OK [12:44:31]MH_I2C_Read... [12:44:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:44:31]Read from MH i2c: E2 [12:44:31]MH_I2C_Read... [12:44:31]Read from MH i2c: E2 17 00 [12:44:31]MH_I2C_Read... [12:44:31]Read from MH i2c: E2 17 00 E9 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 E6 [12:44:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [12:44:31]wFMCommunicate OK [12:44:31]requested_item fd.num is exist - process it [12:44:31]SAM_PROTO_GetFieldsCounters [12:44:31]wFMCommunicate request_size=4 [12:44:31]MH_SAM_APDU [12:44:31]CAPDU: 80 13 00 00 [12:44:31]Write to MH i2c: E2 08 00 EA 25 80 13 00 00 00 00 00 00 8B [12:44:31]Write i2c OK [12:44:31]MH_I2C_Read... [12:44:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:44:31]Read from MH i2c: E2 [12:44:31]MH_I2C_Read... [12:44:31]Read from MH i2c: E2 62 00 [12:44:31]MH_I2C_Read... [12:44:31]Read from MH i2c: E2 62 00 EA 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 66 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 5F [12:44: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 66 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:44:31]wFMCommunicate OK [12:44:31]SAM_PROTO_GetFieldsCounters done [12:44:31]requested_item shift.num is exist - process it [12:44:31]requested_item shift.opened is exist - process it [12:44:31]req_shift_opened [12:44:31]FM_GetShiftState [12:44:31]SAM_PROTO_GetShiftState [12:44:31]wFMCommunicate request_size=4 [12:44:31]MH_SAM_APDU [12:44:31]CAPDU: 80 13 01 00 [12:44:31]Write to MH i2c: E2 08 00 EB 25 80 13 01 00 00 00 00 00 8D [12:44:31]Write i2c OK [12:44:31]MH_I2C_Read... [12:44:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:44:31]Read from MH i2c: E2 [12:44:31]MH_I2C_Read... [12:44:31]Read from MH i2c: E2 0E 00 [12:44:31]MH_I2C_Read... [12:44:31]Read from MH i2c: E2 0E 00 EB 25 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 4F [12:44:31]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [12:44:31]wFMCommunicate OK [12:44:31]SAM_PROTO_GetShiftState done [12:44:31]FM_GetShiftState done [12:44:31]req_shift_opened done [12:44:31]requested_item shift.open_date is exist - process it [12:44:31]req_shift_open_date [12:44:31]req_shift_open_date done [12:44:31]produce_requested_data done [12:44:31]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123238,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [12:44:31]process_action_free close_receipt [12:44:31]json_value_free [12:44:31]json_value_free done [12:44:31]process_json_proto returns [12:44:31]Send response to host [12:44:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123238,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [12:44:31]free response buf [12:44:31]execute_script done [12:44:31]execute_script returns [12:44:31]free content buf [12:44:31]Sock 9.Close socket [12:44:31]Sock 9.Thread stoped [12:44:33]OFD Sender: No OFD packet to send [12:44:38]OFD Sender: No OFD packet to send [12:44:43]OFD Sender: No OFD packet to send [12:44:48]OFD Sender: No OFD packet to send [12:44:53]OFD Sender: No OFD packet to send [12:44:58]OFD Sender: No OFD packet to send [12:45:03]OFD Sender: No OFD packet to send [12:45:08]OFD Sender: No OFD packet to send [12:45:13]OFD Sender: No OFD packet to send [12:45:18]OFD Sender: No OFD packet to send [12:45:23]OFD Sender: No OFD packet to send [12:45:28]OFD Sender: No OFD packet to send [12:45:33]OFD Sender: No OFD packet to send [12:45:38]OFD Sender: No OFD packet to send [12:45:43]OFD Sender: No OFD packet to send [12:45:48]OFD Sender: No OFD packet to send [12:45:53]OFD Sender: No OFD packet to send [12:45:58]OFD Sender: No OFD packet to send [12:46:03]OFD Sender: No OFD packet to send [12:46:07]accept exits with 7 [12:46:07]New connection [12:46:07]New thread 3067395428 created [12:46:07]Thread 3067252068 joined [12:46:07]Waiting for new connection... [12:46:07] Sock 7.Parse request [12:46:07]Sock 7.Check first char [12:46:07]Sock 7.First char is OK [12:46:07]request: POST /json_proto HTTP/1.0 [12:46:07]Method: POST [12:46:07]URL: /json_proto [12:46:07]Method is POST - this is cgi request [12:46:07]url: /json_proto [12:46:07]query_string will be loaded in cgi processing [12:46:07]execute_cgi json_proto POST (null) [12:46:07]execute_cgi path=json_proto method=POST [12:46:07]POST find Content-Length [12:46:07]Host: 172.17.48.197:8080 [12:46:07]Content-Length: 807 [12:46:07]Content-Type: application/json [12:46:07] [12:46:07]POST finish read [12:46:07]Found Content-Length = 807 [12:46:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106166", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 11.520, "sum" : 800.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 800.64 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:46:07]execute_script... [12:46: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)1106166", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 11.520, "sum" : 800.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 800.64 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:46:07]POST & json_proto [12:46:07]process_json_proto [12:46:07]json parsed OK: [12:46:07]protocol is kg_v1.0 [12:46:07]action value=close_receipt [12:46:07]process_action close_receipt [12:46:07]cmd_close_receipt [12:46:07]MH_GetDate [12:46:07]Write to MH i2c: F0 00 00 EC 25 00 [12:46:07]Write i2c OK [12:46:07]MH_I2C_Read... [12:46:07]Read from MH i2c: F0 [12:46:07]MH_I2C_Read... [12:46:07]Read from MH i2c: F0 09 00 [12:46:07]MH_I2C_Read... [12:46:07]Read from MH i2c: F0 09 00 EC 25 00 12 71 E4 65 6C AF E3 65 38 [12:46:07]GetLastDocTimeStamp 1709469869 [12:46:07]current date 1709469970 [12:46:07]FM_GetShiftState [12:46:07]SAM_PROTO_GetShiftState [12:46:07]wFMCommunicate request_size=4 [12:46:07]MH_SAM_APDU [12:46:07]CAPDU: 80 13 01 00 [12:46:07]Write to MH i2c: E2 08 00 ED 25 80 13 01 00 00 00 00 00 8F [12:46:07]Write i2c OK [12:46:07]MH_I2C_Read... [12:46:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:07]Read from MH i2c: E2 [12:46:07]MH_I2C_Read... [12:46:07]Read from MH i2c: E2 0E 00 [12:46:07]MH_I2C_Read... [12:46:07]Read from MH i2c: E2 0E 00 ED 25 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 51 [12:46:07]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [12:46:07]wFMCommunicate OK [12:46:07]SAM_PROTO_GetShiftState done [12:46:07]FM_GetShiftState done [12:46:07]opened in 1709425579 [12:46:07]opened+sec_in_day 1709511979 [12:46:07]quantity*price = 80064 [12:46:07]sum+1 = 80065 [12:46:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 800.64 НСП 1% : 7.08 НДС 12% : 85.02 Наличными: 0.00 Безнал.: 800.64 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 96 03.03.2024 12:46 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874798 ФД: 123239 ФПД: 172326116701650 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T124610&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123239&fm=172326116701650&tin=02508201610067®Number=0000000000090573&sum=80064 [12:46:08]StoreToDocumentArchive [12:46:08]shift 323 fd 123239 [12:46:08]save to /storage/0323/doc_00123239 [12:46:08]save last doc name /storage/0323/doc_00123239 to /storage/kkm_last_doc_name [12:46:08]save OK [12:46:08]Clear old archive folders... [12:46:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:46:08]tlvbuf is B6FC1C20 [12:46:08]SAM_PROTO_ClearQueue [12:46:08]wFMCommunicate request_size=4 [12:46:08]MH_SAM_APDU [12:46:08]CAPDU: 80 09 00 00 [12:46:08]Write to MH i2c: E2 08 00 FA 25 80 09 00 00 00 00 00 00 91 [12:46:08]Write i2c OK [12:46:08]MH_I2C_Read... [12:46:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:46:08]Read from MH i2c: E2 [12:46:08]MH_I2C_Read... [12:46:08]Read from MH i2c: E2 03 00 [12:46:08]MH_I2C_Read... [12:46:08]Read from MH i2c: E2 03 00 FA 25 00 90 00 93 [12:46:08]RAPDU: 90 00 [12:46:08]wFMCommunicate OK [12:46:08]SAM_PROTO_ClearQueue done [12:46:08]KKMCreateOFDPacket [12:46:08]OFDProtocolAddRootSTLVToBuf [12:46:08]FM_MakeSignedData [12:46:08]FM_MakeSignedData [12:46:08]SAM_PROTO_SignData [12:46:08]wFMCommunicate request_size=4 [12:46:08]MH_SAM_APDU [12:46:08]CAPDU: 80 0D 01 02 [12:46:08]Write to MH i2c: E2 08 00 FB 25 80 0D 01 02 00 00 00 00 99 [12:46:08]Write i2c OK [12:46:08]MH_I2C_Read... [12:46:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:46:08]Read from MH i2c: E2 [12:46:08]MH_I2C_Read... [12:46:08]Read from MH i2c: E2 03 00 [12:46:08]MH_I2C_Read... [12:46:08]Read from MH i2c: E2 03 00 FB 25 00 90 00 94 [12:46:08]RAPDU: 90 00 [12:46:08]wFMCommunicate OK [12:46:08]wFMCommunicate request_size=255 [12:46:08]MH_SAM_APDU [12:46: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 35 FF 03 08 00 03 00 2D 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 C0 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 12 71 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 67 E1 01 00 35 04 06 00 9C [12:46:08]Write to MH i2c: E2 02 01 FC 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 00 2D 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 C0 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 12 71 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 67 E1 01 00 35 04 06 00 9C 00 00 7C [12:46:08]Write i2c OK [12:46:08]MH_I2C_Read... [12:46:08]OFD Sender: No OFD packet to send [12:46:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:08]Read from MH i2c: E2 [12:46:08]MH_I2C_Read... [12:46:08]Read from MH i2c: E2 03 00 [12:46:08]MH_I2C_Read... [12:46:08]Read from MH i2c: E2 03 00 FC 25 00 90 00 95 [12:46:08]RAPDU: 90 00 [12:46:08]wFMCommunicate OK [12:46:08]wFMCommunicate request_size=10 [12:46:08]MH_SAM_APDU [12:46:08]CAPDU: 80 0D 02 02 05 BA CC F8 B5 D2 [12:46:08]Write to MH i2c: E2 0D 00 FD 25 80 0D 02 02 05 00 BA CC F8 B5 D2 00 00 AB [12:46:08]Write i2c OK [12:46:08]MH_I2C_Read... [12:46:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:09]Read from MH i2c: E2 [12:46:09]MH_I2C_Read... [12:46:09]Read from MH i2c: E2 03 00 [12:46:09]MH_I2C_Read... [12:46:09]Read from MH i2c: E2 03 00 FD 25 00 90 00 96 [12:46:09]RAPDU: 90 00 [12:46:09]wFMCommunicate OK [12:46:09]wFMCommunicate request_size=4 [12:46:09]MH_SAM_APDU [12:46:09]CAPDU: 80 0D 03 02 [12:46:09]Write to MH i2c: E2 08 00 FE 25 80 0D 03 02 00 00 00 00 9E [12:46:09]Write i2c OK [12:46:09]MH_I2C_Read... [12:46:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:46:09]Read from MH i2c: E2 [12:46:09]MH_I2C_Read... [12:46:09]Read from MH i2c: E2 0B 00 [12:46:09]MH_I2C_Read... [12:46:09]Read from MH i2c: E2 0B 00 FE 25 00 49 D2 30 22 FE 5C C5 93 90 00 BE [12:46:09]RAPDU: 49 D2 30 22 FE 5C C5 93 90 00 [12:46:09]wFMCommunicate OK [12:46:09]SAM_PROTO_SignData done [12:46:09]FM_MakeSignedData done [12:46:09]CreateOFDProtocolMessage [12:46:09]wFMCommunicate request_size=4 [12:46:09]MH_SAM_APDU [12:46:09]CAPDU: 80 11 00 00 [12:46:09]Write to MH i2c: E2 08 00 FF 25 80 11 00 00 00 00 00 00 9E [12:46:09]Write i2c OK [12:46:09]MH_I2C_Read... [12:46:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:09]Read from MH i2c: E2 [12:46:09]MH_I2C_Read... [12:46:09]Read from MH i2c: E2 17 00 [12:46:09]MH_I2C_Read... [12:46:09]Read from MH i2c: E2 17 00 FF 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 FC [12:46:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [12:46:09]wFMCommunicate OK [12:46:09]CreateOFDProtocolMessage done [12:46:09]OFDSenderStorePacket 123239 [12:46:09]StoreOFDPacket docnum=123239 [12:46:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 33 5B 07 01 4F D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 00 2D 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 C0 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 12 71 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 67 E1 01 00 35 04 06 00 9C BA CC F8 B5 D2 49 D2 30 22 FE 5C C5 93 [12:46:09]CheckFolder [12:46:09]dirname=/storage/ofd_packets [12:46:09]CheckFolder done [12:46:09]ProducePacketName [12:46:09]name=ofd_packets/00123239 [12:46:09]NVStorageSaveData ofd_packets/00123239 [12:46:09]File name is /storage/ofd_packets/00123239 [12:46:09]Write 301 bytes [12:46:09]NVStorageSaveData done [12:46:09]OFDSenderStorePacket done [12:46:09]KKMCreateOFDPacket done [12:46:09]NVStorageSaveData kkm_last_timestamp [12:46:09]File name is /storage/kkm_last_timestamp [12:46:09]Write 4 bytes [12:46:09]NVStorageSaveData done [12:46:09]ExternCall_PrintAddStr [12:46:09]wPrintStart [12:46:09]Write to MH i2c: 01 00 00 00 26 26 [12:46:09]Write i2c OK [12:46:09]MH_I2C_Read... [12:46:09]Read from MH i2c: 01 [12:46:09]MH_I2C_Read... [12:46:09]Read from MH i2c: 01 07 00 [12:46:09]MH_I2C_Read... [12:46:09]Read from MH i2c: 01 07 00 00 26 00 00 00 00 00 FF 0F 3B [12:46:09]RasterBufferAndPrint [12:46:09]line Счет N : (1)1106166 [12:46:09]line ИНН: 02508201610067 [12:46:09]line Контрольно-Кассовый Чек [12:46:09]line ПРОДАЖА [12:46:09]line ТРК (МРК, ГНК) : 23 [12:46:09]line Товар: 2710124500 [12:46:09]line Аи-95-К-5 [12:46:09]line 11.520 * 69.50 [12:46:09]line = 800.64 [12:46:09]line НДС 12% НСП 1% [12:46:09]line > о реализуемом товаре [12:46:09]line ИТОГО: 800.64 [12:46:09]line НСП 1% : 7.08 [12:46:09]line НДС 12% : 85.02 [12:46:09]line Наличными: 0.00 [12:46:09]line Безнал.: 800.64 [12:46:09]line Место: АЗС № 25 "Партнер Нефть" [12:46:09]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [12:46:09]line СНО: Общий режим [12:46:09]line Чек 96 03.03.2024 12:46 [12:46:09]line Смена: 323 ФФД: 1.0 [12:46:09]line ЗНМ: 0300000019 [12:46:09]line РНМ: 0000000000090573 [12:46:09]line Версия ККМ: 001 [12:46:09]line Платежная система: О! деньги [12:46:09]line ФМ: 0000000000874798 [12:46:09]line ФД: 123239 [12:46:09]line ФПД: 172326116701650 [12:46:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T124610&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123239&fm=172326116701650&tin=02508201610067®Number=0000000000090573&sum=80064 [12:46:09]OFD Sender: Processing packet 123239 [packets to send 112, broken 111] [12:46:09]ProducePacketName [12:46:09]name=ofd_packets/00123239 [12:46:09]OFD Sender: To server: pG, [12:46:09]CommunicateWithHost lk.salyk.kg:30040 [12:46:09]ConnectInit lk.salyk.kg [12:46:09]written 0, free lines is 4095 [12:46:09]Connected sock=10 [12:46: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 37 39 38 0F 01 00 00 33 5B 07 01 4F D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 00 2D 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 C0 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 12 71 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 67 E1 01 00 35 04 06 00 9C BA CC F8 B5 D2 49 D2 30 22 FE 5C C5 93 [12:46:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 6B 2D 47 00 D9 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 37 39 38 10 04 04 00 67 E1 01 00 F4 03 04 00 3E 1D E4 65 B6 04 01 00 00 24 17 7F 90 C1 08 F4 D1 [12:46:09]CommunicateWithHost err = 0 [12:46:09]CheckOFDResponse [12:46:09]1017 (14) - 77093643461234 [12:46:09]1041 (16) - 0000000000874798 [12:46:09]1040 (4) - 123239 [12:46:09]1012 (4) - 03.03.2024 06:48 [12:46:09]1206 (1) - 0 [12:46:09]OFD Sender: Remove packet 123239 [12:46:09]ProducePacketName [12:46:09]name=ofd_packets/00123239 [12:46:09]NVStorageDeleteData [12:46:09]Write to MH i2c: 01 00 00 2A 26 50 [12:46:09]Write i2c OK [12:46:09]MH_I2C_Read... [12:46:09]Read from MH i2c: 01 [12:46:09]MH_I2C_Read... [12:46:09]Read from MH i2c: 01 07 00 [12:46:09]MH_I2C_Read... [12:46:09]Read from MH i2c: 01 07 00 2A 26 00 00 00 00 00 FF 0C 62 [12:46:09]RasterBufferAndPrint [12:46:09]line [12:46:09]line [12:46:09]line [12:46:09]line [12:46:09]line [12:46:09]written 0, free lines is 3332 [12:46:09]MH_Cut [12:46:09]Write to MH i2c: D1 01 00 31 26 01 29 [12:46:09]Write i2c OK [12:46:09]MH_I2C_Read... [12:46:09]Read from MH i2c: D1 [12:46:09]MH_I2C_Read... [12:46:09]Read from MH i2c: D1 01 00 [12:46:09]MH_I2C_Read... [12:46:09]Read from MH i2c: D1 01 00 31 26 00 28 [12:46:09]Write to MH i2c: 01 00 00 32 26 58 [12:46:09]Write i2c OK [12:46:09]MH_I2C_Read... [12:46:10]OFD Sender: No OFD packet to send [12:46:10]*** Cut start [12:46:10]*** Purtial cut [12:46:10]*** Stage 1: CUTSNS_PIN = 1 [12:46:12]Read from MH i2c: 01 [12:46:12]MH_I2C_Read... [12:46:12]*** Stop cut motor [12:46:12]*** Cut end [12:46:12]Read from MH i2c: 01 07 00 [12:46:12]MH_I2C_Read... [12:46:12]Read from MH i2c: 01 07 00 32 26 00 00 00 00 00 FF 0F 6D [12:46:12]process_action close_receipt done [12:46:12]requested_data is exist [12:46:12]produce_requested_data [12:46:12]requested_item fm.sn is exist - process it [12:46:12]wFMCommunicate request_size=4 [12:46:12]MH_SAM_APDU [12:46:12]CAPDU: 80 11 00 00 [12:46:12]Write to MH i2c: E2 08 00 33 26 80 11 00 00 00 00 00 00 D3 [12:46:12]Write i2c OK [12:46:12]MH_I2C_Read... [12:46:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:12]Read from MH i2c: E2 [12:46:12]MH_I2C_Read... [12:46:12]Read from MH i2c: E2 17 00 [12:46:12]MH_I2C_Read... [12:46:12]Read from MH i2c: E2 17 00 33 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 31 [12:46:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [12:46:12]wFMCommunicate OK [12:46:12]requested_item fd.num is exist - process it [12:46:12]SAM_PROTO_GetFieldsCounters [12:46:12]wFMCommunicate request_size=4 [12:46:12]MH_SAM_APDU [12:46:12]CAPDU: 80 13 00 00 [12:46:12]Write to MH i2c: E2 08 00 34 26 80 13 00 00 00 00 00 00 D6 [12:46:12]Write i2c OK [12:46:12]MH_I2C_Read... [12:46:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:46:12]Read from MH i2c: E2 [12:46:12]MH_I2C_Read... [12:46:12]Read from MH i2c: E2 62 00 [12:46:12]MH_I2C_Read... [12:46:12]Read from MH i2c: E2 62 00 34 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 67 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 AE [12:46: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 67 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:46:12]wFMCommunicate OK [12:46:12]SAM_PROTO_GetFieldsCounters done [12:46:12]requested_item shift.num is exist - process it [12:46:12]requested_item shift.opened is exist - process it [12:46:12]req_shift_opened [12:46:12]FM_GetShiftState [12:46:12]SAM_PROTO_GetShiftState [12:46:12]wFMCommunicate request_size=4 [12:46:12]MH_SAM_APDU [12:46:12]CAPDU: 80 13 01 00 [12:46:12]Write to MH i2c: E2 08 00 35 26 80 13 01 00 00 00 00 00 D8 [12:46:12]Write i2c OK [12:46:12]MH_I2C_Read... [12:46:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:12]Read from MH i2c: E2 [12:46:12]MH_I2C_Read... [12:46:12]Read from MH i2c: E2 0E 00 [12:46:12]MH_I2C_Read... [12:46:12]Read from MH i2c: E2 0E 00 35 26 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 9A [12:46:12]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [12:46:12]wFMCommunicate OK [12:46:12]SAM_PROTO_GetShiftState done [12:46:12]FM_GetShiftState done [12:46:12]req_shift_opened done [12:46:12]requested_item shift.open_date is exist - process it [12:46:12]req_shift_open_date [12:46:12]req_shift_open_date done [12:46:12]produce_requested_data done [12:46:12]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123239,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [12:46:12]process_action_free close_receipt [12:46:12]json_value_free [12:46:12]json_value_free done [12:46:12]process_json_proto returns [12:46:12]Send response to host [12:46:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123239,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [12:46:12]free response buf [12:46:12]execute_script done [12:46:12]execute_script returns [12:46:12]free content buf [12:46:12]Sock 7.Close socket [12:46:12]Sock 7.Thread stoped [12:46:15]OFD Sender: No OFD packet to send [12:46:20]OFD Sender: No OFD packet to send [12:46:25]OFD Sender: No OFD packet to send [12:46:30]OFD Sender: No OFD packet to send [12:46:35]OFD Sender: No OFD packet to send [12:46:40]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:52]accept exits with 9 [12:49:52]New connection [12:49:52]New thread 3067252068 created [12:49:52]Thread 3067395428 joined [12:49:52]Waiting for new connection... [12:49:52] Sock 9.Parse request [12:49:52]Sock 9.Check first char [12:49:52]Sock 9.First char is OK [12:49:52]request: POST /json_proto HTTP/1.0 [12:49:52]Method: POST [12:49:52]URL: /json_proto [12:49:52]Method is POST - this is cgi request [12:49:52]url: /json_proto [12:49:52]query_string will be loaded in cgi processing [12:49:52]execute_cgi json_proto POST (null) [12:49:52]execute_cgi path=json_proto method=POST [12:49:52]POST find Content-Length [12:49:52]Host: 172.17.48.197:8080 [12:49:52]Content-Length: 806 [12:49:52]Content-Type: application/json [12:49:52] [12:49:52]POST finish read [12:49:52]Found Content-Length = 806 [12:49:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106167", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:49:52]execute_script... [12:49: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)1106167", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:49:52]POST & json_proto [12:49:52]process_json_proto [12:49:52]json parsed OK: [12:49:52]protocol is kg_v1.0 [12:49:52]action value=close_receipt [12:49:52]process_action close_receipt [12:49:52]cmd_close_receipt [12:49:52]MH_GetDate [12:49:52]Write to MH i2c: F0 00 00 36 26 4B [12:49:52]Write i2c OK [12:49:52]MH_I2C_Read... [12:49:52]Read from MH i2c: F0 [12:49:52]MH_I2C_Read... [12:49:52]Read from MH i2c: F0 09 00 [12:49:52]MH_I2C_Read... [12:49:52]Read from MH i2c: F0 09 00 36 26 00 F3 71 E4 65 6C AF E3 65 64 [12:49:52]GetLastDocTimeStamp 1709469970 [12:49:52]current date 1709470195 [12:49:52]FM_GetShiftState [12:49:52]SAM_PROTO_GetShiftState [12:49:52]wFMCommunicate request_size=4 [12:49:52]MH_SAM_APDU [12:49:52]CAPDU: 80 13 01 00 [12:49:52]Write to MH i2c: E2 08 00 37 26 80 13 01 00 00 00 00 00 DA [12:49:52]Write i2c OK [12:49:52]MH_I2C_Read... [12:49:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:52]Read from MH i2c: E2 [12:49:52]MH_I2C_Read... [12:49:52]Read from MH i2c: E2 0E 00 [12:49:52]MH_I2C_Read... [12:49:52]Read from MH i2c: E2 0E 00 37 26 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 9C [12:49:52]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [12:49:52]wFMCommunicate OK [12:49:52]SAM_PROTO_GetShiftState done [12:49:52]FM_GetShiftState done [12:49:52]opened in 1709425579 [12:49:52]opened+sec_in_day 1709511979 [12:49:52]quantity*price = 50015 [12:49:52]sum+1 = 50016 [12:49:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.15 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.15 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 97 03.03.2024 12:49 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874798 ФД: 123240 ФПД: 32846677477962 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T124955&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123240&fm=32846677477962&tin=02508201610067®Number=0000000000090573&sum=50015 [12:49:53]StoreToDocumentArchive [12:49:53]shift 323 fd 123240 [12:49:53]save to /storage/0323/doc_00123240 [12:49:53]save last doc name /storage/0323/doc_00123240 to /storage/kkm_last_doc_name [12:49:53]save OK [12:49:53]Clear old archive folders... [12:49:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:49:53]tlvbuf is 00DECA10 [12:49:53]SAM_PROTO_ClearQueue [12:49:53]wFMCommunicate request_size=4 [12:49:53]MH_SAM_APDU [12:49:53]CAPDU: 80 09 00 00 [12:49:53]Write to MH i2c: E2 08 00 44 26 80 09 00 00 00 00 00 00 DC [12:49:53]Write i2c OK [12:49:53]MH_I2C_Read... [12:49:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:49:53]Read from MH i2c: E2 [12:49:53]MH_I2C_Read... [12:49:53]Read from MH i2c: E2 03 00 [12:49:53]MH_I2C_Read... [12:49:53]Read from MH i2c: E2 03 00 44 26 00 90 00 DE [12:49:53]RAPDU: 90 00 [12:49:53]wFMCommunicate OK [12:49:53]SAM_PROTO_ClearQueue done [12:49:53]KKMCreateOFDPacket [12:49:53]OFDProtocolAddRootSTLVToBuf [12:49:53]FM_MakeSignedData [12:49:53]FM_MakeSignedData [12:49:53]SAM_PROTO_SignData [12:49:53]wFMCommunicate request_size=4 [12:49:53]MH_SAM_APDU [12:49:53]CAPDU: 80 0D 01 02 [12:49:53]Write to MH i2c: E2 08 00 45 26 80 0D 01 02 00 00 00 00 E4 [12:49:53]Write i2c OK [12:49:53]MH_I2C_Read... [12:49:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:49:53]Read from MH i2c: E2 [12:49:53]MH_I2C_Read... [12:49:53]Read from MH i2c: E2 03 00 [12:49:53]MH_I2C_Read... [12:49:53]Read from MH i2c: E2 03 00 45 26 00 90 00 DF [12:49:53]RAPDU: 90 00 [12:49:53]wFMCommunicate OK [12:49:53]wFMCommunicate request_size=255 [12:49:53]MH_SAM_APDU [12:49:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 F3 71 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 68 E1 01 00 35 04 06 00 1D [12:49:53]Write to MH i2c: E2 02 01 46 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 F3 71 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 68 E1 01 00 35 04 06 00 1D 00 00 9B [12:49:53]Write i2c OK [12:49:53]MH_I2C_Read... [12:49:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:53]Read from MH i2c: E2 [12:49:53]MH_I2C_Read... [12:49:53]Read from MH i2c: E2 03 00 [12:49:53]MH_I2C_Read... [12:49:53]Read from MH i2c: E2 03 00 46 26 00 90 00 E0 [12:49:53]RAPDU: 90 00 [12:49:53]wFMCommunicate OK [12:49:53]wFMCommunicate request_size=10 [12:49:53]MH_SAM_APDU [12:49:53]CAPDU: 80 0D 02 02 05 DF B6 8B 0A 4A [12:49:53]Write to MH i2c: E2 0D 00 47 26 80 0D 02 02 05 00 DF B6 8B 0A 4A 00 00 65 [12:49:53]Write i2c OK [12:49:53]MH_I2C_Read... [12:49:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:53]Read from MH i2c: E2 [12:49:53]MH_I2C_Read... [12:49:53]Read from MH i2c: E2 03 00 [12:49:53]MH_I2C_Read... [12:49:53]Read from MH i2c: E2 03 00 47 26 00 90 00 E1 [12:49:53]RAPDU: 90 00 [12:49:53]wFMCommunicate OK [12:49:53]wFMCommunicate request_size=4 [12:49:53]MH_SAM_APDU [12:49:53]CAPDU: 80 0D 03 02 [12:49:53]Write to MH i2c: E2 08 00 48 26 80 0D 03 02 00 00 00 00 E9 [12:49:53]Write i2c OK [12:49:53]MH_I2C_Read... [12:49:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:49:54]Read from MH i2c: E2 [12:49:54]MH_I2C_Read... [12:49:54]Read from MH i2c: E2 0B 00 [12:49:54]MH_I2C_Read... [12:49:54]Read from MH i2c: E2 0B 00 48 26 00 3C 9C 62 C5 54 AC 28 D1 90 00 E2 [12:49:54]RAPDU: 3C 9C 62 C5 54 AC 28 D1 90 00 [12:49:54]wFMCommunicate OK [12:49:54]SAM_PROTO_SignData done [12:49:54]FM_MakeSignedData done [12:49:54]CreateOFDProtocolMessage [12:49:54]wFMCommunicate request_size=4 [12:49:54]MH_SAM_APDU [12:49:54]CAPDU: 80 11 00 00 [12:49:54]Write to MH i2c: E2 08 00 49 26 80 11 00 00 00 00 00 00 E9 [12:49:54]Write i2c OK [12:49:54]MH_I2C_Read... [12:49:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:54]Read from MH i2c: E2 [12:49:54]MH_I2C_Read... [12:49:54]Read from MH i2c: E2 17 00 [12:49:54]MH_I2C_Read... [12:49:54]Read from MH i2c: E2 17 00 49 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 47 [12:49:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [12:49:54]wFMCommunicate OK [12:49:54]CreateOFDProtocolMessage done [12:49:54]OFDSenderStorePacket 123240 [12:49:54]StoreOFDPacket docnum=123240 [12:49:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 8D C7 07 01 E5 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 F3 71 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 68 E1 01 00 35 04 06 00 1D DF B6 8B 0A 4A 3C 9C 62 C5 54 AC 28 D1 [12:49:54]CheckFolder [12:49:54]dirname=/storage/ofd_packets [12:49:54]CheckFolder done [12:49:54]ProducePacketName [12:49:54]name=ofd_packets/00123240 [12:49:54]NVStorageSaveData ofd_packets/00123240 [12:49:54]File name is /storage/ofd_packets/00123240 [12:49:54]Write 301 bytes [12:49:54]NVStorageSaveData done [12:49:54]OFDSenderStorePacket done [12:49:54]KKMCreateOFDPacket done [12:49:54]NVStorageSaveData kkm_last_timestamp [12:49:54]File name is /storage/kkm_last_timestamp [12:49:54]Write 4 bytes [12:49:54]NVStorageSaveData done [12:49:54]ExternCall_PrintAddStr [12:49:54]wPrintStart [12:49:54]Write to MH i2c: 01 00 00 4A 26 70 [12:49:54]Write i2c OK [12:49:54]MH_I2C_Read... [12:49:54]Read from MH i2c: 01 [12:49:54]MH_I2C_Read... [12:49:54]Read from MH i2c: 01 07 00 [12:49:54]MH_I2C_Read... [12:49:54]Read from MH i2c: 01 07 00 4A 26 00 00 00 00 00 FF 0F 85 [12:49:54]RasterBufferAndPrint [12:49:54]line Счет N : (1)1106167 [12:49:54]line ИНН: 02508201610067 [12:49:54]line Контрольно-Кассовый Чек [12:49:54]line ПРОДАЖА [12:49:54]line ТРК (МРК, ГНК) : 11 [12:49:54]line Товар: 2710124130 [12:49:54]line Аи-92-К-5 [12:49:54]line 8.080 * 61.90 [12:49:54]line = 500.15 [12:49:54]line НДС 12% НСП 1% [12:49:54]line > о реализуемом товаре [12:49:54]line ИТОГО: 500.15 [12:49:54]line НСП 1% : 4.43 [12:49:54]line НДС 12% : 53.11 [12:49:54]line Наличными: 0.00 [12:49:54]line Безнал.: 500.15 [12:49:54]line Место: АЗС № 25 "Партнер Нефть" [12:49:54]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [12:49:54]line СНО: Общий режим [12:49:54]line Чек 97 03.03.2024 12:49 [12:49:54]line Смена: 323 ФФД: 1.0 [12:49:54]line ЗНМ: 0300000019 [12:49:54]line РНМ: 0000000000090573 [12:49:54]line Версия ККМ: 001 [12:49:54]line Платежная система: О! деньги [12:49:54]line ФМ: 0000000000874798 [12:49:54]line ФД: 123240 [12:49:54]line ФПД: 32846677477962 [12:49:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T124955&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123240&fm=32846677477962&tin=02508201610067®Number=0000000000090573&sum=50015 [12:49:54]OFD Sender: Processing packet 123240 [packets to send 112, broken 111] [12:49:54]ProducePacketName [12:49:54]name=ofd_packets/00123240 [12:49:54]OFD Sender: To server: pG, [12:49:54]CommunicateWithHost lk.salyk.kg:30040 [12:49:54]ConnectInit lk.salyk.kg [12:49:54]written 0, free lines is 4095 [12:49:54]Connected sock=10 [12:49: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 37 39 38 0F 01 00 00 8D C7 07 01 E5 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 F3 71 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 68 E1 01 00 35 04 06 00 1D DF B6 8B 0A 4A 3C 9C 62 C5 54 AC 28 D1 [12:49:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 17 8A 47 00 97 A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 68 E1 01 00 F4 03 04 00 1F 1E E4 65 B6 04 01 00 00 39 20 EA 33 B3 0F BC DF [12:49:54]CommunicateWithHost err = 0 [12:49:54]CheckOFDResponse [12:49:54]1017 (14) - 77093643461234 [12:49:54]1041 (16) - 0000000000874798 [12:49:54]1040 (4) - 123240 [12:49:54]1012 (4) - 03.03.2024 06:52 [12:49:54]1206 (1) - 0 [12:49:54]OFD Sender: Remove packet 123240 [12:49:54]ProducePacketName [12:49:54]name=ofd_packets/00123240 [12:49:54]NVStorageDeleteData [12:49:54]Write to MH i2c: 01 00 00 74 26 9A [12:49:54]Write i2c OK [12:49:54]MH_I2C_Read... [12:49:54]Read from MH i2c: 01 [12:49:54]MH_I2C_Read... [12:49:54]Read from MH i2c: 01 07 00 [12:49:54]MH_I2C_Read... [12:49:54]Read from MH i2c: 01 07 00 74 26 00 00 00 00 00 FA 0C A7 [12:49:54]RasterBufferAndPrint [12:49:54]line [12:49:54]line [12:49:54]line [12:49:54]line [12:49:54]line [12:49:54]written 0, free lines is 3331 [12:49:54]MH_Cut [12:49:54]Write to MH i2c: D1 01 00 7B 26 01 73 [12:49:54]Write i2c OK [12:49:54]MH_I2C_Read... [12:49:54]Read from MH i2c: D1 [12:49:54]MH_I2C_Read... [12:49:54]Read from MH i2c: D1 01 00 [12:49:54]MH_I2C_Read... [12:49:54]Read from MH i2c: D1 01 00 7B 26 00 72 [12:49:54]Write to MH i2c: 01 00 00 7C 26 A2 [12:49:54]Write i2c OK [12:49:54]MH_I2C_Read... [12:49:55]OFD Sender: No OFD packet to send [12:49:55]*** Cut start [12:49:55]*** Purtial cut [12:49:55]*** Stage 1: CUTSNS_PIN = 1 [12:49:57]Read from MH i2c: 01 [12:49:57]MH_I2C_Read... [12:49:57]*** Stop cut motor [12:49:57]*** Cut end [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 7C 26 00 00 00 00 00 FF 0F B7 [12:49:57]process_action close_receipt done [12:49:57]requested_data is exist [12:49:57]produce_requested_data [12:49:57]requested_item fm.sn is exist - process it [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 7D 26 80 11 00 00 00 00 00 00 1D [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 7D 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 7B [12:49:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [12:49:57]wFMCommunicate OK [12:49:57]requested_item fd.num is exist - process it [12:49:57]SAM_PROTO_GetFieldsCounters [12:49:57]wFMCommunicate request_size=4 [12:49:57]MH_SAM_APDU [12:49:57]CAPDU: 80 13 00 00 [12:49:57]Write to MH i2c: E2 08 00 7E 26 80 13 00 00 00 00 00 00 20 [12:49:57]Write i2c OK [12:49:57]MH_I2C_Read... [12:49:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:49:57]Read from MH i2c: E2 [12:49:57]MH_I2C_Read... [12:49:57]Read from MH i2c: E2 62 00 [12:49:57]MH_I2C_Read... [12:49:57]Read from MH i2c: E2 62 00 7E 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 68 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 FC [12:49: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 68 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:49:57]wFMCommunicate OK [12:49:57]SAM_PROTO_GetFieldsCounters done [12:49:57]requested_item shift.num is exist - process it [12:49:57]requested_item shift.opened is exist - process it [12:49:57]req_shift_opened [12:49:57]FM_GetShiftState [12:49:57]SAM_PROTO_GetShiftState [12:49:57]wFMCommunicate request_size=4 [12:49:57]MH_SAM_APDU [12:49:57]CAPDU: 80 13 01 00 [12:49:57]Write to MH i2c: E2 08 00 7F 26 80 13 01 00 00 00 00 00 22 [12:49:57]Write i2c OK [12:49:57]MH_I2C_Read... [12:49:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:57]Read from MH i2c: E2 [12:49:57]MH_I2C_Read... [12:49:57]Read from MH i2c: E2 0E 00 [12:49:57]MH_I2C_Read... [12:49:57]Read from MH i2c: E2 0E 00 7F 26 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 E4 [12:49:57]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [12:49:57]wFMCommunicate OK [12:49:57]SAM_PROTO_GetShiftState done [12:49:57]FM_GetShiftState done [12:49:57]req_shift_opened done [12:49:57]requested_item shift.open_date is exist - process it [12:49:57]req_shift_open_date [12:49:57]req_shift_open_date done [12:49:57]produce_requested_data done [12:49:57]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123240,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [12:49:57]process_action_free close_receipt [12:49:57]json_value_free [12:49:57]json_value_free done [12:49:57]process_json_proto returns [12:49:57]Send response to host [12:49:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123240,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [12:49:57]free response buf [12:49:57]execute_script done [12:49:57]execute_script returns [12:49:57]free content buf [12:49:57]Sock 9.Close socket [12:49:57]Sock 9.Thread stoped [12:50:00]OFD Sender: No OFD packet to send [12:50:05]OFD Sender: No OFD packet to send [12:50:10]OFD Sender: No OFD packet to send [12:50:15]OFD Sender: No OFD packet to send [12:50:20]OFD Sender: No OFD packet to send [12:50:25]OFD Sender: No OFD packet to send [12:50:30]OFD Sender: No OFD packet to send [12:50:35]OFD Sender: No OFD packet to send [12:50:40]OFD Sender: No OFD packet to send [12:50:45]OFD Sender: No OFD packet to send [12:50:50]OFD Sender: No OFD packet to send [12:50:55]OFD Sender: No OFD packet to send [12:51:00]OFD Sender: No OFD packet to send [12:51:05]OFD Sender: No OFD packet to send [12:51:10]OFD Sender: No OFD packet to send [12:51:15]OFD Sender: No OFD packet to send [12:51:20]OFD Sender: No OFD packet to send [12:51:25]OFD Sender: No OFD packet to send [12:51:30]OFD Sender: No OFD packet to send [12:51:35]OFD Sender: No OFD packet to send [12:51:40]OFD Sender: No OFD packet to send [12:51:45]OFD Sender: No OFD packet to send [12:51:50]OFD Sender: No OFD packet to send [12:51:55]OFD Sender: No OFD packet to send [12:52:00]OFD Sender: No OFD packet to send [12:52:05]OFD Sender: No OFD packet to send [12:52:10]OFD Sender: No OFD packet to send [12:52:15]OFD Sender: No OFD packet to send [12:52:20]OFD Sender: No OFD packet to send [12:52:25]OFD Sender: No OFD packet to send [12:52:30]OFD Sender: No OFD packet to send [12:52:34]accept exits with 7 [12:52:34]New connection [12:52:34]New thread 3067395428 created [12:52:34]Thread 3067252068 joined [12:52:34]Waiting for new connection... [12:52:34] Sock 7.Parse request [12:52:34]Sock 7.Check first char [12:52:34]Sock 7.First char is OK [12:52:34]request: POST /json_proto HTTP/1.0 [12:52:34]Method: POST [12:52:34]URL: /json_proto [12:52:34]Method is POST - this is cgi request [12:52:34]url: /json_proto [12:52:34]query_string will be loaded in cgi processing [12:52:34]execute_cgi json_proto POST (null) [12:52:34]execute_cgi path=json_proto method=POST [12:52:34]POST find Content-Length [12:52:34]Host: 172.17.48.197:8080 [12:52:34]Content-Length: 806 [12:52:34]Content-Type: application/json [12:52:34] [12:52:34]POST finish read [12:52:34]Found Content-Length = 806 [12:52:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106168", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.890, "sum" : 550.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 550.29 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:52:34]execute_script... [12:52:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106168", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.890, "sum" : 550.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 550.29 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:52:34]POST & json_proto [12:52:34]process_json_proto [12:52:34]json parsed OK: [12:52:34]protocol is kg_v1.0 [12:52:34]action value=close_receipt [12:52:34]process_action close_receipt [12:52:34]cmd_close_receipt [12:52:34]MH_GetDate [12:52:34]Write to MH i2c: F0 00 00 80 26 95 [12:52:34]Write i2c OK [12:52:34]MH_I2C_Read... [12:52:34]Read from MH i2c: F0 [12:52:34]MH_I2C_Read... [12:52:34]Read from MH i2c: F0 09 00 [12:52:34]MH_I2C_Read... [12:52:34]Read from MH i2c: F0 09 00 80 26 00 95 72 E4 65 6C AF E3 65 51 [12:52:34]GetLastDocTimeStamp 1709470195 [12:52:34]current date 1709470357 [12:52:34]FM_GetShiftState [12:52:34]SAM_PROTO_GetShiftState [12:52:34]wFMCommunicate request_size=4 [12:52:34]MH_SAM_APDU [12:52:34]CAPDU: 80 13 01 00 [12:52:34]Write to MH i2c: E2 08 00 81 26 80 13 01 00 00 00 00 00 24 [12:52:34]Write i2c OK [12:52:34]MH_I2C_Read... [12:52:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:52:34]Read from MH i2c: E2 [12:52:34]MH_I2C_Read... [12:52:34]Read from MH i2c: E2 0E 00 [12:52:34]MH_I2C_Read... [12:52:34]Read from MH i2c: E2 0E 00 81 26 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 E6 [12:52:34]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [12:52:34]wFMCommunicate OK [12:52:34]SAM_PROTO_GetShiftState done [12:52:34]FM_GetShiftState done [12:52:34]opened in 1709425579 [12:52:34]opened+sec_in_day 1709511979 [12:52:34]quantity*price = 55029 [12:52:34]sum+1 = 55030 [12:52:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 550.29 НСП 1% : 4.87 НДС 12% : 58.44 Наличными: 0.00 Безнал.: 550.29 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 98 03.03.2024 12:52 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874798 ФД: 123241 ФПД: 66672567963672 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T125237&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123241&fm=66672567963672&tin=02508201610067®Number=0000000000090573&sum=55029 [12:52:35]StoreToDocumentArchive [12:52:35]shift 323 fd 123241 [12:52:35]save to /storage/0323/doc_00123241 [12:52:35]save last doc name /storage/0323/doc_00123241 to /storage/kkm_last_doc_name [12:52:35]save OK [12:52:35]Clear old archive folders... [12:52:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:52:35]tlvbuf is 00E0D3D0 [12:52:35]SAM_PROTO_ClearQueue [12:52:35]wFMCommunicate request_size=4 [12:52:35]MH_SAM_APDU [12:52:35]CAPDU: 80 09 00 00 [12:52:35]Write to MH i2c: E2 08 00 8E 26 80 09 00 00 00 00 00 00 26 [12:52:35]Write i2c OK [12:52:35]MH_I2C_Read... [12:52:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:52:35]Read from MH i2c: E2 [12:52:35]MH_I2C_Read... [12:52:35]Read from MH i2c: E2 03 00 [12:52:35]MH_I2C_Read... [12:52:35]Read from MH i2c: E2 03 00 8E 26 00 90 00 28 [12:52:35]RAPDU: 90 00 [12:52:35]wFMCommunicate OK [12:52:35]SAM_PROTO_ClearQueue done [12:52:35]KKMCreateOFDPacket [12:52:35]OFDProtocolAddRootSTLVToBuf [12:52:35]FM_MakeSignedData [12:52:35]FM_MakeSignedData [12:52:35]SAM_PROTO_SignData [12:52:35]wFMCommunicate request_size=4 [12:52:35]MH_SAM_APDU [12:52:35]CAPDU: 80 0D 01 02 [12:52:35]Write to MH i2c: E2 08 00 8F 26 80 0D 01 02 00 00 00 00 2E [12:52:35]Write i2c OK [12:52:35]MH_I2C_Read... [12:52:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:52:35]Read from MH i2c: E2 [12:52:35]MH_I2C_Read... [12:52:35]Read from MH i2c: E2 03 00 [12:52:35]MH_I2C_Read... [12:52:35]Read from MH i2c: E2 03 00 8F 26 00 90 00 29 [12:52:35]RAPDU: 90 00 [12:52:35]wFMCommunicate OK [12:52:35]wFMCommunicate request_size=255 [12:52:35]MH_SAM_APDU [12:52: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 35 FF 03 08 00 03 BA 22 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 F5 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F5 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 D4 16 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F5 D6 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 95 72 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 69 E1 01 00 35 04 06 00 3C [12:52:35]Write to MH i2c: E2 02 01 90 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 22 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 F5 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F5 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 D4 16 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F5 D6 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 95 72 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 69 E1 01 00 35 04 06 00 3C 00 00 14 [12:52:35]Write i2c OK [12:52:35]MH_I2C_Read... [12:52:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:52:36]Read from MH i2c: E2 [12:52:36]MH_I2C_Read... [12:52:36]Read from MH i2c: E2 03 00 [12:52:36]MH_I2C_Read... [12:52:36]Read from MH i2c: E2 03 00 90 26 00 90 00 2A [12:52:36]RAPDU: 90 00 [12:52:36]wFMCommunicate OK [12:52:36]wFMCommunicate request_size=10 [12:52:36]MH_SAM_APDU [12:52:36]CAPDU: 80 0D 02 02 05 A3 6A BA D0 18 [12:52:36]Write to MH i2c: E2 0D 00 91 26 80 0D 02 02 05 00 A3 6A BA D0 18 00 00 EA [12:52:36]Write i2c OK [12:52:36]MH_I2C_Read... [12:52:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:52:36]Read from MH i2c: E2 [12:52:36]MH_I2C_Read... [12:52:36]Read from MH i2c: E2 03 00 [12:52:36]MH_I2C_Read... [12:52:36]Read from MH i2c: E2 03 00 91 26 00 90 00 2B [12:52:36]RAPDU: 90 00 [12:52:36]wFMCommunicate OK [12:52:36]wFMCommunicate request_size=4 [12:52:36]MH_SAM_APDU [12:52:36]CAPDU: 80 0D 03 02 [12:52:36]Write to MH i2c: E2 08 00 92 26 80 0D 03 02 00 00 00 00 33 [12:52:36]Write i2c OK [12:52:36]MH_I2C_Read... [12:52:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:52:36]Read from MH i2c: E2 [12:52:36]MH_I2C_Read... [12:52:36]Read from MH i2c: E2 0B 00 [12:52:36]MH_I2C_Read... [12:52:36]Read from MH i2c: E2 0B 00 92 26 00 AF AF 29 C0 10 FD 9C 00 90 00 24 [12:52:36]RAPDU: AF AF 29 C0 10 FD 9C 00 90 00 [12:52:36]wFMCommunicate OK [12:52:36]SAM_PROTO_SignData done [12:52:36]FM_MakeSignedData done [12:52:36]CreateOFDProtocolMessage [12:52:36]wFMCommunicate request_size=4 [12:52:36]MH_SAM_APDU [12:52:36]CAPDU: 80 11 00 00 [12:52:36]Write to MH i2c: E2 08 00 93 26 80 11 00 00 00 00 00 00 33 [12:52:36]Write i2c OK [12:52:36]MH_I2C_Read... [12:52:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:52:36]Read from MH i2c: E2 [12:52:36]MH_I2C_Read... [12:52:36]Read from MH i2c: E2 17 00 [12:52:36]MH_I2C_Read... [12:52:36]Read from MH i2c: E2 17 00 93 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 91 [12:52:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [12:52:36]wFMCommunicate OK [12:52:36]CreateOFDProtocolMessage done [12:52:36]OFDSenderStorePacket 123241 [12:52:36]StoreOFDPacket docnum=123241 [12:52:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 6B 9C 07 01 E9 BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 22 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 F5 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F5 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 D4 16 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F5 D6 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 95 72 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 69 E1 01 00 35 04 06 00 3C A3 6A BA D0 18 AF AF 29 C0 10 FD 9C 00 [12:52:36]CheckFolder [12:52:36]dirname=/storage/ofd_packets [12:52:36]CheckFolder done [12:52:36]ProducePacketName [12:52:36]name=ofd_packets/00123241 [12:52:36]NVStorageSaveData ofd_packets/00123241 [12:52:36]File name is /storage/ofd_packets/00123241 [12:52:36]Write 301 bytes [12:52:36]NVStorageSaveData done [12:52:36]OFDSenderStorePacket done [12:52:36]KKMCreateOFDPacket done [12:52:36]NVStorageSaveData kkm_last_timestamp [12:52:36]File name is /storage/kkm_last_timestamp [12:52:36]Write 4 bytes [12:52:36]NVStorageSaveData done [12:52:36]ExternCall_PrintAddStr [12:52:36]wPrintStart [12:52:36]Write to MH i2c: 01 00 00 94 26 BA [12:52:36]Write i2c OK [12:52:36]MH_I2C_Read... [12:52:36]Read from MH i2c: 01 [12:52:36]MH_I2C_Read... [12:52:36]Read from MH i2c: 01 07 00 [12:52:36]MH_I2C_Read... [12:52:36]Read from MH i2c: 01 07 00 94 26 00 00 00 00 00 FF 0F CF [12:52:36]RasterBufferAndPrint [12:52:36]line Счет N : (1)1106168 [12:52:36]line ИНН: 02508201610067 [12:52:36]line Контрольно-Кассовый Чек [12:52:36]line ПРОДАЖА [12:52:36]line ТРК (МРК, ГНК) : 21 [12:52:36]line Товар: 2710124130 [12:52:36]line Аи-92-К-5 [12:52:36]line 8.890 * 61.90 [12:52:36]line = 550.29 [12:52:36]line НДС 12% НСП 1% [12:52:36]line > о реализуемом товаре [12:52:36]line ИТОГО: 550.29 [12:52:36]line НСП 1% : 4.87 [12:52:36]line НДС 12% : 58.44 [12:52:36]line Наличными: 0.00 [12:52:36]line Безнал.: 550.29 [12:52:36]line Место: АЗС № 25 "Партнер Нефть" [12:52:36]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [12:52:36]line СНО: Общий режим [12:52:36]line Чек 98 03.03.2024 12:52 [12:52:36]line Смена: 323 ФФД: 1.0 [12:52:36]line ЗНМ: 0300000019 [12:52:36]line РНМ: 0000000000090573 [12:52:36]line Версия ККМ: 001 [12:52:36]line Платежная система: О! деньги [12:52:36]line ФМ: 0000000000874798 [12:52:36]line ФД: 123241 [12:52:36]line ФПД: 66672567963672 [12:52:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T125237&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123241&fm=66672567963672&tin=02508201610067®Number=0000000000090573&sum=55029 [12:52:36]OFD Sender: Processing packet 123241 [packets to send 112, broken 111] [12:52:36]ProducePacketName [12:52:36]name=ofd_packets/00123241 [12:52:36]OFD Sender: To server: pG, [12:52:36]CommunicateWithHost lk.salyk.kg:30040 [12:52:36]ConnectInit lk.salyk.kg [12:52:36]written 0, free lines is 4095 [12:52:36]Connected sock=10 [12:52: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 37 39 38 0F 01 00 00 6B 9C 07 01 E9 BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 22 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 F5 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F5 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 D4 16 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F5 D6 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 95 72 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 69 E1 01 00 35 04 06 00 3C A3 6A BA D0 18 AF AF 29 C0 10 FD 9C 00 [12:52:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 FF 2A 47 00 33 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 69 E1 01 00 F4 03 04 00 C1 1E E4 65 B6 04 01 00 00 8F EE 38 F4 24 8A 81 BA [12:52:36]CommunicateWithHost err = 0 [12:52:36]CheckOFDResponse [12:52:36]1017 (14) - 77093643461234 [12:52:36]1041 (16) - 0000000000874798 [12:52:36]1040 (4) - 123241 [12:52:36]1012 (4) - 03.03.2024 06:54 [12:52:36]1206 (1) - 0 [12:52:36]OFD Sender: Remove packet 123241 [12:52:36]ProducePacketName [12:52:36]name=ofd_packets/00123241 [12:52:36]NVStorageDeleteData [12:52:36]Write to MH i2c: 01 00 00 BE 26 E4 [12:52:36]Write i2c OK [12:52:36]MH_I2C_Read... [12:52:36]Read from MH i2c: 01 [12:52:36]MH_I2C_Read... [12:52:36]Read from MH i2c: 01 07 00 [12:52:36]MH_I2C_Read... [12:52:36]Read from MH i2c: 01 07 00 BE 26 00 00 00 00 00 03 0D FB [12:52:36]RasterBufferAndPrint [12:52:36]line [12:52:36]line [12:52:36]line [12:52:36]line [12:52:36]line [12:52:36]written 0, free lines is 3337 [12:52:36]MH_Cut [12:52:36]Write to MH i2c: D1 01 00 C5 26 01 BD [12:52:36]Write i2c OK [12:52:36]MH_I2C_Read... [12:52:36]Read from MH i2c: D1 [12:52:36]MH_I2C_Read... [12:52:36]Read from MH i2c: D1 01 00 [12:52:36]MH_I2C_Read... [12:52:36]Read from MH i2c: D1 01 00 C5 26 00 BC [12:52:36]Write to MH i2c: 01 00 00 C6 26 EC [12:52:36]Write i2c OK [12:52:36]MH_I2C_Read... [12:52:37]OFD Sender: No OFD packet to send [12:52:37]*** Cut start [12:52:37]*** Purtial cut [12:52:37]*** Stage 1: CUTSNS_PIN = 1 [12:52:39]Read from MH i2c: 01 [12:52:39]MH_I2C_Read... [12:52:39]*** Stop cut motor [12:52:39]*** Cut end [12:52:39]Read from MH i2c: 01 07 00 [12:52:39]MH_I2C_Read... [12:52:39]Read from MH i2c: 01 07 00 C6 26 00 00 00 00 00 FF 0F 01 [12:52:39]process_action close_receipt done [12:52:39]requested_data is exist [12:52:39]produce_requested_data [12:52:39]requested_item fm.sn is exist - process it [12:52:39]wFMCommunicate request_size=4 [12:52:39]MH_SAM_APDU [12:52:39]CAPDU: 80 11 00 00 [12:52:39]Write to MH i2c: E2 08 00 C7 26 80 11 00 00 00 00 00 00 67 [12:52:39]Write i2c OK [12:52:39]MH_I2C_Read... [12:52:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:52:39]Read from MH i2c: E2 [12:52:39]MH_I2C_Read... [12:52:39]Read from MH i2c: E2 17 00 [12:52:39]MH_I2C_Read... [12:52:39]Read from MH i2c: E2 17 00 C7 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 C5 [12:52:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [12:52:39]wFMCommunicate OK [12:52:39]requested_item fd.num is exist - process it [12:52:39]SAM_PROTO_GetFieldsCounters [12:52:39]wFMCommunicate request_size=4 [12:52:39]MH_SAM_APDU [12:52:39]CAPDU: 80 13 00 00 [12:52:39]Write to MH i2c: E2 08 00 C8 26 80 13 00 00 00 00 00 00 6A [12:52:39]Write i2c OK [12:52:39]MH_I2C_Read... [12:52:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:52:39]Read from MH i2c: E2 [12:52:39]MH_I2C_Read... [12:52:39]Read from MH i2c: E2 62 00 [12:52:39]MH_I2C_Read... [12:52:39]Read from MH i2c: E2 62 00 C8 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 69 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 4A [12:52: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 69 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:52:39]wFMCommunicate OK [12:52:39]SAM_PROTO_GetFieldsCounters done [12:52:39]requested_item shift.num is exist - process it [12:52:39]requested_item shift.opened is exist - process it [12:52:39]req_shift_opened [12:52:39]FM_GetShiftState [12:52:39]SAM_PROTO_GetShiftState [12:52:39]wFMCommunicate request_size=4 [12:52:39]MH_SAM_APDU [12:52:39]CAPDU: 80 13 01 00 [12:52:39]Write to MH i2c: E2 08 00 C9 26 80 13 01 00 00 00 00 00 6C [12:52:39]Write i2c OK [12:52:39]MH_I2C_Read... [12:52:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:52:39]Read from MH i2c: E2 [12:52:39]MH_I2C_Read... [12:52:39]Read from MH i2c: E2 0E 00 [12:52:39]MH_I2C_Read... [12:52:39]Read from MH i2c: E2 0E 00 C9 26 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 2E [12:52:39]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [12:52:39]wFMCommunicate OK [12:52:39]SAM_PROTO_GetShiftState done [12:52:39]FM_GetShiftState done [12:52:39]req_shift_opened done [12:52:39]requested_item shift.open_date is exist - process it [12:52:39]req_shift_open_date [12:52:39]req_shift_open_date done [12:52:39]produce_requested_data done [12:52:39]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123241,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [12:52:39]process_action_free close_receipt [12:52:39]json_value_free [12:52:39]json_value_free done [12:52:39]process_json_proto returns [12:52:39]Send response to host [12:52:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123241,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [12:52:39]free response buf [12:52:39]execute_script done [12:52:39]execute_script returns [12:52:39]free content buf [12:52:39]Sock 7.Close socket [12:52:39]Sock 7.Thread stoped [12:52:42]OFD Sender: No OFD packet to send [12:52:47]OFD Sender: No OFD packet to send [12:52:52]OFD Sender: No OFD packet to send [12:52:57]OFD Sender: No OFD packet to send [12:53:02]OFD Sender: No OFD packet to send [12:53:07]OFD Sender: No OFD packet to send [12:53:12]OFD Sender: No OFD packet to send [12:53:17]OFD Sender: No OFD packet to send [12:53:22]OFD Sender: No OFD packet to send [12:53:27]OFD Sender: No OFD packet to send [12:53:32]OFD Sender: No OFD packet to send [12:53:37]OFD Sender: No OFD packet to send [12:53:42]OFD Sender: No OFD packet to send [12:53:47]OFD Sender: No OFD packet to send [12:53:52]OFD Sender: No OFD packet to send [12:53:57]OFD Sender: No OFD packet to send [12:54:02]OFD Sender: No OFD packet to send [12:54:07]OFD Sender: No OFD packet to send [12:54:12]OFD Sender: No OFD packet to send [12:54:17]OFD Sender: No OFD packet to send [12:54:22]OFD Sender: No OFD packet to send [12:54:27]OFD Sender: No OFD packet to send [12:54:32]OFD Sender: No OFD packet to send [12:54:34]accept exits with 9 [12:54:34]New connection [12:54:34]New thread 3067252068 created [12:54:34]Thread 3067395428 joined [12:54:34]Waiting for new connection... [12:54:34] Sock 9.Parse request [12:54:34]Sock 9.Check first char [12:54:34]Sock 9.First char is OK [12:54:34]request: POST /json_proto HTTP/1.0 [12:54:34]Method: POST [12:54:34]URL: /json_proto [12:54:34]Method is POST - this is cgi request [12:54:34]url: /json_proto [12:54:34]query_string will be loaded in cgi processing [12:54:34]execute_cgi json_proto POST (null) [12:54:34]execute_cgi path=json_proto method=POST [12:54:34]POST find Content-Length [12:54:34]Host: 172.17.48.197:8080 [12:54:34]Content-Length: 678 [12:54:34]Content-Type: application/json [12:54:34] [12:54:34]POST finish read [12:54:34]Found Content-Length = 678 [12:54:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106169", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 4.850, "sum" : 300.22, "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" ] } } [12:54:34]execute_script... [12:54:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106169", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 4.850, "sum" : 300.22, "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" ] } } [12:54:34]POST & json_proto [12:54:34]process_json_proto [12:54:34]json parsed OK: [12:54:34]protocol is kg_v1.0 [12:54:34]action value=close_receipt [12:54:34]process_action close_receipt [12:54:34]cmd_close_receipt [12:54:34]MH_GetDate [12:54:34]Write to MH i2c: F0 00 00 CA 26 DF [12:54:34]Write i2c OK [12:54:34]MH_I2C_Read... [12:54:34]Read from MH i2c: F0 [12:54:34]MH_I2C_Read... [12:54:34]Read from MH i2c: F0 09 00 [12:54:34]MH_I2C_Read... [12:54:34]Read from MH i2c: F0 09 00 CA 26 00 0D 73 E4 65 6C AF E3 65 14 [12:54:34]GetLastDocTimeStamp 1709470357 [12:54:34]current date 1709470477 [12:54:34]FM_GetShiftState [12:54:34]SAM_PROTO_GetShiftState [12:54:34]wFMCommunicate request_size=4 [12:54:34]MH_SAM_APDU [12:54:34]CAPDU: 80 13 01 00 [12:54:34]Write to MH i2c: E2 08 00 CB 26 80 13 01 00 00 00 00 00 6E [12:54:34]Write i2c OK [12:54:34]MH_I2C_Read... [12:54:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:54:34]Read from MH i2c: E2 [12:54:34]MH_I2C_Read... [12:54:34]Read from MH i2c: E2 0E 00 [12:54:34]MH_I2C_Read... [12:54:34]Read from MH i2c: E2 0E 00 CB 26 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 30 [12:54:34]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [12:54:34]wFMCommunicate OK [12:54:34]SAM_PROTO_GetShiftState done [12:54:34]FM_GetShiftState done [12:54:34]opened in 1709425579 [12:54:34]opened+sec_in_day 1709511979 [12:54:34]quantity*price = 30021 [12:54:34]sum+1 = 30023 [12:54:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.88 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 99 03.03.2024 12:54 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123242 ФПД: 54169099947609 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T125437&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123242&fm=54169099947609&tin=02508201610067®Number=0000000000090573&sum=30000 [12:54:35]StoreToDocumentArchive [12:54:35]shift 323 fd 123242 [12:54:35]save to /storage/0323/doc_00123242 [12:54:35]save last doc name /storage/0323/doc_00123242 to /storage/kkm_last_doc_name [12:54:35]save OK [12:54:35]Clear old archive folders... [12:54:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:54:35]tlvbuf is B6FC4AE0 [12:54:35]SAM_PROTO_ClearQueue [12:54:35]wFMCommunicate request_size=4 [12:54:35]MH_SAM_APDU [12:54:35]CAPDU: 80 09 00 00 [12:54:35]Write to MH i2c: E2 08 00 D8 26 80 09 00 00 00 00 00 00 70 [12:54:35]Write i2c OK [12:54:35]MH_I2C_Read... [12:54:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:54:35]Read from MH i2c: E2 [12:54:35]MH_I2C_Read... [12:54:35]Read from MH i2c: E2 03 00 [12:54:35]MH_I2C_Read... [12:54:35]Read from MH i2c: E2 03 00 D8 26 00 90 00 72 [12:54:35]RAPDU: 90 00 [12:54:35]wFMCommunicate OK [12:54:35]SAM_PROTO_ClearQueue done [12:54:35]KKMCreateOFDPacket [12:54:35]OFDProtocolAddRootSTLVToBuf [12:54:35]FM_MakeSignedData [12:54:35]FM_MakeSignedData [12:54:35]SAM_PROTO_SignData [12:54:35]wFMCommunicate request_size=4 [12:54:35]MH_SAM_APDU [12:54:35]CAPDU: 80 0D 01 02 [12:54:35]Write to MH i2c: E2 08 00 D9 26 80 0D 01 02 00 00 00 00 78 [12:54:35]Write i2c OK [12:54:35]MH_I2C_Read... [12:54:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:54:35]Read from MH i2c: E2 [12:54:35]MH_I2C_Read... [12:54:35]Read from MH i2c: E2 03 00 [12:54:35]MH_I2C_Read... [12:54:35]Read from MH i2c: E2 03 00 D9 26 00 90 00 73 [12:54:35]RAPDU: 90 00 [12:54:35]wFMCommunicate OK [12:54:35]wFMCommunicate request_size=255 [12:54:35]MH_SAM_APDU [12:54: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 35 FF 03 08 00 03 F2 12 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 46 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 74 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 63 00 00 00 F4 03 04 00 0D 73 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 6A E1 01 00 35 04 06 00 31 [12:54:35]Write to MH i2c: E2 02 01 DA 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 12 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 46 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 74 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 63 00 00 00 F4 03 04 00 0D 73 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 6A E1 01 00 35 04 06 00 31 00 00 53 [12:54:35]Write i2c OK [12:54:35]MH_I2C_Read... [12:54:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:54:35]Read from MH i2c: E2 [12:54:35]MH_I2C_Read... [12:54:35]Read from MH i2c: E2 03 00 [12:54:35]MH_I2C_Read... [12:54:35]Read from MH i2c: E2 03 00 DA 26 00 90 00 74 [12:54:35]RAPDU: 90 00 [12:54:35]wFMCommunicate OK [12:54:35]wFMCommunicate request_size=10 [12:54:35]MH_SAM_APDU [12:54:35]CAPDU: 80 0D 02 02 05 44 39 F5 CE 59 [12:54:35]Write to MH i2c: E2 0D 00 DB 26 80 0D 02 02 05 00 44 39 F5 CE 59 00 00 1E [12:54:35]Write i2c OK [12:54:35]MH_I2C_Read... [12:54:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:54:35]Read from MH i2c: E2 [12:54:35]MH_I2C_Read... [12:54:35]Read from MH i2c: E2 03 00 [12:54:35]MH_I2C_Read... [12:54:35]Read from MH i2c: E2 03 00 DB 26 00 90 00 75 [12:54:35]RAPDU: 90 00 [12:54:35]wFMCommunicate OK [12:54:35]wFMCommunicate request_size=4 [12:54:35]MH_SAM_APDU [12:54:35]CAPDU: 80 0D 03 02 [12:54:35]Write to MH i2c: E2 08 00 DC 26 80 0D 03 02 00 00 00 00 7D [12:54:35]Write i2c OK [12:54:35]MH_I2C_Read... [12:54:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:54:36]Read from MH i2c: E2 [12:54:36]MH_I2C_Read... [12:54:36]Read from MH i2c: E2 0B 00 [12:54:36]MH_I2C_Read... [12:54:36]Read from MH i2c: E2 0B 00 DC 26 00 03 58 4A EE EE 96 C8 62 90 00 BF [12:54:36]RAPDU: 03 58 4A EE EE 96 C8 62 90 00 [12:54:36]wFMCommunicate OK [12:54:36]SAM_PROTO_SignData done [12:54:36]FM_MakeSignedData done [12:54:36]CreateOFDProtocolMessage [12:54:36]wFMCommunicate request_size=4 [12:54:36]MH_SAM_APDU [12:54:36]CAPDU: 80 11 00 00 [12:54:36]Write to MH i2c: E2 08 00 DD 26 80 11 00 00 00 00 00 00 7D [12:54:36]Write i2c OK [12:54:36]MH_I2C_Read... [12:54:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:54:36]Read from MH i2c: E2 [12:54:36]MH_I2C_Read... [12:54:36]Read from MH i2c: E2 17 00 [12:54:36]MH_I2C_Read... [12:54:36]Read from MH i2c: E2 17 00 DD 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 DB [12:54:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [12:54:36]wFMCommunicate OK [12:54:36]CreateOFDProtocolMessage done [12:54:36]OFDSenderStorePacket 123242 [12:54:36]StoreOFDPacket docnum=123242 [12:54:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 BD EC 07 01 E7 F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 12 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 46 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 74 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 63 00 00 00 F4 03 04 00 0D 73 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 6A E1 01 00 35 04 06 00 31 44 39 F5 CE 59 03 58 4A EE EE 96 C8 62 [12:54:36]CheckFolder [12:54:36]dirname=/storage/ofd_packets [12:54:36]CheckFolder done [12:54:36]ProducePacketName [12:54:36]name=ofd_packets/00123242 [12:54:36]NVStorageSaveData ofd_packets/00123242 [12:54:36]File name is /storage/ofd_packets/00123242 [12:54:36]Write 301 bytes [12:54:36]NVStorageSaveData done [12:54:36]OFDSenderStorePacket done [12:54:36]KKMCreateOFDPacket done [12:54:36]NVStorageSaveData kkm_last_timestamp [12:54:36]File name is /storage/kkm_last_timestamp [12:54:36]Write 4 bytes [12:54:36]NVStorageSaveData done [12:54:36]ExternCall_PrintAddStr [12:54:36]wPrintStart [12:54:36]Write to MH i2c: 01 00 00 DE 26 04 [12:54:36]Write i2c OK [12:54:36]MH_I2C_Read... [12:54:36]Read from MH i2c: 01 [12:54:36]MH_I2C_Read... [12:54:36]Read from MH i2c: 01 07 00 [12:54:36]MH_I2C_Read... [12:54:36]Read from MH i2c: 01 07 00 DE 26 00 00 00 00 00 FF 0F 19 [12:54:36]RasterBufferAndPrint [12:54:36]line Счет N : (1)1106169 [12:54:36]line ИНН: 02508201610067 [12:54:36]line Контрольно-Кассовый Чек [12:54:36]line ПРОДАЖА [12:54:36]line ТРК (МРК, ГНК) : 52 [12:54:36]line Товар: 2710124130 [12:54:36]line Аи-92-К-5 [12:54:36]line 4.850 * 61.90 [12:54:36]line = 300.22 [12:54:36]line НДС 12% НСП 1% [12:54:36]line > о реализуемом товаре [12:54:36]line ОКРУГЛЕНИЕ: -0.22 [12:54:36]line ИТОГО: 300.00 [12:54:36]line Внесено: 300.00 [12:54:36]line СДАЧА: 0.00 [12:54:36]line НСП 1% : 2.66 [12:54:36]line НДС 12% : 31.88 [12:54:36]line Наличными: 300.00 [12:54:36]line Безнал.: 0.00 [12:54:36]line Место: АЗС № 25 "Партнер Нефть" [12:54:36]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [12:54:36]line СНО: Общий режим [12:54:36]line Чек 99 03.03.2024 12:54 [12:54:36]line Смена: 323 ФФД: 1.0 [12:54:36]line ЗНМ: 0300000019 [12:54:36]line РНМ: 0000000000090573 [12:54:36]line Версия ККМ: 001 [12:54:36]line ФМ: 0000000000874798 [12:54:36]line ФД: 123242 [12:54:36]line ФПД: 54169099947609 [12:54:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T125437&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123242&fm=54169099947609&tin=02508201610067®Number=0000000000090573&sum=30000 [12:54:36]OFD Sender: Processing packet 123242 [packets to send 112, broken 111] [12:54:36]ProducePacketName [12:54:36]name=ofd_packets/00123242 [12:54:36]OFD Sender: To server: pG, [12:54:36]CommunicateWithHost lk.salyk.kg:30040 [12:54:36]ConnectInit lk.salyk.kg [12:54:36]written 0, free lines is 4095 [12:54:36]Connected sock=10 [12:54: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 37 39 38 0F 01 00 00 BD EC 07 01 E7 F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 12 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 46 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 74 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 63 00 00 00 F4 03 04 00 0D 73 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 6A E1 01 00 35 04 06 00 31 44 39 F5 CE 59 03 58 4A EE EE 96 C8 62 [12:54:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 27 49 47 00 CB 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 37 39 38 10 04 04 00 6A E1 01 00 F4 03 04 00 39 1F E4 65 B6 04 01 00 00 C0 67 47 E0 CD 1B 41 E4 [12:54:36]CommunicateWithHost err = 0 [12:54:36]CheckOFDResponse [12:54:36]1017 (14) - 77093643461234 [12:54:36]1041 (16) - 0000000000874798 [12:54:36]1040 (4) - 123242 [12:54:36]1012 (4) - 03.03.2024 06:56 [12:54:36]1206 (1) - 0 [12:54:36]OFD Sender: Remove packet 123242 [12:54:36]ProducePacketName [12:54:36]name=ofd_packets/00123242 [12:54:36]NVStorageDeleteData [12:54:36]Write to MH i2c: 01 00 00 09 27 30 [12:54:36]Write i2c OK [12:54:36]MH_I2C_Read... [12:54:36]Read from MH i2c: 01 [12:54:36]MH_I2C_Read... [12:54:36]Read from MH i2c: 01 07 00 [12:54:36]MH_I2C_Read... [12:54:36]Read from MH i2c: 01 07 00 09 27 00 00 00 00 00 E8 0C 2B [12:54:36]RasterBufferAndPrint [12:54:36]line [12:54:36]line [12:54:36]line [12:54:36]line [12:54:36]line [12:54:36]written 0, free lines is 3310 [12:54:36]MH_Cut [12:54:36]Write to MH i2c: D1 01 00 10 27 01 09 [12:54:36]Write i2c OK [12:54:36]MH_I2C_Read... [12:54:36]Read from MH i2c: D1 [12:54:36]MH_I2C_Read... [12:54:36]Read from MH i2c: D1 01 00 [12:54:36]MH_I2C_Read... [12:54:36]Read from MH i2c: D1 01 00 10 27 00 08 [12:54:36]Write to MH i2c: 01 00 00 11 27 38 [12:54:36]Write i2c OK [12:54:36]MH_I2C_Read... [12:54:37]OFD Sender: No OFD packet to send [12:54:37]*** Cut start [12:54:37]*** Purtial cut [12:54:37]*** Stage 1: CUTSNS_PIN = 1 [12:54:39]Read from MH i2c: 01 [12:54:39]MH_I2C_Read... [12:54:39]*** Stop cut motor [12:54:39]*** Cut end [12:54:39]Read from MH i2c: 01 07 00 [12:54:39]MH_I2C_Read... [12:54:39]Read from MH i2c: 01 07 00 11 27 00 00 00 00 00 FF 0F 4D [12:54:39]process_action close_receipt done [12:54:39]requested_data is exist [12:54:39]produce_requested_data [12:54:39]requested_item fm.sn is exist - process it [12:54:39]wFMCommunicate request_size=4 [12:54:39]MH_SAM_APDU [12:54:39]CAPDU: 80 11 00 00 [12:54:39]Write to MH i2c: E2 08 00 12 27 80 11 00 00 00 00 00 00 B3 [12:54:39]Write i2c OK [12:54:39]MH_I2C_Read... [12:54:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:54:39]Read from MH i2c: E2 [12:54:39]MH_I2C_Read... [12:54:39]Read from MH i2c: E2 17 00 [12:54:39]MH_I2C_Read... [12:54:39]Read from MH i2c: E2 17 00 12 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 11 [12:54:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [12:54:39]wFMCommunicate OK [12:54:39]requested_item fd.num is exist - process it [12:54:39]SAM_PROTO_GetFieldsCounters [12:54:39]wFMCommunicate request_size=4 [12:54:39]MH_SAM_APDU [12:54:39]CAPDU: 80 13 00 00 [12:54:39]Write to MH i2c: E2 08 00 13 27 80 13 00 00 00 00 00 00 B6 [12:54:39]Write i2c OK [12:54:39]MH_I2C_Read... [12:54:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:54:39]Read from MH i2c: E2 [12:54:39]MH_I2C_Read... [12:54:39]Read from MH i2c: E2 62 00 [12:54:39]MH_I2C_Read... [12:54:39]Read from MH i2c: E2 62 00 13 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 6A E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 9A [12:54: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 6A E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:54:39]wFMCommunicate OK [12:54:39]SAM_PROTO_GetFieldsCounters done [12:54:39]requested_item shift.num is exist - process it [12:54:39]requested_item shift.opened is exist - process it [12:54:39]req_shift_opened [12:54:39]FM_GetShiftState [12:54:39]SAM_PROTO_GetShiftState [12:54:39]wFMCommunicate request_size=4 [12:54:39]MH_SAM_APDU [12:54:39]CAPDU: 80 13 01 00 [12:54:39]Write to MH i2c: E2 08 00 14 27 80 13 01 00 00 00 00 00 B8 [12:54:39]Write i2c OK [12:54:39]MH_I2C_Read... [12:54:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:54:39]Read from MH i2c: E2 [12:54:39]MH_I2C_Read... [12:54:39]Read from MH i2c: E2 0E 00 [12:54:39]MH_I2C_Read... [12:54:39]Read from MH i2c: E2 0E 00 14 27 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 7A [12:54:39]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [12:54:39]wFMCommunicate OK [12:54:39]SAM_PROTO_GetShiftState done [12:54:39]FM_GetShiftState done [12:54:39]req_shift_opened done [12:54:39]requested_item shift.open_date is exist - process it [12:54:39]req_shift_open_date [12:54:39]req_shift_open_date done [12:54:39]produce_requested_data done [12:54:39]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123242,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [12:54:39]process_action_free close_receipt [12:54:39]json_value_free [12:54:39]json_value_free done [12:54:39]process_json_proto returns [12:54:39]Send response to host [12:54:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123242,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [12:54:39]free response buf [12:54:39]execute_script done [12:54:39]execute_script returns [12:54:39]free content buf [12:54:39]Sock 9.Close socket [12:54:39]Sock 9.Thread stoped [12:54:42]OFD Sender: No OFD packet to send [12:54:47]OFD Sender: No OFD packet to send [12:54:52]OFD Sender: No OFD packet to send [12:54:57]OFD Sender: No OFD packet to send [12:55:02]OFD Sender: No OFD packet to send [12:55:07]OFD Sender: No OFD packet to send [12:55:12]OFD Sender: No OFD packet to send [12:55:17]OFD Sender: No OFD packet to send [12:55:22]OFD Sender: No OFD packet to send [12:55:27]OFD Sender: No OFD packet to send [12:55:32]OFD Sender: No OFD packet to send [12:55:37]OFD Sender: No OFD packet to send [12:55:42]OFD Sender: No OFD packet to send [12:55:47]OFD Sender: No OFD packet to send [12:55:52]OFD Sender: No OFD packet to send [12:55:57]OFD Sender: No OFD packet to send [12:56:02]OFD Sender: No OFD packet to send [12:56:07]OFD Sender: No OFD packet to send [12:56:12]OFD Sender: No OFD packet to send [12:56:17]OFD Sender: No OFD packet to send [12:56:22]OFD Sender: No OFD packet to send [12:56:27]OFD Sender: No OFD packet to send [12:56:32]OFD Sender: No OFD packet to send [12:56:37]OFD Sender: No OFD packet to send [12:56:42]OFD Sender: No OFD packet to send [12:56:47]OFD Sender: No OFD packet to send [12:56:52]OFD Sender: No OFD packet to send [12:56:57]OFD Sender: No OFD packet to send [12:57:02]OFD Sender: No OFD packet to send [12:57:07]OFD Sender: No OFD packet to send [12:57:12]OFD Sender: No OFD packet to send [12:57:17]OFD Sender: No OFD packet to send [12:57:21]accept exits with 7 [12:57:21]New connection [12:57:21]New thread 3067395428 created [12:57:21]Thread 3067252068 joined [12:57:21]Waiting for new connection... [12:57:21] Sock 7.Parse request [12:57:21]Sock 7.Check first char [12:57:21]Sock 7.First char is OK [12:57:21]request: POST /json_proto HTTP/1.0 [12:57:21]Method: POST [12:57:21]URL: /json_proto [12:57:21]Method is POST - this is cgi request [12:57:21]url: /json_proto [12:57:21]query_string will be loaded in cgi processing [12:57:21]execute_cgi json_proto POST (null) [12:57:21]execute_cgi path=json_proto method=POST [12:57:21]POST find Content-Length [12:57:21]Host: 172.17.48.197:8080 [12:57:21]Content-Length: 809 [12:57:21]Content-Type: application/json [12:57:21] [12:57:21]POST finish read [12:57:21]Found Content-Length = 809 [12:57:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106170", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 21.590, "sum" : 1500.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:57:21]execute_script... [12:57: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)1106170", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 21.590, "sum" : 1500.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:57:21]POST & json_proto [12:57:21]process_json_proto [12:57:21]json parsed OK: [12:57:21]protocol is kg_v1.0 [12:57:21]action value=close_receipt [12:57:21]process_action close_receipt [12:57:21]cmd_close_receipt [12:57:21]MH_GetDate [12:57:21]Write to MH i2c: F0 00 00 15 27 2B [12:57:21]Write i2c OK [12:57:21]MH_I2C_Read... [12:57:21]Read from MH i2c: F0 [12:57:21]MH_I2C_Read... [12:57:21]Read from MH i2c: F0 09 00 [12:57:21]MH_I2C_Read... [12:57:21]Read from MH i2c: F0 09 00 15 27 00 B5 73 E4 65 6C AF E3 65 08 [12:57:21]GetLastDocTimeStamp 1709470477 [12:57:21]current date 1709470645 [12:57:21]FM_GetShiftState [12:57:21]SAM_PROTO_GetShiftState [12:57:21]wFMCommunicate request_size=4 [12:57:21]MH_SAM_APDU [12:57:21]CAPDU: 80 13 01 00 [12:57:21]Write to MH i2c: E2 08 00 16 27 80 13 01 00 00 00 00 00 BA [12:57:21]Write i2c OK [12:57:21]MH_I2C_Read... [12:57:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:57:21]Read from MH i2c: E2 [12:57:21]MH_I2C_Read... [12:57:21]Read from MH i2c: E2 0E 00 [12:57:21]MH_I2C_Read... [12:57:21]Read from MH i2c: E2 0E 00 16 27 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 7C [12:57:21]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [12:57:21]wFMCommunicate OK [12:57:21]SAM_PROTO_GetShiftState done [12:57:21]FM_GetShiftState done [12:57:21]opened in 1709425579 [12:57:21]opened+sec_in_day 1709511979 [12:57:21]quantity*price = 150050 [12:57:21]sum+1 = 150052 [12:57:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.51 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 0.00 Безнал.: 1500.51 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 100 03.03.2024 12:57 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874798 ФД: 123243 ФПД: 264848123473606 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T125725&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123243&fm=264848123473606&tin=02508201610067®Number=0000000000090573&sum=150051 [12:57:23]StoreToDocumentArchive [12:57:23]shift 323 fd 123243 [12:57:23]save to /storage/0323/doc_00123243 [12:57:23]save last doc name /storage/0323/doc_00123243 to /storage/kkm_last_doc_name [12:57:23]save OK [12:57:23]Clear old archive folders... [12:57:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:57:23]tlvbuf is 00DA2640 [12:57:23]SAM_PROTO_ClearQueue [12:57:23]wFMCommunicate request_size=4 [12:57:23]MH_SAM_APDU [12:57:23]CAPDU: 80 09 00 00 [12:57:23]Write to MH i2c: E2 08 00 23 27 80 09 00 00 00 00 00 00 BC [12:57:23]Write i2c OK [12:57:23]MH_I2C_Read... [12:57:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:57:23]Read from MH i2c: E2 [12:57:23]MH_I2C_Read... [12:57:23]Read from MH i2c: E2 03 00 [12:57:23]MH_I2C_Read... [12:57:23]Read from MH i2c: E2 03 00 23 27 00 90 00 BE [12:57:23]RAPDU: 90 00 [12:57:23]wFMCommunicate OK [12:57:23]SAM_PROTO_ClearQueue done [12:57:23]KKMCreateOFDPacket [12:57:23]OFDProtocolAddRootSTLVToBuf [12:57:23]FM_MakeSignedData [12:57:23]FM_MakeSignedData [12:57:23]SAM_PROTO_SignData [12:57:23]wFMCommunicate request_size=4 [12:57:23]MH_SAM_APDU [12:57:23]CAPDU: 80 0D 01 02 [12:57:23]Write to MH i2c: E2 08 00 24 27 80 0D 01 02 00 00 00 00 C4 [12:57:23]Write i2c OK [12:57:23]MH_I2C_Read... [12:57:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:57:23]Read from MH i2c: E2 [12:57:23]MH_I2C_Read... [12:57:23]Read from MH i2c: E2 03 00 [12:57:23]MH_I2C_Read... [12:57:23]Read from MH i2c: E2 03 00 24 27 00 90 00 BF [12:57:23]RAPDU: 90 00 [12:57:23]wFMCommunicate OK [12:57:23]wFMCommunicate request_size=255 [12:57:23]MH_SAM_APDU [12:57:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 54 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 23 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 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 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 B5 73 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 6B E1 01 00 35 04 06 00 F0 [12:57:23]Write to MH i2c: E2 02 01 25 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 54 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 23 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 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 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 B5 73 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 6B E1 01 00 35 04 06 00 F0 00 00 1C [12:57:23]Write i2c OK [12:57:23]MH_I2C_Read... [12:57:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:57:23]Read from MH i2c: E2 [12:57:23]MH_I2C_Read... [12:57:23]Read from MH i2c: E2 03 00 [12:57:23]MH_I2C_Read... [12:57:23]Read from MH i2c: E2 03 00 25 27 00 90 00 C0 [12:57:23]RAPDU: 90 00 [12:57:23]wFMCommunicate OK [12:57:23]wFMCommunicate request_size=10 [12:57:23]MH_SAM_APDU [12:57:23]CAPDU: 80 0D 02 02 05 E0 C2 51 AE C6 [12:57:23]Write to MH i2c: E2 0D 00 26 27 80 0D 02 02 05 00 E0 C2 51 AE C6 00 00 38 [12:57:23]Write i2c OK [12:57:23]MH_I2C_Read... [12:57:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:57:23]Read from MH i2c: E2 [12:57:23]MH_I2C_Read... [12:57:23]Read from MH i2c: E2 03 00 [12:57:23]MH_I2C_Read... [12:57:23]Read from MH i2c: E2 03 00 26 27 00 90 00 C1 [12:57:23]RAPDU: 90 00 [12:57:23]wFMCommunicate OK [12:57:23]wFMCommunicate request_size=4 [12:57:23]MH_SAM_APDU [12:57:23]CAPDU: 80 0D 03 02 [12:57:23]Write to MH i2c: E2 08 00 27 27 80 0D 03 02 00 00 00 00 C9 [12:57:23]Write i2c OK [12:57:23]MH_I2C_Read... [12:57:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:57:23]Read from MH i2c: E2 [12:57:23]MH_I2C_Read... [12:57:23]Read from MH i2c: E2 0B 00 [12:57:23]MH_I2C_Read... [12:57:23]Read from MH i2c: E2 0B 00 27 27 00 E3 47 94 C9 61 F7 52 0F 90 00 0A [12:57:23]RAPDU: E3 47 94 C9 61 F7 52 0F 90 00 [12:57:23]wFMCommunicate OK [12:57:23]SAM_PROTO_SignData done [12:57:23]FM_MakeSignedData done [12:57:23]CreateOFDProtocolMessage [12:57:23]wFMCommunicate request_size=4 [12:57:23]MH_SAM_APDU [12:57:23]CAPDU: 80 11 00 00 [12:57:23]Write to MH i2c: E2 08 00 28 27 80 11 00 00 00 00 00 00 C9 [12:57:23]Write i2c OK [12:57:23]MH_I2C_Read... [12:57:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:57:23]Read from MH i2c: E2 [12:57:23]MH_I2C_Read... [12:57:23]Read from MH i2c: E2 17 00 [12:57:23]MH_I2C_Read... [12:57:23]Read from MH i2c: E2 17 00 28 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 27 [12:57:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [12:57:23]wFMCommunicate OK [12:57:23]CreateOFDProtocolMessage done [12:57:23]OFDSenderStorePacket 123243 [12:57:23]StoreOFDPacket docnum=123243 [12:57:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 94 99 07 01 DD 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 54 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 23 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 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 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 B5 73 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 6B E1 01 00 35 04 06 00 F0 E0 C2 51 AE C6 E3 47 94 C9 61 F7 52 0F [12:57:23]CheckFolder [12:57:23]dirname=/storage/ofd_packets [12:57:23]CheckFolder done [12:57:23]ProducePacketName [12:57:23]name=ofd_packets/00123243 [12:57:23]NVStorageSaveData ofd_packets/00123243 [12:57:23]File name is /storage/ofd_packets/00123243 [12:57:23]Write 301 bytes [12:57:23]NVStorageSaveData done [12:57:23]OFDSenderStorePacket done [12:57:23]KKMCreateOFDPacket done [12:57:23]NVStorageSaveData kkm_last_timestamp [12:57:23]File name is /storage/kkm_last_timestamp [12:57:23]Write 4 bytes [12:57:23]NVStorageSaveData done [12:57:23]ExternCall_PrintAddStr [12:57:23]wPrintStart [12:57:23]Write to MH i2c: 01 00 00 29 27 50 [12:57:23]Write i2c OK [12:57:23]MH_I2C_Read... [12:57:23]Read from MH i2c: 01 [12:57:23]MH_I2C_Read... [12:57:23]Read from MH i2c: 01 07 00 [12:57:23]MH_I2C_Read... [12:57:23]Read from MH i2c: 01 07 00 29 27 00 00 00 00 00 FF 0F 65 [12:57:23]RasterBufferAndPrint [12:57:23]line Счет N : (1)1106170 [12:57:23]line ИНН: 02508201610067 [12:57:23]line Контрольно-Кассовый Чек [12:57:23]line ПРОДАЖА [12:57:23]line ТРК (МРК, ГНК) : 13 [12:57:23]line Товар: 2710124500 [12:57:23]line Аи-95-К-5 [12:57:23]line 21.590 * 69.50 [12:57:23]line = 1500.51 [12:57:23]line НДС 12% НСП 1% [12:57:23]line > о реализуемом товаре [12:57:23]line ИТОГО: 1500.51 [12:57:23]line НСП 1% : 13.28 [12:57:23]line НДС 12% : 159.35 [12:57:23]line Наличными: 0.00 [12:57:23]line Безнал.: 1500.51 [12:57:23]line Место: АЗС № 25 "Партнер Нефть" [12:57:23]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [12:57:23]line СНО: Общий режим [12:57:23]line Чек 100 03.03.2024 12:57 [12:57:23]line Смена: 323 ФФД: 1.0 [12:57:23]line ЗНМ: 0300000019 [12:57:23]line РНМ: 0000000000090573 [12:57:23]line Версия ККМ: 001 [12:57:23]line Платежная система: О! деньги [12:57:23]line ФМ: 0000000000874798 [12:57:23]line ФД: 123243 [12:57:23]line ФПД: 264848123473606 [12:57:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T125725&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123243&fm=264848123473606&tin=02508201610067®Number=0000000000090573&sum=150051 [12:57:23]OFD Sender: Processing packet 123243 [packets to send 112, broken 111] [12:57:23]ProducePacketName [12:57:23]name=ofd_packets/00123243 [12:57:23]OFD Sender: To server: pG, [12:57:23]CommunicateWithHost lk.salyk.kg:30040 [12:57:23]ConnectInit lk.salyk.kg [12:57:23]written 0, free lines is 4095 [12:57:24]Connected sock=10 [12:57: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 37 39 38 0F 01 00 00 94 99 07 01 DD 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 54 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 23 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 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 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 B5 73 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 6B E1 01 00 35 04 06 00 F0 E0 C2 51 AE C6 E3 47 94 C9 61 F7 52 0F [12:57:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 78 85 47 00 B6 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 6B E1 01 00 F4 03 04 00 E0 1F E4 65 B6 04 01 00 00 86 88 35 43 ED 07 18 0C [12:57:24]CommunicateWithHost err = 0 [12:57:24]CheckOFDResponse [12:57:24]1017 (14) - 77093643461234 [12:57:24]1041 (16) - 0000000000874798 [12:57:24]1040 (4) - 123243 [12:57:24]1012 (4) - 03.03.2024 06:59 [12:57:24]1206 (1) - 0 [12:57:24]OFD Sender: Remove packet 123243 [12:57:24]ProducePacketName [12:57:24]name=ofd_packets/00123243 [12:57:24]NVStorageDeleteData [12:57:24]Write to MH i2c: 01 00 00 53 27 7A [12:57:24]Write i2c OK [12:57:24]MH_I2C_Read... [12:57:24]Read from MH i2c: 01 [12:57:24]MH_I2C_Read... [12:57:24]Read from MH i2c: 01 07 00 [12:57:24]MH_I2C_Read... [12:57:24]Read from MH i2c: 01 07 00 53 27 00 00 00 00 00 05 0D 93 [12:57:24]RasterBufferAndPrint [12:57:24]line [12:57:24]line [12:57:24]line [12:57:24]line [12:57:24]line [12:57:24]written 0, free lines is 3339 [12:57:24]MH_Cut [12:57:24]Write to MH i2c: D1 01 00 5A 27 01 53 [12:57:24]Write i2c OK [12:57:24]MH_I2C_Read... [12:57:24]Read from MH i2c: D1 [12:57:24]MH_I2C_Read... [12:57:24]Read from MH i2c: D1 01 00 [12:57:24]MH_I2C_Read... [12:57:24]Read from MH i2c: D1 01 00 5A 27 00 52 [12:57:24]Write to MH i2c: 01 00 00 5B 27 82 [12:57:24]Write i2c OK [12:57:24]MH_I2C_Read... [12:57:24]OFD Sender: No OFD packet to send [12:57:25]*** Cut start [12:57:25]*** Purtial cut [12:57:25]*** Stage 1: CUTSNS_PIN = 1 [12:57:27]Read from MH i2c: 01 [12:57:27]MH_I2C_Read... [12:57:27]*** Stop cut motor [12:57:27]*** Cut end [12:57:27]Read from MH i2c: 01 07 00 [12:57:27]MH_I2C_Read... [12:57:27]Read from MH i2c: 01 07 00 5B 27 00 00 00 00 00 FF 0F 97 [12:57:27]process_action close_receipt done [12:57:27]requested_data is exist [12:57:27]produce_requested_data [12:57:27]requested_item fm.sn is exist - process it [12:57:27]wFMCommunicate request_size=4 [12:57:27]MH_SAM_APDU [12:57:27]CAPDU: 80 11 00 00 [12:57:27]Write to MH i2c: E2 08 00 5C 27 80 11 00 00 00 00 00 00 FD [12:57:27]Write i2c OK [12:57:27]MH_I2C_Read... [12:57:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:57:27]Read from MH i2c: E2 [12:57:27]MH_I2C_Read... [12:57:27]Read from MH i2c: E2 17 00 [12:57:27]MH_I2C_Read... [12:57:27]Read from MH i2c: E2 17 00 5C 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 5B [12:57:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [12:57:27]wFMCommunicate OK [12:57:27]requested_item fd.num is exist - process it [12:57:27]SAM_PROTO_GetFieldsCounters [12:57:27]wFMCommunicate request_size=4 [12:57:27]MH_SAM_APDU [12:57:27]CAPDU: 80 13 00 00 [12:57:27]Write to MH i2c: E2 08 00 5D 27 80 13 00 00 00 00 00 00 00 [12:57:27]Write i2c OK [12:57:27]MH_I2C_Read... [12:57:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:57:27]Read from MH i2c: E2 [12:57:27]MH_I2C_Read... [12:57:27]Read from MH i2c: E2 62 00 [12:57:27]MH_I2C_Read... [12:57:27]Read from MH i2c: E2 62 00 5D 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 6B E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 E8 [12:57: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 6B E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:57:27]wFMCommunicate OK [12:57:27]SAM_PROTO_GetFieldsCounters done [12:57:27]requested_item shift.num is exist - process it [12:57:27]requested_item shift.opened is exist - process it [12:57:27]req_shift_opened [12:57:27]FM_GetShiftState [12:57:27]SAM_PROTO_GetShiftState [12:57:27]wFMCommunicate request_size=4 [12:57:27]MH_SAM_APDU [12:57:27]CAPDU: 80 13 01 00 [12:57:27]Write to MH i2c: E2 08 00 5E 27 80 13 01 00 00 00 00 00 02 [12:57:27]Write i2c OK [12:57:27]MH_I2C_Read... [12:57:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:57:27]Read from MH i2c: E2 [12:57:27]MH_I2C_Read... [12:57:27]Read from MH i2c: E2 0E 00 [12:57:27]MH_I2C_Read... [12:57:27]Read from MH i2c: E2 0E 00 5E 27 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 C4 [12:57:27]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [12:57:27]wFMCommunicate OK [12:57:27]SAM_PROTO_GetShiftState done [12:57:27]FM_GetShiftState done [12:57:27]req_shift_opened done [12:57:27]requested_item shift.open_date is exist - process it [12:57:27]req_shift_open_date [12:57:27]req_shift_open_date done [12:57:27]produce_requested_data done [12:57:27]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123243,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [12:57:27]process_action_free close_receipt [12:57:27]json_value_free [12:57:27]json_value_free done [12:57:27]process_json_proto returns [12:57:27]Send response to host [12:57:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123243,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [12:57:27]free response buf [12:57:27]execute_script done [12:57:27]execute_script returns [12:57:27]free content buf [12:57:27]Sock 7.Close socket [12:57:27]Sock 7.Thread stoped [12:57:29]OFD Sender: No OFD packet to send [12:57:34]OFD Sender: No OFD packet to send [12:57:39]OFD Sender: No OFD packet to send [12:57:44]OFD Sender: No OFD packet to send [12:57:49]OFD Sender: No OFD packet to send [12:57:54]OFD Sender: No OFD packet to send [12:57:59]OFD Sender: No OFD packet to send [12:58:04]OFD Sender: No OFD packet to send [12:58:09]OFD Sender: No OFD packet to send [12:58:14]OFD Sender: No OFD packet to send [12:58:19]OFD Sender: No OFD packet to send [12:58:24]OFD Sender: No OFD packet to send [12:58:29]OFD Sender: No OFD packet to send [12:58:34]OFD Sender: No OFD packet to send [12:58:39]OFD Sender: No OFD packet to send [12:58:44]OFD Sender: No OFD packet to send [12:58:49]OFD Sender: No OFD packet to send [12:58:54]OFD Sender: No OFD packet to send [12:58:59]OFD Sender: No OFD packet to send [12:59:04]OFD Sender: No OFD packet to send [12:59:09]OFD Sender: No OFD packet to send [12:59:14]OFD Sender: No OFD packet to send [12:59:19]OFD Sender: No OFD packet to send [12:59:24]OFD Sender: No OFD packet to send [12:59:29]OFD Sender: No OFD packet to send [12:59:34]OFD Sender: No OFD packet to send [12:59:39]OFD Sender: No OFD packet to send [12:59:44]OFD Sender: No OFD packet to send [12:59:49]OFD Sender: No OFD packet to send [12:59:54]OFD Sender: No OFD packet to send [12:59:59]OFD Sender: No OFD packet to send [13:00:04]OFD Sender: No OFD packet to send [13:00:05]accept exits with 9 [13:00:05]New connection [13:00:05]New thread 3067252068 created [13:00:05]Thread 3067395428 joined [13:00:05]Waiting for new connection... [13:00:05] Sock 9.Parse request [13:00:05]Sock 9.Check first char [13:00:05]Sock 9.First char is OK [13:00:05]request: POST /json_proto HTTP/1.0 [13:00:05]Method: POST [13:00:05]URL: /json_proto [13:00:05]Method is POST - this is cgi request [13:00:05]url: /json_proto [13:00:05]query_string will be loaded in cgi processing [13:00:05]execute_cgi json_proto POST (null) [13:00:05]execute_cgi path=json_proto method=POST [13:00:05]POST find Content-Length [13:00:05]Host: 172.17.48.197:8080 [13:00:05]Content-Length: 820 [13:00:05]Content-Type: application/json [13:00:05] [13:00:05]POST finish read [13:00:05]Found Content-Length = 820 [13:00:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106171", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 55.560, "sum" : 3439.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 3439.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:00:05]execute_script... [13: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 : (1)1106171", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 55.560, "sum" : 3439.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 3439.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:00:05]POST & json_proto [13:00:05]process_json_proto [13:00:05]json parsed OK: [13:00:05]protocol is kg_v1.0 [13:00:05]action value=close_receipt [13:00:05]process_action close_receipt [13:00:05]cmd_close_receipt [13:00:05]MH_GetDate [13:00:05]Write to MH i2c: F0 00 00 5F 27 75 [13:00:05]Write i2c OK [13:00:05]MH_I2C_Read... [13:00:05]Read from MH i2c: F0 [13:00:05]MH_I2C_Read... [13:00:05]Read from MH i2c: F0 09 00 [13:00:05]MH_I2C_Read... [13:00:05]Read from MH i2c: F0 09 00 5F 27 00 58 74 E4 65 6C AF E3 65 F6 [13:00:05]GetLastDocTimeStamp 1709470645 [13:00:05]current date 1709470808 [13:00:05]FM_GetShiftState [13:00:05]SAM_PROTO_GetShiftState [13:00:05]wFMCommunicate request_size=4 [13:00:05]MH_SAM_APDU [13:00:05]CAPDU: 80 13 01 00 [13:00:05]Write to MH i2c: E2 08 00 60 27 80 13 01 00 00 00 00 00 04 [13:00:05]Write i2c OK [13:00:05]MH_I2C_Read... [13:00:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:05]Read from MH i2c: E2 [13:00:05]MH_I2C_Read... [13:00:05]Read from MH i2c: E2 0E 00 [13:00:05]MH_I2C_Read... [13:00:05]Read from MH i2c: E2 0E 00 60 27 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 C6 [13:00:05]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [13:00:05]wFMCommunicate OK [13:00:05]SAM_PROTO_GetShiftState done [13:00:05]FM_GetShiftState done [13:00:05]opened in 1709425579 [13:00:05]opened+sec_in_day 1709511979 [13:00:05]quantity*price = 343916 [13:00:05]sum+1 = 343917 [13:00:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3439.16 НСП 1% : 30.43 НДС 12% : 365.22 Наличными: 0.00 Безнал.: 3439.16 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 101 03.03.2024 13:00 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874798 ФД: 123244 ФПД: 167696460649064 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T130008&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123244&fm=167696460649064&tin=02508201610067®Number=0000000000090573&sum=343916 [13:00:06]StoreToDocumentArchive [13:00:06]shift 323 fd 123244 [13:00:06]save to /storage/0323/doc_00123244 [13:00:06]save last doc name /storage/0323/doc_00123244 to /storage/kkm_last_doc_name [13:00:06]save OK [13:00:06]Clear old archive folders... [13:00:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:00:06]tlvbuf is 00E65CC0 [13:00:06]SAM_PROTO_ClearQueue [13:00:06]wFMCommunicate request_size=4 [13:00:06]MH_SAM_APDU [13:00:06]CAPDU: 80 09 00 00 [13:00:06]Write to MH i2c: E2 08 00 6D 27 80 09 00 00 00 00 00 00 06 [13:00:06]Write i2c OK [13:00:06]MH_I2C_Read... [13:00:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:00:06]Read from MH i2c: E2 [13:00:06]MH_I2C_Read... [13:00:06]Read from MH i2c: E2 03 00 [13:00:06]MH_I2C_Read... [13:00:06]Read from MH i2c: E2 03 00 6D 27 00 90 00 08 [13:00:06]RAPDU: 90 00 [13:00:06]wFMCommunicate OK [13:00:06]SAM_PROTO_ClearQueue done [13:00:06]KKMCreateOFDPacket [13:00:06]OFDProtocolAddRootSTLVToBuf [13:00:06]FM_MakeSignedData [13:00:06]FM_MakeSignedData [13:00:06]SAM_PROTO_SignData [13:00:06]wFMCommunicate request_size=4 [13:00:06]MH_SAM_APDU [13:00:06]CAPDU: 80 0D 01 02 [13:00:06]Write to MH i2c: E2 08 00 6E 27 80 0D 01 02 00 00 00 00 0E [13:00:06]Write i2c OK [13:00:06]MH_I2C_Read... [13:00:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:00:06]Read from MH i2c: E2 [13:00:06]MH_I2C_Read... [13:00:06]Read from MH i2c: E2 03 00 [13:00:06]MH_I2C_Read... [13:00:06]Read from MH i2c: E2 03 00 6E 27 00 90 00 09 [13:00:06]RAPDU: 90 00 [13:00:06]wFMCommunicate OK [13:00:06]wFMCommunicate request_size=255 [13:00:06]MH_SAM_APDU [13:00: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 35 FF 03 08 00 03 08 D9 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 6C 3F 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 3F 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E3 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AA 8E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 3F 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 58 74 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 6C E1 01 00 35 04 06 00 98 [13:00:06]Write to MH i2c: E2 02 01 6F 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 08 D9 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 6C 3F 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 3F 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E3 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AA 8E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 3F 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 58 74 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 6C E1 01 00 35 04 06 00 98 00 00 23 [13:00:06]Write i2c OK [13:00:06]MH_I2C_Read... [13:00:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:07]Read from MH i2c: E2 [13:00:07]MH_I2C_Read... [13:00:07]Read from MH i2c: E2 03 00 [13:00:07]MH_I2C_Read... [13:00:07]Read from MH i2c: E2 03 00 6F 27 00 90 00 0A [13:00:07]RAPDU: 90 00 [13:00:07]wFMCommunicate OK [13:00:07]wFMCommunicate request_size=10 [13:00:07]MH_SAM_APDU [13:00:07]CAPDU: 80 0D 02 02 05 84 DF F7 92 68 [13:00:07]Write to MH i2c: E2 0D 00 70 27 80 0D 02 02 05 00 84 DF F7 92 68 00 00 6F [13:00:07]Write i2c OK [13:00:07]MH_I2C_Read... [13:00:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:07]Read from MH i2c: E2 [13:00:07]MH_I2C_Read... [13:00:07]Read from MH i2c: E2 03 00 [13:00:07]MH_I2C_Read... [13:00:07]Read from MH i2c: E2 03 00 70 27 00 90 00 0B [13:00:07]RAPDU: 90 00 [13:00:07]wFMCommunicate OK [13:00:07]wFMCommunicate request_size=4 [13:00:07]MH_SAM_APDU [13:00:07]CAPDU: 80 0D 03 02 [13:00:07]Write to MH i2c: E2 08 00 71 27 80 0D 03 02 00 00 00 00 13 [13:00:07]Write i2c OK [13:00:07]MH_I2C_Read... [13:00:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:00:07]Read from MH i2c: E2 [13:00:07]MH_I2C_Read... [13:00:07]Read from MH i2c: E2 0B 00 [13:00:07]MH_I2C_Read... [13:00:07]Read from MH i2c: E2 0B 00 71 27 00 D6 04 A1 D7 D7 B8 8E 24 90 00 A7 [13:00:07]RAPDU: D6 04 A1 D7 D7 B8 8E 24 90 00 [13:00:07]wFMCommunicate OK [13:00:07]SAM_PROTO_SignData done [13:00:07]FM_MakeSignedData done [13:00:07]CreateOFDProtocolMessage [13:00:07]wFMCommunicate request_size=4 [13:00:07]MH_SAM_APDU [13:00:07]CAPDU: 80 11 00 00 [13:00:07]Write to MH i2c: E2 08 00 72 27 80 11 00 00 00 00 00 00 13 [13:00:07]Write i2c OK [13:00:07]MH_I2C_Read... [13:00:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:07]Read from MH i2c: E2 [13:00:07]MH_I2C_Read... [13:00:07]Read from MH i2c: E2 17 00 [13:00:07]MH_I2C_Read... [13:00:07]Read from MH i2c: E2 17 00 72 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 71 [13:00:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [13:00:07]wFMCommunicate OK [13:00:07]CreateOFDProtocolMessage done [13:00:07]OFDSenderStorePacket 123244 [13:00:07]StoreOFDPacket docnum=123244 [13:00:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 CF F2 07 01 29 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 08 D9 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 6C 3F 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 3F 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E3 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AA 8E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 3F 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 58 74 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 6C E1 01 00 35 04 06 00 98 84 DF F7 92 68 D6 04 A1 D7 D7 B8 8E 24 [13:00:07]CheckFolder [13:00:07]dirname=/storage/ofd_packets [13:00:07]CheckFolder done [13:00:07]ProducePacketName [13:00:07]name=ofd_packets/00123244 [13:00:07]NVStorageSaveData ofd_packets/00123244 [13:00:07]File name is /storage/ofd_packets/00123244 [13:00:07]Write 301 bytes [13:00:07]NVStorageSaveData done [13:00:07]OFDSenderStorePacket done [13:00:07]KKMCreateOFDPacket done [13:00:07]NVStorageSaveData kkm_last_timestamp [13:00:07]File name is /storage/kkm_last_timestamp [13:00:07]Write 4 bytes [13:00:07]NVStorageSaveData done [13:00:07]ExternCall_PrintAddStr [13:00:07]wPrintStart [13:00:07]Write to MH i2c: 01 00 00 73 27 9A [13:00:07]Write i2c OK [13:00:07]MH_I2C_Read... [13:00:07]Read from MH i2c: 01 [13:00:07]MH_I2C_Read... [13:00:07]Read from MH i2c: 01 07 00 [13:00:07]MH_I2C_Read... [13:00:07]Read from MH i2c: 01 07 00 73 27 00 00 00 00 00 FF 0F AF [13:00:07]RasterBufferAndPrint [13:00:07]line Счет N : (1)1106171 [13:00:07]line ИНН: 02508201610067 [13:00:07]line Контрольно-Кассовый Чек [13:00:07]line ПРОДАЖА [13:00:07]line ТРК (МРК, ГНК) : 52 [13:00:07]line Товар: 2710124130 [13:00:07]line Аи-92-К-5 [13:00:07]line 55.560 * 61.90 [13:00:07]line = 3439.16 [13:00:07]line НДС 12% НСП 1% [13:00:07]line > о реализуемом товаре [13:00:07]line ИТОГО: 3439.16 [13:00:07]line НСП 1% : 30.43 [13:00:07]line НДС 12% : 365.22 [13:00:07]line Наличными: 0.00 [13:00:07]line Безнал.: 3439.16 [13:00:07]line Место: АЗС № 25 "Партнер Нефть" [13:00:07]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [13:00:07]line СНО: Общий режим [13:00:07]line Чек 101 03.03.2024 13:00 [13:00:07]line Смена: 323 ФФД: 1.0 [13:00:07]line ЗНМ: 0300000019 [13:00:07]line РНМ: 0000000000090573 [13:00:07]line Версия ККМ: 001 [13:00:07]line Платежная система: Бакай Банк [13:00:07]line ФМ: 0000000000874798 [13:00:07]line ФД: 123244 [13:00:07]line ФПД: 167696460649064 [13:00:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T130008&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123244&fm=167696460649064&tin=02508201610067®Number=0000000000090573&sum=343916 [13:00:07]OFD Sender: Processing packet 123244 [packets to send 112, broken 111] [13:00:07]ProducePacketName [13:00:07]name=ofd_packets/00123244 [13:00:07]OFD Sender: To server: pG, [13:00:07]CommunicateWithHost lk.salyk.kg:30040 [13:00:07]ConnectInit lk.salyk.kg [13:00:07]written 0, free lines is 4095 [13:00:07]Connected sock=10 [13: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 37 39 38 0F 01 00 00 CF F2 07 01 29 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 08 D9 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 6C 3F 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 3F 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E3 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AA 8E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 3F 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 58 74 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 6C E1 01 00 35 04 06 00 98 84 DF F7 92 68 D6 04 A1 D7 D7 B8 8E 24 [13:00:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 BD D0 47 00 EC 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 37 39 38 10 04 04 00 6C E1 01 00 F4 03 04 00 84 20 E4 65 B6 04 01 00 00 D6 02 FB 7F 8F 69 F6 B2 [13:00:07]CommunicateWithHost err = 0 [13:00:07]CheckOFDResponse [13:00:07]1017 (14) - 77093643461234 [13:00:07]1041 (16) - 0000000000874798 [13:00:07]1040 (4) - 123244 [13:00:07]1012 (4) - 03.03.2024 07:02 [13:00:07]1206 (1) - 0 [13:00:07]OFD Sender: Remove packet 123244 [13:00:07]ProducePacketName [13:00:07]name=ofd_packets/00123244 [13:00:07]NVStorageDeleteData [13:00:08]Write to MH i2c: 01 00 00 9D 27 C4 [13:00:08]Write i2c OK [13:00:08]MH_I2C_Read... [13:00:08]Read from MH i2c: 01 [13:00:08]MH_I2C_Read... [13:00:08]Read from MH i2c: 01 07 00 [13:00:08]MH_I2C_Read... [13:00:08]Read from MH i2c: 01 07 00 9D 27 00 00 00 00 00 01 0D D9 [13:00:08]RasterBufferAndPrint [13:00:08]line [13:00:08]line [13:00:08]line [13:00:08]line [13:00:08]line [13:00:08]written 0, free lines is 3335 [13:00:08]MH_Cut [13:00:08]Write to MH i2c: D1 01 00 A4 27 01 9D [13:00:08]Write i2c OK [13:00:08]MH_I2C_Read... [13:00:08]Read from MH i2c: D1 [13:00:08]MH_I2C_Read... [13:00:08]Read from MH i2c: D1 01 00 [13:00:08]MH_I2C_Read... [13:00:08]Read from MH i2c: D1 01 00 A4 27 00 9C [13:00:08]Write to MH i2c: 01 00 00 A5 27 CC [13:00:08]Write i2c OK [13:00:08]MH_I2C_Read... [13:00:08]OFD Sender: No OFD packet to send [13:00:08]*** Cut start [13:00:08]*** Purtial cut [13:00:08]*** Stage 1: CUTSNS_PIN = 1 [13:00:10]Read from MH i2c: 01 [13:00:10]MH_I2C_Read... [13:00:10]*** Stop cut motor [13:00:10]*** Cut end [13:00:10]Read from MH i2c: 01 07 00 [13:00:10]MH_I2C_Read... [13:00:10]Read from MH i2c: 01 07 00 A5 27 00 00 00 00 00 FF 0F E1 [13:00:10]process_action close_receipt done [13:00:10]requested_data is exist [13:00:10]produce_requested_data [13:00:10]requested_item fm.sn is exist - process it [13:00:10]wFMCommunicate request_size=4 [13:00:10]MH_SAM_APDU [13:00:10]CAPDU: 80 11 00 00 [13:00:10]Write to MH i2c: E2 08 00 A6 27 80 11 00 00 00 00 00 00 47 [13:00:10]Write i2c OK [13:00:10]MH_I2C_Read... [13:00:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:10]Read from MH i2c: E2 [13:00:10]MH_I2C_Read... [13:00:10]Read from MH i2c: E2 17 00 [13:00:10]MH_I2C_Read... [13:00:10]Read from MH i2c: E2 17 00 A6 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 A5 [13:00:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [13:00:10]wFMCommunicate OK [13:00:10]requested_item fd.num is exist - process it [13:00:10]SAM_PROTO_GetFieldsCounters [13:00:10]wFMCommunicate request_size=4 [13:00:10]MH_SAM_APDU [13:00:10]CAPDU: 80 13 00 00 [13:00:10]Write to MH i2c: E2 08 00 A7 27 80 13 00 00 00 00 00 00 4A [13:00:10]Write i2c OK [13:00:10]MH_I2C_Read... [13:00:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:00:10]Read from MH i2c: E2 [13:00:10]MH_I2C_Read... [13:00:10]Read from MH i2c: E2 62 00 [13:00:10]MH_I2C_Read... [13:00:10]Read from MH i2c: E2 62 00 A7 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 6C E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 36 [13:00: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 6C E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:00:10]wFMCommunicate OK [13:00:10]SAM_PROTO_GetFieldsCounters done [13:00:10]requested_item shift.num is exist - process it [13:00:10]requested_item shift.opened is exist - process it [13:00:10]req_shift_opened [13:00:10]FM_GetShiftState [13:00:10]SAM_PROTO_GetShiftState [13:00:10]wFMCommunicate request_size=4 [13:00:10]MH_SAM_APDU [13:00:10]CAPDU: 80 13 01 00 [13:00:10]Write to MH i2c: E2 08 00 A8 27 80 13 01 00 00 00 00 00 4C [13:00:10]Write i2c OK [13:00:10]MH_I2C_Read... [13:00:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:10]Read from MH i2c: E2 [13:00:10]MH_I2C_Read... [13:00:10]Read from MH i2c: E2 0E 00 [13:00:10]MH_I2C_Read... [13:00:10]Read from MH i2c: E2 0E 00 A8 27 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 0E [13:00:10]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [13:00:10]wFMCommunicate OK [13:00:10]SAM_PROTO_GetShiftState done [13:00:10]FM_GetShiftState done [13:00:10]req_shift_opened done [13:00:10]requested_item shift.open_date is exist - process it [13:00:10]req_shift_open_date [13:00:10]req_shift_open_date done [13:00:10]produce_requested_data done [13:00:10]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123244,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [13:00:10]process_action_free close_receipt [13:00:10]json_value_free [13:00:10]json_value_free done [13:00:10]process_json_proto returns [13:00:10]Send response to host [13:00:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123244,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [13:00:10]free response buf [13:00:10]execute_script done [13:00:10]execute_script returns [13:00:10]free content buf [13:00:10]Sock 9.Close socket [13:00:10]Sock 9.Thread stoped [13:00:13]OFD Sender: No OFD packet to send [13:00:18]OFD Sender: No OFD packet to send [13:00:23]OFD Sender: No OFD packet to send [13:00:28]OFD Sender: No OFD packet to send [13:00:33]OFD Sender: No OFD packet to send [13:00:38]OFD Sender: No OFD packet to send [13:00:43]OFD Sender: No OFD packet to send [13:00:48]OFD Sender: No OFD packet to send [13:00:53]OFD Sender: No OFD packet to send [13:00:58]OFD Sender: No OFD packet to send [13:01:03]OFD Sender: No OFD packet to send [13:01:08]OFD Sender: No OFD packet to send [13:01:13]OFD Sender: No OFD packet to send [13:01:18]OFD Sender: No OFD packet to send [13:01:23]OFD Sender: No OFD packet to send [13:01:28]OFD Sender: No OFD packet to send [13:01:33]OFD Sender: No OFD packet to send [13:01:38]OFD Sender: No OFD packet to send [13:01:43]OFD Sender: No OFD packet to send [13:01:48]OFD Sender: No OFD packet to send [13:01:53]OFD Sender: No OFD packet to send [13:01:58]OFD Sender: No OFD packet to send [13:02:03]OFD Sender: No OFD packet to send [13:02:08]OFD Sender: No OFD packet to send [13:02:13]OFD Sender: No OFD packet to send [13:02:18]OFD Sender: No OFD packet to send [13:02:23]OFD Sender: No OFD packet to send [13:02:28]OFD Sender: No OFD packet to send [13:02:33]OFD Sender: No OFD packet to send [13:02:38]OFD Sender: No OFD packet to send [13:02:43]OFD Sender: No OFD packet to send [13:02:48]OFD Sender: No OFD packet to send [13:02:53]OFD Sender: No OFD packet to send [13:02:58]OFD Sender: No OFD packet to send [13:03:03]OFD Sender: No OFD packet to send [13:03:08]OFD Sender: No OFD packet to send [13:03:13]OFD Sender: No OFD packet to send [13:03:18]OFD Sender: No OFD packet to send [13:03:23]OFD Sender: No OFD packet to send [13:03:28]OFD Sender: No OFD packet to send [13:03:33]OFD Sender: No OFD packet to send [13:03:38]OFD Sender: No OFD packet to send [13:03:43]OFD Sender: No OFD packet to send [13:03:48]OFD Sender: No OFD packet to send [13:03:53]OFD Sender: No OFD packet to send [13:03:58]OFD Sender: No OFD packet to send [13:04:03]OFD Sender: No OFD packet to send [13:04:08]OFD Sender: No OFD packet to send [13:04:13]OFD Sender: No OFD packet to send [13:04:18]OFD Sender: No OFD packet to send [13:04:23]OFD Sender: No OFD packet to send [13:04:28]OFD Sender: No OFD packet to send [13:04:33]OFD Sender: No OFD packet to send [13:04:38]OFD Sender: No OFD packet to send [13:04:43]OFD Sender: No OFD packet to send [13:04:48]OFD Sender: No OFD packet to send [13:04:53]OFD Sender: No OFD packet to send [13:04:58]OFD Sender: No OFD packet to send [13:05:03]OFD Sender: No OFD packet to send [13:05:08]OFD Sender: No OFD packet to send [13:05:13]OFD Sender: No OFD packet to send [13:05:18]OFD Sender: No OFD packet to send [13:05:23]OFD Sender: No OFD packet to send [13:05:28]OFD Sender: No OFD packet to send [13:05:33]OFD Sender: No OFD packet to send [13:05:38]OFD Sender: No OFD packet to send [13:05:43]OFD Sender: No OFD packet to send [13:05:48]OFD Sender: No OFD packet to send [13:05:53]OFD Sender: No OFD packet to send [13:05:58]OFD Sender: No OFD packet to send [13:06:03]OFD Sender: No OFD packet to send [13:06:08]OFD Sender: No OFD packet to send [13:06:13]OFD Sender: No OFD packet to send [13:06:18]OFD Sender: No OFD packet to send [13:06:23]OFD Sender: No OFD packet to send [13:06:28]OFD Sender: No OFD packet to send [13:06:33]OFD Sender: No OFD packet to send [13:06:38]OFD Sender: No OFD packet to send [13:06:43]OFD Sender: No OFD packet to send [13:06:48]OFD Sender: No OFD packet to send [13:06:53]OFD Sender: No OFD packet to send [13:06:58]OFD Sender: No OFD packet to send [13:07:03]OFD Sender: No OFD packet to send [13:07:08]OFD Sender: No OFD packet to send [13:07:13]OFD Sender: No OFD packet to send [13:07:18]OFD Sender: No OFD packet to send [13:07:23]OFD Sender: No OFD packet to send [13:07:28]OFD Sender: No OFD packet to send [13:07:33]OFD Sender: No OFD packet to send [13:07:38]OFD Sender: No OFD packet to send [13:07:43]OFD Sender: No OFD packet to send [13:07:48]OFD Sender: No OFD packet to send [13:07:53]OFD Sender: No OFD packet to send [13:07:58]OFD Sender: No OFD packet to send [13:08:03]OFD Sender: No OFD packet to send [13:08:08]OFD Sender: No OFD packet to send [13:08:13]OFD Sender: No OFD packet to send [13:08:18]OFD Sender: No OFD packet to send [13:08:23]OFD Sender: No OFD packet to send [13:08:28]OFD Sender: No OFD packet to send [13:08:33]OFD Sender: No OFD packet to send [13:08:38]OFD Sender: No OFD packet to send [13:08:43]OFD Sender: No OFD packet to send [13:08:48]OFD Sender: No OFD packet to send [13:08:53]OFD Sender: No OFD packet to send [13:08:58]OFD Sender: No OFD packet to send [13:09:03]OFD Sender: No OFD packet to send [13:09:08]OFD Sender: No OFD packet to send [13:09:13]OFD Sender: No OFD packet to send [13:09:18]OFD Sender: No OFD packet to send [13:09:23]OFD Sender: No OFD packet to send [13:09:28]OFD Sender: No OFD packet to send [13:09:33]OFD Sender: No OFD packet to send [13:09:38]OFD Sender: No OFD packet to send [13:09:43]OFD Sender: No OFD packet to send [13:09:48]OFD Sender: No OFD packet to send [13:09:53]OFD Sender: No OFD packet to send [13:09:59]OFD Sender: No OFD packet to send [13:10:04]OFD Sender: No OFD packet to send [13:10:09]OFD Sender: No OFD packet to send [13:10:14]OFD Sender: No OFD packet to send [13:10:19]OFD Sender: No OFD packet to send [13:10:24]OFD Sender: No OFD packet to send [13:10:29]OFD Sender: No OFD packet to send [13:10:34]OFD Sender: No OFD packet to send [13:10:39]OFD Sender: No OFD packet to send [13:10:44]OFD Sender: No OFD packet to send [13:10:49]OFD Sender: No OFD packet to send [13:10:54]OFD Sender: No OFD packet to send [13:10:59]OFD Sender: No OFD packet to send [13:11:04]OFD Sender: No OFD packet to send [13:11:09]OFD Sender: No OFD packet to send [13:11:14]OFD Sender: No OFD packet to send [13:11:19]OFD Sender: No OFD packet to send [13:11:24]OFD Sender: No OFD packet to send [13:11:29]OFD Sender: No OFD packet to send [13:11:34]OFD Sender: No OFD packet to send [13:11:39]OFD Sender: No OFD packet to send [13:11:44]OFD Sender: No OFD packet to send [13:11:49]OFD Sender: No OFD packet to send [13:11:54]OFD Sender: No OFD packet to send [13:11:59]OFD Sender: No OFD packet to send [13:12:04]OFD Sender: No OFD packet to send [13:12:09]OFD Sender: No OFD packet to send [13:12:14]OFD Sender: No OFD packet to send [13:12:19]OFD Sender: No OFD packet to send [13:12:24]OFD Sender: No OFD packet to send [13:12:29]OFD Sender: No OFD packet to send [13:12:34]OFD Sender: No OFD packet to send [13:12:39]OFD Sender: No OFD packet to send [13:12:44]accept exits with 7 [13:12:44]New connection [13:12:44]New thread 3067395428 created [13:12:44]Thread 3067252068 joined [13:12:44]Waiting for new connection... [13:12:44] Sock 7.Parse request [13:12:44]Sock 7.Check first char [13:12:44]Sock 7.First char is OK [13:12:44]request: POST /json_proto HTTP/1.0 [13:12:44]Method: POST [13:12:44]URL: /json_proto [13:12:44]Method is POST - this is cgi request [13:12:44]url: /json_proto [13:12:44]query_string will be loaded in cgi processing [13:12:44]execute_cgi json_proto POST (null) [13:12:44]execute_cgi path=json_proto method=POST [13:12:44]POST find Content-Length [13:12:44]Host: 172.17.48.197:8080 [13:12:44]Content-Length: 1217 [13:12:44]Content-Type: application/json [13:12:44] [13:12:44]POST finish read [13:12:44]Found Content-Length = 1217 [13:12:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106173\u000A03.03.2024 13:09\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 619.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3833860\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:12:44]execute_script... [13:12:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106173\u000A03.03.2024 13:09\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 619.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3833860\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:12:44]POST & json_proto [13:12:44]process_json_proto [13:12:44]json parsed OK: [13:12:44]protocol is kg_v1.0 [13:12:44]action value=print_text [13:12:44]process_action print_text [13:12:44]cmd_print_text [13:12:44]ExternCall_PrintAddStr [13:12:44]wPrintStart [13:12:44]Write to MH i2c: 01 00 00 A9 27 D0 [13:12:44]Write i2c OK [13:12:44]MH_I2C_Read... [13:12:44]Read from MH i2c: 01 [13:12:44]MH_I2C_Read... [13:12:44]Read from MH i2c: 01 07 00 [13:12:44]MH_I2C_Read... [13:12:44]Read from MH i2c: 01 07 00 A9 27 00 00 00 00 00 FF 0F E5 [13:12:44]RasterBufferAndPrint [13:12:44]line *****ТОВАРНЫЙ ЧЕК***** [13:12:44]line АЗС 25 [13:12:44]line Партнер нефть [13:12:44]line 02508201610067 [13:12:44]line Кассир : Турдумбек у. К. [13:12:44]line Счет N : (1)1106173 [13:12:44]line 03.03.2024 13:09 [13:12:44]line ПРОДАЖА [13:12:44]line ТРК (МРК, ГНК): 42 [13:12:44]line Вид ГСМ : 2710124130 [13:12:44]line Аи-92-К-5 [13:12:44]line 10.000 x 61.90 [13:12:44]line ИТОГ: 619.00 [13:12:44]line Тип оплаты: Талоны: Топливные Талоны [13:12:44]line 3833860 [13:12:44]line ______________________ [13:12:44]line (подпись) [13:12:44]written 0, free lines is 4095 [13:12:44]OFD Sender: No OFD packet to send [13:12:44]Write to MH i2c: 01 00 00 BE 27 E5 [13:12:44]Write i2c OK [13:12:44]MH_I2C_Read... [13:12:44]Read from MH i2c: 01 [13:12:44]MH_I2C_Read... [13:12:44]Read from MH i2c: 01 07 00 [13:12:44]MH_I2C_Read... [13:12:44]Read from MH i2c: 01 07 00 BE 27 00 00 00 00 00 F5 0D EE [13:12:44]RasterBufferAndPrint [13:12:44]line [13:12:44]line [13:12:44]line [13:12:44]line [13:12:44]line [13:12:44]written 0, free lines is 3574 [13:12:44]MH_Cut [13:12:44]Write to MH i2c: D1 01 00 C5 27 01 BE [13:12:44]Write i2c OK [13:12:44]MH_I2C_Read... [13:12:44]Read from MH i2c: D1 [13:12:44]MH_I2C_Read... [13:12:44]Read from MH i2c: D1 01 00 [13:12:44]MH_I2C_Read... [13:12:44]Read from MH i2c: D1 01 00 C5 27 00 BD [13:12:44]Write to MH i2c: 01 00 00 C6 27 ED [13:12:44]Write i2c OK [13:12:44]MH_I2C_Read... [13:12:44]*** Cut start [13:12:44]*** Purtial cut [13:12:44]*** Stage 1: CUTSNS_PIN = 1 [13:12:46]Read from MH i2c: 01 [13:12:46]MH_I2C_Read... [13:12:46]Read from MH i2c: 01 07 00 [13:12:46]MH_I2C_Read... [13:12:46]*** Stop cut motor [13:12:46]*** Cut end [13:12:46]Read from MH i2c: 01 07 00 C6 27 00 00 00 00 00 FF 0F 02 [13:12:46]process_action print_text done [13:12:46]requested_data is exist [13:12:46]produce_requested_data [13:12:46]requested_item fm.sn is exist - process it [13:12:46]wFMCommunicate request_size=4 [13:12:46]MH_SAM_APDU [13:12:46]CAPDU: 80 11 00 00 [13:12:46]Write to MH i2c: E2 08 00 C7 27 80 11 00 00 00 00 00 00 68 [13:12:46]Write i2c OK [13:12:46]MH_I2C_Read... [13:12:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:46]Read from MH i2c: E2 [13:12:46]MH_I2C_Read... [13:12:46]Read from MH i2c: E2 17 00 [13:12:46]MH_I2C_Read... [13:12:46]Read from MH i2c: E2 17 00 C7 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 C6 [13:12:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [13:12:47]wFMCommunicate OK [13:12:47]requested_item fd.num is exist - process it [13:12:47]SAM_PROTO_GetFieldsCounters [13:12:47]wFMCommunicate request_size=4 [13:12:47]MH_SAM_APDU [13:12:47]CAPDU: 80 13 00 00 [13:12:47]Write to MH i2c: E2 08 00 C8 27 80 13 00 00 00 00 00 00 6B [13:12:47]Write i2c OK [13:12:47]MH_I2C_Read... [13:12:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:12:47]Read from MH i2c: E2 [13:12:47]MH_I2C_Read... [13:12:47]Read from MH i2c: E2 62 00 [13:12:47]MH_I2C_Read... [13:12:47]Read from MH i2c: E2 62 00 C8 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 6C E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 57 [13:12: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 6C E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:12:47]wFMCommunicate OK [13:12:47]SAM_PROTO_GetFieldsCounters done [13:12:47]requested_item shift.num is exist - process it [13:12:47]requested_item shift.opened is exist - process it [13:12:47]req_shift_opened [13:12:47]FM_GetShiftState [13:12:47]SAM_PROTO_GetShiftState [13:12:47]wFMCommunicate request_size=4 [13:12:47]MH_SAM_APDU [13:12:47]CAPDU: 80 13 01 00 [13:12:47]Write to MH i2c: E2 08 00 C9 27 80 13 01 00 00 00 00 00 6D [13:12:47]Write i2c OK [13:12:47]MH_I2C_Read... [13:12:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:47]Read from MH i2c: E2 [13:12:47]MH_I2C_Read... [13:12:47]Read from MH i2c: E2 0E 00 [13:12:47]MH_I2C_Read... [13:12:47]Read from MH i2c: E2 0E 00 C9 27 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 2F [13:12:47]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [13:12:47]wFMCommunicate OK [13:12:47]SAM_PROTO_GetShiftState done [13:12:47]FM_GetShiftState done [13:12:47]req_shift_opened done [13:12:47]requested_item shift.open_date is exist - process it [13:12:47]req_shift_open_date [13:12:47]req_shift_open_date done [13:12:47]produce_requested_data done [13:12:47]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123244,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [13:12:47]process_action_free print_text [13:12:47]json_value_free [13:12:47]json_value_free done [13:12:47]process_json_proto returns [13:12:47]Send response to host [13:12:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123244,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [13:12:47]free response buf [13:12:47]execute_script done [13:12:47]execute_script returns [13:12:47]free content buf [13:12:47]Sock 7.Close socket [13:12:47]Sock 7.Thread stoped [13:12:49]OFD Sender: No OFD packet to send [13:12:54]OFD Sender: No OFD packet to send [13:12:59]OFD Sender: No OFD packet to send [13:13:04]OFD Sender: No OFD packet to send [13:13:09]OFD Sender: No OFD packet to send [13:13:14]OFD Sender: No OFD packet to send [13:13:19]OFD Sender: No OFD packet to send [13:13:21]accept exits with 9 [13:13:21]New connection [13:13:21]New thread 3067252068 created [13:13:21]Thread 3067395428 joined [13:13:21]Waiting for new connection... [13:13:21] Sock 9.Parse request [13:13:21]Sock 9.Check first char [13:13:21]Sock 9.First char is OK [13:13:21]request: POST /json_proto HTTP/1.0 [13:13:21]Method: POST [13:13:21]URL: /json_proto [13:13:21]Method is POST - this is cgi request [13:13:21]url: /json_proto [13:13:21]query_string will be loaded in cgi processing [13:13:21]execute_cgi json_proto POST (null) [13:13:21]execute_cgi path=json_proto method=POST [13:13:21]POST find Content-Length [13:13:21]Host: 172.17.48.197:8080 [13:13:21]Content-Length: 1218 [13:13:21]Content-Type: application/json [13:13:21] [13:13:21]POST finish read [13:13:21]Found Content-Length = 1218 [13:13:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106172\u000A03.03.2024 13:09\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 50.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 3095.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3860796\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:13:21]execute_script... [13:13:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106172\u000A03.03.2024 13:09\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 50.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 3095.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3860796\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:13:21]POST & json_proto [13:13:21]process_json_proto [13:13:21]json parsed OK: [13:13:21]protocol is kg_v1.0 [13:13:21]action value=print_text [13:13:21]process_action print_text [13:13:21]cmd_print_text [13:13:21]ExternCall_PrintAddStr [13:13:21]wPrintStart [13:13:21]Write to MH i2c: 01 00 00 CA 27 F1 [13:13:21]Write i2c OK [13:13:21]MH_I2C_Read... [13:13:21]Read from MH i2c: 01 [13:13:21]MH_I2C_Read... [13:13:21]Read from MH i2c: 01 07 00 [13:13:21]MH_I2C_Read... [13:13:21]Read from MH i2c: 01 07 00 CA 27 00 00 00 00 00 FF 0F 06 [13:13:21]RasterBufferAndPrint [13:13:21]line *****ТОВАРНЫЙ ЧЕК***** [13:13:21]line АЗС 25 [13:13:21]line Партнер нефть [13:13:21]line 02508201610067 [13:13:21]line Кассир : Турдумбек у. К. [13:13:21]line Счет N : (1)1106172 [13:13:21]line 03.03.2024 13:09 [13:13:21]line ПРОДАЖА [13:13:21]line ТРК (МРК, ГНК): 21 [13:13:21]line Вид ГСМ : 2710124130 [13:13:21]line Аи-92-К-5 [13:13:21]line 50.000 x 61.90 [13:13:21]line ИТОГ: 3095.00 [13:13:21]line Тип оплаты: Талоны: Топливные Талоны [13:13:21]line 3860796 [13:13:21]line ______________________ [13:13:21]line (подпись) [13:13:21]written 0, free lines is 4095 [13:13:21]Write to MH i2c: 01 00 00 DF 27 06 [13:13:21]Write i2c OK [13:13:21]MH_I2C_Read... [13:13:21]Read from MH i2c: 01 [13:13:21]MH_I2C_Read... [13:13:21]Read from MH i2c: 01 07 00 [13:13:21]MH_I2C_Read... [13:13:21]Read from MH i2c: 01 07 00 DF 27 00 00 00 00 00 F6 0D 10 [13:13:21]RasterBufferAndPrint [13:13:21]line [13:13:21]line [13:13:21]line [13:13:21]line [13:13:21]line [13:13:21]written 0, free lines is 3575 [13:13:21]MH_Cut [13:13:21]Write to MH i2c: D1 01 00 E6 27 01 DF [13:13:21]Write i2c OK [13:13:21]MH_I2C_Read... [13:13:21]Read from MH i2c: D1 [13:13:21]MH_I2C_Read... [13:13:21]Read from MH i2c: D1 01 00 [13:13:21]MH_I2C_Read... [13:13:21]Read from MH i2c: D1 01 00 E6 27 00 DE [13:13:21]Write to MH i2c: 01 00 00 E7 27 0E [13:13:21]Write i2c OK [13:13:21]MH_I2C_Read... [13:13:22]*** Cut start [13:13:22]*** Purtial cut [13:13:22]*** Stage 1: CUTSNS_PIN = 1 [13:13:24]OFD Sender: No OFD packet to send [13:13:24]Read from MH i2c: 01 [13:13:24]MH_I2C_Read... [13:13:24]*** Stop cut motor [13:13:24]*** Cut end [13:13:24]Read from MH i2c: 01 07 00 [13:13:24]MH_I2C_Read... [13:13:24]Read from MH i2c: 01 07 00 E7 27 00 00 00 00 00 FF 0F 23 [13:13:24]process_action print_text done [13:13:24]requested_data is exist [13:13:24]produce_requested_data [13:13:24]requested_item fm.sn is exist - process it [13:13:24]wFMCommunicate request_size=4 [13:13:24]MH_SAM_APDU [13:13:24]CAPDU: 80 11 00 00 [13:13:24]Write to MH i2c: E2 08 00 E8 27 80 11 00 00 00 00 00 00 89 [13:13:24]Write i2c OK [13:13:24]MH_I2C_Read... [13:13:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:13:24]Read from MH i2c: E2 [13:13:24]MH_I2C_Read... [13:13:24]Read from MH i2c: E2 17 00 [13:13:24]MH_I2C_Read... [13:13:24]Read from MH i2c: E2 17 00 E8 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 E7 [13:13:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [13:13:24]wFMCommunicate OK [13:13:24]requested_item fd.num is exist - process it [13:13:24]SAM_PROTO_GetFieldsCounters [13:13:24]wFMCommunicate request_size=4 [13:13:24]MH_SAM_APDU [13:13:24]CAPDU: 80 13 00 00 [13:13:24]Write to MH i2c: E2 08 00 E9 27 80 13 00 00 00 00 00 00 8C [13:13:24]Write i2c OK [13:13:24]MH_I2C_Read... [13:13:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:13:24]Read from MH i2c: E2 [13:13:24]MH_I2C_Read... [13:13:24]Read from MH i2c: E2 62 00 [13:13:24]MH_I2C_Read... [13:13:24]Read from MH i2c: E2 62 00 E9 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 6C E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 78 [13:13: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 6C E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:13:24]wFMCommunicate OK [13:13:24]SAM_PROTO_GetFieldsCounters done [13:13:24]requested_item shift.num is exist - process it [13:13:24]requested_item shift.opened is exist - process it [13:13:24]req_shift_opened [13:13:24]FM_GetShiftState [13:13:24]SAM_PROTO_GetShiftState [13:13:24]wFMCommunicate request_size=4 [13:13:24]MH_SAM_APDU [13:13:24]CAPDU: 80 13 01 00 [13:13:24]Write to MH i2c: E2 08 00 EA 27 80 13 01 00 00 00 00 00 8E [13:13:24]Write i2c OK [13:13:24]MH_I2C_Read... [13:13:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:24]Read from MH i2c: E2 [13:13:24]MH_I2C_Read... [13:13:24]Read from MH i2c: E2 0E 00 [13:13:24]MH_I2C_Read... [13:13:24]Read from MH i2c: E2 0E 00 EA 27 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 50 [13:13:24]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [13:13:24]wFMCommunicate OK [13:13:24]SAM_PROTO_GetShiftState done [13:13:24]FM_GetShiftState done [13:13:24]req_shift_opened done [13:13:24]requested_item shift.open_date is exist - process it [13:13:24]req_shift_open_date [13:13:24]req_shift_open_date done [13:13:24]produce_requested_data done [13:13:24]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123244,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [13:13:24]process_action_free print_text [13:13:24]json_value_free [13:13:24]json_value_free done [13:13:24]process_json_proto returns [13:13:24]Send response to host [13:13:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123244,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [13:13:24]free response buf [13:13:24]execute_script done [13:13:24]execute_script returns [13:13:24]free content buf [13:13:24]Sock 9.Close socket [13:13:24]Sock 9.Thread stoped [13:13:29]OFD Sender: No OFD packet to send [13:13:34]OFD Sender: No OFD packet to send [13:13:39]OFD Sender: No OFD packet to send [13:13:44]OFD Sender: No OFD packet to send [13:13:49]OFD Sender: No OFD packet to send [13:13:54]OFD Sender: No OFD packet to send [13:13:59]OFD Sender: No OFD packet to send [13:14:04]OFD Sender: No OFD packet to send [13:14:09]OFD Sender: No OFD packet to send [13:14:14]OFD Sender: No OFD packet to send [13:14:19]OFD Sender: No OFD packet to send [13:14:24]OFD Sender: No OFD packet to send [13:14:29]OFD Sender: No OFD packet to send [13:14:34]OFD Sender: No OFD packet to send [13:14:36]accept exits with 7 [13:14:36]New connection [13:14:36]New thread 3067395428 created [13:14:36]Thread 3067252068 joined [13:14:36]Waiting for new connection... [13:14:36] Sock 7.Parse request [13:14:36]Sock 7.Check first char [13:14:36]Sock 7.First char is OK [13:14:36]request: POST /json_proto HTTP/1.0 [13:14:36]Method: POST [13:14:36]URL: /json_proto [13:14:36]Method is POST - this is cgi request [13:14:36]url: /json_proto [13:14:36]query_string will be loaded in cgi processing [13:14:36]execute_cgi json_proto POST (null) [13:14:36]execute_cgi path=json_proto method=POST [13:14:36]POST find Content-Length [13:14:36]Host: 172.17.48.197:8080 [13:14:36]Content-Length: 683 [13:14:36]Content-Type: application/json [13:14:36] [13:14:36]POST finish read [13:14:36]Found Content-Length = 683 [13:14:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106174", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "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:14:36]execute_script... [13: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)1106174", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "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:14:36]POST & json_proto [13:14:36]process_json_proto [13:14:36]json parsed OK: [13:14:36]protocol is kg_v1.0 [13:14:36]action value=close_receipt [13:14:36]process_action close_receipt [13:14:36]cmd_close_receipt [13:14:36]MH_GetDate [13:14:36]Write to MH i2c: F0 00 00 EB 27 01 [13:14:36]Write i2c OK [13:14:36]MH_I2C_Read... [13:14:36]Read from MH i2c: F0 [13:14:36]MH_I2C_Read... [13:14:36]Read from MH i2c: F0 09 00 [13:14:36]MH_I2C_Read... [13:14:36]Read from MH i2c: F0 09 00 EB 27 00 BF 77 E4 65 6C AF E3 65 EC [13:14:36]GetLastDocTimeStamp 1709470808 [13:14:36]current date 1709471679 [13:14:36]FM_GetShiftState [13:14:36]SAM_PROTO_GetShiftState [13:14:36]wFMCommunicate request_size=4 [13:14:36]MH_SAM_APDU [13:14:36]CAPDU: 80 13 01 00 [13:14:36]Write to MH i2c: E2 08 00 EC 27 80 13 01 00 00 00 00 00 90 [13:14:36]Write i2c OK [13:14:36]MH_I2C_Read... [13:14:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:14:36]Read from MH i2c: E2 [13:14:36]MH_I2C_Read... [13:14:36]Read from MH i2c: E2 0E 00 [13:14:36]MH_I2C_Read... [13:14:36]Read from MH i2c: E2 0E 00 EC 27 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 52 [13:14:36]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [13:14:36]wFMCommunicate OK [13:14:36]SAM_PROTO_GetShiftState done [13:14:36]FM_GetShiftState done [13:14:36]opened in 1709425579 [13:14:36]opened+sec_in_day 1709511979 [13:14:36]quantity*price = 100030 [13:14:36]sum+1 = 100031 [13:14:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 102 03.03.2024 13:14 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123245 ФПД: 110863725341774 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T131439&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123245&fm=110863725341774&tin=02508201610067®Number=0000000000090573&sum=100000 [13:14:37]StoreToDocumentArchive [13:14:37]shift 323 fd 123245 [13:14:37]save to /storage/0323/doc_00123245 [13:14:37]save last doc name /storage/0323/doc_00123245 to /storage/kkm_last_doc_name [13:14:37]save OK [13:14:37]Clear old archive folders... [13:14:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:14:37]tlvbuf is B6FC1770 [13:14:37]SAM_PROTO_ClearQueue [13:14:37]wFMCommunicate request_size=4 [13:14:37]MH_SAM_APDU [13:14:37]CAPDU: 80 09 00 00 [13:14:37]Write to MH i2c: E2 08 00 F9 27 80 09 00 00 00 00 00 00 92 [13:14:37]Write i2c OK [13:14:37]MH_I2C_Read... [13:14:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:14:37]Read from MH i2c: E2 [13:14:37]MH_I2C_Read... [13:14:37]Read from MH i2c: E2 03 00 [13:14:37]MH_I2C_Read... [13:14:37]Read from MH i2c: E2 03 00 F9 27 00 90 00 94 [13:14:37]RAPDU: 90 00 [13:14:37]wFMCommunicate OK [13:14:37]SAM_PROTO_ClearQueue done [13:14:37]KKMCreateOFDPacket [13:14:37]OFDProtocolAddRootSTLVToBuf [13:14:37]FM_MakeSignedData [13:14:37]FM_MakeSignedData [13:14:37]SAM_PROTO_SignData [13:14:37]wFMCommunicate request_size=4 [13:14:37]MH_SAM_APDU [13:14:37]CAPDU: 80 0D 01 02 [13:14:37]Write to MH i2c: E2 08 00 FA 27 80 0D 01 02 00 00 00 00 9A [13:14:37]Write i2c OK [13:14:37]MH_I2C_Read... [13:14:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:14:37]Read from MH i2c: E2 [13:14:37]MH_I2C_Read... [13:14:37]Read from MH i2c: E2 03 00 [13:14:37]MH_I2C_Read... [13:14:37]Read from MH i2c: E2 03 00 FA 27 00 90 00 95 [13:14:37]RAPDU: 90 00 [13:14:37]wFMCommunicate OK [13:14:37]wFMCommunicate request_size=255 [13:14:37]MH_SAM_APDU [13:14:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 66 00 00 00 F4 03 04 00 BF 77 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 6D E1 01 00 35 04 06 00 64 [13:14:37]Write to MH i2c: E2 02 01 FB 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 66 00 00 00 F4 03 04 00 BF 77 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 6D E1 01 00 35 04 06 00 64 00 00 E2 [13:14:37]Write i2c OK [13:14:37]MH_I2C_Read... [13:14:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:14:37]Read from MH i2c: E2 [13:14:37]MH_I2C_Read... [13:14:37]Read from MH i2c: E2 03 00 [13:14:37]MH_I2C_Read... [13:14:37]Read from MH i2c: E2 03 00 FB 27 00 90 00 96 [13:14:37]RAPDU: 90 00 [13:14:37]wFMCommunicate OK [13:14:37]wFMCommunicate request_size=10 [13:14:37]MH_SAM_APDU [13:14:37]CAPDU: 80 0D 02 02 05 D4 78 F7 AC 4E [13:14:37]Write to MH i2c: E2 0D 00 FC 27 80 0D 02 02 05 00 D4 78 F7 AC 4E 00 00 E4 [13:14:37]Write i2c OK [13:14:37]MH_I2C_Read... [13:14:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:14:37]Read from MH i2c: E2 [13:14:37]MH_I2C_Read... [13:14:37]Read from MH i2c: E2 03 00 [13:14:37]MH_I2C_Read... [13:14:37]Read from MH i2c: E2 03 00 FC 27 00 90 00 97 [13:14:37]RAPDU: 90 00 [13:14:37]wFMCommunicate OK [13:14:37]wFMCommunicate request_size=4 [13:14:37]MH_SAM_APDU [13:14:37]CAPDU: 80 0D 03 02 [13:14:37]Write to MH i2c: E2 08 00 FD 27 80 0D 03 02 00 00 00 00 9F [13:14:37]Write i2c OK [13:14:37]MH_I2C_Read... [13:14:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:14:37]Read from MH i2c: E2 [13:14:37]MH_I2C_Read... [13:14:37]Read from MH i2c: E2 0B 00 [13:14:37]MH_I2C_Read... [13:14:37]Read from MH i2c: E2 0B 00 FD 27 00 0E CF 42 8E 74 B4 D4 08 90 00 51 [13:14:37]RAPDU: 0E CF 42 8E 74 B4 D4 08 90 00 [13:14:37]wFMCommunicate OK [13:14:37]SAM_PROTO_SignData done [13:14:37]FM_MakeSignedData done [13:14:37]CreateOFDProtocolMessage [13:14:37]wFMCommunicate request_size=4 [13:14:37]MH_SAM_APDU [13:14:37]CAPDU: 80 11 00 00 [13:14:37]Write to MH i2c: E2 08 00 FE 27 80 11 00 00 00 00 00 00 9F [13:14:37]Write i2c OK [13:14:37]MH_I2C_Read... [13:14:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:14:38]Read from MH i2c: E2 [13:14:38]MH_I2C_Read... [13:14:38]Read from MH i2c: E2 17 00 [13:14:38]MH_I2C_Read... [13:14:38]Read from MH i2c: E2 17 00 FE 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 FD [13:14:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [13:14:38]wFMCommunicate OK [13:14:38]CreateOFDProtocolMessage done [13:14:38]OFDSenderStorePacket 123245 [13:14:38]StoreOFDPacket docnum=123245 [13:14:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 1F 8E 07 01 0C 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 66 00 00 00 F4 03 04 00 BF 77 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 6D E1 01 00 35 04 06 00 64 D4 78 F7 AC 4E 0E CF 42 8E 74 B4 D4 08 [13:14:38]CheckFolder [13:14:38]dirname=/storage/ofd_packets [13:14:38]CheckFolder done [13:14:38]ProducePacketName [13:14:38]name=ofd_packets/00123245 [13:14:38]NVStorageSaveData ofd_packets/00123245 [13:14:38]File name is /storage/ofd_packets/00123245 [13:14:38]Write 301 bytes [13:14:38]NVStorageSaveData done [13:14:38]OFDSenderStorePacket done [13:14:38]KKMCreateOFDPacket done [13:14:38]NVStorageSaveData kkm_last_timestamp [13:14:38]File name is /storage/kkm_last_timestamp [13:14:38]Write 4 bytes [13:14:38]NVStorageSaveData done [13:14:38]ExternCall_PrintAddStr [13:14:38]wPrintStart [13:14:38]Write to MH i2c: 01 00 00 FF 27 26 [13:14:38]Write i2c OK [13:14:38]MH_I2C_Read... [13:14:38]Read from MH i2c: 01 [13:14:38]MH_I2C_Read... [13:14:38]Read from MH i2c: 01 07 00 [13:14:38]MH_I2C_Read... [13:14:38]Read from MH i2c: 01 07 00 FF 27 00 00 00 00 00 FF 0F 3B [13:14:38]RasterBufferAndPrint [13:14:38]line Счет N : (1)1106174 [13:14:38]line ИНН: 02508201610067 [13:14:38]line Контрольно-Кассовый Чек [13:14:38]line ПРОДАЖА [13:14:38]line ТРК (МРК, ГНК) : 62 [13:14:38]line Товар: 2710124130 [13:14:38]line Аи-92-К-5 [13:14:38]line 16.160 * 61.90 [13:14:38]line = 1000.30 [13:14:38]line НДС 12% НСП 1% [13:14:38]line > о реализуемом товаре [13:14:38]line ОКРУГЛЕНИЕ: -0.30 [13:14:38]line ИТОГО: 1000.00 [13:14:38]line Внесено: 1000.00 [13:14:38]line СДАЧА: 0.00 [13:14:38]line НСП 1% : 8.85 [13:14:38]line НДС 12% : 106.23 [13:14:38]line Наличными: 1000.00 [13:14:38]line Безнал.: 0.00 [13:14:38]line Место: АЗС № 25 "Партнер Нефть" [13:14:38]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [13:14:38]line СНО: Общий режим [13:14:38]line Чек 102 03.03.2024 13:14 [13:14:38]line Смена: 323 ФФД: 1.0 [13:14:38]line ЗНМ: 0300000019 [13:14:38]line РНМ: 0000000000090573 [13:14:38]line Версия ККМ: 001 [13:14:38]line ФМ: 0000000000874798 [13:14:38]line ФД: 123245 [13:14:38]line ФПД: 110863725341774 [13:14:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T131439&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123245&fm=110863725341774&tin=02508201610067®Number=0000000000090573&sum=100000 [13:14:38]OFD Sender: Processing packet 123245 [packets to send 112, broken 111] [13:14:38]ProducePacketName [13:14:38]name=ofd_packets/00123245 [13:14:38]OFD Sender: To server: pG, [13:14:38]CommunicateWithHost lk.salyk.kg:30040 [13:14:38]ConnectInit lk.salyk.kg [13:14:38]written 0, free lines is 4095 [13:14:38]Connected sock=10 [13: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 37 39 38 0F 01 00 00 1F 8E 07 01 0C 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 66 00 00 00 F4 03 04 00 BF 77 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 6D E1 01 00 35 04 06 00 64 D4 78 F7 AC 4E 0E CF 42 8E 74 B4 D4 08 [13:14:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 43 DE 47 00 65 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 6D E1 01 00 F4 03 04 00 EB 23 E4 65 B6 04 01 00 00 55 E7 0B E0 DE EB 5C E0 [13:14:38]CommunicateWithHost err = 0 [13:14:38]CheckOFDResponse [13:14:38]1017 (14) - 77093643461234 [13:14:38]1041 (16) - 0000000000874798 [13:14:38]1040 (4) - 123245 [13:14:38]1012 (4) - 03.03.2024 07:16 [13:14:38]1206 (1) - 0 [13:14:38]OFD Sender: Remove packet 123245 [13:14:38]ProducePacketName [13:14:38]name=ofd_packets/00123245 [13:14:38]NVStorageDeleteData [13:14:38]Write to MH i2c: 01 00 00 2A 28 52 [13:14:38]Write i2c OK [13:14:38]MH_I2C_Read... [13:14:38]Read from MH i2c: 01 [13:14:38]MH_I2C_Read... [13:14:38]Read from MH i2c: 01 07 00 [13:14:38]MH_I2C_Read... [13:14:38]Read from MH i2c: 01 07 00 2A 28 00 00 00 00 00 F2 0C 57 [13:14:38]RasterBufferAndPrint [13:14:38]line [13:14:38]line [13:14:38]line [13:14:38]line [13:14:38]line [13:14:38]written 0, free lines is 3320 [13:14:38]MH_Cut [13:14:38]Write to MH i2c: D1 01 00 31 28 01 2B [13:14:38]Write i2c OK [13:14:38]MH_I2C_Read... [13:14:38]Read from MH i2c: D1 [13:14:38]MH_I2C_Read... [13:14:38]Read from MH i2c: D1 01 00 [13:14:38]MH_I2C_Read... [13:14:38]Read from MH i2c: D1 01 00 31 28 00 2A [13:14:38]Write to MH i2c: 01 00 00 32 28 5A [13:14:38]Write i2c OK [13:14:38]MH_I2C_Read... [13:14:39]OFD Sender: No OFD packet to send [13:14:39]*** Cut start [13:14:39]*** Purtial cut [13:14:39]*** Stage 1: CUTSNS_PIN = 1 [13:14:41]Read from MH i2c: 01 [13:14:41]MH_I2C_Read... [13:14:41]*** Stop cut motor [13:14:41]*** Cut end [13:14:41]Read from MH i2c: 01 07 00 [13:14:41]MH_I2C_Read... [13:14:41]Read from MH i2c: 01 07 00 32 28 00 00 00 00 00 FF 0F 6F [13:14:41]process_action close_receipt done [13:14:41]requested_data is exist [13:14:41]produce_requested_data [13:14:41]requested_item fm.sn is exist - process it [13:14:41]wFMCommunicate request_size=4 [13:14:41]MH_SAM_APDU [13:14:41]CAPDU: 80 11 00 00 [13:14:41]Write to MH i2c: E2 08 00 33 28 80 11 00 00 00 00 00 00 D5 [13:14:41]Write i2c OK [13:14:41]MH_I2C_Read... [13:14:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:14:41]Read from MH i2c: E2 [13:14:41]MH_I2C_Read... [13:14:41]Read from MH i2c: E2 17 00 [13:14:41]MH_I2C_Read... [13:14:41]Read from MH i2c: E2 17 00 33 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 33 [13:14:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [13:14:41]wFMCommunicate OK [13:14:41]requested_item fd.num is exist - process it [13:14:41]SAM_PROTO_GetFieldsCounters [13:14:41]wFMCommunicate request_size=4 [13:14:41]MH_SAM_APDU [13:14:41]CAPDU: 80 13 00 00 [13:14:41]Write to MH i2c: E2 08 00 34 28 80 13 00 00 00 00 00 00 D8 [13:14:41]Write i2c OK [13:14:41]MH_I2C_Read... [13:14:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:14:41]Read from MH i2c: E2 [13:14:41]MH_I2C_Read... [13:14:41]Read from MH i2c: E2 62 00 [13:14:41]MH_I2C_Read... [13:14:41]Read from MH i2c: E2 62 00 34 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 6D E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 C8 [13:14:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 6D E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:14:41]wFMCommunicate OK [13:14:41]SAM_PROTO_GetFieldsCounters done [13:14:41]requested_item shift.num is exist - process it [13:14:41]requested_item shift.opened is exist - process it [13:14:41]req_shift_opened [13:14:41]FM_GetShiftState [13:14:41]SAM_PROTO_GetShiftState [13:14:41]wFMCommunicate request_size=4 [13:14:41]MH_SAM_APDU [13:14:41]CAPDU: 80 13 01 00 [13:14:41]Write to MH i2c: E2 08 00 35 28 80 13 01 00 00 00 00 00 DA [13:14:41]Write i2c OK [13:14:41]MH_I2C_Read... [13:14:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:14:41]Read from MH i2c: E2 [13:14:41]MH_I2C_Read... [13:14:41]Read from MH i2c: E2 0E 00 [13:14:41]MH_I2C_Read... [13:14:41]Read from MH i2c: E2 0E 00 35 28 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 9C [13:14:41]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [13:14:41]wFMCommunicate OK [13:14:41]SAM_PROTO_GetShiftState done [13:14:41]FM_GetShiftState done [13:14:41]req_shift_opened done [13:14:41]requested_item shift.open_date is exist - process it [13:14:41]req_shift_open_date [13:14:41]req_shift_open_date done [13:14:41]produce_requested_data done [13:14:41]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123245,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [13:14:41]process_action_free close_receipt [13:14:41]json_value_free [13:14:41]json_value_free done [13:14:41]process_json_proto returns [13:14:41]Send response to host [13:14:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123245,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [13:14:41]free response buf [13:14:41]execute_script done [13:14:41]execute_script returns [13:14:41]free content buf [13:14:41]Sock 7.Close socket [13:14:41]Sock 7.Thread stoped [13:14:44]OFD Sender: No OFD packet to send [13:14:49]OFD Sender: No OFD packet to send [13:14:54]OFD Sender: No OFD packet to send [13:14:59]OFD Sender: No OFD packet to send [13:15:04]OFD Sender: No OFD packet to send [13:15:09]OFD Sender: No OFD packet to send [13:15:14]OFD Sender: No OFD packet to send [13:15:16]accept exits with 9 [13:15:16]New connection [13:15:16]New thread 3067252068 created [13:15:16]Thread 3067395428 joined [13:15:16]Waiting for new connection... [13:15:16] Sock 9.Parse request [13:15:16]Sock 9.Check first char [13:15:16]Sock 9.First char is OK [13:15:16]request: POST /json_proto HTTP/1.0 [13:15:16]Method: POST [13:15:16]URL: /json_proto [13:15:16]Method is POST - this is cgi request [13:15:16]url: /json_proto [13:15:16]query_string will be loaded in cgi processing [13:15:16]execute_cgi json_proto POST (null) [13:15:16]execute_cgi path=json_proto method=POST [13:15:16]POST find Content-Length [13:15:16]Host: 172.17.48.197:8080 [13:15:16]Content-Length: 678 [13:15:16]Content-Type: application/json [13:15:16] [13:15:16]POST finish read [13:15:16]Found Content-Length = 678 [13:15:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106175", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 3.240, "sum" : 200.56, "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" ] } } [13:15:16]execute_script... [13:15:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106175", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 3.240, "sum" : 200.56, "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" ] } } [13:15:16]POST & json_proto [13:15:16]process_json_proto [13:15:16]json parsed OK: [13:15:16]protocol is kg_v1.0 [13:15:16]action value=close_receipt [13:15:16]process_action close_receipt [13:15:16]cmd_close_receipt [13:15:16]MH_GetDate [13:15:16]Write to MH i2c: F0 00 00 36 28 4D [13:15:16]Write i2c OK [13:15:16]MH_I2C_Read... [13:15:16]Read from MH i2c: F0 [13:15:16]MH_I2C_Read... [13:15:16]Read from MH i2c: F0 09 00 [13:15:16]MH_I2C_Read... [13:15:16]Read from MH i2c: F0 09 00 36 28 00 E7 77 E4 65 6C AF E3 65 60 [13:15:16]GetLastDocTimeStamp 1709471679 [13:15:16]current date 1709471719 [13:15:16]FM_GetShiftState [13:15:16]SAM_PROTO_GetShiftState [13:15:16]wFMCommunicate request_size=4 [13:15:16]MH_SAM_APDU [13:15:16]CAPDU: 80 13 01 00 [13:15:16]Write to MH i2c: E2 08 00 37 28 80 13 01 00 00 00 00 00 DC [13:15:16]Write i2c OK [13:15:16]MH_I2C_Read... [13:15:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:16]Read from MH i2c: E2 [13:15:16]MH_I2C_Read... [13:15:16]Read from MH i2c: E2 0E 00 [13:15:16]MH_I2C_Read... [13:15:16]Read from MH i2c: E2 0E 00 37 28 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 9E [13:15:16]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [13:15:16]wFMCommunicate OK [13:15:16]SAM_PROTO_GetShiftState done [13:15:16]FM_GetShiftState done [13:15:16]opened in 1709425579 [13:15:16]opened+sec_in_day 1709511979 [13:15:16]quantity*price = 20055 [13:15:16]sum+1 = 20057 [13:15:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.30 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 103 03.03.2024 13:15 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123246 ФПД: 170913572707471 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T131519&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123246&fm=170913572707471&tin=02508201610067®Number=0000000000090573&sum=20000 [13:15:17]StoreToDocumentArchive [13:15:17]shift 323 fd 123246 [13:15:17]save to /storage/0323/doc_00123246 [13:15:17]save last doc name /storage/0323/doc_00123246 to /storage/kkm_last_doc_name [13:15:17]save OK [13:15:17]Clear old archive folders... [13:15:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:15:17]tlvbuf is 00DC0FA0 [13:15:17]SAM_PROTO_ClearQueue [13:15:17]wFMCommunicate request_size=4 [13:15:17]MH_SAM_APDU [13:15:17]CAPDU: 80 09 00 00 [13:15:17]Write to MH i2c: E2 08 00 44 28 80 09 00 00 00 00 00 00 DE [13:15:17]Write i2c OK [13:15:17]MH_I2C_Read... [13:15:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:15:17]Read from MH i2c: E2 [13:15:17]MH_I2C_Read... [13:15:17]Read from MH i2c: E2 03 00 [13:15:17]MH_I2C_Read... [13:15:17]Read from MH i2c: E2 03 00 44 28 00 90 00 E0 [13:15:17]RAPDU: 90 00 [13:15:17]wFMCommunicate OK [13:15:17]SAM_PROTO_ClearQueue done [13:15:17]KKMCreateOFDPacket [13:15:17]OFDProtocolAddRootSTLVToBuf [13:15:17]FM_MakeSignedData [13:15:17]FM_MakeSignedData [13:15:17]SAM_PROTO_SignData [13:15:17]wFMCommunicate request_size=4 [13:15:17]MH_SAM_APDU [13:15:17]CAPDU: 80 0D 01 02 [13:15:17]Write to MH i2c: E2 08 00 45 28 80 0D 01 02 00 00 00 00 E6 [13:15:17]Write i2c OK [13:15:17]MH_I2C_Read... [13:15:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:15:17]Read from MH i2c: E2 [13:15:17]MH_I2C_Read... [13:15:17]Read from MH i2c: E2 03 00 [13:15:17]MH_I2C_Read... [13:15:17]Read from MH i2c: E2 03 00 45 28 00 90 00 E1 [13:15:17]RAPDU: 90 00 [13:15:17]wFMCommunicate OK [13:15:17]wFMCommunicate request_size=255 [13:15:17]MH_SAM_APDU [13:15:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 0C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 58 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 52 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 E7 77 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 6E E1 01 00 35 04 06 00 9B [13:15:17]Write to MH i2c: E2 02 01 46 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 0C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 58 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 52 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 E7 77 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 6E E1 01 00 35 04 06 00 9B 00 00 BE [13:15:17]Write i2c OK [13:15:17]MH_I2C_Read... [13:15:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:18]Read from MH i2c: E2 [13:15:18]MH_I2C_Read... [13:15:18]Read from MH i2c: E2 03 00 [13:15:18]MH_I2C_Read... [13:15:18]Read from MH i2c: E2 03 00 46 28 00 90 00 E2 [13:15:18]RAPDU: 90 00 [13:15:18]wFMCommunicate OK [13:15:18]wFMCommunicate request_size=10 [13:15:18]MH_SAM_APDU [13:15:18]CAPDU: 80 0D 02 02 05 71 EA C9 DC 8F [13:15:18]Write to MH i2c: E2 0D 00 47 28 80 0D 02 02 05 00 71 EA C9 DC 8F 00 00 82 [13:15:18]Write i2c OK [13:15:18]MH_I2C_Read... [13:15:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:18]Read from MH i2c: E2 [13:15:18]MH_I2C_Read... [13:15:18]Read from MH i2c: E2 03 00 [13:15:18]MH_I2C_Read... [13:15:18]Read from MH i2c: E2 03 00 47 28 00 90 00 E3 [13:15:18]RAPDU: 90 00 [13:15:18]wFMCommunicate OK [13:15:18]wFMCommunicate request_size=4 [13:15:18]MH_SAM_APDU [13:15:18]CAPDU: 80 0D 03 02 [13:15:18]Write to MH i2c: E2 08 00 48 28 80 0D 03 02 00 00 00 00 EB [13:15:18]Write i2c OK [13:15:18]MH_I2C_Read... [13:15:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:15:18]Read from MH i2c: E2 [13:15:18]MH_I2C_Read... [13:15:18]Read from MH i2c: E2 0B 00 [13:15:18]MH_I2C_Read... [13:15:18]Read from MH i2c: E2 0B 00 48 28 00 31 2E DD A3 6A 71 B2 08 90 00 60 [13:15:18]RAPDU: 31 2E DD A3 6A 71 B2 08 90 00 [13:15:18]wFMCommunicate OK [13:15:18]SAM_PROTO_SignData done [13:15:18]FM_MakeSignedData done [13:15:18]CreateOFDProtocolMessage [13:15:18]wFMCommunicate request_size=4 [13:15:18]MH_SAM_APDU [13:15:18]CAPDU: 80 11 00 00 [13:15:18]Write to MH i2c: E2 08 00 49 28 80 11 00 00 00 00 00 00 EB [13:15:18]Write i2c OK [13:15:18]MH_I2C_Read... [13:15:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:18]Read from MH i2c: E2 [13:15:18]MH_I2C_Read... [13:15:18]Read from MH i2c: E2 17 00 [13:15:18]MH_I2C_Read... [13:15:18]Read from MH i2c: E2 17 00 49 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 49 [13:15:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [13:15:18]wFMCommunicate OK [13:15:18]CreateOFDProtocolMessage done [13:15:18]OFDSenderStorePacket 123246 [13:15:18]StoreOFDPacket docnum=123246 [13:15:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 B5 12 07 01 AA 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 0C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 58 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 52 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 E7 77 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 6E E1 01 00 35 04 06 00 9B 71 EA C9 DC 8F 31 2E DD A3 6A 71 B2 08 [13:15:18]CheckFolder [13:15:18]dirname=/storage/ofd_packets [13:15:18]CheckFolder done [13:15:18]ProducePacketName [13:15:18]name=ofd_packets/00123246 [13:15:18]NVStorageSaveData ofd_packets/00123246 [13:15:18]File name is /storage/ofd_packets/00123246 [13:15:18]Write 301 bytes [13:15:18]NVStorageSaveData done [13:15:18]OFDSenderStorePacket done [13:15:18]KKMCreateOFDPacket done [13:15:18]NVStorageSaveData kkm_last_timestamp [13:15:18]File name is /storage/kkm_last_timestamp [13:15:18]Write 4 bytes [13:15:18]NVStorageSaveData done [13:15:18]ExternCall_PrintAddStr [13:15:18]wPrintStart [13:15:18]Write to MH i2c: 01 00 00 4A 28 72 [13:15:18]Write i2c OK [13:15:18]MH_I2C_Read... [13:15:18]Read from MH i2c: 01 [13:15:18]MH_I2C_Read... [13:15:18]Read from MH i2c: 01 07 00 [13:15:18]MH_I2C_Read... [13:15:18]Read from MH i2c: 01 07 00 4A 28 00 00 00 00 00 FF 0F 87 [13:15:18]RasterBufferAndPrint [13:15:18]line Счет N : (1)1106175 [13:15:18]line ИНН: 02508201610067 [13:15:18]line Контрольно-Кассовый Чек [13:15:18]line ПРОДАЖА [13:15:18]line ТРК (МРК, ГНК) : 21 [13:15:18]line Товар: 2710124130 [13:15:18]line Аи-92-К-5 [13:15:18]line 3.240 * 61.90 [13:15:18]line = 200.56 [13:15:18]line НДС 12% НСП 1% [13:15:18]line > о реализуемом товаре [13:15:18]line ОКРУГЛЕНИЕ: -0.56 [13:15:18]line ИТОГО: 200.00 [13:15:18]line Внесено: 200.00 [13:15:18]line СДАЧА: 0.00 [13:15:18]line НСП 1% : 1.77 [13:15:18]line НДС 12% : 21.30 [13:15:18]line Наличными: 200.00 [13:15:18]line Безнал.: 0.00 [13:15:18]line Место: АЗС № 25 "Партнер Нефть" [13:15:18]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [13:15:18]line СНО: Общий режим [13:15:18]line Чек 103 03.03.2024 13:15 [13:15:18]line Смена: 323 ФФД: 1.0 [13:15:18]line ЗНМ: 0300000019 [13:15:18]line РНМ: 0000000000090573 [13:15:18]line Версия ККМ: 001 [13:15:18]line ФМ: 0000000000874798 [13:15:18]line ФД: 123246 [13:15:18]line ФПД: 170913572707471 [13:15:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T131519&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123246&fm=170913572707471&tin=02508201610067®Number=0000000000090573&sum=20000 [13:15:18]OFD Sender: Processing packet 123246 [packets to send 112, broken 111] [13:15:18]ProducePacketName [13:15:18]name=ofd_packets/00123246 [13:15:18]OFD Sender: To server: pG, [13:15:18]CommunicateWithHost lk.salyk.kg:30040 [13:15:18]ConnectInit lk.salyk.kg [13:15:18]written 0, free lines is 4095 [13:15:18]Connected sock=10 [13:15: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 37 39 38 0F 01 00 00 B5 12 07 01 AA 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 0C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 58 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 52 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 E7 77 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 6E E1 01 00 35 04 06 00 9B 71 EA C9 DC 8F 31 2E DD A3 6A 71 B2 08 [13:15:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 CB 50 47 00 AB 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 6E E1 01 00 F4 03 04 00 13 24 E4 65 B6 04 01 00 00 98 8C 85 06 46 DD 35 F2 [13:15:18]CommunicateWithHost err = 0 [13:15:18]CheckOFDResponse [13:15:18]1017 (14) - 77093643461234 [13:15:18]1041 (16) - 0000000000874798 [13:15:18]1040 (4) - 123246 [13:15:18]1012 (4) - 03.03.2024 07:17 [13:15:18]1206 (1) - 0 [13:15:18]OFD Sender: Remove packet 123246 [13:15:18]ProducePacketName [13:15:18]name=ofd_packets/00123246 [13:15:18]NVStorageDeleteData [13:15:19]Write to MH i2c: 01 00 00 75 28 9D [13:15:19]Write i2c OK [13:15:19]MH_I2C_Read... [13:15:19]Read from MH i2c: 01 [13:15:19]MH_I2C_Read... [13:15:19]Read from MH i2c: 01 07 00 [13:15:19]MH_I2C_Read... [13:15:19]Read from MH i2c: 01 07 00 75 28 00 00 00 00 00 E3 0C 93 [13:15:19]RasterBufferAndPrint [13:15:19]line [13:15:19]line [13:15:19]line [13:15:19]line [13:15:19]line [13:15:19]written 0, free lines is 3305 [13:15:19]MH_Cut [13:15:19]Write to MH i2c: D1 01 00 7C 28 01 76 [13:15:19]Write i2c OK [13:15:19]MH_I2C_Read... [13:15:19]Read from MH i2c: D1 [13:15:19]MH_I2C_Read... [13:15:19]Read from MH i2c: D1 01 00 [13:15:19]MH_I2C_Read... [13:15:19]Read from MH i2c: D1 01 00 7C 28 00 75 [13:15:19]Write to MH i2c: 01 00 00 7D 28 A5 [13:15:19]Write i2c OK [13:15:19]MH_I2C_Read... [13:15:19]OFD Sender: No OFD packet to send [13:15:19]*** Cut start [13:15:19]*** Purtial cut [13:15:19]*** Stage 1: CUTSNS_PIN = 1 [13:15:21]Read from MH i2c: 01 [13:15:21]MH_I2C_Read... [13:15:21]*** Stop cut motor [13:15:21]*** Cut end [13:15:21]Read from MH i2c: 01 07 00 [13:15:21]MH_I2C_Read... [13:15:21]Read from MH i2c: 01 07 00 7D 28 00 00 00 00 00 FF 0F BA [13:15:21]process_action close_receipt done [13:15:21]requested_data is exist [13:15:21]produce_requested_data [13:15:21]requested_item fm.sn is exist - process it [13:15:21]wFMCommunicate request_size=4 [13:15:21]MH_SAM_APDU [13:15:21]CAPDU: 80 11 00 00 [13:15:21]Write to MH i2c: E2 08 00 7E 28 80 11 00 00 00 00 00 00 20 [13:15:21]Write i2c OK [13:15:21]MH_I2C_Read... [13:15:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:21]Read from MH i2c: E2 [13:15:21]MH_I2C_Read... [13:15:21]Read from MH i2c: E2 17 00 [13:15:21]MH_I2C_Read... [13:15:21]Read from MH i2c: E2 17 00 7E 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 7E [13:15:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [13:15:21]wFMCommunicate OK [13:15:21]requested_item fd.num is exist - process it [13:15:21]SAM_PROTO_GetFieldsCounters [13:15:21]wFMCommunicate request_size=4 [13:15:21]MH_SAM_APDU [13:15:21]CAPDU: 80 13 00 00 [13:15:21]Write to MH i2c: E2 08 00 7F 28 80 13 00 00 00 00 00 00 23 [13:15:21]Write i2c OK [13:15:21]MH_I2C_Read... [13:15:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:15:22]Read from MH i2c: E2 [13:15:22]MH_I2C_Read... [13:15:22]Read from MH i2c: E2 62 00 [13:15:22]MH_I2C_Read... [13:15:22]Read from MH i2c: E2 62 00 7F 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 6E E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 17 [13:15:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 6E E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:15:22]wFMCommunicate OK [13:15:22]SAM_PROTO_GetFieldsCounters done [13:15:22]requested_item shift.num is exist - process it [13:15:22]requested_item shift.opened is exist - process it [13:15:22]req_shift_opened [13:15:22]FM_GetShiftState [13:15:22]SAM_PROTO_GetShiftState [13:15:22]wFMCommunicate request_size=4 [13:15:22]MH_SAM_APDU [13:15:22]CAPDU: 80 13 01 00 [13:15:22]Write to MH i2c: E2 08 00 80 28 80 13 01 00 00 00 00 00 25 [13:15:22]Write i2c OK [13:15:22]MH_I2C_Read... [13:15:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:22]Read from MH i2c: E2 [13:15:22]MH_I2C_Read... [13:15:22]Read from MH i2c: E2 0E 00 [13:15:22]MH_I2C_Read... [13:15:22]Read from MH i2c: E2 0E 00 80 28 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 E7 [13:15:22]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [13:15:22]wFMCommunicate OK [13:15:22]SAM_PROTO_GetShiftState done [13:15:22]FM_GetShiftState done [13:15:22]req_shift_opened done [13:15:22]requested_item shift.open_date is exist - process it [13:15:22]req_shift_open_date [13:15:22]req_shift_open_date done [13:15:22]produce_requested_data done [13:15:22]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123246,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [13:15:22]process_action_free close_receipt [13:15:22]json_value_free [13:15:22]json_value_free done [13:15:22]process_json_proto returns [13:15:22]Send response to host [13:15:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123246,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [13:15:22]free response buf [13:15:22]execute_script done [13:15:22]execute_script returns [13:15:22]free content buf [13:15:22]Sock 9.Close socket [13:15:22]Sock 9.Thread stoped [13:15:24]OFD Sender: No OFD packet to send [13:15:29]OFD Sender: No OFD packet to send [13:15:34]OFD Sender: No OFD packet to send [13:15:39]OFD Sender: No OFD packet to send [13:15:44]OFD Sender: No OFD packet to send [13:15:49]OFD Sender: No OFD packet to send [13:15:54]OFD Sender: No OFD packet to send [13:15:59]OFD Sender: No OFD packet to send [13:16:04]OFD Sender: No OFD packet to send [13:16:09]OFD Sender: No OFD packet to send [13:16:14]OFD Sender: No OFD packet to send [13:16:19]OFD Sender: No OFD packet to send [13:16:24]OFD Sender: No OFD packet to send [13:16:29]OFD Sender: No OFD packet to send [13:16:34]OFD Sender: No OFD packet to send [13:16:39]OFD Sender: No OFD packet to send [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:54]OFD Sender: No OFD packet to send [13:18:59]OFD Sender: No OFD packet to send [13:19:04]OFD Sender: No OFD packet to send [13:19:09]OFD Sender: No OFD packet to send [13:19:14]OFD Sender: No OFD packet to send [13:19:19]OFD Sender: No OFD packet to send [13:19:24]OFD Sender: No OFD packet to send [13:19:29]OFD Sender: No OFD packet to send [13:19:34]OFD Sender: No OFD packet to send [13:19:39]OFD Sender: No OFD packet to send [13:19:44]OFD Sender: No OFD packet to send [13:19:49]OFD Sender: No OFD packet to send [13:19:54]OFD Sender: No OFD packet to send [13:19:59]OFD Sender: No OFD packet to send [13:20:04]OFD Sender: No OFD packet to send [13:20:09]OFD Sender: No OFD packet to send [13:20:14]OFD Sender: No OFD packet to send [13:20:19]OFD Sender: No OFD packet to send [13:20:24]OFD Sender: No OFD packet to send [13:20:29]OFD Sender: No OFD packet to send [13:20:34]OFD Sender: No OFD packet to send [13:20:39]OFD Sender: No OFD packet to send [13:20:44]OFD Sender: No OFD packet to send [13:20:49]OFD Sender: No OFD packet to send [13:20:54]OFD Sender: No OFD packet to send [13:20:59]OFD Sender: No OFD packet to send [13:21:04]OFD Sender: No OFD packet to send [13:21:09]OFD Sender: No OFD packet to send [13:21:14]OFD Sender: No OFD packet to send [13:21:19]OFD Sender: No OFD packet to send [13:21:24]OFD Sender: No OFD packet to send [13:21:29]OFD Sender: No OFD packet to send [13:21:34]OFD Sender: No OFD packet to send [13:21:39]OFD Sender: No OFD packet to send [13:21:44]OFD Sender: No OFD packet to send [13:21:49]OFD Sender: No OFD packet to send [13:21:54]OFD Sender: No OFD packet to send [13:21:59]OFD Sender: No OFD packet to send [13:22:04]OFD Sender: No OFD packet to send [13:22:09]OFD Sender: No OFD packet to send [13:22:14]OFD Sender: No OFD packet to send [13:22:19]OFD Sender: No OFD packet to send [13:22:24]OFD Sender: No OFD packet to send [13:22:29]OFD Sender: No OFD packet to send [13:22:34]OFD Sender: No OFD packet to send [13:22:39]OFD Sender: No OFD packet to send [13:22:44]OFD Sender: No OFD packet to send [13:22:49]OFD Sender: No OFD packet to send [13:22:54]OFD Sender: No OFD packet to send [13:22:59]OFD Sender: No OFD packet to send [13:23:04]OFD Sender: No OFD packet to send [13:23:09]OFD Sender: No OFD packet to send [13:23:14]OFD Sender: No OFD packet to send [13:23:19]OFD Sender: No OFD packet to send [13:23:24]OFD Sender: No OFD packet to send [13:23:30]OFD Sender: No OFD packet to send [13:23:35]OFD Sender: No OFD packet to send [13:23:40]OFD Sender: No OFD packet to send [13:23:45]OFD Sender: No OFD packet to send [13:23:50]OFD Sender: No OFD packet to send [13:23:55]OFD Sender: No OFD packet to send [13:24:00]OFD Sender: No OFD packet to send [13:24:05]OFD Sender: No OFD packet to send [13:24:10]OFD Sender: No OFD packet to send [13:24:15]OFD Sender: No OFD packet to send [13:24:20]OFD Sender: No OFD packet to send [13:24:25]OFD Sender: No OFD packet to send [13:24:28]accept exits with 7 [13:24:28]New connection [13:24:28]New thread 3067395428 created [13:24:28]Thread 3067252068 joined [13:24:28]Waiting for new connection... [13:24:28] Sock 7.Parse request [13:24:28]Sock 7.Check first char [13:24:28]Sock 7.First char is OK [13:24:28]request: POST /json_proto HTTP/1.0 [13:24:28]Method: POST [13:24:28]URL: /json_proto [13:24:28]Method is POST - this is cgi request [13:24:28]url: /json_proto [13:24:28]query_string will be loaded in cgi processing [13:24:28]execute_cgi json_proto POST (null) [13:24:28]execute_cgi path=json_proto method=POST [13:24:28]POST find Content-Length [13:24:28]Host: 172.17.48.197:8080 [13:24:28]Content-Length: 1210 [13:24:28]Content-Type: application/json [13:24:28] [13:24:28]POST finish read [13:24:28]Found Content-Length = 1210 [13:24:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106176\u000A03.03.2024 13:20\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 23\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 50.000 x 69.50\u000A\u0418\u0422\u041E\u0413: 3475.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53366\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:24:28]execute_script... [13:24:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106176\u000A03.03.2024 13:20\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 23\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 50.000 x 69.50\u000A\u0418\u0422\u041E\u0413: 3475.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53366\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:24:28]POST & json_proto [13:24:28]process_json_proto [13:24:28]json parsed OK: [13:24:28]protocol is kg_v1.0 [13:24:28]action value=print_text [13:24:28]process_action print_text [13:24:28]cmd_print_text [13:24:28]ExternCall_PrintAddStr [13:24:28]wPrintStart [13:24:28]Write to MH i2c: 01 00 00 81 28 A9 [13:24:28]Write i2c OK [13:24:28]MH_I2C_Read... [13:24:28]Read from MH i2c: 01 [13:24:28]MH_I2C_Read... [13:24:28]Read from MH i2c: 01 07 00 [13:24:28]MH_I2C_Read... [13:24:28]Read from MH i2c: 01 07 00 81 28 00 00 00 00 00 FF 0F BE [13:24:28]RasterBufferAndPrint [13:24:28]line *****ТОВАРНЫЙ ЧЕК***** [13:24:28]line АЗС 25 [13:24:28]line Партнер нефть [13:24:28]line 02508201610067 [13:24:28]line Кассир : Турдумбек у. К. [13:24:28]line Счет N : (1)1106176 [13:24:28]line 03.03.2024 13:20 [13:24:28]line ПРОДАЖА [13:24:28]line ТРК (МРК, ГНК): 23 [13:24:28]line Вид ГСМ : 2710124500 [13:24:28]line Аи-95-К-5 [13:24:28]line 50.000 x 69.50 [13:24:28]line ИТОГ: 3475.00 [13:24:28]line Тип оплаты: Талоны: Топливная Карта [13:24:28]line 53366 [13:24:28]line ______________________ [13:24:28]line (подпись) [13:24:28]written 0, free lines is 4095 [13:24:28]Write to MH i2c: 01 00 00 96 28 BE [13:24:28]Write i2c OK [13:24:28]MH_I2C_Read... [13:24:28]Read from MH i2c: 01 [13:24:28]MH_I2C_Read... [13:24:28]Read from MH i2c: 01 07 00 [13:24:28]MH_I2C_Read... [13:24:28]Read from MH i2c: 01 07 00 96 28 00 00 00 00 00 F5 0D C7 [13:24:28]RasterBufferAndPrint [13:24:28]line [13:24:28]line [13:24:28]line [13:24:28]line [13:24:28]line [13:24:28]written 0, free lines is 3575 [13:24:28]MH_Cut [13:24:28]Write to MH i2c: D1 01 00 9D 28 01 97 [13:24:28]Write i2c OK [13:24:28]MH_I2C_Read... [13:24:28]Read from MH i2c: D1 [13:24:28]MH_I2C_Read... [13:24:28]Read from MH i2c: D1 01 00 [13:24:28]MH_I2C_Read... [13:24:28]Read from MH i2c: D1 01 00 9D 28 00 96 [13:24:28]Write to MH i2c: 01 00 00 9E 28 C6 [13:24:28]Write i2c OK [13:24:28]MH_I2C_Read... [13:24:29]*** Cut start [13:24:29]*** Purtial cut [13:24:29]*** Stage 1: CUTSNS_PIN = 1 [13:24:30]OFD Sender: No OFD packet to send [13:24:31]Read from MH i2c: 01 [13:24:31]MH_I2C_Read... [13:24:31]Read from MH i2c: 01 07 00 [13:24:31]MH_I2C_Read... [13:24:31]*** Stop cut motor [13:24:31]*** Cut end [13:24:31]Read from MH i2c: 01 07 00 9E 28 00 00 00 00 00 FF 0F DB [13:24:31]process_action print_text done [13:24:31]requested_data is exist [13:24:31]produce_requested_data [13:24:31]requested_item fm.sn is exist - process it [13:24:31]wFMCommunicate request_size=4 [13:24:31]MH_SAM_APDU [13:24:31]CAPDU: 80 11 00 00 [13:24:31]Write to MH i2c: E2 08 00 9F 28 80 11 00 00 00 00 00 00 41 [13:24:31]Write i2c OK [13:24:31]MH_I2C_Read... [13:24:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:24:31]Read from MH i2c: E2 [13:24:31]MH_I2C_Read... [13:24:31]Read from MH i2c: E2 17 00 [13:24:31]MH_I2C_Read... [13:24:31]Read from MH i2c: E2 17 00 9F 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 9F [13:24:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [13:24:31]wFMCommunicate OK [13:24:31]requested_item fd.num is exist - process it [13:24:31]SAM_PROTO_GetFieldsCounters [13:24:31]wFMCommunicate request_size=4 [13:24:31]MH_SAM_APDU [13:24:31]CAPDU: 80 13 00 00 [13:24:31]Write to MH i2c: E2 08 00 A0 28 80 13 00 00 00 00 00 00 44 [13:24:31]Write i2c OK [13:24:31]MH_I2C_Read... [13:24:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:24:31]Read from MH i2c: E2 [13:24:31]MH_I2C_Read... [13:24:31]Read from MH i2c: E2 62 00 [13:24:31]MH_I2C_Read... [13:24:31]Read from MH i2c: E2 62 00 A0 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 6E E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 38 [13:24: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 6E E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:24:31]wFMCommunicate OK [13:24:31]SAM_PROTO_GetFieldsCounters done [13:24:31]requested_item shift.num is exist - process it [13:24:31]requested_item shift.opened is exist - process it [13:24:31]req_shift_opened [13:24:31]FM_GetShiftState [13:24:31]SAM_PROTO_GetShiftState [13:24:31]wFMCommunicate request_size=4 [13:24:31]MH_SAM_APDU [13:24:31]CAPDU: 80 13 01 00 [13:24:31]Write to MH i2c: E2 08 00 A1 28 80 13 01 00 00 00 00 00 46 [13:24:31]Write i2c OK [13:24:31]MH_I2C_Read... [13:24:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:24:31]Read from MH i2c: E2 [13:24:31]MH_I2C_Read... [13:24:31]Read from MH i2c: E2 0E 00 [13:24:31]MH_I2C_Read... [13:24:31]Read from MH i2c: E2 0E 00 A1 28 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 08 [13:24:31]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [13:24:31]wFMCommunicate OK [13:24:31]SAM_PROTO_GetShiftState done [13:24:31]FM_GetShiftState done [13:24:31]req_shift_opened done [13:24:31]requested_item shift.open_date is exist - process it [13:24:31]req_shift_open_date [13:24:31]req_shift_open_date done [13:24:31]produce_requested_data done [13:24:31]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123246,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [13:24:31]process_action_free print_text [13:24:31]json_value_free [13:24:31]json_value_free done [13:24:31]process_json_proto returns [13:24:31]Send response to host [13:24:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123246,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [13:24:31]free response buf [13:24:31]execute_script done [13:24:31]execute_script returns [13:24:31]free content buf [13:24:31]Sock 7.Close socket [13:24:31]Sock 7.Thread stoped [13:24:35]OFD Sender: No OFD packet to send [13:24:36]int [13:24:36]Write to MH i2c: 01 00 00 A2 28 CA [13:24:36]*** FLAG_PRN_KEY set [13:24:36]Write i2c OK [13:24:36]MH_I2C_Read... [13:24:36]Read from MH i2c: 01 [13:24:36]MH_I2C_Read... [13:24:36]Read from MH i2c: 01 07 00 [13:24:36]MH_I2C_Read... [13:24:36]Read from MH i2c: 01 07 00 A2 28 00 08 00 00 00 FF 0F E7 [13:24:36]state=0 [13:24:36]Key pressed [13:24:36]Feed [13:24:36]Write to MH i2c: D8 00 00 A3 28 A2 [13:24:36]Write i2c OK [13:24:36]MH_I2C_Read... [13:24:36]Read from MH i2c: D8 [13:24:36]MH_I2C_Read... [13:24:36]Read from MH i2c: D8 01 00 [13:24:36]MH_I2C_Read... [13:24:36]Read from MH i2c: D8 01 00 A3 28 00 A3 [13:24:36]int [13:24:36]Write to MH i2c: 01 00 00 A4 28 CC [13:24:36]Write i2c OK [13:24:36]MH_I2C_Read... [13:24:36]Read from MH i2c: 01 [13:24:36]MH_I2C_Read... [13:24:36]Read from MH i2c: 01 07 00 [13:24:36]MH_I2C_Read... [13:24:36]Read from MH i2c: 01 07 00 A4 28 00 48 00 00 00 3C 00 57 [13:24:36]state=2 [13:24:36]Key pressed [13:24:36]int [13:24:36]Write to MH i2c: 01 00 00 A5 28 CD [13:24:36]*** FLAG_PRN_KEY reset [13:24:36]Write i2c OK [13:24:36]MH_I2C_Read... [13:24:36]Read from MH i2c: 01 [13:24:36]MH_I2C_Read... [13:24:36]Read from MH i2c: 01 07 00 [13:24:36]MH_I2C_Read... [13:24:36]Read from MH i2c: 01 07 00 A5 28 00 00 00 00 00 F8 0F DB [13:24:36]state=2 [13:24:36]Stop feed [13:24:36]int [13:24:36]Write to MH i2c: 01 00 00 A6 28 CE [13:24:36]*** FLAG_PRN_KEY set [13:24:36]Write i2c OK [13:24:36]MH_I2C_Read... [13:24:36]Read from MH i2c: 01 [13:24:36]MH_I2C_Read... [13:24:36]Read from MH i2c: 01 07 00 [13:24:36]MH_I2C_Read... [13:24:36]Read from MH i2c: 01 07 00 A6 28 00 08 00 00 00 FF 0F EB [13:24:36]state=0 [13:24:36]Key pressed [13:24:36]Feed [13:24:36]Write to MH i2c: D8 00 00 A7 28 A6 [13:24:36]Write i2c OK [13:24:36]MH_I2C_Read... [13:24:36]Read from MH i2c: D8 [13:24:36]MH_I2C_Read... [13:24:36]Read from MH i2c: D8 01 00 [13:24:36]MH_I2C_Read... [13:24:36]Read from MH i2c: D8 01 00 A7 28 00 A7 [13:24:36]int [13:24:36]Write to MH i2c: 01 00 00 A8 28 D0 [13:24:36]Write i2c OK [13:24:36]MH_I2C_Read... [13:24:36]Read from MH i2c: 01 [13:24:36]MH_I2C_Read... [13:24:36]Read from MH i2c: 01 07 00 [13:24:36]MH_I2C_Read... [13:24:36]Read from MH i2c: 01 07 00 A8 28 00 48 00 00 00 3C 00 5B [13:24:36]state=2 [13:24:36]Key pressed [13:24:36]int [13:24:36]Write to MH i2c: 01 00 00 A9 28 D1 [13:24:36]*** FLAG_PRN_KEY reset [13:24:36]Write i2c OK [13:24:36]MH_I2C_Read... [13:24:36]Read from MH i2c: 01 [13:24:36]MH_I2C_Read... [13:24:36]Read from MH i2c: 01 07 00 [13:24:36]MH_I2C_Read... [13:24:36]Read from MH i2c: 01 07 00 A9 28 00 00 00 00 00 F5 0F DC [13:24:36]state=2 [13:24:36]Stop feed [13:24:36]int [13:24:36]Write to MH i2c: 01 00 00 AA 28 D2 [13:24:36]*** FLAG_PRN_KEY set [13:24:36]Write i2c OK [13:24:36]MH_I2C_Read... [13:24:36]Read from MH i2c: 01 [13:24:36]MH_I2C_Read... [13:24:36]Read from MH i2c: 01 07 00 [13:24:36]MH_I2C_Read... [13:24:36]Read from MH i2c: 01 07 00 AA 28 00 08 00 00 00 FF 0F EF [13:24:36]state=0 [13:24:36]Key pressed [13:24:36]Feed [13:24:36]Write to MH i2c: D8 00 00 AB 28 AA [13:24:36]Write i2c OK [13:24:36]MH_I2C_Read... [13:24:36]Read from MH i2c: D8 [13:24:36]MH_I2C_Read... [13:24:36]Read from MH i2c: D8 01 00 [13:24:36]MH_I2C_Read... [13:24:36]Read from MH i2c: D8 01 00 AB 28 00 AB [13:24:36]int [13:24:36]Write to MH i2c: 01 00 00 AC 28 D4 [13:24:36]Write i2c OK [13:24:36]MH_I2C_Read... [13:24:36]Read from MH i2c: 01 [13:24:36]MH_I2C_Read... [13:24:36]Read from MH i2c: 01 07 00 [13:24:36]MH_I2C_Read... [13:24:36]Read from MH i2c: 01 07 00 AC 28 00 48 00 00 00 3C 00 5F [13:24:36]state=2 [13:24:36]Key pressed [13:24:36]int [13:24:36]Write to MH i2c: 01 00 00 AD 28 D5 [13:24:36]*** FLAG_PRN_KEY reset [13:24:36]Write i2c OK [13:24:36]MH_I2C_Read... [13:24:36]Read from MH i2c: 01 [13:24:36]MH_I2C_Read... [13:24:36]Read from MH i2c: 01 07 00 [13:24:36]MH_I2C_Read... [13:24:36]Read from MH i2c: 01 07 00 AD 28 00 00 00 00 00 F5 0F E0 [13:24:36]state=2 [13:24:36]Stop feed [13:24:37]int [13:24:37]Write to MH i2c: 01 00 00 AE 28 D6 [13:24:37]*** FLAG_PRN_KEY set [13:24:37]Write i2c OK [13:24:37]MH_I2C_Read... [13:24:37]Read from MH i2c: 01 [13:24:37]MH_I2C_Read... [13:24:37]Read from MH i2c: 01 07 00 [13:24:37]MH_I2C_Read... [13:24:37]Read from MH i2c: 01 07 00 AE 28 00 08 00 00 00 FF 0F F3 [13:24:37]state=0 [13:24:37]Key pressed [13:24:37]Feed [13:24:37]Write to MH i2c: D8 00 00 AF 28 AE [13:24:37]Write i2c OK [13:24:37]MH_I2C_Read... [13:24:37]Read from MH i2c: D8 [13:24:37]MH_I2C_Read... [13:24:37]Read from MH i2c: D8 01 00 [13:24:37]MH_I2C_Read... [13:24:37]Read from MH i2c: D8 01 00 AF 28 00 AF [13:24:37]int [13:24:37]Write to MH i2c: 01 00 00 B0 28 D8 [13:24:37]Write i2c OK [13:24:37]MH_I2C_Read... [13:24:37]Read from MH i2c: 01 [13:24:37]MH_I2C_Read... [13:24:37]Read from MH i2c: 01 07 00 [13:24:37]MH_I2C_Read... [13:24:37]Read from MH i2c: 01 07 00 B0 28 00 48 00 00 00 3C 00 63 [13:24:37]state=2 [13:24:37]Key pressed [13:24:37]int [13:24:37]Write to MH i2c: 01 00 00 B1 28 D9 [13:24:37]*** FLAG_PRN_KEY reset [13:24:37]Write i2c OK [13:24:37]MH_I2C_Read... [13:24:37]Read from MH i2c: 01 [13:24:37]MH_I2C_Read... [13:24:37]Read from MH i2c: 01 07 00 [13:24:37]MH_I2C_Read... [13:24:37]Read from MH i2c: 01 07 00 B1 28 00 00 00 00 00 F5 0F E4 [13:24:37]state=2 [13:24:37]Stop feed [13:24:37]int [13:24:37]Write to MH i2c: 01 00 00 B2 28 DA [13:24:37]*** FLAG_PRN_KEY set [13:24:37]Write i2c OK [13:24:37]MH_I2C_Read... [13:24:37]Read from MH i2c: 01 [13:24:37]MH_I2C_Read... [13:24:37]Read from MH i2c: 01 07 00 [13:24:37]MH_I2C_Read... [13:24:37]Read from MH i2c: 01 07 00 B2 28 00 08 00 00 00 FF 0F F7 [13:24:37]state=0 [13:24:37]Key pressed [13:24:37]Feed [13:24:37]Write to MH i2c: D8 00 00 B3 28 B2 [13:24:37]Write i2c OK [13:24:37]MH_I2C_Read... [13:24:37]Read from MH i2c: D8 [13:24:37]MH_I2C_Read... [13:24:37]Read from MH i2c: D8 01 00 [13:24:37]MH_I2C_Read... [13:24:37]Read from MH i2c: D8 01 00 B3 28 00 B3 [13:24:37]int [13:24:37]Write to MH i2c: 01 00 00 B4 28 DC [13:24:37]Write i2c OK [13:24:37]MH_I2C_Read... [13:24:37]Read from MH i2c: 01 [13:24:37]MH_I2C_Read... [13:24:37]Read from MH i2c: 01 07 00 [13:24:37]MH_I2C_Read... [13:24:37]Read from MH i2c: 01 07 00 B4 28 00 48 00 00 00 3C 00 67 [13:24:37]state=2 [13:24:37]Key pressed [13:24:37]int [13:24:37]Write to MH i2c: 01 00 00 B5 28 DD [13:24:37]*** FLAG_PRN_KEY reset [13:24:37]Write i2c OK [13:24:37]MH_I2C_Read... [13:24:37]Read from MH i2c: 01 [13:24:37]MH_I2C_Read... [13:24:37]Read from MH i2c: 01 07 00 [13:24:37]MH_I2C_Read... [13:24:37]Read from MH i2c: 01 07 00 B5 28 00 00 00 00 00 F5 0F E8 [13:24:37]state=2 [13:24:37]Stop feed [13:24:37]int [13:24:37]Write to MH i2c: 01 00 00 B6 28 DE [13:24:37]*** FLAG_PRN_KEY set [13:24:37]Write i2c OK [13:24:37]MH_I2C_Read... [13:24:37]Read from MH i2c: 01 [13:24:37]MH_I2C_Read... [13:24:37]Read from MH i2c: 01 07 00 [13:24:37]MH_I2C_Read... [13:24:37]Read from MH i2c: 01 07 00 B6 28 00 08 00 00 00 FF 0F FB [13:24:37]state=0 [13:24:37]Key pressed [13:24:37]Feed [13:24:37]Write to MH i2c: D8 00 00 B7 28 B6 [13:24:37]Write i2c OK [13:24:37]MH_I2C_Read... [13:24:37]Read from MH i2c: D8 [13:24:37]MH_I2C_Read... [13:24:37]Read from MH i2c: D8 01 00 [13:24:37]MH_I2C_Read... [13:24:37]Read from MH i2c: D8 01 00 B7 28 00 B7 [13:24:37]int [13:24:37]Write to MH i2c: 01 00 00 B8 28 E0 [13:24:37]Write i2c OK [13:24:37]MH_I2C_Read... [13:24:37]Read from MH i2c: 01 [13:24:37]MH_I2C_Read... [13:24:37]Read from MH i2c: 01 07 00 [13:24:37]MH_I2C_Read... [13:24:37]Read from MH i2c: 01 07 00 B8 28 00 48 00 00 00 3C 00 6B [13:24:37]state=2 [13:24:37]Key pressed [13:24:37]int [13:24:37]Write to MH i2c: 01 00 00 B9 28 E1 [13:24:37]*** FLAG_PRN_KEY reset [13:24:37]Write i2c OK [13:24:37]MH_I2C_Read... [13:24:37]Read from MH i2c: 01 [13:24:37]MH_I2C_Read... [13:24:37]Read from MH i2c: 01 07 00 [13:24:37]MH_I2C_Read... [13:24:37]Read from MH i2c: 01 07 00 B9 28 00 00 00 00 00 F6 0F ED [13:24:37]state=2 [13:24:37]Stop feed [13:24:40]OFD Sender: No OFD packet to send [13:24:45]OFD Sender: No OFD packet to send [13:24:50]OFD Sender: No OFD packet to send [13:24:55]OFD Sender: No OFD packet to send [13:25:00]OFD Sender: No OFD packet to send [13:25:05]OFD Sender: No OFD packet to send [13:25:10]OFD Sender: No OFD packet to send [13:25:15]OFD Sender: No OFD packet to send [13:25:20]OFD Sender: No OFD packet to send [13:25:25]OFD Sender: No OFD packet to send [13:25:30]OFD Sender: No OFD packet to send [13:25:35]OFD Sender: No OFD packet to send [13:25:40]OFD Sender: No OFD packet to send [13:25:45]OFD Sender: No OFD packet to send [13:25:50]OFD Sender: No OFD packet to send [13:25:55]OFD Sender: No OFD packet to send [13:26:00]OFD Sender: No OFD packet to send [13:26:05]OFD Sender: No OFD packet to send [13:26:09]accept exits with 9 [13:26:09]New connection [13:26:09]New thread 3067252068 created [13:26:09]Thread 3067395428 joined [13:26:09]Waiting for new connection... [13:26:09] Sock 9.Parse request [13:26:09]Sock 9.Check first char [13:26:09]Sock 9.First char is OK [13:26:09]request: POST /json_proto HTTP/1.0 [13:26:09]Method: POST [13:26:09]URL: /json_proto [13:26:09]Method is POST - this is cgi request [13:26:09]url: /json_proto [13:26:09]query_string will be loaded in cgi processing [13:26:09]execute_cgi json_proto POST (null) [13:26:09]execute_cgi path=json_proto method=POST [13:26:09]POST find Content-Length [13:26:09]Host: 172.17.48.197:8080 [13:26:09]Content-Length: 683 [13:26:09]Content-Type: application/json [13:26:09] [13:26:09]POST finish read [13:26:09]Found Content-Length = 683 [13:26:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106177", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "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:26:09]execute_script... [13:26: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)1106177", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "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:26:09]POST & json_proto [13:26:09]process_json_proto [13:26:09]json parsed OK: [13:26:09]protocol is kg_v1.0 [13:26:09]action value=close_receipt [13:26:09]process_action close_receipt [13:26:09]cmd_close_receipt [13:26:09]MH_GetDate [13:26:09]Write to MH i2c: F0 00 00 BA 28 D1 [13:26:09]Write i2c OK [13:26:09]MH_I2C_Read... [13:26:09]Read from MH i2c: F0 [13:26:09]MH_I2C_Read... [13:26:09]Read from MH i2c: F0 09 00 [13:26:09]MH_I2C_Read... [13:26:09]Read from MH i2c: F0 09 00 BA 28 00 74 7A E4 65 6C AF E3 65 74 [13:26:09]GetLastDocTimeStamp 1709471719 [13:26:09]current date 1709472372 [13:26:09]FM_GetShiftState [13:26:09]SAM_PROTO_GetShiftState [13:26:09]wFMCommunicate request_size=4 [13:26:09]MH_SAM_APDU [13:26:09]CAPDU: 80 13 01 00 [13:26:09]Write to MH i2c: E2 08 00 BB 28 80 13 01 00 00 00 00 00 60 [13:26:09]Write i2c OK [13:26:09]MH_I2C_Read... [13:26:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:09]Read from MH i2c: E2 [13:26:09]MH_I2C_Read... [13:26:09]Read from MH i2c: E2 0E 00 [13:26:09]MH_I2C_Read... [13:26:09]Read from MH i2c: E2 0E 00 BB 28 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 22 [13:26:09]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [13:26:09]wFMCommunicate OK [13:26:09]SAM_PROTO_GetShiftState done [13:26:09]FM_GetShiftState done [13:26:09]opened in 1709425579 [13:26:09]opened+sec_in_day 1709511979 [13:26:09]quantity*price = 100030 [13:26:09]sum+1 = 100031 [13:26:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 104 03.03.2024 13:26 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123247 ФПД: 231401570903934 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T132612&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123247&fm=231401570903934&tin=02508201610067®Number=0000000000090573&sum=100000 [13:26:10]StoreToDocumentArchive [13:26:10]shift 323 fd 123247 [13:26:10]save to /storage/0323/doc_00123247 [13:26:10]save last doc name /storage/0323/doc_00123247 to /storage/kkm_last_doc_name [13:26:10]save OK [13:26:10]Clear old archive folders... [13:26:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:26:10]tlvbuf is 00E33BC0 [13:26:10]SAM_PROTO_ClearQueue [13:26:10]wFMCommunicate request_size=4 [13:26:10]MH_SAM_APDU [13:26:10]CAPDU: 80 09 00 00 [13:26:10]Write to MH i2c: E2 08 00 C8 28 80 09 00 00 00 00 00 00 62 [13:26:10]Write i2c OK [13:26:10]MH_I2C_Read... [13:26:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:26:10]Read from MH i2c: E2 [13:26:10]MH_I2C_Read... [13:26:10]Read from MH i2c: E2 03 00 [13:26:10]MH_I2C_Read... [13:26:10]Read from MH i2c: E2 03 00 C8 28 00 90 00 64 [13:26:10]RAPDU: 90 00 [13:26:10]wFMCommunicate OK [13:26:10]SAM_PROTO_ClearQueue done [13:26:10]KKMCreateOFDPacket [13:26:10]OFDProtocolAddRootSTLVToBuf [13:26:10]FM_MakeSignedData [13:26:10]FM_MakeSignedData [13:26:10]SAM_PROTO_SignData [13:26:10]wFMCommunicate request_size=4 [13:26:10]MH_SAM_APDU [13:26:10]CAPDU: 80 0D 01 02 [13:26:10]Write to MH i2c: E2 08 00 C9 28 80 0D 01 02 00 00 00 00 6A [13:26:10]Write i2c OK [13:26:10]MH_I2C_Read... [13:26:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:26:10]Read from MH i2c: E2 [13:26:10]MH_I2C_Read... [13:26:10]Read from MH i2c: E2 03 00 [13:26:10]MH_I2C_Read... [13:26:10]Read from MH i2c: E2 03 00 C9 28 00 90 00 65 [13:26:10]RAPDU: 90 00 [13:26:10]wFMCommunicate OK [13:26:10]wFMCommunicate request_size=255 [13:26:10]MH_SAM_APDU [13:26: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 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 74 7A E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 6F E1 01 00 35 04 06 00 D2 [13:26:10]Write to MH i2c: E2 02 01 CA 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 74 7A E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 6F E1 01 00 35 04 06 00 D2 00 00 DC [13:26:10]Write i2c OK [13:26:10]MH_I2C_Read... [13:26:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:10]Read from MH i2c: E2 [13:26:10]MH_I2C_Read... [13:26:10]Read from MH i2c: E2 03 00 [13:26:10]MH_I2C_Read... [13:26:10]Read from MH i2c: E2 03 00 CA 28 00 90 00 66 [13:26:10]RAPDU: 90 00 [13:26:10]wFMCommunicate OK [13:26:10]wFMCommunicate request_size=10 [13:26:10]MH_SAM_APDU [13:26:10]CAPDU: 80 0D 02 02 05 75 60 6F 27 7E [13:26:10]Write to MH i2c: E2 0D 00 CB 28 80 0D 02 02 05 00 75 60 6F 27 7E 00 00 60 [13:26:10]Write i2c OK [13:26:10]MH_I2C_Read... [13:26:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:10]Read from MH i2c: E2 [13:26:10]MH_I2C_Read... [13:26:10]Read from MH i2c: E2 03 00 [13:26:10]MH_I2C_Read... [13:26:10]Read from MH i2c: E2 03 00 CB 28 00 90 00 67 [13:26:10]RAPDU: 90 00 [13:26:10]wFMCommunicate OK [13:26:10]wFMCommunicate request_size=4 [13:26:10]MH_SAM_APDU [13:26:10]CAPDU: 80 0D 03 02 [13:26:10]Write to MH i2c: E2 08 00 CC 28 80 0D 03 02 00 00 00 00 6F [13:26:10]Write i2c OK [13:26:10]MH_I2C_Read... [13:26:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:26:10]Read from MH i2c: E2 [13:26:10]MH_I2C_Read... [13:26:10]Read from MH i2c: E2 0B 00 [13:26:10]MH_I2C_Read... [13:26:10]Read from MH i2c: E2 0B 00 CC 28 00 9B 8F F7 23 ED 88 0E 0D 90 00 44 [13:26:10]RAPDU: 9B 8F F7 23 ED 88 0E 0D 90 00 [13:26:10]wFMCommunicate OK [13:26:10]SAM_PROTO_SignData done [13:26:10]FM_MakeSignedData done [13:26:10]CreateOFDProtocolMessage [13:26:10]wFMCommunicate request_size=4 [13:26:10]MH_SAM_APDU [13:26:10]CAPDU: 80 11 00 00 [13:26:10]Write to MH i2c: E2 08 00 CD 28 80 11 00 00 00 00 00 00 6F [13:26:10]Write i2c OK [13:26:10]MH_I2C_Read... [13:26:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:10]Read from MH i2c: E2 [13:26:10]MH_I2C_Read... [13:26:10]Read from MH i2c: E2 17 00 [13:26:10]MH_I2C_Read... [13:26:10]Read from MH i2c: E2 17 00 CD 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 CD [13:26:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [13:26:10]wFMCommunicate OK [13:26:10]CreateOFDProtocolMessage done [13:26:10]OFDSenderStorePacket 123247 [13:26:10]StoreOFDPacket docnum=123247 [13:26:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 2F A3 07 01 32 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 74 7A E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 6F E1 01 00 35 04 06 00 D2 75 60 6F 27 7E 9B 8F F7 23 ED 88 0E 0D [13:26:10]CheckFolder [13:26:10]dirname=/storage/ofd_packets [13:26:10]CheckFolder done [13:26:10]ProducePacketName [13:26:10]name=ofd_packets/00123247 [13:26:10]NVStorageSaveData ofd_packets/00123247 [13:26:10]File name is /storage/ofd_packets/00123247 [13:26:10]Write 301 bytes [13:26:10]NVStorageSaveData done [13:26:10]OFDSenderStorePacket done [13:26:10]KKMCreateOFDPacket done [13:26:10]NVStorageSaveData kkm_last_timestamp [13:26:10]File name is /storage/kkm_last_timestamp [13:26:10]Write 4 bytes [13:26:10]NVStorageSaveData done [13:26:10]ExternCall_PrintAddStr [13:26:10]wPrintStart [13:26:10]Write to MH i2c: 01 00 00 CE 28 F6 [13:26:10]Write i2c OK [13:26:10]MH_I2C_Read... [13:26:10]Read from MH i2c: 01 [13:26:10]MH_I2C_Read... [13:26:10]Read from MH i2c: 01 07 00 [13:26:10]MH_I2C_Read... [13:26:10]Read from MH i2c: 01 07 00 CE 28 00 00 00 00 00 FF 0F 0B [13:26:10]RasterBufferAndPrint [13:26:10]line Счет N : (1)1106177 [13:26:10]line ИНН: 02508201610067 [13:26:10]line Контрольно-Кассовый Чек [13:26:10]line ПРОДАЖА [13:26:10]line ТРК (МРК, ГНК) : 11 [13:26:10]line Товар: 2710124130 [13:26:10]line Аи-92-К-5 [13:26:10]line 16.160 * 61.90 [13:26:10]line = 1000.30 [13:26:10]line НДС 12% НСП 1% [13:26:10]line > о реализуемом товаре [13:26:10]line ОКРУГЛЕНИЕ: -0.30 [13:26:10]line ИТОГО: 1000.00 [13:26:10]line Внесено: 1000.00 [13:26:10]line СДАЧА: 0.00 [13:26:10]line НСП 1% : 8.85 [13:26:10]line НДС 12% : 106.23 [13:26:10]line Наличными: 1000.00 [13:26:10]line Безнал.: 0.00 [13:26:10]line Место: АЗС № 25 "Партнер Нефть" [13:26:10]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [13:26:10]line СНО: Общий режим [13:26:10]line Чек 104 03.03.2024 13:26 [13:26:10]line Смена: 323 ФФД: 1.0 [13:26:10]line ЗНМ: 0300000019 [13:26:10]line РНМ: 0000000000090573 [13:26:10]line Версия ККМ: 001 [13:26:10]line ФМ: 0000000000874798 [13:26:10]line ФД: 123247 [13:26:11]line ФПД: 231401570903934 [13:26:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T132612&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123247&fm=231401570903934&tin=02508201610067®Number=0000000000090573&sum=100000 [13:26:11]OFD Sender: Processing packet 123247 [packets to send 112, broken 111] [13:26:11]ProducePacketName [13:26:11]name=ofd_packets/00123247 [13:26:11]OFD Sender: To server: pG, [13:26:11]CommunicateWithHost lk.salyk.kg:30040 [13:26:11]ConnectInit lk.salyk.kg [13:26:11]written 0, free lines is 4095 [13:26:11]Connected sock=10 [13:26: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 37 39 38 0F 01 00 00 2F A3 07 01 32 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 74 7A E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 6F E1 01 00 35 04 06 00 D2 75 60 6F 27 7E 9B 8F F7 23 ED 88 0E 0D [13:26:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 A5 C7 47 00 FF 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 37 39 38 10 04 04 00 6F E1 01 00 F4 03 04 00 A0 26 E4 65 B6 04 01 00 00 01 9C 80 39 87 88 05 74 [13:26:11]CommunicateWithHost err = 0 [13:26:11]CheckOFDResponse [13:26:11]1017 (14) - 77093643461234 [13:26:11]1041 (16) - 0000000000874798 [13:26:11]1040 (4) - 123247 [13:26:11]1012 (4) - 03.03.2024 07:28 [13:26:11]1206 (1) - 0 [13:26:11]OFD Sender: Remove packet 123247 [13:26:11]ProducePacketName [13:26:11]name=ofd_packets/00123247 [13:26:11]NVStorageDeleteData [13:26:11]Write to MH i2c: 01 00 00 F9 28 21 [13:26:11]Write i2c OK [13:26:11]MH_I2C_Read... [13:26:11]Read from MH i2c: 01 [13:26:11]MH_I2C_Read... [13:26:11]Read from MH i2c: 01 07 00 [13:26:11]MH_I2C_Read... [13:26:11]Read from MH i2c: 01 07 00 F9 28 00 00 00 00 00 F8 0C 2C [13:26:11]RasterBufferAndPrint [13:26:11]line [13:26:11]line [13:26:11]line [13:26:11]line [13:26:11]line [13:26:11]written 0, free lines is 3327 [13:26:11]MH_Cut [13:26:11]Write to MH i2c: D1 01 00 00 29 01 FB [13:26:11]Write i2c OK [13:26:11]MH_I2C_Read... [13:26:11]Read from MH i2c: D1 [13:26:11]MH_I2C_Read... [13:26:11]Read from MH i2c: D1 01 00 [13:26:11]MH_I2C_Read... [13:26:11]Read from MH i2c: D1 01 00 00 29 00 FA [13:26:11]Write to MH i2c: 01 00 00 01 29 2A [13:26:11]Write i2c OK [13:26:11]MH_I2C_Read... [13:26:11]OFD Sender: No OFD packet to send [13:26:12]*** Cut start [13:26:12]*** Purtial cut [13:26:12]*** Stage 1: CUTSNS_PIN = 1 [13:26:14]Read from MH i2c: 01 [13:26:14]MH_I2C_Read... [13:26:14]*** Stop cut motor [13:26:14]*** Cut end [13:26:14]Read from MH i2c: 01 07 00 [13:26:14]MH_I2C_Read... [13:26:14]Read from MH i2c: 01 07 00 01 29 00 00 00 00 00 FF 0F 3F [13:26:14]process_action close_receipt done [13:26:14]requested_data is exist [13:26:14]produce_requested_data [13:26:14]requested_item fm.sn is exist - process it [13:26:14]wFMCommunicate request_size=4 [13:26:14]MH_SAM_APDU [13:26:14]CAPDU: 80 11 00 00 [13:26:14]Write to MH i2c: E2 08 00 02 29 80 11 00 00 00 00 00 00 A5 [13:26:14]Write i2c OK [13:26:14]MH_I2C_Read... [13:26:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:14]Read from MH i2c: E2 [13:26:14]MH_I2C_Read... [13:26:14]Read from MH i2c: E2 17 00 [13:26:14]MH_I2C_Read... [13:26:14]Read from MH i2c: E2 17 00 02 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 03 [13:26:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [13:26:14]wFMCommunicate OK [13:26:14]requested_item fd.num is exist - process it [13:26:14]SAM_PROTO_GetFieldsCounters [13:26:14]wFMCommunicate request_size=4 [13:26:14]MH_SAM_APDU [13:26:14]CAPDU: 80 13 00 00 [13:26:14]Write to MH i2c: E2 08 00 03 29 80 13 00 00 00 00 00 00 A8 [13:26:14]Write i2c OK [13:26:14]MH_I2C_Read... [13:26:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:26:14]Read from MH i2c: E2 [13:26:14]MH_I2C_Read... [13:26:14]Read from MH i2c: E2 62 00 [13:26:14]MH_I2C_Read... [13:26:14]Read from MH i2c: E2 62 00 03 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 6F E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 A0 [13:26: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 6F E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:26:14]wFMCommunicate OK [13:26:14]SAM_PROTO_GetFieldsCounters done [13:26:14]requested_item shift.num is exist - process it [13:26:14]requested_item shift.opened is exist - process it [13:26:14]req_shift_opened [13:26:14]FM_GetShiftState [13:26:14]SAM_PROTO_GetShiftState [13:26:14]wFMCommunicate request_size=4 [13:26:14]MH_SAM_APDU [13:26:14]CAPDU: 80 13 01 00 [13:26:14]Write to MH i2c: E2 08 00 04 29 80 13 01 00 00 00 00 00 AA [13:26:14]Write i2c OK [13:26:14]MH_I2C_Read... [13:26:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:14]Read from MH i2c: E2 [13:26:14]MH_I2C_Read... [13:26:14]Read from MH i2c: E2 0E 00 [13:26:14]MH_I2C_Read... [13:26:14]Read from MH i2c: E2 0E 00 04 29 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 6C [13:26:14]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [13:26:14]wFMCommunicate OK [13:26:14]SAM_PROTO_GetShiftState done [13:26:14]FM_GetShiftState done [13:26:14]req_shift_opened done [13:26:14]requested_item shift.open_date is exist - process it [13:26:14]req_shift_open_date [13:26:14]req_shift_open_date done [13:26:14]produce_requested_data done [13:26:14]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123247,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [13:26:14]process_action_free close_receipt [13:26:14]json_value_free [13:26:14]json_value_free done [13:26:14]process_json_proto returns [13:26:14]Send response to host [13:26:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123247,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [13:26:14]free response buf [13:26:14]execute_script done [13:26:14]execute_script returns [13:26:14]free content buf [13:26:14]Sock 9.Close socket [13:26:14]Sock 9.Thread stoped [13:26:16]OFD Sender: No OFD packet to send [13:26:21]OFD Sender: No OFD packet to send [13:26:26]OFD Sender: No OFD packet to send [13:26:31]OFD Sender: No OFD packet to send [13:26:36]OFD Sender: No OFD packet to send [13:26:41]OFD Sender: No OFD packet to send [13:26:46]OFD Sender: No OFD packet to send [13:26:51]OFD Sender: No OFD packet to send [13:26:56]OFD Sender: No OFD packet to send [13:27:01]OFD Sender: No OFD packet to send [13:27:06]OFD Sender: No OFD packet to send [13:27:11]OFD Sender: No OFD packet to send [13:27:16]OFD Sender: No OFD packet to send [13:27:21]OFD Sender: No OFD packet to send [13:27:26]OFD Sender: No OFD packet to send [13:27:31]OFD Sender: No OFD packet to send [13:27:36]OFD Sender: No OFD packet to send [13:27:41]OFD Sender: No OFD packet to send [13:27:46]OFD Sender: No OFD packet to send [13:27:51]OFD Sender: No OFD packet to send [13:27:56]OFD Sender: No OFD packet to send [13:28:01]OFD Sender: No OFD packet to send [13:28:06]OFD Sender: No OFD packet to send [13:28:11]OFD Sender: No OFD packet to send [13:28:16]OFD Sender: No OFD packet to send [13:28: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:25]accept exits with 7 [13:30:25]New connection [13:30:25]New thread 3067395428 created [13:30:25]Thread 3067252068 joined [13:30:25]Waiting for new connection... [13:30:25] Sock 7.Parse request [13:30:25]Sock 7.Check first char [13:30:25]Sock 7.First char is OK [13:30:25]request: POST /json_proto HTTP/1.0 [13:30:25]Method: POST [13:30:25]URL: /json_proto [13:30:25]Method is POST - this is cgi request [13:30:25]url: /json_proto [13:30:25]query_string will be loaded in cgi processing [13:30:25]execute_cgi json_proto POST (null) [13:30:25]execute_cgi path=json_proto method=POST [13:30:25]POST find Content-Length [13:30:25]Host: 172.17.48.197:8080 [13:30:25]Content-Length: 215 [13:30:25]Content-Type: application/json [13:30:25] [13:30:25]POST finish read [13:30:25]Found Content-Length = 215 [13:30:25]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" ] } } [13:30:25]execute_script... [13:30:25]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" ] } } [13:30:25]POST & json_proto [13:30:25]process_json_proto [13:30:25]json parsed OK: [13:30:25]protocol is kg_v1.0 [13:30:25]action value=get_value [13:30:25]process_action get_value [13:30:25]cmd_get_value [13:30:25]process_action get_value done [13:30:25]requested_data is exist [13:30:25]produce_requested_data [13:30:25]requested_item kkm.sn is exist - process it [13:30:25]requested_item kkm.ver is exist - process it [13:30:25]requested_item fm.sn is exist - process it [13:30:25]wFMCommunicate request_size=4 [13:30:25]MH_SAM_APDU [13:30:25]CAPDU: 80 11 00 00 [13:30:25]Write to MH i2c: E2 08 00 05 29 80 11 00 00 00 00 00 00 A8 [13:30:25]Write i2c OK [13:30:25]MH_I2C_Read... [13:30:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:25]Read from MH i2c: E2 [13:30:25]MH_I2C_Read... [13:30:25]Read from MH i2c: E2 17 00 [13:30:25]MH_I2C_Read... [13:30:25]Read from MH i2c: E2 17 00 05 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 06 [13:30:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [13:30:25]wFMCommunicate OK [13:30:25]requested_item fd.num is exist - process it [13:30:25]SAM_PROTO_GetFieldsCounters [13:30:25]wFMCommunicate request_size=4 [13:30:25]MH_SAM_APDU [13:30:25]CAPDU: 80 13 00 00 [13:30:25]Write to MH i2c: E2 08 00 06 29 80 13 00 00 00 00 00 00 AB [13:30:25]Write i2c OK [13:30:25]MH_I2C_Read... [13:30:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:30:25]Read from MH i2c: E2 [13:30:25]MH_I2C_Read... [13:30:25]Read from MH i2c: E2 62 00 [13:30:25]MH_I2C_Read... [13:30:25]Read from MH i2c: E2 62 00 06 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 6F E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 A3 [13:30: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 6F E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:30:25]wFMCommunicate OK [13:30:25]SAM_PROTO_GetFieldsCounters done [13:30:25]requested_item shift.num is exist - process it [13:30:25]requested_item shift.opened is exist - process it [13:30:25]req_shift_opened [13:30:25]FM_GetShiftState [13:30:25]SAM_PROTO_GetShiftState [13:30:25]wFMCommunicate request_size=4 [13:30:25]MH_SAM_APDU [13:30:25]CAPDU: 80 13 01 00 [13:30:25]Write to MH i2c: E2 08 00 07 29 80 13 01 00 00 00 00 00 AD [13:30:25]Write i2c OK [13:30:25]MH_I2C_Read... [13:30:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:25]Read from MH i2c: E2 [13:30:25]MH_I2C_Read... [13:30:25]Read from MH i2c: E2 0E 00 [13:30:25]MH_I2C_Read... [13:30:25]Read from MH i2c: E2 0E 00 07 29 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 6F [13:30:25]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [13:30:25]wFMCommunicate OK [13:30:25]SAM_PROTO_GetShiftState done [13:30:25]FM_GetShiftState done [13:30:25]req_shift_opened done [13:30:25]requested_item shift.open_date is exist - process it [13:30:25]req_shift_open_date [13:30:25]req_shift_open_date done [13:30:25]produce_requested_data done [13:30:25]produce_requested_data return {"kkm.sn":"0300000019","kkm.ver":"001","fm.sn":"0000000000874798","fd.num":123247,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [13:30:25]process_action_free get_value [13:30:25]json_value_free [13:30:25]json_value_free done [13:30:25]process_json_proto returns [13:30:25]Send response to host [13:30:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000019","kkm.ver":"001","fm.sn":"0000000000874798","fd.num":123247,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [13:30:25]free response buf [13:30:25]execute_script done [13:30:25]execute_script returns [13:30:25]free content buf [13:30:25]Sock 7.Close socket [13:30:25]Sock 7.Thread stoped [13:30:26]accept exits with 9 [13:30:26]New connection [13:30:26]New thread 3067252068 created [13:30:26]Thread 3067395428 joined [13:30:26]Waiting for new connection... [13:30:26] Sock 9.Parse request [13:30:26]Sock 9.Check first char [13:30:26]Sock 9.First char is OK [13:30:26]request: POST /json_proto HTTP/1.0 [13:30:26]Method: POST [13:30:26]URL: /json_proto [13:30:26]Method is POST - this is cgi request [13:30:26]url: /json_proto [13:30:26]query_string will be loaded in cgi processing [13:30:26]execute_cgi json_proto POST (null) [13:30:26]execute_cgi path=json_proto method=POST [13:30:26]POST find Content-Length [13:30:26]Host: 172.17.48.197:8080 [13:30:26]Content-Length: 331 [13:30:26]Content-Type: application/json [13:30:26] [13:30:26]POST finish read [13:30:26]Found Content-Length = 331 [13:30:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [13:30:26]execute_script... [13:30:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [13:30:26]POST & json_proto [13:30:26]process_json_proto [13:30:26]json parsed OK: [13:30:26]protocol is kg_v1.0 [13:30:26]action value=get_value [13:30:26]process_action get_value [13:30:26]cmd_get_value [13:30:26]process_action get_value done [13:30:26]requested_data is exist [13:30:26]produce_requested_data [13:30:26]requested_item fm.sale.total is exist - process it [13:30:26]SAM_PROTO_GetFMData [13:30:26]wFMCommunicate request_size=4 [13:30:26]MH_SAM_APDU [13:30:26]CAPDU: 80 13 03 00 [13:30:26]Write to MH i2c: E2 08 00 08 29 80 13 03 00 00 00 00 00 B0 [13:30:26]Write i2c OK [13:30:26]MH_I2C_Read... [13:30:26]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [13:30:26]Read from MH i2c: E2 [13:30:26]MH_I2C_Read... [13:30:26]Read from MH i2c: E2 FD 00 [13:30:26]MH_I2C_Read... [13:30:26]Read from MH i2c: E2 FD 00 08 29 00 C7 04 85 04 C3 04 6E 04 04 00 E9 DE 01 00 69 04 A3 00 6F 04 04 00 D3 C9 01 00 B1 04 05 00 8C B5 78 6E 02 70 04 05 00 45 AE 21 AB 01 72 04 04 00 47 07 57 C3 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 DC C8 1D 42 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 28 54 82 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 16 15 00 00 B1 04 04 00 1D 46 63 34 70 04 04 00 FD F7 62 34 72 04 02 00 20 4E 00 04 7C 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 32 6A 90 05 EF 90 00 DA [13:30:26]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 E9 DE 01 00 69 04 A3 00 6F 04 04 00 D3 C9 01 00 B1 04 05 00 8C B5 78 6E 02 70 04 05 00 45 AE 21 AB 01 72 04 04 00 47 07 57 C3 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 DC C8 1D 42 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 28 54 82 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 16 15 00 00 B1 04 04 00 1D 46 63 34 70 04 04 00 FD F7 62 34 72 04 02 00 20 4E 00 04 7C 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 32 6A 90 05 EF 90 00 [13:30:26]wFMCommunicate OK [13:30:26]wFMCommunicate request_size=4 [13:30:26]MH_SAM_APDU [13:30:26]CAPDU: 80 17 00 00 [13:30:26]Write to MH i2c: E2 08 00 09 29 80 17 00 00 00 00 00 00 B2 [13:30:26]Write i2c OK [13:30:26]MH_I2C_Read... [13:30:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:30:26]Read from MH i2c: E2 [13:30:26]MH_I2C_Read... [13:30:26]Read from MH i2c: E2 FD 00 [13:30:26]MH_I2C_Read... [13:30:26]Read from MH i2c: E2 FD 00 09 29 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 D4 B1 76 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 BA [13:30:26]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 D4 B1 76 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [13:30:26]wFMCommunicate OK [13:30:26]wFMCommunicate request_size=4 [13:30:26]MH_SAM_APDU [13:30:26]CAPDU: 80 17 00 00 [13:30:26]Write to MH i2c: E2 08 00 0A 29 80 17 00 00 00 00 00 00 B3 [13:30:26]Write i2c OK [13:30:26]MH_I2C_Read... [13:30:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:30:27]Read from MH i2c: E2 [13:30:27]MH_I2C_Read... [13:30:27]Read from MH i2c: E2 FD 00 [13:30:27]MH_I2C_Read... [13:30:27]OFD Sender: No OFD packet to send [13:30:27]Read from MH i2c: E2 FD 00 0A 29 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 8B [13:30:27]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 [13:30:27]wFMCommunicate OK [13:30:27]wFMCommunicate request_size=4 [13:30:27]MH_SAM_APDU [13:30:27]CAPDU: 80 17 00 00 [13:30:27]Write to MH i2c: E2 08 00 0B 29 80 17 00 00 00 00 00 00 B4 [13:30:27]Write i2c OK [13:30:27]MH_I2C_Read... [13:30:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:30:27]Read from MH i2c: E2 [13:30:27]MH_I2C_Read... [13:30:27]Read from MH i2c: E2 FD 00 [13:30:27]MH_I2C_Read... [13:30:27]Read from MH i2c: E2 FD 00 0B 29 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2F [13:30:27]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 [13:30:27]wFMCommunicate OK [13:30:27]wFMCommunicate request_size=4 [13:30:27]MH_SAM_APDU [13:30:27]CAPDU: 80 17 00 00 [13:30:27]Write to MH i2c: E2 08 00 0C 29 80 17 00 00 00 00 00 00 B5 [13:30:27]Write i2c OK [13:30:27]MH_I2C_Read... [13:30:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [13:30:27]Read from MH i2c: E2 [13:30:27]MH_I2C_Read... [13:30:27]Read from MH i2c: E2 E4 00 [13:30:27]MH_I2C_Read... [13:30:27]Read from MH i2c: E2 E4 00 0C 29 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 95 [13:30:27]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 [13:30:27]wFMCommunicate OK [13:30:27]SAM_PROTO_GetFMData done [13:30:27]requested_item fm.sale_refund.total is exist - process it [13:30:27]requested_item fm.buy.total is exist - process it [13:30:27]requested_item shift.sale.total is exist - process it [13:30:27]SAM_PROTO_GetShiftData [13:30:27]wFMCommunicate request_size=4 [13:30:27]MH_SAM_APDU [13:30:27]CAPDU: 80 13 02 00 [13:30:27]Write to MH i2c: E2 08 00 0D 29 80 13 02 00 00 00 00 00 B4 [13:30:27]Write i2c OK [13:30:27]MH_I2C_Read... [13:30:28]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [13:30:28]Read from MH i2c: E2 [13:30:28]MH_I2C_Read... [13:30:28]Read from MH i2c: E2 FD 00 [13:30:28]MH_I2C_Read... [13:30:28]Read from MH i2c: E2 FD 00 0D 29 00 BA 04 AA 04 B6 04 6E 04 04 00 68 00 00 00 69 04 9C 00 6F 04 04 00 64 00 00 00 B1 04 03 00 31 F5 95 70 04 03 00 8C CE 54 72 04 03 00 A5 26 41 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 92 ED 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 CA 53 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 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 6C AD 0E 70 04 03 00 6C AD 0E 72 04 00 00 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 0D 8F 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 9C [13:30:28]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 68 00 00 00 69 04 9C 00 6F 04 04 00 64 00 00 00 B1 04 03 00 31 F5 95 70 04 03 00 8C CE 54 72 04 03 00 A5 26 41 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 92 ED 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 CA 53 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 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 6C AD 0E 70 04 03 00 6C AD 0E 72 04 00 00 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 0D 8F 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [13:30:28]wFMCommunicate OK [13:30:28]wFMCommunicate request_size=4 [13:30:28]MH_SAM_APDU [13:30:28]CAPDU: 80 17 00 00 [13:30:28]Write to MH i2c: E2 08 00 0E 29 80 17 00 00 00 00 00 00 B7 [13:30:28]Write i2c OK [13:30:28]MH_I2C_Read... [13:30:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:30:28]Read from MH i2c: E2 [13:30:28]MH_I2C_Read... [13:30:28]Read from MH i2c: E2 FD 00 [13:30:28]MH_I2C_Read... [13:30:28]Read from MH i2c: E2 FD 00 0E 29 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 41 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C3 [13:30:28]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 41 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [13:30:28]wFMCommunicate OK [13:30:28]wFMCommunicate request_size=4 [13:30:28]MH_SAM_APDU [13:30:28]CAPDU: 80 17 00 00 [13:30:28]Write to MH i2c: E2 08 00 0F 29 80 17 00 00 00 00 00 00 B8 [13:30:28]Write i2c OK [13:30:28]MH_I2C_Read... [13:30:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:30:28]Read from MH i2c: E2 [13:30:28]MH_I2C_Read... [13:30:28]Read from MH i2c: E2 FD 00 [13:30:28]MH_I2C_Read... [13:30:28]Read from MH i2c: E2 FD 00 0F 29 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E4 [13:30:28]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 [13:30:28]wFMCommunicate OK [13:30:28]wFMCommunicate request_size=4 [13:30:28]MH_SAM_APDU [13:30:28]CAPDU: 80 17 00 00 [13:30:28]Write to MH i2c: E2 08 00 10 29 80 17 00 00 00 00 00 00 B9 [13:30:28]Write i2c OK [13:30:28]MH_I2C_Read... [13:30:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:30:29]Read from MH i2c: E2 [13:30:29]MH_I2C_Read... [13:30:29]Read from MH i2c: E2 FD 00 [13:30:29]MH_I2C_Read... [13:30:29]Read from MH i2c: E2 FD 00 10 29 00 00 EF 03 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 90 00 31 [13:30:29]RAPDU: 00 EF 03 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 90 00 [13:30:29]wFMCommunicate OK [13:30:29]wFMCommunicate request_size=4 [13:30:29]MH_SAM_APDU [13:30:29]CAPDU: 80 17 00 00 [13:30:29]Write to MH i2c: E2 08 00 11 29 80 17 00 00 00 00 00 00 BA [13:30:29]Write i2c OK [13:30:29]MH_I2C_Read... [13:30:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [13:30:29]Read from MH i2c: E2 [13:30:29]MH_I2C_Read... [13:30:29]Read from MH i2c: E2 D7 00 [13:30:29]MH_I2C_Read... [13:30:29]Read from MH i2c: E2 D7 00 11 29 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9D [13:30:29]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [13:30:29]wFMCommunicate OK [13:30:29]SAM_PROTO_GetShiftData done [13:30:29]requested_item shift.sale.total_cash is exist - process it [13:30:29]requested_item shift.sale_refund.total is exist - process it [13:30:29]requested_item shift.sale_refund.total_cash is exist - process it [13:30:29]requested_item shift.buy.total is exist - process it [13:30:29]requested_item shift.buy.total_cash is exist - process it [13:30:29]produce_requested_data done [13:30:29]produce_requested_data return {"fm.sale.total":104433391.48,"fm.sale_refund.total":8789212.45,"fm.buy.total":0.00,"shift.sale.total":98276.33,"shift.sale.total_cash":55579.00,"shift.sale_refund.total":9619.00,"shift.sale_refund.total_cash":9619.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [13:30:29]process_action_free get_value [13:30:29]json_value_free [13:30:29]json_value_free done [13:30:29]process_json_proto returns [13:30:29]Send response to host [13:30:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":104433391.48,"fm.sale_refund.total":8789212.45,"fm.buy.total":0.00,"shift.sale.total":98276.33,"shift.sale.total_cash":55579.00,"shift.sale_refund.total":9619.00,"shift.sale_refund.total_cash":9619.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [13:30:29]free response buf [13:30:29]execute_script done [13:30:29]execute_script returns [13:30:29]free content buf [13:30:29]Sock 9.Close socket [13:30:29]Sock 9.Thread stoped [13:30:32]OFD Sender: No OFD packet to send [13:30:37]OFD Sender: No OFD packet to send [13:30:42]OFD Sender: No OFD packet to send [13:30:47]OFD Sender: No OFD packet to send [13:30:52]OFD Sender: No OFD packet to send [13:30:57]OFD Sender: No OFD packet to send [13:31:02]OFD Sender: No OFD packet to send [13:31:07]OFD Sender: No OFD packet to send [13:31:12]OFD Sender: No OFD packet to send [13:31:17]OFD Sender: No OFD packet to send [13:31:22]OFD Sender: No OFD packet to send [13:31:27]OFD Sender: No OFD packet to send [13:31:32]OFD Sender: No OFD packet to send [13:31:37]OFD Sender: No OFD packet to send [13:31:42]OFD Sender: No OFD packet to send [13:31:47]OFD Sender: No OFD packet to send [13:31:52]OFD Sender: No OFD packet to send [13:31:57]OFD Sender: No OFD packet to send [13:32:02]OFD Sender: No OFD packet to send [13:32:07]OFD Sender: No OFD packet to send [13:32:12]OFD Sender: No OFD packet to send [13:32:17]OFD Sender: No OFD packet to send [13:32:22]OFD Sender: No OFD packet to send [13:32:27]OFD Sender: No OFD packet to send [13:32:32]OFD Sender: No OFD packet to send [13:32:37]OFD Sender: No OFD packet to send [13:32:42]OFD Sender: No OFD packet to send [13:32:47]OFD Sender: No OFD packet to send [13:32:52]OFD Sender: No OFD packet to send [13:32:57]OFD Sender: No OFD packet to send [13:33:02]OFD Sender: No OFD packet to send [13:33:07]OFD Sender: No OFD packet to send [13:33:12]OFD Sender: No OFD packet to send [13:33:17]OFD Sender: No OFD packet to send [13:33:22]OFD Sender: No OFD packet to send [13:33:27]OFD Sender: No OFD packet to send [13:33:32]OFD Sender: No OFD packet to send [13:33:37]OFD Sender: No OFD packet to send [13:33:42]OFD Sender: No OFD packet to send [13:33:47]OFD Sender: No OFD packet to send [13:33:52]OFD Sender: No OFD packet to send [13:33:57]OFD Sender: No OFD packet to send [13:34:02]OFD Sender: No OFD packet to send [13:34:07]OFD Sender: No OFD packet to send [13:34:12]OFD Sender: No OFD packet to send [13:34:17]OFD Sender: No OFD packet to send [13:34:22]OFD Sender: No OFD packet to send [13:34:27]OFD Sender: No OFD packet to send [13:34:32]OFD Sender: No OFD packet to send [13:34:37]OFD Sender: No OFD packet to send [13:34:42]OFD Sender: No OFD packet to send [13:34:47]OFD Sender: No OFD packet to send [13:34:52]OFD Sender: No OFD packet to send [13:34:57]OFD Sender: No OFD packet to send [13:35:02]OFD Sender: No OFD packet to send [13:35:07]OFD Sender: No OFD packet to send [13:35:12]OFD Sender: No OFD packet to send [13:35:17]OFD Sender: No OFD packet to send [13:35:22]OFD Sender: No OFD packet to send [13:35:27]OFD Sender: No OFD packet to send [13:35:32]OFD Sender: No OFD packet to send [13:35:37]OFD Sender: No OFD packet to send [13:35:42]OFD Sender: No OFD packet to send [13:35:47]OFD Sender: No OFD packet to send [13:35:52]OFD Sender: No OFD packet to send [13:35:57]OFD Sender: No OFD packet to send [13:36:02]OFD Sender: No OFD packet to send [13:36:07]OFD Sender: No OFD packet to send [13:36:12]OFD Sender: No OFD packet to send [13:36:17]OFD Sender: No OFD packet to send [13:36:22]OFD Sender: No OFD packet to send [13:36:27]OFD Sender: No OFD packet to send [13:36:32]OFD Sender: No OFD packet to send [13:36:37]OFD Sender: No OFD packet to send [13:36:42]OFD Sender: No OFD packet to send [13:36:47]OFD Sender: No OFD packet to send [13:36:52]OFD Sender: No OFD packet to send [13:36:57]OFD Sender: No OFD packet to send [13:37:02]OFD Sender: No OFD packet to send [13:37:07]OFD Sender: No OFD packet to send [13:37:12]OFD Sender: No OFD packet to send [13:37:17]OFD Sender: No OFD packet to send [13:37:22]OFD Sender: No OFD packet to send [13:37:27]OFD Sender: No OFD packet to send [13:37:32]OFD Sender: No OFD packet to send [13:37:37]OFD Sender: No OFD packet to send [13:37:42]OFD Sender: No OFD packet to send [13:37:47]OFD Sender: No OFD packet to send [13:37:52]OFD Sender: No OFD packet to send [13:37:57]OFD Sender: No OFD packet to send [13:38:02]OFD Sender: No OFD packet to send [13:38:07]OFD Sender: No OFD packet to send [13:38:12]OFD Sender: No OFD packet to send [13:38:17]OFD Sender: No OFD packet to send [13:38:22]OFD Sender: No OFD packet to send [13:38:27]OFD Sender: No OFD packet to send [13:38:32]OFD Sender: No OFD packet to send [13:38:37]OFD Sender: No OFD packet to send [13:38:42]OFD Sender: No OFD packet to send [13:38:47]OFD Sender: No OFD packet to send [13:38:52]OFD Sender: No OFD packet to send [13:38:57]OFD Sender: No OFD packet to send [13:39:02]OFD Sender: No OFD packet to send [13:39:07]OFD Sender: No OFD packet to send [13:39:12]OFD Sender: No OFD packet to send [13:39:13]accept exits with 7 [13:39:13]New connection [13:39:13]New thread 3067395428 created [13:39:13]Thread 3067252068 joined [13:39:13]Waiting for new connection... [13:39:13] Sock 7.Parse request [13:39:13]Sock 7.Check first char [13:39:13]Sock 7.First char is OK [13:39:13]request: POST /json_proto HTTP/1.0 [13:39:13]Method: POST [13:39:13]URL: /json_proto [13:39:13]Method is POST - this is cgi request [13:39:13]url: /json_proto [13:39:13]query_string will be loaded in cgi processing [13:39:13]execute_cgi json_proto POST (null) [13:39:13]execute_cgi path=json_proto method=POST [13:39:13]POST find Content-Length [13:39:13]Host: 172.17.48.197:8080 [13:39:13]Content-Length: 215 [13:39:13]Content-Type: application/json [13:39:13] [13:39:13]POST finish read [13:39:13]Found Content-Length = 215 [13:39:13]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" ] } } [13:39:13]execute_script... [13:39:13]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" ] } } [13:39:13]POST & json_proto [13:39:13]process_json_proto [13:39:13]json parsed OK: [13:39:13]protocol is kg_v1.0 [13:39:13]action value=get_value [13:39:13]process_action get_value [13:39:13]cmd_get_value [13:39:13]process_action get_value done [13:39:13]requested_data is exist [13:39:13]produce_requested_data [13:39:13]requested_item kkm.sn is exist - process it [13:39:13]requested_item kkm.ver is exist - process it [13:39:13]requested_item fm.sn is exist - process it [13:39:13]wFMCommunicate request_size=4 [13:39:13]MH_SAM_APDU [13:39:13]CAPDU: 80 11 00 00 [13:39:13]Write to MH i2c: E2 08 00 12 29 80 11 00 00 00 00 00 00 B5 [13:39:13]Write i2c OK [13:39:13]MH_I2C_Read... [13:39:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:39:13]Read from MH i2c: E2 [13:39:13]MH_I2C_Read... [13:39:13]Read from MH i2c: E2 17 00 [13:39:13]MH_I2C_Read... [13:39:13]Read from MH i2c: E2 17 00 12 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 13 [13:39:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [13:39:13]wFMCommunicate OK [13:39:13]requested_item fd.num is exist - process it [13:39:13]SAM_PROTO_GetFieldsCounters [13:39:13]wFMCommunicate request_size=4 [13:39:13]MH_SAM_APDU [13:39:13]CAPDU: 80 13 00 00 [13:39:13]Write to MH i2c: E2 08 00 13 29 80 13 00 00 00 00 00 00 B8 [13:39:13]Write i2c OK [13:39:13]MH_I2C_Read... [13:39:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:39:14]Read from MH i2c: E2 [13:39:14]MH_I2C_Read... [13:39:14]Read from MH i2c: E2 62 00 [13:39:14]MH_I2C_Read... [13:39:14]Read from MH i2c: E2 62 00 13 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 6F E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 B0 [13:39: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 6F E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:39:14]wFMCommunicate OK [13:39:14]SAM_PROTO_GetFieldsCounters done [13:39:14]requested_item shift.num is exist - process it [13:39:14]requested_item shift.opened is exist - process it [13:39:14]req_shift_opened [13:39:14]FM_GetShiftState [13:39:14]SAM_PROTO_GetShiftState [13:39:14]wFMCommunicate request_size=4 [13:39:14]MH_SAM_APDU [13:39:14]CAPDU: 80 13 01 00 [13:39:14]Write to MH i2c: E2 08 00 14 29 80 13 01 00 00 00 00 00 BA [13:39:14]Write i2c OK [13:39:14]MH_I2C_Read... [13:39:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:39:14]Read from MH i2c: E2 [13:39:14]MH_I2C_Read... [13:39:14]Read from MH i2c: E2 0E 00 [13:39:14]MH_I2C_Read... [13:39:14]Read from MH i2c: E2 0E 00 14 29 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 7C [13:39:14]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [13:39:14]wFMCommunicate OK [13:39:14]SAM_PROTO_GetShiftState done [13:39:14]FM_GetShiftState done [13:39:14]req_shift_opened done [13:39:14]requested_item shift.open_date is exist - process it [13:39:14]req_shift_open_date [13:39:14]req_shift_open_date done [13:39:14]produce_requested_data done [13:39:14]produce_requested_data return {"kkm.sn":"0300000019","kkm.ver":"001","fm.sn":"0000000000874798","fd.num":123247,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [13:39:14]process_action_free get_value [13:39:14]json_value_free [13:39:14]json_value_free done [13:39:14]process_json_proto returns [13:39:14]Send response to host [13:39:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000019","kkm.ver":"001","fm.sn":"0000000000874798","fd.num":123247,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [13:39:14]free response buf [13:39:14]execute_script done [13:39:14]execute_script returns [13:39:14]free content buf [13:39:14]Sock 7.Close socket [13:39:14]Sock 7.Thread stoped [13:39:14]accept exits with 10 [13:39:14]New connection [13:39:14]New thread 3067252068 created [13:39:14]Thread 3067395428 joined [13:39:14]Waiting for new connection... [13:39:14] Sock 10.Parse request [13:39:14]Sock 10.Check first char [13:39:14]Sock 10.First char is OK [13:39:14]request: POST /json_proto HTTP/1.0 [13:39:14]Method: POST [13:39:14]URL: /json_proto [13:39:14]Method is POST - this is cgi request [13:39:14]url: /json_proto [13:39:14]query_string will be loaded in cgi processing [13:39:14]execute_cgi json_proto POST (null) [13:39:14]execute_cgi path=json_proto method=POST [13:39:14]POST find Content-Length [13:39:14]Host: 172.17.48.197:8080 [13:39:14]Content-Length: 331 [13:39:14]Content-Type: application/json [13:39:14] [13:39:14]POST finish read [13:39:14]Found Content-Length = 331 [13:39:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [13:39:14]execute_script... [13:39:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [13:39:14]POST & json_proto [13:39:14]process_json_proto [13:39:14]json parsed OK: [13:39:14]protocol is kg_v1.0 [13:39:14]action value=get_value [13:39:14]process_action get_value [13:39:14]cmd_get_value [13:39:14]process_action get_value done [13:39:14]requested_data is exist [13:39:14]produce_requested_data [13:39:14]requested_item fm.sale.total is exist - process it [13:39:14]SAM_PROTO_GetFMData [13:39:14]wFMCommunicate request_size=4 [13:39:14]MH_SAM_APDU [13:39:14]CAPDU: 80 13 03 00 [13:39:14]Write to MH i2c: E2 08 00 15 29 80 13 03 00 00 00 00 00 BD [13:39:14]Write i2c OK [13:39:14]MH_I2C_Read... [13:39:14]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [13:39:14]Read from MH i2c: E2 [13:39:14]MH_I2C_Read... [13:39:14]Read from MH i2c: E2 FD 00 [13:39:14]MH_I2C_Read... [13:39:14]Read from MH i2c: E2 FD 00 15 29 00 C7 04 85 04 C3 04 6E 04 04 00 E9 DE 01 00 69 04 A3 00 6F 04 04 00 D3 C9 01 00 B1 04 05 00 8C B5 78 6E 02 70 04 05 00 45 AE 21 AB 01 72 04 04 00 47 07 57 C3 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 DC C8 1D 42 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 28 54 82 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 16 15 00 00 B1 04 04 00 1D 46 63 34 70 04 04 00 FD F7 62 34 72 04 02 00 20 4E 00 04 7C 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 32 6A 90 05 EF 90 00 E7 [13:39:14]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 E9 DE 01 00 69 04 A3 00 6F 04 04 00 D3 C9 01 00 B1 04 05 00 8C B5 78 6E 02 70 04 05 00 45 AE 21 AB 01 72 04 04 00 47 07 57 C3 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 DC C8 1D 42 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 28 54 82 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 16 15 00 00 B1 04 04 00 1D 46 63 34 70 04 04 00 FD F7 62 34 72 04 02 00 20 4E 00 04 7C 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 32 6A 90 05 EF 90 00 [13:39:14]wFMCommunicate OK [13:39:14]wFMCommunicate request_size=4 [13:39:14]MH_SAM_APDU [13:39:14]CAPDU: 80 17 00 00 [13:39:14]Write to MH i2c: E2 08 00 16 29 80 17 00 00 00 00 00 00 BF [13:39:14]Write i2c OK [13:39:14]MH_I2C_Read... [13:39:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:39:15]Read from MH i2c: E2 [13:39:15]MH_I2C_Read... [13:39:15]Read from MH i2c: E2 FD 00 [13:39:15]MH_I2C_Read... [13:39:15]Read from MH i2c: E2 FD 00 16 29 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 D4 B1 76 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 C7 [13:39:15]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 D4 B1 76 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [13:39:15]wFMCommunicate OK [13:39:15]wFMCommunicate request_size=4 [13:39:15]MH_SAM_APDU [13:39:15]CAPDU: 80 17 00 00 [13:39:15]Write to MH i2c: E2 08 00 17 29 80 17 00 00 00 00 00 00 C0 [13:39:15]Write i2c OK [13:39:15]MH_I2C_Read... [13:39:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:39:15]Read from MH i2c: E2 [13:39:15]MH_I2C_Read... [13:39:15]Read from MH i2c: E2 FD 00 [13:39:15]MH_I2C_Read... [13:39:15]Read from MH i2c: E2 FD 00 17 29 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 [13:39:15]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 [13:39:15]wFMCommunicate OK [13:39:15]wFMCommunicate request_size=4 [13:39:15]MH_SAM_APDU [13:39:15]CAPDU: 80 17 00 00 [13:39:15]Write to MH i2c: E2 08 00 18 29 80 17 00 00 00 00 00 00 C1 [13:39:15]Write i2c OK [13:39:15]MH_I2C_Read... [13:39:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:39:15]Read from MH i2c: E2 [13:39:15]MH_I2C_Read... [13:39:15]Read from MH i2c: E2 FD 00 [13:39:15]MH_I2C_Read... [13:39:15]Read from MH i2c: E2 FD 00 18 29 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 3C [13:39: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 [13:39:15]wFMCommunicate OK [13:39:15]wFMCommunicate request_size=4 [13:39:15]MH_SAM_APDU [13:39:15]CAPDU: 80 17 00 00 [13:39:15]Write to MH i2c: E2 08 00 19 29 80 17 00 00 00 00 00 00 C2 [13:39:15]Write i2c OK [13:39:15]MH_I2C_Read... [13:39:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [13:39:15]Read from MH i2c: E2 [13:39:15]MH_I2C_Read... [13:39:15]Read from MH i2c: E2 E4 00 [13:39:15]MH_I2C_Read... [13:39:15]Read from MH i2c: E2 E4 00 19 29 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 A2 [13:39: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 [13:39:15]wFMCommunicate OK [13:39:15]SAM_PROTO_GetFMData done [13:39:15]requested_item fm.sale_refund.total is exist - process it [13:39:15]requested_item fm.buy.total is exist - process it [13:39:15]requested_item shift.sale.total is exist - process it [13:39:15]SAM_PROTO_GetShiftData [13:39:15]wFMCommunicate request_size=4 [13:39:15]MH_SAM_APDU [13:39:15]CAPDU: 80 13 02 00 [13:39:15]Write to MH i2c: E2 08 00 1A 29 80 13 02 00 00 00 00 00 C1 [13:39:15]Write i2c OK [13:39:15]MH_I2C_Read... [13:39:16]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [13:39:16]Read from MH i2c: E2 [13:39:16]MH_I2C_Read... [13:39:16]Read from MH i2c: E2 FD 00 [13:39:16]MH_I2C_Read... [13:39:16]Read from MH i2c: E2 FD 00 1A 29 00 BA 04 AA 04 B6 04 6E 04 04 00 68 00 00 00 69 04 9C 00 6F 04 04 00 64 00 00 00 B1 04 03 00 31 F5 95 70 04 03 00 8C CE 54 72 04 03 00 A5 26 41 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 92 ED 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 CA 53 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 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 6C AD 0E 70 04 03 00 6C AD 0E 72 04 00 00 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 0D 8F 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 A9 [13:39:16]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 68 00 00 00 69 04 9C 00 6F 04 04 00 64 00 00 00 B1 04 03 00 31 F5 95 70 04 03 00 8C CE 54 72 04 03 00 A5 26 41 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 92 ED 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 CA 53 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 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 6C AD 0E 70 04 03 00 6C AD 0E 72 04 00 00 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 0D 8F 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [13:39:16]wFMCommunicate OK [13:39:16]wFMCommunicate request_size=4 [13:39:16]MH_SAM_APDU [13:39:16]CAPDU: 80 17 00 00 [13:39:16]Write to MH i2c: E2 08 00 1B 29 80 17 00 00 00 00 00 00 C4 [13:39:16]Write i2c OK [13:39:16]MH_I2C_Read... [13:39:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:39:16]Read from MH i2c: E2 [13:39:16]MH_I2C_Read... [13:39:16]Read from MH i2c: E2 FD 00 [13:39:16]MH_I2C_Read... [13:39:16]Read from MH i2c: E2 FD 00 1B 29 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 41 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D0 [13:39:16]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 41 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [13:39:16]wFMCommunicate OK [13:39:16]wFMCommunicate request_size=4 [13:39:16]MH_SAM_APDU [13:39:16]CAPDU: 80 17 00 00 [13:39:16]Write to MH i2c: E2 08 00 1C 29 80 17 00 00 00 00 00 00 C5 [13:39:16]Write i2c OK [13:39:16]MH_I2C_Read... [13:39:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:39:16]Read from MH i2c: E2 [13:39:16]MH_I2C_Read... [13:39:16]Read from MH i2c: E2 FD 00 [13:39:16]MH_I2C_Read... [13:39:16]Read from MH i2c: E2 FD 00 1C 29 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F1 [13:39:17]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 [13:39:17]wFMCommunicate OK [13:39:17]wFMCommunicate request_size=4 [13:39:17]MH_SAM_APDU [13:39:17]CAPDU: 80 17 00 00 [13:39:17]Write to MH i2c: E2 08 00 1D 29 80 17 00 00 00 00 00 00 C6 [13:39:17]Write i2c OK [13:39:17]MH_I2C_Read... [13:39:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:39:17]Read from MH i2c: E2 [13:39:17]MH_I2C_Read... [13:39:17]Read from MH i2c: E2 FD 00 [13:39:17]MH_I2C_Read... [13:39:17]Read from MH i2c: E2 FD 00 1D 29 00 00 EF 03 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 90 00 3E [13:39:17]RAPDU: 00 EF 03 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 90 00 [13:39:17]wFMCommunicate OK [13:39:17]wFMCommunicate request_size=4 [13:39:17]MH_SAM_APDU [13:39:17]CAPDU: 80 17 00 00 [13:39:17]Write to MH i2c: E2 08 00 1E 29 80 17 00 00 00 00 00 00 C7 [13:39:17]Write i2c OK [13:39:17]MH_I2C_Read... [13:39:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [13:39:17]Read from MH i2c: E2 [13:39:17]MH_I2C_Read... [13:39:17]Read from MH i2c: E2 D7 00 [13:39:17]MH_I2C_Read... [13:39:17]Read from MH i2c: E2 D7 00 1E 29 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 AA [13:39:17]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [13:39:17]wFMCommunicate OK [13:39:17]SAM_PROTO_GetShiftData done [13:39:17]requested_item shift.sale.total_cash is exist - process it [13:39:17]requested_item shift.sale_refund.total is exist - process it [13:39:17]requested_item shift.sale_refund.total_cash is exist - process it [13:39:17]requested_item shift.buy.total is exist - process it [13:39:17]requested_item shift.buy.total_cash is exist - process it [13:39:17]produce_requested_data done [13:39:17]produce_requested_data return {"fm.sale.total":104433391.48,"fm.sale_refund.total":8789212.45,"fm.buy.total":0.00,"shift.sale.total":98276.33,"shift.sale.total_cash":55579.00,"shift.sale_refund.total":9619.00,"shift.sale_refund.total_cash":9619.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [13:39:17]process_action_free get_value [13:39:17]json_value_free [13:39:17]json_value_free done [13:39:17]process_json_proto returns [13:39:17]Send response to host [13:39:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":104433391.48,"fm.sale_refund.total":8789212.45,"fm.buy.total":0.00,"shift.sale.total":98276.33,"shift.sale.total_cash":55579.00,"shift.sale_refund.total":9619.00,"shift.sale_refund.total_cash":9619.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [13:39:17]free response buf [13:39:17]execute_script done [13:39:17]execute_script returns [13:39:17]free content buf [13:39:17]Sock 10.Close socket [13:39:17]Sock 10.Thread stoped [13:39:17]OFD Sender: No OFD packet to send [13:39:22]OFD Sender: No OFD packet to send [13:39:27]OFD Sender: No OFD packet to send [13:39:32]OFD Sender: No OFD packet to send [13:39:37]OFD Sender: No OFD packet to send [13:39:42]OFD Sender: No OFD packet to send [13:39:47]OFD Sender: No OFD packet to send [13:39:52]OFD Sender: No OFD packet to send [13:39:57]OFD Sender: No OFD packet to send [13:40:02]OFD Sender: No OFD packet to send [13:40:07]OFD Sender: No OFD packet to send [13:40:12]OFD Sender: No OFD packet to send [13:40:17]OFD Sender: No OFD packet to send [13:40:22]OFD Sender: No OFD packet to send [13:40:27]OFD Sender: No OFD packet to send [13:40:32]OFD Sender: No OFD packet to send [13:40:37]OFD Sender: No OFD packet to send [13:40:42]OFD Sender: No OFD packet to send [13:40:47]OFD Sender: No OFD packet to send [13:40:52]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:39]accept exits with 7 [13:41:39]New connection [13:41:39]New thread 3067395428 created [13:41:39]Thread 3067252068 joined [13:41:39]Waiting for new connection... [13:41:39] Sock 7.Parse request [13:41:39]Sock 7.Check first char [13:41:39]Sock 7.First char is OK [13:41:39]request: POST /json_proto HTTP/1.0 [13:41:39]Method: POST [13:41:39]URL: /json_proto [13:41:39]Method is POST - this is cgi request [13:41:39]url: /json_proto [13:41:39]query_string will be loaded in cgi processing [13:41:39]execute_cgi json_proto POST (null) [13:41:39]execute_cgi path=json_proto method=POST [13:41:39]POST find Content-Length [13:41:39]Host: 172.17.48.197:8080 [13:41:39]Content-Length: 1218 [13:41:39]Content-Type: application/json [13:41:39] [13:41:39]POST finish read [13:41:39]Found Content-Length = 1218 [13:41:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106178\u000A03.03.2024 13:37\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 52\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 1238.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3578296\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:41:39]execute_script... [13:41:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106178\u000A03.03.2024 13:37\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 52\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 1238.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3578296\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:41:39]POST & json_proto [13:41:39]process_json_proto [13:41:39]json parsed OK: [13:41:39]protocol is kg_v1.0 [13:41:39]action value=print_text [13:41:39]process_action print_text [13:41:39]cmd_print_text [13:41:39]ExternCall_PrintAddStr [13:41:39]wPrintStart [13:41:39]Write to MH i2c: 01 00 00 1F 29 48 [13:41:39]Write i2c OK [13:41:39]MH_I2C_Read... [13:41:39]Read from MH i2c: 01 [13:41:39]MH_I2C_Read... [13:41:39]Read from MH i2c: 01 07 00 [13:41:39]MH_I2C_Read... [13:41:39]Read from MH i2c: 01 07 00 1F 29 00 00 00 00 00 FF 0F 5D [13:41:39]RasterBufferAndPrint [13:41:39]line *****ТОВАРНЫЙ ЧЕК***** [13:41:39]line АЗС 25 [13:41:39]line Партнер нефть [13:41:39]line 02508201610067 [13:41:39]line Кассир : Турдумбек у. К. [13:41:39]line Счет N : (1)1106178 [13:41:39]line 03.03.2024 13:37 [13:41:39]line ПРОДАЖА [13:41:39]line ТРК (МРК, ГНК): 52 [13:41:39]line Вид ГСМ : 2710124130 [13:41:39]line Аи-92-К-5 [13:41:39]line 20.000 x 61.90 [13:41:39]line ИТОГ: 1238.00 [13:41:39]line Тип оплаты: Талоны: Топливные Талоны [13:41:39]line 3578296 [13:41:39]line ______________________ [13:41:39]line (подпись) [13:41:39]written 0, free lines is 4095 [13:41:39]Write to MH i2c: 01 00 00 34 29 5D [13:41:39]Write i2c OK [13:41:39]MH_I2C_Read... [13:41:39]Read from MH i2c: 01 [13:41:39]MH_I2C_Read... [13:41:39]Read from MH i2c: 01 07 00 [13:41:39]MH_I2C_Read... [13:41:39]Read from MH i2c: 01 07 00 34 29 00 00 00 00 00 F7 0D 68 [13:41:39]RasterBufferAndPrint [13:41:39]line [13:41:39]line [13:41:39]line [13:41:39]line [13:41:39]line [13:41:39]written 0, free lines is 3577 [13:41:39]MH_Cut [13:41:39]Write to MH i2c: D1 01 00 3B 29 01 36 [13:41:39]Write i2c OK [13:41:39]MH_I2C_Read... [13:41:39]Read from MH i2c: D1 [13:41:39]MH_I2C_Read... [13:41:39]Read from MH i2c: D1 01 00 [13:41:39]MH_I2C_Read... [13:41:39]Read from MH i2c: D1 01 00 3B 29 00 35 [13:41:39]Write to MH i2c: 01 00 00 3C 29 65 [13:41:39]Write i2c OK [13:41:39]MH_I2C_Read... [13:41:40]*** Cut start [13:41:40]*** Purtial cut [13:41:40]*** Stage 1: CUTSNS_PIN = 1 [13:41:42]Read from MH i2c: 01 [13:41:42]MH_I2C_Read... [13:41:42]*** Stop cut motor [13:41:42]*** Cut end [13:41:42]Read from MH i2c: 01 07 00 [13:41:42]MH_I2C_Read... [13:41:42]Read from MH i2c: 01 07 00 3C 29 00 00 00 00 00 FF 0F 7A [13:41:42]process_action print_text done [13:41:42]requested_data is exist [13:41:42]produce_requested_data [13:41:42]requested_item fm.sn is exist - process it [13:41:42]wFMCommunicate request_size=4 [13:41:42]MH_SAM_APDU [13:41:42]CAPDU: 80 11 00 00 [13:41:42]Write to MH i2c: E2 08 00 3D 29 80 11 00 00 00 00 00 00 E0 [13:41:42]Write i2c OK [13:41:42]MH_I2C_Read... [13:41:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:42]Read from MH i2c: E2 [13:41:42]MH_I2C_Read... [13:41:42]Read from MH i2c: E2 17 00 [13:41:42]MH_I2C_Read... [13:41:42]Read from MH i2c: E2 17 00 3D 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 3E [13:41:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [13:41:42]wFMCommunicate OK [13:41:42]requested_item fd.num is exist - process it [13:41:42]SAM_PROTO_GetFieldsCounters [13:41:42]wFMCommunicate request_size=4 [13:41:42]MH_SAM_APDU [13:41:42]CAPDU: 80 13 00 00 [13:41:42]Write to MH i2c: E2 08 00 3E 29 80 13 00 00 00 00 00 00 E3 [13:41:42]Write i2c OK [13:41:42]MH_I2C_Read... [13:41:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:41:42]Read from MH i2c: E2 [13:41:42]MH_I2C_Read... [13:41:42]Read from MH i2c: E2 62 00 [13:41:42]MH_I2C_Read... [13:41:42]Read from MH i2c: E2 62 00 3E 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 6F E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 DB [13:41: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 6F E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:41:42]wFMCommunicate OK [13:41:42]SAM_PROTO_GetFieldsCounters done [13:41:42]requested_item shift.num is exist - process it [13:41:42]requested_item shift.opened is exist - process it [13:41:42]req_shift_opened [13:41:42]FM_GetShiftState [13:41:42]SAM_PROTO_GetShiftState [13:41:42]wFMCommunicate request_size=4 [13:41:42]MH_SAM_APDU [13:41:42]CAPDU: 80 13 01 00 [13:41:42]Write to MH i2c: E2 08 00 3F 29 80 13 01 00 00 00 00 00 E5 [13:41:42]Write i2c OK [13:41:42]MH_I2C_Read... [13:41:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:42]Read from MH i2c: E2 [13:41:42]MH_I2C_Read... [13:41:42]Read from MH i2c: E2 0E 00 [13:41:42]MH_I2C_Read... [13:41:42]Read from MH i2c: E2 0E 00 3F 29 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 A7 [13:41:42]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [13:41:42]wFMCommunicate OK [13:41:42]SAM_PROTO_GetShiftState done [13:41:42]FM_GetShiftState done [13:41:42]req_shift_opened done [13:41:42]requested_item shift.open_date is exist - process it [13:41:42]req_shift_open_date [13:41:42]req_shift_open_date done [13:41:42]produce_requested_data done [13:41:42]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123247,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [13:41:42]process_action_free print_text [13:41:42]json_value_free [13:41:42]json_value_free done [13:41:42]process_json_proto returns [13:41:42]Send response to host [13:41:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123247,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [13:41:42]free response buf [13:41:42]execute_script done [13:41:42]execute_script returns [13:41:42]free content buf [13:41:42]Sock 7.Close socket [13:41:42]Sock 7.Thread stoped [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:13]OFD Sender: No OFD packet to send [13:43:18]OFD Sender: No OFD packet to send [13:43:23]OFD Sender: No OFD packet to send [13:43:28]OFD Sender: No OFD packet to send [13:43:33]OFD Sender: No OFD packet to send [13:43:38]OFD Sender: No OFD packet to send [13:43:43]OFD Sender: No OFD packet to send [13:43:48]OFD Sender: No OFD packet to send [13:43:53]OFD Sender: No OFD packet to send [13:43:58]OFD Sender: No OFD packet to send [13:44:03]OFD Sender: No OFD packet to send [13:44:08]OFD Sender: No OFD packet to send [13:44:13]OFD Sender: No OFD packet to send [13:44:18]OFD Sender: No OFD packet to send [13:44:23]OFD Sender: No OFD packet to send [13:44:28]OFD Sender: No OFD packet to send [13:44:33]OFD Sender: No OFD packet to send [13:44:38]OFD Sender: No OFD packet to send [13:44:43]OFD Sender: No OFD packet to send [13:44:48]OFD Sender: No OFD packet to send [13:44:53]OFD Sender: No OFD packet to send [13:44:58]OFD Sender: No OFD packet to send [13:45:03]OFD Sender: No OFD packet to send [13:45:08]OFD Sender: No OFD packet to send [13:45:13]OFD Sender: No OFD packet to send [13:45:18]OFD Sender: No OFD packet to send [13:45:23]OFD Sender: No OFD packet to send [13:45:28]OFD Sender: No OFD packet to send [13:45:33]OFD Sender: No OFD packet to send [13:45:38]OFD Sender: No OFD packet to send [13:45:43]OFD Sender: No OFD packet to send [13:45:48]OFD Sender: No OFD packet to send [13:45:53]OFD Sender: No OFD packet to send [13:45:58]OFD Sender: No OFD packet to send [13:46:03]OFD Sender: No OFD packet to send [13:46:08]OFD Sender: No OFD packet to send [13:46:13]OFD Sender: No OFD packet to send [13:46:18]OFD Sender: No OFD packet to send [13:46:23]OFD Sender: No OFD packet to send [13:46:28]OFD Sender: No OFD packet to send [13:46:33]OFD Sender: No OFD packet to send [13:46:38]OFD Sender: No OFD packet to send [13:46:43]OFD Sender: No OFD packet to send [13:46:48]OFD Sender: No OFD packet to send [13:46:53]OFD Sender: No OFD packet to send [13:46:58]OFD Sender: No OFD packet to send [13:47:03]OFD Sender: No OFD packet to send [13:47:08]OFD Sender: No OFD packet to send [13:47:13]OFD Sender: No OFD packet to send [13:47:18]OFD Sender: No OFD packet to send [13:47:23]OFD Sender: No OFD packet to send [13:47:28]OFD Sender: No OFD packet to send [13:47:33]OFD Sender: No OFD packet to send [13:47:38]OFD Sender: No OFD packet to send [13:47:43]OFD Sender: No OFD packet to send [13:47:48]OFD Sender: No OFD packet to send [13:47:53]OFD Sender: No OFD packet to send [13:47:58]OFD Sender: No OFD packet to send [13:48:03]OFD Sender: No OFD packet to send [13:48:08]OFD Sender: No OFD packet to send [13:48:13]OFD Sender: No OFD packet to send [13:48:18]OFD Sender: No OFD packet to send [13:48:23]OFD Sender: No OFD packet to send [13:48:28]OFD Sender: No OFD packet to send [13:48:33]OFD Sender: No OFD packet to send [13:48:38]OFD Sender: No OFD packet to send [13:48:43]OFD Sender: No OFD packet to send [13:48:48]OFD Sender: No OFD packet to send [13:48:53]OFD Sender: No OFD packet to send [13:48:58]OFD Sender: No OFD packet to send [13:49:03]OFD Sender: No OFD packet to send [13:49:08]OFD Sender: No OFD packet to send [13:49:13]OFD Sender: No OFD packet to send [13:49:18]OFD Sender: No OFD packet to send [13:49:23]OFD Sender: No OFD packet to send [13:49:28]OFD Sender: No OFD packet to send [13:49:33]OFD Sender: No OFD packet to send [13:49:38]OFD Sender: No OFD packet to send [13:49:43]OFD Sender: No OFD packet to send [13:49:48]OFD Sender: No OFD packet to send [13:49:53]OFD Sender: No OFD packet to send [13:49:58]OFD Sender: No OFD packet to send [13:50:03]OFD Sender: No OFD packet to send [13:50:08]OFD Sender: No OFD packet to send [13:50:13]OFD Sender: No OFD packet to send [13:50:18]OFD Sender: No OFD packet to send [13:50:23]OFD Sender: No OFD packet to send [13:50:28]OFD Sender: No OFD packet to send [13:50:33]OFD Sender: No OFD packet to send [13:50:38]OFD Sender: No OFD packet to send [13:50:43]OFD Sender: No OFD packet to send [13:50:48]OFD Sender: No OFD packet to send [13:50:53]OFD Sender: No OFD packet to send [13:50:58]OFD Sender: No OFD packet to send [13:51:03]OFD Sender: No OFD packet to send [13:51:08]OFD Sender: No OFD packet to send [13:51:13]OFD Sender: No OFD packet to send [13:51:18]OFD Sender: No OFD packet to send [13:51:23]OFD Sender: No OFD packet to send [13:51:28]OFD Sender: No OFD packet to send [13:51:33]OFD Sender: No OFD packet to send [13:51:38]OFD Sender: No OFD packet to send [13:51:43]OFD Sender: No OFD packet to send [13:51:48]OFD Sender: No OFD packet to send [13:51:53]OFD Sender: No OFD packet to send [13:51:58]OFD Sender: No OFD packet to send [13:52:03]OFD Sender: No OFD packet to send [13:52:08]OFD Sender: No OFD packet to send [13:52:13]OFD Sender: No OFD packet to send [13:52:18]OFD Sender: No OFD packet to send [13:52:23]OFD Sender: No OFD packet to send [13:52:28]OFD Sender: No OFD packet to send [13:52:33]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:03]OFD Sender: No OFD packet to send [13:53:08]OFD Sender: No OFD packet to send [13:53:13]OFD Sender: No OFD packet to send [13:53:18]OFD Sender: No OFD packet to send [13:53:23]OFD Sender: No OFD packet to send [13:53:28]OFD Sender: No OFD packet to send [13:53:33]OFD Sender: No OFD packet to send [13:53:38]OFD Sender: No OFD packet to send [13:53:43]OFD Sender: No OFD packet to send [13:53:48]OFD Sender: No OFD packet to send [13:53:53]OFD Sender: No OFD packet to send [13:53:58]OFD Sender: No OFD packet to send [13:54:03]OFD Sender: No OFD packet to send [13:54:08]OFD Sender: No OFD packet to send [13:54:13]OFD Sender: No OFD packet to send [13:54:18]OFD Sender: No OFD packet to send [13:54:23]OFD Sender: No OFD packet to send [13:54:28]OFD Sender: No OFD packet to send [13:54:33]OFD Sender: No OFD packet to send [13:54:38]OFD Sender: No OFD packet to send [13:54:43]OFD Sender: No OFD packet to send [13:54:48]OFD Sender: No OFD packet to send [13:54:53]OFD Sender: No OFD packet to send [13:54:58]OFD Sender: No OFD packet to send [13:55:03]OFD Sender: No OFD packet to send [13:55:08]OFD Sender: No OFD packet to send [13:55:13]OFD Sender: No OFD packet to send [13:55:18]OFD Sender: No OFD packet to send [13:55:23]OFD Sender: No OFD packet to send [13:55:28]OFD Sender: No OFD packet to send [13:55:33]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:33]accept exits with 9 [13:56:33]New connection [13:56:33]New thread 3067252068 created [13:56:33]Thread 3067395428 joined [13:56:33]Waiting for new connection... [13:56:33] Sock 9.Parse request [13:56:33]Sock 9.Check first char [13:56:33]Sock 9.First char is OK [13:56:33]request: POST /json_proto HTTP/1.0 [13:56:33]Method: POST [13:56:33]URL: /json_proto [13:56:33]Method is POST - this is cgi request [13:56:33]url: /json_proto [13:56:33]query_string will be loaded in cgi processing [13:56:33]execute_cgi json_proto POST (null) [13:56:33]execute_cgi path=json_proto method=POST [13:56:33]POST find Content-Length [13:56:33]Host: 172.17.48.197:8080 [13:56:33]Content-Length: 678 [13:56:33]Content-Type: application/json [13:56:33] [13:56:33]POST finish read [13:56:33]Found Content-Length = 678 [13:56:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106180", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "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" ] } } [13:56:33]execute_script... [13: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)1106180", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "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" ] } } [13:56:33]POST & json_proto [13:56:33]process_json_proto [13:56:33]json parsed OK: [13:56:33]protocol is kg_v1.0 [13:56:33]action value=close_receipt [13:56:33]process_action close_receipt [13:56:33]cmd_close_receipt [13:56:33]MH_GetDate [13:56:33]Write to MH i2c: F0 00 00 40 29 58 [13:56:33]Write i2c OK [13:56:33]MH_I2C_Read... [13:56:33]Read from MH i2c: F0 [13:56:33]MH_I2C_Read... [13:56:33]Read from MH i2c: F0 09 00 [13:56:33]MH_I2C_Read... [13:56:33]Read from MH i2c: F0 09 00 40 29 00 95 81 E4 65 6C AF E3 65 23 [13:56:33]GetLastDocTimeStamp 1709472372 [13:56:33]current date 1709474197 [13:56:33]FM_GetShiftState [13:56:33]SAM_PROTO_GetShiftState [13:56:33]wFMCommunicate request_size=4 [13:56:33]MH_SAM_APDU [13:56:33]CAPDU: 80 13 01 00 [13:56:33]Write to MH i2c: E2 08 00 41 29 80 13 01 00 00 00 00 00 E7 [13:56:33]Write i2c OK [13:56:33]MH_I2C_Read... [13:56:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:56:33]Read from MH i2c: E2 [13:56:33]MH_I2C_Read... [13:56:33]Read from MH i2c: E2 0E 00 [13:56:33]MH_I2C_Read... [13:56:33]Read from MH i2c: E2 0E 00 41 29 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 A9 [13:56:33]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [13:56:33]wFMCommunicate OK [13:56:33]SAM_PROTO_GetShiftState done [13:56:33]FM_GetShiftState done [13:56:33]opened in 1709425579 [13:56:33]opened+sec_in_day 1709511979 [13:56:33]quantity*price = 50015 [13:56:33]sum+1 = 50016 [13:56:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 105 03.03.2024 13:56 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123248 ФПД: 161430072687732 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T135637&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123248&fm=161430072687732&tin=02508201610067®Number=0000000000090573&sum=50000 [13:56:34]StoreToDocumentArchive [13:56:34]shift 323 fd 123248 [13:56:34]save to /storage/0323/doc_00123248 [13:56:34]save last doc name /storage/0323/doc_00123248 to /storage/kkm_last_doc_name [13:56:34]save OK [13:56:34]Clear old archive folders... [13:56:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:56:34]tlvbuf is 00E023F0 [13:56:34]SAM_PROTO_ClearQueue [13:56:34]wFMCommunicate request_size=4 [13:56:34]MH_SAM_APDU [13:56:34]CAPDU: 80 09 00 00 [13:56:34]Write to MH i2c: E2 08 00 4E 29 80 09 00 00 00 00 00 00 E9 [13:56:34]Write i2c OK [13:56:34]MH_I2C_Read... [13:56:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:56:34]Read from MH i2c: E2 [13:56:34]MH_I2C_Read... [13:56:34]Read from MH i2c: E2 03 00 [13:56:34]MH_I2C_Read... [13:56:34]Read from MH i2c: E2 03 00 4E 29 00 90 00 EB [13:56:34]RAPDU: 90 00 [13:56:34]wFMCommunicate OK [13:56:34]SAM_PROTO_ClearQueue done [13:56:34]KKMCreateOFDPacket [13:56:34]OFDProtocolAddRootSTLVToBuf [13:56:34]FM_MakeSignedData [13:56:34]FM_MakeSignedData [13:56:34]SAM_PROTO_SignData [13:56:34]wFMCommunicate request_size=4 [13:56:34]MH_SAM_APDU [13:56:34]CAPDU: 80 0D 01 02 [13:56:34]Write to MH i2c: E2 08 00 4F 29 80 0D 01 02 00 00 00 00 F1 [13:56:34]Write i2c OK [13:56:34]MH_I2C_Read... [13:56:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:56:35]Read from MH i2c: E2 [13:56:35]MH_I2C_Read... [13:56:35]Read from MH i2c: E2 03 00 [13:56:35]MH_I2C_Read... [13:56:35]Read from MH i2c: E2 03 00 4F 29 00 90 00 EC [13:56:35]RAPDU: 90 00 [13:56:35]wFMCommunicate OK [13:56:35]wFMCommunicate request_size=255 [13:56:35]MH_SAM_APDU [13:56:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 95 81 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 70 E1 01 00 35 04 06 00 92 [13:56:35]Write to MH i2c: E2 02 01 50 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 95 81 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 70 E1 01 00 35 04 06 00 92 00 00 C1 [13:56:35]Write i2c OK [13:56:35]MH_I2C_Read... [13:56:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:56:35]Read from MH i2c: E2 [13:56:35]MH_I2C_Read... [13:56:35]Read from MH i2c: E2 03 00 [13:56:35]MH_I2C_Read... [13:56:35]Read from MH i2c: E2 03 00 50 29 00 90 00 ED [13:56:35]RAPDU: 90 00 [13:56:35]wFMCommunicate OK [13:56:35]wFMCommunicate request_size=10 [13:56:35]MH_SAM_APDU [13:56:35]CAPDU: 80 0D 02 02 05 D1 DE 23 7C 74 [13:56:35]Write to MH i2c: E2 0D 00 51 29 80 0D 02 02 05 00 D1 DE 23 7C 74 00 00 C0 [13:56:35]Write i2c OK [13:56:35]MH_I2C_Read... [13:56:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:56:35]Read from MH i2c: E2 [13:56:35]MH_I2C_Read... [13:56:35]Read from MH i2c: E2 03 00 [13:56:35]MH_I2C_Read... [13:56:35]Read from MH i2c: E2 03 00 51 29 00 90 00 EE [13:56:35]RAPDU: 90 00 [13:56:35]wFMCommunicate OK [13:56:35]wFMCommunicate request_size=4 [13:56:35]MH_SAM_APDU [13:56:35]CAPDU: 80 0D 03 02 [13:56:35]Write to MH i2c: E2 08 00 52 29 80 0D 03 02 00 00 00 00 F6 [13:56:35]Write i2c OK [13:56:35]MH_I2C_Read... [13:56:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:56:35]Read from MH i2c: E2 [13:56:35]MH_I2C_Read... [13:56:35]Read from MH i2c: E2 0B 00 [13:56:35]MH_I2C_Read... [13:56:35]Read from MH i2c: E2 0B 00 52 29 00 68 4F E1 43 41 4A E8 91 90 00 D6 [13:56:35]RAPDU: 68 4F E1 43 41 4A E8 91 90 00 [13:56:35]wFMCommunicate OK [13:56:35]SAM_PROTO_SignData done [13:56:35]FM_MakeSignedData done [13:56:35]CreateOFDProtocolMessage [13:56:35]wFMCommunicate request_size=4 [13:56:35]MH_SAM_APDU [13:56:35]CAPDU: 80 11 00 00 [13:56:35]Write to MH i2c: E2 08 00 53 29 80 11 00 00 00 00 00 00 F6 [13:56:35]Write i2c OK [13:56:35]MH_I2C_Read... [13:56:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:56:35]Read from MH i2c: E2 [13:56:35]MH_I2C_Read... [13:56:35]Read from MH i2c: E2 17 00 [13:56:35]MH_I2C_Read... [13:56:35]Read from MH i2c: E2 17 00 53 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 54 [13:56:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [13:56:35]wFMCommunicate OK [13:56:35]CreateOFDProtocolMessage done [13:56:35]OFDSenderStorePacket 123248 [13:56:35]StoreOFDPacket docnum=123248 [13:56:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 1D 40 07 01 B2 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 95 81 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 70 E1 01 00 35 04 06 00 92 D1 DE 23 7C 74 68 4F E1 43 41 4A E8 91 [13:56:35]CheckFolder [13:56:35]dirname=/storage/ofd_packets [13:56:35]CheckFolder done [13:56:35]ProducePacketName [13:56:35]name=ofd_packets/00123248 [13:56:35]NVStorageSaveData ofd_packets/00123248 [13:56:35]File name is /storage/ofd_packets/00123248 [13:56:35]Write 301 bytes [13:56:35]NVStorageSaveData done [13:56:35]OFDSenderStorePacket done [13:56:35]KKMCreateOFDPacket done [13:56:35]NVStorageSaveData kkm_last_timestamp [13:56:35]File name is /storage/kkm_last_timestamp [13:56:35]Write 4 bytes [13:56:35]NVStorageSaveData done [13:56:35]ExternCall_PrintAddStr [13:56:35]wPrintStart [13:56:35]Write to MH i2c: 01 00 00 54 29 7D [13:56:35]Write i2c OK [13:56:35]MH_I2C_Read... [13:56:35]Read from MH i2c: 01 [13:56:35]MH_I2C_Read... [13:56:35]Read from MH i2c: 01 07 00 [13:56:35]MH_I2C_Read... [13:56:35]Read from MH i2c: 01 07 00 54 29 00 00 00 00 00 FF 0F 92 [13:56:35]RasterBufferAndPrint [13:56:35]line Счет N : (1)1106180 [13:56:35]line ИНН: 02508201610067 [13:56:35]line Контрольно-Кассовый Чек [13:56:35]line ПРОДАЖА [13:56:35]line ТРК (МРК, ГНК) : 52 [13:56:35]line Товар: 2710124130 [13:56:35]line Аи-92-К-5 [13:56:35]line 8.080 * 61.90 [13:56:35]line = 500.15 [13:56:35]line НДС 12% НСП 1% [13:56:35]line > о реализуемом товаре [13:56:35]line ОКРУГЛЕНИЕ: -0.15 [13:56:35]line ИТОГО: 500.00 [13:56:35]line Внесено: 500.00 [13:56:35]line СДАЧА: 0.00 [13:56:35]line НСП 1% : 4.43 [13:56:35]line НДС 12% : 53.11 [13:56:35]line Наличными: 500.00 [13:56:35]line Безнал.: 0.00 [13:56:35]line Место: АЗС № 25 "Партнер Нефть" [13:56:35]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [13:56:35]line СНО: Общий режим [13:56:35]line Чек 105 03.03.2024 13:56 [13:56:35]line Смена: 323 ФФД: 1.0 [13:56:35]line ЗНМ: 0300000019 [13:56:35]line РНМ: 0000000000090573 [13:56:35]line Версия ККМ: 001 [13:56:35]line ФМ: 0000000000874798 [13:56:35]line ФД: 123248 [13:56:35]line ФПД: 161430072687732 [13:56:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T135637&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123248&fm=161430072687732&tin=02508201610067®Number=0000000000090573&sum=50000 [13:56:35]OFD Sender: Processing packet 123248 [packets to send 112, broken 111] [13:56:35]ProducePacketName [13:56:35]name=ofd_packets/00123248 [13:56:35]OFD Sender: To server: pG, [13:56:35]CommunicateWithHost lk.salyk.kg:30040 [13:56:35]ConnectInit lk.salyk.kg [13:56:35]written 0, free lines is 4095 [13:56:35]Connected sock=10 [13: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 37 39 38 0F 01 00 00 1D 40 07 01 B2 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 95 81 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 70 E1 01 00 35 04 06 00 92 D1 DE 23 7C 74 68 4F E1 43 41 4A E8 91 [13: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 37 39 38 4F 00 00 00 AB 59 47 00 74 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 37 39 38 10 04 04 00 70 E1 01 00 F4 03 04 00 C0 2D E4 65 B6 04 01 00 00 17 88 07 99 AF 30 82 8E [13:56:36]CommunicateWithHost err = 0 [13:56:36]CheckOFDResponse [13:56:36]1017 (14) - 77093643461234 [13:56:36]1041 (16) - 0000000000874798 [13:56:36]1040 (4) - 123248 [13:56:36]1012 (4) - 03.03.2024 07:58 [13:56:36]1206 (1) - 0 [13:56:36]OFD Sender: Remove packet 123248 [13:56:36]ProducePacketName [13:56:36]name=ofd_packets/00123248 [13:56:36]NVStorageDeleteData [13:56:36]Write to MH i2c: 01 00 00 7F 29 A8 [13:56:36]Write i2c OK [13:56:36]MH_I2C_Read... [13:56:36]Read from MH i2c: 01 [13:56:36]MH_I2C_Read... [13:56:36]Read from MH i2c: 01 07 00 [13:56:36]MH_I2C_Read... [13:56:36]Read from MH i2c: 01 07 00 7F 29 00 00 00 00 00 EF 0C AA [13:56:36]RasterBufferAndPrint [13:56:36]line [13:56:36]line [13:56:36]line [13:56:36]line [13:56:36]line [13:56:36]written 0, free lines is 3317 [13:56:36]MH_Cut [13:56:36]Write to MH i2c: D1 01 00 86 29 01 81 [13:56:36]Write i2c OK [13:56:36]MH_I2C_Read... [13:56:36]Read from MH i2c: D1 [13:56:36]MH_I2C_Read... [13:56:36]Read from MH i2c: D1 01 00 [13:56:36]MH_I2C_Read... [13:56:36]Read from MH i2c: D1 01 00 86 29 00 80 [13:56:36]Write to MH i2c: 01 00 00 87 29 B0 [13:56:36]Write i2c OK [13:56:36]MH_I2C_Read... [13:56:36]OFD Sender: No OFD packet to send [13:56:36]*** Cut start [13:56:36]*** Purtial cut [13:56:36]*** Stage 1: CUTSNS_PIN = 1 [13:56:38]Read from MH i2c: 01 [13:56:38]MH_I2C_Read... [13:56:38]*** Stop cut motor [13:56:38]*** Cut end [13:56:38]Read from MH i2c: 01 07 00 [13:56:38]MH_I2C_Read... [13:56:38]Read from MH i2c: 01 07 00 87 29 00 00 00 00 00 FF 0F C5 [13:56:38]process_action close_receipt done [13:56:38]requested_data is exist [13:56:38]produce_requested_data [13:56:38]requested_item fm.sn is exist - process it [13:56:38]wFMCommunicate request_size=4 [13:56:38]MH_SAM_APDU [13:56:38]CAPDU: 80 11 00 00 [13:56:38]Write to MH i2c: E2 08 00 88 29 80 11 00 00 00 00 00 00 2B [13:56:38]Write i2c OK [13:56:38]MH_I2C_Read... [13:56:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:56:39]Read from MH i2c: E2 [13:56:39]MH_I2C_Read... [13:56:39]Read from MH i2c: E2 17 00 [13:56:39]MH_I2C_Read... [13:56:39]Read from MH i2c: E2 17 00 88 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 89 [13:56:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [13:56:39]wFMCommunicate OK [13:56:39]requested_item fd.num is exist - process it [13:56:39]SAM_PROTO_GetFieldsCounters [13:56:39]wFMCommunicate request_size=4 [13:56:39]MH_SAM_APDU [13:56:39]CAPDU: 80 13 00 00 [13:56:39]Write to MH i2c: E2 08 00 89 29 80 13 00 00 00 00 00 00 2E [13:56:39]Write i2c OK [13:56:39]MH_I2C_Read... [13:56:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:56:39]Read from MH i2c: E2 [13:56:39]MH_I2C_Read... [13:56:39]Read from MH i2c: E2 62 00 [13:56:39]MH_I2C_Read... [13:56:39]Read from MH i2c: E2 62 00 89 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 70 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 2A [13:56:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 70 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:56:39]wFMCommunicate OK [13:56:39]SAM_PROTO_GetFieldsCounters done [13:56:39]requested_item shift.num is exist - process it [13:56:39]requested_item shift.opened is exist - process it [13:56:39]req_shift_opened [13:56:39]FM_GetShiftState [13:56:39]SAM_PROTO_GetShiftState [13:56:39]wFMCommunicate request_size=4 [13:56:39]MH_SAM_APDU [13:56:39]CAPDU: 80 13 01 00 [13:56:39]Write to MH i2c: E2 08 00 8A 29 80 13 01 00 00 00 00 00 30 [13:56:39]Write i2c OK [13:56:39]MH_I2C_Read... [13:56:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:56:39]Read from MH i2c: E2 [13:56:39]MH_I2C_Read... [13:56:39]Read from MH i2c: E2 0E 00 [13:56:39]MH_I2C_Read... [13:56:39]Read from MH i2c: E2 0E 00 8A 29 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 F2 [13:56:39]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [13:56:39]wFMCommunicate OK [13:56:39]SAM_PROTO_GetShiftState done [13:56:39]FM_GetShiftState done [13:56:39]req_shift_opened done [13:56:39]requested_item shift.open_date is exist - process it [13:56:39]req_shift_open_date [13:56:39]req_shift_open_date done [13:56:39]produce_requested_data done [13:56:39]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123248,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [13:56:39]process_action_free close_receipt [13:56:39]json_value_free [13:56:39]json_value_free done [13:56:39]process_json_proto returns [13:56:39]Send response to host [13:56:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123248,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [13:56:39]free response buf [13:56:39]execute_script done [13:56:39]execute_script returns [13:56:39]free content buf [13:56:39]Sock 9.Close socket [13:56:39]Sock 9.Thread stoped [13:56:41]OFD Sender: No OFD packet to send [13:56:46]OFD Sender: No OFD packet to send [13:56:51]OFD Sender: No OFD packet to send [13:56:56]OFD Sender: No OFD packet to send [13:57:01]OFD Sender: No OFD packet to send [13:57:06]OFD Sender: No OFD packet to send [13:57:11]OFD Sender: No OFD packet to send [13:57:16]OFD Sender: No OFD packet to send [13:57:21]OFD Sender: No OFD packet to send [13:57:26]OFD Sender: No OFD packet to send [13:57:31]OFD Sender: No OFD packet to send [13:57:36]OFD Sender: No OFD packet to send [13:57:41]OFD Sender: No OFD packet to send [13:57:46]OFD Sender: No OFD packet to send [13:57:51]OFD Sender: No OFD packet to send [13:57:56]OFD Sender: No OFD packet to send [13:58:01]OFD Sender: No OFD packet to send [13:58:06]OFD Sender: No OFD packet to send [13:58:11]OFD Sender: No OFD packet to send [13:58:16]OFD Sender: No OFD packet to send [13:58:21]OFD Sender: No OFD packet to send [13:58:26]OFD Sender: No OFD packet to send [13:58:31]OFD Sender: No OFD packet to send [13:58:36]OFD Sender: No OFD packet to send [13:58:41]OFD Sender: No OFD packet to send [13:58:46]OFD Sender: No OFD packet to send [13:58:51]OFD Sender: No OFD packet to send [13:58:56]OFD Sender: No OFD packet to send [13:59:01]OFD Sender: No OFD packet to send [13:59:06]OFD Sender: No OFD packet to send [13:59:11]OFD Sender: No OFD packet to send [13:59:16]OFD Sender: No OFD packet to send [13:59:21]OFD Sender: No OFD packet to send [13:59:26]OFD Sender: No OFD packet to send [13:59:31]OFD Sender: No OFD packet to send [13:59:36]OFD Sender: No OFD packet to send [13:59:41]OFD Sender: No OFD packet to send [13:59:46]OFD Sender: No OFD packet to send [13:59:51]OFD Sender: No OFD packet to send [13:59:56]OFD Sender: No OFD packet to send [14:00:01]OFD Sender: No OFD packet to send [14:00:06]OFD Sender: No OFD packet to send [14:00:11]OFD Sender: No OFD packet to send [14:00:16]OFD Sender: No OFD packet to send [14:00:18]accept exits with 7 [14:00:18]New connection [14:00:18]New thread 3067395428 created [14:00:18]Thread 3067252068 joined [14:00:18]Waiting for new connection... [14:00:18] Sock 7.Parse request [14:00:18]Sock 7.Check first char [14:00:18]Sock 7.First char is OK [14:00:18]request: POST /json_proto HTTP/1.0 [14:00:18]Method: POST [14:00:18]URL: /json_proto [14:00:18]Method is POST - this is cgi request [14:00:18]url: /json_proto [14:00:18]query_string will be loaded in cgi processing [14:00:18]execute_cgi json_proto POST (null) [14:00:18]execute_cgi path=json_proto method=POST [14:00:18]POST find Content-Length [14:00:18]Host: 172.17.48.197:8080 [14:00:18]Content-Length: 1210 [14:00:18]Content-Type: application/json [14:00:18] [14:00:18]POST finish read [14:00:18]Found Content-Length = 1210 [14:00:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106181\u000A03.03.2024 13:56\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 32.320 x 61.90\u000A\u0418\u0422\u041E\u0413: 2000.61\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A00350\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:00:18]execute_script... [14:00:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106181\u000A03.03.2024 13:56\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 32.320 x 61.90\u000A\u0418\u0422\u041E\u0413: 2000.61\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A00350\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:00:18]POST & json_proto [14:00:18]process_json_proto [14:00:18]json parsed OK: [14:00:18]protocol is kg_v1.0 [14:00:18]action value=print_text [14:00:18]process_action print_text [14:00:18]cmd_print_text [14:00:18]ExternCall_PrintAddStr [14:00:18]wPrintStart [14:00:18]Write to MH i2c: 01 00 00 8B 29 B4 [14:00:18]Write i2c OK [14:00:18]MH_I2C_Read... [14:00:18]Read from MH i2c: 01 [14:00:18]MH_I2C_Read... [14:00:18]Read from MH i2c: 01 07 00 [14:00:18]MH_I2C_Read... [14:00:18]Read from MH i2c: 01 07 00 8B 29 00 00 00 00 00 FF 0F C9 [14:00:18]RasterBufferAndPrint [14:00:18]line *****ТОВАРНЫЙ ЧЕК***** [14:00:18]line АЗС 25 [14:00:18]line Партнер нефть [14:00:18]line 02508201610067 [14:00:18]line Кассир : Турдумбек у. К. [14:00:18]line Счет N : (1)1106181 [14:00:18]line 03.03.2024 13:56 [14:00:18]line ПРОДАЖА [14:00:18]line ТРК (МРК, ГНК): 11 [14:00:18]line Вид ГСМ : 2710124130 [14:00:18]line Аи-92-К-5 [14:00:18]line 32.320 x 61.90 [14:00:18]line ИТОГ: 2000.61 [14:00:18]line Тип оплаты: Талоны: Топливная Карта [14:00:18]line 00350 [14:00:18]line ______________________ [14:00:18]line (подпись) [14:00:18]written 0, free lines is 4095 [14:00:18]Write to MH i2c: 01 00 00 A0 29 C9 [14:00:18]Write i2c OK [14:00:18]MH_I2C_Read... [14:00:18]Read from MH i2c: 01 [14:00:18]MH_I2C_Read... [14:00:18]Read from MH i2c: 01 07 00 [14:00:18]MH_I2C_Read... [14:00:18]Read from MH i2c: 01 07 00 A0 29 00 00 00 00 00 F8 0D D5 [14:00:18]RasterBufferAndPrint [14:00:18]line [14:00:18]line [14:00:18]line [14:00:18]line [14:00:18]line [14:00:18]written 0, free lines is 3578 [14:00:18]MH_Cut [14:00:18]Write to MH i2c: D1 01 00 A7 29 01 A2 [14:00:18]Write i2c OK [14:00:18]MH_I2C_Read... [14:00:18]Read from MH i2c: D1 [14:00:18]MH_I2C_Read... [14:00:18]Read from MH i2c: D1 01 00 [14:00:18]MH_I2C_Read... [14:00:18]Read from MH i2c: D1 01 00 A7 29 00 A1 [14:00:18]Write to MH i2c: 01 00 00 A8 29 D1 [14:00:18]Write i2c OK [14:00:18]MH_I2C_Read... [14:00:19]*** Cut start [14:00:19]*** Purtial cut [14:00:19]*** Stage 1: CUTSNS_PIN = 1 [14:00:21]Read from MH i2c: 01 [14:00:21]MH_I2C_Read... [14:00:21]*** Stop cut motor [14:00:21]*** Cut end [14:00:21]Read from MH i2c: 01 07 00 [14:00:21]MH_I2C_Read... [14:00:21]Read from MH i2c: 01 07 00 A8 29 00 00 00 00 00 FF 0F E6 [14:00:21]process_action print_text done [14:00:21]requested_data is exist [14:00:21]produce_requested_data [14:00:21]requested_item fm.sn is exist - process it [14:00:21]wFMCommunicate request_size=4 [14:00:21]MH_SAM_APDU [14:00:21]CAPDU: 80 11 00 00 [14:00:21]Write to MH i2c: E2 08 00 A9 29 80 11 00 00 00 00 00 00 4C [14:00:21]Write i2c OK [14:00:21]MH_I2C_Read... [14:00:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:21]Read from MH i2c: E2 [14:00:21]MH_I2C_Read... [14:00:21]Read from MH i2c: E2 17 00 [14:00:21]MH_I2C_Read... [14:00:21]Read from MH i2c: E2 17 00 A9 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 AA [14:00:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [14:00:21]wFMCommunicate OK [14:00:21]requested_item fd.num is exist - process it [14:00:21]SAM_PROTO_GetFieldsCounters [14:00:21]wFMCommunicate request_size=4 [14:00:21]MH_SAM_APDU [14:00:21]CAPDU: 80 13 00 00 [14:00:21]Write to MH i2c: E2 08 00 AA 29 80 13 00 00 00 00 00 00 4F [14:00:21]Write i2c OK [14:00:21]MH_I2C_Read... [14:00:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:00:21]Read from MH i2c: E2 [14:00:21]MH_I2C_Read... [14:00:21]Read from MH i2c: E2 62 00 [14:00:21]MH_I2C_Read... [14:00:21]Read from MH i2c: E2 62 00 AA 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 70 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 4B [14:00: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 70 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:00:21]wFMCommunicate OK [14:00:21]SAM_PROTO_GetFieldsCounters done [14:00:21]requested_item shift.num is exist - process it [14:00:21]requested_item shift.opened is exist - process it [14:00:21]req_shift_opened [14:00:21]FM_GetShiftState [14:00:21]SAM_PROTO_GetShiftState [14:00:21]wFMCommunicate request_size=4 [14:00:21]MH_SAM_APDU [14:00:21]CAPDU: 80 13 01 00 [14:00:21]Write to MH i2c: E2 08 00 AB 29 80 13 01 00 00 00 00 00 51 [14:00:21]Write i2c OK [14:00:21]MH_I2C_Read... [14:00:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:00:21]Read from MH i2c: E2 [14:00:21]MH_I2C_Read... [14:00:21]Read from MH i2c: E2 0E 00 [14:00:21]MH_I2C_Read... [14:00:21]Read from MH i2c: E2 0E 00 AB 29 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 13 [14:00:21]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [14:00:21]wFMCommunicate OK [14:00:21]SAM_PROTO_GetShiftState done [14:00:21]FM_GetShiftState done [14:00:21]req_shift_opened done [14:00:21]requested_item shift.open_date is exist - process it [14:00:21]req_shift_open_date [14:00:21]req_shift_open_date done [14:00:21]produce_requested_data done [14:00:21]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123248,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [14:00:21]process_action_free print_text [14:00:21]json_value_free [14:00:21]json_value_free done [14:00:21]process_json_proto returns [14:00:21]Send response to host [14:00:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123248,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [14:00:21]free response buf [14:00:21]execute_script done [14:00:21]execute_script returns [14:00:21]free content buf [14:00:21]Sock 7.Close socket [14:00:21]Sock 7.Thread stoped [14:00:21]OFD Sender: No OFD packet to send [14:00:26]OFD Sender: No OFD packet to send [14:00:31]OFD Sender: No OFD packet to send [14:00:36]OFD Sender: No OFD packet to send [14:00:41]OFD Sender: No OFD packet to send [14:00:46]OFD Sender: No OFD packet to send [14:00:51]OFD Sender: No OFD packet to send [14:00:56]OFD Sender: No OFD packet to send [14:01:01]OFD Sender: No OFD packet to send [14:01:06]OFD Sender: No OFD packet to send [14:01:11]OFD Sender: No OFD packet to send [14:01:16]OFD Sender: No OFD packet to send [14:01:21]OFD Sender: No OFD packet to send [14:01:26]OFD Sender: No OFD packet to send [14:01:31]OFD Sender: No OFD packet to send [14:01:36]OFD Sender: No OFD packet to send [14:01:41]OFD Sender: No OFD packet to send [14:01:46]OFD Sender: No OFD packet to send [14:01:51]OFD Sender: No OFD packet to send [14:01:55]accept exits with 9 [14:01:55]New connection [14:01:55]New thread 3067252068 created [14:01:55]Thread 3067395428 joined [14:01:55]Waiting for new connection... [14:01:55] Sock 9.Parse request [14:01:55]Sock 9.Check first char [14:01:55]Sock 9.First char is OK [14:01:55]request: POST /json_proto HTTP/1.0 [14:01:55]Method: POST [14:01:55]URL: /json_proto [14:01:55]Method is POST - this is cgi request [14:01:55]url: /json_proto [14:01:55]query_string will be loaded in cgi processing [14:01:55]execute_cgi json_proto POST (null) [14:01:55]execute_cgi path=json_proto method=POST [14:01:55]POST find Content-Length [14:01:55]Host: 172.17.48.197:8080 [14:01:55]Content-Length: 809 [14:01:55]Content-Type: application/json [14:01:55] [14:01:55]POST finish read [14:01:55]Found Content-Length = 809 [14:01:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106182", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 50.360, "sum" : 3500.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3500.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:01:55]execute_script... [14:01: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)1106182", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 50.360, "sum" : 3500.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3500.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:01:55]POST & json_proto [14:01:55]process_json_proto [14:01:55]json parsed OK: [14:01:55]protocol is kg_v1.0 [14:01:55]action value=close_receipt [14:01:55]process_action close_receipt [14:01:55]cmd_close_receipt [14:01:55]MH_GetDate [14:01:55]Write to MH i2c: F0 00 00 AC 29 C4 [14:01:55]Write i2c OK [14:01:55]MH_I2C_Read... [14:01:55]Read from MH i2c: F0 [14:01:55]MH_I2C_Read... [14:01:55]Read from MH i2c: F0 09 00 [14:01:55]MH_I2C_Read... [14:01:55]Read from MH i2c: F0 09 00 AC 29 00 D7 82 E4 65 6C AF E3 65 D2 [14:01:55]GetLastDocTimeStamp 1709474197 [14:01:55]current date 1709474519 [14:01:55]FM_GetShiftState [14:01:55]SAM_PROTO_GetShiftState [14:01:55]wFMCommunicate request_size=4 [14:01:55]MH_SAM_APDU [14:01:55]CAPDU: 80 13 01 00 [14:01:55]Write to MH i2c: E2 08 00 AD 29 80 13 01 00 00 00 00 00 53 [14:01:55]Write i2c OK [14:01:55]MH_I2C_Read... [14:01:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:01:55]Read from MH i2c: E2 [14:01:55]MH_I2C_Read... [14:01:55]Read from MH i2c: E2 0E 00 [14:01:55]MH_I2C_Read... [14:01:55]Read from MH i2c: E2 0E 00 AD 29 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 15 [14:01:55]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [14:01:55]wFMCommunicate OK [14:01:55]SAM_PROTO_GetShiftState done [14:01:55]FM_GetShiftState done [14:01:55]opened in 1709425579 [14:01:55]opened+sec_in_day 1709511979 [14:01:55]quantity*price = 350002 [14:01:55]sum+1 = 350003 [14:01:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3500.02 НСП 1% : 30.97 НДС 12% : 371.68 Наличными: 0.00 Безнал.: 3500.02 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 106 03.03.2024 14:01 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874798 ФД: 123249 ФПД: 256782229756424 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T140159&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123249&fm=256782229756424&tin=02508201610067®Number=0000000000090573&sum=350002 [14:01:57]StoreToDocumentArchive [14:01:57]shift 323 fd 123249 [14:01:57]save to /storage/0323/doc_00123249 [14:01:57]save last doc name /storage/0323/doc_00123249 to /storage/kkm_last_doc_name [14:01:57]save OK [14:01:57]Clear old archive folders... [14:01:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:01:57]tlvbuf is 00DC0C40 [14:01:57]SAM_PROTO_ClearQueue [14:01:57]wFMCommunicate request_size=4 [14:01:57]MH_SAM_APDU [14:01:57]CAPDU: 80 09 00 00 [14:01:57]Write to MH i2c: E2 08 00 BA 29 80 09 00 00 00 00 00 00 55 [14:01:57]Write i2c OK [14:01:57]MH_I2C_Read... [14:01:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:01:57]Read from MH i2c: E2 [14:01:57]MH_I2C_Read... [14:01:57]Read from MH i2c: E2 03 00 [14:01:57]MH_I2C_Read... [14:01:57]Read from MH i2c: E2 03 00 BA 29 00 90 00 57 [14:01:57]RAPDU: 90 00 [14:01:57]wFMCommunicate OK [14:01:57]SAM_PROTO_ClearQueue done [14:01:57]KKMCreateOFDPacket [14:01:57]OFDProtocolAddRootSTLVToBuf [14:01:57]FM_MakeSignedData [14:01:57]FM_MakeSignedData [14:01:57]SAM_PROTO_SignData [14:01:57]wFMCommunicate request_size=4 [14:01:57]MH_SAM_APDU [14:01:57]CAPDU: 80 0D 01 02 [14:01:57]Write to MH i2c: E2 08 00 BB 29 80 0D 01 02 00 00 00 00 5D [14:01:57]Write i2c OK [14:01:57]MH_I2C_Read... [14:01:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:01:57]Read from MH i2c: E2 [14:01:57]MH_I2C_Read... [14:01:57]Read from MH i2c: E2 03 00 [14:01:57]MH_I2C_Read... [14:01:57]Read from MH i2c: E2 03 00 BB 29 00 90 00 58 [14:01:57]RAPDU: 90 00 [14:01:57]wFMCommunicate OK [14:01:57]wFMCommunicate request_size=255 [14:01:57]MH_SAM_APDU [14:01:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B8 C4 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 32 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 32 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 91 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 32 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 D7 82 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 71 E1 01 00 35 04 06 00 E9 [14:01:57]Write to MH i2c: E2 02 01 BC 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B8 C4 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 32 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 32 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 91 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 32 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 D7 82 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 71 E1 01 00 35 04 06 00 E9 00 00 4E [14:01:57]Write i2c OK [14:01:57]MH_I2C_Read... [14:01:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:01:57]Read from MH i2c: E2 [14:01:57]MH_I2C_Read... [14:01:57]Read from MH i2c: E2 03 00 [14:01:57]MH_I2C_Read... [14:01:57]Read from MH i2c: E2 03 00 BC 29 00 90 00 59 [14:01:57]RAPDU: 90 00 [14:01:57]wFMCommunicate OK [14:01:57]wFMCommunicate request_size=10 [14:01:57]MH_SAM_APDU [14:01:57]CAPDU: 80 0D 02 02 05 8A C5 96 DA 08 [14:01:57]Write to MH i2c: E2 0D 00 BD 29 80 0D 02 02 05 00 8A C5 96 DA 08 00 00 31 [14:01:57]Write i2c OK [14:01:57]MH_I2C_Read... [14:01:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:01:57]Read from MH i2c: E2 [14:01:57]MH_I2C_Read... [14:01:57]Read from MH i2c: E2 03 00 [14:01:57]MH_I2C_Read... [14:01:57]Read from MH i2c: E2 03 00 BD 29 00 90 00 5A [14:01:57]RAPDU: 90 00 [14:01:57]wFMCommunicate OK [14:01:57]wFMCommunicate request_size=4 [14:01:57]MH_SAM_APDU [14:01:57]CAPDU: 80 0D 03 02 [14:01:57]Write to MH i2c: E2 08 00 BE 29 80 0D 03 02 00 00 00 00 62 [14:01:57]Write i2c OK [14:01:57]MH_I2C_Read... [14:01:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:01:57]Read from MH i2c: E2 [14:01:57]MH_I2C_Read... [14:01:57]Read from MH i2c: E2 0B 00 [14:01:57]MH_I2C_Read... [14:01:57]Read from MH i2c: E2 0B 00 BE 29 00 8E 92 5E 45 DF C1 30 3D 90 00 33 [14:01:57]RAPDU: 8E 92 5E 45 DF C1 30 3D 90 00 [14:01:57]wFMCommunicate OK [14:01:57]SAM_PROTO_SignData done [14:01:57]FM_MakeSignedData done [14:01:57]CreateOFDProtocolMessage [14:01:57]wFMCommunicate request_size=4 [14:01:57]MH_SAM_APDU [14:01:57]CAPDU: 80 11 00 00 [14:01:57]Write to MH i2c: E2 08 00 BF 29 80 11 00 00 00 00 00 00 62 [14:01:57]Write i2c OK [14:01:57]MH_I2C_Read... [14:01:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:01:57]Read from MH i2c: E2 [14:01:57]MH_I2C_Read... [14:01:57]Read from MH i2c: E2 17 00 [14:01:57]MH_I2C_Read... [14:01:57]Read from MH i2c: E2 17 00 BF 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 C0 [14:01:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [14:01:57]wFMCommunicate OK [14:01:57]CreateOFDProtocolMessage done [14:01:57]OFDSenderStorePacket 123249 [14:01:57]StoreOFDPacket docnum=123249 [14:01:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 C8 DB 07 01 B6 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B8 C4 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 32 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 32 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 91 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 32 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 D7 82 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 71 E1 01 00 35 04 06 00 E9 8A C5 96 DA 08 8E 92 5E 45 DF C1 30 3D [14:01:57]CheckFolder [14:01:57]dirname=/storage/ofd_packets [14:01:57]CheckFolder done [14:01:57]ProducePacketName [14:01:57]name=ofd_packets/00123249 [14:01:57]NVStorageSaveData ofd_packets/00123249 [14:01:57]File name is /storage/ofd_packets/00123249 [14:01:57]Write 301 bytes [14:01:57]NVStorageSaveData done [14:01:57]OFDSenderStorePacket done [14:01:57]KKMCreateOFDPacket done [14:01:57]NVStorageSaveData kkm_last_timestamp [14:01:57]File name is /storage/kkm_last_timestamp [14:01:57]Write 4 bytes [14:01:57]NVStorageSaveData done [14:01:57]OFD Sender: Processing packet 123249 [packets to send 112, broken 111] [14:01:57]ProducePacketName [14:01:57]name=ofd_packets/00123249 [14:01:57]OFD Sender: To server: pG, [14:01:57]CommunicateWithHost lk.salyk.kg:30040 [14:01:57]ConnectInit lk.salyk.kg [14:01:57]ExternCall_PrintAddStr [14:01:57]wPrintStart [14:01:57]Write to MH i2c: 01 00 00 C0 29 E9 [14:01:57]Write i2c OK [14:01:57]MH_I2C_Read... [14:01:57]Read from MH i2c: 01 [14:01:57]MH_I2C_Read... [14:01:57]Read from MH i2c: 01 07 00 [14:01:57]MH_I2C_Read... [14:01:57]Read from MH i2c: 01 07 00 C0 29 00 00 00 00 00 FF 0F FE [14:01:57]RasterBufferAndPrint [14:01:57]line Счет N : (1)1106182 [14:01:57]line ИНН: 02508201610067 [14:01:57]line Контрольно-Кассовый Чек [14:01:57]line ПРОДАЖА [14:01:57]line ТРК (МРК, ГНК) : 63 [14:01:57]line Товар: 2710124500 [14:01:57]line Аи-95-К-5 [14:01:57]line 50.360 * 69.50 [14:01:57]line = 3500.02 [14:01:57]line НДС 12% НСП 1% [14:01:57]line > о реализуемом товаре [14:01:57]line ИТОГО: 3500.02 [14:01:57]line НСП 1% : 30.97 [14:01:57]line НДС 12% : 371.68 [14:01:57]line Наличными: 0.00 [14:01:57]line Безнал.: 3500.02 [14:01:57]line Место: АЗС № 25 "Партнер Нефть" [14:01:57]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [14:01:57]line СНО: Общий режим [14:01:57]line Чек 106 03.03.2024 14:01 [14:01:57]line Смена: 323 ФФД: 1.0 [14:01:57]line ЗНМ: 0300000019 [14:01:57]line РНМ: 0000000000090573 [14:01:57]line Версия ККМ: 001 [14:01:57]line Платежная система: О! деньги [14:01:57]line ФМ: 0000000000874798 [14:01:57]line ФД: 123249 [14:01:57]line ФПД: 256782229756424 [14:01:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T140159&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123249&fm=256782229756424&tin=02508201610067®Number=0000000000090573&sum=350002 [14:01:57]Connected sock=11 [14:01: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 37 39 38 0F 01 00 00 C8 DB 07 01 B6 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B8 C4 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 32 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 32 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 91 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 32 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 D7 82 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 71 E1 01 00 35 04 06 00 E9 8A C5 96 DA 08 8E 92 5E 45 DF C1 30 3D [14:01:57]written 0, free lines is 4095 [14:01:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 30 DA 47 00 A1 C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 71 E1 01 00 F4 03 04 00 02 2F E4 65 B6 04 01 00 00 D6 EA 7B 17 5A DD ED 42 [14:01:58]CommunicateWithHost err = 0 [14:01:58]CheckOFDResponse [14:01:58]1017 (14) - 77093643461234 [14:01:58]1041 (16) - 0000000000874798 [14:01:58]1040 (4) - 123249 [14:01:58]1012 (4) - 03.03.2024 08:04 [14:01:58]1206 (1) - 0 [14:01:58]OFD Sender: Remove packet 123249 [14:01:58]ProducePacketName [14:01:58]name=ofd_packets/00123249 [14:01:58]NVStorageDeleteData [14:01:58]Write to MH i2c: 01 00 00 EA 29 13 [14:01:58]Write i2c OK [14:01:58]MH_I2C_Read... [14:01:58]Read from MH i2c: 01 [14:01:58]MH_I2C_Read... [14:01:58]Read from MH i2c: 01 07 00 [14:01:58]MH_I2C_Read... [14:01:58]Read from MH i2c: 01 07 00 EA 29 00 00 00 00 00 05 0D 2C [14:01:58]RasterBufferAndPrint [14:01:58]line [14:01:58]line [14:01:58]line [14:01:58]line [14:01:58]line [14:01:58]written 0, free lines is 3339 [14:01:58]MH_Cut [14:01:58]Write to MH i2c: D1 01 00 F1 29 01 EC [14:01:58]Write i2c OK [14:01:58]MH_I2C_Read... [14:01:58]Read from MH i2c: D1 [14:01:58]MH_I2C_Read... [14:01:58]Read from MH i2c: D1 01 00 [14:01:58]MH_I2C_Read... [14:01:58]Read from MH i2c: D1 01 00 F1 29 00 EB [14:01:58]Write to MH i2c: 01 00 00 F2 29 1B [14:01:58]Write i2c OK [14:01:58]MH_I2C_Read... [14:01:58]OFD Sender: No OFD packet to send [14:01:59]*** Cut start [14:01:59]*** Purtial cut [14:01:59]*** Stage 1: CUTSNS_PIN = 1 [14:02:01]Read from MH i2c: 01 [14:02:01]MH_I2C_Read... [14:02:01]*** Stop cut motor [14:02:01]*** Cut end [14:02:01]Read from MH i2c: 01 07 00 [14:02:01]MH_I2C_Read... [14:02:01]Read from MH i2c: 01 07 00 F2 29 00 00 00 00 00 FF 0F 30 [14:02:01]process_action close_receipt done [14:02:01]requested_data is exist [14:02:01]produce_requested_data [14:02:01]requested_item fm.sn is exist - process it [14:02:01]wFMCommunicate request_size=4 [14:02:01]MH_SAM_APDU [14:02:01]CAPDU: 80 11 00 00 [14:02:01]Write to MH i2c: E2 08 00 F3 29 80 11 00 00 00 00 00 00 96 [14:02:01]Write i2c OK [14:02:01]MH_I2C_Read... [14:02:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:02:01]Read from MH i2c: E2 [14:02:01]MH_I2C_Read... [14:02:01]Read from MH i2c: E2 17 00 [14:02:01]MH_I2C_Read... [14:02:01]Read from MH i2c: E2 17 00 F3 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 F4 [14:02:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [14:02:01]wFMCommunicate OK [14:02:01]requested_item fd.num is exist - process it [14:02:01]SAM_PROTO_GetFieldsCounters [14:02:01]wFMCommunicate request_size=4 [14:02:01]MH_SAM_APDU [14:02:01]CAPDU: 80 13 00 00 [14:02:01]Write to MH i2c: E2 08 00 F4 29 80 13 00 00 00 00 00 00 99 [14:02:01]Write i2c OK [14:02:01]MH_I2C_Read... [14:02:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:02:01]Read from MH i2c: E2 [14:02:01]MH_I2C_Read... [14:02:01]Read from MH i2c: E2 62 00 [14:02:01]MH_I2C_Read... [14:02:01]Read from MH i2c: E2 62 00 F4 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 71 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 99 [14:02: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 71 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:02:01]wFMCommunicate OK [14:02:01]SAM_PROTO_GetFieldsCounters done [14:02:01]requested_item shift.num is exist - process it [14:02:01]requested_item shift.opened is exist - process it [14:02:01]req_shift_opened [14:02:01]FM_GetShiftState [14:02:01]SAM_PROTO_GetShiftState [14:02:01]wFMCommunicate request_size=4 [14:02:01]MH_SAM_APDU [14:02:01]CAPDU: 80 13 01 00 [14:02:01]Write to MH i2c: E2 08 00 F5 29 80 13 01 00 00 00 00 00 9B [14:02:01]Write i2c OK [14:02:01]MH_I2C_Read... [14:02:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:02:01]Read from MH i2c: E2 [14:02:01]MH_I2C_Read... [14:02:01]Read from MH i2c: E2 0E 00 [14:02:01]MH_I2C_Read... [14:02:01]Read from MH i2c: E2 0E 00 F5 29 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 5D [14:02:01]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [14:02:01]wFMCommunicate OK [14:02:01]SAM_PROTO_GetShiftState done [14:02:01]FM_GetShiftState done [14:02:01]req_shift_opened done [14:02:01]requested_item shift.open_date is exist - process it [14:02:01]req_shift_open_date [14:02:01]req_shift_open_date done [14:02:01]produce_requested_data done [14:02:01]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123249,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [14:02:01]process_action_free close_receipt [14:02:01]json_value_free [14:02:01]json_value_free done [14:02:01]process_json_proto returns [14:02:01]Send response to host [14:02:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123249,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [14:02:01]free response buf [14:02:01]execute_script done [14:02:01]execute_script returns [14:02:01]free content buf [14:02:01]Sock 9.Close socket [14:02:01]Sock 9.Thread stoped [14:02:03]OFD Sender: No OFD packet to send [14:02:06]accept exits with 7 [14:02:06]New connection [14:02:06]New thread 3067395428 created [14:02:06]Thread 3067252068 joined [14:02:06]Waiting for new connection... [14:02:06] Sock 7.Parse request [14:02:06]Sock 7.Check first char [14:02:06]Sock 7.First char is OK [14:02:06]request: POST /json_proto HTTP/1.0 [14:02:06]Method: POST [14:02:06]URL: /json_proto [14:02:06]Method is POST - this is cgi request [14:02:06]url: /json_proto [14:02:06]query_string will be loaded in cgi processing [14:02:06]execute_cgi json_proto POST (null) [14:02:06]execute_cgi path=json_proto method=POST [14:02:06]POST find Content-Length [14:02:06]Host: 172.17.48.197:8080 [14:02:06]Content-Length: 1218 [14:02:06]Content-Type: application/json [14:02:06] [14:02:06]POST finish read [14:02:06]Found Content-Length = 1218 [14:02:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106183\u000A03.03.2024 13:58\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 23\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 20.000 x 69.50\u000A\u0418\u0422\u041E\u0413: 1390.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A2070434\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:02:06]execute_script... [14:02:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106183\u000A03.03.2024 13:58\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 23\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 20.000 x 69.50\u000A\u0418\u0422\u041E\u0413: 1390.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A2070434\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:02:06]POST & json_proto [14:02:06]process_json_proto [14:02:06]json parsed OK: [14:02:06]protocol is kg_v1.0 [14:02:06]action value=print_text [14:02:06]process_action print_text [14:02:06]cmd_print_text [14:02:06]ExternCall_PrintAddStr [14:02:06]wPrintStart [14:02:06]Write to MH i2c: 01 00 00 F6 29 1F [14:02:06]Write i2c OK [14:02:06]MH_I2C_Read... [14:02:06]Read from MH i2c: 01 [14:02:06]MH_I2C_Read... [14:02:06]Read from MH i2c: 01 07 00 [14:02:06]MH_I2C_Read... [14:02:06]Read from MH i2c: 01 07 00 F6 29 00 00 00 00 00 FF 0F 34 [14:02:06]RasterBufferAndPrint [14:02:06]line *****ТОВАРНЫЙ ЧЕК***** [14:02:06]line АЗС 25 [14:02:06]line Партнер нефть [14:02:06]line 02508201610067 [14:02:06]line Кассир : Турдумбек у. К. [14:02:06]line Счет N : (1)1106183 [14:02:06]line 03.03.2024 13:58 [14:02:06]line ПРОДАЖА [14:02:06]line ТРК (МРК, ГНК): 23 [14:02:06]line Вид ГСМ : 2710124500 [14:02:06]line Аи-95-К-5 [14:02:06]line 20.000 x 69.50 [14:02:06]line ИТОГ: 1390.00 [14:02:06]line Тип оплаты: Талоны: Топливные Талоны [14:02:06]line 2070434 [14:02:06]line ______________________ [14:02:06]line (подпись) [14:02:06]written 0, free lines is 4095 [14:02:06]Write to MH i2c: 01 00 00 0B 2A 35 [14:02:06]Write i2c OK [14:02:06]MH_I2C_Read... [14:02:06]Read from MH i2c: 01 [14:02:06]MH_I2C_Read... [14:02:06]Read from MH i2c: 01 07 00 [14:02:06]MH_I2C_Read... [14:02:06]Read from MH i2c: 01 07 00 0B 2A 00 00 00 00 00 F7 0D 40 [14:02:06]RasterBufferAndPrint [14:02:06]line [14:02:06]line [14:02:06]line [14:02:06]line [14:02:06]line [14:02:06]written 0, free lines is 3577 [14:02:06]MH_Cut [14:02:06]Write to MH i2c: D1 01 00 12 2A 01 0E [14:02:06]Write i2c OK [14:02:06]MH_I2C_Read... [14:02:06]Read from MH i2c: D1 [14:02:06]MH_I2C_Read... [14:02:06]Read from MH i2c: D1 01 00 [14:02:06]MH_I2C_Read... [14:02:06]Read from MH i2c: D1 01 00 12 2A 00 0D [14:02:06]Write to MH i2c: 01 00 00 13 2A 3D [14:02:06]Write i2c OK [14:02:06]MH_I2C_Read... [14:02:07]*** Cut start [14:02:07]*** Purtial cut [14:02:07]*** Stage 1: CUTSNS_PIN = 1 [14:02:08]OFD Sender: No OFD packet to send [14:02:09]Read from MH i2c: 01 [14:02:09]MH_I2C_Read... [14:02:09]*** Stop cut motor [14:02:09]*** Cut end [14:02:09]Read from MH i2c: 01 07 00 [14:02:09]MH_I2C_Read... [14:02:09]Read from MH i2c: 01 07 00 13 2A 00 00 00 00 00 FF 0F 52 [14:02:09]process_action print_text done [14:02:09]requested_data is exist [14:02:09]produce_requested_data [14:02:09]requested_item fm.sn is exist - process it [14:02:09]wFMCommunicate request_size=4 [14:02:09]MH_SAM_APDU [14:02:09]CAPDU: 80 11 00 00 [14:02:09]Write to MH i2c: E2 08 00 14 2A 80 11 00 00 00 00 00 00 B8 [14:02:09]Write i2c OK [14:02:09]MH_I2C_Read... [14:02:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:02:09]Read from MH i2c: E2 [14:02:09]MH_I2C_Read... [14:02:09]Read from MH i2c: E2 17 00 [14:02:09]MH_I2C_Read... [14:02:09]Read from MH i2c: E2 17 00 14 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 16 [14:02:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [14:02:09]wFMCommunicate OK [14:02:09]requested_item fd.num is exist - process it [14:02:09]SAM_PROTO_GetFieldsCounters [14:02:09]wFMCommunicate request_size=4 [14:02:09]MH_SAM_APDU [14:02:09]CAPDU: 80 13 00 00 [14:02:09]Write to MH i2c: E2 08 00 15 2A 80 13 00 00 00 00 00 00 BB [14:02:09]Write i2c OK [14:02:09]MH_I2C_Read... [14:02:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:02:09]Read from MH i2c: E2 [14:02:09]MH_I2C_Read... [14:02:09]Read from MH i2c: E2 62 00 [14:02:09]MH_I2C_Read... [14:02:09]Read from MH i2c: E2 62 00 15 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 71 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 BB [14:02: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 71 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:02:09]wFMCommunicate OK [14:02:09]SAM_PROTO_GetFieldsCounters done [14:02:09]requested_item shift.num is exist - process it [14:02:09]requested_item shift.opened is exist - process it [14:02:09]req_shift_opened [14:02:09]FM_GetShiftState [14:02:09]SAM_PROTO_GetShiftState [14:02:09]wFMCommunicate request_size=4 [14:02:09]MH_SAM_APDU [14:02:09]CAPDU: 80 13 01 00 [14:02:09]Write to MH i2c: E2 08 00 16 2A 80 13 01 00 00 00 00 00 BD [14:02:09]Write i2c OK [14:02:09]MH_I2C_Read... [14:02:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:02:09]Read from MH i2c: E2 [14:02:09]MH_I2C_Read... [14:02:09]Read from MH i2c: E2 0E 00 [14:02:09]MH_I2C_Read... [14:02:09]Read from MH i2c: E2 0E 00 16 2A 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 7F [14:02:09]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [14:02:09]wFMCommunicate OK [14:02:09]SAM_PROTO_GetShiftState done [14:02:09]FM_GetShiftState done [14:02:09]req_shift_opened done [14:02:09]requested_item shift.open_date is exist - process it [14:02:09]req_shift_open_date [14:02:09]req_shift_open_date done [14:02:09]produce_requested_data done [14:02:09]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123249,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [14:02:09]process_action_free print_text [14:02:09]json_value_free [14:02:09]json_value_free done [14:02:09]process_json_proto returns [14:02:09]Send response to host [14:02:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123249,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [14:02:09]free response buf [14:02:09]execute_script done [14:02:09]execute_script returns [14:02:09]free content buf [14:02:09]Sock 7.Close socket [14:02:09]Sock 7.Thread stoped [14:02:13]OFD Sender: No OFD packet to send [14:02:18]OFD Sender: No OFD packet to send [14:02:19]int [14:02:19]Write to MH i2c: 01 00 00 17 2A 41 [14:02:19]*** FLAG_PRN_KEY set [14:02:19]Write i2c OK [14:02:19]MH_I2C_Read... [14:02:19]Read from MH i2c: 01 [14:02:19]MH_I2C_Read... [14:02:19]Read from MH i2c: 01 07 00 [14:02:19]MH_I2C_Read... [14:02:19]Read from MH i2c: 01 07 00 17 2A 00 08 00 00 00 FF 0F 5E [14:02:19]state=0 [14:02:19]Key pressed [14:02:19]Feed [14:02:19]Write to MH i2c: D8 00 00 18 2A 19 [14:02:19]Write i2c OK [14:02:19]MH_I2C_Read... [14:02:19]Read from MH i2c: D8 [14:02:19]MH_I2C_Read... [14:02:19]Read from MH i2c: D8 01 00 [14:02:19]MH_I2C_Read... [14:02:19]Read from MH i2c: D8 01 00 18 2A 00 1A [14:02:19]int [14:02:19]Write to MH i2c: 01 00 00 19 2A 43 [14:02:19]Write i2c OK [14:02:19]MH_I2C_Read... [14:02:19]Read from MH i2c: 01 [14:02:19]MH_I2C_Read... [14:02:19]Read from MH i2c: 01 07 00 [14:02:19]MH_I2C_Read... [14:02:19]Read from MH i2c: 01 07 00 19 2A 00 48 00 00 00 3C 00 CE [14:02:19]state=2 [14:02:19]Key pressed [14:02:19]int [14:02:19]Write to MH i2c: 01 00 00 1A 2A 44 [14:02:19]*** FLAG_PRN_KEY reset [14:02:19]Write i2c OK [14:02:19]MH_I2C_Read... [14:02:19]Read from MH i2c: 01 [14:02:19]MH_I2C_Read... [14:02:19]Read from MH i2c: 01 07 00 [14:02:19]MH_I2C_Read... [14:02:19]Read from MH i2c: 01 07 00 1A 2A 00 00 00 00 00 F5 0F 4F [14:02:19]state=2 [14:02:19]Stop feed [14:02:19]int [14:02:19]Write to MH i2c: 01 00 00 1B 2A 45 [14:02:19]*** FLAG_PRN_KEY set [14:02:19]Write i2c OK [14:02:19]MH_I2C_Read... [14:02:19]Read from MH i2c: 01 [14:02:19]MH_I2C_Read... [14:02:19]Read from MH i2c: 01 07 00 [14:02:19]MH_I2C_Read... [14:02:19]Read from MH i2c: 01 07 00 1B 2A 00 08 00 00 00 FF 0F 62 [14:02:19]state=0 [14:02:19]Key pressed [14:02:19]Feed [14:02:19]Write to MH i2c: D8 00 00 1C 2A 1D [14:02:19]Write i2c OK [14:02:19]MH_I2C_Read... [14:02:19]Read from MH i2c: D8 [14:02:19]MH_I2C_Read... [14:02:19]Read from MH i2c: D8 01 00 [14:02:19]MH_I2C_Read... [14:02:19]Read from MH i2c: D8 01 00 1C 2A 00 1E [14:02:19]int [14:02:19]Write to MH i2c: 01 00 00 1D 2A 47 [14:02:19]Write i2c OK [14:02:19]MH_I2C_Read... [14:02:19]Read from MH i2c: 01 [14:02:19]MH_I2C_Read... [14:02:19]Read from MH i2c: 01 07 00 [14:02:19]MH_I2C_Read... [14:02:19]Read from MH i2c: 01 07 00 1D 2A 00 48 00 00 00 3C 00 D2 [14:02:19]state=2 [14:02:19]Key pressed [14:02:19]int [14:02:19]Write to MH i2c: 01 00 00 1E 2A 48 [14:02:19]*** FLAG_PRN_KEY reset [14:02:19]Write i2c OK [14:02:19]MH_I2C_Read... [14:02:19]Read from MH i2c: 01 [14:02:19]MH_I2C_Read... [14:02:19]Read from MH i2c: 01 07 00 [14:02:19]MH_I2C_Read... [14:02:19]Read from MH i2c: 01 07 00 1E 2A 00 00 00 00 00 F5 0F 53 [14:02:19]state=2 [14:02:19]Stop feed [14:02:19]int [14:02:19]Write to MH i2c: 01 00 00 1F 2A 49 [14:02:19]*** FLAG_PRN_KEY set [14:02:19]Write i2c OK [14:02:19]MH_I2C_Read... [14:02:19]Read from MH i2c: 01 [14:02:19]MH_I2C_Read... [14:02:19]Read from MH i2c: 01 07 00 [14:02:19]MH_I2C_Read... [14:02:19]Read from MH i2c: 01 07 00 1F 2A 00 08 00 00 00 FF 0F 66 [14:02:19]state=0 [14:02:19]Key pressed [14:02:19]Feed [14:02:19]Write to MH i2c: D8 00 00 20 2A 21 [14:02:19]Write i2c OK [14:02:19]MH_I2C_Read... [14:02:19]Read from MH i2c: D8 [14:02:19]MH_I2C_Read... [14:02:19]Read from MH i2c: D8 01 00 [14:02:19]MH_I2C_Read... [14:02:19]Read from MH i2c: D8 01 00 20 2A 00 22 [14:02:19]int [14:02:19]Write to MH i2c: 01 00 00 21 2A 4B [14:02:19]Write i2c OK [14:02:19]MH_I2C_Read... [14:02:19]Read from MH i2c: 01 [14:02:19]MH_I2C_Read... [14:02:19]Read from MH i2c: 01 07 00 [14:02:19]MH_I2C_Read... [14:02:19]Read from MH i2c: 01 07 00 21 2A 00 48 00 00 00 3C 00 D6 [14:02:19]state=2 [14:02:19]Key pressed [14:02:19]int [14:02:19]Write to MH i2c: 01 00 00 22 2A 4C [14:02:19]*** FLAG_PRN_KEY reset [14:02:19]Write i2c OK [14:02:19]MH_I2C_Read... [14:02:19]Read from MH i2c: 01 [14:02:19]MH_I2C_Read... [14:02:19]Read from MH i2c: 01 07 00 [14:02:19]MH_I2C_Read... [14:02:19]Read from MH i2c: 01 07 00 22 2A 00 00 00 00 00 F5 0F 57 [14:02:19]state=2 [14:02:19]Stop feed [14:02:20]int [14:02:20]Write to MH i2c: 01 00 00 23 2A 4D [14:02:20]*** FLAG_PRN_KEY set [14:02:20]Write i2c OK [14:02:20]MH_I2C_Read... [14:02:20]Read from MH i2c: 01 [14:02:20]MH_I2C_Read... [14:02:20]Read from MH i2c: 01 07 00 [14:02:20]MH_I2C_Read... [14:02:20]Read from MH i2c: 01 07 00 23 2A 00 08 00 00 00 FF 0F 6A [14:02:20]state=0 [14:02:20]Key pressed [14:02:20]Feed [14:02:20]Write to MH i2c: D8 00 00 24 2A 25 [14:02:20]Write i2c OK [14:02:20]MH_I2C_Read... [14:02:20]Read from MH i2c: D8 [14:02:20]MH_I2C_Read... [14:02:20]Read from MH i2c: D8 01 00 [14:02:20]MH_I2C_Read... [14:02:20]Read from MH i2c: D8 01 00 24 2A 00 26 [14:02:20]int [14:02:20]Write to MH i2c: 01 00 00 25 2A 4F [14:02:20]Write i2c OK [14:02:20]MH_I2C_Read... [14:02:20]Read from MH i2c: 01 [14:02:20]MH_I2C_Read... [14:02:20]Read from MH i2c: 01 07 00 [14:02:20]MH_I2C_Read... [14:02:20]Read from MH i2c: 01 07 00 25 2A 00 48 00 00 00 3C 00 DA [14:02:20]state=2 [14:02:20]Key pressed [14:02:20]int [14:02:20]Write to MH i2c: 01 00 00 26 2A 50 [14:02:20]*** FLAG_PRN_KEY reset [14:02:20]Write i2c OK [14:02:20]MH_I2C_Read... [14:02:20]Read from MH i2c: 01 [14:02:20]MH_I2C_Read... [14:02:20]Read from MH i2c: 01 07 00 [14:02:20]MH_I2C_Read... [14:02:20]Read from MH i2c: 01 07 00 26 2A 00 00 00 00 00 F5 0F 5B [14:02:20]state=2 [14:02:20]Stop feed [14:02:20]int [14:02:20]Write to MH i2c: 01 00 00 27 2A 51 [14:02:20]*** FLAG_PRN_KEY set [14:02:20]Write i2c OK [14:02:20]MH_I2C_Read... [14:02:20]Read from MH i2c: 01 [14:02:20]MH_I2C_Read... [14:02:20]Read from MH i2c: 01 07 00 [14:02:20]MH_I2C_Read... [14:02:20]Read from MH i2c: 01 07 00 27 2A 00 08 00 00 00 FF 0F 6E [14:02:20]state=0 [14:02:20]Key pressed [14:02:20]Feed [14:02:20]Write to MH i2c: D8 00 00 28 2A 29 [14:02:20]Write i2c OK [14:02:20]MH_I2C_Read... [14:02:20]Read from MH i2c: D8 [14:02:20]MH_I2C_Read... [14:02:20]Read from MH i2c: D8 01 00 [14:02:20]MH_I2C_Read... [14:02:20]Read from MH i2c: D8 01 00 28 2A 00 2A [14:02:20]int [14:02:20]Write to MH i2c: 01 00 00 29 2A 53 [14:02:20]Write i2c OK [14:02:20]MH_I2C_Read... [14:02:20]Read from MH i2c: 01 [14:02:20]MH_I2C_Read... [14:02:20]Read from MH i2c: 01 07 00 [14:02:20]MH_I2C_Read... [14:02:20]Read from MH i2c: 01 07 00 29 2A 00 48 00 00 00 3C 00 DE [14:02:20]state=2 [14:02:20]Key pressed [14:02:20]int [14:02:20]Write to MH i2c: 01 00 00 2A 2A 54 [14:02:20]*** FLAG_PRN_KEY reset [14:02:20]Write i2c OK [14:02:20]MH_I2C_Read... [14:02:20]Read from MH i2c: 01 [14:02:20]MH_I2C_Read... [14:02:20]Read from MH i2c: 01 07 00 [14:02:20]MH_I2C_Read... [14:02:20]Read from MH i2c: 01 07 00 2A 2A 00 00 00 00 00 F5 0F 5F [14:02:20]state=2 [14:02:20]Stop feed [14:02:20]int [14:02:20]Write to MH i2c: 01 00 00 2B 2A 55 [14:02:20]*** FLAG_PRN_KEY set [14:02:20]Write i2c OK [14:02:20]MH_I2C_Read... [14:02:20]Read from MH i2c: 01 [14:02:20]MH_I2C_Read... [14:02:20]Read from MH i2c: 01 07 00 [14:02:20]MH_I2C_Read... [14:02:20]Read from MH i2c: 01 07 00 2B 2A 00 08 00 00 00 FF 0F 72 [14:02:20]state=0 [14:02:20]Key pressed [14:02:20]Feed [14:02:20]Write to MH i2c: D8 00 00 2C 2A 2D [14:02:20]Write i2c OK [14:02:20]MH_I2C_Read... [14:02:20]Read from MH i2c: D8 [14:02:20]MH_I2C_Read... [14:02:20]Read from MH i2c: D8 01 00 [14:02:20]MH_I2C_Read... [14:02:20]Read from MH i2c: D8 01 00 2C 2A 00 2E [14:02:20]int [14:02:20]Write to MH i2c: 01 00 00 2D 2A 57 [14:02:20]Write i2c OK [14:02:20]MH_I2C_Read... [14:02:20]Read from MH i2c: 01 [14:02:20]MH_I2C_Read... [14:02:20]Read from MH i2c: 01 07 00 [14:02:20]MH_I2C_Read... [14:02:20]Read from MH i2c: 01 07 00 2D 2A 00 48 00 00 00 3C 00 E2 [14:02:20]state=2 [14:02:20]Key pressed [14:02:20]int [14:02:20]Write to MH i2c: 01 00 00 2E 2A 58 [14:02:20]*** FLAG_PRN_KEY reset [14:02:20]Write i2c OK [14:02:20]MH_I2C_Read... [14:02:20]Read from MH i2c: 01 [14:02:20]MH_I2C_Read... [14:02:20]Read from MH i2c: 01 07 00 [14:02:20]MH_I2C_Read... [14:02:20]Read from MH i2c: 01 07 00 2E 2A 00 00 00 00 00 F5 0F 63 [14:02:20]state=2 [14:02:20]Stop feed [14:02:20]int [14:02:20]Write to MH i2c: 01 00 00 2F 2A 59 [14:02:20]*** FLAG_PRN_KEY set [14:02:20]Write i2c OK [14:02:20]MH_I2C_Read... [14:02:20]Read from MH i2c: 01 [14:02:20]MH_I2C_Read... [14:02:20]Read from MH i2c: 01 07 00 [14:02:20]MH_I2C_Read... [14:02:20]Read from MH i2c: 01 07 00 2F 2A 00 08 00 00 00 FF 0F 76 [14:02:20]state=0 [14:02:20]Key pressed [14:02:20]Feed [14:02:20]Write to MH i2c: D8 00 00 30 2A 31 [14:02:20]Write i2c OK [14:02:20]MH_I2C_Read... [14:02:20]Read from MH i2c: D8 [14:02:20]MH_I2C_Read... [14:02:20]Read from MH i2c: D8 01 00 [14:02:20]MH_I2C_Read... [14:02:20]Read from MH i2c: D8 01 00 30 2A 00 32 [14:02:20]int [14:02:20]Write to MH i2c: 01 00 00 31 2A 5B [14:02:20]Write i2c OK [14:02:20]MH_I2C_Read... [14:02:20]Read from MH i2c: 01 [14:02:20]MH_I2C_Read... [14:02:20]Read from MH i2c: 01 07 00 [14:02:20]MH_I2C_Read... [14:02:20]Read from MH i2c: 01 07 00 31 2A 00 48 00 00 00 3C 00 E6 [14:02:20]state=2 [14:02:20]Key pressed [14:02:20]int [14:02:20]Write to MH i2c: 01 00 00 32 2A 5C [14:02:20]*** FLAG_PRN_KEY reset [14:02:20]Write i2c OK [14:02:20]MH_I2C_Read... [14:02:20]Read from MH i2c: 01 [14:02:20]MH_I2C_Read... [14:02:20]Read from MH i2c: 01 07 00 [14:02:20]MH_I2C_Read... [14:02:20]Read from MH i2c: 01 07 00 32 2A 00 00 00 00 00 F6 0F 68 [14:02:20]state=2 [14:02:20]Stop feed [14:02:23]OFD Sender: No OFD packet to send [14:02:28]OFD Sender: No OFD packet to send [14:02:33]OFD Sender: No OFD packet to send [14:02:38]OFD Sender: No OFD packet to send [14:02:43]OFD Sender: No OFD packet to send [14:02:48]OFD Sender: No OFD packet to send [14:02:53]OFD Sender: No OFD packet to send [14:02:58]OFD Sender: No OFD packet to send [14:03:03]OFD Sender: No OFD packet to send [14:03:08]OFD Sender: No OFD packet to send [14:03:13]OFD Sender: No OFD packet to send [14:03:18]OFD Sender: No OFD packet to send [14:03:23]OFD Sender: No OFD packet to send [14:03:28]OFD Sender: No OFD packet to send [14:03:33]OFD Sender: No OFD packet to send [14:03:38]OFD Sender: No OFD packet to send [14:03:43]OFD Sender: No OFD packet to send [14:03:48]OFD Sender: No OFD packet to send [14:03:53]OFD Sender: No OFD packet to send [14:03:58]OFD Sender: No OFD packet to send [14:04:03]OFD Sender: No OFD packet to send [14:04:08]OFD Sender: No OFD packet to send [14:04:13]OFD Sender: No OFD packet to send [14:04:18]OFD Sender: No OFD packet to send [14:04:23]OFD Sender: No OFD packet to send [14:04:28]OFD Sender: No OFD packet to send [14:04:33]OFD Sender: No OFD packet to send [14:04:38]OFD Sender: No OFD packet to send [14:04:43]OFD Sender: No OFD packet to send [14:04:48]OFD Sender: No OFD packet to send [14:04:53]OFD Sender: No OFD packet to send [14:04:58]OFD Sender: No OFD packet to send [14:05:03]OFD Sender: No OFD packet to send [14:05:08]OFD Sender: No OFD packet to send [14:05:13]OFD Sender: No OFD packet to send [14:05:18]OFD Sender: No OFD packet to send [14:05:23]OFD Sender: No OFD packet to send [14:05:28]OFD Sender: No OFD packet to send [14:05:33]OFD Sender: No OFD packet to send [14:05:38]OFD Sender: No OFD packet to send [14:05:43]OFD Sender: No OFD packet to send [14:05:48]OFD Sender: No OFD packet to send [14:05:53]OFD Sender: No OFD packet to send [14:05:58]OFD Sender: No OFD packet to send [14:06:03]OFD Sender: No OFD packet to send [14:06:08]OFD Sender: No OFD packet to send [14:06:13]OFD Sender: No OFD packet to send [14:06:18]OFD Sender: No OFD packet to send [14:06:23]OFD Sender: No OFD packet to send [14:06:28]OFD Sender: No OFD packet to send [14:06:33]OFD Sender: No OFD packet to send [14:06:38]OFD Sender: No OFD packet to send [14:06:43]OFD Sender: No OFD packet to send [14:06:48]OFD Sender: No OFD packet to send [14:06:53]OFD Sender: No OFD packet to send [14:06:58]OFD Sender: No OFD packet to send [14:07:03]OFD Sender: No OFD packet to send [14:07:08]OFD Sender: No OFD packet to send [14:07:13]OFD Sender: No OFD packet to send [14:07:18]OFD Sender: No OFD packet to send [14:07:24]OFD Sender: No OFD packet to send [14:07:29]OFD Sender: No OFD packet to send [14:07:34]OFD Sender: No OFD packet to send [14:07:39]OFD Sender: No OFD packet to send [14:07:44]OFD Sender: No OFD packet to send [14:07:49]OFD Sender: No OFD packet to send [14:07:54]OFD Sender: No OFD packet to send [14:07:59]OFD Sender: No OFD packet to send [14:08:04]OFD Sender: No OFD packet to send [14:08:09]OFD Sender: No OFD packet to send [14:08:14]OFD Sender: No OFD packet to send [14:08:19]OFD Sender: No OFD packet to send [14:08:24]OFD Sender: No OFD packet to send [14:08:29]OFD Sender: No OFD packet to send [14:08:34]OFD Sender: No OFD packet to send [14:08:39]OFD Sender: No OFD packet to send [14:08:44]OFD Sender: No OFD packet to send [14:08:49]OFD Sender: No OFD packet to send [14:08:54]OFD Sender: No OFD packet to send [14:08:59]OFD Sender: No OFD packet to send [14:09:04]OFD Sender: No OFD packet to send [14:09:09]OFD Sender: No OFD packet to send [14:09:14]OFD Sender: No OFD packet to send [14:09:19]OFD Sender: No OFD packet to send [14:09:24]OFD Sender: No OFD packet to send [14:09:29]OFD Sender: No OFD packet to send [14:09:34]OFD Sender: No OFD packet to send [14:09:39]OFD Sender: No OFD packet to send [14:09:41]accept exits with 9 [14:09:41]New connection [14:09:41]New thread 3067252068 created [14:09:41]Thread 3067395428 joined [14:09:41]Waiting for new connection... [14:09:41] Sock 9.Parse request [14:09:41]Sock 9.Check first char [14:09:41]Sock 9.First char is OK [14:09:41]request: POST /json_proto HTTP/1.0 [14:09:41]Method: POST [14:09:41]URL: /json_proto [14:09:41]Method is POST - this is cgi request [14:09:41]url: /json_proto [14:09:41]query_string will be loaded in cgi processing [14:09:41]execute_cgi json_proto POST (null) [14:09:41]execute_cgi path=json_proto method=POST [14:09:41]POST find Content-Length [14:09:41]Host: 172.17.48.197:8080 [14:09:41]Content-Length: 1210 [14:09:41]Content-Type: application/json [14:09:41] [14:09:41]POST finish read [14:09:41]Found Content-Length = 1210 [14:09:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106184\u000A03.03.2024 14:06\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 52\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 16.160 x 61.90\u000A\u0418\u0422\u041E\u0413: 1000.30\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A00350\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:09:41]execute_script... [14:09:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106184\u000A03.03.2024 14:06\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 52\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 16.160 x 61.90\u000A\u0418\u0422\u041E\u0413: 1000.30\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A00350\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:09:41]POST & json_proto [14:09:41]process_json_proto [14:09:41]json parsed OK: [14:09:41]protocol is kg_v1.0 [14:09:41]action value=print_text [14:09:41]process_action print_text [14:09:41]cmd_print_text [14:09:41]ExternCall_PrintAddStr [14:09:41]wPrintStart [14:09:41]Write to MH i2c: 01 00 00 33 2A 5D [14:09:41]Write i2c OK [14:09:41]MH_I2C_Read... [14:09:41]Read from MH i2c: 01 [14:09:41]MH_I2C_Read... [14:09:41]Read from MH i2c: 01 07 00 [14:09:41]MH_I2C_Read... [14:09:41]Read from MH i2c: 01 07 00 33 2A 00 00 00 00 00 FF 0F 72 [14:09:41]RasterBufferAndPrint [14:09:41]line *****ТОВАРНЫЙ ЧЕК***** [14:09:41]line АЗС 25 [14:09:41]line Партнер нефть [14:09:41]line 02508201610067 [14:09:41]line Кассир : Турдумбек у. К. [14:09:41]line Счет N : (1)1106184 [14:09:41]line 03.03.2024 14:06 [14:09:41]line ПРОДАЖА [14:09:41]line ТРК (МРК, ГНК): 52 [14:09:41]line Вид ГСМ : 2710124130 [14:09:41]line Аи-92-К-5 [14:09:41]line 16.160 x 61.90 [14:09:41]line ИТОГ: 1000.30 [14:09:41]line Тип оплаты: Талоны: Топливная Карта [14:09:41]line 00350 [14:09:41]line ______________________ [14:09:41]line (подпись) [14:09:41]written 0, free lines is 4095 [14:09:41]Write to MH i2c: 01 00 00 48 2A 72 [14:09:41]Write i2c OK [14:09:41]MH_I2C_Read... [14:09:41]Read from MH i2c: 01 [14:09:41]MH_I2C_Read... [14:09:41]Read from MH i2c: 01 07 00 [14:09:41]MH_I2C_Read... [14:09:41]Read from MH i2c: 01 07 00 48 2A 00 00 00 00 00 F9 0D 7F [14:09:41]RasterBufferAndPrint [14:09:41]line [14:09:41]line [14:09:41]line [14:09:41]line [14:09:41]line [14:09:41]written 0, free lines is 3579 [14:09:41]MH_Cut [14:09:41]Write to MH i2c: D1 01 00 4F 2A 01 4B [14:09:41]Write i2c OK [14:09:41]MH_I2C_Read... [14:09:41]Read from MH i2c: D1 [14:09:41]MH_I2C_Read... [14:09:41]Read from MH i2c: D1 01 00 [14:09:41]MH_I2C_Read... [14:09:41]Read from MH i2c: D1 01 00 4F 2A 00 4A [14:09:41]Write to MH i2c: 01 00 00 50 2A 7A [14:09:41]Write i2c OK [14:09:41]MH_I2C_Read... [14:09:41]*** Cut start [14:09:41]*** Purtial cut [14:09:41]*** Stage 1: CUTSNS_PIN = 1 [14:09:43]Read from MH i2c: 01 [14:09:43]MH_I2C_Read... [14:09:43]*** Stop cut motor [14:09:43]*** Cut end [14:09:43]Read from MH i2c: 01 07 00 [14:09:43]MH_I2C_Read... [14:09:43]Read from MH i2c: 01 07 00 50 2A 00 00 00 00 00 FF 0F 8F [14:09:43]process_action print_text done [14:09:43]requested_data is exist [14:09:43]produce_requested_data [14:09:43]requested_item fm.sn is exist - process it [14:09:43]wFMCommunicate request_size=4 [14:09:43]MH_SAM_APDU [14:09:43]CAPDU: 80 11 00 00 [14:09:43]Write to MH i2c: E2 08 00 51 2A 80 11 00 00 00 00 00 00 F5 [14:09:43]Write i2c OK [14:09:43]MH_I2C_Read... [14:09:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:09:43]Read from MH i2c: E2 [14:09:43]MH_I2C_Read... [14:09:43]Read from MH i2c: E2 17 00 [14:09:43]MH_I2C_Read... [14:09:43]Read from MH i2c: E2 17 00 51 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 53 [14:09:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [14:09:43]wFMCommunicate OK [14:09:43]requested_item fd.num is exist - process it [14:09:43]SAM_PROTO_GetFieldsCounters [14:09:43]wFMCommunicate request_size=4 [14:09:43]MH_SAM_APDU [14:09:43]CAPDU: 80 13 00 00 [14:09:43]Write to MH i2c: E2 08 00 52 2A 80 13 00 00 00 00 00 00 F8 [14:09:43]Write i2c OK [14:09:43]MH_I2C_Read... [14:09:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:09:44]Read from MH i2c: E2 [14:09:44]MH_I2C_Read... [14:09:44]Read from MH i2c: E2 62 00 [14:09:44]MH_I2C_Read... [14:09:44]Read from MH i2c: E2 62 00 52 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 71 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 F8 [14:09: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 71 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:09:44]wFMCommunicate OK [14:09:44]SAM_PROTO_GetFieldsCounters done [14:09:44]requested_item shift.num is exist - process it [14:09:44]requested_item shift.opened is exist - process it [14:09:44]req_shift_opened [14:09:44]FM_GetShiftState [14:09:44]SAM_PROTO_GetShiftState [14:09:44]wFMCommunicate request_size=4 [14:09:44]MH_SAM_APDU [14:09:44]CAPDU: 80 13 01 00 [14:09:44]Write to MH i2c: E2 08 00 53 2A 80 13 01 00 00 00 00 00 FA [14:09:44]Write i2c OK [14:09:44]MH_I2C_Read... [14:09:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:09:44]Read from MH i2c: E2 [14:09:44]MH_I2C_Read... [14:09:44]Read from MH i2c: E2 0E 00 [14:09:44]MH_I2C_Read... [14:09:44]Read from MH i2c: E2 0E 00 53 2A 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 BC [14:09:44]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [14:09:44]wFMCommunicate OK [14:09:44]SAM_PROTO_GetShiftState done [14:09:44]FM_GetShiftState done [14:09:44]req_shift_opened done [14:09:44]requested_item shift.open_date is exist - process it [14:09:44]req_shift_open_date [14:09:44]req_shift_open_date done [14:09:44]produce_requested_data done [14:09:44]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123249,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [14:09:44]process_action_free print_text [14:09:44]json_value_free [14:09:44]json_value_free done [14:09:44]process_json_proto returns [14:09:44]Send response to host [14:09:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123249,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [14:09:44]free response buf [14:09:44]execute_script done [14:09:44]execute_script returns [14:09:44]free content buf [14:09:44]Sock 9.Close socket [14:09:44]Sock 9.Thread stoped [14:09:44]OFD Sender: No OFD packet to send [14:09:49]OFD Sender: No OFD packet to send [14:09:54]OFD Sender: No OFD packet to send [14:09:59]OFD Sender: No OFD packet to send [14:10:04]OFD Sender: No OFD packet to send [14:10:09]OFD Sender: No OFD packet to send [14:10:14]OFD Sender: No OFD packet to send [14:10:19]OFD Sender: No OFD packet to send [14:10:24]OFD Sender: No OFD packet to send [14:10:29]OFD Sender: No OFD packet to send [14:10:34]OFD Sender: No OFD packet to send [14:10:39]OFD Sender: No OFD packet to send [14:10:44]OFD Sender: No OFD packet to send [14:10:49]OFD Sender: No OFD packet to send [14:10:54]OFD Sender: No OFD packet to send [14:10:59]OFD Sender: No OFD packet to send [14:11:04]OFD Sender: No OFD packet to send [14:11:09]OFD Sender: No OFD packet to send [14:11:14]OFD Sender: No OFD packet to send [14:11:19]OFD Sender: No OFD packet to send [14:11:24]OFD Sender: No OFD packet to send [14:11:29]OFD Sender: No OFD packet to send [14:11:34]OFD Sender: No OFD packet to send [14:11:39]OFD Sender: No OFD packet to send [14:11:44]OFD Sender: No OFD packet to send [14:11:49]OFD Sender: No OFD packet to send [14:11:54]OFD Sender: No OFD packet to send [14:11:59]OFD Sender: No OFD packet to send [14:12:04]OFD Sender: No OFD packet to send [14:12:09]OFD Sender: No OFD packet to send [14:12:14]OFD Sender: No OFD packet to send [14:12:19]OFD Sender: No OFD packet to send [14:12:24]OFD Sender: No OFD packet to send [14:12:29]OFD Sender: No OFD packet to send [14:12:34]OFD Sender: No OFD packet to send [14:12:39]OFD Sender: No OFD packet to send [14:12:44]OFD Sender: No OFD packet to send [14:12:49]OFD Sender: No OFD packet to send [14:12:54]OFD Sender: No OFD packet to send [14:12:59]OFD Sender: No OFD packet to send [14:13:04]OFD Sender: No OFD packet to send [14:13:09]OFD Sender: No OFD packet to send [14:13:14]OFD Sender: No OFD packet to send [14:13:19]OFD Sender: No OFD packet to send [14:13:24]OFD Sender: No OFD packet to send [14:13:29]OFD Sender: No OFD packet to send [14:13:34]OFD Sender: No OFD packet to send [14:13:39]OFD Sender: No OFD packet to send [14:13:44]OFD Sender: No OFD packet to send [14:13:49]OFD Sender: No OFD packet to send [14:13:54]OFD Sender: No OFD packet to send [14:13:59]OFD Sender: No OFD packet to send [14:14:04]OFD Sender: No OFD packet to send [14:14:09]OFD Sender: No OFD packet to send [14:14:14]OFD Sender: No OFD packet to send [14:14:19]OFD Sender: No OFD packet to send [14:14:24]OFD Sender: No OFD packet to send [14:14:29]OFD Sender: No OFD packet to send [14:14:34]OFD Sender: No OFD packet to send [14:14:38]accept exits with 7 [14:14:38]New connection [14:14:38]New thread 3067395428 created [14:14:38]Thread 3067252068 joined [14:14:38]Waiting for new connection... [14:14:38] Sock 7.Parse request [14:14:38]Sock 7.Check first char [14:14:38]Sock 7.First char is OK [14:14:38]request: POST /json_proto HTTP/1.0 [14:14:38]Method: POST [14:14:38]URL: /json_proto [14:14:38]Method is POST - this is cgi request [14:14:38]url: /json_proto [14:14:38]query_string will be loaded in cgi processing [14:14:38]execute_cgi json_proto POST (null) [14:14:38]execute_cgi path=json_proto method=POST [14:14:38]POST find Content-Length [14:14:38]Host: 172.17.48.197:8080 [14:14:38]Content-Length: 678 [14:14:38]Content-Type: application/json [14:14:38] [14:14:38]POST finish read [14:14:38]Found Content-Length = 678 [14:14:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106185", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 9.050, "sum" : 560.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 560.00, "total" : 560.00, "payments": [ { "type": 0, "sum" : 560.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:14:38]execute_script... [14:14: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)1106185", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 9.050, "sum" : 560.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 560.00, "total" : 560.00, "payments": [ { "type": 0, "sum" : 560.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:14:38]POST & json_proto [14:14:38]process_json_proto [14:14:38]json parsed OK: [14:14:38]protocol is kg_v1.0 [14:14:38]action value=close_receipt [14:14:38]process_action close_receipt [14:14:38]cmd_close_receipt [14:14:38]MH_GetDate [14:14:38]Write to MH i2c: F0 00 00 54 2A 6D [14:14:38]Write i2c OK [14:14:38]MH_I2C_Read... [14:14:38]Read from MH i2c: F0 [14:14:38]MH_I2C_Read... [14:14:38]Read from MH i2c: F0 09 00 [14:14:38]MH_I2C_Read... [14:14:38]Read from MH i2c: F0 09 00 54 2A 00 D2 85 E4 65 6C AF E3 65 79 [14:14:38]GetLastDocTimeStamp 1709474519 [14:14:38]current date 1709475282 [14:14:38]FM_GetShiftState [14:14:38]SAM_PROTO_GetShiftState [14:14:38]wFMCommunicate request_size=4 [14:14:38]MH_SAM_APDU [14:14:38]CAPDU: 80 13 01 00 [14:14:38]Write to MH i2c: E2 08 00 55 2A 80 13 01 00 00 00 00 00 FC [14:14:38]Write i2c OK [14:14:38]MH_I2C_Read... [14:14:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:14:38]Read from MH i2c: E2 [14:14:38]MH_I2C_Read... [14:14:38]Read from MH i2c: E2 0E 00 [14:14:38]MH_I2C_Read... [14:14:38]Read from MH i2c: E2 0E 00 55 2A 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 BE [14:14:38]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [14:14:38]wFMCommunicate OK [14:14:38]SAM_PROTO_GetShiftState done [14:14:38]FM_GetShiftState done [14:14:38]opened in 1709425579 [14:14:38]opened+sec_in_day 1709511979 [14:14:38]quantity*price = 56019 [14:14:38]sum+1 = 56021 [14:14:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 560.00 Внесено: 560.00 СДАЧА: 0.00 НСП 1% : 4.96 НДС 12% : 59.49 Наличными: 560.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 107 03.03.2024 14:14 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123250 ФПД: 56504126277507 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T141442&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123250&fm=56504126277507&tin=02508201610067®Number=0000000000090573&sum=56000 [14:14:39]StoreToDocumentArchive [14:14:39]shift 323 fd 123250 [14:14:39]save to /storage/0323/doc_00123250 [14:14:39]save last doc name /storage/0323/doc_00123250 to /storage/kkm_last_doc_name [14:14:39]save OK [14:14:39]Clear old archive folders... [14:14:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:14:39]tlvbuf is 00D9E700 [14:14:39]SAM_PROTO_ClearQueue [14:14:39]wFMCommunicate request_size=4 [14:14:39]MH_SAM_APDU [14:14:39]CAPDU: 80 09 00 00 [14:14:39]Write to MH i2c: E2 08 00 62 2A 80 09 00 00 00 00 00 00 FE [14:14:39]Write i2c OK [14:14:39]MH_I2C_Read... [14:14:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:14:39]Read from MH i2c: E2 [14:14:39]MH_I2C_Read... [14:14:39]Read from MH i2c: E2 03 00 [14:14:39]MH_I2C_Read... [14:14:39]Read from MH i2c: E2 03 00 62 2A 00 90 00 00 [14:14:39]RAPDU: 90 00 [14:14:39]wFMCommunicate OK [14:14:39]SAM_PROTO_ClearQueue done [14:14:39]KKMCreateOFDPacket [14:14:39]OFDProtocolAddRootSTLVToBuf [14:14:39]FM_MakeSignedData [14:14:39]FM_MakeSignedData [14:14:39]SAM_PROTO_SignData [14:14:39]wFMCommunicate request_size=4 [14:14:39]MH_SAM_APDU [14:14:39]CAPDU: 80 0D 01 02 [14:14:39]Write to MH i2c: E2 08 00 63 2A 80 0D 01 02 00 00 00 00 06 [14:14:39]Write i2c OK [14:14:39]MH_I2C_Read... [14:14:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:14:39]Read from MH i2c: E2 [14:14:39]MH_I2C_Read... [14:14:39]Read from MH i2c: E2 03 00 [14:14:39]MH_I2C_Read... [14:14:39]Read from MH i2c: E2 03 00 63 2A 00 90 00 01 [14:14:39]RAPDU: 90 00 [14:14:39]wFMCommunicate OK [14:14:39]wFMCommunicate request_size=255 [14:14:39]MH_SAM_APDU [14:14: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 35 FF 03 08 00 03 5A 23 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 D4 DA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 DA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 17 00 00 00 00 07 04 06 00 C0 DA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 D2 85 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 72 E1 01 00 35 04 06 00 33 [14:14:39]Write to MH i2c: E2 02 01 64 2A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 23 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 D4 DA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 DA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 17 00 00 00 00 07 04 06 00 C0 DA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 D2 85 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 72 E1 01 00 35 04 06 00 33 00 00 DA [14:14:39]Write i2c OK [14:14:39]MH_I2C_Read... [14:14:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:14:40]Read from MH i2c: E2 [14:14:40]MH_I2C_Read... [14:14:40]Read from MH i2c: E2 03 00 [14:14:40]MH_I2C_Read... [14:14:40]Read from MH i2c: E2 03 00 64 2A 00 90 00 02 [14:14:40]RAPDU: 90 00 [14:14:40]wFMCommunicate OK [14:14:40]wFMCommunicate request_size=10 [14:14:40]MH_SAM_APDU [14:14:40]CAPDU: 80 0D 02 02 05 63 E4 60 07 83 [14:14:40]Write to MH i2c: E2 0D 00 65 2A 80 0D 02 02 05 00 63 E4 60 07 83 00 00 44 [14:14:40]Write i2c OK [14:14:40]MH_I2C_Read... [14:14:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:14:40]Read from MH i2c: E2 [14:14:40]MH_I2C_Read... [14:14:40]Read from MH i2c: E2 03 00 [14:14:40]MH_I2C_Read... [14:14:40]Read from MH i2c: E2 03 00 65 2A 00 90 00 03 [14:14:40]RAPDU: 90 00 [14:14:40]wFMCommunicate OK [14:14:40]wFMCommunicate request_size=4 [14:14:40]MH_SAM_APDU [14:14:40]CAPDU: 80 0D 03 02 [14:14:40]Write to MH i2c: E2 08 00 66 2A 80 0D 03 02 00 00 00 00 0B [14:14:40]Write i2c OK [14:14:40]MH_I2C_Read... [14:14:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:14:40]Read from MH i2c: E2 [14:14:40]MH_I2C_Read... [14:14:40]Read from MH i2c: E2 0B 00 [14:14:40]MH_I2C_Read... [14:14:40]Read from MH i2c: E2 0B 00 66 2A 00 47 E7 FC 1A FF 5F F1 66 90 00 05 [14:14:40]RAPDU: 47 E7 FC 1A FF 5F F1 66 90 00 [14:14:40]wFMCommunicate OK [14:14:40]SAM_PROTO_SignData done [14:14:40]FM_MakeSignedData done [14:14:40]CreateOFDProtocolMessage [14:14:40]wFMCommunicate request_size=4 [14:14:40]MH_SAM_APDU [14:14:40]CAPDU: 80 11 00 00 [14:14:40]Write to MH i2c: E2 08 00 67 2A 80 11 00 00 00 00 00 00 0B [14:14:40]Write i2c OK [14:14:40]MH_I2C_Read... [14:14:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:14:40]Read from MH i2c: E2 [14:14:40]MH_I2C_Read... [14:14:40]Read from MH i2c: E2 17 00 [14:14:40]MH_I2C_Read... [14:14:40]Read from MH i2c: E2 17 00 67 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 69 [14:14:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [14:14:40]wFMCommunicate OK [14:14:40]CreateOFDProtocolMessage done [14:14:40]OFDSenderStorePacket 123250 [14:14:40]StoreOFDPacket docnum=123250 [14:14:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 F8 17 07 01 96 B3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 23 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 D4 DA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 DA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 17 00 00 00 00 07 04 06 00 C0 DA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 D2 85 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 72 E1 01 00 35 04 06 00 33 63 E4 60 07 83 47 E7 FC 1A FF 5F F1 66 [14:14:40]CheckFolder [14:14:40]dirname=/storage/ofd_packets [14:14:40]CheckFolder done [14:14:40]ProducePacketName [14:14:40]name=ofd_packets/00123250 [14:14:40]NVStorageSaveData ofd_packets/00123250 [14:14:40]File name is /storage/ofd_packets/00123250 [14:14:40]Write 301 bytes [14:14:40]NVStorageSaveData done [14:14:40]OFDSenderStorePacket done [14:14:40]KKMCreateOFDPacket done [14:14:40]NVStorageSaveData kkm_last_timestamp [14:14:40]File name is /storage/kkm_last_timestamp [14:14:40]Write 4 bytes [14:14:40]NVStorageSaveData done [14:14:40]ExternCall_PrintAddStr [14:14:40]wPrintStart [14:14:40]Write to MH i2c: 01 00 00 68 2A 92 [14:14:40]Write i2c OK [14:14:40]MH_I2C_Read... [14:14:40]Read from MH i2c: 01 [14:14:40]MH_I2C_Read... [14:14:40]Read from MH i2c: 01 07 00 [14:14:40]MH_I2C_Read... [14:14:40]Read from MH i2c: 01 07 00 68 2A 00 00 00 00 00 FF 0F A7 [14:14:40]RasterBufferAndPrint [14:14:40]line Счет N : (1)1106185 [14:14:40]line ИНН: 02508201610067 [14:14:40]line Контрольно-Кассовый Чек [14:14:40]line ПРОДАЖА [14:14:40]line ТРК (МРК, ГНК) : 62 [14:14:40]line Товар: 2710124130 [14:14:40]line Аи-92-К-5 [14:14:40]line 9.050 * 61.90 [14:14:40]line = 560.20 [14:14:40]line НДС 12% НСП 1% [14:14:40]line > о реализуемом товаре [14:14:40]line ОКРУГЛЕНИЕ: -0.20 [14:14:40]line ИТОГО: 560.00 [14:14:40]line Внесено: 560.00 [14:14:40]line СДАЧА: 0.00 [14:14:40]line НСП 1% : 4.96 [14:14:40]line НДС 12% : 59.49 [14:14:40]line Наличными: 560.00 [14:14:40]line Безнал.: 0.00 [14:14:40]line Место: АЗС № 25 "Партнер Нефть" [14:14:40]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [14:14:40]line СНО: Общий режим [14:14:40]line Чек 107 03.03.2024 14:14 [14:14:40]line Смена: 323 ФФД: 1.0 [14:14:40]line ЗНМ: 0300000019 [14:14:40]line РНМ: 0000000000090573 [14:14:40]line Версия ККМ: 001 [14:14:40]line ФМ: 0000000000874798 [14:14:40]line ФД: 123250 [14:14:40]line ФПД: 56504126277507 [14:14:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T141442&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123250&fm=56504126277507&tin=02508201610067®Number=0000000000090573&sum=56000 [14:14:40]OFD Sender: Processing packet 123250 [packets to send 112, broken 111] [14:14:40]ProducePacketName [14:14:40]name=ofd_packets/00123250 [14:14:40]OFD Sender: To server: pG, [14:14:40]CommunicateWithHost lk.salyk.kg:30040 [14:14:40]ConnectInit lk.salyk.kg [14:14:40]written 0, free lines is 4095 [14:14:40]Connected sock=10 [14:14: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 37 39 38 0F 01 00 00 F8 17 07 01 96 B3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 23 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 D4 DA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 DA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 17 00 00 00 00 07 04 06 00 C0 DA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 D2 85 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 72 E1 01 00 35 04 06 00 33 63 E4 60 07 83 47 E7 FC 1A FF 5F F1 66 [14:14:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 78 E9 47 00 75 15 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 72 E1 01 00 F4 03 04 00 FD 31 E4 65 B6 04 01 00 00 C7 C6 5A 1C 79 A6 3C B0 [14:14:40]CommunicateWithHost err = 0 [14:14:40]CheckOFDResponse [14:14:40]1017 (14) - 77093643461234 [14:14:40]1041 (16) - 0000000000874798 [14:14:40]1040 (4) - 123250 [14:14:40]1012 (4) - 03.03.2024 08:17 [14:14:40]1206 (1) - 0 [14:14:40]OFD Sender: Remove packet 123250 [14:14:40]ProducePacketName [14:14:40]name=ofd_packets/00123250 [14:14:40]NVStorageDeleteData [14:14:41]Write to MH i2c: 01 00 00 93 2A BD [14:14:41]Write i2c OK [14:14:41]MH_I2C_Read... [14:14:41]Read from MH i2c: 01 [14:14:41]MH_I2C_Read... [14:14:41]Read from MH i2c: 01 07 00 [14:14:41]MH_I2C_Read... [14:14:41]Read from MH i2c: 01 07 00 93 2A 00 00 00 00 00 FE 0C CE [14:14:41]RasterBufferAndPrint [14:14:41]line [14:14:41]line [14:14:41]line [14:14:41]line [14:14:41]line [14:14:41]written 0, free lines is 3332 [14:14:41]MH_Cut [14:14:41]Write to MH i2c: D1 01 00 9A 2A 01 96 [14:14:41]Write i2c OK [14:14:41]MH_I2C_Read... [14:14:41]Read from MH i2c: D1 [14:14:41]MH_I2C_Read... [14:14:41]Read from MH i2c: D1 01 00 [14:14:41]MH_I2C_Read... [14:14:41]Read from MH i2c: D1 01 00 9A 2A 00 95 [14:14:41]Write to MH i2c: 01 00 00 9B 2A C5 [14:14:41]Write i2c OK [14:14:41]MH_I2C_Read... [14:14:41]OFD Sender: No OFD packet to send [14:14:41]*** Cut start [14:14:41]*** Purtial cut [14:14:41]*** Stage 1: CUTSNS_PIN = 1 [14:14:43]Read from MH i2c: 01 [14:14:43]MH_I2C_Read... [14:14:43]*** Stop cut motor [14:14:43]*** Cut end [14:14:43]Read from MH i2c: 01 07 00 [14:14:43]MH_I2C_Read... [14:14:43]Read from MH i2c: 01 07 00 9B 2A 00 00 00 00 00 FF 0F DA [14:14:43]process_action close_receipt done [14:14:43]requested_data is exist [14:14:43]produce_requested_data [14:14:43]requested_item fm.sn is exist - process it [14:14:43]wFMCommunicate request_size=4 [14:14:43]MH_SAM_APDU [14:14:43]CAPDU: 80 11 00 00 [14:14:43]Write to MH i2c: E2 08 00 9C 2A 80 11 00 00 00 00 00 00 40 [14:14:43]Write i2c OK [14:14:43]MH_I2C_Read... [14:14:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:14:43]Read from MH i2c: E2 [14:14:43]MH_I2C_Read... [14:14:43]Read from MH i2c: E2 17 00 [14:14:43]MH_I2C_Read... [14:14:43]Read from MH i2c: E2 17 00 9C 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 9E [14:14:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [14:14:43]wFMCommunicate OK [14:14:43]requested_item fd.num is exist - process it [14:14:43]SAM_PROTO_GetFieldsCounters [14:14:43]wFMCommunicate request_size=4 [14:14:43]MH_SAM_APDU [14:14:43]CAPDU: 80 13 00 00 [14:14:43]Write to MH i2c: E2 08 00 9D 2A 80 13 00 00 00 00 00 00 43 [14:14:43]Write i2c OK [14:14:43]MH_I2C_Read... [14:14:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:14:44]Read from MH i2c: E2 [14:14:44]MH_I2C_Read... [14:14:44]Read from MH i2c: E2 62 00 [14:14:44]MH_I2C_Read... [14:14:44]Read from MH i2c: E2 62 00 9D 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 72 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 47 [14:14: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 72 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:14:44]wFMCommunicate OK [14:14:44]SAM_PROTO_GetFieldsCounters done [14:14:44]requested_item shift.num is exist - process it [14:14:44]requested_item shift.opened is exist - process it [14:14:44]req_shift_opened [14:14:44]FM_GetShiftState [14:14:44]SAM_PROTO_GetShiftState [14:14:44]wFMCommunicate request_size=4 [14:14:44]MH_SAM_APDU [14:14:44]CAPDU: 80 13 01 00 [14:14:44]Write to MH i2c: E2 08 00 9E 2A 80 13 01 00 00 00 00 00 45 [14:14:44]Write i2c OK [14:14:44]MH_I2C_Read... [14:14:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:14:44]Read from MH i2c: E2 [14:14:44]MH_I2C_Read... [14:14:44]Read from MH i2c: E2 0E 00 [14:14:44]MH_I2C_Read... [14:14:44]Read from MH i2c: E2 0E 00 9E 2A 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 07 [14:14:44]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [14:14:44]wFMCommunicate OK [14:14:44]SAM_PROTO_GetShiftState done [14:14:44]FM_GetShiftState done [14:14:44]req_shift_opened done [14:14:44]requested_item shift.open_date is exist - process it [14:14:44]req_shift_open_date [14:14:44]req_shift_open_date done [14:14:44]produce_requested_data done [14:14:44]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123250,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [14:14:44]process_action_free close_receipt [14:14:44]json_value_free [14:14:44]json_value_free done [14:14:44]process_json_proto returns [14:14:44]Send response to host [14:14:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123250,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [14:14:44]free response buf [14:14:44]execute_script done [14:14:44]execute_script returns [14:14:44]free content buf [14:14:44]Sock 7.Close socket [14:14:44]Sock 7.Thread stoped [14:14:46]OFD Sender: No OFD packet to send [14:14:51]OFD Sender: No OFD packet to send [14:14:56]OFD Sender: No OFD packet to send [14:14:59]accept exits with 9 [14:14:59]New connection [14:14:59]New thread 3067252068 created [14:14:59]Thread 3067395428 joined [14:14:59]Waiting for new connection... [14:14:59] Sock 9.Parse request [14:14:59]Sock 9.Check first char [14:14:59]Sock 9.First char is OK [14:14:59]request: POST /json_proto HTTP/1.0 [14:14:59]Method: POST [14:14:59]URL: /json_proto [14:14:59]Method is POST - this is cgi request [14:14:59]url: /json_proto [14:14:59]query_string will be loaded in cgi processing [14:14:59]execute_cgi json_proto POST (null) [14:14:59]execute_cgi path=json_proto method=POST [14:14:59]POST find Content-Length [14:14:59]Host: 172.17.48.197:8080 [14:14:59]Content-Length: 683 [14:14:59]Content-Type: application/json [14:14:59] [14:14:59]POST finish read [14:14:59]Found Content-Length = 683 [14:14:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106186", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "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" ] } } [14:14:59]execute_script... [14:14:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106186", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "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" ] } } [14:14:59]POST & json_proto [14:14:59]process_json_proto [14:14:59]json parsed OK: [14:14:59]protocol is kg_v1.0 [14:14:59]action value=close_receipt [14:14:59]process_action close_receipt [14:14:59]cmd_close_receipt [14:14:59]MH_GetDate [14:14:59]Write to MH i2c: F0 00 00 9F 2A B8 [14:14:59]Write i2c OK [14:14:59]MH_I2C_Read... [14:14:59]Read from MH i2c: F0 [14:14:59]MH_I2C_Read... [14:14:59]Read from MH i2c: F0 09 00 [14:14:59]MH_I2C_Read... [14:14:59]Read from MH i2c: F0 09 00 9F 2A 00 E7 85 E4 65 6C AF E3 65 D9 [14:14:59]GetLastDocTimeStamp 1709475282 [14:14:59]current date 1709475303 [14:14:59]FM_GetShiftState [14:14:59]SAM_PROTO_GetShiftState [14:14:59]wFMCommunicate request_size=4 [14:14:59]MH_SAM_APDU [14:14:59]CAPDU: 80 13 01 00 [14:14:59]Write to MH i2c: E2 08 00 A0 2A 80 13 01 00 00 00 00 00 47 [14:14:59]Write i2c OK [14:14:59]MH_I2C_Read... [14:14:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:14:59]Read from MH i2c: E2 [14:14:59]MH_I2C_Read... [14:14:59]Read from MH i2c: E2 0E 00 [14:14:59]MH_I2C_Read... [14:14:59]Read from MH i2c: E2 0E 00 A0 2A 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 09 [14:14:59]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [14:14:59]wFMCommunicate OK [14:14:59]SAM_PROTO_GetShiftState done [14:14:59]FM_GetShiftState done [14:14:59]opened in 1709425579 [14:14:59]opened+sec_in_day 1709511979 [14:14:59]quantity*price = 100030 [14:14:59]sum+1 = 100031 [14:14:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 108 03.03.2024 14:15 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123251 ФПД: 100796006051540 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T141503&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123251&fm=100796006051540&tin=02508201610067®Number=0000000000090573&sum=100000 [14:15:00]StoreToDocumentArchive [14:15:00]shift 323 fd 123251 [14:15:00]save to /storage/0323/doc_00123251 [14:15:00]save last doc name /storage/0323/doc_00123251 to /storage/kkm_last_doc_name [14:15:00]save OK [14:15:00]Clear old archive folders... [14:15:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:15:00]tlvbuf is B6FC49F0 [14:15:00]SAM_PROTO_ClearQueue [14:15:00]wFMCommunicate request_size=4 [14:15:00]MH_SAM_APDU [14:15:00]CAPDU: 80 09 00 00 [14:15:00]Write to MH i2c: E2 08 00 AD 2A 80 09 00 00 00 00 00 00 49 [14:15:00]Write i2c OK [14:15:00]MH_I2C_Read... [14:15:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:15:00]Read from MH i2c: E2 [14:15:00]MH_I2C_Read... [14:15:00]Read from MH i2c: E2 03 00 [14:15:00]MH_I2C_Read... [14:15:00]Read from MH i2c: E2 03 00 AD 2A 00 90 00 4B [14:15:00]RAPDU: 90 00 [14:15:00]wFMCommunicate OK [14:15:00]SAM_PROTO_ClearQueue done [14:15:00]KKMCreateOFDPacket [14:15:00]OFDProtocolAddRootSTLVToBuf [14:15:00]FM_MakeSignedData [14:15:00]FM_MakeSignedData [14:15:00]SAM_PROTO_SignData [14:15:00]wFMCommunicate request_size=4 [14:15:00]MH_SAM_APDU [14:15:00]CAPDU: 80 0D 01 02 [14:15:00]Write to MH i2c: E2 08 00 AE 2A 80 0D 01 02 00 00 00 00 51 [14:15:00]Write i2c OK [14:15:00]MH_I2C_Read... [14:15:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:15:00]Read from MH i2c: E2 [14:15:00]MH_I2C_Read... [14:15:00]Read from MH i2c: E2 03 00 [14:15:00]MH_I2C_Read... [14:15:00]Read from MH i2c: E2 03 00 AE 2A 00 90 00 4C [14:15:00]RAPDU: 90 00 [14:15:00]wFMCommunicate OK [14:15:00]wFMCommunicate request_size=255 [14:15:00]MH_SAM_APDU [14:15: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 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 6C 00 00 00 F4 03 04 00 E7 85 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 73 E1 01 00 35 04 06 00 5B [14:15:00]Write to MH i2c: E2 02 01 AF 2A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 6C 00 00 00 F4 03 04 00 E7 85 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 73 E1 01 00 35 04 06 00 5B 00 00 D2 [14:15:00]Write i2c OK [14:15:00]MH_I2C_Read... [14:15:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:15:01]Read from MH i2c: E2 [14:15:01]MH_I2C_Read... [14:15:01]Read from MH i2c: E2 03 00 [14:15:01]MH_I2C_Read... [14:15:01]Read from MH i2c: E2 03 00 AF 2A 00 90 00 4D [14:15:01]RAPDU: 90 00 [14:15:01]wFMCommunicate OK [14:15:01]wFMCommunicate request_size=10 [14:15:01]MH_SAM_APDU [14:15:01]CAPDU: 80 0D 02 02 05 AC 66 22 AE D4 [14:15:01]Write to MH i2c: E2 0D 00 B0 2A 80 0D 02 02 05 00 AC 66 22 AE D4 00 00 14 [14:15:01]Write i2c OK [14:15:01]MH_I2C_Read... [14:15:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:15:01]Read from MH i2c: E2 [14:15:01]MH_I2C_Read... [14:15:01]Read from MH i2c: E2 03 00 [14:15:01]MH_I2C_Read... [14:15:01]Read from MH i2c: E2 03 00 B0 2A 00 90 00 4E [14:15:01]RAPDU: 90 00 [14:15:01]wFMCommunicate OK [14:15:01]wFMCommunicate request_size=4 [14:15:01]MH_SAM_APDU [14:15:01]CAPDU: 80 0D 03 02 [14:15:01]Write to MH i2c: E2 08 00 B1 2A 80 0D 03 02 00 00 00 00 56 [14:15:01]Write i2c OK [14:15:01]MH_I2C_Read... [14:15:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:15:01]Read from MH i2c: E2 [14:15:01]MH_I2C_Read... [14:15:01]Read from MH i2c: E2 0B 00 [14:15:01]MH_I2C_Read... [14:15:01]Read from MH i2c: E2 0B 00 B1 2A 00 60 D6 8D 24 1D B9 03 27 90 00 3E [14:15:01]RAPDU: 60 D6 8D 24 1D B9 03 27 90 00 [14:15:01]wFMCommunicate OK [14:15:01]SAM_PROTO_SignData done [14:15:01]FM_MakeSignedData done [14:15:01]CreateOFDProtocolMessage [14:15:01]wFMCommunicate request_size=4 [14:15:01]MH_SAM_APDU [14:15:01]CAPDU: 80 11 00 00 [14:15:01]Write to MH i2c: E2 08 00 B2 2A 80 11 00 00 00 00 00 00 56 [14:15:01]Write i2c OK [14:15:01]MH_I2C_Read... [14:15:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:15:01]Read from MH i2c: E2 [14:15:01]MH_I2C_Read... [14:15:01]Read from MH i2c: E2 17 00 [14:15:01]MH_I2C_Read... [14:15:01]Read from MH i2c: E2 17 00 B2 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 B4 [14:15:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [14:15:01]wFMCommunicate OK [14:15:01]CreateOFDProtocolMessage done [14:15:01]OFDSenderStorePacket 123251 [14:15:01]StoreOFDPacket docnum=123251 [14:15:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 8B 1F 07 01 80 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 6C 00 00 00 F4 03 04 00 E7 85 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 73 E1 01 00 35 04 06 00 5B AC 66 22 AE D4 60 D6 8D 24 1D B9 03 27 [14:15:01]CheckFolder [14:15:01]dirname=/storage/ofd_packets [14:15:01]CheckFolder done [14:15:01]ProducePacketName [14:15:01]name=ofd_packets/00123251 [14:15:01]NVStorageSaveData ofd_packets/00123251 [14:15:01]File name is /storage/ofd_packets/00123251 [14:15:01]Write 301 bytes [14:15:01]NVStorageSaveData done [14:15:01]OFDSenderStorePacket done [14:15:01]KKMCreateOFDPacket done [14:15:01]NVStorageSaveData kkm_last_timestamp [14:15:01]File name is /storage/kkm_last_timestamp [14:15:01]Write 4 bytes [14:15:01]NVStorageSaveData done [14:15:01]ExternCall_PrintAddStr [14:15:01]wPrintStart [14:15:01]Write to MH i2c: 01 00 00 B3 2A DD [14:15:01]Write i2c OK [14:15:01]MH_I2C_Read... [14:15:01]Read from MH i2c: 01 [14:15:01]MH_I2C_Read... [14:15:01]Read from MH i2c: 01 07 00 [14:15:01]MH_I2C_Read... [14:15:01]Read from MH i2c: 01 07 00 B3 2A 00 00 00 00 00 FF 0F F2 [14:15:01]RasterBufferAndPrint [14:15:01]line Счет N : (1)1106186 [14:15:01]line ИНН: 02508201610067 [14:15:01]line Контрольно-Кассовый Чек [14:15:01]line ПРОДАЖА [14:15:01]line ТРК (МРК, ГНК) : 11 [14:15:01]line Товар: 2710124130 [14:15:01]line Аи-92-К-5 [14:15:01]line 16.160 * 61.90 [14:15:01]line = 1000.30 [14:15:01]line НДС 12% НСП 1% [14:15:01]line > о реализуемом товаре [14:15:01]line ОКРУГЛЕНИЕ: -0.30 [14:15:01]line ИТОГО: 1000.00 [14:15:01]line Внесено: 1000.00 [14:15:01]line СДАЧА: 0.00 [14:15:01]line НСП 1% : 8.85 [14:15:01]line НДС 12% : 106.23 [14:15:01]line Наличными: 1000.00 [14:15:01]line Безнал.: 0.00 [14:15:01]line Место: АЗС № 25 "Партнер Нефть" [14:15:01]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [14:15:01]line СНО: Общий режим [14:15:01]line Чек 108 03.03.2024 14:15 [14:15:01]line Смена: 323 ФФД: 1.0 [14:15:01]line ЗНМ: 0300000019 [14:15:01]line РНМ: 0000000000090573 [14:15:01]line Версия ККМ: 001 [14:15:01]line ФМ: 0000000000874798 [14:15:01]line ФД: 123251 [14:15:01]line ФПД: 100796006051540 [14:15:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T141503&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123251&fm=100796006051540&tin=02508201610067®Number=0000000000090573&sum=100000 [14:15:01]OFD Sender: Processing packet 123251 [packets to send 112, broken 111] [14:15:01]ProducePacketName [14:15:01]name=ofd_packets/00123251 [14:15:01]OFD Sender: To server: pG, [14:15:01]CommunicateWithHost lk.salyk.kg:30040 [14:15:01]ConnectInit lk.salyk.kg [14:15:01]written 0, free lines is 4095 [14:15:01]Connected sock=10 [14:15:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 8B 1F 07 01 80 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 6C 00 00 00 F4 03 04 00 E7 85 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 73 E1 01 00 35 04 06 00 5B AC 66 22 AE D4 60 D6 8D 24 1D B9 03 27 [14:15:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 0E AF 47 00 0F 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 37 39 38 10 04 04 00 73 E1 01 00 F4 03 04 00 12 32 E4 65 B6 04 01 00 00 EC DB 03 6B D3 CC AF 14 [14:15:01]CommunicateWithHost err = 0 [14:15:01]CheckOFDResponse [14:15:01]1017 (14) - 77093643461234 [14:15:01]1041 (16) - 0000000000874798 [14:15:01]1040 (4) - 123251 [14:15:01]1012 (4) - 03.03.2024 08:17 [14:15:01]1206 (1) - 0 [14:15:01]OFD Sender: Remove packet 123251 [14:15:01]ProducePacketName [14:15:01]name=ofd_packets/00123251 [14:15:01]NVStorageDeleteData [14:15:02]Write to MH i2c: 01 00 00 DE 2A 08 [14:15:02]Write i2c OK [14:15:02]MH_I2C_Read... [14:15:02]Read from MH i2c: 01 [14:15:02]MH_I2C_Read... [14:15:02]Read from MH i2c: 01 07 00 [14:15:02]MH_I2C_Read... [14:15:02]Read from MH i2c: 01 07 00 DE 2A 00 00 00 00 00 ED 0C 08 [14:15:02]RasterBufferAndPrint [14:15:02]line [14:15:02]line [14:15:02]line [14:15:02]line [14:15:02]line [14:15:02]written 0, free lines is 3318 [14:15:02]MH_Cut [14:15:02]Write to MH i2c: D1 01 00 E5 2A 01 E1 [14:15:02]Write i2c OK [14:15:02]MH_I2C_Read... [14:15:02]Read from MH i2c: D1 [14:15:02]MH_I2C_Read... [14:15:02]Read from MH i2c: D1 01 00 [14:15:02]MH_I2C_Read... [14:15:02]Read from MH i2c: D1 01 00 E5 2A 00 E0 [14:15:02]Write to MH i2c: 01 00 00 E6 2A 10 [14:15:02]Write i2c OK [14:15:02]MH_I2C_Read... [14:15:02]OFD Sender: No OFD packet to send [14:15:02]*** Cut start [14:15:02]*** Purtial cut [14:15:02]*** Stage 1: CUTSNS_PIN = 1 [14:15:04]Read from MH i2c: 01 [14:15:04]MH_I2C_Read... [14:15:04]*** Stop cut motor [14:15:04]*** Cut end [14:15:04]Read from MH i2c: 01 07 00 [14:15:04]MH_I2C_Read... [14:15:04]Read from MH i2c: 01 07 00 E6 2A 00 00 00 00 00 FF 0F 25 [14:15:04]process_action close_receipt done [14:15:04]requested_data is exist [14:15:04]produce_requested_data [14:15:04]requested_item fm.sn is exist - process it [14:15:04]wFMCommunicate request_size=4 [14:15:04]MH_SAM_APDU [14:15:04]CAPDU: 80 11 00 00 [14:15:04]Write to MH i2c: E2 08 00 E7 2A 80 11 00 00 00 00 00 00 8B [14:15:04]Write i2c OK [14:15:04]MH_I2C_Read... [14:15:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:15:04]Read from MH i2c: E2 [14:15:04]MH_I2C_Read... [14:15:04]Read from MH i2c: E2 17 00 [14:15:04]MH_I2C_Read... [14:15:04]Read from MH i2c: E2 17 00 E7 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 E9 [14:15:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [14:15:04]wFMCommunicate OK [14:15:04]requested_item fd.num is exist - process it [14:15:04]SAM_PROTO_GetFieldsCounters [14:15:04]wFMCommunicate request_size=4 [14:15:04]MH_SAM_APDU [14:15:04]CAPDU: 80 13 00 00 [14:15:04]Write to MH i2c: E2 08 00 E8 2A 80 13 00 00 00 00 00 00 8E [14:15:04]Write i2c OK [14:15:04]MH_I2C_Read... [14:15:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:15:05]Read from MH i2c: E2 [14:15:05]MH_I2C_Read... [14:15:05]Read from MH i2c: E2 62 00 [14:15:05]MH_I2C_Read... [14:15:05]Read from MH i2c: E2 62 00 E8 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 73 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 96 [14:15: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 73 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:15:05]wFMCommunicate OK [14:15:05]SAM_PROTO_GetFieldsCounters done [14:15:05]requested_item shift.num is exist - process it [14:15:05]requested_item shift.opened is exist - process it [14:15:05]req_shift_opened [14:15:05]FM_GetShiftState [14:15:05]SAM_PROTO_GetShiftState [14:15:05]wFMCommunicate request_size=4 [14:15:05]MH_SAM_APDU [14:15:05]CAPDU: 80 13 01 00 [14:15:05]Write to MH i2c: E2 08 00 E9 2A 80 13 01 00 00 00 00 00 90 [14:15:05]Write i2c OK [14:15:05]MH_I2C_Read... [14:15:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:15:05]Read from MH i2c: E2 [14:15:05]MH_I2C_Read... [14:15:05]Read from MH i2c: E2 0E 00 [14:15:05]MH_I2C_Read... [14:15:05]Read from MH i2c: E2 0E 00 E9 2A 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 52 [14:15:05]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [14:15:05]wFMCommunicate OK [14:15:05]SAM_PROTO_GetShiftState done [14:15:05]FM_GetShiftState done [14:15:05]req_shift_opened done [14:15:05]requested_item shift.open_date is exist - process it [14:15:05]req_shift_open_date [14:15:05]req_shift_open_date done [14:15:05]produce_requested_data done [14:15:05]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123251,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [14:15:05]process_action_free close_receipt [14:15:05]json_value_free [14:15:05]json_value_free done [14:15:05]process_json_proto returns [14:15:05]Send response to host [14:15:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123251,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [14:15:05]free response buf [14:15:05]execute_script done [14:15:05]execute_script returns [14:15:05]free content buf [14:15:05]Sock 9.Close socket [14:15:05]Sock 9.Thread stoped [14:15:07]OFD Sender: No OFD packet to send [14:15:12]OFD Sender: No OFD packet to send [14:15:17]OFD Sender: No OFD packet to send [14:15:22]OFD Sender: No OFD packet to send [14:15:27]OFD Sender: No OFD packet to send [14:15:32]OFD Sender: No OFD packet to send [14:15:37]OFD Sender: No OFD packet to send [14:15:42]OFD Sender: No OFD packet to send [14:15:47]OFD Sender: No OFD packet to send [14:15:52]OFD Sender: No OFD packet to send [14:15:57]OFD Sender: No OFD packet to send [14:16:02]OFD Sender: No OFD packet to send [14:16:07]OFD Sender: No OFD packet to send [14:16:12]OFD Sender: No OFD packet to send [14:16:17]OFD Sender: No OFD packet to send [14:16:22]OFD Sender: No OFD packet to send [14:16:27]OFD Sender: No OFD packet to send [14:16:32]OFD Sender: No OFD packet to send [14:16:37]OFD Sender: No OFD packet to send [14:16:42]OFD Sender: No OFD packet to send [14:16:47]OFD Sender: No OFD packet to send [14:16:52]OFD Sender: No OFD packet to send [14:16:57]OFD Sender: No OFD packet to send [14:17:02]OFD Sender: No OFD packet to send [14:17:07]OFD Sender: No OFD packet to send [14:17:12]OFD Sender: No OFD packet to send [14:17:17]OFD Sender: No OFD packet to send [14:17:22]OFD Sender: No OFD packet to send [14:17:27]OFD Sender: No OFD packet to send [14:17:32]OFD Sender: No OFD packet to send [14:17:37]OFD Sender: No OFD packet to send [14:17:42]OFD Sender: No OFD packet to send [14:17:47]OFD Sender: No OFD packet to send [14:17:52]OFD Sender: No OFD packet to send [14:17:57]OFD Sender: No OFD packet to send [14:18:02]OFD Sender: No OFD packet to send [14:18:07]OFD Sender: No OFD packet to send [14:18:12]OFD Sender: No OFD packet to send [14:18:17]OFD Sender: No OFD packet to send [14:18:22]OFD Sender: No OFD packet to send [14:18:27]OFD Sender: No OFD packet to send [14:18:32]OFD Sender: No OFD packet to send [14:18:37]OFD Sender: No OFD packet to send [14:18:41]accept exits with 7 [14:18:41]New connection [14:18:41]New thread 3067395428 created [14:18:41]Thread 3067252068 joined [14:18:41]Waiting for new connection... [14:18:41] Sock 7.Parse request [14:18:41]Sock 7.Check first char [14:18:41]Sock 7.First char is OK [14:18:41]request: POST /json_proto HTTP/1.0 [14:18:41]Method: POST [14:18:41]URL: /json_proto [14:18:41]Method is POST - this is cgi request [14:18:41]url: /json_proto [14:18:41]query_string will be loaded in cgi processing [14:18:41]execute_cgi json_proto POST (null) [14:18:41]execute_cgi path=json_proto method=POST [14:18:41]POST find Content-Length [14:18:41]Host: 172.17.48.197:8080 [14:18:41]Content-Length: 1210 [14:18:41]Content-Type: application/json [14:18:41] [14:18:41]POST finish read [14:18:41]Found Content-Length = 1210 [14:18:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106187\u000A03.03.2024 14:15\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 52\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 1857.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A00350\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:18:41]execute_script... [14:18:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106187\u000A03.03.2024 14:15\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 52\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 1857.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A00350\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:18:41]POST & json_proto [14:18:41]process_json_proto [14:18:41]json parsed OK: [14:18:41]protocol is kg_v1.0 [14:18:41]action value=print_text [14:18:41]process_action print_text [14:18:41]cmd_print_text [14:18:41]ExternCall_PrintAddStr [14:18:41]wPrintStart [14:18:41]Write to MH i2c: 01 00 00 EA 2A 14 [14:18:41]Write i2c OK [14:18:41]MH_I2C_Read... [14:18:41]Read from MH i2c: 01 [14:18:41]MH_I2C_Read... [14:18:41]Read from MH i2c: 01 07 00 [14:18:41]MH_I2C_Read... [14:18:41]Read from MH i2c: 01 07 00 EA 2A 00 00 00 00 00 FF 0F 29 [14:18:41]RasterBufferAndPrint [14:18:41]line *****ТОВАРНЫЙ ЧЕК***** [14:18:41]line АЗС 25 [14:18:41]line Партнер нефть [14:18:41]line 02508201610067 [14:18:41]line Кассир : Турдумбек у. К. [14:18:41]line Счет N : (1)1106187 [14:18:41]line 03.03.2024 14:15 [14:18:41]line ПРОДАЖА [14:18:41]line ТРК (МРК, ГНК): 52 [14:18:41]line Вид ГСМ : 2710124130 [14:18:41]line Аи-92-К-5 [14:18:41]line 30.000 x 61.90 [14:18:41]line ИТОГ: 1857.00 [14:18:41]line Тип оплаты: Талоны: Топливная Карта [14:18:41]line 00350 [14:18:41]line ______________________ [14:18:41]line (подпись) [14:18:41]written 0, free lines is 4095 [14:18:41]Write to MH i2c: 01 00 00 FF 2A 29 [14:18:41]Write i2c OK [14:18:41]MH_I2C_Read... [14:18:41]Read from MH i2c: 01 [14:18:41]MH_I2C_Read... [14:18:41]Read from MH i2c: 01 07 00 [14:18:41]MH_I2C_Read... [14:18:41]Read from MH i2c: 01 07 00 FF 2A 00 00 00 00 00 F6 0D 33 [14:18:41]RasterBufferAndPrint [14:18:41]line [14:18:41]line [14:18:41]line [14:18:41]line [14:18:41]line [14:18:41]written 0, free lines is 3576 [14:18:41]MH_Cut [14:18:41]Write to MH i2c: D1 01 00 06 2B 01 03 [14:18:41]Write i2c OK [14:18:41]MH_I2C_Read... [14:18:41]Read from MH i2c: D1 [14:18:41]MH_I2C_Read... [14:18:41]Read from MH i2c: D1 01 00 [14:18:41]MH_I2C_Read... [14:18:41]Read from MH i2c: D1 01 00 06 2B 00 02 [14:18:41]Write to MH i2c: 01 00 00 07 2B 32 [14:18:41]Write i2c OK [14:18:41]MH_I2C_Read... [14:18:42]*** Cut start [14:18:42]*** Purtial cut [14:18:42]*** Stage 1: CUTSNS_PIN = 1 [14:18:42]OFD Sender: No OFD packet to send [14:18:44]Read from MH i2c: 01 [14:18:44]MH_I2C_Read... [14:18:44]*** Stop cut motor [14:18:44]*** Cut end [14:18:44]Read from MH i2c: 01 07 00 [14:18:44]MH_I2C_Read... [14:18:44]Read from MH i2c: 01 07 00 07 2B 00 00 00 00 00 FF 0F 47 [14:18:44]process_action print_text done [14:18:44]requested_data is exist [14:18:44]produce_requested_data [14:18:44]requested_item fm.sn is exist - process it [14:18:44]wFMCommunicate request_size=4 [14:18:44]MH_SAM_APDU [14:18:44]CAPDU: 80 11 00 00 [14:18:44]Write to MH i2c: E2 08 00 08 2B 80 11 00 00 00 00 00 00 AD [14:18:44]Write i2c OK [14:18:44]MH_I2C_Read... [14:18:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:18:44]Read from MH i2c: E2 [14:18:44]MH_I2C_Read... [14:18:44]Read from MH i2c: E2 17 00 [14:18:44]MH_I2C_Read... [14:18:44]Read from MH i2c: E2 17 00 08 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 0B [14:18:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [14:18:44]wFMCommunicate OK [14:18:44]requested_item fd.num is exist - process it [14:18:44]SAM_PROTO_GetFieldsCounters [14:18:44]wFMCommunicate request_size=4 [14:18:44]MH_SAM_APDU [14:18:44]CAPDU: 80 13 00 00 [14:18:44]Write to MH i2c: E2 08 00 09 2B 80 13 00 00 00 00 00 00 B0 [14:18:44]Write i2c OK [14:18:44]MH_I2C_Read... [14:18:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:18:44]Read from MH i2c: E2 [14:18:44]MH_I2C_Read... [14:18:44]Read from MH i2c: E2 62 00 [14:18:44]MH_I2C_Read... [14:18:44]Read from MH i2c: E2 62 00 09 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 73 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 B8 [14:18: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 73 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:18:44]wFMCommunicate OK [14:18:44]SAM_PROTO_GetFieldsCounters done [14:18:44]requested_item shift.num is exist - process it [14:18:44]requested_item shift.opened is exist - process it [14:18:44]req_shift_opened [14:18:44]FM_GetShiftState [14:18:44]SAM_PROTO_GetShiftState [14:18:44]wFMCommunicate request_size=4 [14:18:44]MH_SAM_APDU [14:18:44]CAPDU: 80 13 01 00 [14:18:44]Write to MH i2c: E2 08 00 0A 2B 80 13 01 00 00 00 00 00 B2 [14:18:44]Write i2c OK [14:18:44]MH_I2C_Read... [14:18:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:18:44]Read from MH i2c: E2 [14:18:44]MH_I2C_Read... [14:18:44]Read from MH i2c: E2 0E 00 [14:18:44]MH_I2C_Read... [14:18:44]Read from MH i2c: E2 0E 00 0A 2B 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 74 [14:18:44]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [14:18:44]wFMCommunicate OK [14:18:44]SAM_PROTO_GetShiftState done [14:18:44]FM_GetShiftState done [14:18:44]req_shift_opened done [14:18:44]requested_item shift.open_date is exist - process it [14:18:44]req_shift_open_date [14:18:44]req_shift_open_date done [14:18:44]produce_requested_data done [14:18:44]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123251,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [14:18:44]process_action_free print_text [14:18:44]json_value_free [14:18:44]json_value_free done [14:18:44]process_json_proto returns [14:18:44]Send response to host [14:18:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123251,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [14:18:44]free response buf [14:18:44]execute_script done [14:18:44]execute_script returns [14:18:44]free content buf [14:18:44]Sock 7.Close socket [14:18:44]Sock 7.Thread stoped [14:18:47]OFD Sender: No OFD packet to send [14:18:52]OFD Sender: No OFD packet to send [14:18:57]OFD Sender: No OFD packet to send [14:19:02]OFD Sender: No OFD packet to send [14:19:04]accept exits with 9 [14:19:04]New connection [14:19:04]New thread 3067252068 created [14:19:04] Sock 9.Parse request [14:19:04]Thread 3067395428 joined [14:19:04]Sock 9.Check first char [14:19:04]Waiting for new connection... [14:19:04]Sock 9.First char is OK [14:19:04]request: POST /json_proto HTTP/1.0 [14:19:04]Method: POST [14:19:04]URL: /json_proto [14:19:04]Method is POST - this is cgi request [14:19:04]url: /json_proto [14:19:04]query_string will be loaded in cgi processing [14:19:04]execute_cgi json_proto POST (null) [14:19:04]execute_cgi path=json_proto method=POST [14:19:04]POST find Content-Length [14:19:04]Host: 172.17.48.197:8080 [14:19:04]Content-Length: 683 [14:19:04]Content-Type: application/json [14:19:04] [14:19:04]POST finish read [14:19:04]Found Content-Length = 683 [14:19:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106188", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:19:04]execute_script... [14:19: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)1106188", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:19:04]POST & json_proto [14:19:04]process_json_proto [14:19:04]json parsed OK: [14:19:04]protocol is kg_v1.0 [14:19:04]action value=close_receipt [14:19:04]process_action close_receipt [14:19:04]cmd_close_receipt [14:19:04]MH_GetDate [14:19:04]Write to MH i2c: F0 00 00 0B 2B 25 [14:19:04]Write i2c OK [14:19:04]MH_I2C_Read... [14:19:04]Read from MH i2c: F0 [14:19:04]MH_I2C_Read... [14:19:04]Read from MH i2c: F0 09 00 [14:19:04]MH_I2C_Read... [14:19:04]Read from MH i2c: F0 09 00 0B 2B 00 DC 86 E4 65 6C AF E3 65 3C [14:19:04]GetLastDocTimeStamp 1709475303 [14:19:04]current date 1709475548 [14:19:04]FM_GetShiftState [14:19:04]SAM_PROTO_GetShiftState [14:19:04]wFMCommunicate request_size=4 [14:19:04]MH_SAM_APDU [14:19:04]CAPDU: 80 13 01 00 [14:19:04]Write to MH i2c: E2 08 00 0C 2B 80 13 01 00 00 00 00 00 B4 [14:19:04]Write i2c OK [14:19:04]MH_I2C_Read... [14:19:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:04]Read from MH i2c: E2 [14:19:04]MH_I2C_Read... [14:19:04]Read from MH i2c: E2 0E 00 [14:19:04]MH_I2C_Read... [14:19:04]Read from MH i2c: E2 0E 00 0C 2B 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 76 [14:19:04]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [14:19:04]wFMCommunicate OK [14:19:04]SAM_PROTO_GetShiftState done [14:19:04]FM_GetShiftState done [14:19:04]opened in 1709425579 [14:19:04]opened+sec_in_day 1709511979 [14:19:04]quantity*price = 100010 [14:19:04]sum+1 = 100012 [14:19:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 109 03.03.2024 14:19 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123252 ФПД: 57628438360003 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T141908&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123252&fm=57628438360003&tin=02508201610067®Number=0000000000090573&sum=100000 [14:19:05]StoreToDocumentArchive [14:19:05]shift 323 fd 123252 [14:19:05]save to /storage/0323/doc_00123252 [14:19:05]save last doc name /storage/0323/doc_00123252 to /storage/kkm_last_doc_name [14:19:05]save OK [14:19:05]Clear old archive folders... [14:19:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:19:05]tlvbuf is 00DECEB0 [14:19:05]SAM_PROTO_ClearQueue [14:19:05]wFMCommunicate request_size=4 [14:19:05]MH_SAM_APDU [14:19:05]CAPDU: 80 09 00 00 [14:19:05]Write to MH i2c: E2 08 00 19 2B 80 09 00 00 00 00 00 00 B6 [14:19:05]Write i2c OK [14:19:05]MH_I2C_Read... [14:19:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:19:05]Read from MH i2c: E2 [14:19:05]MH_I2C_Read... [14:19:05]Read from MH i2c: E2 03 00 [14:19:05]MH_I2C_Read... [14:19:05]Read from MH i2c: E2 03 00 19 2B 00 90 00 B8 [14:19:05]RAPDU: 90 00 [14:19:05]wFMCommunicate OK [14:19:05]SAM_PROTO_ClearQueue done [14:19:05]KKMCreateOFDPacket [14:19:05]OFDProtocolAddRootSTLVToBuf [14:19:05]FM_MakeSignedData [14:19:05]FM_MakeSignedData [14:19:05]SAM_PROTO_SignData [14:19:05]wFMCommunicate request_size=4 [14:19:05]MH_SAM_APDU [14:19:05]CAPDU: 80 0D 01 02 [14:19:05]Write to MH i2c: E2 08 00 1A 2B 80 0D 01 02 00 00 00 00 BE [14:19:05]Write i2c OK [14:19:05]MH_I2C_Read... [14:19:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:19:06]Read from MH i2c: E2 [14:19:06]MH_I2C_Read... [14:19:06]Read from MH i2c: E2 03 00 [14:19:06]MH_I2C_Read... [14:19:06]Read from MH i2c: E2 03 00 1A 2B 00 90 00 B9 [14:19:06]RAPDU: 90 00 [14:19:06]wFMCommunicate OK [14:19:06]wFMCommunicate request_size=255 [14:19:06]MH_SAM_APDU [14:19: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 DC 86 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 74 E1 01 00 35 04 06 00 34 [14:19:06]Write to MH i2c: E2 02 01 1B 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 DC 86 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 74 E1 01 00 35 04 06 00 34 00 00 09 [14:19:06]Write i2c OK [14:19:06]MH_I2C_Read... [14:19:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:19:06]Read from MH i2c: E2 [14:19:06]MH_I2C_Read... [14:19:06]Read from MH i2c: E2 03 00 [14:19:06]MH_I2C_Read... [14:19:06]Read from MH i2c: E2 03 00 1B 2B 00 90 00 BA [14:19:06]RAPDU: 90 00 [14:19:06]wFMCommunicate OK [14:19:06]wFMCommunicate request_size=10 [14:19:06]MH_SAM_APDU [14:19:06]CAPDU: 80 0D 02 02 05 69 AA 98 EF C3 [14:19:06]Write to MH i2c: E2 0D 00 1C 2B 80 0D 02 02 05 00 69 AA 98 EF C3 00 00 28 [14:19:06]Write i2c OK [14:19:06]MH_I2C_Read... [14:19:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:19:06]Read from MH i2c: E2 [14:19:06]MH_I2C_Read... [14:19:06]Read from MH i2c: E2 03 00 [14:19:06]MH_I2C_Read... [14:19:06]Read from MH i2c: E2 03 00 1C 2B 00 90 00 BB [14:19:06]RAPDU: 90 00 [14:19:06]wFMCommunicate OK [14:19:06]wFMCommunicate request_size=4 [14:19:06]MH_SAM_APDU [14:19:06]CAPDU: 80 0D 03 02 [14:19:06]Write to MH i2c: E2 08 00 1D 2B 80 0D 03 02 00 00 00 00 C3 [14:19:06]Write i2c OK [14:19:06]MH_I2C_Read... [14:19:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:19:06]Read from MH i2c: E2 [14:19:06]MH_I2C_Read... [14:19:06]Read from MH i2c: E2 0B 00 [14:19:06]MH_I2C_Read... [14:19:06]Read from MH i2c: E2 0B 00 1D 2B 00 FB 73 B2 B0 F5 B5 07 F8 90 00 3D [14:19:06]RAPDU: FB 73 B2 B0 F5 B5 07 F8 90 00 [14:19:06]wFMCommunicate OK [14:19:06]SAM_PROTO_SignData done [14:19:06]FM_MakeSignedData done [14:19:06]CreateOFDProtocolMessage [14:19:06]wFMCommunicate request_size=4 [14:19:06]MH_SAM_APDU [14:19:06]CAPDU: 80 11 00 00 [14:19:06]Write to MH i2c: E2 08 00 1E 2B 80 11 00 00 00 00 00 00 C3 [14:19:06]Write i2c OK [14:19:06]MH_I2C_Read... [14:19:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:06]Read from MH i2c: E2 [14:19:06]MH_I2C_Read... [14:19:06]Read from MH i2c: E2 17 00 [14:19:06]MH_I2C_Read... [14:19:06]Read from MH i2c: E2 17 00 1E 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 21 [14:19:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [14:19:06]wFMCommunicate OK [14:19:06]CreateOFDProtocolMessage done [14:19:06]OFDSenderStorePacket 123252 [14:19:06]StoreOFDPacket docnum=123252 [14:19:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 F0 1C 07 01 39 8B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 DC 86 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 74 E1 01 00 35 04 06 00 34 69 AA 98 EF C3 FB 73 B2 B0 F5 B5 07 F8 [14:19:06]CheckFolder [14:19:06]dirname=/storage/ofd_packets [14:19:06]CheckFolder done [14:19:06]ProducePacketName [14:19:06]name=ofd_packets/00123252 [14:19:06]NVStorageSaveData ofd_packets/00123252 [14:19:06]File name is /storage/ofd_packets/00123252 [14:19:06]Write 301 bytes [14:19:06]NVStorageSaveData done [14:19:06]OFDSenderStorePacket done [14:19:06]KKMCreateOFDPacket done [14:19:06]NVStorageSaveData kkm_last_timestamp [14:19:06]File name is /storage/kkm_last_timestamp [14:19:06]Write 4 bytes [14:19:06]NVStorageSaveData done [14:19:06]ExternCall_PrintAddStr [14:19:06]wPrintStart [14:19:06]Write to MH i2c: 01 00 00 1F 2B 4A [14:19:06]Write i2c OK [14:19:06]MH_I2C_Read... [14:19:06]Read from MH i2c: 01 [14:19:06]MH_I2C_Read... [14:19:06]Read from MH i2c: 01 07 00 [14:19:06]MH_I2C_Read... [14:19:06]Read from MH i2c: 01 07 00 1F 2B 00 00 00 00 00 FF 0F 5F [14:19:06]RasterBufferAndPrint [14:19:06]line Счет N : (1)1106188 [14:19:06]line ИНН: 02508201610067 [14:19:06]line Контрольно-Кассовый Чек [14:19:06]line ПРОДАЖА [14:19:06]line ТРК (МРК, ГНК) : 13 [14:19:06]line Товар: 2710124500 [14:19:06]line Аи-95-К-5 [14:19:06]line 14.390 * 69.50 [14:19:06]line = 1000.11 [14:19:06]line НДС 12% НСП 1% [14:19:06]line > о реализуемом товаре [14:19:06]line ОКРУГЛЕНИЕ: -0.11 [14:19:06]line ИТОГО: 1000.00 [14:19:06]line Внесено: 1000.00 [14:19:06]line СДАЧА: 0.00 [14:19:06]line НСП 1% : 8.85 [14:19:06]line НДС 12% : 106.21 [14:19:06]line Наличными: 1000.00 [14:19:06]line Безнал.: 0.00 [14:19:06]line Место: АЗС № 25 "Партнер Нефть" [14:19:06]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [14:19:06]line СНО: Общий режим [14:19:06]line Чек 109 03.03.2024 14:19 [14:19:06]line Смена: 323 ФФД: 1.0 [14:19:06]line ЗНМ: 0300000019 [14:19:06]line РНМ: 0000000000090573 [14:19:06]line Версия ККМ: 001 [14:19:06]line ФМ: 0000000000874798 [14:19:06]line ФД: 123252 [14:19:06]line ФПД: 57628438360003 [14:19:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T141908&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123252&fm=57628438360003&tin=02508201610067®Number=0000000000090573&sum=100000 [14:19:06]OFD Sender: Processing packet 123252 [packets to send 112, broken 111] [14:19:06]ProducePacketName [14:19:06]name=ofd_packets/00123252 [14:19:06]OFD Sender: To server: pG, [14:19:06]CommunicateWithHost lk.salyk.kg:30040 [14:19:06]ConnectInit lk.salyk.kg [14:19:06]written 0, free lines is 4095 [14:19:06]Connected sock=10 [14:19: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 37 39 38 0F 01 00 00 F0 1C 07 01 39 8B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 DC 86 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 74 E1 01 00 35 04 06 00 34 69 AA 98 EF C3 FB 73 B2 B0 F5 B5 07 F8 [14:19:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 97 A3 47 00 94 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 37 39 38 10 04 04 00 74 E1 01 00 F4 03 04 00 07 33 E4 65 B6 04 01 00 00 90 72 5D 68 83 77 D1 FD [14:19:07]CommunicateWithHost err = 0 [14:19:07]CheckOFDResponse [14:19:07]1017 (14) - 77093643461234 [14:19:07]1041 (16) - 0000000000874798 [14:19:07]1040 (4) - 123252 [14:19:07]1012 (4) - 03.03.2024 08:21 [14:19:07]1206 (1) - 0 [14:19:07]OFD Sender: Remove packet 123252 [14:19:07]ProducePacketName [14:19:07]name=ofd_packets/00123252 [14:19:07]NVStorageDeleteData [14:19:07]Write to MH i2c: 01 00 00 4A 2B 75 [14:19:07]Write i2c OK [14:19:07]MH_I2C_Read... [14:19:07]Read from MH i2c: 01 [14:19:07]MH_I2C_Read... [14:19:07]Read from MH i2c: 01 07 00 [14:19:07]MH_I2C_Read... [14:19:07]Read from MH i2c: 01 07 00 4A 2B 00 00 00 00 00 F6 0C 7E [14:19:07]RasterBufferAndPrint [14:19:07]line [14:19:07]line [14:19:07]line [14:19:07]line [14:19:07]line [14:19:07]written 0, free lines is 3324 [14:19:07]MH_Cut [14:19:07]Write to MH i2c: D1 01 00 51 2B 01 4E [14:19:07]Write i2c OK [14:19:07]MH_I2C_Read... [14:19:07]Read from MH i2c: D1 [14:19:07]MH_I2C_Read... [14:19:07]Read from MH i2c: D1 01 00 [14:19:07]MH_I2C_Read... [14:19:07]Read from MH i2c: D1 01 00 51 2B 00 4D [14:19:07]Write to MH i2c: 01 00 00 52 2B 7D [14:19:07]Write i2c OK [14:19:07]MH_I2C_Read... [14:19:07]OFD Sender: No OFD packet to send [14:19:07]*** Cut start [14:19:07]*** Purtial cut [14:19:07]*** Stage 1: CUTSNS_PIN = 1 [14:19:09]Read from MH i2c: 01 [14:19:09]MH_I2C_Read... [14:19:09]*** Stop cut motor [14:19:09]*** Cut end [14:19:09]Read from MH i2c: 01 07 00 [14:19:09]MH_I2C_Read... [14:19:09]Read from MH i2c: 01 07 00 52 2B 00 00 00 00 00 FF 0F 92 [14:19:09]process_action close_receipt done [14:19:09]requested_data is exist [14:19:09]produce_requested_data [14:19:09]requested_item fm.sn is exist - process it [14:19:09]wFMCommunicate request_size=4 [14:19:09]MH_SAM_APDU [14:19:09]CAPDU: 80 11 00 00 [14:19:09]Write to MH i2c: E2 08 00 53 2B 80 11 00 00 00 00 00 00 F8 [14:19:09]Write i2c OK [14:19:09]MH_I2C_Read... [14:19:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:10]Read from MH i2c: E2 [14:19:10]MH_I2C_Read... [14:19:10]Read from MH i2c: E2 17 00 [14:19:10]MH_I2C_Read... [14:19:10]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 37 39 38 90 00 56 [14:19:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [14:19:10]wFMCommunicate OK [14:19:10]requested_item fd.num is exist - process it [14:19:10]SAM_PROTO_GetFieldsCounters [14:19:10]wFMCommunicate request_size=4 [14:19:10]MH_SAM_APDU [14:19:10]CAPDU: 80 13 00 00 [14:19:10]Write to MH i2c: E2 08 00 54 2B 80 13 00 00 00 00 00 00 FB [14:19:10]Write i2c OK [14:19:10]MH_I2C_Read... [14:19:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:19:10]Read from MH i2c: E2 [14:19:10]MH_I2C_Read... [14:19:10]Read from MH i2c: E2 62 00 [14:19:10]MH_I2C_Read... [14:19:10]Read from MH i2c: E2 62 00 54 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 74 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 07 [14:19: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 74 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:19:10]wFMCommunicate OK [14:19:10]SAM_PROTO_GetFieldsCounters done [14:19:10]requested_item shift.num is exist - process it [14:19:10]requested_item shift.opened is exist - process it [14:19:10]req_shift_opened [14:19:10]FM_GetShiftState [14:19:10]SAM_PROTO_GetShiftState [14:19:10]wFMCommunicate request_size=4 [14:19:10]MH_SAM_APDU [14:19:10]CAPDU: 80 13 01 00 [14:19:10]Write to MH i2c: E2 08 00 55 2B 80 13 01 00 00 00 00 00 FD [14:19:10]Write i2c OK [14:19:10]MH_I2C_Read... [14:19:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:10]Read from MH i2c: E2 [14:19:10]MH_I2C_Read... [14:19:10]Read from MH i2c: E2 0E 00 [14:19:10]MH_I2C_Read... [14:19:10]Read from MH i2c: E2 0E 00 55 2B 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 BF [14:19:10]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [14:19:10]wFMCommunicate OK [14:19:10]SAM_PROTO_GetShiftState done [14:19:10]FM_GetShiftState done [14:19:10]req_shift_opened done [14:19:10]requested_item shift.open_date is exist - process it [14:19:10]req_shift_open_date [14:19:10]req_shift_open_date done [14:19:10]produce_requested_data done [14:19:10]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123252,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [14:19:10]process_action_free close_receipt [14:19:10]json_value_free [14:19:10]json_value_free done [14:19:10]process_json_proto returns [14:19:10]Send response to host [14:19:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123252,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [14:19:10]free response buf [14:19:10]execute_script done [14:19:10]execute_script returns [14:19:10]free content buf [14:19:10]Sock 9.Close socket [14:19:10]Sock 9.Thread stoped [14:19:12]OFD Sender: No OFD packet to send [14:19:17]OFD Sender: No OFD packet to send [14:19:22]OFD Sender: No OFD packet to send [14:19:27]OFD Sender: No OFD packet to send [14:19:32]OFD Sender: No OFD packet to send [14:19:37]OFD Sender: No OFD packet to send [14:19:42]OFD Sender: No OFD packet to send [14:19:47]OFD Sender: No OFD packet to send [14:19:52]OFD Sender: No OFD packet to send [14:19:57]OFD Sender: No OFD packet to send [14:20:02]OFD Sender: No OFD packet to send [14:20:07]OFD Sender: No OFD packet to send [14:20:12]OFD Sender: No OFD packet to send [14:20:17]OFD Sender: No OFD packet to send [14:20:22]OFD Sender: No OFD packet to send [14:20:27]OFD Sender: No OFD packet to send [14:20:32]OFD Sender: No OFD packet to send [14:20:37]OFD Sender: No OFD packet to send [14:20:42]OFD Sender: No OFD packet to send [14:20:47]OFD Sender: No OFD packet to send [14:20:52]OFD Sender: No OFD packet to send [14:20:57]OFD Sender: No OFD packet to send [14:21:02]OFD Sender: No OFD packet to send [14:21:07]OFD Sender: No OFD packet to send [14:21:12]OFD Sender: No OFD packet to send [14:21:17]OFD Sender: No OFD packet to send [14:21:22]OFD Sender: No OFD packet to send [14:21:27]OFD Sender: No OFD packet to send [14:21:32]OFD Sender: No OFD packet to send [14:21:37]OFD Sender: No OFD packet to send [14:21:42]OFD Sender: No OFD packet to send [14:21:47]OFD Sender: No OFD packet to send [14:21:52]OFD Sender: No OFD packet to send [14:21:57]OFD Sender: No OFD packet to send [14:22:02]OFD Sender: No OFD packet to send [14:22:07]OFD Sender: No OFD packet to send [14:22:12]OFD Sender: No OFD packet to send [14:22:17]OFD Sender: No OFD packet to send [14:22:22]OFD Sender: No OFD packet to send [14:22:27]OFD Sender: No OFD packet to send [14:22:32]OFD Sender: No OFD packet to send [14:22:37]OFD Sender: No OFD packet to send [14:22:42]OFD Sender: No OFD packet to send [14:22:47]OFD Sender: No OFD packet to send [14:22:52]OFD Sender: No OFD packet to send [14:22:57]OFD Sender: No OFD packet to send [14:23:02]OFD Sender: No OFD packet to send [14:23:07]OFD Sender: No OFD packet to send [14:23:12]OFD Sender: No OFD packet to send [14:23:17]OFD Sender: No OFD packet to send [14:23:22]OFD Sender: No OFD packet to send [14:23:27]OFD Sender: No OFD packet to send [14:23:32]OFD Sender: No OFD packet to send [14:23:37]OFD Sender: No OFD packet to send [14:23:42]OFD Sender: No OFD packet to send [14:23:47]OFD Sender: No OFD packet to send [14:23:52]OFD Sender: No OFD packet to send [14:23:53]accept exits with 7 [14:23:53]New connection [14:23:53]New thread 3067395428 created [14:23:53]Thread 3067252068 joined [14:23:53]Waiting for new connection... [14:23:53] Sock 7.Parse request [14:23:53]Sock 7.Check first char [14:23:53]Sock 7.First char is OK [14:23:53]request: POST /json_proto HTTP/1.0 [14:23:53]Method: POST [14:23:53]URL: /json_proto [14:23:53]Method is POST - this is cgi request [14:23:53]url: /json_proto [14:23:53]query_string will be loaded in cgi processing [14:23:53]execute_cgi json_proto POST (null) [14:23:53]execute_cgi path=json_proto method=POST [14:23:53]POST find Content-Length [14:23:53]Host: 172.17.48.197:8080 [14:23:53]Content-Length: 683 [14:23:53]Content-Type: application/json [14:23:53] [14:23:53]POST finish read [14:23:53]Found Content-Length = 683 [14:23:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106189", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "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" ] } } [14:23:53]execute_script... [14:23: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)1106189", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "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" ] } } [14:23:53]POST & json_proto [14:23:53]process_json_proto [14:23:53]json parsed OK: [14:23:53]protocol is kg_v1.0 [14:23:53]action value=close_receipt [14:23:53]process_action close_receipt [14:23:53]cmd_close_receipt [14:23:53]MH_GetDate [14:23:53]Write to MH i2c: F0 00 00 56 2B 70 [14:23:53]Write i2c OK [14:23:53]MH_I2C_Read... [14:23:53]Read from MH i2c: F0 [14:23:53]MH_I2C_Read... [14:23:53]Read from MH i2c: F0 09 00 [14:23:53]MH_I2C_Read... [14:23:53]Read from MH i2c: F0 09 00 56 2B 00 FD 87 E4 65 6C AF E3 65 A9 [14:23:53]GetLastDocTimeStamp 1709475548 [14:23:53]current date 1709475837 [14:23:53]FM_GetShiftState [14:23:53]SAM_PROTO_GetShiftState [14:23:53]wFMCommunicate request_size=4 [14:23:53]MH_SAM_APDU [14:23:53]CAPDU: 80 13 01 00 [14:23:53]Write to MH i2c: E2 08 00 57 2B 80 13 01 00 00 00 00 00 FF [14:23:53]Write i2c OK [14:23:53]MH_I2C_Read... [14:23:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:53]Read from MH i2c: E2 [14:23:53]MH_I2C_Read... [14:23:53]Read from MH i2c: E2 0E 00 [14:23:53]MH_I2C_Read... [14:23:53]Read from MH i2c: E2 0E 00 57 2B 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 C1 [14:23:53]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [14:23:53]wFMCommunicate OK [14:23:53]SAM_PROTO_GetShiftState done [14:23:53]FM_GetShiftState done [14:23:53]opened in 1709425579 [14:23:53]opened+sec_in_day 1709511979 [14:23:53]quantity*price = 100030 [14:23:53]sum+1 = 100031 [14:23:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 110 03.03.2024 14:23 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123253 ФПД: 245263568060442 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T142357&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123253&fm=245263568060442&tin=02508201610067®Number=0000000000090573&sum=100000 [14:23:55]StoreToDocumentArchive [14:23:55]shift 323 fd 123253 [14:23:55]save to /storage/0323/doc_00123253 [14:23:55]save last doc name /storage/0323/doc_00123253 to /storage/kkm_last_doc_name [14:23:55]save OK [14:23:55]Clear old archive folders... [14:23:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:23:55]tlvbuf is 00E45370 [14:23:55]SAM_PROTO_ClearQueue [14:23:55]wFMCommunicate request_size=4 [14:23:55]MH_SAM_APDU [14:23:55]CAPDU: 80 09 00 00 [14:23:55]Write to MH i2c: E2 08 00 64 2B 80 09 00 00 00 00 00 00 01 [14:23:55]Write i2c OK [14:23:55]MH_I2C_Read... [14:23:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:23:55]Read from MH i2c: E2 [14:23:55]MH_I2C_Read... [14:23:55]Read from MH i2c: E2 03 00 [14:23:55]MH_I2C_Read... [14:23:55]Read from MH i2c: E2 03 00 64 2B 00 90 00 03 [14:23:55]RAPDU: 90 00 [14:23:55]wFMCommunicate OK [14:23:55]SAM_PROTO_ClearQueue done [14:23:55]KKMCreateOFDPacket [14:23:55]OFDProtocolAddRootSTLVToBuf [14:23:55]FM_MakeSignedData [14:23:55]FM_MakeSignedData [14:23:55]SAM_PROTO_SignData [14:23:55]wFMCommunicate request_size=4 [14:23:55]MH_SAM_APDU [14:23:55]CAPDU: 80 0D 01 02 [14:23:55]Write to MH i2c: E2 08 00 65 2B 80 0D 01 02 00 00 00 00 09 [14:23:55]Write i2c OK [14:23:55]MH_I2C_Read... [14:23:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:23:55]Read from MH i2c: E2 [14:23:55]MH_I2C_Read... [14:23:55]Read from MH i2c: E2 03 00 [14:23:55]MH_I2C_Read... [14:23:55]Read from MH i2c: E2 03 00 65 2B 00 90 00 04 [14:23:55]RAPDU: 90 00 [14:23:55]wFMCommunicate OK [14:23:55]wFMCommunicate request_size=255 [14:23:55]MH_SAM_APDU [14:23:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 6E 00 00 00 F4 03 04 00 FD 87 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 75 E1 01 00 35 04 06 00 DF [14:23:55]Write to MH i2c: E2 02 01 66 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 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 6E 00 00 00 F4 03 04 00 FD 87 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 75 E1 01 00 35 04 06 00 DF 00 00 2A [14:23:55]Write i2c OK [14:23:55]MH_I2C_Read... [14:23:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:55]Read from MH i2c: E2 [14:23:55]MH_I2C_Read... [14:23:55]Read from MH i2c: E2 03 00 [14:23:55]MH_I2C_Read... [14:23:55]Read from MH i2c: E2 03 00 66 2B 00 90 00 05 [14:23:55]RAPDU: 90 00 [14:23:55]wFMCommunicate OK [14:23:55]wFMCommunicate request_size=10 [14:23:55]MH_SAM_APDU [14:23:55]CAPDU: 80 0D 02 02 05 10 DF D9 C0 1A [14:23:55]Write to MH i2c: E2 0D 00 67 2B 80 0D 02 02 05 00 10 DF D9 C0 1A 00 00 B8 [14:23:55]Write i2c OK [14:23:55]MH_I2C_Read... [14:23:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:55]Read from MH i2c: E2 [14:23:55]MH_I2C_Read... [14:23:55]Read from MH i2c: E2 03 00 [14:23:55]MH_I2C_Read... [14:23:55]Read from MH i2c: E2 03 00 67 2B 00 90 00 06 [14:23:55]RAPDU: 90 00 [14:23:55]wFMCommunicate OK [14:23:55]wFMCommunicate request_size=4 [14:23:55]MH_SAM_APDU [14:23:55]CAPDU: 80 0D 03 02 [14:23:55]Write to MH i2c: E2 08 00 68 2B 80 0D 03 02 00 00 00 00 0E [14:23:55]Write i2c OK [14:23:55]MH_I2C_Read... [14:23:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:23:55]Read from MH i2c: E2 [14:23:55]MH_I2C_Read... [14:23:55]Read from MH i2c: E2 0B 00 [14:23:55]MH_I2C_Read... [14:23:55]Read from MH i2c: E2 0B 00 68 2B 00 F6 7F E6 D7 BA 57 9D 13 90 00 02 [14:23:55]RAPDU: F6 7F E6 D7 BA 57 9D 13 90 00 [14:23:55]wFMCommunicate OK [14:23:55]SAM_PROTO_SignData done [14:23:55]FM_MakeSignedData done [14:23:55]CreateOFDProtocolMessage [14:23:55]wFMCommunicate request_size=4 [14:23:55]MH_SAM_APDU [14:23:55]CAPDU: 80 11 00 00 [14:23:55]Write to MH i2c: E2 08 00 69 2B 80 11 00 00 00 00 00 00 0E [14:23:55]Write i2c OK [14:23:55]MH_I2C_Read... [14:23:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:55]Read from MH i2c: E2 [14:23:55]MH_I2C_Read... [14:23:55]Read from MH i2c: E2 17 00 [14:23:55]MH_I2C_Read... [14:23:55]Read from MH i2c: E2 17 00 69 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 6C [14:23:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [14:23:55]wFMCommunicate OK [14:23:55]CreateOFDProtocolMessage done [14:23:55]OFDSenderStorePacket 123253 [14:23:55]StoreOFDPacket docnum=123253 [14:23:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 2A C9 07 01 91 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 6E 00 00 00 F4 03 04 00 FD 87 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 75 E1 01 00 35 04 06 00 DF 10 DF D9 C0 1A F6 7F E6 D7 BA 57 9D 13 [14:23:55]CheckFolder [14:23:55]dirname=/storage/ofd_packets [14:23:55]CheckFolder done [14:23:55]ProducePacketName [14:23:55]name=ofd_packets/00123253 [14:23:55]NVStorageSaveData ofd_packets/00123253 [14:23:55]File name is /storage/ofd_packets/00123253 [14:23:55]Write 301 bytes [14:23:55]NVStorageSaveData done [14:23:55]OFDSenderStorePacket done [14:23:55]KKMCreateOFDPacket done [14:23:55]NVStorageSaveData kkm_last_timestamp [14:23:55]File name is /storage/kkm_last_timestamp [14:23:55]Write 4 bytes [14:23:55]NVStorageSaveData done [14:23:55]ExternCall_PrintAddStr [14:23:55]wPrintStart [14:23:55]Write to MH i2c: 01 00 00 6A 2B 95 [14:23:55]Write i2c OK [14:23:55]MH_I2C_Read... [14:23:55]Read from MH i2c: 01 [14:23:55]MH_I2C_Read... [14:23:55]Read from MH i2c: 01 07 00 [14:23:55]MH_I2C_Read... [14:23:55]Read from MH i2c: 01 07 00 6A 2B 00 00 00 00 00 FF 0F AA [14:23:55]RasterBufferAndPrint [14:23:55]line Счет N : (1)1106189 [14:23:55]line ИНН: 02508201610067 [14:23:55]line Контрольно-Кассовый Чек [14:23:55]line ПРОДАЖА [14:23:55]line ТРК (МРК, ГНК) : 62 [14:23:55]line Товар: 2710124130 [14:23:55]line Аи-92-К-5 [14:23:55]line 16.160 * 61.90 [14:23:55]line = 1000.30 [14:23:55]line НДС 12% НСП 1% [14:23:55]line > о реализуемом товаре [14:23:55]line ОКРУГЛЕНИЕ: -0.30 [14:23:55]line ИТОГО: 1000.00 [14:23:55]line Внесено: 1000.00 [14:23:55]line СДАЧА: 0.00 [14:23:55]line НСП 1% : 8.85 [14:23:55]line НДС 12% : 106.23 [14:23:55]line Наличными: 1000.00 [14:23:55]line Безнал.: 0.00 [14:23:55]line Место: АЗС № 25 "Партнер Нефть" [14:23:55]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [14:23:55]line СНО: Общий режим [14:23:55]line Чек 110 03.03.2024 14:23 [14:23:55]line Смена: 323 ФФД: 1.0 [14:23:55]line ЗНМ: 0300000019 [14:23:55]line РНМ: 0000000000090573 [14:23:55]line Версия ККМ: 001 [14:23:55]line ФМ: 0000000000874798 [14:23:55]line ФД: 123253 [14:23:55]line ФПД: 245263568060442 [14:23:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T142357&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123253&fm=245263568060442&tin=02508201610067®Number=0000000000090573&sum=100000 [14:23:55]OFD Sender: Processing packet 123253 [packets to send 112, broken 111] [14:23:55]ProducePacketName [14:23:55]name=ofd_packets/00123253 [14:23:55]OFD Sender: To server: pG, [14:23:55]CommunicateWithHost lk.salyk.kg:30040 [14:23:55]ConnectInit lk.salyk.kg [14:23:55]written 0, free lines is 4095 [14:23:56]Connected sock=9 [14:23: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 37 39 38 0F 01 00 00 2A C9 07 01 91 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 6E 00 00 00 F4 03 04 00 FD 87 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 75 E1 01 00 35 04 06 00 DF 10 DF D9 C0 1A F6 7F E6 D7 BA 57 9D 13 [14:23:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 0D E4 47 00 DD 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 75 E1 01 00 F4 03 04 00 29 34 E4 65 B6 04 01 00 00 AC A5 3B FA 3A 03 C6 14 [14:23:56]CommunicateWithHost err = 0 [14:23:56]CheckOFDResponse [14:23:56]1017 (14) - 77093643461234 [14:23:56]1041 (16) - 0000000000874798 [14:23:56]1040 (4) - 123253 [14:23:56]1012 (4) - 03.03.2024 08:26 [14:23:56]1206 (1) - 0 [14:23:56]OFD Sender: Remove packet 123253 [14:23:56]ProducePacketName [14:23:56]name=ofd_packets/00123253 [14:23:56]NVStorageDeleteData [14:23:56]Write to MH i2c: 01 00 00 95 2B C0 [14:23:56]Write i2c OK [14:23:56]MH_I2C_Read... [14:23:56]Read from MH i2c: 01 [14:23:56]MH_I2C_Read... [14:23:56]Read from MH i2c: 01 07 00 [14:23:56]MH_I2C_Read... [14:23:56]Read from MH i2c: 01 07 00 95 2B 00 00 00 00 00 F9 0C CC [14:23:56]RasterBufferAndPrint [14:23:56]line [14:23:56]line [14:23:56]line [14:23:56]line [14:23:56]line [14:23:56]written 0, free lines is 3330 [14:23:56]MH_Cut [14:23:56]Write to MH i2c: D1 01 00 9C 2B 01 99 [14:23:56]Write i2c OK [14:23:56]MH_I2C_Read... [14:23:56]Read from MH i2c: D1 [14:23:56]MH_I2C_Read... [14:23:56]Read from MH i2c: D1 01 00 [14:23:56]MH_I2C_Read... [14:23:56]Read from MH i2c: D1 01 00 9C 2B 00 98 [14:23:56]Write to MH i2c: 01 00 00 9D 2B C8 [14:23:56]Write i2c OK [14:23:56]MH_I2C_Read... [14:23:56]OFD Sender: No OFD packet to send [14:23:57]*** Cut start [14:23:57]*** Purtial cut [14:23:57]*** Stage 1: CUTSNS_PIN = 1 [14:23:59]Read from MH i2c: 01 [14:23:59]MH_I2C_Read... [14:23:59]*** Stop cut motor [14:23:59]*** Cut end [14:23:59]Read from MH i2c: 01 07 00 [14:23:59]MH_I2C_Read... [14:23:59]Read from MH i2c: 01 07 00 9D 2B 00 00 00 00 00 FF 0F DD [14:23:59]process_action close_receipt done [14:23:59]requested_data is exist [14:23:59]produce_requested_data [14:23:59]requested_item fm.sn is exist - process it [14:23:59]wFMCommunicate request_size=4 [14:23:59]MH_SAM_APDU [14:23:59]CAPDU: 80 11 00 00 [14:23:59]Write to MH i2c: E2 08 00 9E 2B 80 11 00 00 00 00 00 00 43 [14:23:59]Write i2c OK [14:23:59]MH_I2C_Read... [14:23:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:59]Read from MH i2c: E2 [14:23:59]MH_I2C_Read... [14:23:59]Read from MH i2c: E2 17 00 [14:23:59]MH_I2C_Read... [14:23:59]Read from MH i2c: E2 17 00 9E 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 A1 [14:23:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [14:23:59]wFMCommunicate OK [14:23:59]requested_item fd.num is exist - process it [14:23:59]SAM_PROTO_GetFieldsCounters [14:23:59]wFMCommunicate request_size=4 [14:23:59]MH_SAM_APDU [14:23:59]CAPDU: 80 13 00 00 [14:23:59]Write to MH i2c: E2 08 00 9F 2B 80 13 00 00 00 00 00 00 46 [14:23:59]Write i2c OK [14:23:59]MH_I2C_Read... [14:23:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:23:59]Read from MH i2c: E2 [14:23:59]MH_I2C_Read... [14:23:59]Read from MH i2c: E2 62 00 [14:23:59]MH_I2C_Read... [14:23:59]Read from MH i2c: E2 62 00 9F 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 75 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 56 [14:23:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 75 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:23:59]wFMCommunicate OK [14:23:59]SAM_PROTO_GetFieldsCounters done [14:23:59]requested_item shift.num is exist - process it [14:23:59]requested_item shift.opened is exist - process it [14:23:59]req_shift_opened [14:23:59]FM_GetShiftState [14:23:59]SAM_PROTO_GetShiftState [14:23:59]wFMCommunicate request_size=4 [14:23:59]MH_SAM_APDU [14:23:59]CAPDU: 80 13 01 00 [14:23:59]Write to MH i2c: E2 08 00 A0 2B 80 13 01 00 00 00 00 00 48 [14:23:59]Write i2c OK [14:23:59]MH_I2C_Read... [14:23:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:59]Read from MH i2c: E2 [14:23:59]MH_I2C_Read... [14:23:59]Read from MH i2c: E2 0E 00 [14:23:59]MH_I2C_Read... [14:23:59]Read from MH i2c: E2 0E 00 A0 2B 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 0A [14:23:59]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [14:23:59]wFMCommunicate OK [14:23:59]SAM_PROTO_GetShiftState done [14:23:59]FM_GetShiftState done [14:23:59]req_shift_opened done [14:23:59]requested_item shift.open_date is exist - process it [14:23:59]req_shift_open_date [14:23:59]req_shift_open_date done [14:23:59]produce_requested_data done [14:23:59]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123253,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [14:23:59]process_action_free close_receipt [14:23:59]json_value_free [14:23:59]json_value_free done [14:23:59]process_json_proto returns [14:23:59]Send response to host [14:23:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123253,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [14:23:59]free response buf [14:23:59]execute_script done [14:23:59]execute_script returns [14:23:59]free content buf [14:23:59]Sock 7.Close socket [14:23:59]Sock 7.Thread stoped [14:24:01]OFD Sender: No OFD packet to send [14:24:06]OFD Sender: No OFD packet to send [14:24:11]OFD Sender: No OFD packet to send [14:24:16]OFD Sender: No OFD packet to send [14:24:21]OFD Sender: No OFD packet to send [14:24:26]OFD Sender: No OFD packet to send [14:24:31]OFD Sender: No OFD packet to send [14:24:36]OFD Sender: No OFD packet to send [14:24:41]OFD Sender: No OFD packet to send [14:24:46]OFD Sender: No OFD packet to send [14:24:51]OFD Sender: No OFD packet to send [14:24:56]OFD Sender: No OFD packet to send [14:25:01]OFD Sender: No OFD packet to send [14:25:06]OFD Sender: No OFD packet to send [14:25:11]OFD Sender: No OFD packet to send [14:25:16]OFD Sender: No OFD packet to send [14:25:21]OFD Sender: No OFD packet to send [14:25:26]OFD Sender: No OFD packet to send [14:25:31]OFD Sender: No OFD packet to send [14:25:36]OFD Sender: No OFD packet to send [14:25:41]OFD Sender: No OFD packet to send [14:25:46]OFD Sender: No OFD packet to send [14:25:51]OFD Sender: No OFD packet to send [14:25:56]OFD Sender: No OFD packet to send [14:26:01]accept exits with 10 [14:26:01]New connection [14:26:01]New thread 3067252068 created [14:26:01]Thread 3067395428 joined [14:26:01]Waiting for new connection... [14:26:01] Sock 10.Parse request [14:26:01]Sock 10.Check first char [14:26:01]Sock 10.First char is OK [14:26:01]request: POST /json_proto HTTP/1.0 [14:26:01]Method: POST [14:26:01]URL: /json_proto [14:26:01]Method is POST - this is cgi request [14:26:01]url: /json_proto [14:26:01]query_string will be loaded in cgi processing [14:26:01]execute_cgi json_proto POST (null) [14:26:01]execute_cgi path=json_proto method=POST [14:26:01]POST find Content-Length [14:26:01]Host: 172.17.48.197:8080 [14:26:01]Content-Length: 809 [14:26:01]Content-Type: application/json [14:26:01] [14:26:01]POST finish read [14:26:01]Found Content-Length = 809 [14:26:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106190", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.30 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:26:01]execute_script... [14:26:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106190", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.30 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:26:01]POST & json_proto [14:26:01]process_json_proto [14:26:01]json parsed OK: [14:26:01]protocol is kg_v1.0 [14:26:01]action value=close_receipt [14:26:01]process_action close_receipt [14:26:01]cmd_close_receipt [14:26:01]MH_GetDate [14:26:01]Write to MH i2c: F0 00 00 A1 2B BB [14:26:01]Write i2c OK [14:26:01]MH_I2C_Read... [14:26:01]Read from MH i2c: F0 [14:26:01]MH_I2C_Read... [14:26:01]Read from MH i2c: F0 09 00 [14:26:01]MH_I2C_Read... [14:26:01]Read from MH i2c: F0 09 00 A1 2B 00 7C 88 E4 65 6C AF E3 65 74 [14:26:01]GetLastDocTimeStamp 1709475837 [14:26:01]current date 1709475964 [14:26:01]FM_GetShiftState [14:26:01]SAM_PROTO_GetShiftState [14:26:01]wFMCommunicate request_size=4 [14:26:01]MH_SAM_APDU [14:26:01]CAPDU: 80 13 01 00 [14:26:01]Write to MH i2c: E2 08 00 A2 2B 80 13 01 00 00 00 00 00 4A [14:26:01]Write i2c OK [14:26:01]MH_I2C_Read... [14:26:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:01]Read from MH i2c: E2 [14:26:01]MH_I2C_Read... [14:26:01]Read from MH i2c: E2 0E 00 [14:26:01]MH_I2C_Read... [14:26:01]Read from MH i2c: E2 0E 00 A2 2B 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 0C [14:26:01]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [14:26:01]wFMCommunicate OK [14:26:01]SAM_PROTO_GetShiftState done [14:26:01]FM_GetShiftState done [14:26:01]opened in 1709425579 [14:26:01]opened+sec_in_day 1709511979 [14:26:01]quantity*price = 100030 [14:26:01]sum+1 = 100031 [14:26:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.30 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 0.00 Безнал.: 1000.30 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 111 03.03.2024 14:26 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874798 ФД: 123254 ФПД: 206231260504314 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T142604&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123254&fm=206231260504314&tin=02508201610067®Number=0000000000090573&sum=100030 [14:26:02]StoreToDocumentArchive [14:26:02]shift 323 fd 123254 [14:26:02]save to /storage/0323/doc_00123254 [14:26:02]save last doc name /storage/0323/doc_00123254 to /storage/kkm_last_doc_name [14:26:02]save OK [14:26:02]Clear old archive folders... [14:26:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:26:02]tlvbuf is 00E29DA0 [14:26:02]SAM_PROTO_ClearQueue [14:26:02]wFMCommunicate request_size=4 [14:26:02]MH_SAM_APDU [14:26:02]CAPDU: 80 09 00 00 [14:26:02]Write to MH i2c: E2 08 00 AF 2B 80 09 00 00 00 00 00 00 4C [14:26:02]Write i2c OK [14:26:02]MH_I2C_Read... [14:26:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:26:02]Read from MH i2c: E2 [14:26:02]MH_I2C_Read... [14:26:02]Read from MH i2c: E2 03 00 [14:26:02]MH_I2C_Read... [14:26:02]Read from MH i2c: E2 03 00 AF 2B 00 90 00 4E [14:26:02]RAPDU: 90 00 [14:26:02]wFMCommunicate OK [14:26:02]SAM_PROTO_ClearQueue done [14:26:02]KKMCreateOFDPacket [14:26:02]OFDProtocolAddRootSTLVToBuf [14:26:02]FM_MakeSignedData [14:26:02]FM_MakeSignedData [14:26:02]SAM_PROTO_SignData [14:26:02]wFMCommunicate request_size=4 [14:26:02]MH_SAM_APDU [14:26:02]CAPDU: 80 0D 01 02 [14:26:02]Write to MH i2c: E2 08 00 B0 2B 80 0D 01 02 00 00 00 00 54 [14:26:02]Write i2c OK [14:26:02]MH_I2C_Read... [14:26:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:26:02]Read from MH i2c: E2 [14:26:02]MH_I2C_Read... [14:26:02]Read from MH i2c: E2 03 00 [14:26:02]MH_I2C_Read... [14:26:02]Read from MH i2c: E2 03 00 B0 2B 00 90 00 4F [14:26:02]RAPDU: 90 00 [14:26:02]wFMCommunicate OK [14:26:02]wFMCommunicate request_size=255 [14:26:02]MH_SAM_APDU [14:26:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 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 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 7C 88 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 76 E1 01 00 35 04 06 00 BB [14:26:02]Write to MH i2c: E2 02 01 B1 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 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 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 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 7C 88 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 76 E1 01 00 35 04 06 00 BB 00 00 0F [14:26:02]Write i2c OK [14:26:02]MH_I2C_Read... [14:26:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:26:02]Read from MH i2c: E2 [14:26:02]MH_I2C_Read... [14:26:02]Read from MH i2c: E2 03 00 [14:26:02]MH_I2C_Read... [14:26:02]Read from MH i2c: E2 03 00 B1 2B 00 90 00 50 [14:26:02]RAPDU: 90 00 [14:26:02]wFMCommunicate OK [14:26:02]wFMCommunicate request_size=10 [14:26:02]MH_SAM_APDU [14:26:02]CAPDU: 80 0D 02 02 05 90 F5 06 20 FA [14:26:02]Write to MH i2c: E2 0D 00 B2 2B 80 0D 02 02 05 00 90 F5 06 20 FA 00 00 06 [14:26:02]Write i2c OK [14:26:02]MH_I2C_Read... [14:26:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:26:02]Read from MH i2c: E2 [14:26:02]MH_I2C_Read... [14:26:02]Read from MH i2c: E2 03 00 [14:26:02]MH_I2C_Read... [14:26:02]Read from MH i2c: E2 03 00 B2 2B 00 90 00 51 [14:26:02]RAPDU: 90 00 [14:26:02]wFMCommunicate OK [14:26:02]wFMCommunicate request_size=4 [14:26:02]MH_SAM_APDU [14:26:02]CAPDU: 80 0D 03 02 [14:26:02]Write to MH i2c: E2 08 00 B3 2B 80 0D 03 02 00 00 00 00 59 [14:26:02]Write i2c OK [14:26:02]MH_I2C_Read... [14:26:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:26:02]Read from MH i2c: E2 [14:26:02]MH_I2C_Read... [14:26:02]Read from MH i2c: E2 0B 00 [14:26:02]MH_I2C_Read... [14:26:02]Read from MH i2c: E2 0B 00 B3 2B 00 7A 0E 79 7B 2E 1B 8F C4 90 00 72 [14:26:02]RAPDU: 7A 0E 79 7B 2E 1B 8F C4 90 00 [14:26:02]wFMCommunicate OK [14:26:02]SAM_PROTO_SignData done [14:26:02]FM_MakeSignedData done [14:26:02]CreateOFDProtocolMessage [14:26:02]wFMCommunicate request_size=4 [14:26:02]MH_SAM_APDU [14:26:02]CAPDU: 80 11 00 00 [14:26:02]Write to MH i2c: E2 08 00 B4 2B 80 11 00 00 00 00 00 00 59 [14:26:02]Write i2c OK [14:26:02]MH_I2C_Read... [14:26:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:02]Read from MH i2c: E2 [14:26:02]MH_I2C_Read... [14:26:02]Read from MH i2c: E2 17 00 [14:26:02]MH_I2C_Read... [14:26:02]Read from MH i2c: E2 17 00 B4 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 B7 [14:26:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [14:26:02]wFMCommunicate OK [14:26:02]CreateOFDProtocolMessage done [14:26:02]OFDSenderStorePacket 123254 [14:26:02]StoreOFDPacket docnum=123254 [14:26:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 2C 33 07 01 C1 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 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 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 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 7C 88 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 76 E1 01 00 35 04 06 00 BB 90 F5 06 20 FA 7A 0E 79 7B 2E 1B 8F C4 [14:26:02]CheckFolder [14:26:02]dirname=/storage/ofd_packets [14:26:02]CheckFolder done [14:26:02]ProducePacketName [14:26:02]name=ofd_packets/00123254 [14:26:02]NVStorageSaveData ofd_packets/00123254 [14:26:02]File name is /storage/ofd_packets/00123254 [14:26:02]Write 301 bytes [14:26:02]NVStorageSaveData done [14:26:02]OFDSenderStorePacket done [14:26:02]KKMCreateOFDPacket done [14:26:02]NVStorageSaveData kkm_last_timestamp [14:26:02]File name is /storage/kkm_last_timestamp [14:26:02]Write 4 bytes [14:26:02]NVStorageSaveData done [14:26:02]ExternCall_PrintAddStr [14:26:02]wPrintStart [14:26:02]Write to MH i2c: 01 00 00 B5 2B E0 [14:26:02]Write i2c OK [14:26:02]MH_I2C_Read... [14:26:02]Read from MH i2c: 01 [14:26:02]MH_I2C_Read... [14:26:02]Read from MH i2c: 01 07 00 [14:26:02]MH_I2C_Read... [14:26:02]Read from MH i2c: 01 07 00 B5 2B 00 00 00 00 00 FF 0F F5 [14:26:02]RasterBufferAndPrint [14:26:02]line Счет N : (1)1106190 [14:26:02]line ИНН: 02508201610067 [14:26:02]line Контрольно-Кассовый Чек [14:26:02]line ПРОДАЖА [14:26:02]line ТРК (МРК, ГНК) : 52 [14:26:02]line Товар: 2710124130 [14:26:02]line Аи-92-К-5 [14:26:02]line 16.160 * 61.90 [14:26:02]line = 1000.30 [14:26:02]line НДС 12% НСП 1% [14:26:02]line > о реализуемом товаре [14:26:02]line ИТОГО: 1000.30 [14:26:02]line НСП 1% : 8.85 [14:26:02]line НДС 12% : 106.23 [14:26:02]line Наличными: 0.00 [14:26:02]line Безнал.: 1000.30 [14:26:02]line Место: АЗС № 25 "Партнер Нефть" [14:26:02]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [14:26:02]line СНО: Общий режим [14:26:02]line Чек 111 03.03.2024 14:26 [14:26:02]line Смена: 323 ФФД: 1.0 [14:26:02]line ЗНМ: 0300000019 [14:26:02]line РНМ: 0000000000090573 [14:26:02]line Версия ККМ: 001 [14:26:02]line Платежная система: О! деньги [14:26:02]line ФМ: 0000000000874798 [14:26:02]line ФД: 123254 [14:26:02]line ФПД: 206231260504314 [14:26:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T142604&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123254&fm=206231260504314&tin=02508201610067®Number=0000000000090573&sum=100030 [14:26:03]OFD Sender: Processing packet 123254 [packets to send 112, broken 111] [14:26:03]ProducePacketName [14:26:03]name=ofd_packets/00123254 [14:26:03]OFD Sender: To server: pG, [14:26:03]CommunicateWithHost lk.salyk.kg:30040 [14:26:03]ConnectInit lk.salyk.kg [14:26:03]written 0, free lines is 4095 [14:26:03]Connected sock=9 [14:26:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 2C 33 07 01 C1 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 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 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 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 7C 88 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 76 E1 01 00 35 04 06 00 BB 90 F5 06 20 FA 7A 0E 79 7B 2E 1B 8F C4 [14:26:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 99 AB 47 00 96 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 37 39 38 10 04 04 00 76 E1 01 00 F4 03 04 00 A8 34 E4 65 B6 04 01 00 00 E9 36 A1 DA D2 CF 2A 51 [14:26:03]CommunicateWithHost err = 0 [14:26:03]CheckOFDResponse [14:26:03]1017 (14) - 77093643461234 [14:26:03]1041 (16) - 0000000000874798 [14:26:03]1040 (4) - 123254 [14:26:03]1012 (4) - 03.03.2024 08:28 [14:26:03]1206 (1) - 0 [14:26:03]OFD Sender: Remove packet 123254 [14:26:03]ProducePacketName [14:26:03]name=ofd_packets/00123254 [14:26:03]NVStorageDeleteData [14:26:03]Write to MH i2c: 01 00 00 DF 2B 0A [14:26:03]Write i2c OK [14:26:03]MH_I2C_Read... [14:26:03]Read from MH i2c: 01 [14:26:03]MH_I2C_Read... [14:26:03]Read from MH i2c: 01 07 00 [14:26:03]MH_I2C_Read... [14:26:03]Read from MH i2c: 01 07 00 DF 2B 00 00 00 00 00 05 0D 23 [14:26:03]RasterBufferAndPrint [14:26:03]line [14:26:03]line [14:26:03]line [14:26:03]line [14:26:03]line [14:26:03]written 0, free lines is 3342 [14:26:03]MH_Cut [14:26:03]Write to MH i2c: D1 01 00 E6 2B 01 E3 [14:26:03]Write i2c OK [14:26:03]MH_I2C_Read... [14:26:03]Read from MH i2c: D1 [14:26:03]MH_I2C_Read... [14:26:03]Read from MH i2c: D1 01 00 [14:26:03]MH_I2C_Read... [14:26:03]Read from MH i2c: D1 01 00 E6 2B 00 E2 [14:26:03]Write to MH i2c: 01 00 00 E7 2B 12 [14:26:03]Write i2c OK [14:26:03]MH_I2C_Read... [14:26:04]OFD Sender: No OFD packet to send [14:26:04]*** Cut start [14:26:04]*** Purtial cut [14:26:04]*** Stage 1: CUTSNS_PIN = 1 [14:26:06]Read from MH i2c: 01 [14:26:06]MH_I2C_Read... [14:26:06]*** Stop cut motor [14:26:06]*** Cut end [14:26:06]Read from MH i2c: 01 07 00 [14:26:06]MH_I2C_Read... [14:26:06]Read from MH i2c: 01 07 00 E7 2B 00 00 00 00 00 FF 0F 27 [14:26:06]process_action close_receipt done [14:26:06]requested_data is exist [14:26:06]produce_requested_data [14:26:06]requested_item fm.sn is exist - process it [14:26:06]wFMCommunicate request_size=4 [14:26:06]MH_SAM_APDU [14:26:06]CAPDU: 80 11 00 00 [14:26:06]Write to MH i2c: E2 08 00 E8 2B 80 11 00 00 00 00 00 00 8D [14:26:06]Write i2c OK [14:26:06]MH_I2C_Read... [14:26:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:06]Read from MH i2c: E2 [14:26:06]MH_I2C_Read... [14:26:06]Read from MH i2c: E2 17 00 [14:26:06]MH_I2C_Read... [14:26:06]Read from MH i2c: E2 17 00 E8 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 EB [14:26:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [14:26:06]wFMCommunicate OK [14:26:06]requested_item fd.num is exist - process it [14:26:06]SAM_PROTO_GetFieldsCounters [14:26:06]wFMCommunicate request_size=4 [14:26:06]MH_SAM_APDU [14:26:06]CAPDU: 80 13 00 00 [14:26:06]Write to MH i2c: E2 08 00 E9 2B 80 13 00 00 00 00 00 00 90 [14:26:06]Write i2c OK [14:26:06]MH_I2C_Read... [14:26:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:26:06]Read from MH i2c: E2 [14:26:06]MH_I2C_Read... [14:26:06]Read from MH i2c: E2 62 00 [14:26:06]MH_I2C_Read... [14:26:06]Read from MH i2c: E2 62 00 E9 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 76 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 A4 [14:26:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 76 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:26:06]wFMCommunicate OK [14:26:06]SAM_PROTO_GetFieldsCounters done [14:26:06]requested_item shift.num is exist - process it [14:26:06]requested_item shift.opened is exist - process it [14:26:06]req_shift_opened [14:26:06]FM_GetShiftState [14:26:06]SAM_PROTO_GetShiftState [14:26:06]wFMCommunicate request_size=4 [14:26:06]MH_SAM_APDU [14:26:06]CAPDU: 80 13 01 00 [14:26:06]Write to MH i2c: E2 08 00 EA 2B 80 13 01 00 00 00 00 00 92 [14:26:06]Write i2c OK [14:26:06]MH_I2C_Read... [14:26:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:06]Read from MH i2c: E2 [14:26:06]MH_I2C_Read... [14:26:06]Read from MH i2c: E2 0E 00 [14:26:06]MH_I2C_Read... [14:26:06]Read from MH i2c: E2 0E 00 EA 2B 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 54 [14:26:06]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [14:26:06]wFMCommunicate OK [14:26:06]SAM_PROTO_GetShiftState done [14:26:06]FM_GetShiftState done [14:26:06]req_shift_opened done [14:26:06]requested_item shift.open_date is exist - process it [14:26:06]req_shift_open_date [14:26:06]req_shift_open_date done [14:26:06]produce_requested_data done [14:26:06]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123254,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [14:26:06]process_action_free close_receipt [14:26:06]json_value_free [14:26:06]json_value_free done [14:26:06]process_json_proto returns [14:26:06]Send response to host [14:26:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123254,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [14:26:06]free response buf [14:26:06]execute_script done [14:26:06]execute_script returns [14:26:06]free content buf [14:26:06]Sock 10.Close socket [14:26:06]Sock 10.Thread stoped [14:26:09]OFD Sender: No OFD packet to send [14:26:14]OFD Sender: No OFD packet to send [14:26:19]OFD Sender: No OFD packet to send [14:26:24]OFD Sender: No OFD packet to send [14:26:29]OFD Sender: No OFD packet to send [14:26:34]OFD Sender: No OFD packet to send [14:26:39]OFD Sender: No OFD packet to send [14:26:44]OFD Sender: No OFD packet to send [14:26:49]OFD Sender: No OFD packet to send [14:26:54]OFD Sender: No OFD packet to send [14:26:59]OFD Sender: No OFD packet to send [14:27:04]OFD Sender: No OFD packet to send [14:27:09]OFD Sender: No OFD packet to send [14:27:10]accept exits with 7 [14:27:10]New connection [14:27:10]New thread 3067395428 created [14:27:10]Thread 3067252068 joined [14:27:10]Waiting for new connection... [14:27:10] Sock 7.Parse request [14:27:10]Sock 7.Check first char [14:27:10]Sock 7.First char is OK [14:27:10]request: POST /json_proto HTTP/1.0 [14:27:10]Method: POST [14:27:10]URL: /json_proto [14:27:10]Method is POST - this is cgi request [14:27:10]url: /json_proto [14:27:10]query_string will be loaded in cgi processing [14:27:10]execute_cgi json_proto POST (null) [14:27:10]execute_cgi path=json_proto method=POST [14:27:10]POST find Content-Length [14:27:10]Host: 172.17.48.197:8080 [14:27:10]Content-Length: 820 [14:27:10]Content-Type: application/json [14:27:10] [14:27:10]POST finish read [14:27:10]Found Content-Length = 820 [14:27:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106192", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.30 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:27:10]execute_script... [14:27: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)1106192", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.30 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:27:10]POST & json_proto [14:27:10]process_json_proto [14:27:10]json parsed OK: [14:27:10]protocol is kg_v1.0 [14:27:10]action value=close_receipt [14:27:10]process_action close_receipt [14:27:10]cmd_close_receipt [14:27:10]MH_GetDate [14:27:10]Write to MH i2c: F0 00 00 EB 2B 05 [14:27:10]Write i2c OK [14:27:10]MH_I2C_Read... [14:27:10]Read from MH i2c: F0 [14:27:10]MH_I2C_Read... [14:27:10]Read from MH i2c: F0 09 00 [14:27:10]MH_I2C_Read... [14:27:10]Read from MH i2c: F0 09 00 EB 2B 00 C1 88 E4 65 6C AF E3 65 03 [14:27:10]GetLastDocTimeStamp 1709475964 [14:27:10]current date 1709476033 [14:27:10]FM_GetShiftState [14:27:10]SAM_PROTO_GetShiftState [14:27:10]wFMCommunicate request_size=4 [14:27:10]MH_SAM_APDU [14:27:10]CAPDU: 80 13 01 00 [14:27:10]Write to MH i2c: E2 08 00 EC 2B 80 13 01 00 00 00 00 00 94 [14:27:10]Write i2c OK [14:27:10]MH_I2C_Read... [14:27:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:27:10]Read from MH i2c: E2 [14:27:10]MH_I2C_Read... [14:27:10]Read from MH i2c: E2 0E 00 [14:27:10]MH_I2C_Read... [14:27:10]Read from MH i2c: E2 0E 00 EC 2B 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 56 [14:27:10]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [14:27:10]wFMCommunicate OK [14:27:10]SAM_PROTO_GetShiftState done [14:27:10]FM_GetShiftState done [14:27:10]opened in 1709425579 [14:27:10]opened+sec_in_day 1709511979 [14:27:10]quantity*price = 100030 [14:27:10]sum+1 = 100031 [14:27:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.30 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 0.00 Безнал.: 1000.30 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 112 03.03.2024 14:27 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874798 ФД: 123255 ФПД: 2004986791162 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T142713&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123255&fm=2004986791162&tin=02508201610067®Number=0000000000090573&sum=100030 [14:27:11]StoreToDocumentArchive [14:27:11]shift 323 fd 123255 [14:27:11]save to /storage/0323/doc_00123255 [14:27:11]save last doc name /storage/0323/doc_00123255 to /storage/kkm_last_doc_name [14:27:11]save OK [14:27:11]Clear old archive folders... [14:27:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:27:11]tlvbuf is 00DDED80 [14:27:11]SAM_PROTO_ClearQueue [14:27:11]wFMCommunicate request_size=4 [14:27:11]MH_SAM_APDU [14:27:11]CAPDU: 80 09 00 00 [14:27:11]Write to MH i2c: E2 08 00 F9 2B 80 09 00 00 00 00 00 00 96 [14:27:11]Write i2c OK [14:27:11]MH_I2C_Read... [14:27:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:27:11]Read from MH i2c: E2 [14:27:11]MH_I2C_Read... [14:27:11]Read from MH i2c: E2 03 00 [14:27:11]MH_I2C_Read... [14:27:11]Read from MH i2c: E2 03 00 F9 2B 00 90 00 98 [14:27:11]RAPDU: 90 00 [14:27:11]wFMCommunicate OK [14:27:11]SAM_PROTO_ClearQueue done [14:27:11]KKMCreateOFDPacket [14:27:11]OFDProtocolAddRootSTLVToBuf [14:27:11]FM_MakeSignedData [14:27:11]FM_MakeSignedData [14:27:11]SAM_PROTO_SignData [14:27:11]wFMCommunicate request_size=4 [14:27:11]MH_SAM_APDU [14:27:11]CAPDU: 80 0D 01 02 [14:27:11]Write to MH i2c: E2 08 00 FA 2B 80 0D 01 02 00 00 00 00 9E [14:27:11]Write i2c OK [14:27:11]MH_I2C_Read... [14:27:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:27:11]Read from MH i2c: E2 [14:27:11]MH_I2C_Read... [14:27:11]Read from MH i2c: E2 03 00 [14:27:11]MH_I2C_Read... [14:27:11]Read from MH i2c: E2 03 00 FA 2B 00 90 00 99 [14:27:11]RAPDU: 90 00 [14:27:11]wFMCommunicate OK [14:27:11]wFMCommunicate request_size=255 [14:27:11]MH_SAM_APDU [14:27:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 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 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 C1 88 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 77 E1 01 00 35 04 06 00 01 [14:27:11]Write to MH i2c: E2 02 01 FB 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 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 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 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 C1 88 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 77 E1 01 00 35 04 06 00 01 00 00 E6 [14:27:11]Write i2c OK [14:27:11]MH_I2C_Read... [14:27:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:27:11]Read from MH i2c: E2 [14:27:11]MH_I2C_Read... [14:27:11]Read from MH i2c: E2 03 00 [14:27:11]MH_I2C_Read... [14:27:11]Read from MH i2c: E2 03 00 FB 2B 00 90 00 9A [14:27:11]RAPDU: 90 00 [14:27:11]wFMCommunicate OK [14:27:11]wFMCommunicate request_size=10 [14:27:11]MH_SAM_APDU [14:27:11]CAPDU: 80 0D 02 02 05 D2 D2 86 84 FA [14:27:11]Write to MH i2c: E2 0D 00 FC 2B 80 0D 02 02 05 00 D2 D2 86 84 FA 00 00 53 [14:27:11]Write i2c OK [14:27:11]MH_I2C_Read... [14:27:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:27:11]Read from MH i2c: E2 [14:27:11]MH_I2C_Read... [14:27:11]Read from MH i2c: E2 03 00 [14:27:11]MH_I2C_Read... [14:27:11]Read from MH i2c: E2 03 00 FC 2B 00 90 00 9B [14:27:11]RAPDU: 90 00 [14:27:11]wFMCommunicate OK [14:27:11]wFMCommunicate request_size=4 [14:27:11]MH_SAM_APDU [14:27:11]CAPDU: 80 0D 03 02 [14:27:11]Write to MH i2c: E2 08 00 FD 2B 80 0D 03 02 00 00 00 00 A3 [14:27:11]Write i2c OK [14:27:11]MH_I2C_Read... [14:27:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:27:11]Read from MH i2c: E2 [14:27:11]MH_I2C_Read... [14:27:11]Read from MH i2c: E2 0B 00 [14:27:11]MH_I2C_Read... [14:27:11]Read from MH i2c: E2 0B 00 FD 2B 00 07 73 C3 72 64 AE BF BD 90 00 E1 [14:27:11]RAPDU: 07 73 C3 72 64 AE BF BD 90 00 [14:27:11]wFMCommunicate OK [14:27:11]SAM_PROTO_SignData done [14:27:11]FM_MakeSignedData done [14:27:11]CreateOFDProtocolMessage [14:27:11]wFMCommunicate request_size=4 [14:27:11]MH_SAM_APDU [14:27:11]CAPDU: 80 11 00 00 [14:27:11]Write to MH i2c: E2 08 00 FE 2B 80 11 00 00 00 00 00 00 A3 [14:27:11]Write i2c OK [14:27:11]MH_I2C_Read... [14:27:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:11]Read from MH i2c: E2 [14:27:11]MH_I2C_Read... [14:27:11]Read from MH i2c: E2 17 00 [14:27:11]MH_I2C_Read... [14:27:11]Read from MH i2c: E2 17 00 FE 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 01 [14:27:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [14:27:11]wFMCommunicate OK [14:27:11]CreateOFDProtocolMessage done [14:27:11]OFDSenderStorePacket 123255 [14:27:11]StoreOFDPacket docnum=123255 [14:27:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 1E F1 07 01 ED 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 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 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 C1 88 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 77 E1 01 00 35 04 06 00 01 D2 D2 86 84 FA 07 73 C3 72 64 AE BF BD [14:27:11]CheckFolder [14:27:11]dirname=/storage/ofd_packets [14:27:11]CheckFolder done [14:27:11]ProducePacketName [14:27:11]name=ofd_packets/00123255 [14:27:11]NVStorageSaveData ofd_packets/00123255 [14:27:11]File name is /storage/ofd_packets/00123255 [14:27:11]Write 301 bytes [14:27:11]NVStorageSaveData done [14:27:11]OFDSenderStorePacket done [14:27:11]KKMCreateOFDPacket done [14:27:11]NVStorageSaveData kkm_last_timestamp [14:27:11]File name is /storage/kkm_last_timestamp [14:27:11]Write 4 bytes [14:27:11]NVStorageSaveData done [14:27:11]ExternCall_PrintAddStr [14:27:11]wPrintStart [14:27:11]Write to MH i2c: 01 00 00 FF 2B 2A [14:27:11]Write i2c OK [14:27:11]MH_I2C_Read... [14:27:11]Read from MH i2c: 01 [14:27:11]MH_I2C_Read... [14:27:11]Read from MH i2c: 01 07 00 [14:27:11]MH_I2C_Read... [14:27:11]Read from MH i2c: 01 07 00 FF 2B 00 00 00 00 00 FF 0F 3F [14:27:11]RasterBufferAndPrint [14:27:11]line Счет N : (1)1106192 [14:27:11]line ИНН: 02508201610067 [14:27:11]line Контрольно-Кассовый Чек [14:27:11]line ПРОДАЖА [14:27:11]line ТРК (МРК, ГНК) : 11 [14:27:11]line Товар: 2710124130 [14:27:11]line Аи-92-К-5 [14:27:11]line 16.160 * 61.90 [14:27:11]line = 1000.30 [14:27:11]line НДС 12% НСП 1% [14:27:11]line > о реализуемом товаре [14:27:11]line ИТОГО: 1000.30 [14:27:11]line НСП 1% : 8.85 [14:27:11]line НДС 12% : 106.23 [14:27:11]line Наличными: 0.00 [14:27:11]line Безнал.: 1000.30 [14:27:11]line Место: АЗС № 25 "Партнер Нефть" [14:27:11]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [14:27:11]line СНО: Общий режим [14:27:11]line Чек 112 03.03.2024 14:27 [14:27:11]line Смена: 323 ФФД: 1.0 [14:27:11]line ЗНМ: 0300000019 [14:27:11]line РНМ: 0000000000090573 [14:27:11]line Версия ККМ: 001 [14:27:11]line Платежная система: Бакай Банк [14:27:11]line ФМ: 0000000000874798 [14:27:11]line ФД: 123255 [14:27:11]line ФПД: 2004986791162 [14:27:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T142713&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123255&fm=2004986791162&tin=02508201610067®Number=0000000000090573&sum=100030 [14:27:12]OFD Sender: Processing packet 123255 [packets to send 112, broken 111] [14:27:12]ProducePacketName [14:27:12]name=ofd_packets/00123255 [14:27:12]OFD Sender: To server: pG, [14:27:12]CommunicateWithHost lk.salyk.kg:30040 [14:27:12]ConnectInit lk.salyk.kg [14:27:12]written 0, free lines is 4095 [14:27:12]Connected sock=10 [14:27: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 37 39 38 0F 01 00 00 1E F1 07 01 ED 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 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 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 C1 88 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 77 E1 01 00 35 04 06 00 01 D2 D2 86 84 FA 07 73 C3 72 64 AE BF BD [14:27:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 0E 2E 47 00 3A 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 37 39 38 10 04 04 00 77 E1 01 00 F4 03 04 00 ED 34 E4 65 B6 04 01 00 00 CF 8E 96 AE 30 CD EE 07 [14:27:12]CommunicateWithHost err = 0 [14:27:12]CheckOFDResponse [14:27:12]1017 (14) - 77093643461234 [14:27:12]1041 (16) - 0000000000874798 [14:27:12]1040 (4) - 123255 [14:27:12]1012 (4) - 03.03.2024 08:29 [14:27:12]1206 (1) - 0 [14:27:12]OFD Sender: Remove packet 123255 [14:27:12]ProducePacketName [14:27:12]name=ofd_packets/00123255 [14:27:12]NVStorageDeleteData [14:27:12]Write to MH i2c: 01 00 00 29 2C 55 [14:27:12]Write i2c OK [14:27:12]MH_I2C_Read... [14:27:12]Read from MH i2c: 01 [14:27:12]MH_I2C_Read... [14:27:12]Read from MH i2c: 01 07 00 [14:27:12]MH_I2C_Read... [14:27:12]Read from MH i2c: 01 07 00 29 2C 00 00 00 00 00 02 0D 6B [14:27:12]RasterBufferAndPrint [14:27:12]line [14:27:12]line [14:27:12]line [14:27:12]line [14:27:12]line [14:27:12]written 0, free lines is 3339 [14:27:12]MH_Cut [14:27:12]Write to MH i2c: D1 01 00 30 2C 01 2E [14:27:12]Write i2c OK [14:27:12]MH_I2C_Read... [14:27:12]Read from MH i2c: D1 [14:27:12]MH_I2C_Read... [14:27:12]Read from MH i2c: D1 01 00 [14:27:12]MH_I2C_Read... [14:27:12]Read from MH i2c: D1 01 00 30 2C 00 2D [14:27:12]Write to MH i2c: 01 00 00 31 2C 5D [14:27:12]Write i2c OK [14:27:12]MH_I2C_Read... [14:27:13]OFD Sender: No OFD packet to send [14:27:13]*** Cut start [14:27:13]*** Purtial cut [14:27:13]*** Stage 1: CUTSNS_PIN = 1 [14:27:15]Read from MH i2c: 01 [14:27:15]MH_I2C_Read... [14:27:15]*** Stop cut motor [14:27:15]*** Cut end [14:27:15]Read from MH i2c: 01 07 00 [14:27:15]MH_I2C_Read... [14:27:15]Read from MH i2c: 01 07 00 31 2C 00 00 00 00 00 FF 0F 72 [14:27:15]process_action close_receipt done [14:27:15]requested_data is exist [14:27:15]produce_requested_data [14:27:15]requested_item fm.sn is exist - process it [14:27:15]wFMCommunicate request_size=4 [14:27:15]MH_SAM_APDU [14:27:15]CAPDU: 80 11 00 00 [14:27:15]Write to MH i2c: E2 08 00 32 2C 80 11 00 00 00 00 00 00 D8 [14:27:15]Write i2c OK [14:27:15]MH_I2C_Read... [14:27:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:15]Read from MH i2c: E2 [14:27:15]MH_I2C_Read... [14:27:15]Read from MH i2c: E2 17 00 [14:27:15]MH_I2C_Read... [14:27:15]Read from MH i2c: E2 17 00 32 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 36 [14:27:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [14:27:15]wFMCommunicate OK [14:27:15]requested_item fd.num is exist - process it [14:27:15]SAM_PROTO_GetFieldsCounters [14:27:15]wFMCommunicate request_size=4 [14:27:15]MH_SAM_APDU [14:27:15]CAPDU: 80 13 00 00 [14:27:15]Write to MH i2c: E2 08 00 33 2C 80 13 00 00 00 00 00 00 DB [14:27:15]Write i2c OK [14:27:15]MH_I2C_Read... [14:27:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:27:15]Read from MH i2c: E2 [14:27:15]MH_I2C_Read... [14:27:15]Read from MH i2c: E2 62 00 [14:27:15]MH_I2C_Read... [14:27:15]Read from MH i2c: E2 62 00 33 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 77 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 F3 [14:27: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 77 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:27:15]wFMCommunicate OK [14:27:15]SAM_PROTO_GetFieldsCounters done [14:27:15]requested_item shift.num is exist - process it [14:27:15]requested_item shift.opened is exist - process it [14:27:15]req_shift_opened [14:27:15]FM_GetShiftState [14:27:15]SAM_PROTO_GetShiftState [14:27:15]wFMCommunicate request_size=4 [14:27:15]MH_SAM_APDU [14:27:15]CAPDU: 80 13 01 00 [14:27:15]Write to MH i2c: E2 08 00 34 2C 80 13 01 00 00 00 00 00 DD [14:27:15]Write i2c OK [14:27:15]MH_I2C_Read... [14:27:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:27:15]Read from MH i2c: E2 [14:27:15]MH_I2C_Read... [14:27:15]Read from MH i2c: E2 0E 00 [14:27:15]MH_I2C_Read... [14:27:15]Read from MH i2c: E2 0E 00 34 2C 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 9F [14:27:15]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [14:27:15]wFMCommunicate OK [14:27:15]SAM_PROTO_GetShiftState done [14:27:15]FM_GetShiftState done [14:27:15]req_shift_opened done [14:27:15]requested_item shift.open_date is exist - process it [14:27:15]req_shift_open_date [14:27:15]req_shift_open_date done [14:27:15]produce_requested_data done [14:27:15]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123255,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [14:27:15]process_action_free close_receipt [14:27:15]json_value_free [14:27:15]json_value_free done [14:27:15]process_json_proto returns [14:27:15]Send response to host [14:27:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123255,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [14:27:15]free response buf [14:27:15]execute_script done [14:27:15]execute_script returns [14:27:15]free content buf [14:27:15]Sock 7.Close socket [14:27:15]Sock 7.Thread stoped [14:27:18]OFD Sender: No OFD packet to send [14:27:23]OFD Sender: No OFD packet to send [14:27:28]OFD Sender: No OFD packet to send [14:27:33]OFD Sender: No OFD packet to send [14:27:38]OFD Sender: No OFD packet to send [14:27:43]OFD Sender: No OFD packet to send [14:27:48]OFD Sender: No OFD packet to send [14:27:53]OFD Sender: No OFD packet to send [14:27:58]OFD Sender: No OFD packet to send [14:28:03]OFD Sender: No OFD packet to send [14:28:08]OFD Sender: No OFD packet to send [14:28:13]OFD Sender: No OFD packet to send [14:28:18]OFD Sender: No OFD packet to send [14:28:23]OFD Sender: No OFD packet to send [14:28:28]OFD Sender: No OFD packet to send [14:28:33]OFD Sender: No OFD packet to send [14:28:38]OFD Sender: No OFD packet to send [14:28:43]OFD Sender: No OFD packet to send [14:28:48]OFD Sender: No OFD packet to send [14:28:53]OFD Sender: No OFD packet to send [14:28:58]OFD Sender: No OFD packet to send [14:29:03]OFD Sender: No OFD packet to send [14:29:08]OFD Sender: No OFD packet to send [14:29:13]OFD Sender: No OFD packet to send [14:29:18]OFD Sender: No OFD packet to send [14:29:23]OFD Sender: No OFD packet to send [14:29:28]OFD Sender: No OFD packet to send [14:29:33]OFD Sender: No OFD packet to send [14:29:38]OFD Sender: No OFD packet to send [14:29:43]OFD Sender: No OFD packet to send [14:29:48]OFD Sender: No OFD packet to send [14:29:53]OFD Sender: No OFD packet to send [14:29:58]OFD Sender: No OFD packet to send [14:30:03]OFD Sender: No OFD packet to send [14:30:08]OFD Sender: No OFD packet to send [14:30:13]OFD Sender: No OFD packet to send [14:30:18]OFD Sender: No OFD packet to send [14:30:23]OFD Sender: No OFD packet to send [14:30:28]OFD Sender: No OFD packet to send [14:30:33]OFD Sender: No OFD packet to send [14:30:38]OFD Sender: No OFD packet to send [14:30:43]OFD Sender: No OFD packet to send [14:30:48]OFD Sender: No OFD packet to send [14:30:53]OFD Sender: No OFD packet to send [14:30:58]OFD Sender: No OFD packet to send [14:31:03]OFD Sender: No OFD packet to send [14:31:08]OFD Sender: No OFD packet to send [14:31:13]OFD Sender: No OFD packet to send [14:31:18]OFD Sender: No OFD packet to send [14:31:23]OFD Sender: No OFD packet to send [14:31:28]OFD Sender: No OFD packet to send [14:31:33]OFD Sender: No OFD packet to send [14:31:38]OFD Sender: No OFD packet to send [14:31:43]OFD Sender: No OFD packet to send [14:31:48]OFD Sender: No OFD packet to send [14:31:53]OFD Sender: No OFD packet to send [14:31:58]OFD Sender: No OFD packet to send [14:32:03]OFD Sender: No OFD packet to send [14:32:08]OFD Sender: No OFD packet to send [14:32:13]OFD Sender: No OFD packet to send [14:32:18]OFD Sender: No OFD packet to send [14:32:23]OFD Sender: No OFD packet to send [14:32:28]OFD Sender: No OFD packet to send [14:32:33]OFD Sender: No OFD packet to send [14:32:38]OFD Sender: No OFD packet to send [14:32:43]OFD Sender: No OFD packet to send [14:32:48]OFD Sender: No OFD packet to send [14:32:53]OFD Sender: No OFD packet to send [14:32:58]OFD Sender: No OFD packet to send [14:33:03]OFD Sender: No OFD packet to send [14:33:08]OFD Sender: No OFD packet to send [14:33:13]OFD Sender: No OFD packet to send [14:33:18]OFD Sender: No OFD packet to send [14:33:23]OFD Sender: No OFD packet to send [14:33:28]OFD Sender: No OFD packet to send [14:33:33]OFD Sender: No OFD packet to send [14:33:38]OFD Sender: No OFD packet to send [14:33:43]OFD Sender: No OFD packet to send [14:33:48]OFD Sender: No OFD packet to send [14:33:53]OFD Sender: No OFD packet to send [14:33:54]accept exits with 9 [14:33:54]New connection [14:33:54]New thread 3067252068 created [14:33:54]Thread 3067395428 joined [14:33:54]Waiting for new connection... [14:33:54] Sock 9.Parse request [14:33:54]Sock 9.Check first char [14:33:54]Sock 9.First char is OK [14:33:54]request: POST /json_proto HTTP/1.0 [14:33:54]Method: POST [14:33:54]URL: /json_proto [14:33:54]Method is POST - this is cgi request [14:33:54]url: /json_proto [14:33:54]query_string will be loaded in cgi processing [14:33:54]execute_cgi json_proto POST (null) [14:33:54]execute_cgi path=json_proto method=POST [14:33:54]POST find Content-Length [14:33:54]Host: 172.17.48.197:8080 [14:33:54]Content-Length: 683 [14:33:54]Content-Type: application/json [14:33:54] [14:33:54]POST finish read [14:33:54]Found Content-Length = 683 [14:33:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106193", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 24.240, "sum" : 1500.46, "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" ] } } [14:33:54]execute_script... [14:33:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106193", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 24.240, "sum" : 1500.46, "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" ] } } [14:33:54]POST & json_proto [14:33:54]process_json_proto [14:33:54]json parsed OK: [14:33:54]protocol is kg_v1.0 [14:33:54]action value=close_receipt [14:33:54]process_action close_receipt [14:33:54]cmd_close_receipt [14:33:54]MH_GetDate [14:33:54]Write to MH i2c: F0 00 00 35 2C 50 [14:33:54]Write i2c OK [14:33:54]MH_I2C_Read... [14:33:54]Read from MH i2c: F0 [14:33:54]MH_I2C_Read... [14:33:54]Read from MH i2c: F0 09 00 [14:33:54]MH_I2C_Read... [14:33:54]Read from MH i2c: F0 09 00 35 2C 00 55 8A E4 65 6C AF E3 65 E4 [14:33:54]GetLastDocTimeStamp 1709476033 [14:33:54]current date 1709476437 [14:33:54]FM_GetShiftState [14:33:54]SAM_PROTO_GetShiftState [14:33:54]wFMCommunicate request_size=4 [14:33:54]MH_SAM_APDU [14:33:54]CAPDU: 80 13 01 00 [14:33:54]Write to MH i2c: E2 08 00 36 2C 80 13 01 00 00 00 00 00 DF [14:33:54]Write i2c OK [14:33:54]MH_I2C_Read... [14:33:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:54]Read from MH i2c: E2 [14:33:54]MH_I2C_Read... [14:33:54]Read from MH i2c: E2 0E 00 [14:33:54]MH_I2C_Read... [14:33:54]Read from MH i2c: E2 0E 00 36 2C 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 A1 [14:33:54]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [14:33:54]wFMCommunicate OK [14:33:54]SAM_PROTO_GetShiftState done [14:33:54]FM_GetShiftState done [14:33:54]opened in 1709425579 [14:33:54]opened+sec_in_day 1709511979 [14:33:54]quantity*price = 150045 [14:33:54]sum+1 = 150047 [14:33:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.34 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 113 03.03.2024 14:33 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123256 ФПД: 229543217673947 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T143357&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123256&fm=229543217673947&tin=02508201610067®Number=0000000000090573&sum=150000 [14:33:55]StoreToDocumentArchive [14:33:55]shift 323 fd 123256 [14:33:55]save to /storage/0323/doc_00123256 [14:33:55]save last doc name /storage/0323/doc_00123256 to /storage/kkm_last_doc_name [14:33:55]save OK [14:33:55]Clear old archive folders... [14:33:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:33:55]tlvbuf is 00E29CE0 [14:33:55]SAM_PROTO_ClearQueue [14:33:55]wFMCommunicate request_size=4 [14:33:55]MH_SAM_APDU [14:33:55]CAPDU: 80 09 00 00 [14:33:55]Write to MH i2c: E2 08 00 43 2C 80 09 00 00 00 00 00 00 E1 [14:33:55]Write i2c OK [14:33:55]MH_I2C_Read... [14:33:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:33:55]Read from MH i2c: E2 [14:33:55]MH_I2C_Read... [14:33:55]Read from MH i2c: E2 03 00 [14:33:55]MH_I2C_Read... [14:33:55]Read from MH i2c: E2 03 00 43 2C 00 90 00 E3 [14:33:55]RAPDU: 90 00 [14:33:55]wFMCommunicate OK [14:33:55]SAM_PROTO_ClearQueue done [14:33:55]KKMCreateOFDPacket [14:33:55]OFDProtocolAddRootSTLVToBuf [14:33:55]FM_MakeSignedData [14:33:55]FM_MakeSignedData [14:33:55]SAM_PROTO_SignData [14:33:55]wFMCommunicate request_size=4 [14:33:55]MH_SAM_APDU [14:33:55]CAPDU: 80 0D 01 02 [14:33:55]Write to MH i2c: E2 08 00 44 2C 80 0D 01 02 00 00 00 00 E9 [14:33:55]Write i2c OK [14:33:55]MH_I2C_Read... [14:33:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:33:55]Read from MH i2c: E2 [14:33:55]MH_I2C_Read... [14:33:55]Read from MH i2c: E2 03 00 [14:33:55]MH_I2C_Read... [14:33:55]Read from MH i2c: E2 03 00 44 2C 00 90 00 E4 [14:33:55]RAPDU: 90 00 [14:33:55]wFMCommunicate OK [14:33:55]wFMCommunicate request_size=255 [14:33:55]MH_SAM_APDU [14:33:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 5E 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 1E 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 55 8A E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 78 E1 01 00 35 04 06 00 D0 [14:33:55]Write to MH i2c: E2 02 01 45 2C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 5E 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 1E 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 55 8A E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 78 E1 01 00 35 04 06 00 D0 00 00 E9 [14:33:55]Write i2c OK [14:33:55]MH_I2C_Read... [14:33:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:55]Read from MH i2c: E2 [14:33:55]MH_I2C_Read... [14:33:55]Read from MH i2c: E2 03 00 [14:33:55]MH_I2C_Read... [14:33:55]Read from MH i2c: E2 03 00 45 2C 00 90 00 E5 [14:33:55]RAPDU: 90 00 [14:33:55]wFMCommunicate OK [14:33:55]wFMCommunicate request_size=10 [14:33:55]MH_SAM_APDU [14:33:55]CAPDU: 80 0D 02 02 05 C4 B1 F3 36 DB [14:33:55]Write to MH i2c: E2 0D 00 46 2C 80 0D 02 02 05 00 C4 B1 F3 36 DB 00 00 6F [14:33:55]Write i2c OK [14:33:55]MH_I2C_Read... [14:33:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:55]Read from MH i2c: E2 [14:33:55]MH_I2C_Read... [14:33:55]Read from MH i2c: E2 03 00 [14:33:55]MH_I2C_Read... [14:33:55]Read from MH i2c: E2 03 00 46 2C 00 90 00 E6 [14:33:55]RAPDU: 90 00 [14:33:55]wFMCommunicate OK [14:33:55]wFMCommunicate request_size=4 [14:33:55]MH_SAM_APDU [14:33:55]CAPDU: 80 0D 03 02 [14:33:55]Write to MH i2c: E2 08 00 47 2C 80 0D 03 02 00 00 00 00 EE [14:33:55]Write i2c OK [14:33:55]MH_I2C_Read... [14:33:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:33:55]Read from MH i2c: E2 [14:33:55]MH_I2C_Read... [14:33:55]Read from MH i2c: E2 0B 00 [14:33:55]MH_I2C_Read... [14:33:55]Read from MH i2c: E2 0B 00 47 2C 00 47 31 F1 40 92 94 66 BF 90 00 E3 [14:33:55]RAPDU: 47 31 F1 40 92 94 66 BF 90 00 [14:33:55]wFMCommunicate OK [14:33:55]SAM_PROTO_SignData done [14:33:55]FM_MakeSignedData done [14:33:55]CreateOFDProtocolMessage [14:33:55]wFMCommunicate request_size=4 [14:33:55]MH_SAM_APDU [14:33:55]CAPDU: 80 11 00 00 [14:33:55]Write to MH i2c: E2 08 00 48 2C 80 11 00 00 00 00 00 00 EE [14:33:55]Write i2c OK [14:33:55]MH_I2C_Read... [14:33:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:55]Read from MH i2c: E2 [14:33:55]MH_I2C_Read... [14:33:55]Read from MH i2c: E2 17 00 [14:33:55]MH_I2C_Read... [14:33:55]Read from MH i2c: E2 17 00 48 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 4C [14:33:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [14:33:55]wFMCommunicate OK [14:33:55]CreateOFDProtocolMessage done [14:33:55]OFDSenderStorePacket 123256 [14:33:55]StoreOFDPacket docnum=123256 [14:33:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 6B D1 07 01 D9 B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 5E 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 1E 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 55 8A E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 78 E1 01 00 35 04 06 00 D0 C4 B1 F3 36 DB 47 31 F1 40 92 94 66 BF [14:33:55]CheckFolder [14:33:55]dirname=/storage/ofd_packets [14:33:55]CheckFolder done [14:33:55]ProducePacketName [14:33:55]name=ofd_packets/00123256 [14:33:55]NVStorageSaveData ofd_packets/00123256 [14:33:55]File name is /storage/ofd_packets/00123256 [14:33:55]Write 301 bytes [14:33:55]NVStorageSaveData done [14:33:55]OFDSenderStorePacket done [14:33:55]KKMCreateOFDPacket done [14:33:55]NVStorageSaveData kkm_last_timestamp [14:33:55]File name is /storage/kkm_last_timestamp [14:33:55]Write 4 bytes [14:33:55]NVStorageSaveData done [14:33:55]ExternCall_PrintAddStr [14:33:55]wPrintStart [14:33:55]Write to MH i2c: 01 00 00 49 2C 75 [14:33:55]Write i2c OK [14:33:55]MH_I2C_Read... [14:33:55]Read from MH i2c: 01 [14:33:55]MH_I2C_Read... [14:33:55]Read from MH i2c: 01 07 00 [14:33:55]MH_I2C_Read... [14:33:55]Read from MH i2c: 01 07 00 49 2C 00 00 00 00 00 FF 0F 8A [14:33:55]RasterBufferAndPrint [14:33:55]line Счет N : (1)1106193 [14:33:55]line ИНН: 02508201610067 [14:33:55]line Контрольно-Кассовый Чек [14:33:55]line ПРОДАЖА [14:33:55]line ТРК (МРК, ГНК) : 11 [14:33:55]line Товар: 2710124130 [14:33:55]line Аи-92-К-5 [14:33:55]line 24.240 * 61.90 [14:33:55]line = 1500.46 [14:33:55]line НДС 12% НСП 1% [14:33:55]line > о реализуемом товаре [14:33:55]line ОКРУГЛЕНИЕ: -0.46 [14:33:55]line ИТОГО: 1500.00 [14:33:55]line Внесено: 1500.00 [14:33:55]line СДАЧА: 0.00 [14:33:55]line НСП 1% : 13.28 [14:33:55]line НДС 12% : 159.34 [14:33:55]line Наличными: 1500.00 [14:33:55]line Безнал.: 0.00 [14:33:55]line Место: АЗС № 25 "Партнер Нефть" [14:33:55]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [14:33:55]line СНО: Общий режим [14:33:55]line Чек 113 03.03.2024 14:33 [14:33:55]line Смена: 323 ФФД: 1.0 [14:33:55]line ЗНМ: 0300000019 [14:33:55]line РНМ: 0000000000090573 [14:33:55]line Версия ККМ: 001 [14:33:55]line ФМ: 0000000000874798 [14:33:55]line ФД: 123256 [14:33:55]line ФПД: 229543217673947 [14:33:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T143357&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123256&fm=229543217673947&tin=02508201610067®Number=0000000000090573&sum=150000 [14:33:56]OFD Sender: Processing packet 123256 [packets to send 112, broken 111] [14:33:56]ProducePacketName [14:33:56]name=ofd_packets/00123256 [14:33:56]OFD Sender: To server: pG, [14:33:56]CommunicateWithHost lk.salyk.kg:30040 [14:33:56]ConnectInit lk.salyk.kg [14:33:56]written 0, free lines is 4095 [14:33:56]Connected sock=10 [14:33: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 37 39 38 0F 01 00 00 6B D1 07 01 D9 B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 5E 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 1E 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 55 8A E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 78 E1 01 00 35 04 06 00 D0 C4 B1 F3 36 DB 47 31 F1 40 92 94 66 BF [14:33:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 4B E3 47 00 19 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 37 39 38 10 04 04 00 78 E1 01 00 F4 03 04 00 81 36 E4 65 B6 04 01 00 00 9C C4 DD B8 A4 A1 DF A8 [14:33:56]CommunicateWithHost err = 0 [14:33:56]CheckOFDResponse [14:33:56]1017 (14) - 77093643461234 [14:33:56]1041 (16) - 0000000000874798 [14:33:56]1040 (4) - 123256 [14:33:56]1012 (4) - 03.03.2024 08:36 [14:33:56]1206 (1) - 0 [14:33:56]OFD Sender: Remove packet 123256 [14:33:56]ProducePacketName [14:33:56]name=ofd_packets/00123256 [14:33:56]NVStorageDeleteData [14:33:56]Write to MH i2c: 01 00 00 74 2C A0 [14:33:56]Write i2c OK [14:33:56]MH_I2C_Read... [14:33:56]Read from MH i2c: 01 [14:33:56]MH_I2C_Read... [14:33:56]Read from MH i2c: 01 07 00 [14:33:56]MH_I2C_Read... [14:33:56]Read from MH i2c: 01 07 00 74 2C 00 00 00 00 00 FA 0C AD [14:33:56]RasterBufferAndPrint [14:33:56]line [14:33:56]line [14:33:56]line [14:33:56]line [14:33:56]line [14:33:56]written 0, free lines is 3331 [14:33:56]MH_Cut [14:33:56]Write to MH i2c: D1 01 00 7B 2C 01 79 [14:33:56]Write i2c OK [14:33:56]MH_I2C_Read... [14:33:56]Read from MH i2c: D1 [14:33:56]MH_I2C_Read... [14:33:56]Read from MH i2c: D1 01 00 [14:33:56]MH_I2C_Read... [14:33:56]Read from MH i2c: D1 01 00 7B 2C 00 78 [14:33:56]Write to MH i2c: 01 00 00 7C 2C A8 [14:33:56]Write i2c OK [14:33:56]MH_I2C_Read... [14:33:56]OFD Sender: No OFD packet to send [14:33:57]*** Cut start [14:33:57]*** Purtial cut [14:33:57]*** Stage 1: CUTSNS_PIN = 1 [14:33:59]Read from MH i2c: 01 [14:33:59]MH_I2C_Read... [14:33:59]*** Stop cut motor [14:33:59]*** Cut end [14:33:59]Read from MH i2c: 01 07 00 [14:33:59]MH_I2C_Read... [14:33:59]Read from MH i2c: 01 07 00 7C 2C 00 00 00 00 00 FF 0F BD [14:33:59]process_action close_receipt done [14:33:59]requested_data is exist [14:33:59]produce_requested_data [14:33:59]requested_item fm.sn is exist - process it [14:33:59]wFMCommunicate request_size=4 [14:33:59]MH_SAM_APDU [14:33:59]CAPDU: 80 11 00 00 [14:33:59]Write to MH i2c: E2 08 00 7D 2C 80 11 00 00 00 00 00 00 23 [14:33:59]Write i2c OK [14:33:59]MH_I2C_Read... [14:33:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:59]Read from MH i2c: E2 [14:33:59]MH_I2C_Read... [14:33:59]Read from MH i2c: E2 17 00 [14:33:59]MH_I2C_Read... [14:33:59]Read from MH i2c: E2 17 00 7D 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 81 [14:33:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [14:33:59]wFMCommunicate OK [14:33:59]requested_item fd.num is exist - process it [14:33:59]SAM_PROTO_GetFieldsCounters [14:33:59]wFMCommunicate request_size=4 [14:33:59]MH_SAM_APDU [14:33:59]CAPDU: 80 13 00 00 [14:33:59]Write to MH i2c: E2 08 00 7E 2C 80 13 00 00 00 00 00 00 26 [14:33:59]Write i2c OK [14:33:59]MH_I2C_Read... [14:33:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:33:59]Read from MH i2c: E2 [14:33:59]MH_I2C_Read... [14:33:59]Read from MH i2c: E2 62 00 [14:33:59]MH_I2C_Read... [14:33:59]Read from MH i2c: E2 62 00 7E 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 78 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 42 [14:33: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 78 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:33:59]wFMCommunicate OK [14:33:59]SAM_PROTO_GetFieldsCounters done [14:33:59]requested_item shift.num is exist - process it [14:33:59]requested_item shift.opened is exist - process it [14:33:59]req_shift_opened [14:33:59]FM_GetShiftState [14:33:59]SAM_PROTO_GetShiftState [14:33:59]wFMCommunicate request_size=4 [14:33:59]MH_SAM_APDU [14:33:59]CAPDU: 80 13 01 00 [14:33:59]Write to MH i2c: E2 08 00 7F 2C 80 13 01 00 00 00 00 00 28 [14:33:59]Write i2c OK [14:33:59]MH_I2C_Read... [14:33:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:59]Read from MH i2c: E2 [14:33:59]MH_I2C_Read... [14:33:59]Read from MH i2c: E2 0E 00 [14:33:59]MH_I2C_Read... [14:33:59]Read from MH i2c: E2 0E 00 7F 2C 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 EA [14:33:59]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [14:33:59]wFMCommunicate OK [14:33:59]SAM_PROTO_GetShiftState done [14:33:59]FM_GetShiftState done [14:33:59]req_shift_opened done [14:33:59]requested_item shift.open_date is exist - process it [14:33:59]req_shift_open_date [14:33:59]req_shift_open_date done [14:33:59]produce_requested_data done [14:33:59]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123256,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [14:33:59]process_action_free close_receipt [14:33:59]json_value_free [14:33:59]json_value_free done [14:33:59]process_json_proto returns [14:33:59]Send response to host [14:33:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123256,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [14:33:59]free response buf [14:33:59]execute_script done [14:33:59]execute_script returns [14:33:59]free content buf [14:33:59]Sock 9.Close socket [14:33:59]Sock 9.Thread stoped [14:34:01]OFD Sender: No OFD packet to send [14:34:06]OFD Sender: No OFD packet to send [14:34:11]OFD Sender: No OFD packet to send [14:34:16]OFD Sender: No OFD packet to send [14:34:21]OFD Sender: No OFD packet to send [14:34:26]OFD Sender: No OFD packet to send [14:34:31]OFD Sender: No OFD packet to send [14:34:36]OFD Sender: No OFD packet to send [14:34:41]OFD Sender: No OFD packet to send [14:34:46]OFD Sender: No OFD packet to send [14:34:51]OFD Sender: No OFD packet to send [14:34:56]OFD Sender: No OFD packet to send [14:35:01]OFD Sender: No OFD packet to send [14:35:06]OFD Sender: No OFD packet to send [14:35:11]OFD Sender: No OFD packet to send [14:35:16]OFD Sender: No OFD packet to send [14:35:21]OFD Sender: No OFD packet to send [14:35:26]OFD Sender: No OFD packet to send [14:35:31]OFD Sender: No OFD packet to send [14:35:36]OFD Sender: No OFD packet to send [14:35:41]OFD Sender: No OFD packet to send [14:35:46]OFD Sender: No OFD packet to send [14:35:51]OFD Sender: No OFD packet to send [14:35:56]OFD Sender: No OFD packet to send [14:36:01]OFD Sender: No OFD packet to send [14:36:06]OFD Sender: No OFD packet to send [14:36:11]OFD Sender: No OFD packet to send [14:36:16]OFD Sender: No OFD packet to send [14:36:21]OFD Sender: No OFD packet to send [14:36:26]OFD Sender: No OFD packet to send [14:36:31]OFD Sender: No OFD packet to send [14:36:36]OFD Sender: No OFD packet to send [14:36:41]OFD Sender: No OFD packet to send [14:36:46]OFD Sender: No OFD packet to send [14:36:52]OFD Sender: No OFD packet to send [14:36:57]OFD Sender: No OFD packet to send [14:37:02]OFD Sender: No OFD packet to send [14:37:07]OFD Sender: No OFD packet to send [14:37:12]OFD Sender: No OFD packet to send [14:37:17]OFD Sender: No OFD packet to send [14:37:22]OFD Sender: No OFD packet to send [14:37:27]OFD Sender: No OFD packet to send [14:37:32]OFD Sender: No OFD packet to send [14:37:37]OFD Sender: No OFD packet to send [14:37:42]OFD Sender: No OFD packet to send [14:37:47]OFD Sender: No OFD packet to send [14:37:52]OFD Sender: No OFD packet to send [14:37:57]OFD Sender: No OFD packet to send [14:38:02]OFD Sender: No OFD packet to send [14:38:07]OFD Sender: No OFD packet to send [14:38:12]OFD Sender: No OFD packet to send [14:38:17]OFD Sender: No OFD packet to send [14:38:22]OFD Sender: No OFD packet to send [14:38:27]OFD Sender: No OFD packet to send [14:38:32]OFD Sender: No OFD packet to send [14:38:37]OFD Sender: No OFD packet to send [14:38:42]OFD Sender: No OFD packet to send [14:38:47]OFD Sender: No OFD packet to send [14:38:52]OFD Sender: No OFD packet to send [14:38:57]OFD Sender: No OFD packet to send [14:39:02]OFD Sender: No OFD packet to send [14:39:07]OFD Sender: No OFD packet to send [14:39:09]accept exits with 7 [14:39:09]New connection [14:39:09]New thread 3067395428 created [14:39:09]Thread 3067252068 joined [14:39:09]Waiting for new connection... [14:39:09] Sock 7.Parse request [14:39:09]Sock 7.Check first char [14:39:09]Sock 7.First char is OK [14:39:09]request: POST /json_proto HTTP/1.0 [14:39:09]Method: POST [14:39:09]URL: /json_proto [14:39:09]Method is POST - this is cgi request [14:39:09]url: /json_proto [14:39:09]query_string will be loaded in cgi processing [14:39:09]execute_cgi json_proto POST (null) [14:39:09]execute_cgi path=json_proto method=POST [14:39:09]POST find Content-Length [14:39:09]Host: 172.17.48.197:8080 [14:39:09]Content-Length: 809 [14:39:09]Content-Type: application/json [14:39:09] [14:39:09]POST finish read [14:39:09]Found Content-Length = 809 [14:39:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106194", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 15.200, "sum" : 1056.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1056.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:39:09]execute_script... [14: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 : (1)1106194", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 15.200, "sum" : 1056.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1056.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:39:09]POST & json_proto [14:39:09]process_json_proto [14:39:09]json parsed OK: [14:39:09]protocol is kg_v1.0 [14:39:09]action value=close_receipt [14:39:09]process_action close_receipt [14:39:09]cmd_close_receipt [14:39:09]MH_GetDate [14:39:09]Write to MH i2c: F0 00 00 80 2C 9B [14:39:09]Write i2c OK [14:39:09]MH_I2C_Read... [14:39:09]Read from MH i2c: F0 [14:39:09]MH_I2C_Read... [14:39:09]Read from MH i2c: F0 09 00 [14:39:09]MH_I2C_Read... [14:39:09]Read from MH i2c: F0 09 00 80 2C 00 90 8B E4 65 6C AF E3 65 6B [14:39:09]GetLastDocTimeStamp 1709476437 [14:39:09]current date 1709476752 [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 81 2C 80 13 01 00 00 00 00 00 2A [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:09]Read from MH i2c: E2 [14:39:09]MH_I2C_Read... [14:39:09]Read from MH i2c: E2 0E 00 [14:39:09]MH_I2C_Read... [14:39:09]Read from MH i2c: E2 0E 00 81 2C 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 EC [14:39:09]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [14:39:09]wFMCommunicate OK [14:39:09]SAM_PROTO_GetShiftState done [14:39:09]FM_GetShiftState done [14:39:09]opened in 1709425579 [14:39:09]opened+sec_in_day 1709511979 [14:39:09]quantity*price = 105640 [14:39:09]sum+1 = 105641 [14:39:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1056.40 НСП 1% : 9.35 НДС 12% : 112.18 Наличными: 0.00 Безнал.: 1056.40 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 114 03.03.2024 14:39 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874798 ФД: 123257 ФПД: 53855106683987 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T143912&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123257&fm=53855106683987&tin=02508201610067®Number=0000000000090573&sum=105640 [14:39:10]StoreToDocumentArchive [14:39:10]shift 323 fd 123257 [14:39:10]save to /storage/0323/doc_00123257 [14:39:10]save last doc name /storage/0323/doc_00123257 to /storage/kkm_last_doc_name [14:39:10]save OK [14:39:10]Clear old archive folders... [14:39:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:39:10]tlvbuf is 00E0D6E0 [14:39:10]SAM_PROTO_ClearQueue [14:39:10]wFMCommunicate request_size=4 [14:39:10]MH_SAM_APDU [14:39:10]CAPDU: 80 09 00 00 [14:39:10]Write to MH i2c: E2 08 00 8E 2C 80 09 00 00 00 00 00 00 2C [14:39:10]Write i2c OK [14:39:10]MH_I2C_Read... [14:39:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:39:10]Read from MH i2c: E2 [14:39:10]MH_I2C_Read... [14:39:10]Read from MH i2c: E2 03 00 [14:39:10]MH_I2C_Read... [14:39:10]Read from MH i2c: E2 03 00 8E 2C 00 90 00 2E [14:39:10]RAPDU: 90 00 [14:39:10]wFMCommunicate OK [14:39:10]SAM_PROTO_ClearQueue done [14:39:10]KKMCreateOFDPacket [14:39:10]OFDProtocolAddRootSTLVToBuf [14:39:10]FM_MakeSignedData [14:39:10]FM_MakeSignedData [14:39:10]SAM_PROTO_SignData [14:39:10]wFMCommunicate request_size=4 [14:39:10]MH_SAM_APDU [14:39:10]CAPDU: 80 0D 01 02 [14:39:10]Write to MH i2c: E2 08 00 8F 2C 80 0D 01 02 00 00 00 00 34 [14:39:10]Write i2c OK [14:39:10]MH_I2C_Read... [14:39:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:39:10]Read from MH i2c: E2 [14:39:10]MH_I2C_Read... [14:39:10]Read from MH i2c: E2 03 00 [14:39:10]MH_I2C_Read... [14:39:10]Read from MH i2c: E2 03 00 8F 2C 00 90 00 2F [14:39:10]RAPDU: 90 00 [14:39:10]wFMCommunicate OK [14:39:10]wFMCommunicate request_size=255 [14:39:10]MH_SAM_APDU [14:39:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 A8 9C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 9C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A7 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 2B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 9C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 90 8B E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 79 E1 01 00 35 04 06 00 30 [14:39:10]Write to MH i2c: E2 02 01 90 2C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 A8 9C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 9C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A7 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 2B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 9C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 90 8B E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 79 E1 01 00 35 04 06 00 30 00 00 43 [14:39:10]Write i2c OK [14:39:10]MH_I2C_Read... [14:39:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:10]Read from MH i2c: E2 [14:39:10]MH_I2C_Read... [14:39:10]Read from MH i2c: E2 03 00 [14:39:10]MH_I2C_Read... [14:39:10]Read from MH i2c: E2 03 00 90 2C 00 90 00 30 [14:39:10]RAPDU: 90 00 [14:39:10]wFMCommunicate OK [14:39:10]wFMCommunicate request_size=10 [14:39:10]MH_SAM_APDU [14:39:10]CAPDU: 80 0D 02 02 05 FB 1E 80 D4 53 [14:39:10]Write to MH i2c: E2 0D 00 91 2C 80 0D 02 02 05 00 FB 1E 80 D4 53 00 00 01 [14:39:10]Write i2c OK [14:39:10]MH_I2C_Read... [14:39:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:10]Read from MH i2c: E2 [14:39:10]MH_I2C_Read... [14:39:10]Read from MH i2c: E2 03 00 [14:39:10]MH_I2C_Read... [14:39:10]Read from MH i2c: E2 03 00 91 2C 00 90 00 31 [14:39:10]RAPDU: 90 00 [14:39:10]wFMCommunicate OK [14:39:10]wFMCommunicate request_size=4 [14:39:10]MH_SAM_APDU [14:39:10]CAPDU: 80 0D 03 02 [14:39:10]Write to MH i2c: E2 08 00 92 2C 80 0D 03 02 00 00 00 00 39 [14:39:10]Write i2c OK [14:39:10]MH_I2C_Read... [14:39:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:39:10]Read from MH i2c: E2 [14:39:10]MH_I2C_Read... [14:39:10]Read from MH i2c: E2 0B 00 [14:39:10]MH_I2C_Read... [14:39:10]Read from MH i2c: E2 0B 00 92 2C 00 92 66 1F 33 87 21 1B 32 90 00 79 [14:39:10]RAPDU: 92 66 1F 33 87 21 1B 32 90 00 [14:39:10]wFMCommunicate OK [14:39:10]SAM_PROTO_SignData done [14:39:10]FM_MakeSignedData done [14:39:10]CreateOFDProtocolMessage [14:39:10]wFMCommunicate request_size=4 [14:39:10]MH_SAM_APDU [14:39:10]CAPDU: 80 11 00 00 [14:39:10]Write to MH i2c: E2 08 00 93 2C 80 11 00 00 00 00 00 00 39 [14:39:10]Write i2c OK [14:39:10]MH_I2C_Read... [14:39:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:10]Read from MH i2c: E2 [14:39:10]MH_I2C_Read... [14:39:10]Read from MH i2c: E2 17 00 [14:39:10]MH_I2C_Read... [14:39:10]Read from MH i2c: E2 17 00 93 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 97 [14:39:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [14:39:10]wFMCommunicate OK [14:39:10]CreateOFDProtocolMessage done [14:39:10]OFDSenderStorePacket 123257 [14:39:10]StoreOFDPacket docnum=123257 [14:39:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 DF 12 07 01 85 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 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 A8 9C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 9C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A7 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 2B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 9C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 90 8B E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 79 E1 01 00 35 04 06 00 30 FB 1E 80 D4 53 92 66 1F 33 87 21 1B 32 [14:39:10]CheckFolder [14:39:10]dirname=/storage/ofd_packets [14:39:10]CheckFolder done [14:39:10]ProducePacketName [14:39:10]name=ofd_packets/00123257 [14:39:10]NVStorageSaveData ofd_packets/00123257 [14:39:10]File name is /storage/ofd_packets/00123257 [14:39:10]Write 301 bytes [14:39:10]NVStorageSaveData done [14:39:10]OFDSenderStorePacket done [14:39:10]KKMCreateOFDPacket done [14:39:10]NVStorageSaveData kkm_last_timestamp [14:39:10]File name is /storage/kkm_last_timestamp [14:39:10]Write 4 bytes [14:39:10]NVStorageSaveData done [14:39:10]ExternCall_PrintAddStr [14:39:10]wPrintStart [14:39:10]Write to MH i2c: 01 00 00 94 2C C0 [14:39:10]Write i2c OK [14:39:10]MH_I2C_Read... [14:39:10]Read from MH i2c: 01 [14:39:10]MH_I2C_Read... [14:39:10]Read from MH i2c: 01 07 00 [14:39:10]MH_I2C_Read... [14:39:10]Read from MH i2c: 01 07 00 94 2C 00 00 00 00 00 FF 0F D5 [14:39:10]RasterBufferAndPrint [14:39:10]line Счет N : (1)1106194 [14:39:10]line ИНН: 02508201610067 [14:39:10]line Контрольно-Кассовый Чек [14:39:10]line ПРОДАЖА [14:39:10]line ТРК (МРК, ГНК) : 13 [14:39:10]line Товар: 2710124500 [14:39:10]line Аи-95-К-5 [14:39:10]line 15.200 * 69.50 [14:39:10]line = 1056.40 [14:39:10]line НДС 12% НСП 1% [14:39:10]line > о реализуемом товаре [14:39:10]line ИТОГО: 1056.40 [14:39:10]line НСП 1% : 9.35 [14:39:10]line НДС 12% : 112.18 [14:39:10]line Наличными: 0.00 [14:39:10]line Безнал.: 1056.40 [14:39:10]line Место: АЗС № 25 "Партнер Нефть" [14:39:10]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [14:39:10]line СНО: Общий режим [14:39:10]line Чек 114 03.03.2024 14:39 [14:39:10]line Смена: 323 ФФД: 1.0 [14:39:10]line ЗНМ: 0300000019 [14:39:10]line РНМ: 0000000000090573 [14:39:10]line Версия ККМ: 001 [14:39:10]line Платежная система: О! деньги [14:39:10]line ФМ: 0000000000874798 [14:39:10]line ФД: 123257 [14:39:10]line ФПД: 53855106683987 [14:39:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T143912&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123257&fm=53855106683987&tin=02508201610067®Number=0000000000090573&sum=105640 [14:39:11]OFD Sender: Processing packet 123257 [packets to send 112, broken 111] [14:39:11]ProducePacketName [14:39:11]name=ofd_packets/00123257 [14:39:11]OFD Sender: To server: pG, [14:39:11]CommunicateWithHost lk.salyk.kg:30040 [14:39:11]ConnectInit lk.salyk.kg [14:39:11]written 0, free lines is 4095 [14:39:11]Connected sock=10 [14:39: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 37 39 38 0F 01 00 00 DF 12 07 01 85 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 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 A8 9C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 9C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A7 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 2B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 9C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 90 8B E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 79 E1 01 00 35 04 06 00 30 FB 1E 80 D4 53 92 66 1F 33 87 21 1B 32 [14: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 37 39 38 4F 00 00 00 A4 A5 47 00 C0 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 37 39 38 10 04 04 00 79 E1 01 00 F4 03 04 00 BC 37 E4 65 B6 04 01 00 00 97 01 66 88 A5 F7 AF 2E [14:39:11]CommunicateWithHost err = 0 [14:39:11]CheckOFDResponse [14:39:11]1017 (14) - 77093643461234 [14:39:11]1041 (16) - 0000000000874798 [14:39:11]1040 (4) - 123257 [14:39:11]1012 (4) - 03.03.2024 08:41 [14:39:11]1206 (1) - 0 [14:39:11]OFD Sender: Remove packet 123257 [14:39:11]ProducePacketName [14:39:11]name=ofd_packets/00123257 [14:39:11]NVStorageDeleteData [14:39:11]Write to MH i2c: 01 00 00 BE 2C EA [14:39:11]Write i2c OK [14:39:11]MH_I2C_Read... [14:39:11]Read from MH i2c: 01 [14:39:11]MH_I2C_Read... [14:39:11]Read from MH i2c: 01 07 00 [14:39:11]MH_I2C_Read... [14:39:11]Read from MH i2c: 01 07 00 BE 2C 00 00 00 00 00 01 0D FF [14:39:11]RasterBufferAndPrint [14:39:11]line [14:39:11]line [14:39:11]line [14:39:11]line [14:39:11]line [14:39:11]written 0, free lines is 3335 [14:39:11]MH_Cut [14:39:11]Write to MH i2c: D1 01 00 C5 2C 01 C3 [14:39:11]Write i2c OK [14:39:11]MH_I2C_Read... [14:39:11]Read from MH i2c: D1 [14:39:11]MH_I2C_Read... [14:39:11]Read from MH i2c: D1 01 00 [14:39:11]MH_I2C_Read... [14:39:11]Read from MH i2c: D1 01 00 C5 2C 00 C2 [14:39:11]Write to MH i2c: 01 00 00 C6 2C F2 [14:39:11]Write i2c OK [14:39:11]MH_I2C_Read... [14:39:12]OFD Sender: No OFD packet to send [14:39:12]*** Cut start [14:39:12]*** Purtial cut [14:39:12]*** Stage 1: CUTSNS_PIN = 1 [14:39:14]Read from MH i2c: 01 [14:39:14]MH_I2C_Read... [14:39:14]*** Stop cut motor [14:39:14]*** Cut end [14:39:14]Read from MH i2c: 01 07 00 [14:39:14]MH_I2C_Read... [14:39:14]Read from MH i2c: 01 07 00 C6 2C 00 00 00 00 00 FF 0F 07 [14:39:14]process_action close_receipt done [14:39:14]requested_data is exist [14:39:14]produce_requested_data [14:39:14]requested_item fm.sn is exist - process it [14:39:14]wFMCommunicate request_size=4 [14:39:14]MH_SAM_APDU [14:39:14]CAPDU: 80 11 00 00 [14:39:14]Write to MH i2c: E2 08 00 C7 2C 80 11 00 00 00 00 00 00 6D [14:39:14]Write i2c OK [14:39:14]MH_I2C_Read... [14:39:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:14]Read from MH i2c: E2 [14:39:14]MH_I2C_Read... [14:39:14]Read from MH i2c: E2 17 00 [14:39:14]MH_I2C_Read... [14:39:14]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 37 39 38 90 00 CB [14:39:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [14:39:14]wFMCommunicate OK [14:39:14]requested_item fd.num is exist - process it [14:39:14]SAM_PROTO_GetFieldsCounters [14:39:14]wFMCommunicate request_size=4 [14:39:14]MH_SAM_APDU [14:39:14]CAPDU: 80 13 00 00 [14:39:14]Write to MH i2c: E2 08 00 C8 2C 80 13 00 00 00 00 00 00 70 [14:39:14]Write i2c OK [14:39:14]MH_I2C_Read... [14:39:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:39:14]Read from MH i2c: E2 [14:39:14]MH_I2C_Read... [14:39:14]Read from MH i2c: E2 62 00 [14:39:14]MH_I2C_Read... [14:39:14]Read from MH i2c: E2 62 00 C8 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 79 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 90 [14:39: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 79 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:39:14]wFMCommunicate OK [14:39:14]SAM_PROTO_GetFieldsCounters done [14:39:14]requested_item shift.num is exist - process it [14:39:14]requested_item shift.opened is exist - process it [14:39:14]req_shift_opened [14:39:14]FM_GetShiftState [14:39:14]SAM_PROTO_GetShiftState [14:39:14]wFMCommunicate request_size=4 [14:39:14]MH_SAM_APDU [14:39:14]CAPDU: 80 13 01 00 [14:39:14]Write to MH i2c: E2 08 00 C9 2C 80 13 01 00 00 00 00 00 72 [14:39:14]Write i2c OK [14:39:14]MH_I2C_Read... [14:39:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:39:14]Read from MH i2c: E2 [14:39:14]MH_I2C_Read... [14:39:14]Read from MH i2c: E2 0E 00 [14:39:14]MH_I2C_Read... [14:39:14]Read from MH i2c: E2 0E 00 C9 2C 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 34 [14:39:14]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [14:39:14]wFMCommunicate OK [14:39:14]SAM_PROTO_GetShiftState done [14:39:14]FM_GetShiftState done [14:39:14]req_shift_opened done [14:39:14]requested_item shift.open_date is exist - process it [14:39:14]req_shift_open_date [14:39:14]req_shift_open_date done [14:39:14]produce_requested_data done [14:39:14]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123257,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [14:39:14]process_action_free close_receipt [14:39:14]json_value_free [14:39:14]json_value_free done [14:39:14]process_json_proto returns [14:39:14]Send response to host [14:39:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123257,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [14:39:14]free response buf [14:39:14]execute_script done [14:39:14]execute_script returns [14:39:14]free content buf [14:39:14]Sock 7.Close socket [14:39:14]Sock 7.Thread stoped [14:39:17]OFD Sender: No OFD packet to send [14:39:22]OFD Sender: No OFD packet to send [14:39:27]OFD Sender: No OFD packet to send [14:39:32]OFD Sender: No OFD packet to send [14:39:37]OFD Sender: No OFD packet to send [14:39:42]OFD Sender: No OFD packet to send [14:39:47]OFD Sender: No OFD packet to send [14:39:52]OFD Sender: No OFD packet to send [14:39:57]OFD Sender: No OFD packet to send [14:40:02]OFD Sender: No OFD packet to send [14:40:07]OFD Sender: No OFD packet to send [14:40:12]OFD Sender: No OFD packet to send [14:40:17]OFD Sender: No OFD packet to send [14:40:22]OFD Sender: No OFD packet to send [14:40:27]OFD Sender: No OFD packet to send [14:40:32]OFD Sender: No OFD packet to send [14:40:37]OFD Sender: No OFD packet to send [14:40:42]OFD Sender: No OFD packet to send [14:40:47]OFD Sender: No OFD packet to send [14:40:52]OFD Sender: No OFD packet to send [14:40:57]OFD Sender: No OFD packet to send [14:41:01]accept exits with 9 [14:41:01]New connection [14:41:01]New thread 3067252068 created [14:41:01]Thread 3067395428 joined [14:41:01]Waiting for new connection... [14:41:01] Sock 9.Parse request [14:41:01]Sock 9.Check first char [14:41:01]Sock 9.First char is OK [14:41:01]request: POST /json_proto HTTP/1.0 [14:41:01]Method: POST [14:41:01]URL: /json_proto [14:41:01]Method is POST - this is cgi request [14:41:01]url: /json_proto [14:41:01]query_string will be loaded in cgi processing [14:41:01]execute_cgi json_proto POST (null) [14:41:01]execute_cgi path=json_proto method=POST [14:41:01]POST find Content-Length [14:41:01]Host: 172.17.48.197:8080 [14:41:01]Content-Length: 683 [14:41:01]Content-Type: application/json [14:41:01] [14:41:01]POST finish read [14:41:01]Found Content-Length = 683 [14:41:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106197", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 24.470, "sum" : 1700.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1700.00, "total" : 1700.00, "payments": [ { "type": 0, "sum" : 1700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:41:01]execute_script... [14:41: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)1106197", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 24.470, "sum" : 1700.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1700.00, "total" : 1700.00, "payments": [ { "type": 0, "sum" : 1700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:41:01]POST & json_proto [14:41:01]process_json_proto [14:41:01]json parsed OK: [14:41:01]protocol is kg_v1.0 [14:41:01]action value=close_receipt [14:41:01]process_action close_receipt [14:41:01]cmd_close_receipt [14:41:01]MH_GetDate [14:41:01]Write to MH i2c: F0 00 00 CA 2C E5 [14:41:01]Write i2c OK [14:41:01]MH_I2C_Read... [14:41:01]Read from MH i2c: F0 [14:41:01]MH_I2C_Read... [14:41:01]Read from MH i2c: F0 09 00 [14:41:01]MH_I2C_Read... [14:41:01]Read from MH i2c: F0 09 00 CA 2C 00 01 8C E4 65 6C AF E3 65 27 [14:41:01]GetLastDocTimeStamp 1709476752 [14:41:01]current date 1709476865 [14:41:01]FM_GetShiftState [14:41:01]SAM_PROTO_GetShiftState [14:41:01]wFMCommunicate request_size=4 [14:41:01]MH_SAM_APDU [14:41:01]CAPDU: 80 13 01 00 [14:41:01]Write to MH i2c: E2 08 00 CB 2C 80 13 01 00 00 00 00 00 74 [14:41:01]Write i2c OK [14:41:01]MH_I2C_Read... [14:41:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:01]Read from MH i2c: E2 [14:41:01]MH_I2C_Read... [14:41:01]Read from MH i2c: E2 0E 00 [14:41:01]MH_I2C_Read... [14:41:01]Read from MH i2c: E2 0E 00 CB 2C 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 36 [14:41:01]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [14:41:01]wFMCommunicate OK [14:41:01]SAM_PROTO_GetShiftState done [14:41:01]FM_GetShiftState done [14:41:01]opened in 1709425579 [14:41:01]opened+sec_in_day 1709511979 [14:41:01]quantity*price = 170066 [14:41:01]sum+1 = 170068 [14:41:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.67 ИТОГО: 1700.00 Внесено: 1700.00 СДАЧА: 0.00 НСП 1% : 15.05 НДС 12% : 180.60 Наличными: 1700.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 115 03.03.2024 14:41 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123258 ФПД: 97212908336514 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T144105&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123258&fm=97212908336514&tin=02508201610067®Number=0000000000090573&sum=170000 [14:41:02]StoreToDocumentArchive [14:41:02]shift 323 fd 123258 [14:41:02]save to /storage/0323/doc_00123258 [14:41:02]save last doc name /storage/0323/doc_00123258 to /storage/kkm_last_doc_name [14:41:02]save OK [14:41:02]Clear old archive folders... [14:41:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:41:02]tlvbuf is 00DED170 [14:41:02]SAM_PROTO_ClearQueue [14:41:02]wFMCommunicate request_size=4 [14:41:02]MH_SAM_APDU [14:41:02]CAPDU: 80 09 00 00 [14:41:02]Write to MH i2c: E2 08 00 D8 2C 80 09 00 00 00 00 00 00 76 [14:41:02]Write i2c OK [14:41:02]MH_I2C_Read... [14:41:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:41:02]Read from MH i2c: E2 [14:41:02]MH_I2C_Read... [14:41:02]Read from MH i2c: E2 03 00 [14:41:02]MH_I2C_Read... [14:41:02]Read from MH i2c: E2 03 00 D8 2C 00 90 00 78 [14:41:02]RAPDU: 90 00 [14:41:02]wFMCommunicate OK [14:41:02]SAM_PROTO_ClearQueue done [14:41:02]KKMCreateOFDPacket [14:41:02]OFDProtocolAddRootSTLVToBuf [14:41:02]FM_MakeSignedData [14:41:02]FM_MakeSignedData [14:41:02]SAM_PROTO_SignData [14:41:02]wFMCommunicate request_size=4 [14:41:02]MH_SAM_APDU [14:41:02]CAPDU: 80 0D 01 02 [14:41:02]Write to MH i2c: E2 08 00 D9 2C 80 0D 01 02 00 00 00 00 7E [14:41:02]Write i2c OK [14:41:02]MH_I2C_Read... [14:41:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:41:02]Read from MH i2c: E2 [14:41:02]MH_I2C_Read... [14:41:02]Read from MH i2c: E2 03 00 [14:41:02]MH_I2C_Read... [14:41:02]Read from MH i2c: E2 03 00 D9 2C 00 90 00 79 [14:41:02]RAPDU: 90 00 [14:41:02]wFMCommunicate OK [14:41:02]wFMCommunicate request_size=255 [14:41:02]MH_SAM_APDU [14:41:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 96 5F 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 53 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 46 00 00 00 00 07 04 06 00 10 98 02 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 01 8C E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 7A E1 01 00 35 04 06 00 58 [14:41:02]Write to MH i2c: E2 02 01 DA 2C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 96 5F 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 53 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 46 00 00 00 00 07 04 06 00 10 98 02 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 01 8C E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 7A E1 01 00 35 04 06 00 58 00 00 06 [14:41:02]Write i2c OK [14:41:02]MH_I2C_Read... [14:41:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:03]Read from MH i2c: E2 [14:41:03]MH_I2C_Read... [14:41:03]Read from MH i2c: E2 03 00 [14:41:03]MH_I2C_Read... [14:41:03]Read from MH i2c: E2 03 00 DA 2C 00 90 00 7A [14:41:03]RAPDU: 90 00 [14:41:03]wFMCommunicate OK [14:41:03]wFMCommunicate request_size=10 [14:41:03]MH_SAM_APDU [14:41:03]CAPDU: 80 0D 02 02 05 6A 24 DE 75 82 [14:41:03]Write to MH i2c: E2 0D 00 DB 2C 80 0D 02 02 05 00 6A 24 DE 75 82 00 00 EE [14:41:03]Write i2c OK [14:41:03]MH_I2C_Read... [14:41:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:03]Read from MH i2c: E2 [14:41:03]MH_I2C_Read... [14:41:03]Read from MH i2c: E2 03 00 [14:41:03]MH_I2C_Read... [14:41:03]Read from MH i2c: E2 03 00 DB 2C 00 90 00 7B [14:41:03]RAPDU: 90 00 [14:41:03]wFMCommunicate OK [14:41:03]wFMCommunicate request_size=4 [14:41:03]MH_SAM_APDU [14:41:03]CAPDU: 80 0D 03 02 [14:41:03]Write to MH i2c: E2 08 00 DC 2C 80 0D 03 02 00 00 00 00 83 [14:41:03]Write i2c OK [14:41:03]MH_I2C_Read... [14:41:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:41:03]Read from MH i2c: E2 [14:41:03]MH_I2C_Read... [14:41:03]Read from MH i2c: E2 0B 00 [14:41:03]MH_I2C_Read... [14:41:03]Read from MH i2c: E2 0B 00 DC 2C 00 46 45 39 31 F5 E0 CA 2C 90 00 44 [14:41:03]RAPDU: 46 45 39 31 F5 E0 CA 2C 90 00 [14:41:03]wFMCommunicate OK [14:41:03]SAM_PROTO_SignData done [14:41:03]FM_MakeSignedData done [14:41:03]CreateOFDProtocolMessage [14:41:03]wFMCommunicate request_size=4 [14:41:03]MH_SAM_APDU [14:41:03]CAPDU: 80 11 00 00 [14:41:03]Write to MH i2c: E2 08 00 DD 2C 80 11 00 00 00 00 00 00 83 [14:41:03]Write i2c OK [14:41:03]MH_I2C_Read... [14:41:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:03]Read from MH i2c: E2 [14:41:03]MH_I2C_Read... [14:41:03]Read from MH i2c: E2 17 00 [14:41:03]MH_I2C_Read... [14:41:03]Read from MH i2c: E2 17 00 DD 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 E1 [14:41:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [14:41:03]wFMCommunicate OK [14:41:03]CreateOFDProtocolMessage done [14:41:03]OFDSenderStorePacket 123258 [14:41:03]StoreOFDPacket docnum=123258 [14:41:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 5C A8 07 01 3A B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 96 5F 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 53 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 46 00 00 00 00 07 04 06 00 10 98 02 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 01 8C E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 7A E1 01 00 35 04 06 00 58 6A 24 DE 75 82 46 45 39 31 F5 E0 CA 2C [14:41:03]CheckFolder [14:41:03]dirname=/storage/ofd_packets [14:41:03]CheckFolder done [14:41:03]ProducePacketName [14:41:03]name=ofd_packets/00123258 [14:41:03]NVStorageSaveData ofd_packets/00123258 [14:41:03]File name is /storage/ofd_packets/00123258 [14:41:03]Write 301 bytes [14:41:03]NVStorageSaveData done [14:41:03]OFDSenderStorePacket done [14:41:03]KKMCreateOFDPacket done [14:41:03]NVStorageSaveData kkm_last_timestamp [14:41:03]File name is /storage/kkm_last_timestamp [14:41:03]Write 4 bytes [14:41:03]NVStorageSaveData done [14:41:03]ExternCall_PrintAddStr [14:41:03]wPrintStart [14:41:03]Write to MH i2c: 01 00 00 DE 2C 0A [14:41:03]Write i2c OK [14:41:03]MH_I2C_Read... [14:41:03]Read from MH i2c: 01 [14:41:03]MH_I2C_Read... [14:41:03]Read from MH i2c: 01 07 00 [14:41:03]MH_I2C_Read... [14:41:03]Read from MH i2c: 01 07 00 DE 2C 00 00 00 00 00 FF 0F 1F [14:41:03]RasterBufferAndPrint [14:41:03]line Счет N : (1)1106197 [14:41:03]line ИНН: 02508201610067 [14:41:03]line Контрольно-Кассовый Чек [14:41:03]line ПРОДАЖА [14:41:03]line ТРК (МРК, ГНК) : 53 [14:41:03]line Товар: 2710124500 [14:41:03]line Аи-95-К-5 [14:41:03]line 24.470 * 69.50 [14:41:03]line = 1700.67 [14:41:03]line НДС 12% НСП 1% [14:41:03]line > о реализуемом товаре [14:41:03]line ОКРУГЛЕНИЕ: -0.67 [14:41:03]line ИТОГО: 1700.00 [14:41:03]line Внесено: 1700.00 [14:41:03]line СДАЧА: 0.00 [14:41:03]line НСП 1% : 15.05 [14:41:03]line НДС 12% : 180.60 [14:41:03]line Наличными: 1700.00 [14:41:03]line Безнал.: 0.00 [14:41:03]line Место: АЗС № 25 "Партнер Нефть" [14:41:03]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [14:41:03]line СНО: Общий режим [14:41:03]line Чек 115 03.03.2024 14:41 [14:41:03]line Смена: 323 ФФД: 1.0 [14:41:03]line ЗНМ: 0300000019 [14:41:03]line РНМ: 0000000000090573 [14:41:03]line Версия ККМ: 001 [14:41:03]line ФМ: 0000000000874798 [14:41:03]line ФД: 123258 [14:41:03]line ФПД: 97212908336514 [14:41:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T144105&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123258&fm=97212908336514&tin=02508201610067®Number=0000000000090573&sum=170000 [14:41:03]OFD Sender: Processing packet 123258 [packets to send 112, broken 111] [14:41:03]ProducePacketName [14:41:03]name=ofd_packets/00123258 [14:41:03]OFD Sender: To server: pG, [14:41:03]CommunicateWithHost lk.salyk.kg:30040 [14:41:03]ConnectInit lk.salyk.kg [14:41:03]written 0, free lines is 4095 [14:41:03]Connected sock=10 [14:41: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 37 39 38 0F 01 00 00 5C A8 07 01 3A B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 96 5F 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 53 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 46 00 00 00 00 07 04 06 00 10 98 02 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 01 8C E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 7A E1 01 00 35 04 06 00 58 6A 24 DE 75 82 46 45 39 31 F5 E0 CA 2C [14:41:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 10 5C 47 00 A5 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 37 39 38 10 04 04 00 7A E1 01 00 F4 03 04 00 2C 38 E4 65 B6 04 01 00 00 9C B3 89 CD CF 34 45 3E [14:41:03]CommunicateWithHost err = 0 [14:41:03]CheckOFDResponse [14:41:03]1017 (14) - 77093643461234 [14:41:03]1041 (16) - 0000000000874798 [14:41:03]1040 (4) - 123258 [14:41:03]1012 (4) - 03.03.2024 08:43 [14:41:03]1206 (1) - 0 [14:41:03]OFD Sender: Remove packet 123258 [14:41:03]ProducePacketName [14:41:03]name=ofd_packets/00123258 [14:41:03]NVStorageDeleteData [14:41:04]Write to MH i2c: 01 00 00 09 2D 36 [14:41:04]Write i2c OK [14:41:04]MH_I2C_Read... [14:41:04]Read from MH i2c: 01 [14:41:04]MH_I2C_Read... [14:41:04]Read from MH i2c: 01 07 00 [14:41:04]MH_I2C_Read... [14:41:04]Read from MH i2c: 01 07 00 09 2D 00 00 00 00 00 01 0D 4B [14:41:04]RasterBufferAndPrint [14:41:04]line [14:41:04]line [14:41:04]line [14:41:04]line [14:41:04]line [14:41:04]written 0, free lines is 3338 [14:41:04]MH_Cut [14:41:04]Write to MH i2c: D1 01 00 10 2D 01 0F [14:41:04]Write i2c OK [14:41:04]MH_I2C_Read... [14:41:04]Read from MH i2c: D1 [14:41:04]MH_I2C_Read... [14:41:04]Read from MH i2c: D1 01 00 [14:41:04]MH_I2C_Read... [14:41:04]Read from MH i2c: D1 01 00 10 2D 00 0E [14:41:04]Write to MH i2c: 01 00 00 11 2D 3E [14:41:04]Write i2c OK [14:41:04]MH_I2C_Read... [14:41:04]OFD Sender: No OFD packet to send [14:41:04]*** Cut start [14:41:04]*** Purtial cut [14:41:04]*** Stage 1: CUTSNS_PIN = 1 [14:41:06]Read from MH i2c: 01 [14:41:06]MH_I2C_Read... [14:41:06]*** Stop cut motor [14:41:06]*** Cut end [14:41:06]Read from MH i2c: 01 07 00 [14:41:06]MH_I2C_Read... [14:41:06]Read from MH i2c: 01 07 00 11 2D 00 00 00 00 00 FF 0F 53 [14:41:06]process_action close_receipt done [14:41:06]requested_data is exist [14:41:06]produce_requested_data [14:41:06]requested_item fm.sn is exist - process it [14:41:06]wFMCommunicate request_size=4 [14:41:06]MH_SAM_APDU [14:41:06]CAPDU: 80 11 00 00 [14:41:06]Write to MH i2c: E2 08 00 12 2D 80 11 00 00 00 00 00 00 B9 [14:41:06]Write i2c OK [14:41:06]MH_I2C_Read... [14:41:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:06]Read from MH i2c: E2 [14:41:06]MH_I2C_Read... [14:41:06]Read from MH i2c: E2 17 00 [14:41:06]MH_I2C_Read... [14:41:06]Read from MH i2c: E2 17 00 12 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 17 [14:41:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [14:41:06]wFMCommunicate OK [14:41:06]requested_item fd.num is exist - process it [14:41:06]SAM_PROTO_GetFieldsCounters [14:41:06]wFMCommunicate request_size=4 [14:41:06]MH_SAM_APDU [14:41:06]CAPDU: 80 13 00 00 [14:41:06]Write to MH i2c: E2 08 00 13 2D 80 13 00 00 00 00 00 00 BC [14:41:06]Write i2c OK [14:41:06]MH_I2C_Read... [14:41:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:41:06]Read from MH i2c: E2 [14:41:06]MH_I2C_Read... [14:41:06]Read from MH i2c: E2 62 00 [14:41:06]MH_I2C_Read... [14:41:06]Read from MH i2c: E2 62 00 13 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 7A E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 E0 [14:41: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 7A E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:41:06]wFMCommunicate OK [14:41:06]SAM_PROTO_GetFieldsCounters done [14:41:06]requested_item shift.num is exist - process it [14:41:06]requested_item shift.opened is exist - process it [14:41:06]req_shift_opened [14:41:06]FM_GetShiftState [14:41:06]SAM_PROTO_GetShiftState [14:41:06]wFMCommunicate request_size=4 [14:41:06]MH_SAM_APDU [14:41:06]CAPDU: 80 13 01 00 [14:41:06]Write to MH i2c: E2 08 00 14 2D 80 13 01 00 00 00 00 00 BE [14:41:06]Write i2c OK [14:41:06]MH_I2C_Read... [14:41:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:07]Read from MH i2c: E2 [14:41:07]MH_I2C_Read... [14:41:07]Read from MH i2c: E2 0E 00 [14:41:07]MH_I2C_Read... [14:41:07]Read from MH i2c: E2 0E 00 14 2D 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 80 [14:41:07]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [14:41:07]wFMCommunicate OK [14:41:07]SAM_PROTO_GetShiftState done [14:41:07]FM_GetShiftState done [14:41:07]req_shift_opened done [14:41:07]requested_item shift.open_date is exist - process it [14:41:07]req_shift_open_date [14:41:07]req_shift_open_date done [14:41:07]produce_requested_data done [14:41:07]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123258,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [14:41:07]process_action_free close_receipt [14:41:07]json_value_free [14:41:07]json_value_free done [14:41:07]process_json_proto returns [14:41:07]Send response to host [14:41:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123258,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [14:41:07]free response buf [14:41:07]execute_script done [14:41:07]execute_script returns [14:41:07]free content buf [14:41:07]Sock 9.Close socket [14:41:07]Sock 9.Thread stoped [14:41:09]OFD Sender: No OFD packet to send [14:41:10]accept exits with 7 [14:41:10]New connection [14:41:10]New thread 3067395428 created [14:41:10]Thread 3067252068 joined [14:41:10]Waiting for new connection... [14:41:10] Sock 7.Parse request [14:41:10]Sock 7.Check first char [14:41:10]Sock 7.First char is OK [14:41:10]request: POST /json_proto HTTP/1.0 [14:41:10]Method: POST [14:41:10]URL: /json_proto [14:41:10]Method is POST - this is cgi request [14:41:10]url: /json_proto [14:41:10]query_string will be loaded in cgi processing [14:41:10]execute_cgi json_proto POST (null) [14:41:10]execute_cgi path=json_proto method=POST [14:41:10]POST find Content-Length [14:41:10]Host: 172.17.48.197:8080 [14:41:10]Content-Length: 740 [14:41:10]Content-Type: application/json [14:41:10] [14:41:10]POST finish read [14:41:10]Found Content-Length = 740 [14:41:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 123258, "base_FM": "0000000000874798", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106197", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 24.470, "sum" : 1700.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1700.00, "total" : 1700.00, "payments": [ { "type": 0, "sum" : 1700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:41:10]execute_script... [14:41:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 123258, "base_FM": "0000000000874798", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106197", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 24.470, "sum" : 1700.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1700.00, "total" : 1700.00, "payments": [ { "type": 0, "sum" : 1700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:41:10]POST & json_proto [14:41:10]process_json_proto [14:41:10]json parsed OK: [14:41:10]protocol is kg_v1.0 [14:41:10]action value=close_receipt [14:41:10]process_action close_receipt [14:41:10]cmd_close_receipt [14:41:10]MH_GetDate [14:41:10]Write to MH i2c: F0 00 00 15 2D 31 [14:41:10]Write i2c OK [14:41:10]MH_I2C_Read... [14:41:10]Read from MH i2c: F0 [14:41:10]MH_I2C_Read... [14:41:10]Read from MH i2c: F0 09 00 [14:41:10]MH_I2C_Read... [14:41:10]Read from MH i2c: F0 09 00 15 2D 00 0A 8C E4 65 6C AF E3 65 7C [14:41:10]GetLastDocTimeStamp 1709476865 [14:41:10]current date 1709476874 [14:41:10]FM_GetShiftState [14:41:10]SAM_PROTO_GetShiftState [14:41:10]wFMCommunicate request_size=4 [14:41:10]MH_SAM_APDU [14:41:10]CAPDU: 80 13 01 00 [14:41:10]Write to MH i2c: E2 08 00 16 2D 80 13 01 00 00 00 00 00 C0 [14:41:10]Write i2c OK [14:41:10]MH_I2C_Read... [14:41:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:10]Read from MH i2c: E2 [14:41:10]MH_I2C_Read... [14:41:10]Read from MH i2c: E2 0E 00 [14:41:10]MH_I2C_Read... [14:41:10]Read from MH i2c: E2 0E 00 16 2D 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 82 [14:41:10]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [14:41:10]wFMCommunicate OK [14:41:10]SAM_PROTO_GetShiftState done [14:41:10]FM_GetShiftState done [14:41:10]opened in 1709425579 [14:41:10]opened+sec_in_day 1709511979 [14:41:10]quantity*price = 170066 [14:41:10]sum+1 = 170068 [14:41:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.67 ИТОГО: 1700.00 НСП 1% : 15.05 НДС 12% : 180.60 Наличными: 1700.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 116 03.03.2024 14:41 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФД осн.: 123258 ФМ осн.: 0000000000874798 ФМ: 0000000000874798 ФД: 123259 ФПД: 215868313757297 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T144114&type=2&operation_type=1&fn_number=0000000000874798&fd_number=123259&fm=215868313757297&tin=02508201610067®Number=0000000000090573&sum=170000 [14:41:11]StoreToDocumentArchive [14:41:11]shift 323 fd 123259 [14:41:11]save to /storage/0323/doc_00123259 [14:41:11]save last doc name /storage/0323/doc_00123259 to /storage/kkm_last_doc_name [14:41:11]save OK [14:41:11]Clear old archive folders... [14:41:11]ProcessDocumentItem done err = 0, tmpTLVsize=279 [14:41:11]tlvbuf is 00D9E850 [14:41:11]SAM_PROTO_ClearQueue [14:41:11]wFMCommunicate request_size=4 [14:41:11]MH_SAM_APDU [14:41:11]CAPDU: 80 09 00 00 [14:41:11]Write to MH i2c: E2 08 00 25 2D 80 09 00 00 00 00 00 00 C4 [14:41:11]Write i2c OK [14:41:11]MH_I2C_Read... [14:41:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:41:11]Read from MH i2c: E2 [14:41:11]MH_I2C_Read... [14:41:11]Read from MH i2c: E2 03 00 [14:41:11]MH_I2C_Read... [14:41:11]Read from MH i2c: E2 03 00 25 2D 00 90 00 C6 [14:41:11]RAPDU: 90 00 [14:41:11]wFMCommunicate OK [14:41:11]SAM_PROTO_ClearQueue done [14:41:11]KKMCreateOFDPacket [14:41:11]OFDProtocolAddRootSTLVToBuf [14:41:11]FM_MakeSignedData [14:41:11]FM_MakeSignedData [14:41:11]SAM_PROTO_SignData [14:41:11]wFMCommunicate request_size=4 [14:41:11]MH_SAM_APDU [14:41:11]CAPDU: 80 0D 01 02 [14:41:11]Write to MH i2c: E2 08 00 26 2D 80 0D 01 02 00 00 00 00 CC [14:41:11]Write i2c OK [14:41:11]MH_I2C_Read... [14:41:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:41:11]Read from MH i2c: E2 [14:41:11]MH_I2C_Read... [14:41:11]Read from MH i2c: E2 03 00 [14:41:11]MH_I2C_Read... [14:41:11]Read from MH i2c: E2 03 00 26 2D 00 90 00 C7 [14:41:11]RAPDU: 90 00 [14:41:11]wFMCommunicate OK [14:41:11]wFMCommunicate request_size=255 [14:41:11]MH_SAM_APDU [14:41:11]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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 96 5F 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 53 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 46 00 00 00 00 07 04 06 00 10 98 02 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 0A 8C E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 27 04 04 00 7A E1 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 11 04 10 00 30 [14:41:11]Write to MH i2c: E2 02 01 27 2D 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 96 5F 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 53 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 46 00 00 00 00 07 04 06 00 10 98 02 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 0A 8C E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 27 04 04 00 7A E1 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 11 04 10 00 30 00 00 68 [14:41:12]Write i2c OK [14:41:12]MH_I2C_Read... [14:41:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:12]Read from MH i2c: E2 [14:41:12]MH_I2C_Read... [14:41:12]Read from MH i2c: E2 03 00 [14:41:12]MH_I2C_Read... [14:41:12]Read from MH i2c: E2 03 00 27 2D 00 90 00 C8 [14:41:12]RAPDU: 90 00 [14:41:12]wFMCommunicate OK [14:41:12]wFMCommunicate request_size=38 [14:41:12]MH_SAM_APDU [14:41:12]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 7B E1 01 00 35 04 06 00 C4 54 C2 28 E6 71 [14:41:12]Write to MH i2c: E2 29 00 28 2D 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 7B E1 01 00 35 04 06 00 C4 54 C2 28 E6 71 00 00 19 [14:41:12]Write i2c OK [14:41:12]MH_I2C_Read... [14:41:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:12]Read from MH i2c: E2 [14:41:12]MH_I2C_Read... [14:41:12]Read from MH i2c: E2 03 00 [14:41:12]MH_I2C_Read... [14:41:12]Read from MH i2c: E2 03 00 28 2D 00 90 00 C9 [14:41:12]RAPDU: 90 00 [14:41:12]wFMCommunicate OK [14:41:12]wFMCommunicate request_size=4 [14:41:12]MH_SAM_APDU [14:41:12]CAPDU: 80 0D 03 02 [14:41:12]Write to MH i2c: E2 08 00 29 2D 80 0D 03 02 00 00 00 00 D1 [14:41:12]Write i2c OK [14:41:12]MH_I2C_Read... [14:41:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:41:12]Read from MH i2c: E2 [14:41:12]MH_I2C_Read... [14:41:12]Read from MH i2c: E2 0B 00 [14:41:12]MH_I2C_Read... [14:41:12]Read from MH i2c: E2 0B 00 29 2D 00 B6 1E E7 00 86 51 C4 53 90 00 7B [14:41:12]RAPDU: B6 1E E7 00 86 51 C4 53 90 00 [14:41:12]wFMCommunicate OK [14:41:12]SAM_PROTO_SignData done [14:41:12]FM_MakeSignedData done [14:41:12]CreateOFDProtocolMessage [14:41:12]wFMCommunicate request_size=4 [14:41:12]MH_SAM_APDU [14:41:12]CAPDU: 80 11 00 00 [14:41:12]Write to MH i2c: E2 08 00 2A 2D 80 11 00 00 00 00 00 00 D1 [14:41:12]Write i2c OK [14:41:12]MH_I2C_Read... [14:41:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:12]Read from MH i2c: E2 [14:41:12]MH_I2C_Read... [14:41:12]Read from MH i2c: E2 17 00 [14:41:12]MH_I2C_Read... [14:41:12]Read from MH i2c: E2 17 00 2A 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 2F [14:41:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [14:41:12]wFMCommunicate OK [14:41:12]CreateOFDProtocolMessage done [14:41:12]OFDSenderStorePacket 123259 [14:41:12]StoreOFDPacket docnum=123259 [14:41:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 2B 01 00 00 AB 3C 23 01 1B CF 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 96 5F 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 53 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 46 00 00 00 00 07 04 06 00 10 98 02 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 0A 8C E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 27 04 04 00 7A E1 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 7B E1 01 00 35 04 06 00 C4 54 C2 28 E6 71 B6 1E E7 00 86 51 C4 53 [14:41:12]CheckFolder [14:41:12]dirname=/storage/ofd_packets [14:41:12]CheckFolder done [14:41:12]ProducePacketName [14:41:12]name=ofd_packets/00123259 [14:41:12]NVStorageSaveData ofd_packets/00123259 [14:41:12]File name is /storage/ofd_packets/00123259 [14:41:12]Write 329 bytes [14:41:12]NVStorageSaveData done [14:41:12]OFDSenderStorePacket done [14:41:12]KKMCreateOFDPacket done [14:41:12]NVStorageSaveData kkm_last_timestamp [14:41:12]File name is /storage/kkm_last_timestamp [14:41:12]Write 4 bytes [14:41:12]NVStorageSaveData done [14:41:12]ExternCall_PrintAddStr [14:41:12]wPrintStart [14:41:12]Write to MH i2c: 01 00 00 2B 2D 58 [14:41:12]Write i2c OK [14:41:12]MH_I2C_Read... [14:41:12]Read from MH i2c: 01 [14:41:12]MH_I2C_Read... [14:41:12]Read from MH i2c: 01 07 00 [14:41:12]MH_I2C_Read... [14:41:12]Read from MH i2c: 01 07 00 2B 2D 00 00 00 00 00 FF 0F 6D [14:41:12]RasterBufferAndPrint [14:41:12]line Счет N : (1)1106197 [14:41:12]line ИНН: 02508201610067 [14:41:12]line Контрольно-Кассовый Чек [14:41:12]line ВОЗВРАТ ПРОДАЖИ [14:41:12]line ТРК (МРК, ГНК) : 53 [14:41:12]line Товар: 2710124500 [14:41:12]line Аи-95-К-5 [14:41:12]line 24.470 * 69.50 [14:41:12]line = 1700.67 [14:41:12]line НДС 12% НСП 1% [14:41:12]line > о реализуемом товаре [14:41:12]line ОКРУГЛЕНИЕ: -0.67 [14:41:12]line ИТОГО: 1700.00 [14:41:12]line НСП 1% : 15.05 [14:41:12]line НДС 12% : 180.60 [14:41:12]line Наличными: 1700.00 [14:41:12]line Безнал.: 0.00 [14:41:12]line Место: АЗС № 25 "Партнер Нефть" [14:41:12]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [14:41:12]line СНО: Общий режим [14:41:12]line Чек 116 03.03.2024 14:41 [14:41:12]line Смена: 323 ФФД: 1.0 [14:41:12]line ЗНМ: 0300000019 [14:41:12]line РНМ: 0000000000090573 [14:41:12]line Версия ККМ: 001 [14:41:12]line ФД осн.: 123258 [14:41:12]line ФМ осн.: 0000000000874798 [14:41:12]line ФМ: 0000000000874798 [14:41:12]line ФД: 123259 [14:41:12]line ФПД: 215868313757297 [14:41:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T144114&type=2&operation_type=1&fn_number=0000000000874798&fd_number=123259&fm=215868313757297&tin=02508201610067®Number=0000000000090573&sum=170000 [14:41:12]written 0, free lines is 4095 [14:41:12]OFD Sender: Processing packet 123259 [packets to send 112, broken 111] [14:41:12]ProducePacketName [14:41:12]name=ofd_packets/00123259 [14:41:12]OFD Sender: To server: pG, [14:41:12]CommunicateWithHost lk.salyk.kg:30040 [14:41:12]ConnectInit lk.salyk.kg [14:41:12]Connected sock=10 [14: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 37 39 38 2B 01 00 00 AB 3C 23 01 1B CF 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 96 5F 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 53 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 46 00 00 00 00 07 04 06 00 10 98 02 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 0A 8C E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 27 04 04 00 7A E1 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 7B E1 01 00 35 04 06 00 C4 54 C2 28 E6 71 B6 1E E7 00 86 51 C4 53 [14: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 37 39 38 4F 00 00 00 9B 0C 47 00 82 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 37 39 38 10 04 04 00 7B E1 01 00 F4 03 04 00 35 38 E4 65 B6 04 01 00 00 06 D8 39 19 5A 95 00 42 [14:41:12]CommunicateWithHost err = 0 [14:41:12]CheckOFDResponse [14:41:12]1017 (14) - 77093643461234 [14:41:12]1041 (16) - 0000000000874798 [14:41:12]1040 (4) - 123259 [14:41:12]1012 (4) - 03.03.2024 08:43 [14:41:12]1206 (1) - 0 [14:41:12]OFD Sender: Remove packet 123259 [14:41:12]ProducePacketName [14:41:12]name=ofd_packets/00123259 [14:41:12]NVStorageDeleteData [14:41:12]Write to MH i2c: 01 00 00 56 2D 83 [14:41:12]Write i2c OK [14:41:12]MH_I2C_Read... [14:41:12]Read from MH i2c: 01 [14:41:12]MH_I2C_Read... [14:41:12]Read from MH i2c: 01 07 00 [14:41:12]MH_I2C_Read... [14:41:12]Read from MH i2c: 01 07 00 56 2D 00 00 00 00 00 02 0D 99 [14:41:12]RasterBufferAndPrint [14:41:12]line [14:41:12]line [14:41:12]line [14:41:12]line [14:41:12]line [14:41:12]written 0, free lines is 3338 [14:41:12]MH_Cut [14:41:12]Write to MH i2c: D1 01 00 5D 2D 01 5C [14:41:12]Write i2c OK [14:41:12]MH_I2C_Read... [14:41:12]Read from MH i2c: D1 [14:41:12]MH_I2C_Read... [14:41:12]Read from MH i2c: D1 01 00 [14:41:12]MH_I2C_Read... [14:41:12]Read from MH i2c: D1 01 00 5D 2D 00 5B [14:41:12]Write to MH i2c: 01 00 00 5E 2D 8B [14:41:12]Write i2c OK [14:41:12]MH_I2C_Read... [14:41:13]OFD Sender: No OFD packet to send [14:41:13]*** Cut start [14:41:13]*** Purtial cut [14:41:13]*** Stage 1: CUTSNS_PIN = 1 [14:41:15]Read from MH i2c: 01 [14:41:15]MH_I2C_Read... [14:41:15]*** Stop cut motor [14:41:15]*** Cut end [14:41:15]Read from MH i2c: 01 07 00 [14:41:15]MH_I2C_Read... [14:41:15]Read from MH i2c: 01 07 00 5E 2D 00 00 00 00 00 FF 0F A0 [14:41:15]process_action close_receipt done [14:41:15]requested_data is exist [14:41:15]produce_requested_data [14:41:15]requested_item fm.sn is exist - process it [14:41:15]wFMCommunicate request_size=4 [14:41:15]MH_SAM_APDU [14:41:15]CAPDU: 80 11 00 00 [14:41:15]Write to MH i2c: E2 08 00 5F 2D 80 11 00 00 00 00 00 00 06 [14:41:15]Write i2c OK [14:41:15]MH_I2C_Read... [14:41:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:15]Read from MH i2c: E2 [14:41:15]MH_I2C_Read... [14:41:15]Read from MH i2c: E2 17 00 [14:41:15]MH_I2C_Read... [14:41:15]Read from MH i2c: E2 17 00 5F 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 64 [14:41:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [14:41:15]wFMCommunicate OK [14:41:15]requested_item fd.num is exist - process it [14:41:15]SAM_PROTO_GetFieldsCounters [14:41:15]wFMCommunicate request_size=4 [14:41:15]MH_SAM_APDU [14:41:15]CAPDU: 80 13 00 00 [14:41:15]Write to MH i2c: E2 08 00 60 2D 80 13 00 00 00 00 00 00 09 [14:41:15]Write i2c OK [14:41:15]MH_I2C_Read... [14:41:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:41:15]Read from MH i2c: E2 [14:41:15]MH_I2C_Read... [14:41:15]Read from MH i2c: E2 62 00 [14:41:15]MH_I2C_Read... [14:41:15]Read from MH i2c: E2 62 00 60 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 7B E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 31 [14:41: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 7B E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:41:15]wFMCommunicate OK [14:41:15]SAM_PROTO_GetFieldsCounters done [14:41:15]requested_item shift.num is exist - process it [14:41:15]requested_item shift.opened is exist - process it [14:41:15]req_shift_opened [14:41:15]FM_GetShiftState [14:41:15]SAM_PROTO_GetShiftState [14:41:15]wFMCommunicate request_size=4 [14:41:15]MH_SAM_APDU [14:41:15]CAPDU: 80 13 01 00 [14:41:15]Write to MH i2c: E2 08 00 61 2D 80 13 01 00 00 00 00 00 0B [14:41:15]Write i2c OK [14:41:15]MH_I2C_Read... [14:41:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:15]Read from MH i2c: E2 [14:41:15]MH_I2C_Read... [14:41:15]Read from MH i2c: E2 0E 00 [14:41:15]MH_I2C_Read... [14:41:15]Read from MH i2c: E2 0E 00 61 2D 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 CD [14:41:15]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [14:41:15]wFMCommunicate OK [14:41:15]SAM_PROTO_GetShiftState done [14:41:15]FM_GetShiftState done [14:41:15]req_shift_opened done [14:41:15]requested_item shift.open_date is exist - process it [14:41:15]req_shift_open_date [14:41:15]req_shift_open_date done [14:41:15]produce_requested_data done [14:41:15]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123259,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [14:41:15]process_action_free close_receipt [14:41:15]json_value_free [14:41:15]json_value_free done [14:41:15]process_json_proto returns [14:41:15]Send response to host [14:41:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123259,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [14:41:15]free response buf [14:41:15]execute_script done [14:41:15]execute_script returns [14:41:15]free content buf [14:41:15]Sock 7.Close socket [14:41:15]Sock 7.Thread stoped [14:41:18]accept exits with 9 [14:41:18]New connection [14:41:18]New thread 3067252068 created [14:41:18]Thread 3067395428 joined [14:41:18]Waiting for new connection... [14:41:18] Sock 9.Parse request [14:41:18]Sock 9.Check first char [14:41:18]Sock 9.First char is OK [14:41:18]request: POST /json_proto HTTP/1.0 [14:41:18]Method: POST [14:41:18]URL: /json_proto [14:41:18]Method is POST - this is cgi request [14:41:18]url: /json_proto [14:41:18]query_string will be loaded in cgi processing [14:41:18]execute_cgi json_proto POST (null) [14:41:18]execute_cgi path=json_proto method=POST [14:41:18]POST find Content-Length [14:41:18]Host: 172.17.48.197:8080 [14:41:18]Content-Length: 806 [14:41:18]Content-Type: application/json [14:41:18] [14:41:18]POST finish read [14:41:18]Found Content-Length = 806 [14:41:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106195", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 5.500, "sum" : 340.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 340.45 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:41:18]execute_script... [14: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 : (1)1106195", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 5.500, "sum" : 340.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 340.45 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:41:18]POST & json_proto [14:41:18]process_json_proto [14:41:18]json parsed OK: [14:41:18]protocol is kg_v1.0 [14:41:18]action value=close_receipt [14:41:18]process_action close_receipt [14:41:18]cmd_close_receipt [14:41:18]MH_GetDate [14:41:18]Write to MH i2c: F0 00 00 62 2D 7E [14:41:18]Write i2c OK [14:41:18]MH_I2C_Read... [14:41:18]Read from MH i2c: F0 [14:41:18]MH_I2C_Read... [14:41:18]Read from MH i2c: F0 09 00 [14:41:18]MH_I2C_Read... [14:41:18]Read from MH i2c: F0 09 00 62 2D 00 11 8C E4 65 6C AF E3 65 D0 [14:41:18]GetLastDocTimeStamp 1709476874 [14:41:18]current date 1709476881 [14:41:18]FM_GetShiftState [14:41:18]SAM_PROTO_GetShiftState [14:41:18]wFMCommunicate request_size=4 [14:41:18]MH_SAM_APDU [14:41:18]CAPDU: 80 13 01 00 [14:41:18]Write to MH i2c: E2 08 00 63 2D 80 13 01 00 00 00 00 00 0D [14:41:18]Write i2c OK [14:41:18]MH_I2C_Read... [14:41:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:18]Read from MH i2c: E2 [14:41:18]MH_I2C_Read... [14:41:18]Read from MH i2c: E2 0E 00 [14:41:18]MH_I2C_Read... [14:41:18]Read from MH i2c: E2 0E 00 63 2D 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 CF [14:41:18]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [14:41:18]wFMCommunicate OK [14:41:18]SAM_PROTO_GetShiftState done [14:41:18]FM_GetShiftState done [14:41:18]opened in 1709425579 [14:41:18]opened+sec_in_day 1709511979 [14:41:18]quantity*price = 34045 [14:41:18]sum+1 = 34046 [14:41:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 340.45 НСП 1% : 3.01 НДС 12% : 36.15 Наличными: 0.00 Безнал.: 340.45 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 117 03.03.2024 14:41 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874798 ФД: 123260 ФПД: 121176409627278 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T144121&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123260&fm=121176409627278&tin=02508201610067®Number=0000000000090573&sum=34045 [14:41:19]StoreToDocumentArchive [14:41:19]shift 323 fd 123260 [14:41:19]save to /storage/0323/doc_00123260 [14:41:19]save last doc name /storage/0323/doc_00123260 to /storage/kkm_last_doc_name [14:41:19]save OK [14:41:19]Clear old archive folders... [14:41:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:41:19]tlvbuf is 00EBA490 [14:41:19]SAM_PROTO_ClearQueue [14:41:19]wFMCommunicate request_size=4 [14:41:19]MH_SAM_APDU [14:41:19]CAPDU: 80 09 00 00 [14:41:19]Write to MH i2c: E2 08 00 70 2D 80 09 00 00 00 00 00 00 0F [14:41:19]Write i2c OK [14:41:19]MH_I2C_Read... [14:41:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:41:19]Read from MH i2c: E2 [14:41:19]MH_I2C_Read... [14:41:19]Read from MH i2c: E2 03 00 [14:41:19]MH_I2C_Read... [14:41:19]Read from MH i2c: E2 03 00 70 2D 00 90 00 11 [14:41:19]RAPDU: 90 00 [14:41:19]wFMCommunicate OK [14:41:19]SAM_PROTO_ClearQueue done [14:41:19]KKMCreateOFDPacket [14:41:19]OFDProtocolAddRootSTLVToBuf [14:41:19]FM_MakeSignedData [14:41:19]FM_MakeSignedData [14:41:19]SAM_PROTO_SignData [14:41:19]wFMCommunicate request_size=4 [14:41:19]MH_SAM_APDU [14:41:19]CAPDU: 80 0D 01 02 [14:41:19]Write to MH i2c: E2 08 00 71 2D 80 0D 01 02 00 00 00 00 17 [14:41:19]Write i2c OK [14:41:19]MH_I2C_Read... [14:41:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:41:19]Read from MH i2c: E2 [14:41:19]MH_I2C_Read... [14:41:19]Read from MH i2c: E2 03 00 [14:41:19]MH_I2C_Read... [14:41:19]Read from MH i2c: E2 03 00 71 2D 00 90 00 12 [14:41:19]RAPDU: 90 00 [14:41:19]wFMCommunicate OK [14:41:19]wFMCommunicate request_size=255 [14:41:19]MH_SAM_APDU [14:41:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 15 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 FD 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FD 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FD 84 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 11 8C E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 7C E1 01 00 35 04 06 00 6E [14:41:19]Write to MH i2c: E2 02 01 72 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 15 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 FD 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FD 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FD 84 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 11 8C E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 7C E1 01 00 35 04 06 00 6E 00 00 4B [14:41:19]Write i2c OK [14:41:19]MH_I2C_Read... [14:41:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:19]Read from MH i2c: E2 [14:41:19]MH_I2C_Read... [14:41:19]Read from MH i2c: E2 03 00 [14:41:19]MH_I2C_Read... [14:41:19]Read from MH i2c: E2 03 00 72 2D 00 90 00 13 [14:41:19]RAPDU: 90 00 [14:41:19]wFMCommunicate OK [14:41:19]wFMCommunicate request_size=10 [14:41:19]MH_SAM_APDU [14:41:19]CAPDU: 80 0D 02 02 05 35 94 D9 DA 8E [14:41:19]Write to MH i2c: E2 0D 00 73 2D 80 0D 02 02 05 00 35 94 D9 DA 8E 00 00 2E [14:41:19]Write i2c OK [14:41:19]MH_I2C_Read... [14:41:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:19]Read from MH i2c: E2 [14:41:19]MH_I2C_Read... [14:41:19]Read from MH i2c: E2 03 00 [14:41:19]MH_I2C_Read... [14:41:19]Read from MH i2c: E2 03 00 73 2D 00 90 00 14 [14:41:19]RAPDU: 90 00 [14:41:19]wFMCommunicate OK [14:41:19]wFMCommunicate request_size=4 [14:41:19]MH_SAM_APDU [14:41:19]CAPDU: 80 0D 03 02 [14:41:19]Write to MH i2c: E2 08 00 74 2D 80 0D 03 02 00 00 00 00 1C [14:41:19]Write i2c OK [14:41:19]MH_I2C_Read... [14:41:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:41:19]Read from MH i2c: E2 [14:41:19]MH_I2C_Read... [14:41:19]Read from MH i2c: E2 0B 00 [14:41:19]MH_I2C_Read... [14:41:19]Read from MH i2c: E2 0B 00 74 2D 00 25 13 04 F9 8D A0 2B A9 90 00 53 [14:41:19]RAPDU: 25 13 04 F9 8D A0 2B A9 90 00 [14:41:19]wFMCommunicate OK [14:41:19]SAM_PROTO_SignData done [14:41:20]FM_MakeSignedData done [14:41:20]CreateOFDProtocolMessage [14:41:20]wFMCommunicate request_size=4 [14:41:20]MH_SAM_APDU [14:41:20]CAPDU: 80 11 00 00 [14:41:20]Write to MH i2c: E2 08 00 75 2D 80 11 00 00 00 00 00 00 1C [14:41:20]Write i2c OK [14:41:20]MH_I2C_Read... [14:41:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:20]Read from MH i2c: E2 [14:41:20]MH_I2C_Read... [14:41:20]Read from MH i2c: E2 17 00 [14:41:20]MH_I2C_Read... [14:41:20]Read from MH i2c: E2 17 00 75 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 7A [14:41:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [14:41:20]wFMCommunicate OK [14:41:20]CreateOFDProtocolMessage done [14:41:20]OFDSenderStorePacket 123260 [14:41:20]StoreOFDPacket docnum=123260 [14:41:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 E1 80 07 01 ED F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 15 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 FD 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FD 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FD 84 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 11 8C E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 7C E1 01 00 35 04 06 00 6E 35 94 D9 DA 8E 25 13 04 F9 8D A0 2B A9 [14:41:20]CheckFolder [14:41:20]dirname=/storage/ofd_packets [14:41:20]CheckFolder done [14:41:20]ProducePacketName [14:41:20]name=ofd_packets/00123260 [14:41:20]NVStorageSaveData ofd_packets/00123260 [14:41:20]File name is /storage/ofd_packets/00123260 [14:41:20]Write 301 bytes [14:41:20]NVStorageSaveData done [14:41:20]OFDSenderStorePacket done [14:41:20]KKMCreateOFDPacket done [14:41:20]NVStorageSaveData kkm_last_timestamp [14:41:20]File name is /storage/kkm_last_timestamp [14:41:20]Write 4 bytes [14:41:20]NVStorageSaveData done [14:41:20]ExternCall_PrintAddStr [14:41:20]wPrintStart [14:41:20]Write to MH i2c: 01 00 00 76 2D A3 [14:41:20]Write i2c OK [14:41:20]MH_I2C_Read... [14:41:20]OFD Sender: Processing packet 123260 [packets to send 112, broken 111] [14:41:20]ProducePacketName [14:41:20]name=ofd_packets/00123260 [14:41:20]OFD Sender: To server: pG, [14:41:20]CommunicateWithHost lk.salyk.kg:30040 [14:41:20]ConnectInit lk.salyk.kg [14:41:20]Read from MH i2c: 01 [14:41:20]MH_I2C_Read... [14:41:20]Read from MH i2c: 01 07 00 [14:41:20]MH_I2C_Read... [14:41:20]Read from MH i2c: 01 07 00 76 2D 00 00 00 00 00 FF 0F B8 [14:41:20]RasterBufferAndPrint [14:41:20]line Счет N : (1)1106195 [14:41:20]line ИНН: 02508201610067 [14:41:20]line Контрольно-Кассовый Чек [14:41:20]line ПРОДАЖА [14:41:20]line ТРК (МРК, ГНК) : 32 [14:41:20]line Товар: 2710124130 [14:41:20]line Аи-92-К-5 [14:41:20]line 5.500 * 61.90 [14:41:20]line = 340.45 [14:41:20]line НДС 12% НСП 1% [14:41:20]line > о реализуемом товаре [14:41:20]line ИТОГО: 340.45 [14:41:20]line НСП 1% : 3.01 [14:41:20]line НДС 12% : 36.15 [14:41:20]line Наличными: 0.00 [14:41:20]line Безнал.: 340.45 [14:41:20]line Место: АЗС № 25 "Партнер Нефть" [14:41:20]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [14:41:20]line СНО: Общий режим [14:41:20]line Чек 117 03.03.2024 14:41 [14:41:20]line Смена: 323 ФФД: 1.0 [14:41:20]line ЗНМ: 0300000019 [14:41:20]line РНМ: 0000000000090573 [14:41:20]line Версия ККМ: 001 [14:41:20]line Платежная система: О! деньги [14:41:20]line ФМ: 0000000000874798 [14:41:20]line ФД: 123260 [14:41:20]line ФПД: 121176409627278 [14:41:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T144121&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123260&fm=121176409627278&tin=02508201610067®Number=0000000000090573&sum=34045 [14:41:20]written 0, free lines is 4095 [14:41:20]Connected sock=10 [14: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 37 39 38 0F 01 00 00 E1 80 07 01 ED F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 15 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 FD 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FD 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FD 84 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 11 8C E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 7C E1 01 00 35 04 06 00 6E 35 94 D9 DA 8E 25 13 04 F9 8D A0 2B A9 [14: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 37 39 38 4F 00 00 00 3A 04 47 00 35 D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 7C E1 01 00 F4 03 04 00 3D 38 E4 65 B6 04 01 00 00 53 74 F5 44 E6 F5 EE 95 [14:41:20]CommunicateWithHost err = 0 [14:41:20]CheckOFDResponse [14:41:20]1017 (14) - 77093643461234 [14:41:20]1041 (16) - 0000000000874798 [14:41:20]1040 (4) - 123260 [14:41:20]1012 (4) - 03.03.2024 08:43 [14:41:20]1206 (1) - 0 [14:41:20]OFD Sender: Remove packet 123260 [14:41:20]ProducePacketName [14:41:20]name=ofd_packets/00123260 [14:41:20]NVStorageDeleteData [14:41:20]Write to MH i2c: 01 00 00 A0 2D CD [14:41:20]Write i2c OK [14:41:20]MH_I2C_Read... [14:41:20]Read from MH i2c: 01 [14:41:20]MH_I2C_Read... [14:41:20]Read from MH i2c: 01 07 00 [14:41:20]MH_I2C_Read... [14:41:20]Read from MH i2c: 01 07 00 A0 2D 00 00 00 00 00 01 0D E2 [14:41:20]RasterBufferAndPrint [14:41:20]line [14:41:20]line [14:41:20]line [14:41:20]line [14:41:20]line [14:41:20]written 0, free lines is 3349 [14:41:20]MH_Cut [14:41:20]Write to MH i2c: D1 01 00 A7 2D 01 A6 [14:41:20]Write i2c OK [14:41:20]MH_I2C_Read... [14:41:20]Read from MH i2c: D1 [14:41:20]MH_I2C_Read... [14:41:20]Read from MH i2c: D1 01 00 [14:41:20]MH_I2C_Read... [14:41:20]Read from MH i2c: D1 01 00 A7 2D 00 A5 [14:41:20]Write to MH i2c: 01 00 00 A8 2D D5 [14:41:20]Write i2c OK [14:41:20]MH_I2C_Read... [14:41:20]OFD Sender: No OFD packet to send [14:41:21]*** Cut start [14:41:21]*** Purtial cut [14:41:21]*** Stage 1: CUTSNS_PIN = 1 [14:41:23]Read from MH i2c: 01 [14:41:23]MH_I2C_Read... [14:41:23]*** Stop cut motor [14:41:23]*** Cut end [14:41:23]Read from MH i2c: 01 07 00 [14:41:23]MH_I2C_Read... [14:41:23]Read from MH i2c: 01 07 00 A8 2D 00 00 00 00 00 FF 0F EA [14:41:23]process_action close_receipt done [14:41:23]requested_data is exist [14:41:23]produce_requested_data [14:41:23]requested_item fm.sn is exist - process it [14:41:23]wFMCommunicate request_size=4 [14:41:23]MH_SAM_APDU [14:41:23]CAPDU: 80 11 00 00 [14:41:23]Write to MH i2c: E2 08 00 A9 2D 80 11 00 00 00 00 00 00 50 [14:41:23]Write i2c OK [14:41:23]MH_I2C_Read... [14:41:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:23]Read from MH i2c: E2 [14:41:23]MH_I2C_Read... [14:41:23]Read from MH i2c: E2 17 00 [14:41:23]MH_I2C_Read... [14:41:23]Read from MH i2c: E2 17 00 A9 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 AE [14:41:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [14:41:23]wFMCommunicate OK [14:41:23]requested_item fd.num is exist - process it [14:41:23]SAM_PROTO_GetFieldsCounters [14:41:23]wFMCommunicate request_size=4 [14:41:23]MH_SAM_APDU [14:41:23]CAPDU: 80 13 00 00 [14:41:23]Write to MH i2c: E2 08 00 AA 2D 80 13 00 00 00 00 00 00 53 [14:41:23]Write i2c OK [14:41:23]MH_I2C_Read... [14:41:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:41:23]Read from MH i2c: E2 [14:41:23]MH_I2C_Read... [14:41:23]Read from MH i2c: E2 62 00 [14:41:23]MH_I2C_Read... [14:41:23]Read from MH i2c: E2 62 00 AA 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 7C E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 7F [14:41: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 7C E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:41:23]wFMCommunicate OK [14:41:23]SAM_PROTO_GetFieldsCounters done [14:41:23]requested_item shift.num is exist - process it [14:41:23]requested_item shift.opened is exist - process it [14:41:23]req_shift_opened [14:41:23]FM_GetShiftState [14:41:23]SAM_PROTO_GetShiftState [14:41:23]wFMCommunicate request_size=4 [14:41:23]MH_SAM_APDU [14:41:23]CAPDU: 80 13 01 00 [14:41:23]Write to MH i2c: E2 08 00 AB 2D 80 13 01 00 00 00 00 00 55 [14:41:23]Write i2c OK [14:41:23]MH_I2C_Read... [14:41:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:23]Read from MH i2c: E2 [14:41:23]MH_I2C_Read... [14:41:23]Read from MH i2c: E2 0E 00 [14:41:23]MH_I2C_Read... [14:41:23]Read from MH i2c: E2 0E 00 AB 2D 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 17 [14:41:23]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [14:41:23]wFMCommunicate OK [14:41:23]SAM_PROTO_GetShiftState done [14:41:23]FM_GetShiftState done [14:41:23]req_shift_opened done [14:41:23]requested_item shift.open_date is exist - process it [14:41:23]req_shift_open_date [14:41:23]req_shift_open_date done [14:41:23]produce_requested_data done [14:41:23]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123260,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [14:41:23]process_action_free close_receipt [14:41:23]json_value_free [14:41:23]json_value_free done [14:41:23]process_json_proto returns [14:41:23]Send response to host [14:41:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123260,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [14:41:23]free response buf [14:41:23]execute_script done [14:41:23]execute_script returns [14:41:23]free content buf [14:41:23]Sock 9.Close socket [14:41:23]Sock 9.Thread stoped [14:41:25]OFD Sender: No OFD packet to send [14:41:30]OFD Sender: No OFD packet to send [14:41:35]OFD Sender: No OFD packet to send [14:41:40]OFD Sender: No OFD packet to send [14:41:45]OFD Sender: No OFD packet to send [14:41:51]OFD Sender: No OFD packet to send [14:41:56]OFD Sender: No OFD packet to send [14:42:01]OFD Sender: No OFD packet to send [14:42:06]OFD Sender: No OFD packet to send [14:42:11]OFD Sender: No OFD packet to send [14:42:16]OFD Sender: No OFD packet to send [14:42:21]OFD Sender: No OFD packet to send [14:42:26]OFD Sender: No OFD packet to send [14:42:31]OFD Sender: No OFD packet to send [14:42:36]OFD Sender: No OFD packet to send [14:42:41]OFD Sender: No OFD packet to send [14:42:43]accept exits with 7 [14:42:43]New connection [14:42:43]New thread 3067395428 created [14:42:43]Thread 3067252068 joined [14:42:43]Waiting for new connection... [14:42:43] Sock 7.Parse request [14:42:43]Sock 7.Check first char [14:42:43]Sock 7.First char is OK [14:42:43]request: POST /json_proto HTTP/1.0 [14:42:43]Method: POST [14:42:43]URL: /json_proto [14:42:43]Method is POST - this is cgi request [14:42:43]url: /json_proto [14:42:43]query_string will be loaded in cgi processing [14:42:43]execute_cgi json_proto POST (null) [14:42:43]execute_cgi path=json_proto method=POST [14:42:43]POST find Content-Length [14:42:43]Host: 172.17.48.197:8080 [14:42:43]Content-Length: 820 [14:42:43]Content-Type: application/json [14:42:43] [14:42:43]POST finish read [14:42:43]Found Content-Length = 820 [14:42:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106196", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 24.470, "sum" : 1700.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 1700.67 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:42:43]execute_script... [14:42: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)1106196", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 24.470, "sum" : 1700.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 1700.67 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:42:43]POST & json_proto [14:42:43]process_json_proto [14:42:43]json parsed OK: [14:42:43]protocol is kg_v1.0 [14:42:43]action value=close_receipt [14:42:43]process_action close_receipt [14:42:43]cmd_close_receipt [14:42:43]MH_GetDate [14:42:43]Write to MH i2c: F0 00 00 AC 2D C8 [14:42:43]Write i2c OK [14:42:43]MH_I2C_Read... [14:42:43]Read from MH i2c: F0 [14:42:43]MH_I2C_Read... [14:42:43]Read from MH i2c: F0 09 00 [14:42:43]MH_I2C_Read... [14:42:43]Read from MH i2c: F0 09 00 AC 2D 00 67 8C E4 65 6C AF E3 65 70 [14:42:43]GetLastDocTimeStamp 1709476881 [14:42:43]current date 1709476967 [14:42:43]FM_GetShiftState [14:42:43]SAM_PROTO_GetShiftState [14:42:43]wFMCommunicate request_size=4 [14:42:43]MH_SAM_APDU [14:42:43]CAPDU: 80 13 01 00 [14:42:43]Write to MH i2c: E2 08 00 AD 2D 80 13 01 00 00 00 00 00 57 [14:42:43]Write i2c OK [14:42:43]MH_I2C_Read... [14:42:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:43]Read from MH i2c: E2 [14:42:43]MH_I2C_Read... [14:42:43]Read from MH i2c: E2 0E 00 [14:42:43]MH_I2C_Read... [14:42:43]Read from MH i2c: E2 0E 00 AD 2D 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 19 [14:42:43]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [14:42:43]wFMCommunicate OK [14:42:43]SAM_PROTO_GetShiftState done [14:42:43]FM_GetShiftState done [14:42:43]opened in 1709425579 [14:42:43]opened+sec_in_day 1709511979 [14:42:43]quantity*price = 170066 [14:42:43]sum+1 = 170068 [14:42:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1700.67 НСП 1% : 15.05 НДС 12% : 180.60 Наличными: 0.00 Безнал.: 1700.67 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 118 03.03.2024 14:42 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874798 ФД: 123261 ФПД: 206381916699455 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T144247&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123261&fm=206381916699455&tin=02508201610067®Number=0000000000090573&sum=170067 [14:42:44]StoreToDocumentArchive [14:42:44]shift 323 fd 123261 [14:42:44]save to /storage/0323/doc_00123261 [14:42:44]save last doc name /storage/0323/doc_00123261 to /storage/kkm_last_doc_name [14:42:44]save OK [14:42:44]Clear old archive folders... [14:42:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:42:45]tlvbuf is 00DA8DE0 [14:42:45]SAM_PROTO_ClearQueue [14:42:45]wFMCommunicate request_size=4 [14:42:45]MH_SAM_APDU [14:42:45]CAPDU: 80 09 00 00 [14:42:45]Write to MH i2c: E2 08 00 BA 2D 80 09 00 00 00 00 00 00 59 [14:42:45]Write i2c OK [14:42:45]MH_I2C_Read... [14:42:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:42:45]Read from MH i2c: E2 [14:42:45]MH_I2C_Read... [14:42:45]Read from MH i2c: E2 03 00 [14:42:45]MH_I2C_Read... [14:42:45]Read from MH i2c: E2 03 00 BA 2D 00 90 00 5B [14:42:45]RAPDU: 90 00 [14:42:45]wFMCommunicate OK [14:42:45]SAM_PROTO_ClearQueue done [14:42:45]KKMCreateOFDPacket [14:42:45]OFDProtocolAddRootSTLVToBuf [14:42:45]FM_MakeSignedData [14:42:45]FM_MakeSignedData [14:42:45]SAM_PROTO_SignData [14:42:45]wFMCommunicate request_size=4 [14:42:45]MH_SAM_APDU [14:42:45]CAPDU: 80 0D 01 02 [14:42:45]Write to MH i2c: E2 08 00 BB 2D 80 0D 01 02 00 00 00 00 61 [14:42:45]Write i2c OK [14:42:45]MH_I2C_Read... [14:42:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:42:45]Read from MH i2c: E2 [14:42:45]MH_I2C_Read... [14:42:45]Read from MH i2c: E2 03 00 [14:42:45]MH_I2C_Read... [14:42:45]Read from MH i2c: E2 03 00 BB 2D 00 90 00 5C [14:42:45]RAPDU: 90 00 [14:42:45]wFMCommunicate OK [14:42:45]wFMCommunicate request_size=255 [14:42:45]MH_SAM_APDU [14:42: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 35 FF 03 08 00 03 96 5F 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 53 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 53 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 46 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 53 98 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 67 8C E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 7D E1 01 00 35 04 06 00 BB [14:42:45]Write to MH i2c: E2 02 01 BC 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 96 5F 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 53 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 53 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 46 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 53 98 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 67 8C E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 7D E1 01 00 35 04 06 00 BB 00 00 3E [14:42:45]Write i2c OK [14:42:45]MH_I2C_Read... [14:42:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:45]Read from MH i2c: E2 [14:42:45]MH_I2C_Read... [14:42:45]Read from MH i2c: E2 03 00 [14:42:45]MH_I2C_Read... [14:42:45]Read from MH i2c: E2 03 00 BC 2D 00 90 00 5D [14:42:45]RAPDU: 90 00 [14:42:45]wFMCommunicate OK [14:42:45]wFMCommunicate request_size=10 [14:42:45]MH_SAM_APDU [14:42:45]CAPDU: 80 0D 02 02 05 B4 08 D5 3B 3F [14:42:45]Write to MH i2c: E2 0D 00 BD 2D 80 0D 02 02 05 00 B4 08 D5 3B 3F 00 00 79 [14:42:45]Write i2c OK [14:42:45]MH_I2C_Read... [14:42:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:45]Read from MH i2c: E2 [14:42:45]MH_I2C_Read... [14:42:45]Read from MH i2c: E2 03 00 [14:42:45]MH_I2C_Read... [14:42:45]Read from MH i2c: E2 03 00 BD 2D 00 90 00 5E [14:42:45]RAPDU: 90 00 [14:42:45]wFMCommunicate OK [14:42:45]wFMCommunicate request_size=4 [14:42:45]MH_SAM_APDU [14:42:45]CAPDU: 80 0D 03 02 [14:42:45]Write to MH i2c: E2 08 00 BE 2D 80 0D 03 02 00 00 00 00 66 [14:42:45]Write i2c OK [14:42:45]MH_I2C_Read... [14:42:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:42:45]Read from MH i2c: E2 [14:42:45]MH_I2C_Read... [14:42:45]Read from MH i2c: E2 0B 00 [14:42:45]MH_I2C_Read... [14:42:45]Read from MH i2c: E2 0B 00 BE 2D 00 05 20 39 7A 22 4E 3D 6D 90 00 59 [14:42:45]RAPDU: 05 20 39 7A 22 4E 3D 6D 90 00 [14:42:45]wFMCommunicate OK [14:42:45]SAM_PROTO_SignData done [14:42:45]FM_MakeSignedData done [14:42:45]CreateOFDProtocolMessage [14:42:45]wFMCommunicate request_size=4 [14:42:45]MH_SAM_APDU [14:42:45]CAPDU: 80 11 00 00 [14:42:45]Write to MH i2c: E2 08 00 BF 2D 80 11 00 00 00 00 00 00 66 [14:42:45]Write i2c OK [14:42:45]MH_I2C_Read... [14:42:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:45]Read from MH i2c: E2 [14:42:45]MH_I2C_Read... [14:42:45]Read from MH i2c: E2 17 00 [14:42:45]MH_I2C_Read... [14:42:45]Read from MH i2c: E2 17 00 BF 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 C4 [14:42:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [14:42:45]wFMCommunicate OK [14:42:45]CreateOFDProtocolMessage done [14:42:45]OFDSenderStorePacket 123261 [14:42:45]StoreOFDPacket docnum=123261 [14:42:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 BE F2 07 01 0F FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 96 5F 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 53 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 53 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 46 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 53 98 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 67 8C E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 7D E1 01 00 35 04 06 00 BB B4 08 D5 3B 3F 05 20 39 7A 22 4E 3D 6D [14:42:45]CheckFolder [14:42:45]dirname=/storage/ofd_packets [14:42:45]CheckFolder done [14:42:45]ProducePacketName [14:42:45]name=ofd_packets/00123261 [14:42:45]NVStorageSaveData ofd_packets/00123261 [14:42:45]File name is /storage/ofd_packets/00123261 [14:42:45]Write 301 bytes [14:42:45]NVStorageSaveData done [14:42:45]OFDSenderStorePacket done [14:42:45]KKMCreateOFDPacket done [14:42:45]NVStorageSaveData kkm_last_timestamp [14:42:45]File name is /storage/kkm_last_timestamp [14:42:45]Write 4 bytes [14:42:45]NVStorageSaveData done [14:42:45]ExternCall_PrintAddStr [14:42:45]wPrintStart [14:42:45]Write to MH i2c: 01 00 00 C0 2D ED [14:42:45]Write i2c OK [14:42:45]MH_I2C_Read... [14:42:45]Read from MH i2c: 01 [14:42:45]MH_I2C_Read... [14:42:45]Read from MH i2c: 01 07 00 [14:42:45]MH_I2C_Read... [14:42:45]Read from MH i2c: 01 07 00 C0 2D 00 00 00 00 00 FF 0F 02 [14:42:45]RasterBufferAndPrint [14:42:45]line Счет N : (1)1106196 [14:42:45]line ИНН: 02508201610067 [14:42:45]line Контрольно-Кассовый Чек [14:42:45]line ПРОДАЖА [14:42:45]line ТРК (МРК, ГНК) : 63 [14:42:45]line Товар: 2710124500 [14:42:45]line Аи-95-К-5 [14:42:45]line 24.470 * 69.50 [14:42:45]line = 1700.67 [14:42:45]line НДС 12% НСП 1% [14:42:45]line > о реализуемом товаре [14:42:45]line ИТОГО: 1700.67 [14:42:45]line НСП 1% : 15.05 [14:42:45]line НДС 12% : 180.60 [14:42:45]line Наличными: 0.00 [14:42:45]line Безнал.: 1700.67 [14:42:45]line Место: АЗС № 25 "Партнер Нефть" [14:42:45]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [14:42:45]line СНО: Общий режим [14:42:45]line Чек 118 03.03.2024 14:42 [14:42:45]line Смена: 323 ФФД: 1.0 [14:42:45]line ЗНМ: 0300000019 [14:42:45]line РНМ: 0000000000090573 [14:42:45]line Версия ККМ: 001 [14:42:45]line Платежная система: Бакай Банк [14:42:45]line ФМ: 0000000000874798 [14:42:45]line ФД: 123261 [14:42:45]line ФПД: 206381916699455 [14:42:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T144247&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123261&fm=206381916699455&tin=02508201610067®Number=0000000000090573&sum=170067 [14:42:45]OFD Sender: Processing packet 123261 [packets to send 112, broken 111] [14:42:45]ProducePacketName [14:42:45]name=ofd_packets/00123261 [14:42:45]OFD Sender: To server: pG, [14:42:45]CommunicateWithHost lk.salyk.kg:30040 [14:42:45]ConnectInit lk.salyk.kg [14:42:45]written 0, free lines is 4095 [14:42:45]Connected sock=11 [14:42: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 37 39 38 0F 01 00 00 BE F2 07 01 0F FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 96 5F 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 53 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 53 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 46 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 53 98 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 67 8C E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 7D E1 01 00 35 04 06 00 BB B4 08 D5 3B 3F 05 20 39 7A 22 4E 3D 6D [14:42:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 48 DC 47 00 1D 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 37 39 38 10 04 04 00 7D E1 01 00 F4 03 04 00 93 38 E4 65 B6 04 01 00 00 4D 8C 72 30 06 57 DB FE [14:42:46]CommunicateWithHost err = 0 [14:42:46]CheckOFDResponse [14:42:46]1017 (14) - 77093643461234 [14:42:46]1041 (16) - 0000000000874798 [14:42:46]1040 (4) - 123261 [14:42:46]1012 (4) - 03.03.2024 08:45 [14:42:46]1206 (1) - 0 [14:42:46]OFD Sender: Remove packet 123261 [14:42:46]ProducePacketName [14:42:46]name=ofd_packets/00123261 [14:42:46]NVStorageDeleteData [14:42:46]Write to MH i2c: 01 00 00 EA 2D 17 [14:42:46]Write i2c OK [14:42:46]MH_I2C_Read... [14:42:46]Read from MH i2c: 01 [14:42:46]MH_I2C_Read... [14:42:46]Read from MH i2c: 01 07 00 [14:42:46]MH_I2C_Read... [14:42:46]Read from MH i2c: 01 07 00 EA 2D 00 00 00 00 00 14 0D 3F [14:42:46]RasterBufferAndPrint [14:42:46]line [14:42:46]line [14:42:46]line [14:42:46]line [14:42:46]line [14:42:46]written 0, free lines is 3354 [14:42:46]MH_Cut [14:42:46]Write to MH i2c: D1 01 00 F1 2D 01 F0 [14:42:46]Write i2c OK [14:42:46]MH_I2C_Read... [14:42:46]Read from MH i2c: D1 [14:42:46]MH_I2C_Read... [14:42:46]Read from MH i2c: D1 01 00 [14:42:46]MH_I2C_Read... [14:42:46]Read from MH i2c: D1 01 00 F1 2D 00 EF [14:42:46]Write to MH i2c: 01 00 00 F2 2D 1F [14:42:46]Write i2c OK [14:42:46]MH_I2C_Read... [14:42:46]OFD Sender: No OFD packet to send [14:42:46]*** Cut start [14:42:46]*** Purtial cut [14:42:46]*** Stage 1: CUTSNS_PIN = 1 [14:42:49]Read from MH i2c: 01 [14:42:49]MH_I2C_Read... [14:42:49]*** Stop cut motor [14:42:49]*** Cut end [14:42:49]Read from MH i2c: 01 07 00 [14:42:49]MH_I2C_Read... [14:42:49]Read from MH i2c: 01 07 00 F2 2D 00 00 00 00 00 FF 0F 34 [14:42:49]process_action close_receipt done [14:42:49]requested_data is exist [14:42:49]produce_requested_data [14:42:49]requested_item fm.sn is exist - process it [14:42:49]wFMCommunicate request_size=4 [14:42:49]MH_SAM_APDU [14:42:49]CAPDU: 80 11 00 00 [14:42:49]Write to MH i2c: E2 08 00 F3 2D 80 11 00 00 00 00 00 00 9A [14:42:49]Write i2c OK [14:42:49]MH_I2C_Read... [14:42:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:49]Read from MH i2c: E2 [14:42:49]MH_I2C_Read... [14:42:49]Read from MH i2c: E2 17 00 [14:42:49]MH_I2C_Read... [14:42:49]Read from MH i2c: E2 17 00 F3 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 F8 [14:42:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [14:42:49]wFMCommunicate OK [14:42:49]requested_item fd.num is exist - process it [14:42:49]SAM_PROTO_GetFieldsCounters [14:42:49]wFMCommunicate request_size=4 [14:42:49]MH_SAM_APDU [14:42:49]CAPDU: 80 13 00 00 [14:42:49]Write to MH i2c: E2 08 00 F4 2D 80 13 00 00 00 00 00 00 9D [14:42:49]Write i2c OK [14:42:49]MH_I2C_Read... [14:42:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:42:49]Read from MH i2c: E2 [14:42:49]MH_I2C_Read... [14:42:49]Read from MH i2c: E2 62 00 [14:42:49]MH_I2C_Read... [14:42:49]Read from MH i2c: E2 62 00 F4 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 7D E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 CD [14:42: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 7D E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:42:49]wFMCommunicate OK [14:42:49]SAM_PROTO_GetFieldsCounters done [14:42:49]requested_item shift.num is exist - process it [14:42:49]requested_item shift.opened is exist - process it [14:42:49]req_shift_opened [14:42:49]FM_GetShiftState [14:42:49]SAM_PROTO_GetShiftState [14:42:49]wFMCommunicate request_size=4 [14:42:49]MH_SAM_APDU [14:42:49]CAPDU: 80 13 01 00 [14:42:49]Write to MH i2c: E2 08 00 F5 2D 80 13 01 00 00 00 00 00 9F [14:42:49]Write i2c OK [14:42:49]MH_I2C_Read... [14:42:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:49]Read from MH i2c: E2 [14:42:49]MH_I2C_Read... [14:42:49]Read from MH i2c: E2 0E 00 [14:42:49]MH_I2C_Read... [14:42:49]Read from MH i2c: E2 0E 00 F5 2D 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 61 [14:42:49]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [14:42:49]wFMCommunicate OK [14:42:49]SAM_PROTO_GetShiftState done [14:42:49]FM_GetShiftState done [14:42:49]req_shift_opened done [14:42:49]requested_item shift.open_date is exist - process it [14:42:49]req_shift_open_date [14:42:49]req_shift_open_date done [14:42:49]produce_requested_data done [14:42:49]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123261,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [14:42:49]process_action_free close_receipt [14:42:49]json_value_free [14:42:49]json_value_free done [14:42:49]process_json_proto returns [14:42:49]Send response to host [14:42:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123261,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [14:42:49]free response buf [14:42:49]execute_script done [14:42:49]execute_script returns [14:42:49]free content buf [14:42:49]Sock 7.Close socket [14:42:49]Sock 7.Thread stoped [14:42:51]OFD Sender: No OFD packet to send [14:42:56]OFD Sender: No OFD packet to send [14:43:01]OFD Sender: No OFD packet to send [14:43:06]OFD Sender: No OFD packet to send [14:43:11]OFD Sender: No OFD packet to send [14:43:16]OFD Sender: No OFD packet to send [14:43:21]OFD Sender: No OFD packet to send [14:43:26]OFD Sender: No OFD packet to send [14:43:31]OFD Sender: No OFD packet to send [14:43:36]OFD Sender: No OFD packet to send [14:43:41]OFD Sender: No OFD packet to send [14:43:46]OFD Sender: No OFD packet to send [14:43:51]OFD Sender: No OFD packet to send [14:43:56]OFD Sender: No OFD packet to send [14:44:01]OFD Sender: No OFD packet to send [14:44:06]OFD Sender: No OFD packet to send [14:44:11]OFD Sender: No OFD packet to send [14:44:16]OFD Sender: No OFD packet to send [14:44:21]OFD Sender: No OFD packet to send [14:44:26]OFD Sender: No OFD packet to send [14:44:31]OFD Sender: No OFD packet to send [14:44:36]OFD Sender: No OFD packet to send [14:44:41]OFD Sender: No OFD packet to send [14:44:46]OFD Sender: No OFD packet to send [14:44:51]OFD Sender: No OFD packet to send [14:44:56]OFD Sender: No OFD packet to send [14:45:01]OFD Sender: No OFD packet to send [14:45:06]OFD Sender: No OFD packet to send [14:45:11]OFD Sender: No OFD packet to send [14:45:16]OFD Sender: No OFD packet to send [14:45:21]OFD Sender: No OFD packet to send [14:45:26]OFD Sender: No OFD packet to send [14:45:31]OFD Sender: No OFD packet to send [14:45:36]OFD Sender: No OFD packet to send [14:45:41]OFD Sender: No OFD packet to send [14:45:46]OFD Sender: No OFD packet to send [14:45:51]OFD Sender: No OFD packet to send [14:45:56]OFD Sender: No OFD packet to send [14:46:01]OFD Sender: No OFD packet to send [14:46:06]OFD Sender: No OFD packet to send [14:46:11]OFD Sender: No OFD packet to send [14:46:16]OFD Sender: No OFD packet to send [14:46:21]OFD Sender: No OFD packet to send [14:46:26]OFD Sender: No OFD packet to send [14:46:31]OFD Sender: No OFD packet to send [14:46:36]OFD Sender: No OFD packet to send [14:46:41]OFD Sender: No OFD packet to send [14:46:42]accept exits with 9 [14:46:42]New connection [14:46:42]New thread 3067252068 created [14:46:42]Thread 3067395428 joined [14:46:42]Waiting for new connection... [14:46:42] Sock 9.Parse request [14:46:42]Sock 9.Check first char [14:46:42]Sock 9.First char is OK [14:46:42]request: POST /json_proto HTTP/1.0 [14:46:42]Method: POST [14:46:42]URL: /json_proto [14:46:42]Method is POST - this is cgi request [14:46:42]url: /json_proto [14:46:42]query_string will be loaded in cgi processing [14:46:42]execute_cgi json_proto POST (null) [14:46:42]execute_cgi path=json_proto method=POST [14:46:42]POST find Content-Length [14:46:42]Host: 172.17.48.197:8080 [14:46:42]Content-Length: 683 [14:46:42]Content-Type: application/json [14:46:42] [14:46:42]POST finish read [14:46:42]Found Content-Length = 683 [14:46:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106198", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 43.170, "sum" : 3000.32, "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" ] } } [14:46:42]execute_script... [14:46:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106198", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 43.170, "sum" : 3000.32, "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" ] } } [14:46:42]POST & json_proto [14:46:42]process_json_proto [14:46:42]json parsed OK: [14:46:42]protocol is kg_v1.0 [14:46:42]action value=close_receipt [14:46:42]process_action close_receipt [14:46:42]cmd_close_receipt [14:46:42]MH_GetDate [14:46:42]Write to MH i2c: F0 00 00 F6 2D 12 [14:46:42]Write i2c OK [14:46:42]MH_I2C_Read... [14:46:42]Read from MH i2c: F0 [14:46:42]MH_I2C_Read... [14:46:42]Read from MH i2c: F0 09 00 [14:46:42]MH_I2C_Read... [14:46:42]Read from MH i2c: F0 09 00 F6 2D 00 55 8D E4 65 6C AF E3 65 A9 [14:46:42]GetLastDocTimeStamp 1709476967 [14:46:42]current date 1709477205 [14:46:42]FM_GetShiftState [14:46:42]SAM_PROTO_GetShiftState [14:46:42]wFMCommunicate request_size=4 [14:46:42]MH_SAM_APDU [14:46:42]CAPDU: 80 13 01 00 [14:46:42]Write to MH i2c: E2 08 00 F7 2D 80 13 01 00 00 00 00 00 A1 [14:46:42]Write i2c OK [14:46:42]MH_I2C_Read... [14:46:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:42]Read from MH i2c: E2 [14:46:42]MH_I2C_Read... [14:46:42]Read from MH i2c: E2 0E 00 [14:46:42]MH_I2C_Read... [14:46:42]Read from MH i2c: E2 0E 00 F7 2D 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 63 [14:46:42]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [14:46:42]wFMCommunicate OK [14:46:42]SAM_PROTO_GetShiftState done [14:46:42]FM_GetShiftState done [14:46:42]opened in 1709425579 [14:46:42]opened+sec_in_day 1709511979 [14:46:42]quantity*price = 300031 [14:46:42]sum+1 = 300033 [14:46:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.62 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 119 03.03.2024 14:46 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123262 ФПД: 182483062701577 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T144646&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123262&fm=182483062701577&tin=02508201610067®Number=0000000000090573&sum=300000 [14:46:43]StoreToDocumentArchive [14:46:43]shift 323 fd 123262 [14:46:43]save to /storage/0323/doc_00123262 [14:46:43]save last doc name /storage/0323/doc_00123262 to /storage/kkm_last_doc_name [14:46:43]save OK [14:46:43]Clear old archive folders... [14:46:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:46:43]tlvbuf is 00E65BD0 [14:46:43]SAM_PROTO_ClearQueue [14:46:43]wFMCommunicate request_size=4 [14:46:43]MH_SAM_APDU [14:46:43]CAPDU: 80 09 00 00 [14:46:43]Write to MH i2c: E2 08 00 04 2E 80 09 00 00 00 00 00 00 A4 [14:46:43]Write i2c OK [14:46:43]MH_I2C_Read... [14:46:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:46:43]Read from MH i2c: E2 [14:46:43]MH_I2C_Read... [14:46:43]Read from MH i2c: E2 03 00 [14:46:43]MH_I2C_Read... [14:46:43]Read from MH i2c: E2 03 00 04 2E 00 90 00 A6 [14:46:43]RAPDU: 90 00 [14:46:43]wFMCommunicate OK [14:46:43]SAM_PROTO_ClearQueue done [14:46:43]KKMCreateOFDPacket [14:46:43]OFDProtocolAddRootSTLVToBuf [14:46:43]FM_MakeSignedData [14:46:43]FM_MakeSignedData [14:46:43]SAM_PROTO_SignData [14:46:43]wFMCommunicate request_size=4 [14:46:43]MH_SAM_APDU [14:46:43]CAPDU: 80 0D 01 02 [14:46:43]Write to MH i2c: E2 08 00 05 2E 80 0D 01 02 00 00 00 00 AC [14:46:43]Write i2c OK [14:46:43]MH_I2C_Read... [14:46:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:46:43]Read from MH i2c: E2 [14:46:43]MH_I2C_Read... [14:46:43]Read from MH i2c: E2 03 00 [14:46:43]MH_I2C_Read... [14:46:43]Read from MH i2c: E2 03 00 05 2E 00 90 00 A7 [14:46:43]RAPDU: 90 00 [14:46:43]wFMCommunicate OK [14:46:43]wFMCommunicate request_size=255 [14:46:43]MH_SAM_APDU [14:46: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 35 FF 03 08 00 03 A2 A8 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 00 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 76 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 77 00 00 00 F4 03 04 00 56 8D E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 7E E1 01 00 35 04 06 00 A5 [14:46:43]Write to MH i2c: E2 02 01 06 2E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A2 A8 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 00 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 76 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 77 00 00 00 F4 03 04 00 56 8D E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 7E E1 01 00 35 04 06 00 A5 00 00 1C [14:46:43]Write i2c OK [14:46:43]MH_I2C_Read... [14:46:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:43]Read from MH i2c: E2 [14:46:43]MH_I2C_Read... [14:46:43]Read from MH i2c: E2 03 00 [14:46:43]MH_I2C_Read... [14:46:43]Read from MH i2c: E2 03 00 06 2E 00 90 00 A8 [14:46:43]RAPDU: 90 00 [14:46:43]wFMCommunicate OK [14:46:43]wFMCommunicate request_size=10 [14:46:43]MH_SAM_APDU [14:46:43]CAPDU: 80 0D 02 02 05 F7 A6 21 3E 09 [14:46:43]Write to MH i2c: E2 0D 00 07 2E 80 0D 02 02 05 00 F7 A6 21 3E 09 00 00 BE [14:46:43]Write i2c OK [14:46:43]MH_I2C_Read... [14:46:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:43]Read from MH i2c: E2 [14:46:43]MH_I2C_Read... [14:46:43]Read from MH i2c: E2 03 00 [14:46:43]MH_I2C_Read... [14:46:43]Read from MH i2c: E2 03 00 07 2E 00 90 00 A9 [14:46:43]RAPDU: 90 00 [14:46:43]wFMCommunicate OK [14:46:43]wFMCommunicate request_size=4 [14:46:43]MH_SAM_APDU [14:46:43]CAPDU: 80 0D 03 02 [14:46:43]Write to MH i2c: E2 08 00 08 2E 80 0D 03 02 00 00 00 00 B1 [14:46:43]Write i2c OK [14:46:43]MH_I2C_Read... [14:46:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:46:43]Read from MH i2c: E2 [14:46:44]MH_I2C_Read... [14:46:44]Read from MH i2c: E2 0B 00 [14:46:44]MH_I2C_Read... [14:46:44]Read from MH i2c: E2 0B 00 08 2E 00 C0 19 A7 4E DC 3E 5D 7B 90 00 72 [14:46:44]RAPDU: C0 19 A7 4E DC 3E 5D 7B 90 00 [14:46:44]wFMCommunicate OK [14:46:44]SAM_PROTO_SignData done [14:46:44]FM_MakeSignedData done [14:46:44]CreateOFDProtocolMessage [14:46:44]wFMCommunicate request_size=4 [14:46:44]MH_SAM_APDU [14:46:44]CAPDU: 80 11 00 00 [14:46:44]Write to MH i2c: E2 08 00 09 2E 80 11 00 00 00 00 00 00 B1 [14:46:44]Write i2c OK [14:46:44]MH_I2C_Read... [14:46:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:44]Read from MH i2c: E2 [14:46:44]MH_I2C_Read... [14:46:44]Read from MH i2c: E2 17 00 [14:46:44]MH_I2C_Read... [14:46:44]Read from MH i2c: E2 17 00 09 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 0F [14:46:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [14:46:44]wFMCommunicate OK [14:46:44]CreateOFDProtocolMessage done [14:46:44]OFDSenderStorePacket 123262 [14:46:44]StoreOFDPacket docnum=123262 [14:46:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 10 EB 07 01 E3 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A2 A8 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 00 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 76 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 77 00 00 00 F4 03 04 00 56 8D E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 7E E1 01 00 35 04 06 00 A5 F7 A6 21 3E 09 C0 19 A7 4E DC 3E 5D 7B [14:46:44]CheckFolder [14:46:44]dirname=/storage/ofd_packets [14:46:44]CheckFolder done [14:46:44]ProducePacketName [14:46:44]name=ofd_packets/00123262 [14:46:44]NVStorageSaveData ofd_packets/00123262 [14:46:44]File name is /storage/ofd_packets/00123262 [14:46:44]Write 301 bytes [14:46:44]NVStorageSaveData done [14:46:44]OFDSenderStorePacket done [14:46:44]KKMCreateOFDPacket done [14:46:44]NVStorageSaveData kkm_last_timestamp [14:46:44]File name is /storage/kkm_last_timestamp [14:46:44]Write 4 bytes [14:46:44]NVStorageSaveData done [14:46:44]ExternCall_PrintAddStr [14:46:44]wPrintStart [14:46:44]Write to MH i2c: 01 00 00 0A 2E 38 [14:46:44]Write i2c OK [14:46:44]MH_I2C_Read... [14:46:44]Read from MH i2c: 01 [14:46:44]MH_I2C_Read... [14:46:44]Read from MH i2c: 01 07 00 [14:46:44]MH_I2C_Read... [14:46:44]Read from MH i2c: 01 07 00 0A 2E 00 00 00 00 00 FF 0F 4D [14:46:44]RasterBufferAndPrint [14:46:44]line Счет N : (1)1106198 [14:46:44]line ИНН: 02508201610067 [14:46:44]line Контрольно-Кассовый Чек [14:46:44]line ПРОДАЖА [14:46:44]line ТРК (МРК, ГНК) : 13 [14:46:44]line Товар: 2710124500 [14:46:44]line Аи-95-К-5 [14:46:44]line 43.170 * 69.50 [14:46:44]line = 3000.32 [14:46:44]line НДС 12% НСП 1% [14:46:44]line > о реализуемом товаре [14:46:44]line ОКРУГЛЕНИЕ: -0.32 [14:46:44]line ИТОГО: 3000.00 [14:46:44]line Внесено: 3000.00 [14:46:44]line СДАЧА: 0.00 [14:46:44]line НСП 1% : 26.55 [14:46:44]line НДС 12% : 318.62 [14:46:44]line Наличными: 3000.00 [14:46:44]line Безнал.: 0.00 [14:46:44]line Место: АЗС № 25 "Партнер Нефть" [14:46:44]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [14:46:44]line СНО: Общий режим [14:46:44]line Чек 119 03.03.2024 14:46 [14:46:44]line Смена: 323 ФФД: 1.0 [14:46:44]line ЗНМ: 0300000019 [14:46:44]line РНМ: 0000000000090573 [14:46:44]line Версия ККМ: 001 [14:46:44]line ФМ: 0000000000874798 [14:46:44]line ФД: 123262 [14:46:44]line ФПД: 182483062701577 [14:46:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T144646&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123262&fm=182483062701577&tin=02508201610067®Number=0000000000090573&sum=300000 [14:46:44]OFD Sender: Processing packet 123262 [packets to send 112, broken 111] [14:46:44]ProducePacketName [14:46:44]name=ofd_packets/00123262 [14:46:44]OFD Sender: To server: pG, [14:46:44]CommunicateWithHost lk.salyk.kg:30040 [14:46:44]ConnectInit lk.salyk.kg [14:46:44]written 0, free lines is 4095 [14:46:44]Connected sock=10 [14:46:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 10 EB 07 01 E3 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A2 A8 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 00 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 76 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 77 00 00 00 F4 03 04 00 56 8D E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 7E E1 01 00 35 04 06 00 A5 F7 A6 21 3E 09 C0 19 A7 4E DC 3E 5D 7B [14:46:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 E7 75 47 00 E4 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 37 39 38 10 04 04 00 7E E1 01 00 F4 03 04 00 81 39 E4 65 B6 04 01 00 00 DB 74 28 DF 9F C5 0D 2F [14:46:44]CommunicateWithHost err = 0 [14:46:44]CheckOFDResponse [14:46:44]1017 (14) - 77093643461234 [14:46:44]1041 (16) - 0000000000874798 [14:46:44]1040 (4) - 123262 [14:46:44]1012 (4) - 03.03.2024 08:49 [14:46:44]1206 (1) - 0 [14:46:44]OFD Sender: Remove packet 123262 [14:46:44]ProducePacketName [14:46:44]name=ofd_packets/00123262 [14:46:44]NVStorageDeleteData [14:46:44]Write to MH i2c: 01 00 00 35 2E 63 [14:46:44]Write i2c OK [14:46:44]MH_I2C_Read... [14:46:44]Read from MH i2c: 01 [14:46:44]MH_I2C_Read... [14:46:44]Read from MH i2c: 01 07 00 [14:46:44]MH_I2C_Read... [14:46:44]Read from MH i2c: 01 07 00 35 2E 00 00 00 00 00 F6 0C 6C [14:46:44]RasterBufferAndPrint [14:46:44]line [14:46:44]line [14:46:44]line [14:46:44]line [14:46:44]line [14:46:44]written 0, free lines is 3327 [14:46:44]MH_Cut [14:46:44]Write to MH i2c: D1 01 00 3C 2E 01 3C [14:46:44]Write i2c OK [14:46:44]MH_I2C_Read... [14:46:44]Read from MH i2c: D1 [14:46:44]MH_I2C_Read... [14:46:44]Read from MH i2c: D1 01 00 [14:46:44]MH_I2C_Read... [14:46:44]Read from MH i2c: D1 01 00 3C 2E 00 3B [14:46:44]Write to MH i2c: 01 00 00 3D 2E 6B [14:46:44]Write i2c OK [14:46:44]MH_I2C_Read... [14:46:45]OFD Sender: No OFD packet to send [14:46:45]*** Cut start [14:46:45]*** Purtial cut [14:46:45]*** Stage 1: CUTSNS_PIN = 1 [14:46:47]Read from MH i2c: 01 [14:46:47]MH_I2C_Read... [14:46:47]*** Stop cut motor [14:46:47]*** Cut end [14:46:47]Read from MH i2c: 01 07 00 [14:46:47]MH_I2C_Read... [14:46:47]Read from MH i2c: 01 07 00 3D 2E 00 00 00 00 00 FF 0F 80 [14:46:47]process_action close_receipt done [14:46:47]requested_data is exist [14:46:47]produce_requested_data [14:46:47]requested_item fm.sn is exist - process it [14:46:47]wFMCommunicate request_size=4 [14:46:47]MH_SAM_APDU [14:46:47]CAPDU: 80 11 00 00 [14:46:47]Write to MH i2c: E2 08 00 3E 2E 80 11 00 00 00 00 00 00 E6 [14:46:47]Write i2c OK [14:46:47]MH_I2C_Read... [14:46:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:47]Read from MH i2c: E2 [14:46:47]MH_I2C_Read... [14:46:47]Read from MH i2c: E2 17 00 [14:46:47]MH_I2C_Read... [14:46:47]Read from MH i2c: E2 17 00 3E 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 44 [14:46:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [14:46:47]wFMCommunicate OK [14:46:47]requested_item fd.num is exist - process it [14:46:47]SAM_PROTO_GetFieldsCounters [14:46:47]wFMCommunicate request_size=4 [14:46:47]MH_SAM_APDU [14:46:47]CAPDU: 80 13 00 00 [14:46:47]Write to MH i2c: E2 08 00 3F 2E 80 13 00 00 00 00 00 00 E9 [14:46:47]Write i2c OK [14:46:47]MH_I2C_Read... [14:46:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:46:47]Read from MH i2c: E2 [14:46:47]MH_I2C_Read... [14:46:47]Read from MH i2c: E2 62 00 [14:46:47]MH_I2C_Read... [14:46:47]Read from MH i2c: E2 62 00 3F 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 7E E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 1D [14:46: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 7E E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:46:47]wFMCommunicate OK [14:46:47]SAM_PROTO_GetFieldsCounters done [14:46:47]requested_item shift.num is exist - process it [14:46:47]requested_item shift.opened is exist - process it [14:46:47]req_shift_opened [14:46:47]FM_GetShiftState [14:46:47]SAM_PROTO_GetShiftState [14:46:47]wFMCommunicate request_size=4 [14:46:47]MH_SAM_APDU [14:46:47]CAPDU: 80 13 01 00 [14:46:47]Write to MH i2c: E2 08 00 40 2E 80 13 01 00 00 00 00 00 EB [14:46:47]Write i2c OK [14:46:47]MH_I2C_Read... [14:46:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:47]Read from MH i2c: E2 [14:46:47]MH_I2C_Read... [14:46:47]Read from MH i2c: E2 0E 00 [14:46:47]MH_I2C_Read... [14:46:47]Read from MH i2c: E2 0E 00 40 2E 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 AD [14:46:47]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [14:46:47]wFMCommunicate OK [14:46:47]SAM_PROTO_GetShiftState done [14:46:47]FM_GetShiftState done [14:46:47]req_shift_opened done [14:46:47]requested_item shift.open_date is exist - process it [14:46:47]req_shift_open_date [14:46:47]req_shift_open_date done [14:46:47]produce_requested_data done [14:46:47]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123262,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [14:46:47]process_action_free close_receipt [14:46:47]json_value_free [14:46:47]json_value_free done [14:46:47]process_json_proto returns [14:46:47]Send response to host [14:46:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123262,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [14:46:47]free response buf [14:46:47]execute_script done [14:46:47]execute_script returns [14:46:47]free content buf [14:46:47]Sock 9.Close socket [14:46:47]Sock 9.Thread stoped [14:46:50]OFD Sender: No OFD packet to send [14:46:55]OFD Sender: No OFD packet to send [14:47:00]OFD Sender: No OFD packet to send [14:47:05]OFD Sender: No OFD packet to send [14:47:10]OFD Sender: No OFD packet to send [14:47:15]OFD Sender: No OFD packet to send [14:47:20]OFD Sender: No OFD packet to send [14:47:25]OFD Sender: No OFD packet to send [14:47:30]OFD Sender: No OFD packet to send [14:47:35]OFD Sender: No OFD packet to send [14:47:40]OFD Sender: No OFD packet to send [14:47:45]OFD Sender: No OFD packet to send [14:47:50]OFD Sender: No OFD packet to send [14:47:55]OFD Sender: No OFD packet to send [14:48:00]OFD Sender: No OFD packet to send [14:48:05]OFD Sender: No OFD packet to send [14:48:10]OFD Sender: No OFD packet to send [14:48:15]OFD Sender: No OFD packet to send [14:48:20]OFD Sender: No OFD packet to send [14:48:25]OFD Sender: No OFD packet to send [14:48:30]OFD Sender: No OFD packet to send [14:48:35]OFD Sender: No OFD packet to send [14:48:40]OFD Sender: No OFD packet to send [14:48:45]OFD Sender: No OFD packet to send [14:48:50]OFD Sender: No OFD packet to send [14:48:55]OFD Sender: No OFD packet to send [14:49:00]OFD Sender: No OFD packet to send [14:49:05]OFD Sender: No OFD packet to send [14:49:10]OFD Sender: No OFD packet to send [14:49:15]OFD Sender: No OFD packet to send [14:49:20]OFD Sender: No OFD packet to send [14:49:25]OFD Sender: No OFD packet to send [14:49:30]OFD Sender: No OFD packet to send [14:49:35]OFD Sender: No OFD packet to send [14:49:40]OFD Sender: No OFD packet to send [14:49:45]OFD Sender: No OFD packet to send [14:49:50]OFD Sender: No OFD packet to send [14:49:55]OFD Sender: No OFD packet to send [14:50:00]OFD Sender: No OFD packet to send [14:50:05]OFD Sender: No OFD packet to send [14:50:10]OFD Sender: No OFD packet to send [14:50:15]OFD Sender: No OFD packet to send [14:50:20]OFD Sender: No OFD packet to send [14:50:25]OFD Sender: No OFD packet to send [14:50:26]accept exits with 7 [14:50:26]New connection [14:50:26]New thread 3067395428 created [14:50:26]Thread 3067252068 joined [14:50:26]Waiting for new connection... [14:50:26] Sock 7.Parse request [14:50:26]Sock 7.Check first char [14:50:26]Sock 7.First char is OK [14:50:26]request: POST /json_proto HTTP/1.0 [14:50:26]Method: POST [14:50:26]URL: /json_proto [14:50:26]Method is POST - this is cgi request [14:50:26]url: /json_proto [14:50:26]query_string will be loaded in cgi processing [14:50:26]execute_cgi json_proto POST (null) [14:50:26]execute_cgi path=json_proto method=POST [14:50:26]POST find Content-Length [14:50:26]Host: 172.17.48.197:8080 [14:50:26]Content-Length: 679 [14:50:26]Content-Type: application/json [14:50:26] [14:50:26]POST finish read [14:50:26]Found Content-Length = 679 [14:50:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106200", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 12.930, "sum" : 800.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:50:26]execute_script... [14:50: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)1106200", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 12.930, "sum" : 800.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:50:26]POST & json_proto [14:50:26]process_json_proto [14:50:26]json parsed OK: [14:50:26]protocol is kg_v1.0 [14:50:26]action value=close_receipt [14:50:26]process_action close_receipt [14:50:26]cmd_close_receipt [14:50:26]MH_GetDate [14:50:26]Write to MH i2c: F0 00 00 41 2E 5E [14:50:26]Write i2c OK [14:50:26]MH_I2C_Read... [14:50:26]Read from MH i2c: F0 [14:50:26]MH_I2C_Read... [14:50:26]Read from MH i2c: F0 09 00 [14:50:26]MH_I2C_Read... [14:50:26]Read from MH i2c: F0 09 00 41 2E 00 36 8E E4 65 6C AF E3 65 D7 [14:50:26]GetLastDocTimeStamp 1709477206 [14:50:26]current date 1709477430 [14:50:26]FM_GetShiftState [14:50:26]SAM_PROTO_GetShiftState [14:50:26]wFMCommunicate request_size=4 [14:50:26]MH_SAM_APDU [14:50:26]CAPDU: 80 13 01 00 [14:50:26]Write to MH i2c: E2 08 00 42 2E 80 13 01 00 00 00 00 00 ED [14:50:26]Write i2c OK [14:50:26]MH_I2C_Read... [14:50:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:50:26]Read from MH i2c: E2 [14:50:26]MH_I2C_Read... [14:50:26]Read from MH i2c: E2 0E 00 [14:50:26]MH_I2C_Read... [14:50:26]Read from MH i2c: E2 0E 00 42 2E 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 AF [14:50:26]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [14:50:26]wFMCommunicate OK [14:50:26]SAM_PROTO_GetShiftState done [14:50:26]FM_GetShiftState done [14:50:26]opened in 1709425579 [14:50:26]opened+sec_in_day 1709511979 [14:50:26]quantity*price = 80036 [14:50:26]sum+1 = 80038 [14:50:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.99 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 120 03.03.2024 14:50 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123263 ФПД: 69987222637435 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T145030&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123263&fm=69987222637435&tin=02508201610067®Number=0000000000090573&sum=80000 [14:50:27]StoreToDocumentArchive [14:50:27]shift 323 fd 123263 [14:50:27]save to /storage/0323/doc_00123263 [14:50:27]save last doc name /storage/0323/doc_00123263 to /storage/kkm_last_doc_name [14:50:27]save OK [14:50:27]Clear old archive folders... [14:50:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:50:27]tlvbuf is 00E02230 [14:50:27]SAM_PROTO_ClearQueue [14:50:27]wFMCommunicate request_size=4 [14:50:27]MH_SAM_APDU [14:50:27]CAPDU: 80 09 00 00 [14:50:27]Write to MH i2c: E2 08 00 4F 2E 80 09 00 00 00 00 00 00 EF [14:50:27]Write i2c OK [14:50:27]MH_I2C_Read... [14:50:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:50:28]Read from MH i2c: E2 [14:50:28]MH_I2C_Read... [14:50:28]Read from MH i2c: E2 03 00 [14:50:28]MH_I2C_Read... [14:50:28]Read from MH i2c: E2 03 00 4F 2E 00 90 00 F1 [14:50:28]RAPDU: 90 00 [14:50:28]wFMCommunicate OK [14:50:28]SAM_PROTO_ClearQueue done [14:50:28]KKMCreateOFDPacket [14:50:28]OFDProtocolAddRootSTLVToBuf [14:50:28]FM_MakeSignedData [14:50:28]FM_MakeSignedData [14:50:28]SAM_PROTO_SignData [14:50:28]wFMCommunicate request_size=4 [14:50:28]MH_SAM_APDU [14:50:28]CAPDU: 80 0D 01 02 [14:50:28]Write to MH i2c: E2 08 00 50 2E 80 0D 01 02 00 00 00 00 F7 [14:50:28]Write i2c OK [14:50:28]MH_I2C_Read... [14:50:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:50:28]Read from MH i2c: E2 [14:50:28]MH_I2C_Read... [14:50:28]Read from MH i2c: E2 03 00 [14:50:28]MH_I2C_Read... [14:50:28]Read from MH i2c: E2 03 00 50 2E 00 90 00 F2 [14:50:28]RAPDU: 90 00 [14:50:28]wFMCommunicate OK [14:50:28]wFMCommunicate request_size=255 [14:50:28]MH_SAM_APDU [14:50:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 82 32 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 A5 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 36 8E E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 7F E1 01 00 35 04 06 00 3F [14:50:28]Write to MH i2c: E2 02 01 51 2E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 82 32 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 A5 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 36 8E E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 7F E1 01 00 35 04 06 00 3F 00 00 D8 [14:50:28]Write i2c OK [14:50:28]MH_I2C_Read... [14:50:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:50:28]Read from MH i2c: E2 [14:50:28]MH_I2C_Read... [14:50:28]Read from MH i2c: E2 03 00 [14:50:28]MH_I2C_Read... [14:50:28]Read from MH i2c: E2 03 00 51 2E 00 90 00 F3 [14:50:28]RAPDU: 90 00 [14:50:28]wFMCommunicate OK [14:50:28]wFMCommunicate request_size=10 [14:50:28]MH_SAM_APDU [14:50:28]CAPDU: 80 0D 02 02 05 A7 2B 8B 4B 7B [14:50:28]Write to MH i2c: E2 0D 00 52 2E 80 0D 02 02 05 00 A7 2B 8B 4B 7B 00 00 27 [14:50:28]Write i2c OK [14:50:28]MH_I2C_Read... [14:50:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:50:28]Read from MH i2c: E2 [14:50:28]MH_I2C_Read... [14:50:28]Read from MH i2c: E2 03 00 [14:50:28]MH_I2C_Read... [14:50:28]Read from MH i2c: E2 03 00 52 2E 00 90 00 F4 [14:50:28]RAPDU: 90 00 [14:50:28]wFMCommunicate OK [14:50:28]wFMCommunicate request_size=4 [14:50:28]MH_SAM_APDU [14:50:28]CAPDU: 80 0D 03 02 [14:50:28]Write to MH i2c: E2 08 00 53 2E 80 0D 03 02 00 00 00 00 FC [14:50:28]Write i2c OK [14:50:28]MH_I2C_Read... [14:50:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:50:28]Read from MH i2c: E2 [14:50:28]MH_I2C_Read... [14:50:28]Read from MH i2c: E2 0B 00 [14:50:28]MH_I2C_Read... [14:50:28]Read from MH i2c: E2 0B 00 53 2E 00 52 F5 B3 C5 D0 24 75 D7 90 00 FC [14:50:28]RAPDU: 52 F5 B3 C5 D0 24 75 D7 90 00 [14:50:28]wFMCommunicate OK [14:50:28]SAM_PROTO_SignData done [14:50:28]FM_MakeSignedData done [14:50:28]CreateOFDProtocolMessage [14:50:28]wFMCommunicate request_size=4 [14:50:28]MH_SAM_APDU [14:50:28]CAPDU: 80 11 00 00 [14:50:28]Write to MH i2c: E2 08 00 54 2E 80 11 00 00 00 00 00 00 FC [14:50:28]Write i2c OK [14:50:28]MH_I2C_Read... [14:50:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:50:28]Read from MH i2c: E2 [14:50:28]MH_I2C_Read... [14:50:28]Read from MH i2c: E2 17 00 [14:50:28]MH_I2C_Read... [14:50:28]Read from MH i2c: E2 17 00 54 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 5A [14:50:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [14:50:28]wFMCommunicate OK [14:50:28]CreateOFDProtocolMessage done [14:50:28]OFDSenderStorePacket 123263 [14:50:28]StoreOFDPacket docnum=123263 [14:50:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 FF 89 07 01 91 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 82 32 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 A5 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 36 8E E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 7F E1 01 00 35 04 06 00 3F A7 2B 8B 4B 7B 52 F5 B3 C5 D0 24 75 D7 [14:50:28]CheckFolder [14:50:28]dirname=/storage/ofd_packets [14:50:28]CheckFolder done [14:50:28]ProducePacketName [14:50:28]name=ofd_packets/00123263 [14:50:28]NVStorageSaveData ofd_packets/00123263 [14:50:28]File name is /storage/ofd_packets/00123263 [14:50:28]Write 301 bytes [14:50:28]NVStorageSaveData done [14:50:28]OFDSenderStorePacket done [14:50:28]KKMCreateOFDPacket done [14:50:28]NVStorageSaveData kkm_last_timestamp [14:50:28]File name is /storage/kkm_last_timestamp [14:50:28]Write 4 bytes [14:50:28]NVStorageSaveData done [14:50:28]OFD Sender: Processing packet 123263 [packets to send 112, broken 111] [14:50:28]ProducePacketName [14:50:28]name=ofd_packets/00123263 [14:50:28]OFD Sender: To server: pG, [14:50:28]CommunicateWithHost lk.salyk.kg:30040 [14:50:28]ConnectInit lk.salyk.kg [14:50:28]ExternCall_PrintAddStr [14:50:28]wPrintStart [14:50:28]Write to MH i2c: 01 00 00 55 2E 83 [14:50:28]Write i2c OK [14:50:28]MH_I2C_Read... [14:50:28]Read from MH i2c: 01 [14:50:28]MH_I2C_Read... [14:50:28]Read from MH i2c: 01 07 00 [14:50:28]MH_I2C_Read... [14:50:28]Read from MH i2c: 01 07 00 55 2E 00 00 00 00 00 FF 0F 98 [14:50:28]RasterBufferAndPrint [14:50:28]line Счет N : (1)1106200 [14:50:28]line ИНН: 02508201610067 [14:50:28]line Контрольно-Кассовый Чек [14:50:28]line ПРОДАЖА [14:50:28]line ТРК (МРК, ГНК) : 62 [14:50:28]line Товар: 2710124130 [14:50:28]line Аи-92-К-5 [14:50:28]line 12.930 * 61.90 [14:50:28]line = 800.37 [14:50:28]line НДС 12% НСП 1% [14:50:28]line > о реализуемом товаре [14:50:28]line ОКРУГЛЕНИЕ: -0.37 [14:50:28]line ИТОГО: 800.00 [14:50:28]line Внесено: 800.00 [14:50:28]line СДАЧА: 0.00 [14:50:28]line НСП 1% : 7.08 [14:50:28]line НДС 12% : 84.99 [14:50:28]line Наличными: 800.00 [14:50:28]line Безнал.: 0.00 [14:50:28]line Место: АЗС № 25 "Партнер Нефть" [14:50:28]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [14:50:28]line СНО: Общий режим [14:50:28]line Чек 120 03.03.2024 14:50 [14:50:28]line Смена: 323 ФФД: 1.0 [14:50:28]line ЗНМ: 0300000019 [14:50:28]line РНМ: 0000000000090573 [14:50:28]line Версия ККМ: 001 [14:50:28]line ФМ: 0000000000874798 [14:50:28]line ФД: 123263 [14:50:28]line ФПД: 69987222637435 [14:50:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T145030&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123263&fm=69987222637435&tin=02508201610067®Number=0000000000090573&sum=80000 [14:50:28]Connected sock=11 [14:50: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 37 39 38 0F 01 00 00 FF 89 07 01 91 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 82 32 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 A5 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 36 8E E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 7F E1 01 00 35 04 06 00 3F A7 2B 8B 4B 7B 52 F5 B3 C5 D0 24 75 D7 [14:50:28]written 0, free lines is 4095 [14:50:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 5A 80 47 00 E7 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 7F E1 01 00 F4 03 04 00 61 3A E4 65 B6 04 01 00 00 94 C2 3C 4E 0B 35 99 34 [14:50:28]CommunicateWithHost err = 0 [14:50:28]CheckOFDResponse [14:50:28]1017 (14) - 77093643461234 [14:50:28]1041 (16) - 0000000000874798 [14:50:28]1040 (4) - 123263 [14:50:28]1012 (4) - 03.03.2024 08:52 [14:50:28]1206 (1) - 0 [14:50:28]OFD Sender: Remove packet 123263 [14:50:28]ProducePacketName [14:50:28]name=ofd_packets/00123263 [14:50:28]NVStorageDeleteData [14:50:29]Write to MH i2c: 01 00 00 80 2E AE [14:50:29]Write i2c OK [14:50:29]MH_I2C_Read... [14:50:29]Read from MH i2c: 01 [14:50:29]MH_I2C_Read... [14:50:29]Read from MH i2c: 01 07 00 [14:50:29]MH_I2C_Read... [14:50:29]Read from MH i2c: 01 07 00 80 2E 00 00 00 00 00 EF 0C B0 [14:50:29]RasterBufferAndPrint [14:50:29]line [14:50:29]line [14:50:29]line [14:50:29]line [14:50:29]line [14:50:29]written 0, free lines is 3317 [14:50:29]MH_Cut [14:50:29]Write to MH i2c: D1 01 00 87 2E 01 87 [14:50:29]Write i2c OK [14:50:29]MH_I2C_Read... [14:50:29]Read from MH i2c: D1 [14:50:29]MH_I2C_Read... [14:50:29]Read from MH i2c: D1 01 00 [14:50:29]MH_I2C_Read... [14:50:29]Read from MH i2c: D1 01 00 87 2E 00 86 [14:50:29]Write to MH i2c: 01 00 00 88 2E B6 [14:50:29]Write i2c OK [14:50:29]MH_I2C_Read... [14:50:29]OFD Sender: No OFD packet to send [14:50:29]*** Cut start [14:50:29]*** Purtial cut [14:50:29]*** Stage 1: CUTSNS_PIN = 1 [14:50:31]Read from MH i2c: 01 *** Stop cut motor [14:50:31]*** Cut end [14:50:31] [14:50:31]MH_I2C_Read... [14:50:31]Read from MH i2c: 01 07 00 [14:50:31]MH_I2C_Read... [14:50:31]Read from MH i2c: 01 07 00 88 2E 00 00 00 00 00 FF 0F CB [14:50:31]process_action close_receipt done [14:50:31]requested_data is exist [14:50:31]produce_requested_data [14:50:31]requested_item fm.sn is exist - process it [14:50:31]wFMCommunicate request_size=4 [14:50:31]MH_SAM_APDU [14:50:31]CAPDU: 80 11 00 00 [14:50:31]Write to MH i2c: E2 08 00 89 2E 80 11 00 00 00 00 00 00 31 [14:50:31]Write i2c OK [14:50:31]MH_I2C_Read... [14:50:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:50:32]Read from MH i2c: E2 [14:50:32]MH_I2C_Read... [14:50:32]Read from MH i2c: E2 17 00 [14:50:32]MH_I2C_Read... [14:50:32]Read from MH i2c: E2 17 00 89 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 8F [14:50:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [14:50:32]wFMCommunicate OK [14:50:32]requested_item fd.num is exist - process it [14:50:32]SAM_PROTO_GetFieldsCounters [14:50:32]wFMCommunicate request_size=4 [14:50:32]MH_SAM_APDU [14:50:32]CAPDU: 80 13 00 00 [14:50:32]Write to MH i2c: E2 08 00 8A 2E 80 13 00 00 00 00 00 00 34 [14:50:32]Write i2c OK [14:50:32]MH_I2C_Read... [14:50:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:50:32]Read from MH i2c: E2 [14:50:32]MH_I2C_Read... [14:50:32]Read from MH i2c: E2 62 00 [14:50:32]MH_I2C_Read... [14:50:32]Read from MH i2c: E2 62 00 8A 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 7F E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 6C [14:50: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 7F E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:50:32]wFMCommunicate OK [14:50:32]SAM_PROTO_GetFieldsCounters done [14:50:32]requested_item shift.num is exist - process it [14:50:32]requested_item shift.opened is exist - process it [14:50:32]req_shift_opened [14:50:32]FM_GetShiftState [14:50:32]SAM_PROTO_GetShiftState [14:50:32]wFMCommunicate request_size=4 [14:50:32]MH_SAM_APDU [14:50:32]CAPDU: 80 13 01 00 [14:50:32]Write to MH i2c: E2 08 00 8B 2E 80 13 01 00 00 00 00 00 36 [14:50:32]Write i2c OK [14:50:32]MH_I2C_Read... [14:50:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:50:32]Read from MH i2c: E2 [14:50:32]MH_I2C_Read... [14:50:32]Read from MH i2c: E2 0E 00 [14:50:32]MH_I2C_Read... [14:50:32]Read from MH i2c: E2 0E 00 8B 2E 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 F8 [14:50:32]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [14:50:32]wFMCommunicate OK [14:50:32]SAM_PROTO_GetShiftState done [14:50:32]FM_GetShiftState done [14:50:32]req_shift_opened done [14:50:32]requested_item shift.open_date is exist - process it [14:50:32]req_shift_open_date [14:50:32]req_shift_open_date done [14:50:32]produce_requested_data done [14:50:32]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123263,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [14:50:32]process_action_free close_receipt [14:50:32]json_value_free [14:50:32]json_value_free done [14:50:32]process_json_proto returns [14:50:32]Send response to host [14:50:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123263,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [14:50:32]free response buf [14:50:32]execute_script done [14:50:32]execute_script returns [14:50:32]free content buf [14:50:32]Sock 7.Close socket [14:50:32]Sock 7.Thread stoped [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:53]accept exits with 9 [14:50:53]New connection [14:50:53]New thread 3067252068 created [14:50:53]Thread 3067395428 joined [14:50:53]Waiting for new connection... [14:50:53] Sock 9.Parse request [14:50:53]Sock 9.Check first char [14:50:53]Sock 9.First char is OK [14:50:53]request: POST /json_proto HTTP/1.0 [14:50:53]Method: POST [14:50:53]URL: /json_proto [14:50:53]Method is POST - this is cgi request [14:50:53]url: /json_proto [14:50:53]query_string will be loaded in cgi processing [14:50:53]execute_cgi json_proto POST (null) [14:50:53]execute_cgi path=json_proto method=POST [14:50:53]POST find Content-Length [14:50:53]Host: 172.17.48.197:8080 [14:50:53]Content-Length: 806 [14:50:53]Content-Type: application/json [14:50:53] [14:50:53]POST finish read [14:50:53]Found Content-Length = 806 [14:50:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106199", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:50:53]execute_script... [14: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)1106199", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:50:53]POST & json_proto [14:50:53]process_json_proto [14:50:53]json parsed OK: [14:50:53]protocol is kg_v1.0 [14:50:53]action value=close_receipt [14:50:53]process_action close_receipt [14:50:53]cmd_close_receipt [14:50:53]MH_GetDate [14:50:53]Write to MH i2c: F0 00 00 8C 2E A9 [14:50:53]Write i2c OK [14:50:53]MH_I2C_Read... [14:50:53]Read from MH i2c: F0 [14:50:53]MH_I2C_Read... [14:50:53]Read from MH i2c: F0 09 00 [14:50:53]MH_I2C_Read... [14:50:53]Read from MH i2c: F0 09 00 8C 2E 00 51 8E E4 65 6C AF E3 65 3D [14:50:53]GetLastDocTimeStamp 1709477430 [14:50:53]current date 1709477457 [14:50:53]FM_GetShiftState [14:50:53]SAM_PROTO_GetShiftState [14:50:53]wFMCommunicate request_size=4 [14:50:53]MH_SAM_APDU [14:50:53]CAPDU: 80 13 01 00 [14:50:53]Write to MH i2c: E2 08 00 8D 2E 80 13 01 00 00 00 00 00 38 [14:50:53]Write i2c OK [14:50:53]MH_I2C_Read... [14:50:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:50:53]Read from MH i2c: E2 [14:50:53]MH_I2C_Read... [14:50:53]Read from MH i2c: E2 0E 00 [14:50:53]MH_I2C_Read... [14:50:53]Read from MH i2c: E2 0E 00 8D 2E 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 FA [14:50:53]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [14:50:53]wFMCommunicate OK [14:50:53]SAM_PROTO_GetShiftState done [14:50:53]FM_GetShiftState done [14:50:53]opened in 1709425579 [14:50:53]opened+sec_in_day 1709511979 [14:50:53]quantity*price = 50015 [14:50:53]sum+1 = 50016 [14:50:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.15 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.15 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 121 03.03.2024 14:50 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874798 ФД: 123264 ФПД: 149586254645310 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T145057&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123264&fm=149586254645310&tin=02508201610067®Number=0000000000090573&sum=50015 [14:50:54]StoreToDocumentArchive [14:50:54]shift 323 fd 123264 [14:50:54]save to /storage/0323/doc_00123264 [14:50:54]save last doc name /storage/0323/doc_00123264 to /storage/kkm_last_doc_name [14:50:54]save OK [14:50:54]Clear old archive folders... [14:50:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:50:54]tlvbuf is B6FC1740 [14:50:54]SAM_PROTO_ClearQueue [14:50:54]wFMCommunicate request_size=4 [14:50:54]MH_SAM_APDU [14:50:54]CAPDU: 80 09 00 00 [14:50:54]Write to MH i2c: E2 08 00 9A 2E 80 09 00 00 00 00 00 00 3A [14:50:54]Write i2c OK [14:50:54]MH_I2C_Read... [14:50:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:50:54]Read from MH i2c: E2 [14:50:54]MH_I2C_Read... [14:50:54]Read from MH i2c: E2 03 00 [14:50:54]MH_I2C_Read... [14:50:54]Read from MH i2c: E2 03 00 9A 2E 00 90 00 3C [14:50:54]RAPDU: 90 00 [14:50:54]wFMCommunicate OK [14:50:54]SAM_PROTO_ClearQueue done [14:50:54]KKMCreateOFDPacket [14:50:54]OFDProtocolAddRootSTLVToBuf [14:50:54]FM_MakeSignedData [14:50:54]FM_MakeSignedData [14:50:54]SAM_PROTO_SignData [14:50:54]wFMCommunicate request_size=4 [14:50:54]MH_SAM_APDU [14:50:54]CAPDU: 80 0D 01 02 [14:50:54]Write to MH i2c: E2 08 00 9B 2E 80 0D 01 02 00 00 00 00 42 [14:50:54]Write i2c OK [14:50:54]MH_I2C_Read... [14:50:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:50:54]Read from MH i2c: E2 [14:50:54]MH_I2C_Read... [14:50:54]Read from MH i2c: E2 03 00 [14:50:54]MH_I2C_Read... [14:50:54]Read from MH i2c: E2 03 00 9B 2E 00 90 00 3D [14:50:54]RAPDU: 90 00 [14:50:54]wFMCommunicate OK [14:50:54]wFMCommunicate request_size=255 [14:50:54]MH_SAM_APDU [14:50:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 51 8E E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 80 E1 01 00 35 04 06 00 88 [14:50:54]Write to MH i2c: E2 02 01 9C 2E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 51 8E E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 80 E1 01 00 35 04 06 00 88 00 00 0F [14:50:54]Write i2c OK [14:50:54]MH_I2C_Read... [14:50:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:50:55]Read from MH i2c: E2 [14:50:55]MH_I2C_Read... [14:50:55]Read from MH i2c: E2 03 00 [14:50:55]MH_I2C_Read... [14:50:55]Read from MH i2c: E2 03 00 9C 2E 00 90 00 3E [14:50:55]RAPDU: 90 00 [14:50:55]wFMCommunicate OK [14:50:55]wFMCommunicate request_size=10 [14:50:55]MH_SAM_APDU [14:50:55]CAPDU: 80 0D 02 02 05 0C 43 92 48 3E [14:50:55]Write to MH i2c: E2 0D 00 9D 2E 80 0D 02 02 05 00 0C 43 92 48 3E 00 00 B6 [14:50:55]Write i2c OK [14:50:55]MH_I2C_Read... [14:50:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:50:55]Read from MH i2c: E2 [14:50:55]MH_I2C_Read... [14:50:55]Read from MH i2c: E2 03 00 [14:50:55]MH_I2C_Read... [14:50:55]Read from MH i2c: E2 03 00 9D 2E 00 90 00 3F [14:50:55]RAPDU: 90 00 [14:50:55]wFMCommunicate OK [14:50:55]wFMCommunicate request_size=4 [14:50:55]MH_SAM_APDU [14:50:55]CAPDU: 80 0D 03 02 [14:50:55]Write to MH i2c: E2 08 00 9E 2E 80 0D 03 02 00 00 00 00 47 [14:50:55]Write i2c OK [14:50:55]MH_I2C_Read... [14:50:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:50:55]Read from MH i2c: E2 [14:50:55]MH_I2C_Read... [14:50:55]Read from MH i2c: E2 0B 00 [14:50:55]MH_I2C_Read... [14:50:55]Read from MH i2c: E2 0B 00 9E 2E 00 FE D3 34 4B 82 13 EF E6 90 00 02 [14:50:55]RAPDU: FE D3 34 4B 82 13 EF E6 90 00 [14:50:55]wFMCommunicate OK [14:50:55]SAM_PROTO_SignData done [14:50:55]FM_MakeSignedData done [14:50:55]CreateOFDProtocolMessage [14:50:55]wFMCommunicate request_size=4 [14:50:55]MH_SAM_APDU [14:50:55]CAPDU: 80 11 00 00 [14:50:55]Write to MH i2c: E2 08 00 9F 2E 80 11 00 00 00 00 00 00 47 [14:50:55]Write i2c OK [14:50:55]MH_I2C_Read... [14:50:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:50:55]Read from MH i2c: E2 [14:50:55]MH_I2C_Read... [14:50:55]Read from MH i2c: E2 17 00 [14:50:55]MH_I2C_Read... [14:50:55]Read from MH i2c: E2 17 00 9F 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 A5 [14:50:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [14:50:55]wFMCommunicate OK [14:50:55]CreateOFDProtocolMessage done [14:50:55]OFDSenderStorePacket 123264 [14:50:55]StoreOFDPacket docnum=123264 [14:50:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 EB B0 07 01 99 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 51 8E E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 80 E1 01 00 35 04 06 00 88 0C 43 92 48 3E FE D3 34 4B 82 13 EF E6 [14:50:55]CheckFolder [14:50:55]dirname=/storage/ofd_packets [14:50:55]CheckFolder done [14:50:55]ProducePacketName [14:50:55]name=ofd_packets/00123264 [14:50:55]NVStorageSaveData ofd_packets/00123264 [14:50:55]File name is /storage/ofd_packets/00123264 [14:50:55]Write 301 bytes [14:50:55]NVStorageSaveData done [14:50:55]OFDSenderStorePacket done [14:50:55]KKMCreateOFDPacket done [14:50:55]NVStorageSaveData kkm_last_timestamp [14:50:55]File name is /storage/kkm_last_timestamp [14:50:55]Write 4 bytes [14:50:55]NVStorageSaveData done [14:50:55]ExternCall_PrintAddStr [14:50:55]wPrintStart [14:50:55]Write to MH i2c: 01 00 00 A0 2E CE [14:50:55]Write i2c OK [14:50:55]MH_I2C_Read... [14:50:55]Read from MH i2c: 01 [14:50:55]MH_I2C_Read... [14:50:55]Read from MH i2c: 01 07 00 [14:50:55]MH_I2C_Read... [14:50:55]Read from MH i2c: 01 07 00 A0 2E 00 00 00 00 00 FF 0F E3 [14:50:55]RasterBufferAndPrint [14:50:55]line Счет N : (1)1106199 [14:50:55]line ИНН: 02508201610067 [14:50:55]line Контрольно-Кассовый Чек [14:50:55]line ПРОДАЖА [14:50:55]line ТРК (МРК, ГНК) : 11 [14:50:55]line Товар: 2710124130 [14:50:55]line Аи-92-К-5 [14:50:55]line 8.080 * 61.90 [14:50:55]line = 500.15 [14:50:55]line НДС 12% НСП 1% [14:50:55]line > о реализуемом товаре [14:50:55]line ИТОГО: 500.15 [14:50:55]line НСП 1% : 4.43 [14:50:55]line НДС 12% : 53.11 [14:50:55]line Наличными: 0.00 [14:50:55]line Безнал.: 500.15 [14:50:55]line Место: АЗС № 25 "Партнер Нефть" [14:50:55]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [14:50:55]line СНО: Общий режим [14:50:55]line Чек 121 03.03.2024 14:50 [14:50:55]line Смена: 323 ФФД: 1.0 [14:50:55]line ЗНМ: 0300000019 [14:50:55]line РНМ: 0000000000090573 [14:50:55]line Версия ККМ: 001 [14:50:55]line Платежная система: О! деньги [14:50:55]line ФМ: 0000000000874798 [14:50:55]line ФД: 123264 [14:50:55]line ФПД: 149586254645310 [14:50:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T145057&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123264&fm=149586254645310&tin=02508201610067®Number=0000000000090573&sum=50015 [14:50:55]OFD Sender: Processing packet 123264 [packets to send 112, broken 111] [14:50:55]ProducePacketName [14:50:55]name=ofd_packets/00123264 [14:50:55]OFD Sender: To server: pG, [14:50:55]CommunicateWithHost lk.salyk.kg:30040 [14:50:55]ConnectInit lk.salyk.kg [14:50:55]written 0, free lines is 4095 [14:50:55]Connected sock=7 [14: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 37 39 38 0F 01 00 00 EB B0 07 01 99 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 51 8E E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 80 E1 01 00 35 04 06 00 88 0C 43 92 48 3E FE D3 34 4B 82 13 EF E6 [14:50:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 5A 7A 47 00 AD E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 80 E1 01 00 F4 03 04 00 7C 3A E4 65 B6 04 01 00 00 99 BE 5C 49 E3 94 35 45 [14:50:55]CommunicateWithHost err = 0 [14:50:55]CheckOFDResponse [14:50:55]1017 (14) - 77093643461234 [14:50:55]1041 (16) - 0000000000874798 [14:50:55]1040 (4) - 123264 [14:50:55]1012 (4) - 03.03.2024 08:53 [14:50:55]1206 (1) - 0 [14:50:55]OFD Sender: Remove packet 123264 [14:50:55]ProducePacketName [14:50:55]name=ofd_packets/00123264 [14:50:55]NVStorageDeleteData [14:50:55]Write to MH i2c: 01 00 00 CA 2E F8 [14:50:55]Write i2c OK [14:50:55]MH_I2C_Read... [14:50:55]Read from MH i2c: 01 [14:50:55]MH_I2C_Read... [14:50:55]Read from MH i2c: 01 07 00 [14:50:55]MH_I2C_Read... [14:50:55]Read from MH i2c: 01 07 00 CA 2E 00 00 00 00 00 FA 0C 05 [14:50:55]RasterBufferAndPrint [14:50:55]line [14:50:55]line [14:50:55]line [14:50:55]line [14:50:55]line [14:50:55]written 0, free lines is 3331 [14:50:55]MH_Cut [14:50:55]Write to MH i2c: D1 01 00 D1 2E 01 D1 [14:50:55]Write i2c OK [14:50:55]MH_I2C_Read... [14:50:55]Read from MH i2c: D1 [14:50:55]MH_I2C_Read... [14:50:55]Read from MH i2c: D1 01 00 [14:50:55]MH_I2C_Read... [14:50:55]Read from MH i2c: D1 01 00 D1 2E 00 D0 [14:50:55]Write to MH i2c: 01 00 00 D2 2E 00 [14:50:56]Write i2c OK [14:50:56]MH_I2C_Read... [14:50:56]OFD Sender: No OFD packet to send [14:50:56]*** Cut start [14:50:56]*** Purtial cut [14:50:56]*** Stage 1: CUTSNS_PIN = 1 [14:50:58]Read from MH i2c: 01 [14:50:58]MH_I2C_Read... [14:50:58]*** Stop cut motor [14:50:58]*** Cut end [14:50:58]Read from MH i2c: 01 07 00 [14:50:58]MH_I2C_Read... [14:50:58]Read from MH i2c: 01 07 00 D2 2E 00 00 00 00 00 FF 0F 15 [14:50:58]process_action close_receipt done [14:50:58]requested_data is exist [14:50:58]produce_requested_data [14:50:58]requested_item fm.sn is exist - process it [14:50:58]wFMCommunicate request_size=4 [14:50:58]MH_SAM_APDU [14:50:58]CAPDU: 80 11 00 00 [14:50:58]Write to MH i2c: E2 08 00 D3 2E 80 11 00 00 00 00 00 00 7B [14:50:58]Write i2c OK [14:50:58]MH_I2C_Read... [14:50:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:50:58]Read from MH i2c: E2 [14:50:58]MH_I2C_Read... [14:50:58]Read from MH i2c: E2 17 00 [14:50:58]MH_I2C_Read... [14:50:58]Read from MH i2c: E2 17 00 D3 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 D9 [14:50:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [14:50:58]wFMCommunicate OK [14:50:58]requested_item fd.num is exist - process it [14:50:58]SAM_PROTO_GetFieldsCounters [14:50:58]wFMCommunicate request_size=4 [14:50:58]MH_SAM_APDU [14:50:58]CAPDU: 80 13 00 00 [14:50:58]Write to MH i2c: E2 08 00 D4 2E 80 13 00 00 00 00 00 00 7E [14:50:58]Write i2c OK [14:50:58]MH_I2C_Read... [14:50:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:50:58]Read from MH i2c: E2 [14:50:58]MH_I2C_Read... [14:50:58]Read from MH i2c: E2 62 00 [14:50:58]MH_I2C_Read... [14:50:58]Read from MH i2c: E2 62 00 D4 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 80 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 BA [14:50:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 80 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:50:58]wFMCommunicate OK [14:50:58]SAM_PROTO_GetFieldsCounters done [14:50:58]requested_item shift.num is exist - process it [14:50:58]requested_item shift.opened is exist - process it [14:50:58]req_shift_opened [14:50:58]FM_GetShiftState [14:50:58]SAM_PROTO_GetShiftState [14:50:58]wFMCommunicate request_size=4 [14:50:58]MH_SAM_APDU [14:50:58]CAPDU: 80 13 01 00 [14:50:58]Write to MH i2c: E2 08 00 D5 2E 80 13 01 00 00 00 00 00 80 [14:50:58]Write i2c OK [14:50:58]MH_I2C_Read... [14:50:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:50:58]Read from MH i2c: E2 [14:50:58]MH_I2C_Read... [14:50:58]Read from MH i2c: E2 0E 00 [14:50:58]MH_I2C_Read... [14:50:58]Read from MH i2c: E2 0E 00 D5 2E 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 42 [14:50:58]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [14:50:58]wFMCommunicate OK [14:50:58]SAM_PROTO_GetShiftState done [14:50:58]FM_GetShiftState done [14:50:58]req_shift_opened done [14:50:58]requested_item shift.open_date is exist - process it [14:50:58]req_shift_open_date [14:50:58]req_shift_open_date done [14:50:58]produce_requested_data done [14:50:58]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123264,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [14:50:58]process_action_free close_receipt [14:50:58]json_value_free [14:50:58]json_value_free done [14:50:58]process_json_proto returns [14:50:58]Send response to host [14:50:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123264,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [14:50:58]free response buf [14:50:58]execute_script done [14:50:58]execute_script returns [14:50:58]free content buf [14:50:58]Sock 9.Close socket [14:50:58]Sock 9.Thread stoped [14:51:01]OFD Sender: No OFD packet to send [14:51:06]OFD Sender: No OFD packet to send [14:51:11]OFD Sender: No OFD packet to send [14:51:16]OFD Sender: No OFD packet to send [14:51:21]OFD Sender: No OFD packet to send [14:51:26]OFD Sender: No OFD packet to send [14:51:31]OFD Sender: No OFD packet to send [14:51:36]OFD Sender: No OFD packet to send [14:51:41]OFD Sender: No OFD packet to send [14:51:46]OFD Sender: No OFD packet to send [14:51:51]OFD Sender: No OFD packet to send [14:51:56]OFD Sender: No OFD packet to send [14:52:01]OFD Sender: No OFD packet to send [14:52:06]OFD Sender: No OFD packet to send [14:52:11]OFD Sender: No OFD packet to send [14:52:16]OFD Sender: No OFD packet to send [14:52:21]OFD Sender: No OFD packet to send [14:52:26]OFD Sender: No OFD packet to send [14:52:31]OFD Sender: No OFD packet to send [14:52:36]OFD Sender: No OFD packet to send [14:52:41]OFD Sender: No OFD packet to send [14:52:46]OFD Sender: No OFD packet to send [14:52:47]accept exits with 10 [14:52:47]New connection [14:52:47]New thread 3067395428 created [14:52:47]Thread 3067252068 joined [14:52:47]Waiting for new connection... [14:52:47] Sock 10.Parse request [14:52:47]Sock 10.Check first char [14:52:47]Sock 10.First char is OK [14:52:47]request: POST /json_proto HTTP/1.0 [14:52:47]Method: POST [14:52:47]URL: /json_proto [14:52:47]Method is POST - this is cgi request [14:52:47]url: /json_proto [14:52:47]query_string will be loaded in cgi processing [14:52:47]execute_cgi json_proto POST (null) [14:52:47]execute_cgi path=json_proto method=POST [14:52:47]POST find Content-Length [14:52:47]Host: 172.17.48.197:8080 [14:52:47]Content-Length: 683 [14:52:47]Content-Type: application/json [14:52:47] [14:52:47]POST finish read [14:52:47]Found Content-Length = 683 [14:52:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106201", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "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" ] } } [14:52:47]execute_script... [14:52: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)1106201", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "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" ] } } [14:52:47]POST & json_proto [14:52:47]process_json_proto [14:52:47]json parsed OK: [14:52:47]protocol is kg_v1.0 [14:52:47]action value=close_receipt [14:52:47]process_action close_receipt [14:52:47]cmd_close_receipt [14:52:47]MH_GetDate [14:52:47]Write to MH i2c: F0 00 00 D6 2E F3 [14:52:47]Write i2c OK [14:52:47]MH_I2C_Read... [14:52:47]Read from MH i2c: F0 [14:52:47]MH_I2C_Read... [14:52:47]Read from MH i2c: F0 09 00 [14:52:47]MH_I2C_Read... [14:52:47]Read from MH i2c: F0 09 00 D6 2E 00 C3 8E E4 65 6C AF E3 65 F9 [14:52:47]GetLastDocTimeStamp 1709477457 [14:52:47]current date 1709477571 [14:52:47]FM_GetShiftState [14:52:47]SAM_PROTO_GetShiftState [14:52:47]wFMCommunicate request_size=4 [14:52:47]MH_SAM_APDU [14:52:47]CAPDU: 80 13 01 00 [14:52:47]Write to MH i2c: E2 08 00 D7 2E 80 13 01 00 00 00 00 00 82 [14:52:47]Write i2c OK [14:52:47]MH_I2C_Read... [14:52:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:52:47]Read from MH i2c: E2 [14:52:47]MH_I2C_Read... [14:52:47]Read from MH i2c: E2 0E 00 [14:52:47]MH_I2C_Read... [14:52:47]Read from MH i2c: E2 0E 00 D7 2E 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 44 [14:52:47]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [14:52:47]wFMCommunicate OK [14:52:47]SAM_PROTO_GetShiftState done [14:52:47]FM_GetShiftState done [14:52:47]opened in 1709425579 [14:52:47]opened+sec_in_day 1709511979 [14:52:47]quantity*price = 100030 [14:52:47]sum+1 = 100031 [14:52:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 122 03.03.2024 14:52 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123265 ФПД: 36583271005802 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T145251&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123265&fm=36583271005802&tin=02508201610067®Number=0000000000090573&sum=100000 [14:52:48]StoreToDocumentArchive [14:52:48]shift 323 fd 123265 [14:52:48]save to /storage/0323/doc_00123265 [14:52:48]save last doc name /storage/0323/doc_00123265 to /storage/kkm_last_doc_name [14:52:48]save OK [14:52:48]Clear old archive folders... [14:52:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:52:48]tlvbuf is 00E4DE60 [14:52:48]SAM_PROTO_ClearQueue [14:52:48]wFMCommunicate request_size=4 [14:52:48]MH_SAM_APDU [14:52:48]CAPDU: 80 09 00 00 [14:52:48]Write to MH i2c: E2 08 00 E4 2E 80 09 00 00 00 00 00 00 84 [14:52:48]Write i2c OK [14:52:48]MH_I2C_Read... [14:52:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:52:48]Read from MH i2c: E2 [14:52:48]MH_I2C_Read... [14:52:48]Read from MH i2c: E2 03 00 [14:52:48]MH_I2C_Read... [14:52:48]Read from MH i2c: E2 03 00 E4 2E 00 90 00 86 [14:52:48]RAPDU: 90 00 [14:52:48]wFMCommunicate OK [14:52:48]SAM_PROTO_ClearQueue done [14:52:48]KKMCreateOFDPacket [14:52:48]OFDProtocolAddRootSTLVToBuf [14:52:48]FM_MakeSignedData [14:52:48]FM_MakeSignedData [14:52:48]SAM_PROTO_SignData [14:52:48]wFMCommunicate request_size=4 [14:52:48]MH_SAM_APDU [14:52:48]CAPDU: 80 0D 01 02 [14:52:48]Write to MH i2c: E2 08 00 E5 2E 80 0D 01 02 00 00 00 00 8C [14:52:48]Write i2c OK [14:52:48]MH_I2C_Read... [14:52:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:52:48]Read from MH i2c: E2 [14:52:48]MH_I2C_Read... [14:52:48]Read from MH i2c: E2 03 00 [14:52:48]MH_I2C_Read... [14:52:48]Read from MH i2c: E2 03 00 E5 2E 00 90 00 87 [14:52:48]RAPDU: 90 00 [14:52:48]wFMCommunicate OK [14:52:48]wFMCommunicate request_size=255 [14:52:48]MH_SAM_APDU [14:52:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 7A 00 00 00 F4 03 04 00 C3 8E E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 81 E1 01 00 35 04 06 00 21 [14:52:48]Write to MH i2c: E2 02 01 E6 2E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 7A 00 00 00 F4 03 04 00 C3 8E E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 81 E1 01 00 35 04 06 00 21 00 00 D4 [14:52:48]Write i2c OK [14:52:48]MH_I2C_Read... [14:52:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:52:49]Read from MH i2c: E2 [14:52:49]MH_I2C_Read... [14:52:49]Read from MH i2c: E2 03 00 [14:52:49]MH_I2C_Read... [14:52:49]Read from MH i2c: E2 03 00 E6 2E 00 90 00 88 [14:52:49]RAPDU: 90 00 [14:52:49]wFMCommunicate OK [14:52:49]wFMCommunicate request_size=10 [14:52:49]MH_SAM_APDU [14:52:49]CAPDU: 80 0D 02 02 05 45 B4 DF 7E 6A [14:52:49]Write to MH i2c: E2 0D 00 E7 2E 80 0D 02 02 05 00 45 B4 DF 7E 6A 00 00 59 [14:52:49]Write i2c OK [14:52:49]MH_I2C_Read... [14:52:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:52:49]Read from MH i2c: E2 [14:52:49]MH_I2C_Read... [14:52:49]Read from MH i2c: E2 03 00 [14:52:49]MH_I2C_Read... [14:52:49]Read from MH i2c: E2 03 00 E7 2E 00 90 00 89 [14:52:49]RAPDU: 90 00 [14:52:49]wFMCommunicate OK [14:52:49]wFMCommunicate request_size=4 [14:52:49]MH_SAM_APDU [14:52:49]CAPDU: 80 0D 03 02 [14:52:49]Write to MH i2c: E2 08 00 E8 2E 80 0D 03 02 00 00 00 00 91 [14:52:49]Write i2c OK [14:52:49]MH_I2C_Read... [14:52:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:52:49]Read from MH i2c: E2 [14:52:49]MH_I2C_Read... [14:52:49]Read from MH i2c: E2 0B 00 [14:52:49]MH_I2C_Read... [14:52:49]Read from MH i2c: E2 0B 00 E8 2E 00 4A FC 17 50 43 DB 72 5E 90 00 2D [14:52:49]RAPDU: 4A FC 17 50 43 DB 72 5E 90 00 [14:52:49]wFMCommunicate OK [14:52:49]SAM_PROTO_SignData done [14:52:49]FM_MakeSignedData done [14:52:49]CreateOFDProtocolMessage [14:52:49]wFMCommunicate request_size=4 [14:52:49]MH_SAM_APDU [14:52:49]CAPDU: 80 11 00 00 [14:52:49]Write to MH i2c: E2 08 00 E9 2E 80 11 00 00 00 00 00 00 91 [14:52:49]Write i2c OK [14:52:49]MH_I2C_Read... [14:52:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:52:49]Read from MH i2c: E2 [14:52:49]MH_I2C_Read... [14:52:49]Read from MH i2c: E2 17 00 [14:52:49]MH_I2C_Read... [14:52:49]Read from MH i2c: E2 17 00 E9 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 EF [14:52:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [14:52:49]wFMCommunicate OK [14:52:49]CreateOFDProtocolMessage done [14:52:49]OFDSenderStorePacket 123265 [14:52:49]StoreOFDPacket docnum=123265 [14:52:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 24 07 07 01 D1 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 7A 00 00 00 F4 03 04 00 C3 8E E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 81 E1 01 00 35 04 06 00 21 45 B4 DF 7E 6A 4A FC 17 50 43 DB 72 5E [14:52:49]CheckFolder [14:52:49]dirname=/storage/ofd_packets [14:52:49]CheckFolder done [14:52:49]ProducePacketName [14:52:49]name=ofd_packets/00123265 [14:52:49]NVStorageSaveData ofd_packets/00123265 [14:52:49]File name is /storage/ofd_packets/00123265 [14:52:49]Write 301 bytes [14:52:49]NVStorageSaveData done [14:52:49]OFDSenderStorePacket done [14:52:49]KKMCreateOFDPacket done [14:52:49]NVStorageSaveData kkm_last_timestamp [14:52:49]File name is /storage/kkm_last_timestamp [14:52:49]Write 4 bytes [14:52:49]NVStorageSaveData done [14:52:49]ExternCall_PrintAddStr [14:52:49]wPrintStart [14:52:49]Write to MH i2c: 01 00 00 EA 2E 18 [14:52:49]Write i2c OK [14:52:49]MH_I2C_Read... [14:52:49]Read from MH i2c: 01 [14:52:49]MH_I2C_Read... [14:52:49]Read from MH i2c: 01 07 00 [14:52:49]MH_I2C_Read... [14:52:49]Read from MH i2c: 01 07 00 EA 2E 00 00 00 00 00 FF 0F 2D [14:52:49]RasterBufferAndPrint [14:52:49]line Счет N : (1)1106201 [14:52:49]line ИНН: 02508201610067 [14:52:49]line Контрольно-Кассовый Чек [14:52:49]line ПРОДАЖА [14:52:49]line ТРК (МРК, ГНК) : 21 [14:52:49]line Товар: 2710124130 [14:52:49]line Аи-92-К-5 [14:52:49]line 16.160 * 61.90 [14:52:49]line = 1000.30 [14:52:49]line НДС 12% НСП 1% [14:52:49]line > о реализуемом товаре [14:52:49]line ОКРУГЛЕНИЕ: -0.30 [14:52:49]line ИТОГО: 1000.00 [14:52:49]line Внесено: 1000.00 [14:52:49]line СДАЧА: 0.00 [14:52:49]line НСП 1% : 8.85 [14:52:49]line НДС 12% : 106.23 [14:52:49]line Наличными: 1000.00 [14:52:49]line Безнал.: 0.00 [14:52:49]line Место: АЗС № 25 "Партнер Нефть" [14:52:49]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [14:52:49]line СНО: Общий режим [14:52:49]line Чек 122 03.03.2024 14:52 [14:52:49]line Смена: 323 ФФД: 1.0 [14:52:49]line ЗНМ: 0300000019 [14:52:49]line РНМ: 0000000000090573 [14:52:49]line Версия ККМ: 001 [14:52:49]line ФМ: 0000000000874798 [14:52:49]line ФД: 123265 [14:52:49]line ФПД: 36583271005802 [14:52:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T145251&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123265&fm=36583271005802&tin=02508201610067®Number=0000000000090573&sum=100000 [14:52:49]OFD Sender: Processing packet 123265 [packets to send 112, broken 111] [14:52:49]ProducePacketName [14:52:49]name=ofd_packets/00123265 [14:52:49]OFD Sender: To server: pG, [14:52:49]CommunicateWithHost lk.salyk.kg:30040 [14:52:49]ConnectInit lk.salyk.kg [14:52:49]written 0, free lines is 4095 [14:52:49]Connected sock=9 [14:52: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 37 39 38 0F 01 00 00 24 07 07 01 D1 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 7A 00 00 00 F4 03 04 00 C3 8E E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 81 E1 01 00 35 04 06 00 21 45 B4 DF 7E 6A 4A FC 17 50 43 DB 72 5E [14:52:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 32 9F 47 00 EA 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 81 E1 01 00 F4 03 04 00 EE 3A E4 65 B6 04 01 00 00 69 FE 9C E7 C2 12 6B 31 [14:52:49]CommunicateWithHost err = 0 [14:52:49]CheckOFDResponse [14:52:49]1017 (14) - 77093643461234 [14:52:49]1041 (16) - 0000000000874798 [14:52:49]1040 (4) - 123265 [14:52:49]1012 (4) - 03.03.2024 08:55 [14:52:49]1206 (1) - 0 [14:52:49]OFD Sender: Remove packet 123265 [14:52:49]ProducePacketName [14:52:49]name=ofd_packets/00123265 [14:52:49]NVStorageDeleteData [14:52:50]Write to MH i2c: 01 00 00 15 2F 44 [14:52:50]Write i2c OK [14:52:50]MH_I2C_Read... [14:52:50]Read from MH i2c: 01 [14:52:50]MH_I2C_Read... [14:52:50]Read from MH i2c: 01 07 00 [14:52:50]MH_I2C_Read... [14:52:50]Read from MH i2c: 01 07 00 15 2F 00 00 00 00 00 F6 0C 4D [14:52:50]RasterBufferAndPrint [14:52:50]line [14:52:50]line [14:52:50]line [14:52:50]line [14:52:50]line [14:52:50]written 0, free lines is 3324 [14:52:50]MH_Cut [14:52:50]Write to MH i2c: D1 01 00 1C 2F 01 1D [14:52:50]Write i2c OK [14:52:50]MH_I2C_Read... [14:52:50]Read from MH i2c: D1 [14:52:50]MH_I2C_Read... [14:52:50]Read from MH i2c: D1 01 00 [14:52:50]MH_I2C_Read... [14:52:50]Read from MH i2c: D1 01 00 1C 2F 00 1C [14:52:50]Write to MH i2c: 01 00 00 1D 2F 4C [14:52:50]Write i2c OK [14:52:50]MH_I2C_Read... [14:52:50]OFD Sender: No OFD packet to send [14:52:50]*** Cut start [14:52:50]*** Purtial cut [14:52:50]*** Stage 1: CUTSNS_PIN = 1 [14:52:52]Read from MH i2c: 01 [14:52:52]MH_I2C_Read... [14:52:52]*** Stop cut motor [14:52:52]*** Cut end [14:52:52]Read from MH i2c: 01 07 00 [14:52:52]MH_I2C_Read... [14:52:52]Read from MH i2c: 01 07 00 1D 2F 00 00 00 00 00 FF 0F 61 [14:52:52]process_action close_receipt done [14:52:52]requested_data is exist [14:52:52]produce_requested_data [14:52:52]requested_item fm.sn is exist - process it [14:52:52]wFMCommunicate request_size=4 [14:52:52]MH_SAM_APDU [14:52:52]CAPDU: 80 11 00 00 [14:52:52]Write to MH i2c: E2 08 00 1E 2F 80 11 00 00 00 00 00 00 C7 [14:52:52]Write i2c OK [14:52:52]MH_I2C_Read... [14:52:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:52:52]Read from MH i2c: E2 [14:52:52]MH_I2C_Read... [14:52:52]Read from MH i2c: E2 17 00 [14:52:52]MH_I2C_Read... [14:52:52]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 37 39 38 90 00 25 [14:52:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [14:52:52]wFMCommunicate OK [14:52:52]requested_item fd.num is exist - process it [14:52:52]SAM_PROTO_GetFieldsCounters [14:52:52]wFMCommunicate request_size=4 [14:52:52]MH_SAM_APDU [14:52:52]CAPDU: 80 13 00 00 [14:52:52]Write to MH i2c: E2 08 00 1F 2F 80 13 00 00 00 00 00 00 CA [14:52:52]Write i2c OK [14:52:52]MH_I2C_Read... [14:52:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:52:52]Read from MH i2c: E2 [14:52:52]MH_I2C_Read... [14:52:52]Read from MH i2c: E2 62 00 [14:52:52]MH_I2C_Read... [14:52:52]Read from MH i2c: E2 62 00 1F 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 81 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 0A [14:52: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 81 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:52:52]wFMCommunicate OK [14:52:52]SAM_PROTO_GetFieldsCounters done [14:52:52]requested_item shift.num is exist - process it [14:52:52]requested_item shift.opened is exist - process it [14:52:52]req_shift_opened [14:52:52]FM_GetShiftState [14:52:52]SAM_PROTO_GetShiftState [14:52:52]wFMCommunicate request_size=4 [14:52:52]MH_SAM_APDU [14:52:52]CAPDU: 80 13 01 00 [14:52:52]Write to MH i2c: E2 08 00 20 2F 80 13 01 00 00 00 00 00 CC [14:52:52]Write i2c OK [14:52:52]MH_I2C_Read... [14:52:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:52:52]Read from MH i2c: E2 [14:52:52]MH_I2C_Read... [14:52:52]Read from MH i2c: E2 0E 00 [14:52:52]MH_I2C_Read... [14:52:52]Read from MH i2c: E2 0E 00 20 2F 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 8E [14:52:52]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [14:52:52]wFMCommunicate OK [14:52:52]SAM_PROTO_GetShiftState done [14:52:52]FM_GetShiftState done [14:52:52]req_shift_opened done [14:52:52]requested_item shift.open_date is exist - process it [14:52:52]req_shift_open_date [14:52:52]req_shift_open_date done [14:52:52]produce_requested_data done [14:52:52]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123265,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [14:52:52]process_action_free close_receipt [14:52:52]json_value_free [14:52:52]json_value_free done [14:52:52]process_json_proto returns [14:52:52]Send response to host [14:52:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123265,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [14:52:52]free response buf [14:52:52]execute_script done [14:52:52]execute_script returns [14:52:52]free content buf [14:52:52]Sock 10.Close socket [14:52:52]Sock 10.Thread stoped [14:52:55]OFD Sender: No OFD packet to send [14:53:00]OFD Sender: No OFD packet to send [14:53:05]OFD Sender: No OFD packet to send [14:53:10]OFD Sender: No OFD packet to send [14:53:15]OFD Sender: No OFD packet to send [14:53:20]OFD Sender: No OFD packet to send [14:53:25]OFD Sender: No OFD packet to send [14:53:30]OFD Sender: No OFD packet to send [14:53:35]OFD Sender: No OFD packet to send [14:53:40]OFD Sender: No OFD packet to send [14:53:45]OFD Sender: No OFD packet to send [14:53:50]OFD Sender: No OFD packet to send [14:53:55]OFD Sender: No OFD packet to send [14:54:00]OFD Sender: No OFD packet to send [14:54:05]OFD Sender: No OFD packet to send [14:54:10]OFD Sender: No OFD packet to send [14:54:15]OFD Sender: No OFD packet to send [14:54:17]accept exits with 7 [14:54:17]New connection [14:54:17]New thread 3067252068 created [14:54:17]Thread 3067395428 joined [14:54:17]Waiting for new connection... [14:54:17] Sock 7.Parse request [14:54:17]Sock 7.Check first char [14:54:17]Sock 7.First char is OK [14:54:17]request: POST /json_proto HTTP/1.0 [14:54:17]Method: POST [14:54:17]URL: /json_proto [14:54:17]Method is POST - this is cgi request [14:54:17]url: /json_proto [14:54:17]query_string will be loaded in cgi processing [14:54:17]execute_cgi json_proto POST (null) [14:54:17]execute_cgi path=json_proto method=POST [14:54:17]POST find Content-Length [14:54:17]Host: 172.17.48.197:8080 [14:54:17]Content-Length: 683 [14:54:17]Content-Type: application/json [14:54:17] [14:54:17]POST finish read [14:54:17]Found Content-Length = 683 [14:54:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106202", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:54:17]execute_script... [14:54:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106202", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:54:17]POST & json_proto [14:54:17]process_json_proto [14:54:17]json parsed OK: [14:54:17]protocol is kg_v1.0 [14:54:17]action value=close_receipt [14:54:17]process_action close_receipt [14:54:17]cmd_close_receipt [14:54:17]MH_GetDate [14:54:17]Write to MH i2c: F0 00 00 21 2F 3F [14:54:17]Write i2c OK [14:54:17]MH_I2C_Read... [14:54:17]Read from MH i2c: F0 [14:54:17]MH_I2C_Read... [14:54:17]Read from MH i2c: F0 09 00 [14:54:17]MH_I2C_Read... [14:54:17]Read from MH i2c: F0 09 00 21 2F 00 1C 8F E4 65 6C AF E3 65 9F [14:54:17]GetLastDocTimeStamp 1709477571 [14:54:17]current date 1709477660 [14:54:17]FM_GetShiftState [14:54:17]SAM_PROTO_GetShiftState [14:54:17]wFMCommunicate request_size=4 [14:54:17]MH_SAM_APDU [14:54:17]CAPDU: 80 13 01 00 [14:54:17]Write to MH i2c: E2 08 00 22 2F 80 13 01 00 00 00 00 00 CE [14:54:17]Write i2c OK [14:54:17]MH_I2C_Read... [14:54:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:17]Read from MH i2c: E2 [14:54:17]MH_I2C_Read... [14:54:17]Read from MH i2c: E2 0E 00 [14:54:17]MH_I2C_Read... [14:54:17]Read from MH i2c: E2 0E 00 22 2F 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 90 [14:54:17]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [14:54:17]wFMCommunicate OK [14:54:17]SAM_PROTO_GetShiftState done [14:54:17]FM_GetShiftState done [14:54:17]opened in 1709425579 [14:54:17]opened+sec_in_day 1709511979 [14:54:17]quantity*price = 100010 [14:54:17]sum+1 = 100012 [14:54:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 123 03.03.2024 14:54 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123266 ФПД: 35601870849447 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T145420&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123266&fm=35601870849447&tin=02508201610067®Number=0000000000090573&sum=100000 [14:54:18]StoreToDocumentArchive [14:54:18]shift 323 fd 123266 [14:54:18]save to /storage/0323/doc_00123266 [14:54:18]save last doc name /storage/0323/doc_00123266 to /storage/kkm_last_doc_name [14:54:18]save OK [14:54:18]Clear old archive folders... [14:54:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:54:18]tlvbuf is B6FC1190 [14:54:18]SAM_PROTO_ClearQueue [14:54:18]wFMCommunicate request_size=4 [14:54:18]MH_SAM_APDU [14:54:18]CAPDU: 80 09 00 00 [14:54:18]Write to MH i2c: E2 08 00 2F 2F 80 09 00 00 00 00 00 00 D0 [14:54:18]Write i2c OK [14:54:18]MH_I2C_Read... [14:54:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:54:18]Read from MH i2c: E2 [14:54:18]MH_I2C_Read... [14:54:18]Read from MH i2c: E2 03 00 [14:54:18]MH_I2C_Read... [14:54:18]Read from MH i2c: E2 03 00 2F 2F 00 90 00 D2 [14:54:18]RAPDU: 90 00 [14:54:18]wFMCommunicate OK [14:54:18]SAM_PROTO_ClearQueue done [14:54:18]KKMCreateOFDPacket [14:54:18]OFDProtocolAddRootSTLVToBuf [14:54:18]FM_MakeSignedData [14:54:18]FM_MakeSignedData [14:54:18]SAM_PROTO_SignData [14:54:18]wFMCommunicate request_size=4 [14:54:18]MH_SAM_APDU [14:54:18]CAPDU: 80 0D 01 02 [14:54:18]Write to MH i2c: E2 08 00 30 2F 80 0D 01 02 00 00 00 00 D8 [14:54:18]Write i2c OK [14:54:18]MH_I2C_Read... [14:54:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:54:18]Read from MH i2c: E2 [14:54:18]MH_I2C_Read... [14:54:18]Read from MH i2c: E2 03 00 [14:54:18]MH_I2C_Read... [14:54:18]Read from MH i2c: E2 03 00 30 2F 00 90 00 D3 [14:54:18]RAPDU: 90 00 [14:54:18]wFMCommunicate OK [14:54:18]wFMCommunicate request_size=255 [14:54:18]MH_SAM_APDU [14:54:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 1C 8F E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 82 E1 01 00 35 04 06 00 20 [14:54:18]Write to MH i2c: E2 02 01 31 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 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 1C 8F E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 82 E1 01 00 35 04 06 00 20 00 00 74 [14:54:18]Write i2c OK [14:54:18]MH_I2C_Read... [14:54:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:18]Read from MH i2c: E2 [14:54:18]MH_I2C_Read... [14:54:18]Read from MH i2c: E2 03 00 [14:54:18]MH_I2C_Read... [14:54:18]Read from MH i2c: E2 03 00 31 2F 00 90 00 D4 [14:54:18]RAPDU: 90 00 [14:54:18]wFMCommunicate OK [14:54:18]wFMCommunicate request_size=10 [14:54:18]MH_SAM_APDU [14:54:18]CAPDU: 80 0D 02 02 05 61 34 DD 85 A7 [14:54:18]Write to MH i2c: E2 0D 00 32 2F 80 0D 02 02 05 00 61 34 DD 85 A7 00 00 83 [14:54:18]Write i2c OK [14:54:18]MH_I2C_Read... [14:54:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:18]Read from MH i2c: E2 [14:54:18]MH_I2C_Read... [14:54:18]Read from MH i2c: E2 03 00 [14:54:18]MH_I2C_Read... [14:54:18]Read from MH i2c: E2 03 00 32 2F 00 90 00 D5 [14:54:18]RAPDU: 90 00 [14:54:18]wFMCommunicate OK [14:54:18]wFMCommunicate request_size=4 [14:54:18]MH_SAM_APDU [14:54:18]CAPDU: 80 0D 03 02 [14:54:18]Write to MH i2c: E2 08 00 33 2F 80 0D 03 02 00 00 00 00 DD [14:54:18]Write i2c OK [14:54:18]MH_I2C_Read... [14:54:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:54:18]Read from MH i2c: E2 [14:54:18]MH_I2C_Read... [14:54:18]Read from MH i2c: E2 0B 00 [14:54:18]MH_I2C_Read... [14:54:18]Read from MH i2c: E2 0B 00 33 2F 00 D6 27 5C 79 78 CF 4D 50 90 00 94 [14:54:18]RAPDU: D6 27 5C 79 78 CF 4D 50 90 00 [14:54:18]wFMCommunicate OK [14:54:18]SAM_PROTO_SignData done [14:54:18]FM_MakeSignedData done [14:54:18]CreateOFDProtocolMessage [14:54:18]wFMCommunicate request_size=4 [14:54:18]MH_SAM_APDU [14:54:18]CAPDU: 80 11 00 00 [14:54:18]Write to MH i2c: E2 08 00 34 2F 80 11 00 00 00 00 00 00 DD [14:54:18]Write i2c OK [14:54:18]MH_I2C_Read... [14:54:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:18]Read from MH i2c: E2 [14:54:18]MH_I2C_Read... [14:54:18]Read from MH i2c: E2 17 00 [14:54:18]MH_I2C_Read... [14:54:18]Read from MH i2c: E2 17 00 34 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 3B [14:54:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [14:54:18]wFMCommunicate OK [14:54:18]CreateOFDProtocolMessage done [14:54:18]OFDSenderStorePacket 123266 [14:54:18]StoreOFDPacket docnum=123266 [14:54:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 09 89 07 01 FD AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 1C 8F E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 82 E1 01 00 35 04 06 00 20 61 34 DD 85 A7 D6 27 5C 79 78 CF 4D 50 [14:54:18]CheckFolder [14:54:18]dirname=/storage/ofd_packets [14:54:18]CheckFolder done [14:54:18]ProducePacketName [14:54:18]name=ofd_packets/00123266 [14:54:18]NVStorageSaveData ofd_packets/00123266 [14:54:18]File name is /storage/ofd_packets/00123266 [14:54:18]Write 301 bytes [14:54:18]NVStorageSaveData done [14:54:18]OFDSenderStorePacket done [14:54:18]KKMCreateOFDPacket done [14:54:18]NVStorageSaveData kkm_last_timestamp [14:54:18]File name is /storage/kkm_last_timestamp [14:54:18]Write 4 bytes [14:54:18]NVStorageSaveData done [14:54:18]ExternCall_PrintAddStr [14:54:18]wPrintStart [14:54:18]Write to MH i2c: 01 00 00 35 2F 64 [14:54:18]Write i2c OK [14:54:18]MH_I2C_Read... [14:54:18]Read from MH i2c: 01 [14:54:18]MH_I2C_Read... [14:54:18]Read from MH i2c: 01 07 00 [14:54:18]MH_I2C_Read... [14:54:18]Read from MH i2c: 01 07 00 35 2F 00 00 00 00 00 FF 0F 79 [14:54:18]RasterBufferAndPrint [14:54:18]line Счет N : (1)1106202 [14:54:18]line ИНН: 02508201610067 [14:54:18]line Контрольно-Кассовый Чек [14:54:18]line ПРОДАЖА [14:54:18]line ТРК (МРК, ГНК) : 63 [14:54:18]line Товар: 2710124500 [14:54:18]line Аи-95-К-5 [14:54:18]line 14.390 * 69.50 [14:54:18]line = 1000.11 [14:54:18]line НДС 12% НСП 1% [14:54:18]line > о реализуемом товаре [14:54:18]line ОКРУГЛЕНИЕ: -0.11 [14:54:18]line ИТОГО: 1000.00 [14:54:18]line Внесено: 1000.00 [14:54:18]line СДАЧА: 0.00 [14:54:18]line НСП 1% : 8.85 [14:54:18]line НДС 12% : 106.21 [14:54:18]line Наличными: 1000.00 [14:54:18]line Безнал.: 0.00 [14:54:18]line Место: АЗС № 25 "Партнер Нефть" [14:54:18]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [14:54:18]line СНО: Общий режим [14:54:18]line Чек 123 03.03.2024 14:54 [14:54:18]line Смена: 323 ФФД: 1.0 [14:54:18]line ЗНМ: 0300000019 [14:54:18]line РНМ: 0000000000090573 [14:54:18]line Версия ККМ: 001 [14:54:18]line ФМ: 0000000000874798 [14:54:18]line ФД: 123266 [14:54:18]line ФПД: 35601870849447 [14:54:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T145420&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123266&fm=35601870849447&tin=02508201610067®Number=0000000000090573&sum=100000 [14:54:19]OFD Sender: Processing packet 123266 [packets to send 112, broken 111] [14:54:19]ProducePacketName [14:54:19]name=ofd_packets/00123266 [14:54:19]OFD Sender: To server: pG, [14:54:19]CommunicateWithHost lk.salyk.kg:30040 [14:54:19]ConnectInit lk.salyk.kg [14:54:19]written 0, free lines is 4095 [14:54:19]Connected sock=10 [14: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 37 39 38 0F 01 00 00 09 89 07 01 FD AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 1C 8F E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 82 E1 01 00 35 04 06 00 20 61 34 DD 85 A7 D6 27 5C 79 78 CF 4D 50 [14:54:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 93 AB 47 00 09 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 37 39 38 10 04 04 00 82 E1 01 00 F4 03 04 00 48 3B E4 65 B6 04 01 00 00 AC FD BC 99 34 80 64 34 [14:54:19]CommunicateWithHost err = 0 [14:54:19]CheckOFDResponse [14:54:19]1017 (14) - 77093643461234 [14:54:19]1041 (16) - 0000000000874798 [14:54:19]1040 (4) - 123266 [14:54:19]1012 (4) - 03.03.2024 08:56 [14:54:19]1206 (1) - 0 [14:54:19]OFD Sender: Remove packet 123266 [14:54:19]ProducePacketName [14:54:19]name=ofd_packets/00123266 [14:54:19]NVStorageDeleteData [14:54:19]Write to MH i2c: 01 00 00 60 2F 8F [14:54:19]Write i2c OK [14:54:19]MH_I2C_Read... [14:54:19]Read from MH i2c: 01 [14:54:19]MH_I2C_Read... [14:54:19]Read from MH i2c: 01 07 00 [14:54:19]MH_I2C_Read... [14:54:19]Read from MH i2c: 01 07 00 60 2F 00 00 00 00 00 E5 0C 87 [14:54:19]RasterBufferAndPrint [14:54:19]line [14:54:19]line [14:54:19]line [14:54:19]line [14:54:19]line [14:54:19]written 0, free lines is 3307 [14:54:19]MH_Cut [14:54:19]Write to MH i2c: D1 01 00 67 2F 01 68 [14:54:19]Write i2c OK [14:54:19]MH_I2C_Read... [14:54:19]Read from MH i2c: D1 [14:54:19]MH_I2C_Read... [14:54:19]Read from MH i2c: D1 01 00 [14:54:19]MH_I2C_Read... [14:54:19]Read from MH i2c: D1 01 00 67 2F 00 67 [14:54:19]Write to MH i2c: 01 00 00 68 2F 97 [14:54:19]Write i2c OK [14:54:19]MH_I2C_Read... [14:54:19]OFD Sender: No OFD packet to send [14:54:20]*** Cut start [14:54:20]*** Purtial cut [14:54:20]*** Stage 1: CUTSNS_PIN = 1 [14:54:22]Read from MH i2c: 01 [14:54:22]MH_I2C_Read... [14:54:22]*** Stop cut motor [14:54:22]*** Cut end [14:54:22]Read from MH i2c: 01 07 00 [14:54:22]MH_I2C_Read... [14:54:22]Read from MH i2c: 01 07 00 68 2F 00 00 00 00 00 FF 0F AC [14:54:22]process_action close_receipt done [14:54:22]requested_data is exist [14:54:22]produce_requested_data [14:54:22]requested_item fm.sn is exist - process it [14:54:22]wFMCommunicate request_size=4 [14:54:22]MH_SAM_APDU [14:54:22]CAPDU: 80 11 00 00 [14:54:22]Write to MH i2c: E2 08 00 69 2F 80 11 00 00 00 00 00 00 12 [14:54:22]Write i2c OK [14:54:22]MH_I2C_Read... [14:54:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:22]Read from MH i2c: E2 [14:54:22]MH_I2C_Read... [14:54:22]Read from MH i2c: E2 17 00 [14:54:22]MH_I2C_Read... [14:54:22]Read from MH i2c: E2 17 00 69 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 70 [14:54:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [14:54:22]wFMCommunicate OK [14:54:22]requested_item fd.num is exist - process it [14:54:22]SAM_PROTO_GetFieldsCounters [14:54:22]wFMCommunicate request_size=4 [14:54:22]MH_SAM_APDU [14:54:22]CAPDU: 80 13 00 00 [14:54:22]Write to MH i2c: E2 08 00 6A 2F 80 13 00 00 00 00 00 00 15 [14:54:22]Write i2c OK [14:54:22]MH_I2C_Read... [14:54:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:54:22]Read from MH i2c: E2 [14:54:22]MH_I2C_Read... [14:54:22]Read from MH i2c: E2 62 00 [14:54:22]MH_I2C_Read... [14:54:22]Read from MH i2c: E2 62 00 6A 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 82 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 59 [14:54: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 82 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:54:22]wFMCommunicate OK [14:54:22]SAM_PROTO_GetFieldsCounters done [14:54:22]requested_item shift.num is exist - process it [14:54:22]requested_item shift.opened is exist - process it [14:54:22]req_shift_opened [14:54:22]FM_GetShiftState [14:54:22]SAM_PROTO_GetShiftState [14:54:22]wFMCommunicate request_size=4 [14:54:22]MH_SAM_APDU [14:54:22]CAPDU: 80 13 01 00 [14:54:22]Write to MH i2c: E2 08 00 6B 2F 80 13 01 00 00 00 00 00 17 [14:54:22]Write i2c OK [14:54:22]MH_I2C_Read... [14:54:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:22]Read from MH i2c: E2 [14:54:22]MH_I2C_Read... [14:54:22]Read from MH i2c: E2 0E 00 [14:54:22]MH_I2C_Read... [14:54:22]Read from MH i2c: E2 0E 00 6B 2F 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 D9 [14:54:22]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [14:54:22]wFMCommunicate OK [14:54:22]SAM_PROTO_GetShiftState done [14:54:22]FM_GetShiftState done [14:54:22]req_shift_opened done [14:54:22]requested_item shift.open_date is exist - process it [14:54:22]req_shift_open_date [14:54:22]req_shift_open_date done [14:54:22]produce_requested_data done [14:54:22]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123266,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [14:54:22]process_action_free close_receipt [14:54:22]json_value_free [14:54:22]json_value_free done [14:54:22]process_json_proto returns [14:54:22]Send response to host [14:54:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123266,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [14:54:22]free response buf [14:54:22]execute_script done [14:54:22]execute_script returns [14:54:22]free content buf [14:54:22]Sock 7.Close socket [14:54:22]Sock 7.Thread stoped [14:54:24]OFD Sender: No OFD packet to send [14:54:30]OFD Sender: No OFD packet to send [14:54:35]OFD Sender: No OFD packet to send [14:54:40]OFD Sender: No OFD packet to send [14:54:45]OFD Sender: No OFD packet to send [14:54:50]OFD Sender: No OFD packet to send [14:54:55]OFD Sender: No OFD packet to send [14:55:00]OFD Sender: No OFD packet to send [14:55:05]OFD Sender: No OFD packet to send [14:55:10]OFD Sender: No OFD packet to send [14:55:15]OFD Sender: No OFD packet to send [14:55:20]OFD Sender: No OFD packet to send [14:55:25]OFD Sender: No OFD packet to send [14:55:30]OFD Sender: No OFD packet to send [14:55:35]OFD Sender: No OFD packet to send [14:55:40]OFD Sender: No OFD packet to send [14:55:45]OFD Sender: No OFD packet to send [14:55:50]OFD Sender: No OFD packet to send [14:55:55]OFD Sender: No OFD packet to send [14:56:00]OFD Sender: No OFD packet to send [14:56:05]OFD Sender: No OFD packet to send [14:56:10]OFD Sender: No OFD packet to send [14:56:15]OFD Sender: No OFD packet to send [14:56:20]OFD Sender: No OFD packet to send [14:56:25]OFD Sender: No OFD packet to send [14:56:30]OFD Sender: No OFD packet to send [14:56:35]OFD Sender: No OFD packet to send [14:56:40]OFD Sender: No OFD packet to send [14:56:45]OFD Sender: No OFD packet to send [14:56:50]OFD Sender: No OFD packet to send [14:56:55]OFD Sender: No OFD packet to send [14:57:00]OFD Sender: No OFD packet to send [14:57:00]accept exits with 9 [14:57:00]New connection [14:57:00]New thread 3067395428 created [14:57:00]Thread 3067252068 joined [14:57:00]Waiting for new connection... [14:57:00] Sock 9.Parse request [14:57:00]Sock 9.Check first char [14:57:00]Sock 9.First char is OK [14:57:00]request: POST /json_proto HTTP/1.0 [14:57:00]Method: POST [14:57:00]URL: /json_proto [14:57:00]Method is POST - this is cgi request [14:57:00]url: /json_proto [14:57:00]query_string will be loaded in cgi processing [14:57:00]execute_cgi json_proto POST (null) [14:57:00]execute_cgi path=json_proto method=POST [14:57:00]POST find Content-Length [14:57:00]Host: 172.17.48.197:8080 [14:57:00]Content-Length: 683 [14:57:00]Content-Type: application/json [14:57:00] [14:57:00]POST finish read [14:57:00]Found Content-Length = 683 [14:57:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106203", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "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" ] } } [14:57:00]execute_script... [14:57:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106203", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "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" ] } } [14:57:00]POST & json_proto [14:57:00]process_json_proto [14:57:00]json parsed OK: [14:57:00]protocol is kg_v1.0 [14:57:00]action value=close_receipt [14:57:00]process_action close_receipt [14:57:00]cmd_close_receipt [14:57:00]MH_GetDate [14:57:00]Write to MH i2c: F0 00 00 6C 2F 8A [14:57:00]Write i2c OK [14:57:00]MH_I2C_Read... [14:57:00]Read from MH i2c: F0 [14:57:00]MH_I2C_Read... [14:57:00]Read from MH i2c: F0 09 00 [14:57:00]MH_I2C_Read... [14:57:00]Read from MH i2c: F0 09 00 6C 2F 00 C0 8F E4 65 6C AF E3 65 8E [14:57:00]GetLastDocTimeStamp 1709477660 [14:57:00]current date 1709477824 [14:57:00]FM_GetShiftState [14:57:00]SAM_PROTO_GetShiftState [14:57:00]wFMCommunicate request_size=4 [14:57:00]MH_SAM_APDU [14:57:00]CAPDU: 80 13 01 00 [14:57:00]Write to MH i2c: E2 08 00 6D 2F 80 13 01 00 00 00 00 00 19 [14:57:00]Write i2c OK [14:57:00]MH_I2C_Read... [14:57:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:00]Read from MH i2c: E2 [14:57:00]MH_I2C_Read... [14:57:00]Read from MH i2c: E2 0E 00 [14:57:00]MH_I2C_Read... [14:57:00]Read from MH i2c: E2 0E 00 6D 2F 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 DB [14:57:00]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [14:57:00]wFMCommunicate OK [14:57:00]SAM_PROTO_GetShiftState done [14:57:00]FM_GetShiftState done [14:57:00]opened in 1709425579 [14:57:00]opened+sec_in_day 1709511979 [14:57:00]quantity*price = 100030 [14:57:00]sum+1 = 100031 [14:57:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 124 03.03.2024 14:57 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123267 ФПД: 152906277192659 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T145704&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123267&fm=152906277192659&tin=02508201610067®Number=0000000000090573&sum=100000 [14:57:01]StoreToDocumentArchive [14:57:01]shift 323 fd 123267 [14:57:01]save to /storage/0323/doc_00123267 [14:57:01]save last doc name /storage/0323/doc_00123267 to /storage/kkm_last_doc_name [14:57:01]save OK [14:57:01]Clear old archive folders... [14:57:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:57:01]tlvbuf is 00E93DA0 [14:57:01]SAM_PROTO_ClearQueue [14:57:01]wFMCommunicate request_size=4 [14:57:01]MH_SAM_APDU [14:57:01]CAPDU: 80 09 00 00 [14:57:01]Write to MH i2c: E2 08 00 7A 2F 80 09 00 00 00 00 00 00 1B [14:57:01]Write i2c OK [14:57:01]MH_I2C_Read... [14:57:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:57:01]Read from MH i2c: E2 [14:57:01]MH_I2C_Read... [14:57:01]Read from MH i2c: E2 03 00 [14:57:01]MH_I2C_Read... [14:57:01]Read from MH i2c: E2 03 00 7A 2F 00 90 00 1D [14:57:01]RAPDU: 90 00 [14:57:01]wFMCommunicate OK [14:57:01]SAM_PROTO_ClearQueue done [14:57:01]KKMCreateOFDPacket [14:57:01]OFDProtocolAddRootSTLVToBuf [14:57:01]FM_MakeSignedData [14:57:01]FM_MakeSignedData [14:57:01]SAM_PROTO_SignData [14:57:01]wFMCommunicate request_size=4 [14:57:01]MH_SAM_APDU [14:57:01]CAPDU: 80 0D 01 02 [14:57:01]Write to MH i2c: E2 08 00 7B 2F 80 0D 01 02 00 00 00 00 23 [14:57:01]Write i2c OK [14:57:01]MH_I2C_Read... [14:57:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:57:02]Read from MH i2c: E2 [14:57:02]MH_I2C_Read... [14:57:02]Read from MH i2c: E2 03 00 [14:57:02]MH_I2C_Read... [14:57:02]Read from MH i2c: E2 03 00 7B 2F 00 90 00 1E [14:57:02]RAPDU: 90 00 [14:57:02]wFMCommunicate OK [14:57:02]wFMCommunicate request_size=255 [14:57:02]MH_SAM_APDU [14:57:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 7C 00 00 00 F4 03 04 00 C0 8F E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 83 E1 01 00 35 04 06 00 8B [14:57:02]Write to MH i2c: E2 02 01 7C 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 7C 00 00 00 F4 03 04 00 C0 8F E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 83 E1 01 00 35 04 06 00 8B 00 00 D7 [14:57:02]Write i2c OK [14:57:02]MH_I2C_Read... [14:57:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:02]Read from MH i2c: E2 [14:57:02]MH_I2C_Read... [14:57:02]Read from MH i2c: E2 03 00 [14:57:02]MH_I2C_Read... [14:57:02]Read from MH i2c: E2 03 00 7C 2F 00 90 00 1F [14:57:02]RAPDU: 90 00 [14:57:02]wFMCommunicate OK [14:57:02]wFMCommunicate request_size=10 [14:57:02]MH_SAM_APDU [14:57:02]CAPDU: 80 0D 02 02 05 11 44 56 03 D3 [14:57:02]Write to MH i2c: E2 0D 00 7D 2F 80 0D 02 02 05 00 11 44 56 03 D3 00 00 B1 [14:57:02]Write i2c OK [14:57:02]MH_I2C_Read... [14:57:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:02]Read from MH i2c: E2 [14:57:02]MH_I2C_Read... [14:57:02]Read from MH i2c: E2 03 00 [14:57:02]MH_I2C_Read... [14:57:02]Read from MH i2c: E2 03 00 7D 2F 00 90 00 20 [14:57:02]RAPDU: 90 00 [14:57:02]wFMCommunicate OK [14:57:02]wFMCommunicate request_size=4 [14:57:02]MH_SAM_APDU [14:57:02]CAPDU: 80 0D 03 02 [14:57:02]Write to MH i2c: E2 08 00 7E 2F 80 0D 03 02 00 00 00 00 28 [14:57:02]Write i2c OK [14:57:02]MH_I2C_Read... [14:57:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:57:02]Read from MH i2c: E2 [14:57:02]MH_I2C_Read... [14:57:02]Read from MH i2c: E2 0B 00 [14:57:02]MH_I2C_Read... [14:57:02]Read from MH i2c: E2 0B 00 7E 2F 00 0D A2 01 63 9C EF 2D 4B 90 00 3F [14:57:02]RAPDU: 0D A2 01 63 9C EF 2D 4B 90 00 [14:57:02]wFMCommunicate OK [14:57:02]SAM_PROTO_SignData done [14:57:02]FM_MakeSignedData done [14:57:02]CreateOFDProtocolMessage [14:57:02]wFMCommunicate request_size=4 [14:57:02]MH_SAM_APDU [14:57:02]CAPDU: 80 11 00 00 [14:57:02]Write to MH i2c: E2 08 00 7F 2F 80 11 00 00 00 00 00 00 28 [14:57:02]Write i2c OK [14:57:02]MH_I2C_Read... [14:57:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:02]Read from MH i2c: E2 [14:57:02]MH_I2C_Read... [14:57:02]Read from MH i2c: E2 17 00 [14:57:02]MH_I2C_Read... [14:57:02]Read from MH i2c: E2 17 00 7F 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 86 [14:57:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [14:57:02]wFMCommunicate OK [14:57:02]CreateOFDProtocolMessage done [14:57:02]OFDSenderStorePacket 123267 [14:57:02]StoreOFDPacket docnum=123267 [14:57:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 16 33 07 01 86 78 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 7C 00 00 00 F4 03 04 00 C0 8F E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 83 E1 01 00 35 04 06 00 8B 11 44 56 03 D3 0D A2 01 63 9C EF 2D 4B [14:57:02]CheckFolder [14:57:02]dirname=/storage/ofd_packets [14:57:02]CheckFolder done [14:57:02]ProducePacketName [14:57:02]name=ofd_packets/00123267 [14:57:02]NVStorageSaveData ofd_packets/00123267 [14:57:02]File name is /storage/ofd_packets/00123267 [14:57:02]Write 301 bytes [14:57:02]NVStorageSaveData done [14:57:02]OFDSenderStorePacket done [14:57:02]KKMCreateOFDPacket done [14:57:02]NVStorageSaveData kkm_last_timestamp [14:57:02]File name is /storage/kkm_last_timestamp [14:57:02]Write 4 bytes [14:57:02]NVStorageSaveData done [14:57:02]ExternCall_PrintAddStr [14:57:02]wPrintStart [14:57:02]Write to MH i2c: 01 00 00 80 2F AF [14:57:02]Write i2c OK [14:57:02]MH_I2C_Read... [14:57:02]Read from MH i2c: 01 [14:57:02]MH_I2C_Read... [14:57:02]Read from MH i2c: 01 07 00 [14:57:02]MH_I2C_Read... [14:57:02]Read from MH i2c: 01 07 00 80 2F 00 00 00 00 00 FF 0F C4 [14:57:02]RasterBufferAndPrint [14:57:02]line Счет N : (1)1106203 [14:57:02]line ИНН: 02508201610067 [14:57:02]line Контрольно-Кассовый Чек [14:57:02]line ПРОДАЖА [14:57:02]line ТРК (МРК, ГНК) : 62 [14:57:02]line Товар: 2710124130 [14:57:02]line Аи-92-К-5 [14:57:02]line 16.160 * 61.90 [14:57:02]line = 1000.30 [14:57:02]line НДС 12% НСП 1% [14:57:02]line > о реализуемом товаре [14:57:02]line ОКРУГЛЕНИЕ: -0.30 [14:57:02]line ИТОГО: 1000.00 [14:57:02]line Внесено: 1000.00 [14:57:02]line СДАЧА: 0.00 [14:57:02]line НСП 1% : 8.85 [14:57:02]line НДС 12% : 106.23 [14:57:02]line Наличными: 1000.00 [14:57:02]line Безнал.: 0.00 [14:57:02]line Место: АЗС № 25 "Партнер Нефть" [14:57:02]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [14:57:02]line СНО: Общий режим [14:57:02]line Чек 124 03.03.2024 14:57 [14:57:02]line Смена: 323 ФФД: 1.0 [14:57:02]line ЗНМ: 0300000019 [14:57:02]line РНМ: 0000000000090573 [14:57:02]line Версия ККМ: 001 [14:57:02]line ФМ: 0000000000874798 [14:57:02]line ФД: 123267 [14:57:02]line ФПД: 152906277192659 [14:57:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T145704&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123267&fm=152906277192659&tin=02508201610067®Number=0000000000090573&sum=100000 [14:57:02]OFD Sender: Processing packet 123267 [packets to send 112, broken 111] [14:57:02]ProducePacketName [14:57:02]name=ofd_packets/00123267 [14:57:02]OFD Sender: To server: pG, [14:57:02]CommunicateWithHost lk.salyk.kg:30040 [14:57:02]ConnectInit lk.salyk.kg [14:57:02]written 0, free lines is 4095 [14:57:02]Connected sock=10 [14:57:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 16 33 07 01 86 78 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 7C 00 00 00 F4 03 04 00 C0 8F E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 83 E1 01 00 35 04 06 00 8B 11 44 56 03 D3 0D A2 01 63 9C EF 2D 4B [14:57:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 90 46 47 00 1D 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 37 39 38 10 04 04 00 83 E1 01 00 F4 03 04 00 EB 3B E4 65 B6 04 01 00 00 E5 EF 9A F3 51 65 A0 AD [14:57:03]CommunicateWithHost err = 0 [14:57:03]CheckOFDResponse [14:57:03]1017 (14) - 77093643461234 [14:57:03]1041 (16) - 0000000000874798 [14:57:03]1040 (4) - 123267 [14:57:03]1012 (4) - 03.03.2024 08:59 [14:57:03]1206 (1) - 0 [14:57:03]OFD Sender: Remove packet 123267 [14:57:03]ProducePacketName [14:57:03]name=ofd_packets/00123267 [14:57:03]NVStorageDeleteData [14:57:03]Write to MH i2c: 01 00 00 AB 2F DA [14:57:03]Write i2c OK [14:57:03]MH_I2C_Read... [14:57:03]Read from MH i2c: 01 [14:57:03]MH_I2C_Read... [14:57:03]Read from MH i2c: 01 07 00 [14:57:03]MH_I2C_Read... [14:57:03]Read from MH i2c: 01 07 00 AB 2F 00 00 00 00 00 F0 0C DD [14:57:03]RasterBufferAndPrint [14:57:03]line [14:57:03]line [14:57:03]line [14:57:03]line [14:57:03]line [14:57:03]written 0, free lines is 3318 [14:57:03]MH_Cut [14:57:03]Write to MH i2c: D1 01 00 B2 2F 01 B3 [14:57:03]Write i2c OK [14:57:03]MH_I2C_Read... [14:57:03]Read from MH i2c: D1 [14:57:03]MH_I2C_Read... [14:57:03]Read from MH i2c: D1 01 00 [14:57:03]MH_I2C_Read... [14:57:03]Read from MH i2c: D1 01 00 B2 2F 00 B2 [14:57:03]Write to MH i2c: 01 00 00 B3 2F E2 [14:57:03]Write i2c OK [14:57:03]MH_I2C_Read... [14:57:03]OFD Sender: No OFD packet to send [14:57:03]*** Cut start [14:57:03]*** Purtial cut [14:57:03]*** Stage 1: CUTSNS_PIN = 1 [14:57:05]Read from MH i2c: 01 [14:57:05]MH_I2C_Read... [14:57:05]*** Stop cut motor [14:57:05]*** Cut end [14:57:05]Read from MH i2c: 01 07 00 [14:57:05]MH_I2C_Read... [14:57:05]Read from MH i2c: 01 07 00 B3 2F 00 00 00 00 00 FF 0F F7 [14:57:05]process_action close_receipt done [14:57:05]requested_data is exist [14:57:05]produce_requested_data [14:57:05]requested_item fm.sn is exist - process it [14:57:05]wFMCommunicate request_size=4 [14:57:05]MH_SAM_APDU [14:57:05]CAPDU: 80 11 00 00 [14:57:05]Write to MH i2c: E2 08 00 B4 2F 80 11 00 00 00 00 00 00 5D [14:57:05]Write i2c OK [14:57:05]MH_I2C_Read... [14:57:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:05]Read from MH i2c: E2 [14:57:05]MH_I2C_Read... [14:57:05]Read from MH i2c: E2 17 00 [14:57:05]MH_I2C_Read... [14:57:05]Read from MH i2c: E2 17 00 B4 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 BB [14:57:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [14:57:05]wFMCommunicate OK [14:57:05]requested_item fd.num is exist - process it [14:57:05]SAM_PROTO_GetFieldsCounters [14:57:05]wFMCommunicate request_size=4 [14:57:05]MH_SAM_APDU [14:57:05]CAPDU: 80 13 00 00 [14:57:05]Write to MH i2c: E2 08 00 B5 2F 80 13 00 00 00 00 00 00 60 [14:57:05]Write i2c OK [14:57:05]MH_I2C_Read... [14:57:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:57:06]Read from MH i2c: E2 [14:57:06]MH_I2C_Read... [14:57:06]Read from MH i2c: E2 62 00 [14:57:06]MH_I2C_Read... [14:57:06]Read from MH i2c: E2 62 00 B5 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 83 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 A8 [14:57: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 83 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:57:06]wFMCommunicate OK [14:57:06]SAM_PROTO_GetFieldsCounters done [14:57:06]requested_item shift.num is exist - process it [14:57:06]requested_item shift.opened is exist - process it [14:57:06]req_shift_opened [14:57:06]FM_GetShiftState [14:57:06]SAM_PROTO_GetShiftState [14:57:06]wFMCommunicate request_size=4 [14:57:06]MH_SAM_APDU [14:57:06]CAPDU: 80 13 01 00 [14:57:06]Write to MH i2c: E2 08 00 B6 2F 80 13 01 00 00 00 00 00 62 [14:57:06]Write i2c OK [14:57:06]MH_I2C_Read... [14:57:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:06]Read from MH i2c: E2 [14:57:06]MH_I2C_Read... [14:57:06]Read from MH i2c: E2 0E 00 [14:57:06]MH_I2C_Read... [14:57:06]Read from MH i2c: E2 0E 00 B6 2F 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 24 [14:57:06]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [14:57:06]wFMCommunicate OK [14:57:06]SAM_PROTO_GetShiftState done [14:57:06]FM_GetShiftState done [14:57:06]req_shift_opened done [14:57:06]requested_item shift.open_date is exist - process it [14:57:06]req_shift_open_date [14:57:06]req_shift_open_date done [14:57:06]produce_requested_data done [14:57:06]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123267,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [14:57:06]process_action_free close_receipt [14:57:06]json_value_free [14:57:06]json_value_free done [14:57:06]process_json_proto returns [14:57:06]Send response to host [14:57:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123267,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [14:57:06]free response buf [14:57:06]execute_script done [14:57:06]execute_script returns [14:57:06]free content buf [14:57:06]Sock 9.Close socket [14:57:06]Sock 9.Thread stoped [14:57:08]OFD Sender: No OFD packet to send [14:57:13]OFD Sender: No OFD packet to send [14:57:18]OFD Sender: No OFD packet to send [14:57:23]OFD Sender: No OFD packet to send [14:57:28]OFD Sender: No OFD packet to send [14:57:33]OFD Sender: No OFD packet to send [14:57:38]OFD Sender: No OFD packet to send [14:57:43]OFD Sender: No OFD packet to send [14:57:48]OFD Sender: No OFD packet to send [14:57:53]OFD Sender: No OFD packet to send [14:57:58]OFD Sender: No OFD packet to send [14:58:03]OFD Sender: No OFD packet to send [14:58:08]OFD Sender: No OFD packet to send [14:58:13]OFD Sender: No OFD packet to send [14:58:18]OFD Sender: No OFD packet to send [14:58:23]OFD Sender: No OFD packet to send [14:58:28]OFD Sender: No OFD packet to send [14:58:33]OFD Sender: No OFD packet to send [14:58:38]OFD Sender: No OFD packet to send [14:58:43]OFD Sender: No OFD packet to send [14:58:48]OFD Sender: No OFD packet to send [14:58:53]OFD Sender: No OFD packet to send [14:58:58]OFD Sender: No OFD packet to send [14:59:03]OFD Sender: No OFD packet to send [14:59:08]OFD Sender: No OFD packet to send [14:59:13]OFD Sender: No OFD packet to send [14:59:18]OFD Sender: No OFD packet to send [14:59:23]OFD Sender: No OFD packet to send [14:59:28]OFD Sender: No OFD packet to send [14:59:33]OFD Sender: No OFD packet to send [14:59:38]OFD Sender: No OFD packet to send [14:59:43]OFD Sender: No OFD packet to send [14:59:48]OFD Sender: No OFD packet to send [14:59:53]OFD Sender: No OFD packet to send [14:59:58]OFD Sender: No OFD packet to send [15:00:03]OFD Sender: No OFD packet to send [15:00:08]OFD Sender: No OFD packet to send [15:00:13]OFD Sender: No OFD packet to send [15:00:18]OFD Sender: No OFD packet to send [15:00:23]OFD Sender: No OFD packet to send [15:00:28]OFD Sender: No OFD packet to send [15:00:33]OFD Sender: No OFD packet to send [15:00:38]OFD Sender: No OFD packet to send [15:00:43]OFD Sender: No OFD packet to send [15:00:48]OFD Sender: No OFD packet to send [15:00:53]OFD Sender: No OFD packet to send [15:00:58]OFD Sender: No OFD packet to send [15:01:03]OFD Sender: No OFD packet to send [15:01:08]OFD Sender: No OFD packet to send [15:01:13]OFD Sender: No OFD packet to send [15:01:18]OFD Sender: No OFD packet to send [15:01:23]OFD Sender: No OFD packet to send [15:01:28]OFD Sender: No OFD packet to send [15:01:33]OFD Sender: No OFD packet to send [15:01:38]OFD Sender: No OFD packet to send [15:01:43]OFD Sender: No OFD packet to send [15:01:48]OFD Sender: No OFD packet to send [15:01:53]OFD Sender: No OFD packet to send [15:01:58]OFD Sender: No OFD packet to send [15:02:03]OFD Sender: No OFD packet to send [15:02:08]OFD Sender: No OFD packet to send [15:02:13]OFD Sender: No OFD packet to send [15:02:18]OFD Sender: No OFD packet to send [15:02:23]OFD Sender: No OFD packet to send [15:02:28]OFD Sender: No OFD packet to send [15:02:33]OFD Sender: No OFD packet to send [15:02:38]OFD Sender: No OFD packet to send [15:02:43]OFD Sender: No OFD packet to send [15:02:48]OFD Sender: No OFD packet to send [15:02:53]OFD Sender: No OFD packet to send [15:02:58]OFD Sender: No OFD packet to send [15:03:03]OFD Sender: No OFD packet to send [15:03:08]OFD Sender: No OFD packet to send [15:03:13]OFD Sender: No OFD packet to send [15:03:18]OFD Sender: No OFD packet to send [15:03:22]accept exits with 7 [15:03:22]New connection [15:03:22]New thread 3067252068 created [15:03:22]Thread 3067395428 joined [15:03:22]Waiting for new connection... [15:03:22] Sock 7.Parse request [15:03:22]Sock 7.Check first char [15:03:22]Sock 7.First char is OK [15:03:22]request: POST /json_proto HTTP/1.0 [15:03:22]Method: POST [15:03:22]URL: /json_proto [15:03:22]Method is POST - this is cgi request [15:03:22]url: /json_proto [15:03:22]query_string will be loaded in cgi processing [15:03:22]execute_cgi json_proto POST (null) [15:03:22]execute_cgi path=json_proto method=POST [15:03:22]POST find Content-Length [15:03:22]Host: 172.17.48.197:8080 [15:03:22]Content-Length: 683 [15:03:22]Content-Type: application/json [15:03:22] [15:03:22]POST finish read [15:03:22]Found Content-Length = 683 [15:03:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106204", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 34.540, "sum" : 2400.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2400.00, "total" : 2400.00, "payments": [ { "type": 0, "sum" : 2400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:03:22]execute_script... [15:03: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)1106204", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 34.540, "sum" : 2400.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2400.00, "total" : 2400.00, "payments": [ { "type": 0, "sum" : 2400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:03:22]POST & json_proto [15:03:22]process_json_proto [15:03:22]json parsed OK: [15:03:22]protocol is kg_v1.0 [15:03:22]action value=close_receipt [15:03:22]process_action close_receipt [15:03:22]cmd_close_receipt [15:03:22]MH_GetDate [15:03:22]Write to MH i2c: F0 00 00 B7 2F D5 [15:03:22]Write i2c OK [15:03:22]MH_I2C_Read... [15:03:22]Read from MH i2c: F0 [15:03:22]MH_I2C_Read... [15:03:22]Read from MH i2c: F0 09 00 [15:03:22]MH_I2C_Read... [15:03:22]Read from MH i2c: F0 09 00 B7 2F 00 3E 91 E4 65 6C AF E3 65 59 [15:03:22]GetLastDocTimeStamp 1709477824 [15:03:22]current date 1709478206 [15:03:22]FM_GetShiftState [15:03:22]SAM_PROTO_GetShiftState [15:03:22]wFMCommunicate request_size=4 [15:03:22]MH_SAM_APDU [15:03:22]CAPDU: 80 13 01 00 [15:03:22]Write to MH i2c: E2 08 00 B8 2F 80 13 01 00 00 00 00 00 64 [15:03:22]Write i2c OK [15:03:22]MH_I2C_Read... [15:03:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:03:22]Read from MH i2c: E2 [15:03:22]MH_I2C_Read... [15:03:22]Read from MH i2c: E2 0E 00 [15:03:22]MH_I2C_Read... [15:03:22]Read from MH i2c: E2 0E 00 B8 2F 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 26 [15:03:22]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [15:03:22]wFMCommunicate OK [15:03:22]SAM_PROTO_GetShiftState done [15:03:22]FM_GetShiftState done [15:03:22]opened in 1709425579 [15:03:22]opened+sec_in_day 1709511979 [15:03:22]quantity*price = 240053 [15:03:22]sum+1 = 240054 [15:03:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 2400.00 Внесено: 2400.00 СДАЧА: 0.00 НСП 1% : 21.24 НДС 12% : 254.92 Наличными: 2400.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 125 03.03.2024 15:03 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123268 ФПД: 123910546553582 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T150326&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123268&fm=123910546553582&tin=02508201610067®Number=0000000000090573&sum=240000 [15:03:23]StoreToDocumentArchive [15:03:23]shift 323 fd 123268 [15:03:23]save to /storage/0323/doc_00123268 [15:03:23]save last doc name /storage/0323/doc_00123268 to /storage/kkm_last_doc_name [15:03:23]save OK [15:03:23]Clear old archive folders... [15:03:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:03:23]tlvbuf is 00EA6C60 [15:03:23]SAM_PROTO_ClearQueue [15:03:23]wFMCommunicate request_size=4 [15:03:23]MH_SAM_APDU [15:03:23]CAPDU: 80 09 00 00 [15:03:23]Write to MH i2c: E2 08 00 C5 2F 80 09 00 00 00 00 00 00 66 [15:03:23]Write i2c OK [15:03:23]MH_I2C_Read... [15:03:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:03:23]Read from MH i2c: E2 [15:03:23]MH_I2C_Read... [15:03:23]Read from MH i2c: E2 03 00 [15:03:23]MH_I2C_Read... [15:03:23]Read from MH i2c: E2 03 00 C5 2F 00 90 00 68 [15:03:23]RAPDU: 90 00 [15:03:23]wFMCommunicate OK [15:03:23]SAM_PROTO_ClearQueue done [15:03:23]KKMCreateOFDPacket [15:03:23]OFDProtocolAddRootSTLVToBuf [15:03:23]FM_MakeSignedData [15:03:23]FM_MakeSignedData [15:03:23]SAM_PROTO_SignData [15:03:23]wFMCommunicate request_size=4 [15:03:23]MH_SAM_APDU [15:03:23]CAPDU: 80 0D 01 02 [15:03:23]Write to MH i2c: E2 08 00 C6 2F 80 0D 01 02 00 00 00 00 6E [15:03:23]Write i2c OK [15:03:23]MH_I2C_Read... [15:03:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:03:23]Read from MH i2c: E2 [15:03:23]MH_I2C_Read... [15:03:23]Read from MH i2c: E2 03 00 [15:03:23]MH_I2C_Read... [15:03:23]Read from MH i2c: E2 03 00 C6 2F 00 90 00 69 [15:03:23]RAPDU: 90 00 [15:03:23]wFMCommunicate OK [15:03:23]wFMCommunicate request_size=255 [15:03:23]MH_SAM_APDU [15:03:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 EC 86 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 B5 A9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 A9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 63 00 00 00 00 07 04 06 00 80 A9 03 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 3E 91 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 84 E1 01 00 35 04 06 00 70 [15:03:23]Write to MH i2c: E2 02 01 C7 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 35 FF 03 08 00 03 EC 86 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 B5 A9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 A9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 63 00 00 00 00 07 04 06 00 80 A9 03 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 3E 91 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 84 E1 01 00 35 04 06 00 70 00 00 EC [15:03:23]Write i2c OK [15:03:23]MH_I2C_Read... [15:03:23]OFD Sender: No OFD packet to send [15:03:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:03:24]Read from MH i2c: E2 [15:03:24]MH_I2C_Read... [15:03:24]Read from MH i2c: E2 03 00 [15:03:24]MH_I2C_Read... [15:03:24]Read from MH i2c: E2 03 00 C7 2F 00 90 00 6A [15:03:24]RAPDU: 90 00 [15:03:24]wFMCommunicate OK [15:03:24]wFMCommunicate request_size=10 [15:03:24]MH_SAM_APDU [15:03:24]CAPDU: 80 0D 02 02 05 B2 2C 1C 7A EE [15:03:24]Write to MH i2c: E2 0D 00 C8 2F 80 0D 02 02 05 00 B2 2C 1C 7A EE 00 00 DD [15:03:24]Write i2c OK [15:03:24]MH_I2C_Read... [15:03:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:03:24]Read from MH i2c: E2 [15:03:24]MH_I2C_Read... [15:03:24]Read from MH i2c: E2 03 00 [15:03:24]MH_I2C_Read... [15:03:24]Read from MH i2c: E2 03 00 C8 2F 00 90 00 6B [15:03:24]RAPDU: 90 00 [15:03:24]wFMCommunicate OK [15:03:24]wFMCommunicate request_size=4 [15:03:24]MH_SAM_APDU [15:03:24]CAPDU: 80 0D 03 02 [15:03:24]Write to MH i2c: E2 08 00 C9 2F 80 0D 03 02 00 00 00 00 73 [15:03:24]Write i2c OK [15:03:24]MH_I2C_Read... [15:03:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:03:24]Read from MH i2c: E2 [15:03:24]MH_I2C_Read... [15:03:24]Read from MH i2c: E2 0B 00 [15:03:24]MH_I2C_Read... [15:03:24]Read from MH i2c: E2 0B 00 C9 2F 00 D1 1B 86 6E BF 2F 19 5C 90 00 B7 [15:03:24]RAPDU: D1 1B 86 6E BF 2F 19 5C 90 00 [15:03:24]wFMCommunicate OK [15:03:24]SAM_PROTO_SignData done [15:03:24]FM_MakeSignedData done [15:03:24]CreateOFDProtocolMessage [15:03:24]wFMCommunicate request_size=4 [15:03:24]MH_SAM_APDU [15:03:24]CAPDU: 80 11 00 00 [15:03:24]Write to MH i2c: E2 08 00 CA 2F 80 11 00 00 00 00 00 00 73 [15:03:24]Write i2c OK [15:03:24]MH_I2C_Read... [15:03:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:03:24]Read from MH i2c: E2 [15:03:24]MH_I2C_Read... [15:03:24]Read from MH i2c: E2 17 00 [15:03:24]MH_I2C_Read... [15:03:24]Read from MH i2c: E2 17 00 CA 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 D1 [15:03:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [15:03:24]wFMCommunicate OK [15:03:24]CreateOFDProtocolMessage done [15:03:24]OFDSenderStorePacket 123268 [15:03:24]StoreOFDPacket docnum=123268 [15:03:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 25 E1 07 01 C9 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 EC 86 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 B5 A9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 A9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 63 00 00 00 00 07 04 06 00 80 A9 03 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 3E 91 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 84 E1 01 00 35 04 06 00 70 B2 2C 1C 7A EE D1 1B 86 6E BF 2F 19 5C [15:03:24]CheckFolder [15:03:24]dirname=/storage/ofd_packets [15:03:24]CheckFolder done [15:03:24]ProducePacketName [15:03:24]name=ofd_packets/00123268 [15:03:24]NVStorageSaveData ofd_packets/00123268 [15:03:24]File name is /storage/ofd_packets/00123268 [15:03:24]Write 301 bytes [15:03:24]NVStorageSaveData done [15:03:24]OFDSenderStorePacket done [15:03:24]KKMCreateOFDPacket done [15:03:24]NVStorageSaveData kkm_last_timestamp [15:03:24]File name is /storage/kkm_last_timestamp [15:03:24]Write 4 bytes [15:03:24]NVStorageSaveData done [15:03:24]ExternCall_PrintAddStr [15:03:24]wPrintStart [15:03:24]Write to MH i2c: 01 00 00 CB 2F FA [15:03:24]Write i2c OK [15:03:24]MH_I2C_Read... [15:03:24]Read from MH i2c: 01 [15:03:24]MH_I2C_Read... [15:03:24]Read from MH i2c: 01 07 00 [15:03:24]MH_I2C_Read... [15:03:24]Read from MH i2c: 01 07 00 CB 2F 00 00 00 00 00 FF 0F 0F [15:03:24]RasterBufferAndPrint [15:03:24]line Счет N : (1)1106204 [15:03:24]line ИНН: 02508201610067 [15:03:24]line Контрольно-Кассовый Чек [15:03:24]line ПРОДАЖА [15:03:24]line ТРК (МРК, ГНК) : 53 [15:03:24]line Товар: 2710124500 [15:03:24]line Аи-95-К-5 [15:03:24]line 34.540 * 69.50 [15:03:24]line = 2400.53 [15:03:24]line НДС 12% НСП 1% [15:03:24]line > о реализуемом товаре [15:03:24]line ОКРУГЛЕНИЕ: -0.53 [15:03:24]line ИТОГО: 2400.00 [15:03:24]line Внесено: 2400.00 [15:03:24]line СДАЧА: 0.00 [15:03:24]line НСП 1% : 21.24 [15:03:24]line НДС 12% : 254.92 [15:03:24]line Наличными: 2400.00 [15:03:24]line Безнал.: 0.00 [15:03:24]line Место: АЗС № 25 "Партнер Нефть" [15:03:24]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [15:03:24]line СНО: Общий режим [15:03:24]line Чек 125 03.03.2024 15:03 [15:03:24]line Смена: 323 ФФД: 1.0 [15:03:24]line ЗНМ: 0300000019 [15:03:24]line РНМ: 0000000000090573 [15:03:24]line Версия ККМ: 001 [15:03:24]line ФМ: 0000000000874798 [15:03:24]line ФД: 123268 [15:03:24]line ФПД: 123910546553582 [15:03:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T150326&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123268&fm=123910546553582&tin=02508201610067®Number=0000000000090573&sum=240000 [15:03:24]OFD Sender: Processing packet 123268 [packets to send 112, broken 111] [15:03:24]ProducePacketName [15:03:24]name=ofd_packets/00123268 [15:03:24]OFD Sender: To server: pG, [15:03:24]CommunicateWithHost lk.salyk.kg:30040 [15:03:24]ConnectInit lk.salyk.kg [15:03:24]written 0, free lines is 4095 [15:03:24]Connected sock=10 [15:03: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 37 39 38 0F 01 00 00 25 E1 07 01 C9 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 EC 86 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 B5 A9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 A9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 63 00 00 00 00 07 04 06 00 80 A9 03 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 3E 91 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 84 E1 01 00 35 04 06 00 70 B2 2C 1C 7A EE D1 1B 86 6E BF 2F 19 5C [15:03:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 0D 22 47 00 C3 EC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 84 E1 01 00 F4 03 04 00 69 3D E4 65 B6 04 01 00 00 32 54 E5 AC 8D 24 92 28 [15:03:24]CommunicateWithHost err = 0 [15:03:24]CheckOFDResponse [15:03:24]1017 (14) - 77093643461234 [15:03:24]1041 (16) - 0000000000874798 [15:03:24]1040 (4) - 123268 [15:03:24]1012 (4) - 03.03.2024 09:05 [15:03:24]1206 (1) - 0 [15:03:24]OFD Sender: Remove packet 123268 [15:03:24]ProducePacketName [15:03:24]name=ofd_packets/00123268 [15:03:24]NVStorageDeleteData [15:03:24]Write to MH i2c: 01 00 00 F6 2F 25 [15:03:24]Write i2c OK [15:03:24]MH_I2C_Read... [15:03:24]Read from MH i2c: 01 [15:03:24]MH_I2C_Read... [15:03:24]Read from MH i2c: 01 07 00 [15:03:24]MH_I2C_Read... [15:03:24]Read from MH i2c: 01 07 00 F6 2F 00 00 00 00 00 ED 0C 25 [15:03:24]RasterBufferAndPrint [15:03:24]line [15:03:24]line [15:03:24]line [15:03:24]line [15:03:24]line [15:03:24]written 0, free lines is 3315 [15:03:24]MH_Cut [15:03:24]Write to MH i2c: D1 01 00 FD 2F 01 FE [15:03:24]Write i2c OK [15:03:24]MH_I2C_Read... [15:03:24]Read from MH i2c: D1 [15:03:24]MH_I2C_Read... [15:03:24]Read from MH i2c: D1 01 00 [15:03:24]MH_I2C_Read... [15:03:24]Read from MH i2c: D1 01 00 FD 2F 00 FD [15:03:24]Write to MH i2c: 01 00 00 FE 2F 2D [15:03:24]Write i2c OK [15:03:24]MH_I2C_Read... [15:03:25]OFD Sender: No OFD packet to send [15:03:25]*** Cut start [15:03:25]*** Purtial cut [15:03:25]*** Stage 1: CUTSNS_PIN = 1 [15:03:27]Read from MH i2c: 01 [15:03:27]MH_I2C_Read... [15:03:27]*** Stop cut motor [15:03:27]*** Cut end [15:03:27]Read from MH i2c: 01 07 00 [15:03:27]MH_I2C_Read... [15:03:27]Read from MH i2c: 01 07 00 FE 2F 00 00 00 00 00 FF 0F 42 [15:03:27]process_action close_receipt done [15:03:27]requested_data is exist [15:03:27]produce_requested_data [15:03:27]requested_item fm.sn is exist - process it [15:03:27]wFMCommunicate request_size=4 [15:03:27]MH_SAM_APDU [15:03:27]CAPDU: 80 11 00 00 [15:03:27]Write to MH i2c: E2 08 00 FF 2F 80 11 00 00 00 00 00 00 A8 [15:03:27]Write i2c OK [15:03:27]MH_I2C_Read... [15:03:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:03:27]Read from MH i2c: E2 [15:03:27]MH_I2C_Read... [15:03:27]Read from MH i2c: E2 17 00 [15:03:27]MH_I2C_Read... [15:03:27]Read from MH i2c: E2 17 00 FF 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 06 [15:03:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [15:03:27]wFMCommunicate OK [15:03:27]requested_item fd.num is exist - process it [15:03:27]SAM_PROTO_GetFieldsCounters [15:03:27]wFMCommunicate request_size=4 [15:03:27]MH_SAM_APDU [15:03:27]CAPDU: 80 13 00 00 [15:03:27]Write to MH i2c: E2 08 00 00 30 80 13 00 00 00 00 00 00 AC [15:03:27]Write i2c OK [15:03:27]MH_I2C_Read... [15:03:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:03:27]Read from MH i2c: E2 [15:03:27]MH_I2C_Read... [15:03:27]Read from MH i2c: E2 62 00 [15:03:27]MH_I2C_Read... [15:03:27]Read from MH i2c: E2 62 00 00 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 84 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 F8 [15:03:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 84 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:03:27]wFMCommunicate OK [15:03:27]SAM_PROTO_GetFieldsCounters done [15:03:27]requested_item shift.num is exist - process it [15:03:27]requested_item shift.opened is exist - process it [15:03:27]req_shift_opened [15:03:27]FM_GetShiftState [15:03:27]SAM_PROTO_GetShiftState [15:03:27]wFMCommunicate request_size=4 [15:03:27]MH_SAM_APDU [15:03:27]CAPDU: 80 13 01 00 [15:03:27]Write to MH i2c: E2 08 00 01 30 80 13 01 00 00 00 00 00 AE [15:03:27]Write i2c OK [15:03:27]MH_I2C_Read... [15:03:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:03:27]Read from MH i2c: E2 [15:03:27]MH_I2C_Read... [15:03:27]Read from MH i2c: E2 0E 00 [15:03:27]MH_I2C_Read... [15:03:27]Read from MH i2c: E2 0E 00 01 30 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 70 [15:03:27]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [15:03:27]wFMCommunicate OK [15:03:27]SAM_PROTO_GetShiftState done [15:03:27]FM_GetShiftState done [15:03:27]req_shift_opened done [15:03:27]requested_item shift.open_date is exist - process it [15:03:27]req_shift_open_date [15:03:27]req_shift_open_date done [15:03:27]produce_requested_data done [15:03:27]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123268,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [15:03:27]process_action_free close_receipt [15:03:27]json_value_free [15:03:27]json_value_free done [15:03:27]process_json_proto returns [15:03:27]Send response to host [15:03:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123268,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [15:03:27]free response buf [15:03:27]execute_script done [15:03:27]execute_script returns [15:03:27]free content buf [15:03:27]Sock 7.Close socket [15:03:27]Sock 7.Thread stoped [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:49]accept exits with 9 [15:03:49]New connection [15:03:49]New thread 3067395428 created [15:03:49]Thread 3067252068 joined [15:03:49]Waiting for new connection... [15:03:49] Sock 9.Parse request [15:03:49]Sock 9.Check first char [15:03:49]Sock 9.First char is OK [15:03:49]request: POST /json_proto HTTP/1.0 [15:03:49]Method: POST [15:03:49]URL: /json_proto [15:03:49]Method is POST - this is cgi request [15:03:49]url: /json_proto [15:03:49]query_string will be loaded in cgi processing [15:03:49]execute_cgi json_proto POST (null) [15:03:49]execute_cgi path=json_proto method=POST [15:03:49]POST find Content-Length [15:03:49]Host: 172.17.48.197:8080 [15:03:49]Content-Length: 678 [15:03:49]Content-Type: application/json [15:03:49] [15:03:49]POST finish read [15:03:49]Found Content-Length = 678 [15:03:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106205", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 7.200, "sum" : 500.40, "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" ] } } [15:03:49]execute_script... [15:03:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106205", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 7.200, "sum" : 500.40, "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" ] } } [15:03:49]POST & json_proto [15:03:49]process_json_proto [15:03:49]json parsed OK: [15:03:49]protocol is kg_v1.0 [15:03:49]action value=close_receipt [15:03:49]process_action close_receipt [15:03:49]cmd_close_receipt [15:03:49]MH_GetDate [15:03:49]Write to MH i2c: F0 00 00 02 30 21 [15:03:49]Write i2c OK [15:03:49]MH_I2C_Read... [15:03:49]Read from MH i2c: F0 [15:03:49]MH_I2C_Read... [15:03:49]Read from MH i2c: F0 09 00 [15:03:49]MH_I2C_Read... [15:03:49]Read from MH i2c: F0 09 00 02 30 00 58 91 E4 65 6C AF E3 65 BF [15:03:49]GetLastDocTimeStamp 1709478206 [15:03:49]current date 1709478232 [15:03:49]FM_GetShiftState [15:03:49]SAM_PROTO_GetShiftState [15:03:49]wFMCommunicate request_size=4 [15:03:49]MH_SAM_APDU [15:03:49]CAPDU: 80 13 01 00 [15:03:49]Write to MH i2c: E2 08 00 03 30 80 13 01 00 00 00 00 00 B0 [15:03:49]Write i2c OK [15:03:49]MH_I2C_Read... [15:03:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:03:49]Read from MH i2c: E2 [15:03:49]MH_I2C_Read... [15:03:49]Read from MH i2c: E2 0E 00 [15:03:49]MH_I2C_Read... [15:03:49]Read from MH i2c: E2 0E 00 03 30 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 72 [15:03:49]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [15:03:49]wFMCommunicate OK [15:03:49]SAM_PROTO_GetShiftState done [15:03:49]FM_GetShiftState done [15:03:49]opened in 1709425579 [15:03:49]opened+sec_in_day 1709511979 [15:03:49]quantity*price = 50040 [15:03:49]sum+1 = 50041 [15:03:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 126 03.03.2024 15:03 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123269 ФПД: 199991223628826 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T150352&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123269&fm=199991223628826&tin=02508201610067®Number=0000000000090573&sum=50000 [15:03:50]StoreToDocumentArchive [15:03:50]shift 323 fd 123269 [15:03:50]save to /storage/0323/doc_00123269 [15:03:50]save last doc name /storage/0323/doc_00123269 to /storage/kkm_last_doc_name [15:03:50]save OK [15:03:50]Clear old archive folders... [15:03:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:03:50]tlvbuf is 00E45AF0 [15:03:50]SAM_PROTO_ClearQueue [15:03:50]wFMCommunicate request_size=4 [15:03:50]MH_SAM_APDU [15:03:50]CAPDU: 80 09 00 00 [15:03:50]Write to MH i2c: E2 08 00 10 30 80 09 00 00 00 00 00 00 B2 [15:03:50]Write i2c OK [15:03:50]MH_I2C_Read... [15:03:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:03:50]Read from MH i2c: E2 [15:03:50]MH_I2C_Read... [15:03:50]Read from MH i2c: E2 03 00 [15:03:50]MH_I2C_Read... [15:03:50]Read from MH i2c: E2 03 00 10 30 00 90 00 B4 [15:03:50]RAPDU: 90 00 [15:03:50]wFMCommunicate OK [15:03:50]SAM_PROTO_ClearQueue done [15:03:50]KKMCreateOFDPacket [15:03:50]OFDProtocolAddRootSTLVToBuf [15:03:50]FM_MakeSignedData [15:03:50]FM_MakeSignedData [15:03:50]SAM_PROTO_SignData [15:03:50]wFMCommunicate request_size=4 [15:03:50]MH_SAM_APDU [15:03:50]CAPDU: 80 0D 01 02 [15:03:50]Write to MH i2c: E2 08 00 11 30 80 0D 01 02 00 00 00 00 BA [15:03:50]Write i2c OK [15:03:50]MH_I2C_Read... [15:03:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:03:50]Read from MH i2c: E2 [15:03:50]MH_I2C_Read... [15:03:50]Read from MH i2c: E2 03 00 [15:03:50]MH_I2C_Read... [15:03:50]Read from MH i2c: E2 03 00 11 30 00 90 00 B5 [15:03:50]RAPDU: 90 00 [15:03:50]wFMCommunicate OK [15:03:50]wFMCommunicate request_size=255 [15:03:50]MH_SAM_APDU [15:03:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 1C 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 78 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 7E 00 00 00 F4 03 04 00 58 91 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 85 E1 01 00 35 04 06 00 B5 [15:03:50]Write to MH i2c: E2 02 01 12 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 1C 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 78 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 7E 00 00 00 F4 03 04 00 58 91 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 85 E1 01 00 35 04 06 00 B5 00 00 52 [15:03:50]Write i2c OK [15:03:50]MH_I2C_Read... [15:03:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:03:50]Read from MH i2c: E2 [15:03:50]MH_I2C_Read... [15:03:50]Read from MH i2c: E2 03 00 [15:03:50]MH_I2C_Read... [15:03:50]Read from MH i2c: E2 03 00 12 30 00 90 00 B6 [15:03:50]RAPDU: 90 00 [15:03:50]wFMCommunicate OK [15:03:50]wFMCommunicate request_size=10 [15:03:50]MH_SAM_APDU [15:03:50]CAPDU: 80 0D 02 02 05 E4 15 D7 B4 1A [15:03:50]Write to MH i2c: E2 0D 00 13 30 80 0D 02 02 05 00 E4 15 D7 B4 1A 00 00 65 [15:03:50]Write i2c OK [15:03:50]MH_I2C_Read... [15:03:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:03:50]Read from MH i2c: E2 [15:03:50]MH_I2C_Read... [15:03:50]Read from MH i2c: E2 03 00 [15:03:50]MH_I2C_Read... [15:03:50]Read from MH i2c: E2 03 00 13 30 00 90 00 B7 [15:03:50]RAPDU: 90 00 [15:03:50]wFMCommunicate OK [15:03:50]wFMCommunicate request_size=4 [15:03:50]MH_SAM_APDU [15:03:50]CAPDU: 80 0D 03 02 [15:03:50]Write to MH i2c: E2 08 00 14 30 80 0D 03 02 00 00 00 00 BF [15:03:50]Write i2c OK [15:03:50]MH_I2C_Read... [15:03:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:03:50]Read from MH i2c: E2 [15:03:50]MH_I2C_Read... [15:03:50]Read from MH i2c: E2 0B 00 [15:03:50]MH_I2C_Read... [15:03:50]Read from MH i2c: E2 0B 00 14 30 00 5E C8 56 D1 9F 3E 47 19 90 00 4A [15:03:50]RAPDU: 5E C8 56 D1 9F 3E 47 19 90 00 [15:03:50]wFMCommunicate OK [15:03:50]SAM_PROTO_SignData done [15:03:50]FM_MakeSignedData done [15:03:50]CreateOFDProtocolMessage [15:03:50]wFMCommunicate request_size=4 [15:03:50]MH_SAM_APDU [15:03:50]CAPDU: 80 11 00 00 [15:03:50]Write to MH i2c: E2 08 00 15 30 80 11 00 00 00 00 00 00 BF [15:03:50]Write i2c OK [15:03:50]MH_I2C_Read... [15:03:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:03:50]Read from MH i2c: E2 [15:03:50]MH_I2C_Read... [15:03:50]Read from MH i2c: E2 17 00 [15:03:50]MH_I2C_Read... [15:03:50]Read from MH i2c: E2 17 00 15 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 1D [15:03:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [15:03:50]wFMCommunicate OK [15:03:50]CreateOFDProtocolMessage done [15:03:50]OFDSenderStorePacket 123269 [15:03:50]StoreOFDPacket docnum=123269 [15:03:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 88 76 07 01 C5 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 1C 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 78 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 7E 00 00 00 F4 03 04 00 58 91 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 85 E1 01 00 35 04 06 00 B5 E4 15 D7 B4 1A 5E C8 56 D1 9F 3E 47 19 [15:03:50]CheckFolder [15:03:50]dirname=/storage/ofd_packets [15:03:50]CheckFolder done [15:03:50]ProducePacketName [15:03:50]name=ofd_packets/00123269 [15:03:50]NVStorageSaveData ofd_packets/00123269 [15:03:50]File name is /storage/ofd_packets/00123269 [15:03:50]Write 301 bytes [15:03:50]NVStorageSaveData done [15:03:50]OFDSenderStorePacket done [15:03:50]KKMCreateOFDPacket done [15:03:50]NVStorageSaveData kkm_last_timestamp [15:03:50]File name is /storage/kkm_last_timestamp [15:03:50]Write 4 bytes [15:03:50]NVStorageSaveData done [15:03:50]ExternCall_PrintAddStr [15:03:50]wPrintStart [15:03:50]Write to MH i2c: 01 00 00 16 30 46 [15:03:50]Write i2c OK [15:03:50]MH_I2C_Read... [15:03:50]Read from MH i2c: 01 [15:03:50]MH_I2C_Read... [15:03:50]Read from MH i2c: 01 07 00 [15:03:50]MH_I2C_Read... [15:03:50]Read from MH i2c: 01 07 00 16 30 00 00 00 00 00 FF 0F 5B [15:03:50]RasterBufferAndPrint [15:03:50]line Счет N : (1)1106205 [15:03:50]line ИНН: 02508201610067 [15:03:50]line Контрольно-Кассовый Чек [15:03:50]line ПРОДАЖА [15:03:50]line ТРК (МРК, ГНК) : 23 [15:03:50]line Товар: 2710124500 [15:03:50]line Аи-95-К-5 [15:03:50]line 7.200 * 69.50 [15:03:50]line = 500.40 [15:03:50]line НДС 12% НСП 1% [15:03:50]line > о реализуемом товаре [15:03:50]line ОКРУГЛЕНИЕ: -0.40 [15:03:50]line ИТОГО: 500.00 [15:03:50]line Внесено: 500.00 [15:03:50]line СДАЧА: 0.00 [15:03:50]line НСП 1% : 4.43 [15:03:50]line НДС 12% : 53.14 [15:03:50]line Наличными: 500.00 [15:03:50]line Безнал.: 0.00 [15:03:50]line Место: АЗС № 25 "Партнер Нефть" [15:03:50]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [15:03:50]line СНО: Общий режим [15:03:50]line Чек 126 03.03.2024 15:03 [15:03:50]line Смена: 323 ФФД: 1.0 [15:03:50]line ЗНМ: 0300000019 [15:03:50]line РНМ: 0000000000090573 [15:03:50]line Версия ККМ: 001 [15:03:50]line ФМ: 0000000000874798 [15:03:50]line ФД: 123269 [15:03:50]line ФПД: 199991223628826 [15:03:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T150352&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123269&fm=199991223628826&tin=02508201610067®Number=0000000000090573&sum=50000 [15:03:51]OFD Sender: Processing packet 123269 [packets to send 112, broken 111] [15:03:51]ProducePacketName [15:03:51]name=ofd_packets/00123269 [15:03:51]OFD Sender: To server: pG, [15:03:51]CommunicateWithHost lk.salyk.kg:30040 [15:03:51]ConnectInit lk.salyk.kg [15:03:51]written 0, free lines is 4095 [15:03:51]Connected sock=10 [15:03:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 88 76 07 01 C5 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 1C 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 78 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 7E 00 00 00 F4 03 04 00 58 91 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 85 E1 01 00 35 04 06 00 B5 E4 15 D7 B4 1A 5E C8 56 D1 9F 3E 47 19 [15:03:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 4C F0 47 00 A4 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 37 39 38 10 04 04 00 85 E1 01 00 F4 03 04 00 84 3D E4 65 B6 04 01 00 00 4E 84 9C 4C 55 7D 1D 30 [15:03:51]CommunicateWithHost err = 0 [15:03:51]CheckOFDResponse [15:03:51]1017 (14) - 77093643461234 [15:03:51]1041 (16) - 0000000000874798 [15:03:51]1040 (4) - 123269 [15:03:51]1012 (4) - 03.03.2024 09:06 [15:03:51]1206 (1) - 0 [15:03:51]OFD Sender: Remove packet 123269 [15:03:51]ProducePacketName [15:03:51]name=ofd_packets/00123269 [15:03:51]NVStorageDeleteData [15:03:51]Write to MH i2c: 01 00 00 41 30 71 [15:03:51]Write i2c OK [15:03:51]MH_I2C_Read... [15:03:51]Read from MH i2c: 01 [15:03:51]MH_I2C_Read... [15:03:51]Read from MH i2c: 01 07 00 [15:03:51]MH_I2C_Read... [15:03:51]Read from MH i2c: 01 07 00 41 30 00 00 00 00 00 EF 0C 73 [15:03:51]RasterBufferAndPrint [15:03:51]line [15:03:51]line [15:03:51]line [15:03:51]line [15:03:51]line [15:03:51]written 0, free lines is 3317 [15:03:51]MH_Cut [15:03:51]Write to MH i2c: D1 01 00 48 30 01 4A [15:03:51]Write i2c OK [15:03:51]MH_I2C_Read... [15:03:51]Read from MH i2c: D1 [15:03:51]MH_I2C_Read... [15:03:51]Read from MH i2c: D1 01 00 [15:03:51]MH_I2C_Read... [15:03:51]Read from MH i2c: D1 01 00 48 30 00 49 [15:03:51]Write to MH i2c: 01 00 00 49 30 79 [15:03:51]Write i2c OK [15:03:51]MH_I2C_Read... [15:03:51]OFD Sender: No OFD packet to send [15:03:52]*** Cut start [15:03:52]*** Purtial cut [15:03:52]*** Stage 1: CUTSNS_PIN = 1 [15:03:54]Read from MH i2c: 01 [15:03:54]MH_I2C_Read... [15:03:54]*** Stop cut motor [15:03:54]*** Cut end [15:03:54]Read from MH i2c: 01 07 00 [15:03:54]MH_I2C_Read... [15:03:54]Read from MH i2c: 01 07 00 49 30 00 00 00 00 00 FF 0F 8E [15:03:54]process_action close_receipt done [15:03:54]requested_data is exist [15:03:54]produce_requested_data [15:03:54]requested_item fm.sn is exist - process it [15:03:54]wFMCommunicate request_size=4 [15:03:54]MH_SAM_APDU [15:03:54]CAPDU: 80 11 00 00 [15:03:54]Write to MH i2c: E2 08 00 4A 30 80 11 00 00 00 00 00 00 F4 [15:03:54]Write i2c OK [15:03:54]MH_I2C_Read... [15:03:54]Read from MH i2c: E2 [15:03:54]MH_I2C_Read... [15:03:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:03:54]Read from MH i2c: E2 17 00 [15:03:54]MH_I2C_Read... [15:03:54]Read from MH i2c: E2 17 00 4A 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 52 [15:03:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [15:03:54]wFMCommunicate OK [15:03:54]requested_item fd.num is exist - process it [15:03:54]SAM_PROTO_GetFieldsCounters [15:03:54]wFMCommunicate request_size=4 [15:03:54]MH_SAM_APDU [15:03:54]CAPDU: 80 13 00 00 [15:03:54]Write to MH i2c: E2 08 00 4B 30 80 13 00 00 00 00 00 00 F7 [15:03:54]Write i2c OK [15:03:54]MH_I2C_Read... [15:03:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:03:54]Read from MH i2c: E2 [15:03:54]MH_I2C_Read... [15:03:54]Read from MH i2c: E2 62 00 [15:03:54]MH_I2C_Read... [15:03:54]Read from MH i2c: E2 62 00 4B 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 85 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 47 [15:03:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 85 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:03:54]wFMCommunicate OK [15:03:54]SAM_PROTO_GetFieldsCounters done [15:03:54]requested_item shift.num is exist - process it [15:03:54]requested_item shift.opened is exist - process it [15:03:54]req_shift_opened [15:03:54]FM_GetShiftState [15:03:54]SAM_PROTO_GetShiftState [15:03:54]wFMCommunicate request_size=4 [15:03:54]MH_SAM_APDU [15:03:54]CAPDU: 80 13 01 00 [15:03:54]Write to MH i2c: E2 08 00 4C 30 80 13 01 00 00 00 00 00 F9 [15:03:54]Write i2c OK [15:03:54]MH_I2C_Read... [15:03:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:03:54]Read from MH i2c: E2 [15:03:54]MH_I2C_Read... [15:03:54]Read from MH i2c: E2 0E 00 [15:03:54]MH_I2C_Read... [15:03:54]Read from MH i2c: E2 0E 00 4C 30 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 BB [15:03:54]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [15:03:54]wFMCommunicate OK [15:03:54]SAM_PROTO_GetShiftState done [15:03:54]FM_GetShiftState done [15:03:54]req_shift_opened done [15:03:54]requested_item shift.open_date is exist - process it [15:03:54]req_shift_open_date [15:03:54]req_shift_open_date done [15:03:54]produce_requested_data done [15:03:54]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123269,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [15:03:54]process_action_free close_receipt [15:03:54]json_value_free [15:03:54]json_value_free done [15:03:54]process_json_proto returns [15:03:54]Send response to host [15:03:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123269,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [15:03:54]free response buf [15:03:54]execute_script done [15:03:54]execute_script returns [15:03:54]free content buf [15:03:54]Sock 9.Close socket [15:03:54]Sock 9.Thread stoped [15:03:56]OFD Sender: No OFD packet to send [15:04:01]OFD Sender: No OFD packet to send [15:04:06]OFD Sender: No OFD packet to send [15:04:11]OFD Sender: No OFD packet to send [15:04:16]OFD Sender: No OFD packet to send [15:04:21]OFD Sender: No OFD packet to send [15:04:26]OFD Sender: No OFD packet to send [15:04:32]OFD Sender: No OFD packet to send [15:04:37]OFD Sender: No OFD packet to send [15:04:38]accept exits with 7 [15:04:38]New connection [15:04:38]New thread 3067252068 created [15:04:38]Thread 3067395428 joined [15:04:38]Waiting for new connection... [15:04:38] Sock 7.Parse request [15:04:38]Sock 7.Check first char [15:04:38]Sock 7.First char is OK [15:04:38]request: POST /json_proto HTTP/1.0 [15:04:38]Method: POST [15:04:38]URL: /json_proto [15:04:38]Method is POST - this is cgi request [15:04:38]url: /json_proto [15:04:38]query_string will be loaded in cgi processing [15:04:38]execute_cgi json_proto POST (null) [15:04:38]execute_cgi path=json_proto method=POST [15:04:38]POST find Content-Length [15:04:38]Host: 172.17.48.197:8080 [15:04:38]Content-Length: 662 [15:04:38]Content-Type: application/json [15:04:38] [15:04:38]POST finish read [15:04:38]Found Content-Length = 662 [15:04:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106206", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 10.000, "sum" : 619.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "payments": [ { "type": 0, "sum" : 619.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:04:38]execute_script... [15:04: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)1106206", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 10.000, "sum" : 619.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "payments": [ { "type": 0, "sum" : 619.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:04:38]POST & json_proto [15:04:38]process_json_proto [15:04:38]json parsed OK: [15:04:38]protocol is kg_v1.0 [15:04:38]action value=close_receipt [15:04:38]process_action close_receipt [15:04:38]cmd_close_receipt [15:04:38]MH_GetDate [15:04:38]Write to MH i2c: F0 00 00 4D 30 6C [15:04:38]Write i2c OK [15:04:38]MH_I2C_Read... [15:04:38]Read from MH i2c: F0 [15:04:38]MH_I2C_Read... [15:04:38]Read from MH i2c: F0 09 00 [15:04:38]MH_I2C_Read... [15:04:38]Read from MH i2c: F0 09 00 4D 30 00 8A 91 E4 65 6C AF E3 65 3C [15:04:38]GetLastDocTimeStamp 1709478232 [15:04:38]current date 1709478282 [15:04:38]FM_GetShiftState [15:04:38]SAM_PROTO_GetShiftState [15:04:38]wFMCommunicate request_size=4 [15:04:38]MH_SAM_APDU [15:04:38]CAPDU: 80 13 01 00 [15:04:38]Write to MH i2c: E2 08 00 4E 30 80 13 01 00 00 00 00 00 FB [15:04:38]Write i2c OK [15:04:38]MH_I2C_Read... [15:04:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:04:38]Read from MH i2c: E2 [15:04:38]MH_I2C_Read... [15:04:38]Read from MH i2c: E2 0E 00 [15:04:38]MH_I2C_Read... [15:04:38]Read from MH i2c: E2 0E 00 4E 30 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 BD [15:04:38]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [15:04:38]wFMCommunicate OK [15:04:38]SAM_PROTO_GetShiftState done [15:04:38]FM_GetShiftState done [15:04:38]opened in 1709425579 [15:04:38]opened+sec_in_day 1709511979 [15:04:38]quantity*price = 61900 [15:04:38]sum+1 = 61901 [15:04:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 619.00 Внесено: 1000.00 СДАЧА: 381.00 НСП 1% : 5.48 НДС 12% : 65.73 Наличными: 619.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 127 03.03.2024 15:04 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123270 ФПД: 192904346481060 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T150442&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123270&fm=192904346481060&tin=02508201610067®Number=0000000000090573&sum=61900 [15:04:39]StoreToDocumentArchive [15:04:39]shift 323 fd 123270 [15:04:39]save to /storage/0323/doc_00123270 [15:04:39]save last doc name /storage/0323/doc_00123270 to /storage/kkm_last_doc_name [15:04:39]save OK [15:04:39]Clear old archive folders... [15:04:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:04:39]tlvbuf is 00E82A80 [15:04:39]SAM_PROTO_ClearQueue [15:04:39]wFMCommunicate request_size=4 [15:04:39]MH_SAM_APDU [15:04:39]CAPDU: 80 09 00 00 [15:04:39]Write to MH i2c: E2 08 00 5B 30 80 09 00 00 00 00 00 00 FD [15:04:39]Write i2c OK [15:04:39]MH_I2C_Read... [15:04:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:04:39]Read from MH i2c: E2 [15:04:39]MH_I2C_Read... [15:04:39]Read from MH i2c: E2 03 00 [15:04:39]MH_I2C_Read... [15:04:39]Read from MH i2c: E2 03 00 5B 30 00 90 00 FF [15:04:39]RAPDU: 90 00 [15:04:39]wFMCommunicate OK [15:04:39]SAM_PROTO_ClearQueue done [15:04:39]KKMCreateOFDPacket [15:04:39]OFDProtocolAddRootSTLVToBuf [15:04:39]FM_MakeSignedData [15:04:39]FM_MakeSignedData [15:04:39]SAM_PROTO_SignData [15:04:39]wFMCommunicate request_size=4 [15:04:39]MH_SAM_APDU [15:04:39]CAPDU: 80 0D 01 02 [15:04:39]Write to MH i2c: E2 08 00 5C 30 80 0D 01 02 00 00 00 00 05 [15:04:39]Write i2c OK [15:04:39]MH_I2C_Read... [15:04:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:04:39]Read from MH i2c: E2 [15:04:39]MH_I2C_Read... [15:04:39]Read from MH i2c: E2 03 00 [15:04:39]MH_I2C_Read... [15:04:39]Read from MH i2c: E2 03 00 5C 30 00 90 00 00 [15:04:39]RAPDU: 90 00 [15:04:39]wFMCommunicate OK [15:04:39]wFMCommunicate request_size=255 [15:04:39]MH_SAM_APDU [15:04: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 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 CC F1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC F1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 19 00 00 00 00 07 04 06 00 CC F1 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 8A 91 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 86 E1 01 00 35 04 06 00 AF [15:04:39]Write to MH i2c: E2 02 01 5D 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 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 CC F1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC F1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 19 00 00 00 00 07 04 06 00 CC F1 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 8A 91 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 86 E1 01 00 35 04 06 00 AF 00 00 F7 [15:04:39]Write i2c OK [15:04:39]MH_I2C_Read... [15:04:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:04:40]Read from MH i2c: E2 [15:04:40]MH_I2C_Read... [15:04:40]Read from MH i2c: E2 03 00 [15:04:40]MH_I2C_Read... [15:04:40]Read from MH i2c: E2 03 00 5D 30 00 90 00 01 [15:04:40]RAPDU: 90 00 [15:04:40]wFMCommunicate OK [15:04:40]wFMCommunicate request_size=10 [15:04:40]MH_SAM_APDU [15:04:40]CAPDU: 80 0D 02 02 05 72 0B 0C 31 A4 [15:04:40]Write to MH i2c: E2 0D 00 5E 30 80 0D 02 02 05 00 72 0B 0C 31 A4 00 00 70 [15:04:40]Write i2c OK [15:04:40]MH_I2C_Read... [15:04:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:04:40]Read from MH i2c: E2 [15:04:40]MH_I2C_Read... [15:04:40]Read from MH i2c: E2 03 00 [15:04:40]MH_I2C_Read... [15:04:40]Read from MH i2c: E2 03 00 5E 30 00 90 00 02 [15:04:40]RAPDU: 90 00 [15:04:40]wFMCommunicate OK [15:04:40]wFMCommunicate request_size=4 [15:04:40]MH_SAM_APDU [15:04:40]CAPDU: 80 0D 03 02 [15:04:40]Write to MH i2c: E2 08 00 5F 30 80 0D 03 02 00 00 00 00 0A [15:04:40]Write i2c OK [15:04:40]MH_I2C_Read... [15:04:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:04:40]Read from MH i2c: E2 [15:04:40]MH_I2C_Read... [15:04:40]Read from MH i2c: E2 0B 00 [15:04:40]MH_I2C_Read... [15:04:40]Read from MH i2c: E2 0B 00 5F 30 00 33 2F 4A 37 83 CC A9 33 90 00 19 [15:04:40]RAPDU: 33 2F 4A 37 83 CC A9 33 90 00 [15:04:40]wFMCommunicate OK [15:04:40]SAM_PROTO_SignData done [15:04:40]FM_MakeSignedData done [15:04:40]CreateOFDProtocolMessage [15:04:40]wFMCommunicate request_size=4 [15:04:40]MH_SAM_APDU [15:04:40]CAPDU: 80 11 00 00 [15:04:40]Write to MH i2c: E2 08 00 60 30 80 11 00 00 00 00 00 00 0A [15:04:40]Write i2c OK [15:04:40]MH_I2C_Read... [15:04:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:04:40]Read from MH i2c: E2 [15:04:40]MH_I2C_Read... [15:04:40]Read from MH i2c: E2 17 00 [15:04:40]MH_I2C_Read... [15:04:40]Read from MH i2c: E2 17 00 60 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 68 [15:04:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [15:04:40]wFMCommunicate OK [15:04:40]CreateOFDProtocolMessage done [15:04:40]OFDSenderStorePacket 123270 [15:04:40]StoreOFDPacket docnum=123270 [15:04:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 7D 8C 07 01 7D E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 CC F1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC F1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 19 00 00 00 00 07 04 06 00 CC F1 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 8A 91 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 86 E1 01 00 35 04 06 00 AF 72 0B 0C 31 A4 33 2F 4A 37 83 CC A9 33 [15:04:40]CheckFolder [15:04:40]dirname=/storage/ofd_packets [15:04:40]CheckFolder done [15:04:40]ProducePacketName [15:04:40]name=ofd_packets/00123270 [15:04:40]NVStorageSaveData ofd_packets/00123270 [15:04:40]File name is /storage/ofd_packets/00123270 [15:04:40]Write 301 bytes [15:04:40]NVStorageSaveData done [15:04:40]OFDSenderStorePacket done [15:04:40]KKMCreateOFDPacket done [15:04:40]NVStorageSaveData kkm_last_timestamp [15:04:40]File name is /storage/kkm_last_timestamp [15:04:40]Write 4 bytes [15:04:40]NVStorageSaveData done [15:04:40]ExternCall_PrintAddStr [15:04:40]wPrintStart [15:04:40]Write to MH i2c: 01 00 00 61 30 91 [15:04:40]Write i2c OK [15:04:40]MH_I2C_Read... [15:04:40]Read from MH i2c: 01 [15:04:40]MH_I2C_Read... [15:04:40]Read from MH i2c: 01 07 00 [15:04:40]MH_I2C_Read... [15:04:40]Read from MH i2c: 01 07 00 61 30 00 00 00 00 00 FF 0F A6 [15:04:40]RasterBufferAndPrint [15:04:40]line Счет N : (1)1106206 [15:04:40]line ИНН: 02508201610067 [15:04:40]line Контрольно-Кассовый Чек [15:04:40]line ПРОДАЖА [15:04:40]line ТРК (МРК, ГНК) : 11 [15:04:40]line Товар: 2710124130 [15:04:40]line Аи-92-К-5 [15:04:40]line 10.000 * 61.90 [15:04:40]line = 619.00 [15:04:40]line НДС 12% НСП 1% [15:04:40]line > о реализуемом товаре [15:04:40]line ИТОГО: 619.00 [15:04:40]line Внесено: 1000.00 [15:04:40]line СДАЧА: 381.00 [15:04:40]line НСП 1% : 5.48 [15:04:40]line НДС 12% : 65.73 [15:04:40]line Наличными: 619.00 [15:04:40]line Безнал.: 0.00 [15:04:40]line Место: АЗС № 25 "Партнер Нефть" [15:04:40]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [15:04:40]line СНО: Общий режим [15:04:40]line Чек 127 03.03.2024 15:04 [15:04:40]line Смена: 323 ФФД: 1.0 [15:04:40]line ЗНМ: 0300000019 [15:04:40]line РНМ: 0000000000090573 [15:04:40]line Версия ККМ: 001 [15:04:40]line ФМ: 0000000000874798 [15:04:40]line ФД: 123270 [15:04:40]line ФПД: 192904346481060 [15:04:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T150442&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123270&fm=192904346481060&tin=02508201610067®Number=0000000000090573&sum=61900 [15:04:40]OFD Sender: Processing packet 123270 [packets to send 112, broken 111] [15:04:40]ProducePacketName [15:04:40]name=ofd_packets/00123270 [15:04:40]OFD Sender: To server: pG, [15:04:40]CommunicateWithHost lk.salyk.kg:30040 [15:04:40]ConnectInit lk.salyk.kg [15:04:40]written 0, free lines is 4095 [15:04:40]Connected sock=10 [15:04: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 37 39 38 0F 01 00 00 7D 8C 07 01 7D E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 CC F1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC F1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 19 00 00 00 00 07 04 06 00 CC F1 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 8A 91 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 86 E1 01 00 35 04 06 00 AF 72 0B 0C 31 A4 33 2F 4A 37 83 CC A9 33 [15:04:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 54 12 47 00 77 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 37 39 38 10 04 04 00 86 E1 01 00 F4 03 04 00 B5 3D E4 65 B6 04 01 00 00 2E 08 F0 40 A5 C0 CF CD [15:04:41]CommunicateWithHost err = 0 [15:04:41]CheckOFDResponse [15:04:41]1017 (14) - 77093643461234 [15:04:41]1041 (16) - 0000000000874798 [15:04:41]1040 (4) - 123270 [15:04:41]1012 (4) - 03.03.2024 09:07 [15:04:41]1206 (1) - 0 [15:04:41]OFD Sender: Remove packet 123270 [15:04:41]ProducePacketName [15:04:41]name=ofd_packets/00123270 [15:04:41]NVStorageDeleteData [15:04:41]Write to MH i2c: 01 00 00 8B 30 BB [15:04:41]Write i2c OK [15:04:41]MH_I2C_Read... [15:04:41]Read from MH i2c: 01 [15:04:41]MH_I2C_Read... [15:04:41]Read from MH i2c: 01 07 00 [15:04:41]MH_I2C_Read... [15:04:41]Read from MH i2c: 01 07 00 8B 30 00 00 00 00 00 F9 0C C7 [15:04:41]RasterBufferAndPrint [15:04:41]line [15:04:41]line [15:04:41]line [15:04:41]line [15:04:41]line [15:04:41]written 0, free lines is 3330 [15:04:41]MH_Cut [15:04:41]Write to MH i2c: D1 01 00 92 30 01 94 [15:04:41]Write i2c OK [15:04:41]MH_I2C_Read... [15:04:41]Read from MH i2c: D1 [15:04:41]MH_I2C_Read... [15:04:41]Read from MH i2c: D1 01 00 [15:04:41]MH_I2C_Read... [15:04:41]Read from MH i2c: D1 01 00 92 30 00 93 [15:04:41]Write to MH i2c: 01 00 00 93 30 C3 [15:04:41]Write i2c OK [15:04:41]MH_I2C_Read... [15:04:41]OFD Sender: No OFD packet to send [15:04:41]*** Cut start [15:04:41]*** Purtial cut [15:04:41]*** Stage 1: CUTSNS_PIN = 1 [15:04:43]Read from MH i2c: 01 [15:04:43]MH_I2C_Read... [15:04:43]*** Stop cut motor [15:04:43]*** Cut end [15:04:43]Read from MH i2c: 01 07 00 [15:04:43]MH_I2C_Read... [15:04:43]Read from MH i2c: 01 07 00 93 30 00 00 00 00 00 FF 0F D8 [15:04:43]process_action close_receipt done [15:04:43]requested_data is exist [15:04:43]produce_requested_data [15:04:43]requested_item fm.sn is exist - process it [15:04:43]wFMCommunicate request_size=4 [15:04:43]MH_SAM_APDU [15:04:43]CAPDU: 80 11 00 00 [15:04:43]Write to MH i2c: E2 08 00 94 30 80 11 00 00 00 00 00 00 3E [15:04:43]Write i2c OK [15:04:43]MH_I2C_Read... [15:04:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:04:43]Read from MH i2c: E2 [15:04:43]MH_I2C_Read... [15:04:43]Read from MH i2c: E2 17 00 [15:04:43]MH_I2C_Read... [15:04:43]Read from MH i2c: E2 17 00 94 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 9C [15:04:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [15:04:43]wFMCommunicate OK [15:04:43]requested_item fd.num is exist - process it [15:04:43]SAM_PROTO_GetFieldsCounters [15:04:43]wFMCommunicate request_size=4 [15:04:43]MH_SAM_APDU [15:04:43]CAPDU: 80 13 00 00 [15:04:43]Write to MH i2c: E2 08 00 95 30 80 13 00 00 00 00 00 00 41 [15:04:43]Write i2c OK [15:04:43]MH_I2C_Read... [15:04:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:04:44]Read from MH i2c: E2 [15:04:44]MH_I2C_Read... [15:04:44]Read from MH i2c: E2 62 00 [15:04:44]MH_I2C_Read... [15:04:44]Read from MH i2c: E2 62 00 95 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 86 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 95 [15:04: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 86 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:04:44]wFMCommunicate OK [15:04:44]SAM_PROTO_GetFieldsCounters done [15:04:44]requested_item shift.num is exist - process it [15:04:44]requested_item shift.opened is exist - process it [15:04:44]req_shift_opened [15:04:44]FM_GetShiftState [15:04:44]SAM_PROTO_GetShiftState [15:04:44]wFMCommunicate request_size=4 [15:04:44]MH_SAM_APDU [15:04:44]CAPDU: 80 13 01 00 [15:04:44]Write to MH i2c: E2 08 00 96 30 80 13 01 00 00 00 00 00 43 [15:04:44]Write i2c OK [15:04:44]MH_I2C_Read... [15:04:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:04:44]Read from MH i2c: E2 [15:04:44]MH_I2C_Read... [15:04:44]Read from MH i2c: E2 0E 00 [15:04:44]MH_I2C_Read... [15:04:44]Read from MH i2c: E2 0E 00 96 30 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 05 [15:04:44]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [15:04:44]wFMCommunicate OK [15:04:44]SAM_PROTO_GetShiftState done [15:04:44]FM_GetShiftState done [15:04:44]req_shift_opened done [15:04:44]requested_item shift.open_date is exist - process it [15:04:44]req_shift_open_date [15:04:44]req_shift_open_date done [15:04:44]produce_requested_data done [15:04:44]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123270,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [15:04:44]process_action_free close_receipt [15:04:44]json_value_free [15:04:44]json_value_free done [15:04:44]process_json_proto returns [15:04:44]Send response to host [15:04:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123270,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [15:04:44]free response buf [15:04:44]execute_script done [15:04:44]execute_script returns [15:04:44]free content buf [15:04:44]Sock 7.Close socket [15:04:44]Sock 7.Thread stoped [15:04:46]OFD Sender: No OFD packet to send [15:04:51]OFD Sender: No OFD packet to send [15:04:56]OFD Sender: No OFD packet to send [15:05:01]OFD Sender: No OFD packet to send [15:05:06]OFD Sender: No OFD packet to send [15:05:11]OFD Sender: No OFD packet to send [15:05:16]OFD Sender: No OFD packet to send [15:05:21]OFD Sender: No OFD packet to send [15:05:26]OFD Sender: No OFD packet to send [15:05:31]OFD Sender: No OFD packet to send [15:05:36]OFD Sender: No OFD packet to send [15:05:41]OFD Sender: No OFD packet to send [15:05:46]OFD Sender: No OFD packet to send [15:05:51]OFD Sender: No OFD packet to send [15:05:56]OFD Sender: No OFD packet to send [15:06:01]OFD Sender: No OFD packet to send [15:06:06]OFD Sender: No OFD packet to send [15:06:11]OFD Sender: No OFD packet to send [15:06:16]OFD Sender: No OFD packet to send [15:06:21]OFD Sender: No OFD packet to send [15:06:26]OFD Sender: No OFD packet to send [15:06:31]OFD Sender: No OFD packet to send [15:06:33]accept exits with 9 [15:06:33]New connection [15:06:33]New thread 3067395428 created [15:06:33]Thread 3067252068 joined [15:06:33]Waiting for new connection... [15:06:33] Sock 9.Parse request [15:06:33]Sock 9.Check first char [15:06:33]Sock 9.First char is OK [15:06:33]request: POST /json_proto HTTP/1.0 [15:06:33]Method: POST [15:06:33]URL: /json_proto [15:06:33]Method is POST - this is cgi request [15:06:33]url: /json_proto [15:06:33]query_string will be loaded in cgi processing [15:06:33]execute_cgi json_proto POST (null) [15:06:33]execute_cgi path=json_proto method=POST [15:06:33]POST find Content-Length [15:06:33]Host: 172.17.48.197:8080 [15:06:33]Content-Length: 678 [15:06:33]Content-Type: application/json [15:06:33] [15:06:33]POST finish read [15:06:33]Found Content-Length = 678 [15:06:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106207", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "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" ] } } [15:06:33]execute_script... [15:06: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)1106207", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "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" ] } } [15:06:33]POST & json_proto [15:06:33]process_json_proto [15:06:33]json parsed OK: [15:06:33]protocol is kg_v1.0 [15:06:33]action value=close_receipt [15:06:33]process_action close_receipt [15:06:33]cmd_close_receipt [15:06:33]MH_GetDate [15:06:33]Write to MH i2c: F0 00 00 97 30 B6 [15:06:33]Write i2c OK [15:06:33]MH_I2C_Read... [15:06:33]Read from MH i2c: F0 [15:06:33]MH_I2C_Read... [15:06:33]Read from MH i2c: F0 09 00 [15:06:33]MH_I2C_Read... [15:06:33]Read from MH i2c: F0 09 00 97 30 00 FD 91 E4 65 6C AF E3 65 F9 [15:06:33]GetLastDocTimeStamp 1709478282 [15:06:33]current date 1709478397 [15:06:33]FM_GetShiftState [15:06:33]SAM_PROTO_GetShiftState [15:06:33]wFMCommunicate request_size=4 [15:06:33]MH_SAM_APDU [15:06:33]CAPDU: 80 13 01 00 [15:06:33]Write to MH i2c: E2 08 00 98 30 80 13 01 00 00 00 00 00 45 [15:06:33]Write i2c OK [15:06:33]MH_I2C_Read... [15:06:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:06:33]Read from MH i2c: E2 [15:06:33]MH_I2C_Read... [15:06:33]Read from MH i2c: E2 0E 00 [15:06:33]MH_I2C_Read... [15:06:33]Read from MH i2c: E2 0E 00 98 30 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 07 [15:06:33]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [15:06:33]wFMCommunicate OK [15:06:33]SAM_PROTO_GetShiftState done [15:06:33]FM_GetShiftState done [15:06:33]opened in 1709425579 [15:06:33]opened+sec_in_day 1709511979 [15:06:33]quantity*price = 50015 [15:06:33]sum+1 = 50016 [15:06:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 128 03.03.2024 15:06 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123271 ФПД: 19927305003807 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T150637&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123271&fm=19927305003807&tin=02508201610067®Number=0000000000090573&sum=50000 [15:06:34]StoreToDocumentArchive [15:06:34]shift 323 fd 123271 [15:06:34]save to /storage/0323/doc_00123271 [15:06:34]save last doc name /storage/0323/doc_00123271 to /storage/kkm_last_doc_name [15:06:34]save OK [15:06:34]Clear old archive folders... [15:06:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:06:34]tlvbuf is 00DED350 [15:06:34]SAM_PROTO_ClearQueue [15:06:34]wFMCommunicate request_size=4 [15:06:34]MH_SAM_APDU [15:06:34]CAPDU: 80 09 00 00 [15:06:34]Write to MH i2c: E2 08 00 A5 30 80 09 00 00 00 00 00 00 47 [15:06:34]Write i2c OK [15:06:34]MH_I2C_Read... [15:06:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:06:34]Read from MH i2c: E2 [15:06:34]MH_I2C_Read... [15:06:34]Read from MH i2c: E2 03 00 [15:06:34]MH_I2C_Read... [15:06:34]Read from MH i2c: E2 03 00 A5 30 00 90 00 49 [15:06:34]RAPDU: 90 00 [15:06:34]wFMCommunicate OK [15:06:34]SAM_PROTO_ClearQueue done [15:06:34]KKMCreateOFDPacket [15:06:34]OFDProtocolAddRootSTLVToBuf [15:06:34]FM_MakeSignedData [15:06:34]FM_MakeSignedData [15:06:34]SAM_PROTO_SignData [15:06:34]wFMCommunicate request_size=4 [15:06:34]MH_SAM_APDU [15:06:34]CAPDU: 80 0D 01 02 [15:06:34]Write to MH i2c: E2 08 00 A6 30 80 0D 01 02 00 00 00 00 4F [15:06:34]Write i2c OK [15:06:34]MH_I2C_Read... [15:06:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:06:34]Read from MH i2c: E2 [15:06:34]MH_I2C_Read... [15:06:34]Read from MH i2c: E2 03 00 [15:06:34]MH_I2C_Read... [15:06:34]Read from MH i2c: E2 03 00 A6 30 00 90 00 4A [15:06:34]RAPDU: 90 00 [15:06:34]wFMCommunicate OK [15:06:34]wFMCommunicate request_size=255 [15:06:34]MH_SAM_APDU [15:06: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 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 FD 91 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 87 E1 01 00 35 04 06 00 12 [15:06:34]Write to MH i2c: E2 02 01 A7 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 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 FD 91 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 87 E1 01 00 35 04 06 00 12 00 00 45 [15:06:34]Write i2c OK [15:06:34]MH_I2C_Read... [15:06:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:06:34]Read from MH i2c: E2 [15:06:34]MH_I2C_Read... [15:06:34]Read from MH i2c: E2 03 00 [15:06:34]MH_I2C_Read... [15:06:34]Read from MH i2c: E2 03 00 A7 30 00 90 00 4B [15:06:34]RAPDU: 90 00 [15:06:34]wFMCommunicate OK [15:06:34]wFMCommunicate request_size=10 [15:06:34]MH_SAM_APDU [15:06:34]CAPDU: 80 0D 02 02 05 1F AF EF A3 1F [15:06:34]Write to MH i2c: E2 0D 00 A8 30 80 0D 02 02 05 00 1F AF EF A3 1F 00 00 DB [15:06:34]Write i2c OK [15:06:34]MH_I2C_Read... [15:06:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:06:34]Read from MH i2c: E2 [15:06:34]MH_I2C_Read... [15:06:34]Read from MH i2c: E2 03 00 [15:06:34]MH_I2C_Read... [15:06:34]Read from MH i2c: E2 03 00 A8 30 00 90 00 4C [15:06:34]RAPDU: 90 00 [15:06:34]wFMCommunicate OK [15:06:34]wFMCommunicate request_size=4 [15:06:34]MH_SAM_APDU [15:06:34]CAPDU: 80 0D 03 02 [15:06:34]Write to MH i2c: E2 08 00 A9 30 80 0D 03 02 00 00 00 00 54 [15:06:34]Write i2c OK [15:06:34]MH_I2C_Read... [15:06:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:06:35]Read from MH i2c: E2 [15:06:35]MH_I2C_Read... [15:06:35]Read from MH i2c: E2 0B 00 [15:06:35]MH_I2C_Read... [15:06:35]Read from MH i2c: E2 0B 00 A9 30 00 6D AF 27 66 82 14 5C 3A 90 00 2A [15:06:35]RAPDU: 6D AF 27 66 82 14 5C 3A 90 00 [15:06:35]wFMCommunicate OK [15:06:35]SAM_PROTO_SignData done [15:06:35]FM_MakeSignedData done [15:06:35]CreateOFDProtocolMessage [15:06:35]wFMCommunicate request_size=4 [15:06:35]MH_SAM_APDU [15:06:35]CAPDU: 80 11 00 00 [15:06:35]Write to MH i2c: E2 08 00 AA 30 80 11 00 00 00 00 00 00 54 [15:06:35]Write i2c OK [15:06:35]MH_I2C_Read... [15:06:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:06:35]Read from MH i2c: E2 [15:06:35]MH_I2C_Read... [15:06:35]Read from MH i2c: E2 17 00 [15:06:35]MH_I2C_Read... [15:06:35]Read from MH i2c: E2 17 00 AA 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 B2 [15:06:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [15:06:35]wFMCommunicate OK [15:06:35]CreateOFDProtocolMessage done [15:06:35]OFDSenderStorePacket 123271 [15:06:35]StoreOFDPacket docnum=123271 [15:06:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 33 6B 07 01 BA 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 FD 91 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 87 E1 01 00 35 04 06 00 12 1F AF EF A3 1F 6D AF 27 66 82 14 5C 3A [15:06:35]CheckFolder [15:06:35]dirname=/storage/ofd_packets [15:06:35]CheckFolder done [15:06:35]ProducePacketName [15:06:35]name=ofd_packets/00123271 [15:06:35]NVStorageSaveData ofd_packets/00123271 [15:06:35]File name is /storage/ofd_packets/00123271 [15:06:35]Write 301 bytes [15:06:35]NVStorageSaveData done [15:06:35]OFDSenderStorePacket done [15:06:35]KKMCreateOFDPacket done [15:06:35]NVStorageSaveData kkm_last_timestamp [15:06:35]File name is /storage/kkm_last_timestamp [15:06:35]Write 4 bytes [15:06:35]NVStorageSaveData done [15:06:35]ExternCall_PrintAddStr [15:06:35]wPrintStart [15:06:35]Write to MH i2c: 01 00 00 AB 30 DB [15:06:35]Write i2c OK [15:06:35]MH_I2C_Read... [15:06:35]Read from MH i2c: 01 [15:06:35]MH_I2C_Read... [15:06:35]Read from MH i2c: 01 07 00 [15:06:35]MH_I2C_Read... [15:06:35]Read from MH i2c: 01 07 00 AB 30 00 00 00 00 00 FF 0F F0 [15:06:35]RasterBufferAndPrint [15:06:35]line Счет N : (1)1106207 [15:06:35]line ИНН: 02508201610067 [15:06:35]line Контрольно-Кассовый Чек [15:06:35]line ПРОДАЖА [15:06:35]line ТРК (МРК, ГНК) : 21 [15:06:35]line Товар: 2710124130 [15:06:35]line Аи-92-К-5 [15:06:35]line 8.080 * 61.90 [15:06:35]line = 500.15 [15:06:35]line НДС 12% НСП 1% [15:06:35]line > о реализуемом товаре [15:06:35]line ОКРУГЛЕНИЕ: -0.15 [15:06:35]line ИТОГО: 500.00 [15:06:35]line Внесено: 500.00 [15:06:35]line СДАЧА: 0.00 [15:06:35]line НСП 1% : 4.43 [15:06:35]line НДС 12% : 53.11 [15:06:35]line Наличными: 500.00 [15:06:35]line Безнал.: 0.00 [15:06:35]line Место: АЗС № 25 "Партнер Нефть" [15:06:35]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [15:06:35]line СНО: Общий режим [15:06:35]line Чек 128 03.03.2024 15:06 [15:06:35]line Смена: 323 ФФД: 1.0 [15:06:35]line ЗНМ: 0300000019 [15:06:35]line РНМ: 0000000000090573 [15:06:35]line Версия ККМ: 001 [15:06:35]line ФМ: 0000000000874798 [15:06:35]line ФД: 123271 [15:06:35]line ФПД: 19927305003807 [15:06:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T150637&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123271&fm=19927305003807&tin=02508201610067®Number=0000000000090573&sum=50000 [15:06:35]OFD Sender: Processing packet 123271 [packets to send 112, broken 111] [15:06:35]ProducePacketName [15:06:35]name=ofd_packets/00123271 [15:06:35]OFD Sender: To server: pG, [15:06:35]CommunicateWithHost lk.salyk.kg:30040 [15:06:35]ConnectInit lk.salyk.kg [15:06:35]written 0, free lines is 4095 [15:06:35]Connected sock=10 [15:06: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 37 39 38 0F 01 00 00 33 6B 07 01 BA 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 FD 91 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 87 E1 01 00 35 04 06 00 12 1F AF EF A3 1F 6D AF 27 66 82 14 5C 3A [15:06:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 B3 5A 47 00 2F 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 37 39 38 10 04 04 00 87 E1 01 00 F4 03 04 00 28 3E E4 65 B6 04 01 00 00 7C 1A 46 11 92 B0 00 CD [15:06:35]CommunicateWithHost err = 0 [15:06:35]CheckOFDResponse [15:06:35]1017 (14) - 77093643461234 [15:06:35]1041 (16) - 0000000000874798 [15:06:35]1040 (4) - 123271 [15:06:35]1012 (4) - 03.03.2024 09:08 [15:06:35]1206 (1) - 0 [15:06:35]OFD Sender: Remove packet 123271 [15:06:35]ProducePacketName [15:06:35]name=ofd_packets/00123271 [15:06:35]NVStorageDeleteData [15:06:35]Write to MH i2c: 01 00 00 D6 30 06 [15:06:35]Write i2c OK [15:06:35]MH_I2C_Read... [15:06:35]Read from MH i2c: 01 [15:06:35]MH_I2C_Read... [15:06:35]Read from MH i2c: 01 07 00 [15:06:35]MH_I2C_Read... [15:06:35]Read from MH i2c: 01 07 00 D6 30 00 00 00 00 00 E5 0C FE [15:06:35]RasterBufferAndPrint [15:06:35]line [15:06:35]line [15:06:35]line [15:06:35]line [15:06:35]line [15:06:35]written 0, free lines is 3307 [15:06:35]MH_Cut [15:06:35]Write to MH i2c: D1 01 00 DD 30 01 DF [15:06:35]Write i2c OK [15:06:35]MH_I2C_Read... [15:06:35]Read from MH i2c: D1 [15:06:35]MH_I2C_Read... [15:06:35]Read from MH i2c: D1 01 00 [15:06:35]MH_I2C_Read... [15:06:35]Read from MH i2c: D1 01 00 DD 30 00 DE [15:06:35]Write to MH i2c: 01 00 00 DE 30 0E [15:06:35]Write i2c OK [15:06:35]MH_I2C_Read... [15:06:36]OFD Sender: No OFD packet to send [15:06:36]*** Cut start [15:06:36]*** Purtial cut [15:06:36]*** Stage 1: CUTSNS_PIN = 1 [15:06:38]Read from MH i2c: 01 [15:06:38]MH_I2C_Read... [15:06:38]*** Stop cut motor [15:06:38]*** Cut end [15:06:38]Read from MH i2c: 01 07 00 [15:06:38]MH_I2C_Read... [15:06:38]Read from MH i2c: 01 07 00 DE 30 00 00 00 00 00 FF 0F 23 [15:06:38]process_action close_receipt done [15:06:38]requested_data is exist [15:06:38]produce_requested_data [15:06:38]requested_item fm.sn is exist - process it [15:06:38]wFMCommunicate request_size=4 [15:06:38]MH_SAM_APDU [15:06:38]CAPDU: 80 11 00 00 [15:06:38]Write to MH i2c: E2 08 00 DF 30 80 11 00 00 00 00 00 00 89 [15:06:38]Write i2c OK [15:06:38]MH_I2C_Read... [15:06:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:06:38]Read from MH i2c: E2 [15:06:38]MH_I2C_Read... [15:06:38]Read from MH i2c: E2 17 00 [15:06:38]MH_I2C_Read... [15:06:38]Read from MH i2c: E2 17 00 DF 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 E7 [15:06:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [15:06:38]wFMCommunicate OK [15:06:38]requested_item fd.num is exist - process it [15:06:38]SAM_PROTO_GetFieldsCounters [15:06:38]wFMCommunicate request_size=4 [15:06:38]MH_SAM_APDU [15:06:38]CAPDU: 80 13 00 00 [15:06:38]Write to MH i2c: E2 08 00 E0 30 80 13 00 00 00 00 00 00 8C [15:06:38]Write i2c OK [15:06:38]MH_I2C_Read... [15:06:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:06:38]Read from MH i2c: E2 [15:06:38]MH_I2C_Read... [15:06:38]Read from MH i2c: E2 62 00 [15:06:38]MH_I2C_Read... [15:06:38]Read from MH i2c: E2 62 00 E0 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 87 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 E4 [15:06: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 87 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:06:38]wFMCommunicate OK [15:06:38]SAM_PROTO_GetFieldsCounters done [15:06:38]requested_item shift.num is exist - process it [15:06:38]requested_item shift.opened is exist - process it [15:06:38]req_shift_opened [15:06:38]FM_GetShiftState [15:06:38]SAM_PROTO_GetShiftState [15:06:38]wFMCommunicate request_size=4 [15:06:38]MH_SAM_APDU [15:06:38]CAPDU: 80 13 01 00 [15:06:38]Write to MH i2c: E2 08 00 E1 30 80 13 01 00 00 00 00 00 8E [15:06:38]Write i2c OK [15:06:38]MH_I2C_Read... [15:06:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:06:38]Read from MH i2c: E2 [15:06:38]MH_I2C_Read... [15:06:38]Read from MH i2c: E2 0E 00 [15:06:38]MH_I2C_Read... [15:06:38]Read from MH i2c: E2 0E 00 E1 30 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 50 [15:06:38]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [15:06:38]wFMCommunicate OK [15:06:38]SAM_PROTO_GetShiftState done [15:06:38]FM_GetShiftState done [15:06:38]req_shift_opened done [15:06:38]requested_item shift.open_date is exist - process it [15:06:38]req_shift_open_date [15:06:38]req_shift_open_date done [15:06:38]produce_requested_data done [15:06:38]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123271,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [15:06:38]process_action_free close_receipt [15:06:38]json_value_free [15:06:38]json_value_free done [15:06:38]process_json_proto returns [15:06:38]Send response to host [15:06:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123271,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [15:06:38]free response buf [15:06:38]execute_script done [15:06:38]execute_script returns [15:06:38]free content buf [15:06:38]Sock 9.Close socket [15:06:38]Sock 9.Thread stoped [15:06:41]OFD Sender: No OFD packet to send [15:06:46]OFD Sender: No OFD packet to send [15:06:51]OFD Sender: No OFD packet to send [15:06:56]OFD Sender: No OFD packet to send [15:07:01]OFD Sender: No OFD packet to send [15:07:06]OFD Sender: No OFD packet to send [15:07:11]OFD Sender: No OFD packet to send [15:07:16]OFD Sender: No OFD packet to send [15:07:21]OFD Sender: No OFD packet to send [15:07:26]OFD Sender: No OFD packet to send [15:07:31]OFD Sender: No OFD packet to send [15:07:36]OFD Sender: No OFD packet to send [15:07:41]OFD Sender: No OFD packet to send [15:07:46]OFD Sender: No OFD packet to send [15:07:51]OFD Sender: No OFD packet to send [15:07:56]OFD Sender: No OFD packet to send [15:08:01]OFD Sender: No OFD packet to send [15:08:06]OFD Sender: No OFD packet to send [15:08:11]OFD Sender: No OFD packet to send [15:08:16]OFD Sender: No OFD packet to send [15:08:21]OFD Sender: No OFD packet to send [15:08:26]OFD Sender: No OFD packet to send [15:08:31]OFD Sender: No OFD packet to send [15:08:36]OFD Sender: No OFD packet to send [15:08:41]OFD Sender: No OFD packet to send [15:08:46]OFD Sender: No OFD packet to send [15:08:51]OFD Sender: No OFD packet to send [15:08:56]OFD Sender: No OFD packet to send [15:09:01]OFD Sender: No OFD packet to send [15:09:06]OFD Sender: No OFD packet to send [15:09:11]OFD Sender: No OFD packet to send [15:09:16]OFD Sender: No OFD packet to send [15:09:21]OFD Sender: No OFD packet to send [15:09:25]accept exits with 7 [15:09:25]New connection [15:09:25]New thread 3067252068 created [15:09:25]Thread 3067395428 joined [15:09:25]Waiting for new connection... [15:09:25] Sock 7.Parse request [15:09:25]Sock 7.Check first char [15:09:25]Sock 7.First char is OK [15:09:25]request: POST /json_proto HTTP/1.0 [15:09:25]Method: POST [15:09:25]URL: /json_proto [15:09:25]Method is POST - this is cgi request [15:09:25]url: /json_proto [15:09:25]query_string will be loaded in cgi processing [15:09:25]execute_cgi json_proto POST (null) [15:09:25]execute_cgi path=json_proto method=POST [15:09:25]POST find Content-Length [15:09:25]Host: 172.17.48.197:8080 [15:09:25]Content-Length: 679 [15:09:25]Content-Type: application/json [15:09:25] [15:09:25]POST finish read [15:09:25]Found Content-Length = 679 [15:09:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106209", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 10.080, "sum" : 700.56, "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" ] } } [15:09:25]execute_script... [15:09:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106209", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 10.080, "sum" : 700.56, "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" ] } } [15:09:25]POST & json_proto [15:09:25]process_json_proto [15:09:25]json parsed OK: [15:09:25]protocol is kg_v1.0 [15:09:25]action value=close_receipt [15:09:25]process_action close_receipt [15:09:25]cmd_close_receipt [15:09:25]MH_GetDate [15:09:25]Write to MH i2c: F0 00 00 E2 30 01 [15:09:25]Write i2c OK [15:09:25]MH_I2C_Read... [15:09:25]Read from MH i2c: F0 [15:09:25]MH_I2C_Read... [15:09:25]Read from MH i2c: F0 09 00 [15:09:25]MH_I2C_Read... [15:09:25]Read from MH i2c: F0 09 00 E2 30 00 A9 92 E4 65 6C AF E3 65 F1 [15:09:25]GetLastDocTimeStamp 1709478397 [15:09:25]current date 1709478569 [15:09:25]FM_GetShiftState [15:09:25]SAM_PROTO_GetShiftState [15:09:25]wFMCommunicate request_size=4 [15:09:25]MH_SAM_APDU [15:09:25]CAPDU: 80 13 01 00 [15:09:25]Write to MH i2c: E2 08 00 E3 30 80 13 01 00 00 00 00 00 90 [15:09:25]Write i2c OK [15:09:25]MH_I2C_Read... [15:09:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:26]Read from MH i2c: E2 [15:09:26]MH_I2C_Read... [15:09:26]Read from MH i2c: E2 0E 00 [15:09:26]MH_I2C_Read... [15:09:26]Read from MH i2c: E2 0E 00 E3 30 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 52 [15:09:26]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [15:09:26]wFMCommunicate OK [15:09:26]SAM_PROTO_GetShiftState done [15:09:26]FM_GetShiftState done [15:09:26]opened in 1709425579 [15:09:26]opened+sec_in_day 1709511979 [15:09:26]quantity*price = 70056 [15:09:26]sum+1 = 70057 [15:09:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.40 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 129 03.03.2024 15:09 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123272 ФПД: 46900374502388 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T150929&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123272&fm=46900374502388&tin=02508201610067®Number=0000000000090573&sum=70000 [15:09:27]StoreToDocumentArchive [15:09:27]shift 323 fd 123272 [15:09:27]save to /storage/0323/doc_00123272 [15:09:27]save last doc name /storage/0323/doc_00123272 to /storage/kkm_last_doc_name [15:09:27]save OK [15:09:27]Clear old archive folders... [15:09:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:09:27]tlvbuf is 00E298F0 [15:09:27]SAM_PROTO_ClearQueue [15:09:27]wFMCommunicate request_size=4 [15:09:27]MH_SAM_APDU [15:09:27]CAPDU: 80 09 00 00 [15:09:27]Write to MH i2c: E2 08 00 F0 30 80 09 00 00 00 00 00 00 92 [15:09:27]Write i2c OK [15:09:27]MH_I2C_Read... [15:09:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:09:27]Read from MH i2c: E2 [15:09:27]MH_I2C_Read... [15:09:27]Read from MH i2c: E2 03 00 [15:09:27]MH_I2C_Read... [15:09:27]Read from MH i2c: E2 03 00 F0 30 00 90 00 94 [15:09:27]RAPDU: 90 00 [15:09:27]wFMCommunicate OK [15:09:27]SAM_PROTO_ClearQueue done [15:09:27]KKMCreateOFDPacket [15:09:27]OFDProtocolAddRootSTLVToBuf [15:09:27]FM_MakeSignedData [15:09:27]FM_MakeSignedData [15:09:27]SAM_PROTO_SignData [15:09:27]wFMCommunicate request_size=4 [15:09:27]MH_SAM_APDU [15:09:27]CAPDU: 80 0D 01 02 [15:09:27]Write to MH i2c: E2 08 00 F1 30 80 0D 01 02 00 00 00 00 9A [15:09:27]Write i2c OK [15:09:27]MH_I2C_Read... [15:09:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:09:27]Read from MH i2c: E2 [15:09:27]MH_I2C_Read... [15:09:27]Read from MH i2c: E2 03 00 [15:09:27]MH_I2C_Read... [15:09:27]Read from MH i2c: E2 03 00 F1 30 00 90 00 95 [15:09:27]RAPDU: 90 00 [15:09:27]wFMCommunicate OK [15:09:27]wFMCommunicate request_size=255 [15:09:27]MH_SAM_APDU [15:09:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 60 27 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 A8 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 10 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 81 00 00 00 F4 03 04 00 A9 92 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 88 E1 01 00 35 04 06 00 2A [15:09:27]Write to MH i2c: E2 02 01 F2 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 60 27 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 A8 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 10 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 81 00 00 00 F4 03 04 00 A9 92 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 88 E1 01 00 35 04 06 00 2A 00 00 B0 [15:09:27]Write i2c OK [15:09:27]MH_I2C_Read... [15:09:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:27]Read from MH i2c: E2 [15:09:27]MH_I2C_Read... [15:09:27]Read from MH i2c: E2 03 00 [15:09:27]MH_I2C_Read... [15:09:27]Read from MH i2c: E2 03 00 F2 30 00 90 00 96 [15:09:27]RAPDU: 90 00 [15:09:27]wFMCommunicate OK [15:09:27]wFMCommunicate request_size=10 [15:09:27]MH_SAM_APDU [15:09:27]CAPDU: 80 0D 02 02 05 A7 D8 29 7B F4 [15:09:27]Write to MH i2c: E2 0D 00 F3 30 80 0D 02 02 05 00 A7 D8 29 7B F4 00 00 BE [15:09:27]Write i2c OK [15:09:27]MH_I2C_Read... [15:09:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:27]Read from MH i2c: E2 [15:09:27]MH_I2C_Read... [15:09:27]Read from MH i2c: E2 03 00 [15:09:27]MH_I2C_Read... [15:09:27]Read from MH i2c: E2 03 00 F3 30 00 90 00 97 [15:09:27]RAPDU: 90 00 [15:09:27]wFMCommunicate OK [15:09:27]wFMCommunicate request_size=4 [15:09:27]MH_SAM_APDU [15:09:27]CAPDU: 80 0D 03 02 [15:09:27]Write to MH i2c: E2 08 00 F4 30 80 0D 03 02 00 00 00 00 9F [15:09:27]Write i2c OK [15:09:27]MH_I2C_Read... [15:09:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:09:27]Read from MH i2c: E2 [15:09:27]MH_I2C_Read... [15:09:27]Read from MH i2c: E2 0B 00 [15:09:27]MH_I2C_Read... [15:09:27]Read from MH i2c: E2 0B 00 F4 30 00 C6 69 13 D4 9C 8F 2E 7A 90 00 89 [15:09:27]RAPDU: C6 69 13 D4 9C 8F 2E 7A 90 00 [15:09:27]wFMCommunicate OK [15:09:27]SAM_PROTO_SignData done [15:09:27]FM_MakeSignedData done [15:09:27]CreateOFDProtocolMessage [15:09:27]wFMCommunicate request_size=4 [15:09:27]MH_SAM_APDU [15:09:27]CAPDU: 80 11 00 00 [15:09:27]Write to MH i2c: E2 08 00 F5 30 80 11 00 00 00 00 00 00 9F [15:09:27]Write i2c OK [15:09:27]MH_I2C_Read... [15:09:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:27]Read from MH i2c: E2 [15:09:27]MH_I2C_Read... [15:09:27]Read from MH i2c: E2 17 00 [15:09:27]MH_I2C_Read... [15:09:27]Read from MH i2c: E2 17 00 F5 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 FD [15:09:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [15:09:27]wFMCommunicate OK [15:09:27]CreateOFDProtocolMessage done [15:09:27]OFDSenderStorePacket 123272 [15:09:27]StoreOFDPacket docnum=123272 [15:09:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 62 B8 07 01 9A A6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 60 27 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 A8 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 10 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 81 00 00 00 F4 03 04 00 A9 92 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 88 E1 01 00 35 04 06 00 2A A7 D8 29 7B F4 C6 69 13 D4 9C 8F 2E 7A [15:09:27]CheckFolder [15:09:27]dirname=/storage/ofd_packets [15:09:27]CheckFolder done [15:09:27]ProducePacketName [15:09:27]name=ofd_packets/00123272 [15:09:27]NVStorageSaveData ofd_packets/00123272 [15:09:27]File name is /storage/ofd_packets/00123272 [15:09:27]Write 301 bytes [15:09:27]NVStorageSaveData done [15:09:27]OFDSenderStorePacket done [15:09:27]KKMCreateOFDPacket done [15:09:27]NVStorageSaveData kkm_last_timestamp [15:09:27]File name is /storage/kkm_last_timestamp [15:09:27]Write 4 bytes [15:09:27]NVStorageSaveData done [15:09:27]ExternCall_PrintAddStr [15:09:27]wPrintStart [15:09:27]Write to MH i2c: 01 00 00 F6 30 26 [15:09:27]Write i2c OK [15:09:27]MH_I2C_Read... [15:09:27]Read from MH i2c: 01 [15:09:27]MH_I2C_Read... [15:09:27]Read from MH i2c: 01 07 00 [15:09:27]MH_I2C_Read... [15:09:27]Read from MH i2c: 01 07 00 F6 30 00 00 00 00 00 FF 0F 3B [15:09:27]RasterBufferAndPrint [15:09:27]line Счет N : (1)1106209 [15:09:27]line ИНН: 02508201610067 [15:09:27]line Контрольно-Кассовый Чек [15:09:27]line ПРОДАЖА [15:09:27]line ТРК (МРК, ГНК) : 13 [15:09:27]line Товар: 2710124500 [15:09:27]line Аи-95-К-5 [15:09:27]line 10.080 * 69.50 [15:09:27]line = 700.56 [15:09:27]line НДС 12% НСП 1% [15:09:27]line > о реализуемом товаре [15:09:27]line ОКРУГЛЕНИЕ: -0.56 [15:09:27]line ИТОГО: 700.00 [15:09:27]line Внесено: 700.00 [15:09:27]line СДАЧА: 0.00 [15:09:27]line НСП 1% : 6.20 [15:09:27]line НДС 12% : 74.40 [15:09:27]line Наличными: 700.00 [15:09:27]line Безнал.: 0.00 [15:09:27]line Место: АЗС № 25 "Партнер Нефть" [15:09:27]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [15:09:27]line СНО: Общий режим [15:09:27]line Чек 129 03.03.2024 15:09 [15:09:27]line Смена: 323 ФФД: 1.0 [15:09:27]line ЗНМ: 0300000019 [15:09:27]line РНМ: 0000000000090573 [15:09:27]line Версия ККМ: 001 [15:09:27]line ФМ: 0000000000874798 [15:09:27]line ФД: 123272 [15:09:27]line ФПД: 46900374502388 [15:09:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T150929&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123272&fm=46900374502388&tin=02508201610067®Number=0000000000090573&sum=70000 [15:09:28]OFD Sender: Processing packet 123272 [packets to send 112, broken 111] [15:09:28]ProducePacketName [15:09:28]name=ofd_packets/00123272 [15:09:28]OFD Sender: To server: pG, [15:09:28]CommunicateWithHost lk.salyk.kg:30040 [15:09:28]ConnectInit lk.salyk.kg [15:09:28]written 0, free lines is 4095 [15:09:28]Connected sock=10 [15:09: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 37 39 38 0F 01 00 00 62 B8 07 01 9A A6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 60 27 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 A8 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 10 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 81 00 00 00 F4 03 04 00 A9 92 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 88 E1 01 00 35 04 06 00 2A A7 D8 29 7B F4 C6 69 13 D4 9C 8F 2E 7A [15:09:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 D3 0C 47 00 88 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 37 39 38 10 04 04 00 88 E1 01 00 F4 03 04 00 D5 3E E4 65 B6 04 01 00 00 FB C0 98 66 98 0A 79 D9 [15:09:28]CommunicateWithHost err = 0 [15:09:28]CheckOFDResponse [15:09:28]1017 (14) - 77093643461234 [15:09:28]1041 (16) - 0000000000874798 [15:09:28]1040 (4) - 123272 [15:09:28]1012 (4) - 03.03.2024 09:11 [15:09:28]1206 (1) - 0 [15:09:28]OFD Sender: Remove packet 123272 [15:09:28]ProducePacketName [15:09:28]name=ofd_packets/00123272 [15:09:28]NVStorageDeleteData [15:09:28]Write to MH i2c: 01 00 00 21 31 52 [15:09:28]Write i2c OK [15:09:28]MH_I2C_Read... [15:09:28]Read from MH i2c: 01 [15:09:28]MH_I2C_Read... [15:09:28]Read from MH i2c: 01 07 00 [15:09:28]MH_I2C_Read... [15:09:28]Read from MH i2c: 01 07 00 21 31 00 00 00 00 00 F2 0C 57 [15:09:28]RasterBufferAndPrint [15:09:28]line [15:09:28]line [15:09:28]line [15:09:28]line [15:09:28]line [15:09:28]written 0, free lines is 3320 [15:09:28]MH_Cut [15:09:28]Write to MH i2c: D1 01 00 28 31 01 2B [15:09:28]Write i2c OK [15:09:28]MH_I2C_Read... [15:09:28]Read from MH i2c: D1 [15:09:28]MH_I2C_Read... [15:09:28]Read from MH i2c: D1 01 00 [15:09:28]MH_I2C_Read... [15:09:28]Read from MH i2c: D1 01 00 28 31 00 2A [15:09:28]Write to MH i2c: 01 00 00 29 31 5A [15:09:28]Write i2c OK [15:09:28]MH_I2C_Read... [15:09:28]OFD Sender: No OFD packet to send [15:09:29]*** Cut start [15:09:29]*** Purtial cut [15:09:29]*** Stage 1: CUTSNS_PIN = 1 [15:09:31]Read from MH i2c: 01 [15:09:31]MH_I2C_Read... [15:09:31]*** Stop cut motor [15:09:31]*** Cut end [15:09:31]Read from MH i2c: 01 07 00 [15:09:31]MH_I2C_Read... [15:09:31]Read from MH i2c: 01 07 00 29 31 00 00 00 00 00 FF 0F 6F [15:09:31]process_action close_receipt done [15:09:31]requested_data is exist [15:09:31]produce_requested_data [15:09:31]requested_item fm.sn is exist - process it [15:09:31]wFMCommunicate request_size=4 [15:09:31]MH_SAM_APDU [15:09:31]CAPDU: 80 11 00 00 [15:09:31]Write to MH i2c: E2 08 00 2A 31 80 11 00 00 00 00 00 00 D5 [15:09:31]Write i2c OK [15:09:31]MH_I2C_Read... [15:09:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:31]Read from MH i2c: E2 [15:09:31]MH_I2C_Read... [15:09:31]Read from MH i2c: E2 17 00 [15:09:31]MH_I2C_Read... [15:09:31]Read from MH i2c: E2 17 00 2A 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 33 [15:09:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [15:09:31]wFMCommunicate OK [15:09:31]requested_item fd.num is exist - process it [15:09:31]SAM_PROTO_GetFieldsCounters [15:09:31]wFMCommunicate request_size=4 [15:09:31]MH_SAM_APDU [15:09:31]CAPDU: 80 13 00 00 [15:09:31]Write to MH i2c: E2 08 00 2B 31 80 13 00 00 00 00 00 00 D8 [15:09:31]Write i2c OK [15:09:31]MH_I2C_Read... [15:09:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:09:31]Read from MH i2c: E2 [15:09:31]MH_I2C_Read... [15:09:31]Read from MH i2c: E2 62 00 [15:09:31]MH_I2C_Read... [15:09:31]Read from MH i2c: E2 62 00 2B 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 88 E1 01 00 0E 04 04 00 43 01 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 34 [15:09: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 88 E1 01 00 0E 04 04 00 43 01 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 [15:09:31]wFMCommunicate OK [15:09:31]SAM_PROTO_GetFieldsCounters done [15:09:31]requested_item shift.num is exist - process it [15:09:31]requested_item shift.opened is exist - process it [15:09:31]req_shift_opened [15:09:31]FM_GetShiftState [15:09:31]SAM_PROTO_GetShiftState [15:09:31]wFMCommunicate request_size=4 [15:09:31]MH_SAM_APDU [15:09:31]CAPDU: 80 13 01 00 [15:09:31]Write to MH i2c: E2 08 00 2C 31 80 13 01 00 00 00 00 00 DA [15:09:31]Write i2c OK [15:09:31]MH_I2C_Read... [15:09:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:31]Read from MH i2c: E2 [15:09:31]MH_I2C_Read... [15:09:31]Read from MH i2c: E2 0E 00 [15:09:31]MH_I2C_Read... [15:09:31]Read from MH i2c: E2 0E 00 2C 31 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 9C [15:09:31]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [15:09:31]wFMCommunicate OK [15:09:31]SAM_PROTO_GetShiftState done [15:09:31]FM_GetShiftState done [15:09:31]req_shift_opened done [15:09:31]requested_item shift.open_date is exist - process it [15:09:31]req_shift_open_date [15:09:31]req_shift_open_date done [15:09:31]produce_requested_data done [15:09:31]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123272,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [15:09:31]process_action_free close_receipt [15:09:31]json_value_free [15:09:31]json_value_free done [15:09:31]process_json_proto returns [15:09:31]Send response to host [15:09:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123272,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [15:09:31]free response buf [15:09:31]execute_script done [15:09:31]execute_script returns [15:09:31]free content buf [15:09:31]Sock 7.Close socket [15:09:31]Sock 7.Thread stoped [15:09:33]OFD Sender: No OFD packet to send [15:09:38]accept exits with 9 [15:09:38]New connection [15:09:38]New thread 3067395428 created [15:09:38]Thread 3067252068 joined [15:09:38]Waiting for new connection... [15:09:38] Sock 9.Parse request [15:09:38]Sock 9.Check first char [15:09:38]Sock 9.First char is OK [15:09:38]request: POST /json_proto HTTP/1.0 [15:09:38]Method: POST [15:09:38]URL: /json_proto [15:09:38]Method is POST - this is cgi request [15:09:38]url: /json_proto [15:09:38]query_string will be loaded in cgi processing [15:09:38]execute_cgi json_proto POST (null) [15:09:38]execute_cgi path=json_proto method=POST [15:09:38]POST find Content-Length [15:09:38]Host: 172.17.48.197:8080 [15:09:38]Content-Length: 809 [15:09:38]Content-Type: application/json [15:09:38] [15:09:38]POST finish read [15:09:38]Found Content-Length = 809 [15:09:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106208", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.30 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:38]execute_script... [15:09: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)1106208", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.30 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:38]POST & json_proto [15:09:38]process_json_proto [15:09:38]json parsed OK: [15:09:38]protocol is kg_v1.0 [15:09:38]action value=close_receipt [15:09:38]process_action close_receipt [15:09:38]cmd_close_receipt [15:09:38]MH_GetDate [15:09:38]Write to MH i2c: F0 00 00 2D 31 4D [15:09:38]Write i2c OK [15:09:38]MH_I2C_Read... [15:09:38]Read from MH i2c: F0 [15:09:38]MH_I2C_Read... [15:09:38]Read from MH i2c: F0 09 00 [15:09:38]MH_I2C_Read... [15:09:38]Read from MH i2c: F0 09 00 2D 31 00 B5 92 E4 65 6C AF E3 65 49 [15:09:38]GetLastDocTimeStamp 1709478569 [15:09:38]current date 1709478581 [15:09:38]FM_GetShiftState [15:09:38]SAM_PROTO_GetShiftState [15:09:38]wFMCommunicate request_size=4 [15:09:38]MH_SAM_APDU [15:09:38]CAPDU: 80 13 01 00 [15:09:38]Write to MH i2c: E2 08 00 2E 31 80 13 01 00 00 00 00 00 DC [15:09:38]Write i2c OK [15:09:38]MH_I2C_Read... [15:09:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:38]Read from MH i2c: E2 [15:09:38]MH_I2C_Read... [15:09:38]Read from MH i2c: E2 0E 00 [15:09:38]MH_I2C_Read... [15:09:38]Read from MH i2c: E2 0E 00 2E 31 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 9E [15:09:38]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [15:09:38]wFMCommunicate OK [15:09:38]SAM_PROTO_GetShiftState done [15:09:38]FM_GetShiftState done [15:09:38]opened in 1709425579 [15:09:38]opened+sec_in_day 1709511979 [15:09:38]quantity*price = 100030 [15:09:38]sum+1 = 100031 [15:09:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.30 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 0.00 Безнал.: 1000.30 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 130 03.03.2024 15:09 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874798 ФД: 123273 ФПД: 180755922201314 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T150941&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123273&fm=180755922201314&tin=02508201610067®Number=0000000000090573&sum=100030 [15:09:39]StoreToDocumentArchive [15:09:39]shift 323 fd 123273 [15:09:39]save to /storage/0323/doc_00123273 [15:09:39]save last doc name /storage/0323/doc_00123273 to /storage/kkm_last_doc_name [15:09:39]save OK [15:09:39]Clear old archive folders... [15:09:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:09:39]tlvbuf is 00DFC940 [15:09:39]SAM_PROTO_ClearQueue [15:09:39]wFMCommunicate request_size=4 [15:09:39]MH_SAM_APDU [15:09:39]CAPDU: 80 09 00 00 [15:09:39]Write to MH i2c: E2 08 00 3B 31 80 09 00 00 00 00 00 00 DE [15:09:39]Write i2c OK [15:09:39]MH_I2C_Read... [15:09:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:09:39]Read from MH i2c: E2 [15:09:39]MH_I2C_Read... [15:09:39]Read from MH i2c: E2 03 00 [15:09:39]MH_I2C_Read... [15:09:39]Read from MH i2c: E2 03 00 3B 31 00 90 00 E0 [15:09:39]RAPDU: 90 00 [15:09:39]wFMCommunicate OK [15:09:39]SAM_PROTO_ClearQueue done [15:09:39]KKMCreateOFDPacket [15:09:39]OFDProtocolAddRootSTLVToBuf [15:09:39]FM_MakeSignedData [15:09:39]FM_MakeSignedData [15:09:39]SAM_PROTO_SignData [15:09:39]wFMCommunicate request_size=4 [15:09:39]MH_SAM_APDU [15:09:39]CAPDU: 80 0D 01 02 [15:09:39]Write to MH i2c: E2 08 00 3C 31 80 0D 01 02 00 00 00 00 E6 [15:09:39]Write i2c OK [15:09:39]MH_I2C_Read... [15:09:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:09:39]Read from MH i2c: E2 [15:09:39]MH_I2C_Read... [15:09:39]Read from MH i2c: E2 03 00 [15:09:39]MH_I2C_Read... [15:09:39]Read from MH i2c: E2 03 00 3C 31 00 90 00 E1 [15:09:39]RAPDU: 90 00 [15:09:39]wFMCommunicate OK [15:09:39]wFMCommunicate request_size=255 [15:09:39]MH_SAM_APDU [15:09: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 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 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 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 B5 92 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 89 E1 01 00 35 04 06 00 A4 [15:09:39]Write to MH i2c: E2 02 01 3D 31 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 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 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 B5 92 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 89 E1 01 00 35 04 06 00 A4 00 00 F3 [15:09:39]Write i2c OK [15:09:39]MH_I2C_Read... [15:09:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:39]Read from MH i2c: E2 [15:09:39]MH_I2C_Read... [15:09:39]Read from MH i2c: E2 03 00 [15:09:39]MH_I2C_Read... [15:09:39]Read from MH i2c: E2 03 00 3D 31 00 90 00 E2 [15:09:39]RAPDU: 90 00 [15:09:39]wFMCommunicate OK [15:09:39]wFMCommunicate request_size=10 [15:09:39]MH_SAM_APDU [15:09:39]CAPDU: 80 0D 02 02 05 65 84 88 AA E2 [15:09:39]Write to MH i2c: E2 0D 00 3E 31 80 0D 02 02 05 00 65 84 88 AA E2 00 00 F0 [15:09:39]Write i2c OK [15:09:39]MH_I2C_Read... [15:09:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:39]Read from MH i2c: E2 [15:09:39]MH_I2C_Read... [15:09:39]Read from MH i2c: E2 03 00 [15:09:39]MH_I2C_Read... [15:09:39]Read from MH i2c: E2 03 00 3E 31 00 90 00 E3 [15:09:39]RAPDU: 90 00 [15:09:39]wFMCommunicate OK [15:09:39]wFMCommunicate request_size=4 [15:09:39]MH_SAM_APDU [15:09:39]CAPDU: 80 0D 03 02 [15:09:39]Write to MH i2c: E2 08 00 3F 31 80 0D 03 02 00 00 00 00 EB [15:09:39]Write i2c OK [15:09:39]MH_I2C_Read... [15:09:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:09:39]Read from MH i2c: E2 [15:09:39]MH_I2C_Read... [15:09:39]Read from MH i2c: E2 0B 00 [15:09:39]MH_I2C_Read... [15:09:39]Read from MH i2c: E2 0B 00 3F 31 00 37 B1 E4 3C 9E D9 D1 FB 90 00 37 [15:09:39]RAPDU: 37 B1 E4 3C 9E D9 D1 FB 90 00 [15:09:39]wFMCommunicate OK [15:09:39]SAM_PROTO_SignData done [15:09:39]FM_MakeSignedData done [15:09:39]CreateOFDProtocolMessage [15:09:39]wFMCommunicate request_size=4 [15:09:39]MH_SAM_APDU [15:09:39]CAPDU: 80 11 00 00 [15:09:39]Write to MH i2c: E2 08 00 40 31 80 11 00 00 00 00 00 00 EB [15:09:39]Write i2c OK [15:09:39]MH_I2C_Read... [15:09:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:39]Read from MH i2c: E2 [15:09:39]MH_I2C_Read... [15:09:39]Read from MH i2c: E2 17 00 [15:09:39]MH_I2C_Read... [15:09:39]Read from MH i2c: E2 17 00 40 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 49 [15:09:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [15:09:39]wFMCommunicate OK [15:09:39]CreateOFDProtocolMessage done [15:09:39]OFDSenderStorePacket 123273 [15:09:39]StoreOFDPacket docnum=123273 [15:09:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 44 D9 07 01 59 FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 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 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 B5 92 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 89 E1 01 00 35 04 06 00 A4 65 84 88 AA E2 37 B1 E4 3C 9E D9 D1 FB [15:09:39]CheckFolder [15:09:39]dirname=/storage/ofd_packets [15:09:39]CheckFolder done [15:09:39]ProducePacketName [15:09:39]name=ofd_packets/00123273 [15:09:39]NVStorageSaveData ofd_packets/00123273 [15:09:39]File name is /storage/ofd_packets/00123273 [15:09:39]Write 301 bytes [15:09:39]NVStorageSaveData done [15:09:39]OFDSenderStorePacket done [15:09:39]KKMCreateOFDPacket done [15:09:39]NVStorageSaveData kkm_last_timestamp [15:09:39]File name is /storage/kkm_last_timestamp [15:09:39]Write 4 bytes [15:09:39]NVStorageSaveData done [15:09:39]ExternCall_PrintAddStr [15:09:39]wPrintStart [15:09:39]Write to MH i2c: 01 00 00 41 31 72 [15:09:39]Write i2c OK [15:09:39]MH_I2C_Read... [15:09:39]Read from MH i2c: 01 [15:09:39]MH_I2C_Read... [15:09:39]Read from MH i2c: 01 07 00 [15:09:39]MH_I2C_Read... [15:09:39]Read from MH i2c: 01 07 00 41 31 00 00 00 00 00 FF 0F 87 [15:09:39]RasterBufferAndPrint [15:09:39]line Счет N : (1)1106208 [15:09:39]line ИНН: 02508201610067 [15:09:39]line Контрольно-Кассовый Чек [15:09:39]line ПРОДАЖА [15:09:39]line ТРК (МРК, ГНК) : 52 [15:09:39]line Товар: 2710124130 [15:09:39]line Аи-92-К-5 [15:09:39]line 16.160 * 61.90 [15:09:39]line = 1000.30 [15:09:39]line НДС 12% НСП 1% [15:09:39]line > о реализуемом товаре [15:09:39]line ИТОГО: 1000.30 [15:09:39]line НСП 1% : 8.85 [15:09:39]line НДС 12% : 106.23 [15:09:39]line Наличными: 0.00 [15:09:39]line Безнал.: 1000.30 [15:09:39]line Место: АЗС № 25 "Партнер Нефть" [15:09:39]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [15:09:39]line СНО: Общий режим [15:09:39]line Чек 130 03.03.2024 15:09 [15:09:39]line Смена: 323 ФФД: 1.0 [15:09:39]line ЗНМ: 0300000019 [15:09:39]line РНМ: 0000000000090573 [15:09:39]line Версия ККМ: 001 [15:09:39]line Платежная система: О! деньги [15:09:39]line ФМ: 0000000000874798 [15:09:39]line ФД: 123273 [15:09:39]line ФПД: 180755922201314 [15:09:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T150941&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123273&fm=180755922201314&tin=02508201610067®Number=0000000000090573&sum=100030 [15:09:39]written 0, free lines is 4095 [15:09:39]OFD Sender: Processing packet 123273 [packets to send 112, broken 111] [15:09:39]ProducePacketName [15:09:39]name=ofd_packets/00123273 [15:09:39]OFD Sender: To server: pG, [15:09:39]CommunicateWithHost lk.salyk.kg:30040 [15:09:39]ConnectInit lk.salyk.kg [15:09:40]Connected sock=10 [15:09: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 37 39 38 0F 01 00 00 44 D9 07 01 59 FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 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 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 B5 92 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 89 E1 01 00 35 04 06 00 A4 65 84 88 AA E2 37 B1 E4 3C 9E D9 D1 FB [15:09:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 DF 56 47 00 7D 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 37 39 38 10 04 04 00 89 E1 01 00 F4 03 04 00 E1 3E E4 65 B6 04 01 00 00 20 4C 9A 2D FF C4 53 14 [15:09:40]CommunicateWithHost err = 0 [15:09:40]CheckOFDResponse [15:09:40]1017 (14) - 77093643461234 [15:09:40]1041 (16) - 0000000000874798 [15:09:40]1040 (4) - 123273 [15:09:40]1012 (4) - 03.03.2024 09:12 [15:09:40]1206 (1) - 0 [15:09:40]OFD Sender: Remove packet 123273 [15:09:40]ProducePacketName [15:09:40]name=ofd_packets/00123273 [15:09:40]NVStorageDeleteData [15:09:40]Write to MH i2c: 01 00 00 6B 31 9C [15:09:40]Write i2c OK [15:09:40]MH_I2C_Read... [15:09:40]Read from MH i2c: 01 [15:09:40]MH_I2C_Read... [15:09:40]Read from MH i2c: 01 07 00 [15:09:40]MH_I2C_Read... [15:09:40]Read from MH i2c: 01 07 00 6B 31 00 00 00 00 00 F7 0C A6 [15:09:40]RasterBufferAndPrint [15:09:40]line [15:09:40]line [15:09:40]line [15:09:40]line [15:09:40]line [15:09:40]written 0, free lines is 3331 [15:09:40]MH_Cut [15:09:40]Write to MH i2c: D1 01 00 72 31 01 75 [15:09:40]Write i2c OK [15:09:40]MH_I2C_Read... [15:09:40]Read from MH i2c: D1 [15:09:40]MH_I2C_Read... [15:09:40]Read from MH i2c: D1 01 00 [15:09:40]MH_I2C_Read... [15:09:40]Read from MH i2c: D1 01 00 72 31 00 74 [15:09:40]Write to MH i2c: 01 00 00 73 31 A4 [15:09:40]Write i2c OK [15:09:40]MH_I2C_Read... [15:09:40]OFD Sender: No OFD packet to send [15:09:41]*** Cut start [15:09:41]*** Purtial cut [15:09:41]*** Stage 1: CUTSNS_PIN = 1 [15:09:43]Read from MH i2c: 01 [15:09:43]MH_I2C_Read... [15:09:43]*** Stop cut motor [15:09:43]*** Cut end [15:09:43]Read from MH i2c: 01 07 00 [15:09:43]MH_I2C_Read... [15:09:43]Read from MH i2c: 01 07 00 73 31 00 00 00 00 00 FF 0F B9 [15:09:43]process_action close_receipt done [15:09:43]requested_data is exist [15:09:43]produce_requested_data [15:09:43]requested_item fm.sn is exist - process it [15:09:43]wFMCommunicate request_size=4 [15:09:43]MH_SAM_APDU [15:09:43]CAPDU: 80 11 00 00 [15:09:43]Write to MH i2c: E2 08 00 74 31 80 11 00 00 00 00 00 00 1F [15:09:43]Write i2c OK [15:09:43]MH_I2C_Read... [15:09:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:43]Read from MH i2c: E2 [15:09:43]MH_I2C_Read... [15:09:43]Read from MH i2c: E2 17 00 [15:09:43]MH_I2C_Read... [15:09:43]Read from MH i2c: E2 17 00 74 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 7D [15:09:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [15:09:43]wFMCommunicate OK [15:09:43]requested_item fd.num is exist - process it [15:09:43]SAM_PROTO_GetFieldsCounters [15:09:43]wFMCommunicate request_size=4 [15:09:43]MH_SAM_APDU [15:09:43]CAPDU: 80 13 00 00 [15:09:43]Write to MH i2c: E2 08 00 75 31 80 13 00 00 00 00 00 00 22 [15:09:43]Write i2c OK [15:09:43]MH_I2C_Read... [15:09:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:09:43]Read from MH i2c: E2 [15:09:43]MH_I2C_Read... [15:09:43]Read from MH i2c: E2 62 00 [15:09:43]MH_I2C_Read... [15:09:43]Read from MH i2c: E2 62 00 75 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 89 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 82 [15:09: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 89 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:09:43]wFMCommunicate OK [15:09:43]SAM_PROTO_GetFieldsCounters done [15:09:43]requested_item shift.num is exist - process it [15:09:43]requested_item shift.opened is exist - process it [15:09:43]req_shift_opened [15:09:43]FM_GetShiftState [15:09:43]SAM_PROTO_GetShiftState [15:09:43]wFMCommunicate request_size=4 [15:09:43]MH_SAM_APDU [15:09:43]CAPDU: 80 13 01 00 [15:09:43]Write to MH i2c: E2 08 00 76 31 80 13 01 00 00 00 00 00 24 [15:09:43]Write i2c OK [15:09:43]MH_I2C_Read... [15:09:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:43]Read from MH i2c: E2 [15:09:43]MH_I2C_Read... [15:09:43]Read from MH i2c: E2 0E 00 [15:09:43]MH_I2C_Read... [15:09:43]Read from MH i2c: E2 0E 00 76 31 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 E6 [15:09:43]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [15:09:43]wFMCommunicate OK [15:09:43]SAM_PROTO_GetShiftState done [15:09:43]FM_GetShiftState done [15:09:43]req_shift_opened done [15:09:43]requested_item shift.open_date is exist - process it [15:09:43]req_shift_open_date [15:09:43]req_shift_open_date done [15:09:43]produce_requested_data done [15:09:43]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123273,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [15:09:43]process_action_free close_receipt [15:09:43]json_value_free [15:09:43]json_value_free done [15:09:43]process_json_proto returns [15:09:43]Send response to host [15:09:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123273,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [15:09:43]free response buf [15:09:43]execute_script done [15:09:43]execute_script returns [15:09:43]free content buf [15:09:43]Sock 9.Close socket [15:09:43]Sock 9.Thread stoped [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:11:57]accept exits with 7 [15:11:57]New connection [15:11:57]New thread 3067252068 created [15:11:57]Thread 3067395428 joined [15:11:57]Waiting for new connection... [15:11:57] Sock 7.Parse request [15:11:57]Sock 7.Check first char [15:11:57]Sock 7.First char is OK [15:11:57]request: POST /json_proto HTTP/1.0 [15:11:57]Method: POST [15:11:57]URL: /json_proto [15:11:57]Method is POST - this is cgi request [15:11:57]url: /json_proto [15:11:57]query_string will be loaded in cgi processing [15:11:57]execute_cgi json_proto POST (null) [15:11:57]execute_cgi path=json_proto method=POST [15:11:57]POST find Content-Length [15:11:57]Host: 172.17.48.197:8080 [15:11:57]Content-Length: 683 [15:11:57]Content-Type: application/json [15:11:57] [15:11:57]POST finish read [15:11:57]Found Content-Length = 683 [15:11:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106210", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 70.90, "quantity" : 5.650, "sum" : 400.59, "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:11:57]execute_script... [15:11:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106210", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 70.90, "quantity" : 5.650, "sum" : 400.59, "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:11:57]POST & json_proto [15:11:57]process_json_proto [15:11:57]json parsed OK: [15:11:57]protocol is kg_v1.0 [15:11:57]action value=close_receipt [15:11:57]process_action close_receipt [15:11:57]cmd_close_receipt [15:11:57]MH_GetDate [15:11:57]Write to MH i2c: F0 00 00 77 31 97 [15:11:57]Write i2c OK [15:11:57]MH_I2C_Read... [15:11:57]Read from MH i2c: F0 [15:11:57]MH_I2C_Read... [15:11:57]Read from MH i2c: F0 09 00 [15:11:57]MH_I2C_Read... [15:11:57]Read from MH i2c: F0 09 00 77 31 00 40 93 E4 65 6C AF E3 65 1F [15:11:57]GetLastDocTimeStamp 1709478581 [15:11:57]current date 1709478720 [15:11:57]FM_GetShiftState [15:11:57]SAM_PROTO_GetShiftState [15:11:57]wFMCommunicate request_size=4 [15:11:57]MH_SAM_APDU [15:11:57]CAPDU: 80 13 01 00 [15:11:57]Write to MH i2c: E2 08 00 78 31 80 13 01 00 00 00 00 00 26 [15:11:57]Write i2c OK [15:11:57]MH_I2C_Read... [15:11:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:11:57]Read from MH i2c: E2 [15:11:57]MH_I2C_Read... [15:11:57]Read from MH i2c: E2 0E 00 [15:11:57]MH_I2C_Read... [15:11:57]Read from MH i2c: E2 0E 00 78 31 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 E8 [15:11:57]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [15:11:57]wFMCommunicate OK [15:11:57]SAM_PROTO_GetShiftState done [15:11:57]FM_GetShiftState done [15:11:57]opened in 1709425579 [15:11:57]opened+sec_in_day 1709511979 [15:11:57]quantity*price = 40058 [15:11:57]sum+1 = 40060 [15:11:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.54 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 131 03.03.2024 15:12 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123274 ФПД: 211678635066240 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T151200&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123274&fm=211678635066240&tin=02508201610067®Number=0000000000090573&sum=40000 [15:11:58]StoreToDocumentArchive [15:11:58]shift 323 fd 123274 [15:11:58]save to /storage/0323/doc_00123274 [15:11:58]save last doc name /storage/0323/doc_00123274 to /storage/kkm_last_doc_name [15:11:58]save OK [15:11:58]Clear old archive folders... [15:11:58]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:11:58]tlvbuf is 00EA6C60 [15:11:58]SAM_PROTO_ClearQueue [15:11:58]wFMCommunicate request_size=4 [15:11:58]MH_SAM_APDU [15:11:58]CAPDU: 80 09 00 00 [15:11:58]Write to MH i2c: E2 08 00 85 31 80 09 00 00 00 00 00 00 28 [15:11:58]Write i2c OK [15:11:58]MH_I2C_Read... [15:11:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:11:58]Read from MH i2c: E2 [15:11:58]MH_I2C_Read... [15:11:58]Read from MH i2c: E2 03 00 [15:11:58]MH_I2C_Read... [15:11:58]Read from MH i2c: E2 03 00 85 31 00 90 00 2A [15:11:58]RAPDU: 90 00 [15:11:58]wFMCommunicate OK [15:11:58]SAM_PROTO_ClearQueue done [15:11:58]KKMCreateOFDPacket [15:11:58]OFDProtocolAddRootSTLVToBuf [15:11:58]FM_MakeSignedData [15:11:58]FM_MakeSignedData [15:11:58]SAM_PROTO_SignData [15:11:58]wFMCommunicate request_size=4 [15:11:58]MH_SAM_APDU [15:11:58]CAPDU: 80 0D 01 02 [15:11:58]Write to MH i2c: E2 08 00 86 31 80 0D 01 02 00 00 00 00 30 [15:11:58]Write i2c OK [15:11:58]MH_I2C_Read... [15:11:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:11:58]Read from MH i2c: E2 [15:11:58]MH_I2C_Read... [15:11:58]Read from MH i2c: E2 03 00 [15:11:58]MH_I2C_Read... [15:11:58]Read from MH i2c: E2 03 00 86 31 00 90 00 2B [15:11:58]RAPDU: 90 00 [15:11:58]wFMCommunicate OK [15:11:58]wFMCommunicate request_size=255 [15:11:58]MH_SAM_APDU [15:11:58]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 35 FF 03 08 00 03 12 16 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 7B 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 40 93 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 8A E1 01 00 35 04 06 00 [15:11:58]Write to MH i2c: E2 02 01 87 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 35 FF 03 08 00 03 12 16 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 7B 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 40 93 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 8A E1 01 00 35 04 06 00 00 00 A3 [15:11:58]Write i2c OK [15:11:58]MH_I2C_Read... [15:11:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:11:58]Read from MH i2c: E2 [15:11:58]MH_I2C_Read... [15:11:58]Read from MH i2c: E2 03 00 [15:11:58]MH_I2C_Read... [15:11:58]Read from MH i2c: E2 03 00 87 31 00 90 00 2C [15:11:58]RAPDU: 90 00 [15:11:58]wFMCommunicate OK [15:11:58]wFMCommunicate request_size=11 [15:11:58]MH_SAM_APDU [15:11:58]CAPDU: 80 0D 02 02 06 C0 85 45 D9 83 80 [15:11:58]Write to MH i2c: E2 0E 00 88 31 80 0D 02 02 06 00 C0 85 45 D9 83 80 00 00 A5 [15:11:58]Write i2c OK [15:11:58]MH_I2C_Read... [15:11:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:11:58]Read from MH i2c: E2 [15:11:58]MH_I2C_Read... [15:11:58]Read from MH i2c: E2 03 00 [15:11:58]MH_I2C_Read... [15:11:58]Read from MH i2c: E2 03 00 88 31 00 90 00 2D [15:11:58]RAPDU: 90 00 [15:11:58]wFMCommunicate OK [15:11:58]wFMCommunicate request_size=4 [15:11:58]MH_SAM_APDU [15:11:58]CAPDU: 80 0D 03 02 [15:11:58]Write to MH i2c: E2 08 00 89 31 80 0D 03 02 00 00 00 00 35 [15:11:58]Write i2c OK [15:11:58]MH_I2C_Read... [15:11:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:11:58]Read from MH i2c: E2 [15:11:58]MH_I2C_Read... [15:11:58]Read from MH i2c: E2 0B 00 [15:11:58]MH_I2C_Read... [15:11:58]Read from MH i2c: E2 0B 00 89 31 00 41 B6 10 C7 2F 22 8D 92 90 00 74 [15:11:58]RAPDU: 41 B6 10 C7 2F 22 8D 92 90 00 [15:11:58]wFMCommunicate OK [15:11:58]SAM_PROTO_SignData done [15:11:58]FM_MakeSignedData done [15:11:58]CreateOFDProtocolMessage [15:11:58]wFMCommunicate request_size=4 [15:11:58]MH_SAM_APDU [15:11:58]CAPDU: 80 11 00 00 [15:11:58]Write to MH i2c: E2 08 00 8A 31 80 11 00 00 00 00 00 00 35 [15:11:58]Write i2c OK [15:11:58]MH_I2C_Read... [15:11:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:11:58]Read from MH i2c: E2 [15:11:58]MH_I2C_Read... [15:11:58]Read from MH i2c: E2 17 00 [15:11:58]MH_I2C_Read... [15:11:58]Read from MH i2c: E2 17 00 8A 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 93 [15:11:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [15:11:58]wFMCommunicate OK [15:11:58]CreateOFDProtocolMessage done [15:11:58]OFDSenderStorePacket 123274 [15:11:58]StoreOFDPacket docnum=123274 [15:11:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 01 00 00 5E 7C 08 01 A4 97 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 35 FF 03 08 00 03 12 16 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 7B 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 40 93 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 8A E1 01 00 35 04 06 00 C0 85 45 D9 83 80 41 B6 10 C7 2F 22 8D 92 [15:11:58]CheckFolder [15:11:58]dirname=/storage/ofd_packets [15:11:58]CheckFolder done [15:11:58]ProducePacketName [15:11:58]name=ofd_packets/00123274 [15:11:58]NVStorageSaveData ofd_packets/00123274 [15:11:58]File name is /storage/ofd_packets/00123274 [15:11:58]Write 302 bytes [15:11:58]NVStorageSaveData done [15:11:58]OFDSenderStorePacket done [15:11:58]KKMCreateOFDPacket done [15:11:58]NVStorageSaveData kkm_last_timestamp [15:11:58]File name is /storage/kkm_last_timestamp [15:11:58]Write 4 bytes [15:11:58]NVStorageSaveData done [15:11:58]ExternCall_PrintAddStr [15:11:58]wPrintStart [15:11:58]Write to MH i2c: 01 00 00 8B 31 BC [15:11:58]Write i2c OK [15:11:58]MH_I2C_Read... [15:11:58]Read from MH i2c: 01 [15:11:58]MH_I2C_Read... [15:11:58]Read from MH i2c: 01 07 00 [15:11:58]MH_I2C_Read... [15:11:58]Read from MH i2c: 01 07 00 8B 31 00 00 00 00 00 FF 0F D1 [15:11:58]RasterBufferAndPrint [15:11:58]line Счет N : (1)1106210 [15:11:58]line ИНН: 02508201610067 [15:11:58]line Контрольно-Кассовый Чек [15:11:58]line ПРОДАЖА [15:11:58]line ТРК (МРК, ГНК) : 51 [15:11:58]line Товар: 2710194210 [15:11:58]line ДТ(л)-К-5 [15:11:58]line 5.650 * 70.90 [15:11:58]line = 400.59 [15:11:58]line НДС 12% НСП 1% [15:11:58]line > о реализуемом товаре [15:11:58]line ОКРУГЛЕНИЕ: -0.59 [15:11:58]line ИТОГО: 400.00 [15:11:58]line Внесено: 400.00 [15:11:58]line СДАЧА: 0.00 [15:11:58]line НСП 1% : 3.54 [15:11:58]line НДС 12% : 42.54 [15:11:58]line Наличными: 400.00 [15:11:58]line Безнал.: 0.00 [15:11:58]line Место: АЗС № 25 "Партнер Нефть" [15:11:58]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [15:11:58]line СНО: Общий режим [15:11:58]line Чек 131 03.03.2024 15:12 [15:11:58]line Смена: 323 ФФД: 1.0 [15:11:58]line ЗНМ: 0300000019 [15:11:58]line РНМ: 0000000000090573 [15:11:58]line Версия ККМ: 001 [15:11:58]line ФМ: 0000000000874798 [15:11:58]line ФД: 123274 [15:11:58]line ФПД: 211678635066240 [15:11:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T151200&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123274&fm=211678635066240&tin=02508201610067®Number=0000000000090573&sum=40000 [15:11:59]OFD Sender: Processing packet 123274 [packets to send 112, broken 111] [15:11:59]ProducePacketName [15:11:59]name=ofd_packets/00123274 [15:11:59]OFD Sender: To server: pG, [15:11:59]CommunicateWithHost lk.salyk.kg:30040 [15:11:59]ConnectInit lk.salyk.kg [15:11:59]written 0, free lines is 4095 [15:11:59]Connected sock=10 [15:11: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 37 39 38 10 01 00 00 5E 7C 08 01 A4 97 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 35 FF 03 08 00 03 12 16 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 7B 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 40 93 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 8A E1 01 00 35 04 06 00 C0 85 45 D9 83 80 41 B6 10 C7 2F 22 8D 92 [15:11:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 A4 FA 47 00 DD 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 8A E1 01 00 F4 03 04 00 6C 3F E4 65 B6 04 01 00 00 74 C7 BB CD 51 9D F4 B5 [15:11:59]CommunicateWithHost err = 0 [15:11:59]CheckOFDResponse [15:11:59]1017 (14) - 77093643461234 [15:11:59]1041 (16) - 0000000000874798 [15:11:59]1040 (4) - 123274 [15:11:59]1012 (4) - 03.03.2024 09:14 [15:11:59]1206 (1) - 0 [15:11:59]OFD Sender: Remove packet 123274 [15:11:59]ProducePacketName [15:11:59]name=ofd_packets/00123274 [15:11:59]NVStorageDeleteData [15:11:59]Write to MH i2c: 01 00 00 B6 31 E7 [15:11:59]Write i2c OK [15:11:59]MH_I2C_Read... [15:11:59]Read from MH i2c: 01 [15:11:59]MH_I2C_Read... [15:11:59]Read from MH i2c: 01 07 00 [15:11:59]MH_I2C_Read... [15:11:59]Read from MH i2c: 01 07 00 B6 31 00 00 00 00 00 EA 0C E4 [15:11:59]RasterBufferAndPrint [15:11:59]line [15:11:59]line [15:11:59]line [15:11:59]line [15:11:59]line [15:11:59]written 0, free lines is 3312 [15:11:59]MH_Cut [15:11:59]Write to MH i2c: D1 01 00 BD 31 01 C0 [15:11:59]Write i2c OK [15:11:59]MH_I2C_Read... [15:11:59]Read from MH i2c: D1 [15:11:59]MH_I2C_Read... [15:11:59]Read from MH i2c: D1 01 00 [15:11:59]MH_I2C_Read... [15:11:59]Read from MH i2c: D1 01 00 BD 31 00 BF [15:11:59]Write to MH i2c: 01 00 00 BE 31 EF [15:11:59]Write i2c OK [15:11:59]MH_I2C_Read... [15:11:59]OFD Sender: No OFD packet to send [15:12:00]*** Cut start [15:12:00]*** Purtial cut [15:12:00]*** Stage 1: CUTSNS_PIN = 1 [15:12:02]Read from MH i2c: 01 [15:12:02]MH_I2C_Read... [15:12:02]*** Stop cut motor [15:12:02]*** Cut end [15:12:02]Read from MH i2c: 01 07 00 [15:12:02]MH_I2C_Read... [15:12:02]Read from MH i2c: 01 07 00 BE 31 00 00 00 00 00 FF 0F 04 [15:12:02]process_action close_receipt done [15:12:02]requested_data is exist [15:12:02]produce_requested_data [15:12:02]requested_item fm.sn is exist - process it [15:12:02]wFMCommunicate request_size=4 [15:12:02]MH_SAM_APDU [15:12:02]CAPDU: 80 11 00 00 [15:12:02]Write to MH i2c: E2 08 00 BF 31 80 11 00 00 00 00 00 00 6A [15:12:02]Write i2c OK [15:12:02]MH_I2C_Read... [15:12:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:12:02]Read from MH i2c: E2 [15:12:02]MH_I2C_Read... [15:12:02]Read from MH i2c: E2 17 00 [15:12:02]MH_I2C_Read... [15:12:02]Read from MH i2c: E2 17 00 BF 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 C8 [15:12:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [15:12:02]wFMCommunicate OK [15:12:02]requested_item fd.num is exist - process it [15:12:02]SAM_PROTO_GetFieldsCounters [15:12:02]wFMCommunicate request_size=4 [15:12:02]MH_SAM_APDU [15:12:02]CAPDU: 80 13 00 00 [15:12:02]Write to MH i2c: E2 08 00 C0 31 80 13 00 00 00 00 00 00 6D [15:12:02]Write i2c OK [15:12:02]MH_I2C_Read... [15:12:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:12:02]Read from MH i2c: E2 [15:12:02]MH_I2C_Read... [15:12:02]Read from MH i2c: E2 62 00 [15:12:02]MH_I2C_Read... [15:12:02]Read from MH i2c: E2 62 00 C0 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 8A E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 D1 [15:12: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 8A E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:12:02]wFMCommunicate OK [15:12:02]SAM_PROTO_GetFieldsCounters done [15:12:02]requested_item shift.num is exist - process it [15:12:02]requested_item shift.opened is exist - process it [15:12:02]req_shift_opened [15:12:02]FM_GetShiftState [15:12:02]SAM_PROTO_GetShiftState [15:12:02]wFMCommunicate request_size=4 [15:12:02]MH_SAM_APDU [15:12:02]CAPDU: 80 13 01 00 [15:12:02]Write to MH i2c: E2 08 00 C1 31 80 13 01 00 00 00 00 00 6F [15:12:02]Write i2c OK [15:12:02]MH_I2C_Read... [15:12:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:12:02]Read from MH i2c: E2 [15:12:02]MH_I2C_Read... [15:12:02]Read from MH i2c: E2 0E 00 [15:12:02]MH_I2C_Read... [15:12:02]Read from MH i2c: E2 0E 00 C1 31 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 31 [15:12:02]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [15:12:02]wFMCommunicate OK [15:12:02]SAM_PROTO_GetShiftState done [15:12:02]FM_GetShiftState done [15:12:02]req_shift_opened done [15:12:02]requested_item shift.open_date is exist - process it [15:12:02]req_shift_open_date [15:12:02]req_shift_open_date done [15:12:02]produce_requested_data done [15:12:02]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123274,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [15:12:02]process_action_free close_receipt [15:12:02]json_value_free [15:12:02]json_value_free done [15:12:02]process_json_proto returns [15:12:02]Send response to host [15:12:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123274,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [15:12:02]free response buf [15:12:02]execute_script done [15:12:02]execute_script returns [15:12:02]free content buf [15:12:02]Sock 7.Close socket [15:12:02]Sock 7.Thread stoped [15:12:04]OFD Sender: No OFD packet to send [15:12:09]OFD Sender: No OFD packet to send [15:12:14]OFD Sender: No OFD packet to send [15:12:19]OFD Sender: No OFD packet to send [15:12:24]OFD Sender: No OFD packet to send [15:12:30]OFD Sender: No OFD packet to send [15:12:33]accept exits with 9 [15:12:33]New connection [15:12:33]New thread 3067395428 created [15:12:33]Thread 3067252068 joined [15:12:33]Waiting for new connection... [15:12:33] Sock 9.Parse request [15:12:33]Sock 9.Check first char [15:12:33]Sock 9.First char is OK [15:12:33]request: POST /json_proto HTTP/1.0 [15:12:33]Method: POST [15:12:33]URL: /json_proto [15:12:33]Method is POST - this is cgi request [15:12:33]url: /json_proto [15:12:33]query_string will be loaded in cgi processing [15:12:33]execute_cgi json_proto POST (null) [15:12:33]execute_cgi path=json_proto method=POST [15:12:33]POST find Content-Length [15:12:33]Host: 172.17.48.197:8080 [15:12:33]Content-Length: 679 [15:12:33]Content-Type: application/json [15:12:33] [15:12:33]POST finish read [15:12:33]Found Content-Length = 679 [15:12:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106211", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 10.510, "sum" : 650.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:12:33]execute_script... [15:12: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)1106211", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 10.510, "sum" : 650.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:12:33]POST & json_proto [15:12:33]process_json_proto [15:12:33]json parsed OK: [15:12:33]protocol is kg_v1.0 [15:12:33]action value=close_receipt [15:12:33]process_action close_receipt [15:12:33]cmd_close_receipt [15:12:33]MH_GetDate [15:12:33]Write to MH i2c: F0 00 00 C2 31 E2 [15:12:33]Write i2c OK [15:12:33]MH_I2C_Read... [15:12:33]Read from MH i2c: F0 [15:12:33]MH_I2C_Read... [15:12:33]Read from MH i2c: F0 09 00 [15:12:33]MH_I2C_Read... [15:12:33]Read from MH i2c: F0 09 00 C2 31 00 65 93 E4 65 6C AF E3 65 8F [15:12:33]GetLastDocTimeStamp 1709478720 [15:12:33]current date 1709478757 [15:12:33]FM_GetShiftState [15:12:33]SAM_PROTO_GetShiftState [15:12:33]wFMCommunicate request_size=4 [15:12:33]MH_SAM_APDU [15:12:33]CAPDU: 80 13 01 00 [15:12:33]Write to MH i2c: E2 08 00 C3 31 80 13 01 00 00 00 00 00 71 [15:12:33]Write i2c OK [15:12:33]MH_I2C_Read... [15:12:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:12:33]Read from MH i2c: E2 [15:12:33]MH_I2C_Read... [15:12:33]Read from MH i2c: E2 0E 00 [15:12:33]MH_I2C_Read... [15:12:33]Read from MH i2c: E2 0E 00 C3 31 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 33 [15:12:33]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [15:12:33]wFMCommunicate OK [15:12:33]SAM_PROTO_GetShiftState done [15:12:33]FM_GetShiftState done [15:12:33]opened in 1709425579 [15:12:33]opened+sec_in_day 1709511979 [15:12:33]quantity*price = 65056 [15:12:33]sum+1 = 65058 [15:12:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.76 НДС 12% : 69.09 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 132 03.03.2024 15:12 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123275 ФПД: 248630837840236 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T151237&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123275&fm=248630837840236&tin=02508201610067®Number=0000000000090573&sum=65000 [15:12:35]StoreToDocumentArchive [15:12:35]shift 323 fd 123275 [15:12:35]save to /storage/0323/doc_00123275 [15:12:35]save last doc name /storage/0323/doc_00123275 to /storage/kkm_last_doc_name [15:12:35]save OK [15:12:35]Clear old archive folders... [15:12:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:12:35]tlvbuf is 00E29CE0 [15:12:35]SAM_PROTO_ClearQueue [15:12:35]wFMCommunicate request_size=4 [15:12:35]MH_SAM_APDU [15:12:35]CAPDU: 80 09 00 00 [15:12:35]Write to MH i2c: E2 08 00 D0 31 80 09 00 00 00 00 00 00 73 [15:12:35]Write i2c OK [15:12:35]MH_I2C_Read... [15:12:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:12:35]Read from MH i2c: E2 [15:12:35]MH_I2C_Read... [15:12:35]Read from MH i2c: E2 03 00 [15:12:35]MH_I2C_Read... [15:12:35]Read from MH i2c: E2 03 00 D0 31 00 90 00 75 [15:12:35]RAPDU: 90 00 [15:12:35]wFMCommunicate OK [15:12:35]SAM_PROTO_ClearQueue done [15:12:35]KKMCreateOFDPacket [15:12:35]OFDProtocolAddRootSTLVToBuf [15:12:35]FM_MakeSignedData [15:12:35]FM_MakeSignedData [15:12:35]SAM_PROTO_SignData [15:12:35]wFMCommunicate request_size=4 [15:12:35]MH_SAM_APDU [15:12:35]CAPDU: 80 0D 01 02 [15:12:35]Write to MH i2c: E2 08 00 D1 31 80 0D 01 02 00 00 00 00 7B [15:12:35]Write i2c OK [15:12:35]MH_I2C_Read... [15:12:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:12:35]Read from MH i2c: E2 [15:12:35]MH_I2C_Read... [15:12:35]Read from MH i2c: E2 03 00 [15:12:35]MH_I2C_Read... [15:12:35]Read from MH i2c: E2 03 00 D1 31 00 90 00 76 [15:12:35]RAPDU: 90 00 [15:12:35]wFMCommunicate OK [15:12:35]wFMCommunicate request_size=255 [15:12:35]MH_SAM_APDU [15:12: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 35 FF 03 08 00 03 0E 29 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 21 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 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 84 00 00 00 F4 03 04 00 65 93 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 8B E1 01 00 35 04 06 00 E2 [15:12:35]Write to MH i2c: E2 02 01 D2 31 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 29 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 21 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 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 84 00 00 00 F4 03 04 00 65 93 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 8B E1 01 00 35 04 06 00 E2 00 00 A6 [15:12:35]Write i2c OK [15:12:35]MH_I2C_Read... [15:12:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:12:35]Read from MH i2c: E2 [15:12:35]MH_I2C_Read... [15:12:35]Read from MH i2c: E2 03 00 [15:12:35]MH_I2C_Read... [15:12:35]Read from MH i2c: E2 03 00 D2 31 00 90 00 77 [15:12:35]RAPDU: 90 00 [15:12:35]wFMCommunicate OK [15:12:35]wFMCommunicate request_size=10 [15:12:35]MH_SAM_APDU [15:12:35]CAPDU: 80 0D 02 02 05 20 E0 C5 09 6C [15:12:35]Write to MH i2c: E2 0D 00 D3 31 80 0D 02 02 05 00 20 E0 C5 09 6C 00 00 C2 [15:12:35]Write i2c OK [15:12:35]MH_I2C_Read... [15:12:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:12:35]Read from MH i2c: E2 [15:12:35]MH_I2C_Read... [15:12:35]Read from MH i2c: E2 03 00 [15:12:35]MH_I2C_Read... [15:12:35]Read from MH i2c: E2 03 00 D3 31 00 90 00 78 [15:12:35]RAPDU: 90 00 [15:12:35]wFMCommunicate OK [15:12:35]wFMCommunicate request_size=4 [15:12:35]MH_SAM_APDU [15:12:35]CAPDU: 80 0D 03 02 [15:12:35]Write to MH i2c: E2 08 00 D4 31 80 0D 03 02 00 00 00 00 80 [15:12:35]Write i2c OK [15:12:35]MH_I2C_Read... [15:12:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:12:35]Read from MH i2c: E2 [15:12:35]MH_I2C_Read... [15:12:35]Read from MH i2c: E2 0B 00 [15:12:35]MH_I2C_Read... [15:12:35]Read from MH i2c: E2 0B 00 D4 31 00 7B 35 8E 4E 07 2E D5 4A 90 00 61 [15:12:35]RAPDU: 7B 35 8E 4E 07 2E D5 4A 90 00 [15:12:35]wFMCommunicate OK [15:12:35]SAM_PROTO_SignData done [15:12:35]FM_MakeSignedData done [15:12:35]CreateOFDProtocolMessage [15:12:35]wFMCommunicate request_size=4 [15:12:35]MH_SAM_APDU [15:12:35]CAPDU: 80 11 00 00 [15:12:35]Write to MH i2c: E2 08 00 D5 31 80 11 00 00 00 00 00 00 80 [15:12:35]Write i2c OK [15:12:35]MH_I2C_Read... [15:12:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:12:35]Read from MH i2c: E2 [15:12:35]MH_I2C_Read... [15:12:35]Read from MH i2c: E2 17 00 [15:12:35]MH_I2C_Read... [15:12:35]Read from MH i2c: E2 17 00 D5 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 DE [15:12:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [15:12:35]wFMCommunicate OK [15:12:35]CreateOFDProtocolMessage done [15:12:35]OFDSenderStorePacket 123275 [15:12:35]StoreOFDPacket docnum=123275 [15:12:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 8B AB 07 01 81 BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 29 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 21 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 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 84 00 00 00 F4 03 04 00 65 93 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 8B E1 01 00 35 04 06 00 E2 20 E0 C5 09 6C 7B 35 8E 4E 07 2E D5 4A [15:12:35]CheckFolder [15:12:35]dirname=/storage/ofd_packets [15:12:35]CheckFolder done [15:12:35]ProducePacketName [15:12:35]name=ofd_packets/00123275 [15:12:35]NVStorageSaveData ofd_packets/00123275 [15:12:35]File name is /storage/ofd_packets/00123275 [15:12:35]Write 301 bytes [15:12:35]NVStorageSaveData done [15:12:35]OFDSenderStorePacket done [15:12:35]KKMCreateOFDPacket done [15:12:35]NVStorageSaveData kkm_last_timestamp [15:12:35]File name is /storage/kkm_last_timestamp [15:12:35]Write 4 bytes [15:12:35]NVStorageSaveData done [15:12:35]ExternCall_PrintAddStr [15:12:35]wPrintStart [15:12:35]Write to MH i2c: 01 00 00 D6 31 07 [15:12:35]Write i2c OK [15:12:35]MH_I2C_Read... [15:12:35]Read from MH i2c: 01 [15:12:35]MH_I2C_Read... [15:12:35]Read from MH i2c: 01 07 00 [15:12:35]MH_I2C_Read... [15:12:35]Read from MH i2c: 01 07 00 D6 31 00 00 00 00 00 FF 0F 1C [15:12:35]RasterBufferAndPrint [15:12:35]line Счет N : (1)1106211 [15:12:35]line ИНН: 02508201610067 [15:12:35]line Контрольно-Кассовый Чек [15:12:35]line ПРОДАЖА [15:12:35]line ТРК (МРК, ГНК) : 62 [15:12:35]line Товар: 2710124130 [15:12:35]line Аи-92-К-5 [15:12:35]line 10.510 * 61.90 [15:12:35]line = 650.57 [15:12:35]line НДС 12% НСП 1% [15:12:35]line > о реализуемом товаре [15:12:35]line ОКРУГЛЕНИЕ: -0.57 [15:12:35]line ИТОГО: 650.00 [15:12:35]line Внесено: 650.00 [15:12:35]line СДАЧА: 0.00 [15:12:35]line НСП 1% : 5.76 [15:12:35]line НДС 12% : 69.09 [15:12:35]line Наличными: 650.00 [15:12:35]line Безнал.: 0.00 [15:12:35]line Место: АЗС № 25 "Партнер Нефть" [15:12:35]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [15:12:35]line СНО: Общий режим [15:12:35]line Чек 132 03.03.2024 15:12 [15:12:35]line Смена: 323 ФФД: 1.0 [15:12:35]line ЗНМ: 0300000019 [15:12:35]line РНМ: 0000000000090573 [15:12:35]line Версия ККМ: 001 [15:12:35]line ФМ: 0000000000874798 [15:12:35]line ФД: 123275 [15:12:35]line ФПД: 248630837840236 [15:12:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T151237&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123275&fm=248630837840236&tin=02508201610067®Number=0000000000090573&sum=65000 [15:12:35]OFD Sender: Processing packet 123275 [packets to send 112, broken 111] [15:12:35]ProducePacketName [15:12:35]name=ofd_packets/00123275 [15:12:35]OFD Sender: To server: pG, [15:12:35]CommunicateWithHost lk.salyk.kg:30040 [15:12:35]ConnectInit lk.salyk.kg [15:12:35]written 0, free lines is 4095 [15:12:36]Connected sock=10 [15:12: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 37 39 38 0F 01 00 00 8B AB 07 01 81 BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 29 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 21 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 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 84 00 00 00 F4 03 04 00 65 93 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 8B E1 01 00 35 04 06 00 E2 20 E0 C5 09 6C 7B 35 8E 4E 07 2E D5 4A [15:12:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 88 C7 47 00 C1 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 37 39 38 10 04 04 00 8B E1 01 00 F4 03 04 00 91 3F E4 65 B6 04 01 00 00 9B 4E 3E 18 CA 2B C5 CE [15:12:36]CommunicateWithHost err = 0 [15:12:36]CheckOFDResponse [15:12:36]1017 (14) - 77093643461234 [15:12:36]1041 (16) - 0000000000874798 [15:12:36]1040 (4) - 123275 [15:12:36]1012 (4) - 03.03.2024 09:14 [15:12:36]1206 (1) - 0 [15:12:36]OFD Sender: Remove packet 123275 [15:12:36]ProducePacketName [15:12:36]name=ofd_packets/00123275 [15:12:36]NVStorageDeleteData [15:12:36]Write to MH i2c: 01 00 00 01 32 33 [15:12:36]Write i2c OK [15:12:36]MH_I2C_Read... [15:12:36]Read from MH i2c: 01 [15:12:36]MH_I2C_Read... [15:12:36]Read from MH i2c: 01 07 00 [15:12:36]MH_I2C_Read... [15:12:36]Read from MH i2c: 01 07 00 01 32 00 00 00 00 00 E9 0C 2F [15:12:36]RasterBufferAndPrint [15:12:36]line [15:12:36]line [15:12:36]line [15:12:36]line [15:12:36]line [15:12:36]written 0, free lines is 3311 [15:12:36]MH_Cut [15:12:36]Write to MH i2c: D1 01 00 08 32 01 0C [15:12:36]Write i2c OK [15:12:36]MH_I2C_Read... [15:12:36]Read from MH i2c: D1 [15:12:36]MH_I2C_Read... [15:12:36]Read from MH i2c: D1 01 00 [15:12:36]MH_I2C_Read... [15:12:36]Read from MH i2c: D1 01 00 08 32 00 0B [15:12:36]Write to MH i2c: 01 00 00 09 32 3B [15:12:36]Write i2c OK [15:12:36]MH_I2C_Read... [15:12:36]OFD Sender: No OFD packet to send [15:12:37]*** Cut start [15:12:37]*** Purtial cut [15:12:37]*** Stage 1: CUTSNS_PIN = 1 [15:12:39]Read from MH i2c: 01 [15:12:39]MH_I2C_Read... [15:12:39]*** Stop cut motor [15:12:39]*** Cut end [15:12:39]Read from MH i2c: 01 07 00 [15:12:39]MH_I2C_Read... [15:12:39]Read from MH i2c: 01 07 00 09 32 00 00 00 00 00 FF 0F 50 [15:12:39]process_action close_receipt done [15:12:39]requested_data is exist [15:12:39]produce_requested_data [15:12:39]requested_item fm.sn is exist - process it [15:12:39]wFMCommunicate request_size=4 [15:12:39]MH_SAM_APDU [15:12:39]CAPDU: 80 11 00 00 [15:12:39]Write to MH i2c: E2 08 00 0A 32 80 11 00 00 00 00 00 00 B6 [15:12:39]Write i2c OK [15:12:39]MH_I2C_Read... [15:12:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:12:39]Read from MH i2c: E2 [15:12:39]MH_I2C_Read... [15:12:39]Read from MH i2c: E2 17 00 [15:12:39]MH_I2C_Read... [15:12:39]Read from MH i2c: E2 17 00 0A 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 14 [15:12:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [15:12:39]wFMCommunicate OK [15:12:39]requested_item fd.num is exist - process it [15:12:39]SAM_PROTO_GetFieldsCounters [15:12:39]wFMCommunicate request_size=4 [15:12:39]MH_SAM_APDU [15:12:39]CAPDU: 80 13 00 00 [15:12:39]Write to MH i2c: E2 08 00 0B 32 80 13 00 00 00 00 00 00 B9 [15:12:39]Write i2c OK [15:12:39]MH_I2C_Read... [15:12:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:12:39]Read from MH i2c: E2 [15:12:39]MH_I2C_Read... [15:12:39]Read from MH i2c: E2 62 00 [15:12:39]MH_I2C_Read... [15:12:39]Read from MH i2c: E2 62 00 0B 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 8B E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 21 [15:12: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 8B E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:12:39]wFMCommunicate OK [15:12:39]SAM_PROTO_GetFieldsCounters done [15:12:39]requested_item shift.num is exist - process it [15:12:39]requested_item shift.opened is exist - process it [15:12:39]req_shift_opened [15:12:39]FM_GetShiftState [15:12:39]SAM_PROTO_GetShiftState [15:12:39]wFMCommunicate request_size=4 [15:12:39]MH_SAM_APDU [15:12:39]CAPDU: 80 13 01 00 [15:12:39]Write to MH i2c: E2 08 00 0C 32 80 13 01 00 00 00 00 00 BB [15:12:39]Write i2c OK [15:12:39]MH_I2C_Read... [15:12:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:12:39]Read from MH i2c: E2 [15:12:39]MH_I2C_Read... [15:12:39]Read from MH i2c: E2 0E 00 [15:12:39]MH_I2C_Read... [15:12:39]Read from MH i2c: E2 0E 00 0C 32 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 7D [15:12:39]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [15:12:39]wFMCommunicate OK [15:12:39]SAM_PROTO_GetShiftState done [15:12:39]FM_GetShiftState done [15:12:39]req_shift_opened done [15:12:39]requested_item shift.open_date is exist - process it [15:12:39]req_shift_open_date [15:12:39]req_shift_open_date done [15:12:39]produce_requested_data done [15:12:39]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123275,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [15:12:39]process_action_free close_receipt [15:12:39]json_value_free [15:12:39]json_value_free done [15:12:39]process_json_proto returns [15:12:39]Send response to host [15:12:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123275,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [15:12:39]free response buf [15:12:39]execute_script done [15:12:39]execute_script returns [15:12:39]free content buf [15:12:39]Sock 9.Close socket [15:12:39]Sock 9.Thread stoped [15:12:41]OFD Sender: No OFD packet to send [15:12:46]OFD Sender: No OFD packet to send [15:12:51]OFD Sender: No OFD packet to send [15:12:56]OFD Sender: No OFD packet to send [15:13:01]OFD Sender: No OFD packet to send [15:13:06]OFD Sender: No OFD packet to send [15:13:11]OFD Sender: No OFD packet to send [15:13:16]OFD Sender: No OFD packet to send [15:13:21]OFD Sender: No OFD packet to send [15:13:26]OFD Sender: No OFD packet to send [15:13:31]OFD Sender: No OFD packet to send [15:13:36]OFD Sender: No OFD packet to send [15:13:41]OFD Sender: No OFD packet to send [15:13:46]OFD Sender: No OFD packet to send [15:13:51]OFD Sender: No OFD packet to send [15:13:56]OFD Sender: No OFD packet to send [15:14:01]OFD Sender: No OFD packet to send [15:14:06]OFD Sender: No OFD packet to send [15:14:11]OFD Sender: No OFD packet to send [15:14:16]OFD Sender: No OFD packet to send [15:14:21]OFD Sender: No OFD packet to send [15:14:26]OFD Sender: No OFD packet to send [15:14:31]OFD Sender: No OFD packet to send [15:14:36]OFD Sender: No OFD packet to send [15:14:41]OFD Sender: No OFD packet to send [15:14:45]accept exits with 7 [15:14:45]New connection [15:14:45]New thread 3067252068 created [15:14:45]Thread 3067395428 joined [15:14:45]Waiting for new connection... [15:14:45] Sock 7.Parse request [15:14:45]Sock 7.Check first char [15:14:45]Sock 7.First char is OK [15:14:45]request: POST /json_proto HTTP/1.0 [15:14:45]Method: POST [15:14:45]URL: /json_proto [15:14:45]Method is POST - this is cgi request [15:14:45]url: /json_proto [15:14:45]query_string will be loaded in cgi processing [15:14:45]execute_cgi json_proto POST (null) [15:14:45]execute_cgi path=json_proto method=POST [15:14:45]POST find Content-Length [15:14:45]Host: 172.17.48.197:8080 [15:14:45]Content-Length: 683 [15:14:45]Content-Type: application/json [15:14:45] [15:14:45]POST finish read [15:14:45]Found Content-Length = 683 [15:14:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106212", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:14:45]execute_script... [15:14:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106212", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:14:45]POST & json_proto [15:14:45]process_json_proto [15:14:45]json parsed OK: [15:14:45]protocol is kg_v1.0 [15:14:45]action value=close_receipt [15:14:45]process_action close_receipt [15:14:45]cmd_close_receipt [15:14:45]MH_GetDate [15:14:45]Write to MH i2c: F0 00 00 0D 32 2E [15:14:45]Write i2c OK [15:14:45]MH_I2C_Read... [15:14:45]Read from MH i2c: F0 [15:14:45]MH_I2C_Read... [15:14:45]Read from MH i2c: F0 09 00 [15:14:45]MH_I2C_Read... [15:14:45]Read from MH i2c: F0 09 00 0D 32 00 E9 93 E4 65 6C AF E3 65 5F [15:14:45]GetLastDocTimeStamp 1709478757 [15:14:45]current date 1709478889 [15:14:45]FM_GetShiftState [15:14:45]SAM_PROTO_GetShiftState [15:14:45]wFMCommunicate request_size=4 [15:14:45]MH_SAM_APDU [15:14:45]CAPDU: 80 13 01 00 [15:14:45]Write to MH i2c: E2 08 00 0E 32 80 13 01 00 00 00 00 00 BD [15:14:45]Write i2c OK [15:14:45]MH_I2C_Read... [15:14:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:45]Read from MH i2c: E2 [15:14:45]MH_I2C_Read... [15:14:45]Read from MH i2c: E2 0E 00 [15:14:45]MH_I2C_Read... [15:14:45]Read from MH i2c: E2 0E 00 0E 32 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 7F [15:14:45]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [15:14:45]wFMCommunicate OK [15:14:45]SAM_PROTO_GetShiftState done [15:14:45]FM_GetShiftState done [15:14:45]opened in 1709425579 [15:14:45]opened+sec_in_day 1709511979 [15:14:45]quantity*price = 100010 [15:14:45]sum+1 = 100012 [15:14:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 133 03.03.2024 15:14 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123276 ФПД: 164895839142511 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T151449&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123276&fm=164895839142511&tin=02508201610067®Number=0000000000090573&sum=100000 [15:14:46]StoreToDocumentArchive [15:14:46]shift 323 fd 123276 [15:14:46]save to /storage/0323/doc_00123276 [15:14:46]save last doc name /storage/0323/doc_00123276 to /storage/kkm_last_doc_name [15:14:46]save OK [15:14:46]Clear old archive folders... [15:14:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:14:46]tlvbuf is 00DB75C0 [15:14:46]SAM_PROTO_ClearQueue [15:14:46]wFMCommunicate request_size=4 [15:14:46]MH_SAM_APDU [15:14:46]CAPDU: 80 09 00 00 [15:14:46]Write to MH i2c: E2 08 00 1B 32 80 09 00 00 00 00 00 00 BF [15:14:46]Write i2c OK [15:14:46]MH_I2C_Read... [15:14:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:14:46]Read from MH i2c: E2 [15:14:46]MH_I2C_Read... [15:14:46]Read from MH i2c: E2 03 00 [15:14:46]MH_I2C_Read... [15:14:46]Read from MH i2c: E2 03 00 1B 32 00 90 00 C1 [15:14:46]RAPDU: 90 00 [15:14:46]wFMCommunicate OK [15:14:46]SAM_PROTO_ClearQueue done [15:14:46]KKMCreateOFDPacket [15:14:46]OFDProtocolAddRootSTLVToBuf [15:14:46]FM_MakeSignedData [15:14:46]FM_MakeSignedData [15:14:46]SAM_PROTO_SignData [15:14:46]wFMCommunicate request_size=4 [15:14:46]MH_SAM_APDU [15:14:46]CAPDU: 80 0D 01 02 [15:14:46]Write to MH i2c: E2 08 00 1C 32 80 0D 01 02 00 00 00 00 C7 [15:14:46]Write i2c OK [15:14:46]MH_I2C_Read... [15:14:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:14:46]Read from MH i2c: E2 [15:14:46]MH_I2C_Read... [15:14:46]Read from MH i2c: E2 03 00 [15:14:46]MH_I2C_Read... [15:14:46]Read from MH i2c: E2 03 00 1C 32 00 90 00 C2 [15:14:46]RAPDU: 90 00 [15:14:46]wFMCommunicate OK [15:14:46]wFMCommunicate request_size=255 [15:14:46]MH_SAM_APDU [15:14:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 E9 93 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 8C E1 01 00 35 04 06 00 95 [15:14:46]Write to MH i2c: E2 02 01 1D 32 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 E9 93 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 8C E1 01 00 35 04 06 00 95 00 00 BD [15:14:46]Write i2c OK [15:14:46]MH_I2C_Read... [15:14:46]OFD Sender: No OFD packet to send [15:14:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:47]Read from MH i2c: E2 [15:14:47]MH_I2C_Read... [15:14:47]Read from MH i2c: E2 03 00 [15:14:47]MH_I2C_Read... [15:14:47]Read from MH i2c: E2 03 00 1D 32 00 90 00 C3 [15:14:47]RAPDU: 90 00 [15:14:47]wFMCommunicate OK [15:14:47]wFMCommunicate request_size=10 [15:14:47]MH_SAM_APDU [15:14:47]CAPDU: 80 0D 02 02 05 F8 CD EA C2 6F [15:14:47]Write to MH i2c: E2 0D 00 1E 32 80 0D 02 02 05 00 F8 CD EA C2 6F 00 00 B4 [15:14:47]Write i2c OK [15:14:47]MH_I2C_Read... [15:14:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:47]Read from MH i2c: E2 [15:14:47]MH_I2C_Read... [15:14:47]Read from MH i2c: E2 03 00 [15:14:47]MH_I2C_Read... [15:14:47]Read from MH i2c: E2 03 00 1E 32 00 90 00 C4 [15:14:47]RAPDU: 90 00 [15:14:47]wFMCommunicate OK [15:14:47]wFMCommunicate request_size=4 [15:14:47]MH_SAM_APDU [15:14:47]CAPDU: 80 0D 03 02 [15:14:47]Write to MH i2c: E2 08 00 1F 32 80 0D 03 02 00 00 00 00 CC [15:14:47]Write i2c OK [15:14:47]MH_I2C_Read... [15:14:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:14:47]Read from MH i2c: E2 [15:14:47]MH_I2C_Read... [15:14:47]Read from MH i2c: E2 0B 00 [15:14:47]MH_I2C_Read... [15:14:47]Read from MH i2c: E2 0B 00 1F 32 00 52 F0 1A 51 9F B7 B0 88 90 00 08 [15:14:47]RAPDU: 52 F0 1A 51 9F B7 B0 88 90 00 [15:14:47]wFMCommunicate OK [15:14:47]SAM_PROTO_SignData done [15:14:47]FM_MakeSignedData done [15:14:47]CreateOFDProtocolMessage [15:14:47]wFMCommunicate request_size=4 [15:14:47]MH_SAM_APDU [15:14:47]CAPDU: 80 11 00 00 [15:14:47]Write to MH i2c: E2 08 00 20 32 80 11 00 00 00 00 00 00 CC [15:14:47]Write i2c OK [15:14:47]MH_I2C_Read... [15:14:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:14:47]Read from MH i2c: E2 [15:14:47]MH_I2C_Read... [15:14:47]Read from MH i2c: E2 17 00 [15:14:47]MH_I2C_Read... [15:14:47]Read from MH i2c: E2 17 00 20 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 2A [15:14:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [15:14:47]wFMCommunicate OK [15:14:47]CreateOFDProtocolMessage done [15:14:47]OFDSenderStorePacket 123276 [15:14:47]StoreOFDPacket docnum=123276 [15:14:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 48 37 07 01 74 C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 E9 93 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 8C E1 01 00 35 04 06 00 95 F8 CD EA C2 6F 52 F0 1A 51 9F B7 B0 88 [15:14:47]CheckFolder [15:14:47]dirname=/storage/ofd_packets [15:14:47]CheckFolder done [15:14:47]ProducePacketName [15:14:47]name=ofd_packets/00123276 [15:14:47]NVStorageSaveData ofd_packets/00123276 [15:14:47]File name is /storage/ofd_packets/00123276 [15:14:47]Write 301 bytes [15:14:47]NVStorageSaveData done [15:14:47]OFDSenderStorePacket done [15:14:47]KKMCreateOFDPacket done [15:14:47]NVStorageSaveData kkm_last_timestamp [15:14:47]File name is /storage/kkm_last_timestamp [15:14:47]Write 4 bytes [15:14:47]NVStorageSaveData done [15:14:47]ExternCall_PrintAddStr [15:14:47]wPrintStart [15:14:47]Write to MH i2c: 01 00 00 21 32 53 [15:14:47]Write i2c OK [15:14:47]MH_I2C_Read... [15:14:47]Read from MH i2c: 01 [15:14:47]MH_I2C_Read... [15:14:47]Read from MH i2c: 01 07 00 [15:14:47]MH_I2C_Read... [15:14:47]Read from MH i2c: 01 07 00 21 32 00 00 00 00 00 FF 0F 68 [15:14:47]RasterBufferAndPrint [15:14:47]line Счет N : (1)1106212 [15:14:47]line ИНН: 02508201610067 [15:14:47]line Контрольно-Кассовый Чек [15:14:47]line ПРОДАЖА [15:14:47]line ТРК (МРК, ГНК) : 13 [15:14:47]line Товар: 2710124500 [15:14:47]line Аи-95-К-5 [15:14:47]line 14.390 * 69.50 [15:14:47]line = 1000.11 [15:14:47]line НДС 12% НСП 1% [15:14:47]line > о реализуемом товаре [15:14:47]line ОКРУГЛЕНИЕ: -0.11 [15:14:47]line ИТОГО: 1000.00 [15:14:47]line Внесено: 1000.00 [15:14:47]line СДАЧА: 0.00 [15:14:47]line НСП 1% : 8.85 [15:14:47]line НДС 12% : 106.21 [15:14:47]line Наличными: 1000.00 [15:14:47]line Безнал.: 0.00 [15:14:47]line Место: АЗС № 25 "Партнер Нефть" [15:14:47]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [15:14:47]line СНО: Общий режим [15:14:47]line Чек 133 03.03.2024 15:14 [15:14:47]line Смена: 323 ФФД: 1.0 [15:14:47]line ЗНМ: 0300000019 [15:14:47]line РНМ: 0000000000090573 [15:14:47]line Версия ККМ: 001 [15:14:47]line ФМ: 0000000000874798 [15:14:47]line ФД: 123276 [15:14:47]line ФПД: 164895839142511 [15:14:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T151449&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123276&fm=164895839142511&tin=02508201610067®Number=0000000000090573&sum=100000 [15:14:47]OFD Sender: Processing packet 123276 [packets to send 112, broken 111] [15:14:47]ProducePacketName [15:14:47]name=ofd_packets/00123276 [15:14:47]OFD Sender: To server: pG, [15:14:47]CommunicateWithHost lk.salyk.kg:30040 [15:14:47]ConnectInit lk.salyk.kg [15:14:47]written 0, free lines is 4095 [15:14:47]Connected sock=9 [15:14: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 37 39 38 0F 01 00 00 48 37 07 01 74 C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 E9 93 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 8C E1 01 00 35 04 06 00 95 F8 CD EA C2 6F 52 F0 1A 51 9F B7 B0 88 [15:14:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 EC 81 47 00 EE C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 8C E1 01 00 F4 03 04 00 14 40 E4 65 B6 04 01 00 00 BB 58 73 1D 33 C8 20 EE [15:14:47]CommunicateWithHost err = 0 [15:14:47]CheckOFDResponse [15:14:47]1017 (14) - 77093643461234 [15:14:47]1041 (16) - 0000000000874798 [15:14:47]1040 (4) - 123276 [15:14:47]1012 (4) - 03.03.2024 09:17 [15:14:47]1206 (1) - 0 [15:14:47]OFD Sender: Remove packet 123276 [15:14:47]ProducePacketName [15:14:47]name=ofd_packets/00123276 [15:14:47]NVStorageDeleteData [15:14:48]Write to MH i2c: 01 00 00 4C 32 7E [15:14:48]Write i2c OK [15:14:48]MH_I2C_Read... [15:14:48]Read from MH i2c: 01 [15:14:48]MH_I2C_Read... [15:14:48]Read from MH i2c: 01 07 00 [15:14:48]MH_I2C_Read... [15:14:48]Read from MH i2c: 01 07 00 4C 32 00 00 00 00 00 E3 0C 74 [15:14:48]RasterBufferAndPrint [15:14:48]line [15:14:48]line [15:14:48]line [15:14:48]line [15:14:48]line [15:14:48]written 0, free lines is 3305 [15:14:48]MH_Cut [15:14:48]Write to MH i2c: D1 01 00 53 32 01 57 [15:14:48]Write i2c OK [15:14:48]MH_I2C_Read... [15:14:48]Read from MH i2c: D1 [15:14:48]MH_I2C_Read... [15:14:48]Read from MH i2c: D1 01 00 [15:14:48]MH_I2C_Read... [15:14:48]Read from MH i2c: D1 01 00 53 32 00 56 [15:14:48]Write to MH i2c: 01 00 00 54 32 86 [15:14:48]Write i2c OK [15:14:48]MH_I2C_Read... [15:14:48]OFD Sender: No OFD packet to send [15:14:48]*** Cut start [15:14:48]*** Purtial cut [15:14:48]*** Stage 1: CUTSNS_PIN = 1 [15:14:50]Read from MH i2c: 01 [15:14:50]MH_I2C_Read... [15:14:50]*** Stop cut motor [15:14:50]*** Cut end [15:14:50]Read from MH i2c: 01 07 00 [15:14:50]MH_I2C_Read... [15:14:50]Read from MH i2c: 01 07 00 54 32 00 00 00 00 00 FF 0F 9B [15:14:50]process_action close_receipt done [15:14:50]requested_data is exist [15:14:50]produce_requested_data [15:14:50]requested_item fm.sn is exist - process it [15:14:50]wFMCommunicate request_size=4 [15:14:50]MH_SAM_APDU [15:14:50]CAPDU: 80 11 00 00 [15:14:50]Write to MH i2c: E2 08 00 55 32 80 11 00 00 00 00 00 00 01 [15:14:50]Write i2c OK [15:14:50]MH_I2C_Read... [15:14:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:14:50]Read from MH i2c: E2 [15:14:50]MH_I2C_Read... [15:14:50]Read from MH i2c: E2 17 00 [15:14:50]MH_I2C_Read... [15:14:50]Read from MH i2c: E2 17 00 55 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 5F [15:14:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [15:14:50]wFMCommunicate OK [15:14:50]requested_item fd.num is exist - process it [15:14:50]SAM_PROTO_GetFieldsCounters [15:14:50]wFMCommunicate request_size=4 [15:14:50]MH_SAM_APDU [15:14:50]CAPDU: 80 13 00 00 [15:14:50]Write to MH i2c: E2 08 00 56 32 80 13 00 00 00 00 00 00 04 [15:14:50]Write i2c OK [15:14:50]MH_I2C_Read... [15:14:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:14:50]Read from MH i2c: E2 [15:14:50]MH_I2C_Read... [15:14:50]Read from MH i2c: E2 62 00 [15:14:50]MH_I2C_Read... [15:14:50]Read from MH i2c: E2 62 00 56 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 8C E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 70 [15: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 8C E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:14:50]wFMCommunicate OK [15:14:50]SAM_PROTO_GetFieldsCounters done [15:14:50]requested_item shift.num is exist - process it [15:14:50]requested_item shift.opened is exist - process it [15:14:50]req_shift_opened [15:14:50]FM_GetShiftState [15:14:50]SAM_PROTO_GetShiftState [15:14:50]wFMCommunicate request_size=4 [15:14:50]MH_SAM_APDU [15:14:50]CAPDU: 80 13 01 00 [15:14:50]Write to MH i2c: E2 08 00 57 32 80 13 01 00 00 00 00 00 06 [15:14:50]Write i2c OK [15:14:50]MH_I2C_Read... [15:14:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:51]Read from MH i2c: E2 [15:14:51]MH_I2C_Read... [15:14:51]Read from MH i2c: E2 0E 00 [15:14:51]MH_I2C_Read... [15:14:51]Read from MH i2c: E2 0E 00 57 32 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 C8 [15:14:51]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [15:14:51]wFMCommunicate OK [15:14:51]SAM_PROTO_GetShiftState done [15:14:51]FM_GetShiftState done [15:14:51]req_shift_opened done [15:14:51]requested_item shift.open_date is exist - process it [15:14:51]req_shift_open_date [15:14:51]req_shift_open_date done [15:14:51]produce_requested_data done [15:14:51]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123276,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [15:14:51]process_action_free close_receipt [15:14:51]json_value_free [15:14:51]json_value_free done [15:14:51]process_json_proto returns [15:14:51]Send response to host [15:14:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123276,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [15:14:51]free response buf [15:14:51]execute_script done [15:14:51]execute_script returns [15:14:51]free content buf [15:14:51]Sock 7.Close socket [15:14:51]Sock 7.Thread stoped [15:14:53]OFD Sender: No OFD packet to send [15:14:58]OFD Sender: No OFD packet to send [15:15:03]OFD Sender: No OFD packet to send [15:15:08]OFD Sender: No OFD packet to send [15:15:13]OFD Sender: No OFD packet to send [15:15:18]OFD Sender: No OFD packet to send [15:15:23]OFD Sender: No OFD packet to send [15:15:28]OFD Sender: No OFD packet to send [15:15:33]OFD Sender: No OFD packet to send [15:15:38]OFD Sender: No OFD packet to send [15:15:43]OFD Sender: No OFD packet to send [15:15:48]OFD Sender: No OFD packet to send [15:15:53]OFD Sender: No OFD packet to send [15:15:58]OFD Sender: No OFD packet to send [15:16:03]OFD Sender: No OFD packet to send [15:16:08]OFD Sender: No OFD packet to send [15:16:13]OFD Sender: No OFD packet to send [15:16:18]OFD Sender: No OFD packet to send [15:16:23]OFD Sender: No OFD packet to send [15:16:28]OFD Sender: No OFD packet to send [15:16:33]OFD Sender: No OFD packet to send [15:16:37]accept exits with 10 [15:16:37]New connection [15:16:37]New thread 3067395428 created [15:16:37]Thread 3067252068 joined [15:16:37]Waiting for new connection... [15:16:37] Sock 10.Parse request [15:16:37]Sock 10.Check first char [15:16:37]Sock 10.First char is OK [15:16:37]request: POST /json_proto HTTP/1.0 [15:16:37]Method: POST [15:16:37]URL: /json_proto [15:16:37]Method is POST - this is cgi request [15:16:37]url: /json_proto [15:16:37]query_string will be loaded in cgi processing [15:16:37]execute_cgi json_proto POST (null) [15:16:37]execute_cgi path=json_proto method=POST [15:16:37]POST find Content-Length [15:16:37]Host: 172.17.48.197:8080 [15:16:37]Content-Length: 679 [15:16:37]Content-Type: application/json [15:16:37] [15:16:37]POST finish read [15:16:37]Found Content-Length = 679 [15:16:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106213", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 11.310, "sum" : 700.09, "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" ] } } [15:16:37]execute_script... [15:16: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)1106213", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 11.310, "sum" : 700.09, "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" ] } } [15:16:37]POST & json_proto [15:16:37]process_json_proto [15:16:37]json parsed OK: [15:16:37]protocol is kg_v1.0 [15:16:37]action value=close_receipt [15:16:37]process_action close_receipt [15:16:37]cmd_close_receipt [15:16:37]MH_GetDate [15:16:37]Write to MH i2c: F0 00 00 58 32 79 [15:16:37]Write i2c OK [15:16:37]MH_I2C_Read... [15:16:37]Read from MH i2c: F0 [15:16:37]MH_I2C_Read... [15:16:37]Read from MH i2c: F0 09 00 [15:16:37]MH_I2C_Read... [15:16:37]Read from MH i2c: F0 09 00 58 32 00 58 94 E4 65 6C AF E3 65 1A [15:16:37]GetLastDocTimeStamp 1709478889 [15:16:37]current date 1709479000 [15:16:37]FM_GetShiftState [15:16:37]SAM_PROTO_GetShiftState [15:16:37]wFMCommunicate request_size=4 [15:16:37]MH_SAM_APDU [15:16:37]CAPDU: 80 13 01 00 [15:16:37]Write to MH i2c: E2 08 00 59 32 80 13 01 00 00 00 00 00 08 [15:16:37]Write i2c OK [15:16:37]MH_I2C_Read... [15:16:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:37]Read from MH i2c: E2 [15:16:37]MH_I2C_Read... [15:16:37]Read from MH i2c: E2 0E 00 [15:16:37]MH_I2C_Read... [15:16:37]Read from MH i2c: E2 0E 00 59 32 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 CA [15:16:37]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [15:16:37]wFMCommunicate OK [15:16:37]SAM_PROTO_GetShiftState done [15:16:37]FM_GetShiftState done [15:16:37]opened in 1709425579 [15:16:37]opened+sec_in_day 1709511979 [15:16:37]quantity*price = 70008 [15:16:37]sum+1 = 70010 [15:16:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.19 НДС 12% : 74.35 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 134 03.03.2024 15:16 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123277 ФПД: 271607873753537 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T151640&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123277&fm=271607873753537&tin=02508201610067®Number=0000000000090573&sum=70000 [15:16:38]StoreToDocumentArchive [15:16:38]shift 323 fd 123277 [15:16:38]save to /storage/0323/doc_00123277 [15:16:38]save last doc name /storage/0323/doc_00123277 to /storage/kkm_last_doc_name [15:16:38]save OK [15:16:38]Clear old archive folders... [15:16:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:16:38]tlvbuf is 00DECA10 [15:16:38]SAM_PROTO_ClearQueue [15:16:38]wFMCommunicate request_size=4 [15:16:38]MH_SAM_APDU [15:16:38]CAPDU: 80 09 00 00 [15:16:38]Write to MH i2c: E2 08 00 66 32 80 09 00 00 00 00 00 00 0A [15:16:38]Write i2c OK [15:16:38]MH_I2C_Read... [15:16:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:16:38]Read from MH i2c: E2 [15:16:38]MH_I2C_Read... [15:16:38]Read from MH i2c: E2 03 00 [15:16:38]MH_I2C_Read... [15:16:38]Read from MH i2c: E2 03 00 66 32 00 90 00 0C [15:16:38]RAPDU: 90 00 [15:16:38]wFMCommunicate OK [15:16:38]SAM_PROTO_ClearQueue done [15:16:38]KKMCreateOFDPacket [15:16:38]OFDProtocolAddRootSTLVToBuf [15:16:38]FM_MakeSignedData [15:16:38]FM_MakeSignedData [15:16:38]SAM_PROTO_SignData [15:16:38]wFMCommunicate request_size=4 [15:16:38]MH_SAM_APDU [15:16:38]CAPDU: 80 0D 01 02 [15:16:38]Write to MH i2c: E2 08 00 67 32 80 0D 01 02 00 00 00 00 12 [15:16:38]Write i2c OK [15:16:38]MH_I2C_Read... [15:16:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:16:38]Read from MH i2c: E2 [15:16:38]MH_I2C_Read... [15:16:38]Read from MH i2c: E2 03 00 [15:16:38]MH_I2C_Read... [15:16:38]Read from MH i2c: E2 03 00 67 32 00 90 00 0D [15:16:38]RAPDU: 90 00 [15:16:38]wFMCommunicate OK [15:16:38]wFMCommunicate request_size=255 [15:16:38]MH_SAM_APDU [15: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 35 FF 03 08 00 03 2E 2C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 79 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 6B 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 86 00 00 00 F4 03 04 00 58 94 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 8D E1 01 00 35 04 06 00 F7 [15:16:38]Write to MH i2c: E2 02 01 68 32 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 2C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 79 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 6B 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 86 00 00 00 F4 03 04 00 58 94 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 8D E1 01 00 35 04 06 00 F7 00 00 4F [15:16:38]Write i2c OK [15:16:38]MH_I2C_Read... [15:16:38]OFD Sender: No OFD packet to send [15:16:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:38]Read from MH i2c: E2 [15:16:38]MH_I2C_Read... [15:16:38]Read from MH i2c: E2 03 00 [15:16:38]MH_I2C_Read... [15:16:38]Read from MH i2c: E2 03 00 68 32 00 90 00 0E [15:16:38]RAPDU: 90 00 [15:16:38]wFMCommunicate OK [15:16:38]wFMCommunicate request_size=10 [15:16:38]MH_SAM_APDU [15:16:38]CAPDU: 80 0D 02 02 05 06 A2 D5 51 C1 [15:16:38]Write to MH i2c: E2 0D 00 69 32 80 0D 02 02 05 00 06 A2 D5 51 C1 00 00 AE [15:16:38]Write i2c OK [15:16:38]MH_I2C_Read... [15:16:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:38]Read from MH i2c: E2 [15:16:38]MH_I2C_Read... [15:16:38]Read from MH i2c: E2 03 00 [15:16:38]MH_I2C_Read... [15:16:38]Read from MH i2c: E2 03 00 69 32 00 90 00 0F [15:16:38]RAPDU: 90 00 [15:16:38]wFMCommunicate OK [15:16:38]wFMCommunicate request_size=4 [15:16:38]MH_SAM_APDU [15:16:38]CAPDU: 80 0D 03 02 [15:16:38]Write to MH i2c: E2 08 00 6A 32 80 0D 03 02 00 00 00 00 17 [15:16:38]Write i2c OK [15:16:38]MH_I2C_Read... [15:16:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:16:38]Read from MH i2c: E2 [15:16:38]MH_I2C_Read... [15:16:38]Read from MH i2c: E2 0B 00 [15:16:38]MH_I2C_Read... [15:16:38]Read from MH i2c: E2 0B 00 6A 32 00 C2 5E CB 1F 5E 24 CC 9A 90 00 0A [15:16:38]RAPDU: C2 5E CB 1F 5E 24 CC 9A 90 00 [15:16:38]wFMCommunicate OK [15:16:38]SAM_PROTO_SignData done [15:16:38]FM_MakeSignedData done [15:16:38]CreateOFDProtocolMessage [15:16:38]wFMCommunicate request_size=4 [15:16:38]MH_SAM_APDU [15:16:38]CAPDU: 80 11 00 00 [15:16:38]Write to MH i2c: E2 08 00 6B 32 80 11 00 00 00 00 00 00 17 [15:16:38]Write i2c OK [15:16:38]MH_I2C_Read... [15:16:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:38]Read from MH i2c: E2 [15:16:38]MH_I2C_Read... [15:16:38]Read from MH i2c: E2 17 00 [15:16:38]MH_I2C_Read... [15:16:38]Read from MH i2c: E2 17 00 6B 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 75 [15:16:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [15:16:38]wFMCommunicate OK [15:16:38]CreateOFDProtocolMessage done [15:16:38]OFDSenderStorePacket 123277 [15:16:38]StoreOFDPacket docnum=123277 [15:16:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 66 16 07 01 93 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 2C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 79 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 6B 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 86 00 00 00 F4 03 04 00 58 94 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 8D E1 01 00 35 04 06 00 F7 06 A2 D5 51 C1 C2 5E CB 1F 5E 24 CC 9A [15:16:38]CheckFolder [15:16:38]dirname=/storage/ofd_packets [15:16:38]CheckFolder done [15:16:38]ProducePacketName [15:16:38]name=ofd_packets/00123277 [15:16:38]NVStorageSaveData ofd_packets/00123277 [15:16:38]File name is /storage/ofd_packets/00123277 [15:16:38]Write 301 bytes [15:16:38]NVStorageSaveData done [15:16:38]OFDSenderStorePacket done [15:16:38]KKMCreateOFDPacket done [15:16:38]NVStorageSaveData kkm_last_timestamp [15:16:38]File name is /storage/kkm_last_timestamp [15:16:38]Write 4 bytes [15:16:38]NVStorageSaveData done [15:16:38]ExternCall_PrintAddStr [15:16:38]wPrintStart [15:16:38]Write to MH i2c: 01 00 00 6C 32 9E [15:16:38]Write i2c OK [15:16:38]MH_I2C_Read... [15:16:38]Read from MH i2c: 01 [15:16:38]MH_I2C_Read... [15:16:38]Read from MH i2c: 01 07 00 [15:16:38]MH_I2C_Read... [15:16:38]Read from MH i2c: 01 07 00 6C 32 00 00 00 00 00 FF 0F B3 [15:16:38]RasterBufferAndPrint [15:16:38]line Счет N : (1)1106213 [15:16:38]line ИНН: 02508201610067 [15:16:38]line Контрольно-Кассовый Чек [15:16:38]line ПРОДАЖА [15:16:38]line ТРК (МРК, ГНК) : 62 [15:16:38]line Товар: 2710124130 [15:16:38]line Аи-92-К-5 [15:16:38]line 11.310 * 61.90 [15:16:38]line = 700.09 [15:16:38]line НДС 12% НСП 1% [15:16:38]line > о реализуемом товаре [15:16:38]line ОКРУГЛЕНИЕ: -0.09 [15:16:38]line ИТОГО: 700.00 [15:16:38]line Внесено: 700.00 [15:16:38]line СДАЧА: 0.00 [15:16:38]line НСП 1% : 6.19 [15:16:38]line НДС 12% : 74.35 [15:16:38]line Наличными: 700.00 [15:16:38]line Безнал.: 0.00 [15:16:38]line Место: АЗС № 25 "Партнер Нефть" [15:16:38]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [15:16:38]line СНО: Общий режим [15:16:38]line Чек 134 03.03.2024 15:16 [15:16:38]line Смена: 323 ФФД: 1.0 [15:16:38]line ЗНМ: 0300000019 [15:16:38]line РНМ: 0000000000090573 [15:16:38]line Версия ККМ: 001 [15:16:38]line ФМ: 0000000000874798 [15:16:38]line ФД: 123277 [15:16:38]line ФПД: 271607873753537 [15:16:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T151640&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123277&fm=271607873753537&tin=02508201610067®Number=0000000000090573&sum=70000 [15:16:39]OFD Sender: Processing packet 123277 [packets to send 112, broken 111] [15:16:39]ProducePacketName [15:16:39]name=ofd_packets/00123277 [15:16:39]OFD Sender: To server: pG, [15:16:39]CommunicateWithHost lk.salyk.kg:30040 [15:16:39]ConnectInit lk.salyk.kg [15:16:39]written 0, free lines is 4095 [15:16:39]Connected sock=9 [15:16: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 37 39 38 0F 01 00 00 66 16 07 01 93 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 2C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 79 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 6B 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 86 00 00 00 F4 03 04 00 58 94 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 8D E1 01 00 35 04 06 00 F7 06 A2 D5 51 C1 C2 5E CB 1F 5E 24 CC 9A [15: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 37 39 38 4F 00 00 00 5F 04 47 00 22 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 37 39 38 10 04 04 00 8D E1 01 00 F4 03 04 00 84 40 E4 65 B6 04 01 00 00 6B DB 42 79 F8 AD B3 45 [15:16:39]CommunicateWithHost err = 0 [15:16:39]CheckOFDResponse [15:16:39]1017 (14) - 77093643461234 [15:16:39]1041 (16) - 0000000000874798 [15:16:39]1040 (4) - 123277 [15:16:39]1012 (4) - 03.03.2024 09:19 [15:16:39]1206 (1) - 0 [15:16:39]OFD Sender: Remove packet 123277 [15:16:39]ProducePacketName [15:16:39]name=ofd_packets/00123277 [15:16:39]NVStorageDeleteData [15:16:39]Write to MH i2c: 01 00 00 97 32 C9 [15:16:39]Write i2c OK [15:16:39]MH_I2C_Read... [15:16:39]Read from MH i2c: 01 [15:16:39]MH_I2C_Read... [15:16:39]Read from MH i2c: 01 07 00 [15:16:39]MH_I2C_Read... [15:16:39]Read from MH i2c: 01 07 00 97 32 00 00 00 00 00 E0 0C BC [15:16:39]RasterBufferAndPrint [15:16:39]line [15:16:39]line [15:16:39]line [15:16:39]line [15:16:39]line [15:16:39]written 0, free lines is 3305 [15:16:39]MH_Cut [15:16:39]Write to MH i2c: D1 01 00 9E 32 01 A2 [15:16:39]Write i2c OK [15:16:39]MH_I2C_Read... [15:16:39]Read from MH i2c: D1 [15:16:39]MH_I2C_Read... [15:16:39]Read from MH i2c: D1 01 00 [15:16:39]MH_I2C_Read... [15:16:39]Read from MH i2c: D1 01 00 9E 32 00 A1 [15:16:39]Write to MH i2c: 01 00 00 9F 32 D1 [15:16:39]Write i2c OK [15:16:39]MH_I2C_Read... [15:16:39]OFD Sender: No OFD packet to send [15:16:40]*** Cut start [15:16:40]*** Purtial cut [15:16:40]*** Stage 1: CUTSNS_PIN = 1 [15:16:42]Read from MH i2c: 01 [15:16:42]MH_I2C_Read... [15:16:42]*** Stop cut motor [15:16:42]*** Cut end [15:16:42]Read from MH i2c: 01 07 00 [15:16:42]MH_I2C_Read... [15:16:42]Read from MH i2c: 01 07 00 9F 32 00 00 00 00 00 FF 0F E6 [15:16:42]process_action close_receipt done [15:16:42]requested_data is exist [15:16:42]produce_requested_data [15:16:42]requested_item fm.sn is exist - process it [15:16:42]wFMCommunicate request_size=4 [15:16:42]MH_SAM_APDU [15:16:42]CAPDU: 80 11 00 00 [15:16:42]Write to MH i2c: E2 08 00 A0 32 80 11 00 00 00 00 00 00 4C [15:16:42]Write i2c OK [15:16:42]MH_I2C_Read... [15:16:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:42]Read from MH i2c: E2 [15:16:42]MH_I2C_Read... [15:16:42]Read from MH i2c: E2 17 00 [15:16:42]MH_I2C_Read... [15:16:42]Read from MH i2c: E2 17 00 A0 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 AA [15:16:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [15:16:42]wFMCommunicate OK [15:16:42]requested_item fd.num is exist - process it [15:16:42]SAM_PROTO_GetFieldsCounters [15:16:42]wFMCommunicate request_size=4 [15:16:42]MH_SAM_APDU [15:16:42]CAPDU: 80 13 00 00 [15:16:42]Write to MH i2c: E2 08 00 A1 32 80 13 00 00 00 00 00 00 4F [15:16:42]Write i2c OK [15:16:42]MH_I2C_Read... [15:16:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:16:42]Read from MH i2c: E2 [15:16:42]MH_I2C_Read... [15:16:42]Read from MH i2c: E2 62 00 [15:16:42]MH_I2C_Read... [15:16:42]Read from MH i2c: E2 62 00 A1 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 8D E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 BF [15:16:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 8D E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:16:42]wFMCommunicate OK [15:16:42]SAM_PROTO_GetFieldsCounters done [15:16:42]requested_item shift.num is exist - process it [15:16:42]requested_item shift.opened is exist - process it [15:16:42]req_shift_opened [15:16:42]FM_GetShiftState [15:16:42]SAM_PROTO_GetShiftState [15:16:42]wFMCommunicate request_size=4 [15:16:42]MH_SAM_APDU [15:16:42]CAPDU: 80 13 01 00 [15:16:42]Write to MH i2c: E2 08 00 A2 32 80 13 01 00 00 00 00 00 51 [15:16:42]Write i2c OK [15:16:42]MH_I2C_Read... [15:16:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:42]Read from MH i2c: E2 [15:16:42]MH_I2C_Read... [15:16:42]Read from MH i2c: E2 0E 00 [15:16:42]MH_I2C_Read... [15:16:42]Read from MH i2c: E2 0E 00 A2 32 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 13 [15:16:42]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [15:16:42]wFMCommunicate OK [15:16:42]SAM_PROTO_GetShiftState done [15:16:42]FM_GetShiftState done [15:16:42]req_shift_opened done [15:16:42]requested_item shift.open_date is exist - process it [15:16:42]req_shift_open_date [15:16:42]req_shift_open_date done [15:16:42]produce_requested_data done [15:16:42]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123277,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [15:16:42]process_action_free close_receipt [15:16:42]json_value_free [15:16:42]json_value_free done [15:16:42]process_json_proto returns [15:16:42]Send response to host [15:16:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123277,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [15:16:42]free response buf [15:16:42]execute_script done [15:16:42]execute_script returns [15:16:42]free content buf [15:16:42]Sock 10.Close socket [15:16:42]Sock 10.Thread stoped [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:30]OFD Sender: No OFD packet to send [15:18:35]OFD Sender: No OFD packet to send [15:18:40]OFD Sender: No OFD packet to send [15:18:45]OFD Sender: No OFD packet to send [15:18:50]OFD Sender: No OFD packet to send [15:18:55]OFD Sender: No OFD packet to send [15:19:00]OFD Sender: No OFD packet to send [15:19:05]OFD Sender: No OFD packet to send [15:19:10]OFD Sender: No OFD packet to send [15:19:15]OFD Sender: No OFD packet to send [15:19:20]OFD Sender: No OFD packet to send [15:19:25]OFD Sender: No OFD packet to send [15:19:30]OFD Sender: No OFD packet to send [15:19:35]OFD Sender: No OFD packet to send [15:19:40]OFD Sender: No OFD packet to send [15:19:45]OFD Sender: No OFD packet to send [15:19:50]OFD Sender: No OFD packet to send [15:19:55]OFD Sender: No OFD packet to send [15:20:00]OFD Sender: No OFD packet to send [15:20:05]OFD Sender: No OFD packet to send [15:20:10]OFD Sender: No OFD packet to send [15:20:15]OFD Sender: No OFD packet to send [15:20:20]OFD Sender: No OFD packet to send [15:20:25]OFD Sender: No OFD packet to send [15:20:30]OFD Sender: No OFD packet to send [15:20:35]OFD Sender: No OFD packet to send [15:20:40]OFD Sender: No OFD packet to send [15:20:45]OFD Sender: No OFD packet to send [15:20:50]OFD Sender: No OFD packet to send [15:20:55]OFD Sender: No OFD packet to send [15:21:00]OFD Sender: No OFD packet to send [15:21:05]OFD Sender: No OFD packet to send [15:21:10]OFD Sender: No OFD packet to send [15:21:15]OFD Sender: No OFD packet to send [15:21:20]OFD Sender: No OFD packet to send [15:21:25]OFD Sender: No OFD packet to send [15:21:30]OFD Sender: No OFD packet to send [15:21:33]accept exits with 7 [15:21:33]New connection [15:21:33]New thread 3067252068 created [15:21:33]Thread 3067395428 joined [15:21:33]Waiting for new connection... [15:21:33] Sock 7.Parse request [15:21:33]Sock 7.Check first char [15:21:33]Sock 7.First char is OK [15:21:33]request: POST /json_proto HTTP/1.0 [15:21:33]Method: POST [15:21:33]URL: /json_proto [15:21:33]Method is POST - this is cgi request [15:21:33]url: /json_proto [15:21:33]query_string will be loaded in cgi processing [15:21:33]execute_cgi json_proto POST (null) [15:21:33]execute_cgi path=json_proto method=POST [15:21:33]POST find Content-Length [15:21:33]Host: 172.17.48.197:8080 [15:21:33]Content-Length: 818 [15:21:33]Content-Type: application/json [15:21:33] [15:21:33]POST finish read [15:21:33]Found Content-Length = 818 [15:21:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106214", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 15.510, "sum" : 960.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 960.07 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:21:33]execute_script... [15:21: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)1106214", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 15.510, "sum" : 960.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 960.07 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:21:33]POST & json_proto [15:21:33]process_json_proto [15:21:33]json parsed OK: [15:21:33]protocol is kg_v1.0 [15:21:33]action value=close_receipt [15:21:33]process_action close_receipt [15:21:33]cmd_close_receipt [15:21:33]MH_GetDate [15:21:33]Write to MH i2c: F0 00 00 A3 32 C4 [15:21:33]Write i2c OK [15:21:33]MH_I2C_Read... [15:21:33]Read from MH i2c: F0 [15:21:33]MH_I2C_Read... [15:21:33]Read from MH i2c: F0 09 00 [15:21:33]MH_I2C_Read... [15:21:33]Read from MH i2c: F0 09 00 A3 32 00 81 95 E4 65 6C AF E3 65 8F [15:21:33]GetLastDocTimeStamp 1709479000 [15:21:33]current date 1709479297 [15:21:33]FM_GetShiftState [15:21:33]SAM_PROTO_GetShiftState [15:21:33]wFMCommunicate request_size=4 [15:21:33]MH_SAM_APDU [15:21:33]CAPDU: 80 13 01 00 [15:21:33]Write to MH i2c: E2 08 00 A4 32 80 13 01 00 00 00 00 00 53 [15:21:33]Write i2c OK [15:21:33]MH_I2C_Read... [15:21:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:21:34]Read from MH i2c: E2 [15:21:34]MH_I2C_Read... [15:21:34]Read from MH i2c: E2 0E 00 [15:21:34]MH_I2C_Read... [15:21:34]Read from MH i2c: E2 0E 00 A4 32 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 15 [15:21:34]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [15:21:34]wFMCommunicate OK [15:21:34]SAM_PROTO_GetShiftState done [15:21:34]FM_GetShiftState done [15:21:34]opened in 1709425579 [15:21:34]opened+sec_in_day 1709511979 [15:21:34]quantity*price = 96006 [15:21:34]sum+1 = 96008 [15:21:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 960.07 НСП 1% : 8.50 НДС 12% : 101.95 Наличными: 0.00 Безнал.: 960.07 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 135 03.03.2024 15:21 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874798 ФД: 123278 ФПД: 269428512704539 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T152137&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123278&fm=269428512704539&tin=02508201610067®Number=0000000000090573&sum=96007 [15:21:35]StoreToDocumentArchive [15:21:35]shift 323 fd 123278 [15:21:35]save to /storage/0323/doc_00123278 [15:21:35]save last doc name /storage/0323/doc_00123278 to /storage/kkm_last_doc_name [15:21:35]save OK [15:21:35]Clear old archive folders... [15:21:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:21:35]tlvbuf is 00EAD850 [15:21:35]SAM_PROTO_ClearQueue [15:21:35]wFMCommunicate request_size=4 [15:21:35]MH_SAM_APDU [15:21:35]CAPDU: 80 09 00 00 [15:21:35]Write to MH i2c: E2 08 00 B1 32 80 09 00 00 00 00 00 00 55 [15:21:35]Write i2c OK [15:21:35]MH_I2C_Read... [15:21:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:21:35]Read from MH i2c: E2 [15:21:35]MH_I2C_Read... [15:21:35]Read from MH i2c: E2 03 00 [15:21:35]MH_I2C_Read... [15:21:35]Read from MH i2c: E2 03 00 B1 32 00 90 00 57 [15:21:35]RAPDU: 90 00 [15:21:35]wFMCommunicate OK [15:21:35]SAM_PROTO_ClearQueue done [15:21:35]KKMCreateOFDPacket [15:21:35]OFDProtocolAddRootSTLVToBuf [15:21:35]FM_MakeSignedData [15:21:35]FM_MakeSignedData [15:21:35]SAM_PROTO_SignData [15:21:35]wFMCommunicate request_size=4 [15:21:35]MH_SAM_APDU [15:21:35]CAPDU: 80 0D 01 02 [15:21:35]Write to MH i2c: E2 08 00 B2 32 80 0D 01 02 00 00 00 00 5D [15:21:35]Write i2c OK [15:21:35]MH_I2C_Read... [15:21:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:21:35]Read from MH i2c: E2 [15:21:35]MH_I2C_Read... [15:21:35]Read from MH i2c: E2 03 00 [15:21:35]MH_I2C_Read... [15:21:35]Read from MH i2c: E2 03 00 B2 32 00 90 00 58 [15:21:35]RAPDU: 90 00 [15:21:35]wFMCommunicate OK [15:21:35]wFMCommunicate request_size=255 [15:21:35]MH_SAM_APDU [15:21: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 35 FF 03 08 00 03 96 3C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 07 77 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 07 77 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 52 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 27 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 07 77 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 81 95 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 8E E1 01 00 35 04 06 00 F5 [15:21:35]Write to MH i2c: E2 02 01 B3 32 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 96 3C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 07 77 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 07 77 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 52 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 27 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 07 77 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 81 95 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 8E E1 01 00 35 04 06 00 F5 00 00 E4 [15:21:35]OFD Sender: No OFD packet to send [15:21:35]Write i2c OK [15:21:35]MH_I2C_Read... [15:21:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:21:35]Read from MH i2c: E2 [15:21:35]MH_I2C_Read... [15:21:35]Read from MH i2c: E2 03 00 [15:21:35]MH_I2C_Read... [15:21:35]Read from MH i2c: E2 03 00 B3 32 00 90 00 59 [15:21:35]RAPDU: 90 00 [15:21:35]wFMCommunicate OK [15:21:35]wFMCommunicate request_size=10 [15:21:35]MH_SAM_APDU [15:21:35]CAPDU: 80 0D 02 02 05 0B 36 CA C8 1B [15:21:35]Write to MH i2c: E2 0D 00 B4 32 80 0D 02 02 05 00 0B 36 CA C8 1B 00 00 58 [15:21:35]Write i2c OK [15:21:35]MH_I2C_Read... [15:21:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:21:35]Read from MH i2c: E2 [15:21:35]MH_I2C_Read... [15:21:35]Read from MH i2c: E2 03 00 [15:21:35]MH_I2C_Read... [15:21:35]Read from MH i2c: E2 03 00 B4 32 00 90 00 5A [15:21:35]RAPDU: 90 00 [15:21:35]wFMCommunicate OK [15:21:35]wFMCommunicate request_size=4 [15:21:35]MH_SAM_APDU [15:21:35]CAPDU: 80 0D 03 02 [15:21:35]Write to MH i2c: E2 08 00 B5 32 80 0D 03 02 00 00 00 00 62 [15:21:35]Write i2c OK [15:21:35]MH_I2C_Read... [15:21:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:21:35]Read from MH i2c: E2 [15:21:35]MH_I2C_Read... [15:21:35]Read from MH i2c: E2 0B 00 [15:21:35]MH_I2C_Read... [15:21:35]Read from MH i2c: E2 0B 00 B5 32 00 9C 8E 72 E3 34 79 56 F9 90 00 DE [15:21:35]RAPDU: 9C 8E 72 E3 34 79 56 F9 90 00 [15:21:35]wFMCommunicate OK [15:21:35]SAM_PROTO_SignData done [15:21:35]FM_MakeSignedData done [15:21:35]CreateOFDProtocolMessage [15:21:35]wFMCommunicate request_size=4 [15:21:35]MH_SAM_APDU [15:21:35]CAPDU: 80 11 00 00 [15:21:35]Write to MH i2c: E2 08 00 B6 32 80 11 00 00 00 00 00 00 62 [15:21:35]Write i2c OK [15:21:35]MH_I2C_Read... [15:21:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:21:35]Read from MH i2c: E2 [15:21:35]MH_I2C_Read... [15:21:35]Read from MH i2c: E2 17 00 [15:21:35]MH_I2C_Read... [15:21:35]Read from MH i2c: E2 17 00 B6 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 C0 [15:21:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [15:21:35]wFMCommunicate OK [15:21:35]CreateOFDProtocolMessage done [15:21:35]OFDSenderStorePacket 123278 [15:21:35]StoreOFDPacket docnum=123278 [15:21:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 2C 18 07 01 82 B2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 96 3C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 07 77 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 07 77 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 52 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 27 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 07 77 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 81 95 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 8E E1 01 00 35 04 06 00 F5 0B 36 CA C8 1B 9C 8E 72 E3 34 79 56 F9 [15:21:35]CheckFolder [15:21:35]dirname=/storage/ofd_packets [15:21:35]CheckFolder done [15:21:35]ProducePacketName [15:21:35]name=ofd_packets/00123278 [15:21:35]NVStorageSaveData ofd_packets/00123278 [15:21:35]File name is /storage/ofd_packets/00123278 [15:21:35]Write 301 bytes [15:21:35]NVStorageSaveData done [15:21:35]OFDSenderStorePacket done [15:21:35]KKMCreateOFDPacket done [15:21:35]NVStorageSaveData kkm_last_timestamp [15:21:35]File name is /storage/kkm_last_timestamp [15:21:35]Write 4 bytes [15:21:35]NVStorageSaveData done [15:21:35]ExternCall_PrintAddStr [15:21:35]wPrintStart [15:21:35]Write to MH i2c: 01 00 00 B7 32 E9 [15:21:35]Write i2c OK [15:21:35]MH_I2C_Read... [15:21:35]Read from MH i2c: 01 [15:21:35]MH_I2C_Read... [15:21:35]Read from MH i2c: 01 07 00 [15:21:35]MH_I2C_Read... [15:21:35]Read from MH i2c: 01 07 00 B7 32 00 00 00 00 00 FF 0F FE [15:21:35]RasterBufferAndPrint [15:21:35]line Счет N : (1)1106214 [15:21:35]line ИНН: 02508201610067 [15:21:35]line Контрольно-Кассовый Чек [15:21:35]line ПРОДАЖА [15:21:35]line ТРК (МРК, ГНК) : 32 [15:21:35]line Товар: 2710124130 [15:21:35]line Аи-92-К-5 [15:21:35]line 15.510 * 61.90 [15:21:35]line = 960.07 [15:21:35]line НДС 12% НСП 1% [15:21:35]line > о реализуемом товаре [15:21:35]line ИТОГО: 960.07 [15:21:35]line НСП 1% : 8.50 [15:21:35]line НДС 12% : 101.95 [15:21:35]line Наличными: 0.00 [15:21:35]line Безнал.: 960.07 [15:21:35]line Место: АЗС № 25 "Партнер Нефть" [15:21:35]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [15:21:35]line СНО: Общий режим [15:21:35]line Чек 135 03.03.2024 15:21 [15:21:35]line Смена: 323 ФФД: 1.0 [15:21:35]line ЗНМ: 0300000019 [15:21:35]line РНМ: 0000000000090573 [15:21:35]line Версия ККМ: 001 [15:21:35]line Платежная система: Бакай Банк [15:21:35]line ФМ: 0000000000874798 [15:21:35]line ФД: 123278 [15:21:35]line ФПД: 269428512704539 [15:21:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T152137&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123278&fm=269428512704539&tin=02508201610067®Number=0000000000090573&sum=96007 [15:21:35]OFD Sender: Processing packet 123278 [packets to send 112, broken 111] [15:21:35]ProducePacketName [15:21:35]name=ofd_packets/00123278 [15:21:35]OFD Sender: To server: pG, [15:21:35]CommunicateWithHost lk.salyk.kg:30040 [15:21:35]ConnectInit lk.salyk.kg [15:21:35]written 0, free lines is 4095 [15:21:36]Connected sock=10 [15:21: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 37 39 38 0F 01 00 00 2C 18 07 01 82 B2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 96 3C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 07 77 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 07 77 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 52 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 27 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 07 77 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 81 95 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 8E E1 01 00 35 04 06 00 F5 0B 36 CA C8 1B 9C 8E 72 E3 34 79 56 F9 [15:21:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 EF 1B 47 00 FB 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 8E E1 01 00 F4 03 04 00 AD 41 E4 65 B6 04 01 00 00 E3 9F C6 61 75 18 4A 3C [15:21:36]CommunicateWithHost err = 0 [15:21:36]CheckOFDResponse [15:21:36]1017 (14) - 77093643461234 [15:21:36]1041 (16) - 0000000000874798 [15:21:36]1040 (4) - 123278 [15:21:36]1012 (4) - 03.03.2024 09:23 [15:21:36]1206 (1) - 0 [15:21:36]OFD Sender: Remove packet 123278 [15:21:36]ProducePacketName [15:21:36]name=ofd_packets/00123278 [15:21:36]NVStorageDeleteData [15:21:36]Write to MH i2c: 01 00 00 E1 32 13 [15:21:36]Write i2c OK [15:21:36]MH_I2C_Read... [15:21:36]Read from MH i2c: 01 [15:21:36]MH_I2C_Read... [15:21:36]Read from MH i2c: 01 07 00 [15:21:36]MH_I2C_Read... [15:21:36]Read from MH i2c: 01 07 00 E1 32 00 00 00 00 00 F4 0C 1A [15:21:36]RasterBufferAndPrint [15:21:36]line [15:21:36]line [15:21:36]line [15:21:36]line [15:21:36]line [15:21:36]written 0, free lines is 3322 [15:21:36]MH_Cut [15:21:36]Write to MH i2c: D1 01 00 E8 32 01 EC [15:21:36]Write i2c OK [15:21:36]MH_I2C_Read... [15:21:36]Read from MH i2c: D1 [15:21:36]MH_I2C_Read... [15:21:36]Read from MH i2c: D1 01 00 [15:21:36]MH_I2C_Read... [15:21:36]Read from MH i2c: D1 01 00 E8 32 00 EB [15:21:36]Write to MH i2c: 01 00 00 E9 32 1B [15:21:36]Write i2c OK [15:21:36]MH_I2C_Read... [15:21:36]OFD Sender: No OFD packet to send [15:21:37]*** Cut start [15:21:37]*** Purtial cut [15:21:37]*** Stage 1: CUTSNS_PIN = 1 [15:21:39]Read from MH i2c: 01 [15:21:39]MH_I2C_Read... [15:21:39]*** Stop cut motor [15:21:39]*** Cut end [15:21:39]Read from MH i2c: 01 07 00 [15:21:39]MH_I2C_Read... [15:21:39]Read from MH i2c: 01 07 00 E9 32 00 00 00 00 00 FF 0F 30 [15:21:39]process_action close_receipt done [15:21:39]requested_data is exist [15:21:39]produce_requested_data [15:21:39]requested_item fm.sn is exist - process it [15:21:39]wFMCommunicate request_size=4 [15:21:39]MH_SAM_APDU [15:21:39]CAPDU: 80 11 00 00 [15:21:39]Write to MH i2c: E2 08 00 EA 32 80 11 00 00 00 00 00 00 96 [15:21:39]Write i2c OK [15:21:39]MH_I2C_Read... [15:21:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:21:39]Read from MH i2c: E2 [15:21:39]MH_I2C_Read... [15:21:39]Read from MH i2c: E2 17 00 [15:21:39]MH_I2C_Read... [15:21:39]Read from MH i2c: E2 17 00 EA 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 F4 [15:21:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [15:21:39]wFMCommunicate OK [15:21:39]requested_item fd.num is exist - process it [15:21:39]SAM_PROTO_GetFieldsCounters [15:21:39]wFMCommunicate request_size=4 [15:21:39]MH_SAM_APDU [15:21:39]CAPDU: 80 13 00 00 [15:21:39]Write to MH i2c: E2 08 00 EB 32 80 13 00 00 00 00 00 00 99 [15:21:39]Write i2c OK [15:21:39]MH_I2C_Read... [15:21:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:21:39]Read from MH i2c: E2 [15:21:39]MH_I2C_Read... [15:21:39]Read from MH i2c: E2 62 00 [15:21:39]MH_I2C_Read... [15:21:39]Read from MH i2c: E2 62 00 EB 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 8E E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 0D [15: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 8E E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:21:39]wFMCommunicate OK [15:21:39]SAM_PROTO_GetFieldsCounters done [15:21:39]requested_item shift.num is exist - process it [15:21:39]requested_item shift.opened is exist - process it [15:21:39]req_shift_opened [15:21:39]FM_GetShiftState [15:21:39]SAM_PROTO_GetShiftState [15:21:39]wFMCommunicate request_size=4 [15:21:39]MH_SAM_APDU [15:21:39]CAPDU: 80 13 01 00 [15:21:39]Write to MH i2c: E2 08 00 EC 32 80 13 01 00 00 00 00 00 9B [15:21:39]Write i2c OK [15:21:39]MH_I2C_Read... [15:21:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:21:39]Read from MH i2c: E2 [15:21:39]MH_I2C_Read... [15:21:39]Read from MH i2c: E2 0E 00 [15:21:39]MH_I2C_Read... [15:21:39]Read from MH i2c: E2 0E 00 EC 32 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 5D [15:21:39]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [15:21:39]wFMCommunicate OK [15:21:39]SAM_PROTO_GetShiftState done [15:21:39]FM_GetShiftState done [15:21:39]req_shift_opened done [15:21:39]requested_item shift.open_date is exist - process it [15:21:39]req_shift_open_date [15:21:39]req_shift_open_date done [15:21:39]produce_requested_data done [15:21:39]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123278,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [15:21:39]process_action_free close_receipt [15:21:39]json_value_free [15:21:39]json_value_free done [15:21:39]process_json_proto returns [15:21:39]Send response to host [15:21:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123278,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [15:21:39]free response buf [15:21:39]execute_script done [15:21:39]execute_script returns [15:21:39]free content buf [15:21:39]Sock 7.Close socket [15:21:39]Sock 7.Thread stoped [15:21:41]OFD Sender: No OFD packet to send [15:21:46]OFD Sender: No OFD packet to send [15:21:51]OFD Sender: No OFD packet to send [15:21:56]OFD Sender: No OFD packet to send [15:22:01]OFD Sender: No OFD packet to send [15:22:06]OFD Sender: No OFD packet to send [15:22:11]OFD Sender: No OFD packet to send [15:22:16]OFD Sender: No OFD packet to send [15:22:21]OFD Sender: No OFD packet to send [15:22:26]OFD Sender: No OFD packet to send [15:22:31]OFD Sender: No OFD packet to send [15:22:36]OFD Sender: No OFD packet to send [15:22:41]OFD Sender: No OFD packet to send [15:22:46]OFD Sender: No OFD packet to send [15:22:51]OFD Sender: No OFD packet to send [15:22:56]OFD Sender: No OFD packet to send [15:23:01]OFD Sender: No OFD packet to send [15:23:06]OFD Sender: No OFD packet to send [15:23:11]OFD Sender: No OFD packet to send [15:23:16]OFD Sender: No OFD packet to send [15:23:21]OFD Sender: No OFD packet to send [15:23:26]OFD Sender: No OFD packet to send [15:23:31]OFD Sender: No OFD packet to send [15:23:36]OFD Sender: No OFD packet to send [15:23:41]OFD Sender: No OFD packet to send [15:23:46]OFD Sender: No OFD packet to send [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:57]OFD Sender: No OFD packet to send [15:25:02]OFD Sender: No OFD packet to send [15:25:07]OFD Sender: No OFD packet to send [15:25:12]OFD Sender: No OFD packet to send [15:25:17]OFD Sender: No OFD packet to send [15:25:22]OFD Sender: No OFD packet to send [15:25:27]OFD Sender: No OFD packet to send [15:25:32]OFD Sender: No OFD packet to send [15:25:37]OFD Sender: No OFD packet to send [15:25:42]OFD Sender: No OFD packet to send [15:25:47]OFD Sender: No OFD packet to send [15:25:52]OFD Sender: No OFD packet to send [15:25:57]OFD Sender: No OFD packet to send [15:26:02]OFD Sender: No OFD packet to send [15:26:07]OFD Sender: No OFD packet to send [15:26:12]OFD Sender: No OFD packet to send [15:26:17]OFD Sender: No OFD packet to send [15:26:22]OFD Sender: No OFD packet to send [15:26:27]OFD Sender: No OFD packet to send [15:26:32]OFD Sender: No OFD packet to send [15:26:37]OFD Sender: No OFD packet to send [15:26:42]OFD Sender: No OFD packet to send [15:26:47]OFD Sender: No OFD packet to send [15:26:52]OFD Sender: No OFD packet to send [15:26:57]OFD Sender: No OFD packet to send [15:27:02]OFD Sender: No OFD packet to send [15:27:07]OFD Sender: No OFD packet to send [15:27:12]OFD Sender: No OFD packet to send [15:27:17]OFD Sender: No OFD packet to send [15:27:22]OFD Sender: No OFD packet to send [15:27:27]OFD Sender: No OFD packet to send [15:27:32]OFD Sender: No OFD packet to send [15:27:37]OFD Sender: No OFD packet to send [15:27:42]OFD Sender: No OFD packet to send [15:27:47]OFD Sender: No OFD packet to send [15:27:52]OFD Sender: No OFD packet to send [15:27:57]OFD Sender: No OFD packet to send [15:28:02]OFD Sender: No OFD packet to send [15:28:07]OFD Sender: No OFD packet to send [15:28:12]OFD Sender: No OFD packet to send [15:28:17]OFD Sender: No OFD packet to send [15:28:22]OFD Sender: No OFD packet to send [15:28:27]OFD Sender: No OFD packet to send [15:28:32]OFD Sender: No OFD packet to send [15:28:37]OFD Sender: No OFD packet to send [15:28:42]OFD Sender: No OFD packet to send [15:28:47]OFD Sender: No OFD packet to send [15:28:52]OFD Sender: No OFD packet to send [15:28:57]OFD Sender: No OFD packet to send [15:29:02]OFD Sender: No OFD packet to send [15:29:07]OFD Sender: No OFD packet to send [15:29:12]OFD Sender: No OFD packet to send [15:29:17]OFD Sender: No OFD packet to send [15:29:18]accept exits with 9 [15:29:18]New connection [15:29:18]New thread 3067395428 created [15:29:18]Thread 3067252068 joined [15:29:18]Waiting for new connection... [15:29:18] Sock 9.Parse request [15:29:18]Sock 9.Check first char [15:29:18]Sock 9.First char is OK [15:29:18]request: POST /json_proto HTTP/1.0 [15:29:18]Method: POST [15:29:18]URL: /json_proto [15:29:18]Method is POST - this is cgi request [15:29:18]url: /json_proto [15:29:18]query_string will be loaded in cgi processing [15:29:18]execute_cgi json_proto POST (null) [15:29:18]execute_cgi path=json_proto method=POST [15:29:18]POST find Content-Length [15:29:18]Host: 172.17.48.197:8080 [15:29:18]Content-Length: 688 [15:29:18]Content-Type: application/json [15:29:18] [15:29:18]POST finish read [15:29:18]Found Content-Length = 688 [15:29:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106215", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 70.90, "quantity" : 14.110, "sum" : 1000.40, "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:29:18]execute_script... [15:29:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106215", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 70.90, "quantity" : 14.110, "sum" : 1000.40, "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:29:18]POST & json_proto [15:29:18]process_json_proto [15:29:18]json parsed OK: [15:29:18]protocol is kg_v1.0 [15:29:18]action value=close_receipt [15:29:18]process_action close_receipt [15:29:18]cmd_close_receipt [15:29:18]MH_GetDate [15:29:18]Write to MH i2c: F0 00 00 ED 32 0E [15:29:18]Write i2c OK [15:29:18]MH_I2C_Read... [15:29:18]Read from MH i2c: F0 [15:29:18]MH_I2C_Read... [15:29:18]Read from MH i2c: F0 09 00 [15:29:18]MH_I2C_Read... [15:29:18]Read from MH i2c: F0 09 00 ED 32 00 52 97 E4 65 6C AF E3 65 AC [15:29:18]GetLastDocTimeStamp 1709479297 [15:29:18]current date 1709479762 [15:29:18]FM_GetShiftState [15:29:18]SAM_PROTO_GetShiftState [15:29:18]wFMCommunicate request_size=4 [15:29:18]MH_SAM_APDU [15:29:18]CAPDU: 80 13 01 00 [15:29:18]Write to MH i2c: E2 08 00 EE 32 80 13 01 00 00 00 00 00 9D [15:29:18]Write i2c OK [15:29:18]MH_I2C_Read... [15:29:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:29:18]Read from MH i2c: E2 [15:29:18]MH_I2C_Read... [15:29:18]Read from MH i2c: E2 0E 00 [15:29:18]MH_I2C_Read... [15:29:18]Read from MH i2c: E2 0E 00 EE 32 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 5F [15:29:18]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [15:29:18]wFMCommunicate OK [15:29:18]SAM_PROTO_GetShiftState done [15:29:18]FM_GetShiftState done [15:29:18]opened in 1709425579 [15:29:18]opened+sec_in_day 1709511979 [15:29:18]quantity*price = 100039 [15:29:18]sum+1 = 100041 [15:29:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 136 03.03.2024 15:29 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123279 ФПД: 19441449820429 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T152922&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123279&fm=19441449820429&tin=02508201610067®Number=0000000000090573&sum=100000 [15:29:19]StoreToDocumentArchive [15:29:19]shift 323 fd 123279 [15:29:19]save to /storage/0323/doc_00123279 [15:29:19]save last doc name /storage/0323/doc_00123279 to /storage/kkm_last_doc_name [15:29:19]save OK [15:29:19]Clear old archive folders... [15:29:19]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:29:19]tlvbuf is 00EA6F20 [15:29:19]SAM_PROTO_ClearQueue [15:29:19]wFMCommunicate request_size=4 [15:29:19]MH_SAM_APDU [15:29:19]CAPDU: 80 09 00 00 [15:29:19]Write to MH i2c: E2 08 00 FB 32 80 09 00 00 00 00 00 00 9F [15:29:19]Write i2c OK [15:29:19]MH_I2C_Read... [15:29:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:29:19]Read from MH i2c: E2 [15:29:19]MH_I2C_Read... [15:29:19]Read from MH i2c: E2 03 00 [15:29:19]MH_I2C_Read... [15:29:19]Read from MH i2c: E2 03 00 FB 32 00 90 00 A1 [15:29:19]RAPDU: 90 00 [15:29:19]wFMCommunicate OK [15:29:19]SAM_PROTO_ClearQueue done [15:29:19]KKMCreateOFDPacket [15:29:19]OFDProtocolAddRootSTLVToBuf [15:29:19]FM_MakeSignedData [15:29:19]FM_MakeSignedData [15:29:19]SAM_PROTO_SignData [15:29:19]wFMCommunicate request_size=4 [15:29:19]MH_SAM_APDU [15:29:19]CAPDU: 80 0D 01 02 [15:29:19]Write to MH i2c: E2 08 00 FC 32 80 0D 01 02 00 00 00 00 A7 [15:29:19]Write i2c OK [15:29:19]MH_I2C_Read... [15:29:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:29:19]Read from MH i2c: E2 [15:29:19]MH_I2C_Read... [15:29:19]Read from MH i2c: E2 03 00 [15:29:19]MH_I2C_Read... [15:29:19]Read from MH i2c: E2 03 00 FC 32 00 90 00 A2 [15:29:19]RAPDU: 90 00 [15:29:19]wFMCommunicate OK [15:29:19]wFMCommunicate request_size=255 [15:29:19]MH_SAM_APDU [15:29:19]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 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 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 80 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 88 00 00 00 F4 03 04 00 52 97 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 8F E1 01 00 35 04 06 00 [15:29:19]Write to MH i2c: E2 02 01 FD 32 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 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 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 80 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 88 00 00 00 F4 03 04 00 52 97 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 8F E1 01 00 35 04 06 00 00 00 45 [15:29:19]Write i2c OK [15:29:19]MH_I2C_Read... [15:29:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:29:19]Read from MH i2c: E2 [15:29:19]MH_I2C_Read... [15:29:19]Read from MH i2c: E2 03 00 [15:29:19]MH_I2C_Read... [15:29:19]Read from MH i2c: E2 03 00 FD 32 00 90 00 A3 [15:29:19]RAPDU: 90 00 [15:29:19]wFMCommunicate OK [15:29:19]wFMCommunicate request_size=11 [15:29:19]MH_SAM_APDU [15:29:19]CAPDU: 80 0D 02 02 06 11 AE 90 B5 E1 0D [15:29:19]Write to MH i2c: E2 0E 00 FE 32 80 0D 02 02 06 00 11 AE 90 B5 E1 0D 00 00 A8 [15:29:19]Write i2c OK [15:29:19]MH_I2C_Read... [15:29:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:29:20]Read from MH i2c: E2 [15:29:20]MH_I2C_Read... [15:29:20]Read from MH i2c: E2 03 00 [15:29:20]MH_I2C_Read... [15:29:20]Read from MH i2c: E2 03 00 FE 32 00 90 00 A4 [15:29:20]RAPDU: 90 00 [15:29:20]wFMCommunicate OK [15:29:20]wFMCommunicate request_size=4 [15:29:20]MH_SAM_APDU [15:29:20]CAPDU: 80 0D 03 02 [15:29:20]Write to MH i2c: E2 08 00 FF 32 80 0D 03 02 00 00 00 00 AC [15:29:20]Write i2c OK [15:29:20]MH_I2C_Read... [15:29:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:29:20]Read from MH i2c: E2 [15:29:20]MH_I2C_Read... [15:29:20]Read from MH i2c: E2 0B 00 [15:29:20]MH_I2C_Read... [15:29:20]Read from MH i2c: E2 0B 00 FF 32 00 02 A0 C8 61 2F AC D3 4B 90 00 71 [15:29:20]RAPDU: 02 A0 C8 61 2F AC D3 4B 90 00 [15:29:20]wFMCommunicate OK [15:29:20]SAM_PROTO_SignData done [15:29:20]FM_MakeSignedData done [15:29:20]CreateOFDProtocolMessage [15:29:20]wFMCommunicate request_size=4 [15:29:20]MH_SAM_APDU [15:29:20]CAPDU: 80 11 00 00 [15:29:20]Write to MH i2c: E2 08 00 00 33 80 11 00 00 00 00 00 00 AD [15:29:20]Write i2c OK [15:29:20]MH_I2C_Read... [15:29:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:29:20]Read from MH i2c: E2 [15:29:20]MH_I2C_Read... [15:29:20]Read from MH i2c: E2 17 00 [15:29:20]MH_I2C_Read... [15:29:20]Read from MH i2c: E2 17 00 00 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 0B [15:29:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [15:29:20]wFMCommunicate OK [15:29:20]CreateOFDProtocolMessage done [15:29:20]OFDSenderStorePacket 123279 [15:29:20]StoreOFDPacket docnum=123279 [15:29:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 01 00 00 7D 6F 08 01 14 E4 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 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 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 80 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 88 00 00 00 F4 03 04 00 52 97 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 8F E1 01 00 35 04 06 00 11 AE 90 B5 E1 0D 02 A0 C8 61 2F AC D3 4B [15:29:20]CheckFolder [15:29:20]dirname=/storage/ofd_packets [15:29:20]CheckFolder done [15:29:20]ProducePacketName [15:29:20]name=ofd_packets/00123279 [15:29:20]NVStorageSaveData ofd_packets/00123279 [15:29:20]File name is /storage/ofd_packets/00123279 [15:29:20]Write 302 bytes [15:29:20]NVStorageSaveData done [15:29:20]OFDSenderStorePacket done [15:29:20]KKMCreateOFDPacket done [15:29:20]NVStorageSaveData kkm_last_timestamp [15:29:20]File name is /storage/kkm_last_timestamp [15:29:20]Write 4 bytes [15:29:20]NVStorageSaveData done [15:29:20]OFD Sender: Processing packet 123279 [packets to send 112, broken 111] [15:29:20]ProducePacketName [15:29:20]name=ofd_packets/00123279 [15:29:20]OFD Sender: To server: pG, [15:29:20]CommunicateWithHost lk.salyk.kg:30040 [15:29:20]ConnectInit lk.salyk.kg [15:29:20]ExternCall_PrintAddStr [15:29:20]wPrintStart [15:29:20]Write to MH i2c: 01 00 00 01 33 34 [15:29:20]Write i2c OK [15:29:20]MH_I2C_Read... [15:29:20]Read from MH i2c: 01 [15:29:20]MH_I2C_Read... [15:29:20]Read from MH i2c: 01 07 00 [15:29:20]MH_I2C_Read... [15:29:20]Read from MH i2c: 01 07 00 01 33 00 00 00 00 00 FF 0F 49 [15:29:20]RasterBufferAndPrint [15:29:20]line Счет N : (1)1106215 [15:29:20]line ИНН: 02508201610067 [15:29:20]line Контрольно-Кассовый Чек [15:29:20]line ПРОДАЖА [15:29:20]line ТРК (МРК, ГНК) : 31 [15:29:20]line Товар: 2710194210 [15:29:20]line ДТ(л)-К-5 [15:29:20]line 14.110 * 70.90 [15:29:20]line = 1000.40 [15:29:20]line НДС 12% НСП 1% [15:29:20]line > о реализуемом товаре [15:29:20]line ОКРУГЛЕНИЕ: -0.40 [15:29:20]line ИТОГО: 1000.00 [15:29:20]line Внесено: 1000.00 [15:29:20]line СДАЧА: 0.00 [15:29:20]line НСП 1% : 8.85 [15:29:20]line НДС 12% : 106.24 [15:29:20]line Наличными: 1000.00 [15:29:20]line Безнал.: 0.00 [15:29:20]line Место: АЗС № 25 "Партнер Нефть" [15:29:20]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [15:29:20]line СНО: Общий режим [15:29:20]line Чек 136 03.03.2024 15:29 [15:29:20]line Смена: 323 ФФД: 1.0 [15:29:20]line ЗНМ: 0300000019 [15:29:20]line РНМ: 0000000000090573 [15:29:20]line Версия ККМ: 001 [15:29:20]line ФМ: 0000000000874798 [15:29:20]line ФД: 123279 [15:29:20]line ФПД: 19441449820429 [15:29:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T152922&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123279&fm=19441449820429&tin=02508201610067®Number=0000000000090573&sum=100000 [15:29:20]Connected sock=11 [15:29: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 37 39 38 10 01 00 00 7D 6F 08 01 14 E4 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 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 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 80 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 88 00 00 00 F4 03 04 00 52 97 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 8F E1 01 00 35 04 06 00 11 AE 90 B5 E1 0D 02 A0 C8 61 2F AC D3 4B [15:29:20]written 0, free lines is 4095 [15:29:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 39 AE 47 00 6F 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 37 39 38 10 04 04 00 8F E1 01 00 F4 03 04 00 7D 43 E4 65 B6 04 01 00 00 A7 4B EA 4A F0 8D A6 EB [15:29:20]CommunicateWithHost err = 0 [15:29:20]CheckOFDResponse [15:29:20]1017 (14) - 77093643461234 [15:29:20]1041 (16) - 0000000000874798 [15:29:20]1040 (4) - 123279 [15:29:20]1012 (4) - 03.03.2024 09:31 [15:29:20]1206 (1) - 0 [15:29:20]OFD Sender: Remove packet 123279 [15:29:20]ProducePacketName [15:29:20]name=ofd_packets/00123279 [15:29:20]NVStorageDeleteData [15:29:20]Write to MH i2c: 01 00 00 2C 33 5F [15:29:20]Write i2c OK [15:29:20]MH_I2C_Read... [15:29:20]Read from MH i2c: 01 [15:29:20]MH_I2C_Read... [15:29:20]Read from MH i2c: 01 07 00 [15:29:20]MH_I2C_Read... [15:29:20]Read from MH i2c: 01 07 00 2C 33 00 00 00 00 00 EA 0C 5C [15:29:20]RasterBufferAndPrint [15:29:20]line [15:29:20]line [15:29:20]line [15:29:20]line [15:29:20]line [15:29:20]written 0, free lines is 3315 [15:29:20]MH_Cut [15:29:20]Write to MH i2c: D1 01 00 33 33 01 38 [15:29:20]Write i2c OK [15:29:20]MH_I2C_Read... [15:29:20]Read from MH i2c: D1 [15:29:20]MH_I2C_Read... [15:29:20]Read from MH i2c: D1 01 00 [15:29:20]MH_I2C_Read... [15:29:20]Read from MH i2c: D1 01 00 33 33 00 37 [15:29:20]Write to MH i2c: 01 00 00 34 33 67 [15:29:20]Write i2c OK [15:29:20]MH_I2C_Read... [15:29:21]OFD Sender: No OFD packet to send [15:29:21]*** Cut start [15:29:21]*** Purtial cut [15:29:21]*** Stage 1: CUTSNS_PIN = 1 [15:29:23]Read from MH i2c: 01 [15:29:23]MH_I2C_Read... [15:29:23]*** Stop cut motor [15:29:23]*** Cut end [15:29:23]Read from MH i2c: 01 07 00 [15:29:23]MH_I2C_Read... [15:29:23]Read from MH i2c: 01 07 00 34 33 00 00 00 00 00 FF 0F 7C [15:29:23]process_action close_receipt done [15:29:23]requested_data is exist [15:29:23]produce_requested_data [15:29:23]requested_item fm.sn is exist - process it [15:29:23]wFMCommunicate request_size=4 [15:29:23]MH_SAM_APDU [15:29:23]CAPDU: 80 11 00 00 [15:29:23]Write to MH i2c: E2 08 00 35 33 80 11 00 00 00 00 00 00 E2 [15:29:23]Write i2c OK [15:29:23]MH_I2C_Read... [15:29:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:29:23]Read from MH i2c: E2 [15:29:23]MH_I2C_Read... [15:29:23]Read from MH i2c: E2 17 00 [15:29:23]MH_I2C_Read... [15:29:23]Read from MH i2c: E2 17 00 35 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 40 [15:29:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [15:29:23]wFMCommunicate OK [15:29:23]requested_item fd.num is exist - process it [15:29:23]SAM_PROTO_GetFieldsCounters [15:29:23]wFMCommunicate request_size=4 [15:29:23]MH_SAM_APDU [15:29:23]CAPDU: 80 13 00 00 [15:29:23]Write to MH i2c: E2 08 00 36 33 80 13 00 00 00 00 00 00 E5 [15:29:23]Write i2c OK [15:29:23]MH_I2C_Read... [15:29:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:29:23]Read from MH i2c: E2 [15:29:23]MH_I2C_Read... [15:29:23]Read from MH i2c: E2 62 00 [15:29:23]MH_I2C_Read... [15:29:23]Read from MH i2c: E2 62 00 36 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 8F E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 5D [15:29: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 8F E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:29:23]wFMCommunicate OK [15:29:23]SAM_PROTO_GetFieldsCounters done [15:29:23]requested_item shift.num is exist - process it [15:29:23]requested_item shift.opened is exist - process it [15:29:23]req_shift_opened [15:29:23]FM_GetShiftState [15:29:23]SAM_PROTO_GetShiftState [15:29:23]wFMCommunicate request_size=4 [15:29:23]MH_SAM_APDU [15:29:23]CAPDU: 80 13 01 00 [15:29:23]Write to MH i2c: E2 08 00 37 33 80 13 01 00 00 00 00 00 E7 [15:29:23]Write i2c OK [15:29:23]MH_I2C_Read... [15:29:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:29:23]Read from MH i2c: E2 [15:29:23]MH_I2C_Read... [15:29:23]Read from MH i2c: E2 0E 00 [15:29:23]MH_I2C_Read... [15:29:23]Read from MH i2c: E2 0E 00 37 33 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 A9 [15:29:23]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [15:29:23]wFMCommunicate OK [15:29:23]SAM_PROTO_GetShiftState done [15:29:23]FM_GetShiftState done [15:29:23]req_shift_opened done [15:29:23]requested_item shift.open_date is exist - process it [15:29:23]req_shift_open_date [15:29:23]req_shift_open_date done [15:29:23]produce_requested_data done [15:29:23]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123279,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [15:29:23]process_action_free close_receipt [15:29:23]json_value_free [15:29:23]json_value_free done [15:29:23]process_json_proto returns [15:29:23]Send response to host [15:29:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123279,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [15:29:23]free response buf [15:29:23]execute_script done [15:29:23]execute_script returns [15:29:23]free content buf [15:29:23]Sock 9.Close socket [15:29:23]Sock 9.Thread stoped [15:29:26]OFD Sender: No OFD packet to send [15:29:31]OFD Sender: No OFD packet to send [15:29:36]OFD Sender: No OFD packet to send [15:29:41]OFD Sender: No OFD packet to send [15:29:46]OFD Sender: No OFD packet to send [15:29:51]OFD Sender: No OFD packet to send [15:29:56]OFD Sender: No OFD packet to send [15:30:01]OFD Sender: No OFD packet to send [15:30:06]OFD Sender: No OFD packet to send [15:30:11]OFD Sender: No OFD packet to send [15:30:16]OFD Sender: No OFD packet to send [15:30:21]OFD Sender: No OFD packet to send [15:30:26]OFD Sender: No OFD packet to send [15:30:31]OFD Sender: No OFD packet to send [15:30:36]OFD Sender: No OFD packet to send [15:30:41]OFD Sender: No OFD packet to send [15:30:46]OFD Sender: No OFD packet to send [15:30:51]OFD Sender: No OFD packet to send [15:30:56]OFD Sender: No OFD packet to send [15:31:01]OFD Sender: No OFD packet to send [15:31:06]OFD Sender: No OFD packet to send [15:31:11]OFD Sender: No OFD packet to send [15:31:16]OFD Sender: No OFD packet to send [15:31:21]OFD Sender: No OFD packet to send [15:31:26]OFD Sender: No OFD packet to send [15:31:31]OFD Sender: No OFD packet to send [15:31:36]OFD Sender: No OFD packet to send [15:31:41]OFD Sender: No OFD packet to send [15:31:46]OFD Sender: No OFD packet to send [15:31:51]OFD Sender: No OFD packet to send [15:31:56]OFD Sender: No OFD packet to send [15:32:01]OFD Sender: No OFD packet to send [15:32:06]OFD Sender: No OFD packet to send [15:32:11]OFD Sender: No OFD packet to send [15:32:16]OFD Sender: No OFD packet to send [15:32:21]OFD Sender: No OFD packet to send [15:32:26]OFD Sender: No OFD packet to send [15:32:31]OFD Sender: No OFD packet to send [15:32:36]OFD Sender: No OFD packet to send [15:32:41]OFD Sender: No OFD packet to send [15:32:46]OFD Sender: No OFD packet to send [15:32:51]OFD Sender: No OFD packet to send [15:32:56]OFD Sender: No OFD packet to send [15:33:01]OFD Sender: No OFD packet to send [15:33:06]OFD Sender: No OFD packet to send [15:33:11]OFD Sender: No OFD packet to send [15:33:16]OFD Sender: No OFD packet to send [15:33:21]OFD Sender: No OFD packet to send [15:33:24]accept exits with 7 [15:33:24]New connection [15:33:24]New thread 3067252068 created [15:33:24]Thread 3067395428 joined [15:33:24]Waiting for new connection... [15:33:24] Sock 7.Parse request [15:33:24]Sock 7.Check first char [15:33:24]Sock 7.First char is OK [15:33:24]request: POST /json_proto HTTP/1.0 [15:33:24]Method: POST [15:33:24]URL: /json_proto [15:33:24]Method is POST - this is cgi request [15:33:24]url: /json_proto [15:33:24]query_string will be loaded in cgi processing [15:33:24]execute_cgi json_proto POST (null) [15:33:24]execute_cgi path=json_proto method=POST [15:33:24]POST find Content-Length [15:33:24]Host: 172.17.48.197:8080 [15:33:24]Content-Length: 683 [15:33:24]Content-Type: application/json [15:33:24] [15:33:24]POST finish read [15:33:24]Found Content-Length = 683 [15:33:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106216", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:33:24]execute_script... [15:33:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106216", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:33:24]POST & json_proto [15:33:24]process_json_proto [15:33:24]json parsed OK: [15:33:24]protocol is kg_v1.0 [15:33:24]action value=close_receipt [15:33:24]process_action close_receipt [15:33:24]cmd_close_receipt [15:33:24]MH_GetDate [15:33:24]Write to MH i2c: F0 00 00 38 33 5A [15:33:24]Write i2c OK [15:33:24]MH_I2C_Read... [15:33:24]Read from MH i2c: F0 [15:33:24]MH_I2C_Read... [15:33:24]Read from MH i2c: F0 09 00 [15:33:24]MH_I2C_Read... [15:33:24]Read from MH i2c: F0 09 00 38 33 00 48 98 E4 65 6C AF E3 65 EF [15:33:24]GetLastDocTimeStamp 1709479762 [15:33:24]current date 1709480008 [15:33:24]FM_GetShiftState [15:33:24]SAM_PROTO_GetShiftState [15:33:24]wFMCommunicate request_size=4 [15:33:24]MH_SAM_APDU [15:33:24]CAPDU: 80 13 01 00 [15:33:24]Write to MH i2c: E2 08 00 39 33 80 13 01 00 00 00 00 00 E9 [15:33:24]Write i2c OK [15:33:24]MH_I2C_Read... [15:33:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:33:24]Read from MH i2c: E2 [15:33:24]MH_I2C_Read... [15:33:24]Read from MH i2c: E2 0E 00 [15:33:24]MH_I2C_Read... [15:33:24]Read from MH i2c: E2 0E 00 39 33 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 AB [15:33:24]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [15:33:24]wFMCommunicate OK [15:33:24]SAM_PROTO_GetShiftState done [15:33:24]FM_GetShiftState done [15:33:24]opened in 1709425579 [15:33:24]opened+sec_in_day 1709511979 [15:33:24]quantity*price = 100030 [15:33:24]sum+1 = 100031 [15:33:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 137 03.03.2024 15:33 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123280 ФПД: 86355177457899 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T153328&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123280&fm=86355177457899&tin=02508201610067®Number=0000000000090573&sum=100000 [15:33:25]StoreToDocumentArchive [15:33:25]shift 323 fd 123280 [15:33:25]save to /storage/0323/doc_00123280 [15:33:25]save last doc name /storage/0323/doc_00123280 to /storage/kkm_last_doc_name [15:33:25]save OK [15:33:25]Clear old archive folders... [15:33:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:33:25]tlvbuf is 00DC07A0 [15:33:25]SAM_PROTO_ClearQueue [15:33:25]wFMCommunicate request_size=4 [15:33:25]MH_SAM_APDU [15:33:25]CAPDU: 80 09 00 00 [15:33:25]Write to MH i2c: E2 08 00 46 33 80 09 00 00 00 00 00 00 EB [15:33:25]Write i2c OK [15:33:25]MH_I2C_Read... [15:33:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:33:25]Read from MH i2c: E2 [15:33:25]MH_I2C_Read... [15:33:25]Read from MH i2c: E2 03 00 [15:33:25]MH_I2C_Read... [15:33:25]Read from MH i2c: E2 03 00 46 33 00 90 00 ED [15:33:25]RAPDU: 90 00 [15:33:25]wFMCommunicate OK [15:33:25]SAM_PROTO_ClearQueue done [15:33:25]KKMCreateOFDPacket [15:33:25]OFDProtocolAddRootSTLVToBuf [15:33:25]FM_MakeSignedData [15:33:25]FM_MakeSignedData [15:33:25]SAM_PROTO_SignData [15:33:25]wFMCommunicate request_size=4 [15:33:25]MH_SAM_APDU [15:33:25]CAPDU: 80 0D 01 02 [15:33:25]Write to MH i2c: E2 08 00 47 33 80 0D 01 02 00 00 00 00 F3 [15:33:25]Write i2c OK [15:33:25]MH_I2C_Read... [15:33:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:33:26]Read from MH i2c: E2 [15:33:26]MH_I2C_Read... [15:33:26]Read from MH i2c: E2 03 00 [15:33:26]MH_I2C_Read... [15:33:26]Read from MH i2c: E2 03 00 47 33 00 90 00 EE [15:33:26]RAPDU: 90 00 [15:33:26]wFMCommunicate OK [15:33:26]wFMCommunicate request_size=255 [15:33:26]MH_SAM_APDU [15:33:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 89 00 00 00 F4 03 04 00 48 98 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 90 E1 01 00 35 04 06 00 4E [15:33:26]Write to MH i2c: E2 02 01 48 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 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 89 00 00 00 F4 03 04 00 48 98 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 90 E1 01 00 35 04 06 00 4E 00 00 15 [15:33:26]Write i2c OK [15:33:26]MH_I2C_Read... [15:33:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:33:26]Read from MH i2c: E2 [15:33:26]MH_I2C_Read... [15:33:26]Read from MH i2c: E2 03 00 [15:33:26]MH_I2C_Read... [15:33:26]Read from MH i2c: E2 03 00 48 33 00 90 00 EF [15:33:26]RAPDU: 90 00 [15:33:26]wFMCommunicate OK [15:33:26]wFMCommunicate request_size=10 [15:33:26]MH_SAM_APDU [15:33:26]CAPDU: 80 0D 02 02 05 8A 21 AD 48 EB [15:33:26]Write to MH i2c: E2 0D 00 49 33 80 0D 02 02 05 00 8A 21 AD 48 EB 00 00 8B [15:33:26]Write i2c OK [15:33:26]MH_I2C_Read... [15:33:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:33:26]Read from MH i2c: E2 [15:33:26]MH_I2C_Read... [15:33:26]Read from MH i2c: E2 03 00 [15:33:26]MH_I2C_Read... [15:33:26]Read from MH i2c: E2 03 00 49 33 00 90 00 F0 [15:33:26]RAPDU: 90 00 [15:33:26]wFMCommunicate OK [15:33:26]wFMCommunicate request_size=4 [15:33:26]MH_SAM_APDU [15:33:26]CAPDU: 80 0D 03 02 [15:33:26]Write to MH i2c: E2 08 00 4A 33 80 0D 03 02 00 00 00 00 F8 [15:33:26]Write i2c OK [15:33:26]MH_I2C_Read... [15:33:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:33:26]Read from MH i2c: E2 [15:33:26]MH_I2C_Read... [15:33:26]Read from MH i2c: E2 0B 00 [15:33:26]MH_I2C_Read... [15:33:26]Read from MH i2c: E2 0B 00 4A 33 00 7A 7A AC A5 23 B4 6C C9 90 00 4A [15:33:26]RAPDU: 7A 7A AC A5 23 B4 6C C9 90 00 [15:33:26]wFMCommunicate OK [15:33:26]SAM_PROTO_SignData done [15:33:26]FM_MakeSignedData done [15:33:26]CreateOFDProtocolMessage [15:33:26]wFMCommunicate request_size=4 [15:33:26]MH_SAM_APDU [15:33:26]CAPDU: 80 11 00 00 [15:33:26]Write to MH i2c: E2 08 00 4B 33 80 11 00 00 00 00 00 00 F8 [15:33:26]Write i2c OK [15:33:26]MH_I2C_Read... [15:33:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:33:26]Read from MH i2c: E2 [15:33:26]MH_I2C_Read... [15:33:26]Read from MH i2c: E2 17 00 [15:33:26]MH_I2C_Read... [15:33:26]Read from MH i2c: E2 17 00 4B 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 56 [15:33:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [15:33:26]wFMCommunicate OK [15:33:26]CreateOFDProtocolMessage done [15:33:26]OFDSenderStorePacket 123280 [15:33:26]StoreOFDPacket docnum=123280 [15:33:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 10 88 07 01 35 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 89 00 00 00 F4 03 04 00 48 98 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 90 E1 01 00 35 04 06 00 4E 8A 21 AD 48 EB 7A 7A AC A5 23 B4 6C C9 [15:33:26]CheckFolder [15:33:26]dirname=/storage/ofd_packets [15:33:26]CheckFolder done [15:33:26]ProducePacketName [15:33:26]name=ofd_packets/00123280 [15:33:26]NVStorageSaveData ofd_packets/00123280 [15:33:26]File name is /storage/ofd_packets/00123280 [15:33:26]Write 301 bytes [15:33:26]NVStorageSaveData done [15:33:26]OFDSenderStorePacket done [15:33:26]KKMCreateOFDPacket done [15:33:26]NVStorageSaveData kkm_last_timestamp [15:33:26]File name is /storage/kkm_last_timestamp [15:33:26]Write 4 bytes [15:33:26]NVStorageSaveData done [15:33:26]ExternCall_PrintAddStr [15:33:26]wPrintStart [15:33:26]Write to MH i2c: 01 00 00 4C 33 7F [15:33:26]Write i2c OK [15:33:26]MH_I2C_Read... [15:33:26]Read from MH i2c: 01 [15:33:26]MH_I2C_Read... [15:33:26]Read from MH i2c: 01 07 00 [15:33:26]MH_I2C_Read... [15:33:26]Read from MH i2c: 01 07 00 4C 33 00 00 00 00 00 FF 0F 94 [15:33:26]RasterBufferAndPrint [15:33:26]line Счет N : (1)1106216 [15:33:26]line ИНН: 02508201610067 [15:33:26]line Контрольно-Кассовый Чек [15:33:26]line ПРОДАЖА [15:33:26]line ТРК (МРК, ГНК) : 52 [15:33:26]line Товар: 2710124130 [15:33:26]line Аи-92-К-5 [15:33:26]line 16.160 * 61.90 [15:33:26]line = 1000.30 [15:33:26]line НДС 12% НСП 1% [15:33:26]line > о реализуемом товаре [15:33:26]line ОКРУГЛЕНИЕ: -0.30 [15:33:26]line ИТОГО: 1000.00 [15:33:26]line Внесено: 1000.00 [15:33:26]line СДАЧА: 0.00 [15:33:26]line НСП 1% : 8.85 [15:33:26]line НДС 12% : 106.23 [15:33:26]line Наличными: 1000.00 [15:33:26]line Безнал.: 0.00 [15:33:26]line Место: АЗС № 25 "Партнер Нефть" [15:33:26]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [15:33:26]line СНО: Общий режим [15:33:26]line Чек 137 03.03.2024 15:33 [15:33:26]line Смена: 323 ФФД: 1.0 [15:33:26]line ЗНМ: 0300000019 [15:33:26]line РНМ: 0000000000090573 [15:33:26]line Версия ККМ: 001 [15:33:26]line ФМ: 0000000000874798 [15:33:26]line ФД: 123280 [15:33:26]line ФПД: 86355177457899 [15:33:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T153328&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123280&fm=86355177457899&tin=02508201610067®Number=0000000000090573&sum=100000 [15:33:26]OFD Sender: Processing packet 123280 [packets to send 112, broken 111] [15:33:26]ProducePacketName [15:33:26]name=ofd_packets/00123280 [15:33:26]OFD Sender: To server: pG, [15:33:26]CommunicateWithHost lk.salyk.kg:30040 [15:33:26]ConnectInit lk.salyk.kg [15:33:26]written 0, free lines is 4095 [15:33:26]Connected sock=10 [15:33:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 10 88 07 01 35 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 89 00 00 00 F4 03 04 00 48 98 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 90 E1 01 00 35 04 06 00 4E 8A 21 AD 48 EB 7A 7A AC A5 23 B4 6C C9 [15:33:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 3D AA 47 00 E9 EA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 90 E1 01 00 F4 03 04 00 74 44 E4 65 B6 04 01 00 00 90 2A 1A 76 08 17 EE 77 [15:33:27]CommunicateWithHost err = 0 [15:33:27]CheckOFDResponse [15:33:27]1017 (14) - 77093643461234 [15:33:27]1041 (16) - 0000000000874798 [15:33:27]1040 (4) - 123280 [15:33:27]1012 (4) - 03.03.2024 09:35 [15:33:27]1206 (1) - 0 [15:33:27]OFD Sender: Remove packet 123280 [15:33:27]ProducePacketName [15:33:27]name=ofd_packets/00123280 [15:33:27]NVStorageDeleteData [15:33:27]Write to MH i2c: 01 00 00 77 33 AA [15:33:27]Write i2c OK [15:33:27]MH_I2C_Read... [15:33:27]Read from MH i2c: 01 [15:33:27]MH_I2C_Read... [15:33:27]Read from MH i2c: 01 07 00 [15:33:27]MH_I2C_Read... [15:33:27]Read from MH i2c: 01 07 00 77 33 00 00 00 00 00 E7 0C A4 [15:33:27]RasterBufferAndPrint [15:33:27]line [15:33:27]line [15:33:27]line [15:33:27]line [15:33:27]line [15:33:27]written 0, free lines is 3312 [15:33:27]MH_Cut [15:33:27]Write to MH i2c: D1 01 00 7E 33 01 83 [15:33:27]Write i2c OK [15:33:27]MH_I2C_Read... [15:33:27]Read from MH i2c: D1 [15:33:27]MH_I2C_Read... [15:33:27]Read from MH i2c: D1 01 00 [15:33:27]MH_I2C_Read... [15:33:27]Read from MH i2c: D1 01 00 7E 33 00 82 [15:33:27]Write to MH i2c: 01 00 00 7F 33 B2 [15:33:27]Write i2c OK [15:33:27]MH_I2C_Read... [15:33:27]OFD Sender: No OFD packet to send [15:33:27]*** Cut start [15:33:27]*** Purtial cut [15:33:27]*** Stage 1: CUTSNS_PIN = 1 [15:33:29]Read from MH i2c: 01 [15:33:29]MH_I2C_Read... [15:33:29]*** Stop cut motor [15:33:29]*** Cut end [15:33:29]Read from MH i2c: 01 07 00 [15:33:29]MH_I2C_Read... [15:33:29]Read from MH i2c: 01 07 00 7F 33 00 00 00 00 00 FF 0F C7 [15:33:29]process_action close_receipt done [15:33:29]requested_data is exist [15:33:29]produce_requested_data [15:33:29]requested_item fm.sn is exist - process it [15:33:29]wFMCommunicate request_size=4 [15:33:29]MH_SAM_APDU [15:33:29]CAPDU: 80 11 00 00 [15:33:29]Write to MH i2c: E2 08 00 80 33 80 11 00 00 00 00 00 00 2D [15:33:29]Write i2c OK [15:33:29]MH_I2C_Read... [15:33:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:33:30]Read from MH i2c: E2 [15:33:30]MH_I2C_Read... [15:33:30]Read from MH i2c: E2 17 00 [15:33:30]MH_I2C_Read... [15:33:30]Read from MH i2c: E2 17 00 80 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 8B [15:33:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [15:33:30]wFMCommunicate OK [15:33:30]requested_item fd.num is exist - process it [15:33:30]SAM_PROTO_GetFieldsCounters [15:33:30]wFMCommunicate request_size=4 [15:33:30]MH_SAM_APDU [15:33:30]CAPDU: 80 13 00 00 [15:33:30]Write to MH i2c: E2 08 00 81 33 80 13 00 00 00 00 00 00 30 [15:33:30]Write i2c OK [15:33:30]MH_I2C_Read... [15:33:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:33:30]Read from MH i2c: E2 [15:33:30]MH_I2C_Read... [15:33:30]Read from MH i2c: E2 62 00 [15:33:30]MH_I2C_Read... [15:33:30]Read from MH i2c: E2 62 00 81 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 90 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 AC [15:33: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 90 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:33:30]wFMCommunicate OK [15:33:30]SAM_PROTO_GetFieldsCounters done [15:33:30]requested_item shift.num is exist - process it [15:33:30]requested_item shift.opened is exist - process it [15:33:30]req_shift_opened [15:33:30]FM_GetShiftState [15:33:30]SAM_PROTO_GetShiftState [15:33:30]wFMCommunicate request_size=4 [15:33:30]MH_SAM_APDU [15:33:30]CAPDU: 80 13 01 00 [15:33:30]Write to MH i2c: E2 08 00 82 33 80 13 01 00 00 00 00 00 32 [15:33:30]Write i2c OK [15:33:30]MH_I2C_Read... [15:33:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:33:30]Read from MH i2c: E2 [15:33:30]MH_I2C_Read... [15:33:30]Read from MH i2c: E2 0E 00 [15:33:30]MH_I2C_Read... [15:33:30]Read from MH i2c: E2 0E 00 82 33 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 F4 [15:33:30]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [15:33:30]wFMCommunicate OK [15:33:30]SAM_PROTO_GetShiftState done [15:33:30]FM_GetShiftState done [15:33:30]req_shift_opened done [15:33:30]requested_item shift.open_date is exist - process it [15:33:30]req_shift_open_date [15:33:30]req_shift_open_date done [15:33:30]produce_requested_data done [15:33:30]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123280,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [15:33:30]process_action_free close_receipt [15:33:30]json_value_free [15:33:30]json_value_free done [15:33:30]process_json_proto returns [15:33:30]Send response to host [15:33:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123280,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [15:33:30]free response buf [15:33:30]execute_script done [15:33:30]execute_script returns [15:33:30]free content buf [15:33:30]Sock 7.Close socket [15:33:30]Sock 7.Thread stoped [15:33:32]OFD Sender: No OFD packet to send [15:33:37]OFD Sender: No OFD packet to send [15:33:42]OFD Sender: No OFD packet to send [15:33:47]OFD Sender: No OFD packet to send [15:33:52]OFD Sender: No OFD packet to send [15:33:57]OFD Sender: No OFD packet to send [15:34:02]OFD Sender: No OFD packet to send [15:34:07]OFD Sender: No OFD packet to send [15:34:12]OFD Sender: No OFD packet to send [15:34:17]OFD Sender: No OFD packet to send [15:34:22]OFD Sender: No OFD packet to send [15:34:27]OFD Sender: No OFD packet to send [15:34:32]OFD Sender: No OFD packet to send [15:34:37]OFD Sender: No OFD packet to send [15:34:42]OFD Sender: No OFD packet to send [15:34:47]OFD Sender: No OFD packet to send [15:34:52]OFD Sender: No OFD packet to send [15:34:57]OFD Sender: No OFD packet to send [15:35:02]OFD Sender: No OFD packet to send [15:35:07]OFD Sender: No OFD packet to send [15:35:12]OFD Sender: No OFD packet to send [15:35:17]OFD Sender: No OFD packet to send [15:35:22]OFD Sender: No OFD packet to send [15:35:27]OFD Sender: No OFD packet to send [15:35:32]OFD Sender: No OFD packet to send [15:35:37]OFD Sender: No OFD packet to send [15:35:42]OFD Sender: No OFD packet to send [15:35:47]OFD Sender: No OFD packet to send [15:35:52]accept exits with 9 [15:35:52]New connection [15:35:52]New thread 3067395428 created [15:35:52]Thread 3067252068 joined [15:35:52]Waiting for new connection... [15:35:52] Sock 9.Parse request [15:35:52]Sock 9.Check first char [15:35:52]Sock 9.First char is OK [15:35:52]request: POST /json_proto HTTP/1.0 [15:35:52]Method: POST [15:35:52]URL: /json_proto [15:35:52]Method is POST - this is cgi request [15:35:52]url: /json_proto [15:35:52]query_string will be loaded in cgi processing [15:35:52]execute_cgi json_proto POST (null) [15:35:52]execute_cgi path=json_proto method=POST [15:35:52]POST find Content-Length [15:35:52]Host: 172.17.48.197:8080 [15:35:52]Content-Length: 683 [15:35:52]Content-Type: application/json [15:35:52] [15:35:52]POST finish read [15:35:52]Found Content-Length = 683 [15:35:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106217", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "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:35:52]execute_script... [15:35: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)1106217", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "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:35:52]POST & json_proto [15:35:52]process_json_proto [15:35:52]json parsed OK: [15:35:52]protocol is kg_v1.0 [15:35:52]action value=close_receipt [15:35:52]process_action close_receipt [15:35:52]cmd_close_receipt [15:35:52]MH_GetDate [15:35:52]Write to MH i2c: F0 00 00 83 33 A5 [15:35:52]Write i2c OK [15:35:52]MH_I2C_Read... [15:35:52]Read from MH i2c: F0 [15:35:52]MH_I2C_Read... [15:35:52]Read from MH i2c: F0 09 00 [15:35:52]MH_I2C_Read... [15:35:52]Read from MH i2c: F0 09 00 83 33 00 DC 98 E4 65 6C AF E3 65 CE [15:35:52]GetLastDocTimeStamp 1709480008 [15:35:52]current date 1709480156 [15:35:52]FM_GetShiftState [15:35:52]SAM_PROTO_GetShiftState [15:35:52]wFMCommunicate request_size=4 [15:35:52]MH_SAM_APDU [15:35:52]CAPDU: 80 13 01 00 [15:35:52]Write to MH i2c: E2 08 00 84 33 80 13 01 00 00 00 00 00 34 [15:35:52]Write i2c OK [15:35:52]MH_I2C_Read... [15:35:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:35:52]Read from MH i2c: E2 [15:35:52]MH_I2C_Read... [15:35:52]Read from MH i2c: E2 0E 00 [15:35:52]MH_I2C_Read... [15:35:52]Read from MH i2c: E2 0E 00 84 33 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 F6 [15:35:52]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [15:35:52]wFMCommunicate OK [15:35:52]SAM_PROTO_GetShiftState done [15:35:52]FM_GetShiftState done [15:35:52]opened in 1709425579 [15:35:52]opened+sec_in_day 1709511979 [15:35:52]quantity*price = 100030 [15:35:52]sum+1 = 100031 [15:35:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 138 03.03.2024 15:35 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123281 ФПД: 168265131458926 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T153556&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123281&fm=168265131458926&tin=02508201610067®Number=0000000000090573&sum=100000 [15:35:53]StoreToDocumentArchive [15:35:53]shift 323 fd 123281 [15:35:53]save to /storage/0323/doc_00123281 [15:35:53]save last doc name /storage/0323/doc_00123281 to /storage/kkm_last_doc_name [15:35:53]save OK [15:35:53]Clear old archive folders... [15:35:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:35:53]tlvbuf is 00E0DAE0 [15:35:53]SAM_PROTO_ClearQueue [15:35:53]wFMCommunicate request_size=4 [15:35:53]MH_SAM_APDU [15:35:53]CAPDU: 80 09 00 00 [15:35:53]Write to MH i2c: E2 08 00 91 33 80 09 00 00 00 00 00 00 36 [15:35:53]Write i2c OK [15:35:53]MH_I2C_Read... [15:35:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:35:53]Read from MH i2c: E2 [15:35:53]MH_I2C_Read... [15:35:53]Read from MH i2c: E2 03 00 [15:35:53]MH_I2C_Read... [15:35:53]Read from MH i2c: E2 03 00 91 33 00 90 00 38 [15:35:53]RAPDU: 90 00 [15:35:53]wFMCommunicate OK [15:35:53]SAM_PROTO_ClearQueue done [15:35:53]KKMCreateOFDPacket [15:35:53]OFDProtocolAddRootSTLVToBuf [15:35:53]FM_MakeSignedData [15:35:53]FM_MakeSignedData [15:35:53]SAM_PROTO_SignData [15:35:53]wFMCommunicate request_size=4 [15:35:53]MH_SAM_APDU [15:35:53]CAPDU: 80 0D 01 02 [15:35:53]Write to MH i2c: E2 08 00 92 33 80 0D 01 02 00 00 00 00 3E [15:35:53]Write i2c OK [15:35:53]MH_I2C_Read... [15:35:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:35:53]Read from MH i2c: E2 [15:35:53]MH_I2C_Read... [15:35:53]Read from MH i2c: E2 03 00 [15:35:53]MH_I2C_Read... [15:35:53]Read from MH i2c: E2 03 00 92 33 00 90 00 39 [15:35:53]RAPDU: 90 00 [15:35:53]wFMCommunicate OK [15:35:53]wFMCommunicate request_size=255 [15:35:53]MH_SAM_APDU [15:35:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 8A 00 00 00 F4 03 04 00 DC 98 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 91 E1 01 00 35 04 06 00 99 [15:35:53]Write to MH i2c: E2 02 01 93 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 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 8A 00 00 00 F4 03 04 00 DC 98 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 91 E1 01 00 35 04 06 00 99 00 00 41 [15:35:53]Write i2c OK [15:35:53]MH_I2C_Read... [15:35:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:35:53]Read from MH i2c: E2 [15:35:53]MH_I2C_Read... [15:35:53]Read from MH i2c: E2 03 00 [15:35:53]MH_I2C_Read... [15:35:53]Read from MH i2c: E2 03 00 93 33 00 90 00 3A [15:35:53]RAPDU: 90 00 [15:35:53]wFMCommunicate OK [15:35:53]wFMCommunicate request_size=10 [15:35:53]MH_SAM_APDU [15:35:53]CAPDU: 80 0D 02 02 05 09 47 63 81 6E [15:35:53]Write to MH i2c: E2 0D 00 94 33 80 0D 02 02 05 00 09 47 63 81 6E 00 00 ED [15:35:53]Write i2c OK [15:35:53]MH_I2C_Read... [15:35:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:35:53]Read from MH i2c: E2 [15:35:53]MH_I2C_Read... [15:35:53]Read from MH i2c: E2 03 00 [15:35:53]MH_I2C_Read... [15:35:53]Read from MH i2c: E2 03 00 94 33 00 90 00 3B [15:35:53]RAPDU: 90 00 [15:35:53]wFMCommunicate OK [15:35:53]wFMCommunicate request_size=4 [15:35:53]MH_SAM_APDU [15:35:53]CAPDU: 80 0D 03 02 [15:35:53]Write to MH i2c: E2 08 00 95 33 80 0D 03 02 00 00 00 00 43 [15:35:53]Write i2c OK [15:35:53]MH_I2C_Read... [15:35:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:35:54]Read from MH i2c: E2 [15:35:54]MH_I2C_Read... [15:35:54]Read from MH i2c: E2 0B 00 [15:35:54]MH_I2C_Read... [15:35:54]Read from MH i2c: E2 0B 00 95 33 00 56 47 CC C3 21 D6 66 85 90 00 52 [15:35:54]RAPDU: 56 47 CC C3 21 D6 66 85 90 00 [15:35:54]wFMCommunicate OK [15:35:54]SAM_PROTO_SignData done [15:35:54]FM_MakeSignedData done [15:35:54]CreateOFDProtocolMessage [15:35:54]wFMCommunicate request_size=4 [15:35:54]MH_SAM_APDU [15:35:54]CAPDU: 80 11 00 00 [15:35:54]Write to MH i2c: E2 08 00 96 33 80 11 00 00 00 00 00 00 43 [15:35:54]Write i2c OK [15:35:54]MH_I2C_Read... [15:35:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:35:54]Read from MH i2c: E2 [15:35:54]MH_I2C_Read... [15:35:54]Read from MH i2c: E2 17 00 [15:35:54]MH_I2C_Read... [15:35:54]Read from MH i2c: E2 17 00 96 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 A1 [15:35:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [15:35:54]wFMCommunicate OK [15:35:54]CreateOFDProtocolMessage done [15:35:54]OFDSenderStorePacket 123281 [15:35:54]StoreOFDPacket docnum=123281 [15:35:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 BD 8A 07 01 13 EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 8A 00 00 00 F4 03 04 00 DC 98 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 91 E1 01 00 35 04 06 00 99 09 47 63 81 6E 56 47 CC C3 21 D6 66 85 [15:35:54]CheckFolder [15:35:54]dirname=/storage/ofd_packets [15:35:54]CheckFolder done [15:35:54]ProducePacketName [15:35:54]name=ofd_packets/00123281 [15:35:54]NVStorageSaveData ofd_packets/00123281 [15:35:54]File name is /storage/ofd_packets/00123281 [15:35:54]Write 301 bytes [15:35:54]NVStorageSaveData done [15:35:54]OFDSenderStorePacket done [15:35:54]KKMCreateOFDPacket done [15:35:54]NVStorageSaveData kkm_last_timestamp [15:35:54]File name is /storage/kkm_last_timestamp [15:35:54]Write 4 bytes [15:35:54]NVStorageSaveData done [15:35:54]ExternCall_PrintAddStr [15:35:54]wPrintStart [15:35:54]Write to MH i2c: 01 00 00 97 33 CA [15:35:54]Write i2c OK [15:35:54]MH_I2C_Read... [15:35:54]Read from MH i2c: 01 [15:35:54]MH_I2C_Read... [15:35:54]Read from MH i2c: 01 07 00 [15:35:54]MH_I2C_Read... [15:35:54]Read from MH i2c: 01 07 00 97 33 00 00 00 00 00 FF 0F DF [15:35:54]RasterBufferAndPrint [15:35:54]line Счет N : (1)1106217 [15:35:54]line ИНН: 02508201610067 [15:35:54]line Контрольно-Кассовый Чек [15:35:54]line ПРОДАЖА [15:35:54]line ТРК (МРК, ГНК) : 52 [15:35:54]line Товар: 2710124130 [15:35:54]line Аи-92-К-5 [15:35:54]line 16.160 * 61.90 [15:35:54]line = 1000.30 [15:35:54]line НДС 12% НСП 1% [15:35:54]line > о реализуемом товаре [15:35:54]line ОКРУГЛЕНИЕ: -0.30 [15:35:54]line ИТОГО: 1000.00 [15:35:54]line Внесено: 1000.00 [15:35:54]line СДАЧА: 0.00 [15:35:54]line НСП 1% : 8.85 [15:35:54]line НДС 12% : 106.23 [15:35:54]line Наличными: 1000.00 [15:35:54]line Безнал.: 0.00 [15:35:54]line Место: АЗС № 25 "Партнер Нефть" [15:35:54]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [15:35:54]line СНО: Общий режим [15:35:54]line Чек 138 03.03.2024 15:35 [15:35:54]line Смена: 323 ФФД: 1.0 [15:35:54]line ЗНМ: 0300000019 [15:35:54]line РНМ: 0000000000090573 [15:35:54]line Версия ККМ: 001 [15:35:54]line ФМ: 0000000000874798 [15:35:54]line ФД: 123281 [15:35:54]line ФПД: 168265131458926 [15:35:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T153556&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123281&fm=168265131458926&tin=02508201610067®Number=0000000000090573&sum=100000 [15:35:54]OFD Sender: Processing packet 123281 [packets to send 112, broken 111] [15:35:54]ProducePacketName [15:35:54]name=ofd_packets/00123281 [15:35:54]OFD Sender: To server: pG, [15:35:54]CommunicateWithHost lk.salyk.kg:30040 [15:35:54]ConnectInit lk.salyk.kg [15:35:54]written 0, free lines is 4095 [15:35:54]Connected sock=11 [15:35:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 BD 8A 07 01 13 EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 8A 00 00 00 F4 03 04 00 DC 98 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 91 E1 01 00 35 04 06 00 99 09 47 63 81 6E 56 47 CC C3 21 D6 66 85 [15:35:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 3B 7D 47 00 EB 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 37 39 38 10 04 04 00 91 E1 01 00 F4 03 04 00 07 45 E4 65 B6 04 01 00 00 1D D5 C4 34 44 77 A9 9C [15:35:54]CommunicateWithHost err = 0 [15:35:54]CheckOFDResponse [15:35:54]1017 (14) - 77093643461234 [15:35:54]1041 (16) - 0000000000874798 [15:35:54]1040 (4) - 123281 [15:35:54]1012 (4) - 03.03.2024 09:38 [15:35:54]1206 (1) - 0 [15:35:54]OFD Sender: Remove packet 123281 [15:35:54]ProducePacketName [15:35:54]name=ofd_packets/00123281 [15:35:54]NVStorageDeleteData [15:35:54]Write to MH i2c: 01 00 00 C2 33 F5 [15:35:54]Write i2c OK [15:35:54]MH_I2C_Read... [15:35:54]Read from MH i2c: 01 [15:35:54]MH_I2C_Read... [15:35:54]Read from MH i2c: 01 07 00 [15:35:54]MH_I2C_Read... [15:35:54]Read from MH i2c: 01 07 00 C2 33 00 00 00 00 00 F0 0C F8 [15:35:54]RasterBufferAndPrint [15:35:54]line [15:35:54]line [15:35:54]line [15:35:54]line [15:35:54]line [15:35:54]written 0, free lines is 3318 [15:35:54]MH_Cut [15:35:54]Write to MH i2c: D1 01 00 C9 33 01 CE [15:35:54]Write i2c OK [15:35:54]MH_I2C_Read... [15:35:54]Read from MH i2c: D1 [15:35:54]MH_I2C_Read... [15:35:54]Read from MH i2c: D1 01 00 [15:35:54]MH_I2C_Read... [15:35:54]Read from MH i2c: D1 01 00 C9 33 00 CD [15:35:54]Write to MH i2c: 01 00 00 CA 33 FD [15:35:54]Write i2c OK [15:35:54]MH_I2C_Read... [15:35:55]OFD Sender: No OFD packet to send [15:35:55]*** Cut start [15:35:55]*** Purtial cut [15:35:55]*** Stage 1: CUTSNS_PIN = 1 [15:35:57]Read from MH i2c: 01 [15:35:57]MH_I2C_Read... [15:35:57]*** Stop cut motor [15:35:57]*** Cut end [15:35:57]Read from MH i2c: 01 07 00 [15:35:57]MH_I2C_Read... [15:35:57]Read from MH i2c: 01 07 00 CA 33 00 00 00 00 00 FF 0F 12 [15:35:57]process_action close_receipt done [15:35:57]requested_data is exist [15:35:57]produce_requested_data [15:35:57]requested_item fm.sn is exist - process it [15:35:57]wFMCommunicate request_size=4 [15:35:57]MH_SAM_APDU [15:35:57]CAPDU: 80 11 00 00 [15:35:57]Write to MH i2c: E2 08 00 CB 33 80 11 00 00 00 00 00 00 78 [15:35:57]Write i2c OK [15:35:57]MH_I2C_Read... [15:35:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:35:57]Read from MH i2c: E2 [15:35:57]MH_I2C_Read... [15:35:57]Read from MH i2c: E2 17 00 [15:35:57]MH_I2C_Read... [15:35:57]Read from MH i2c: E2 17 00 CB 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 D6 [15:35:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [15:35:57]wFMCommunicate OK [15:35:57]requested_item fd.num is exist - process it [15:35:57]SAM_PROTO_GetFieldsCounters [15:35:57]wFMCommunicate request_size=4 [15:35:57]MH_SAM_APDU [15:35:57]CAPDU: 80 13 00 00 [15:35:57]Write to MH i2c: E2 08 00 CC 33 80 13 00 00 00 00 00 00 7B [15:35:57]Write i2c OK [15:35:57]MH_I2C_Read... [15:35:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:35:57]Read from MH i2c: E2 [15:35:57]MH_I2C_Read... [15:35:57]Read from MH i2c: E2 62 00 [15:35:57]MH_I2C_Read... [15:35:57]Read from MH i2c: E2 62 00 CC 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 91 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 FB [15:35: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 91 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:35:57]wFMCommunicate OK [15:35:57]SAM_PROTO_GetFieldsCounters done [15:35:57]requested_item shift.num is exist - process it [15:35:57]requested_item shift.opened is exist - process it [15:35:57]req_shift_opened [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 CD 33 80 13 01 00 00 00 00 00 7D [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 CD 33 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 3F [15:35:57]RAPDU: 09 00 01 AB C3 E3 65 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]req_shift_opened done [15:35:57]requested_item shift.open_date is exist - process it [15:35:57]req_shift_open_date [15:35:57]req_shift_open_date done [15:35:57]produce_requested_data done [15:35:57]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123281,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [15:35:57]process_action_free close_receipt [15:35:57]json_value_free [15:35:57]json_value_free done [15:35:57]process_json_proto returns [15:35:57]Send response to host [15:35:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123281,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [15:35:57]free response buf [15:35:57]execute_script done [15:35:57]execute_script returns [15:35:57]free content buf [15:35:57]Sock 9.Close socket [15:35:57]Sock 9.Thread stoped [15:36:00]OFD Sender: No OFD packet to send [15:36:05]OFD Sender: No OFD packet to send [15:36:10]OFD Sender: No OFD packet to send [15:36:15]OFD Sender: No OFD packet to send [15:36:20]OFD Sender: No OFD packet to send [15:36:25]OFD Sender: No OFD packet to send [15:36:30]OFD Sender: No OFD packet to send [15:36:35]OFD Sender: No OFD packet to send [15:36:40]OFD Sender: No OFD packet to send [15:36:45]OFD Sender: No OFD packet to send [15:36:50]OFD Sender: No OFD packet to send [15:36:55]OFD Sender: No OFD packet to send [15:36:59]accept exits with 7 [15:36:59]New connection [15:36:59]New thread 3067252068 created [15:36:59]Thread 3067395428 joined [15:36:59]Waiting for new connection... [15:36:59] Sock 7.Parse request [15:36:59]Sock 7.Check first char [15:36:59]Sock 7.First char is OK [15:36:59]request: POST /json_proto HTTP/1.0 [15:36:59]Method: POST [15:36:59]URL: /json_proto [15:36:59]Method is POST - this is cgi request [15:36:59]url: /json_proto [15:36:59]query_string will be loaded in cgi processing [15:36:59]execute_cgi json_proto POST (null) [15:36:59]execute_cgi path=json_proto method=POST [15:36:59]POST find Content-Length [15:36:59]Host: 172.17.48.197:8080 [15:36:59]Content-Length: 679 [15:36:59]Content-Type: application/json [15:36:59] [15:36:59]POST finish read [15:36:59]Found Content-Length = 679 [15:36:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106218", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 12.930, "sum" : 800.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:36:59]execute_script... [15:36: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)1106218", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 12.930, "sum" : 800.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:36:59]POST & json_proto [15:36:59]process_json_proto [15:36:59]json parsed OK: [15:36:59]protocol is kg_v1.0 [15:36:59]action value=close_receipt [15:36:59]process_action close_receipt [15:36:59]cmd_close_receipt [15:36:59]MH_GetDate [15:36:59]Write to MH i2c: F0 00 00 CE 33 F0 [15:36:59]Write i2c OK [15:36:59]MH_I2C_Read... [15:36:59]Read from MH i2c: F0 [15:36:59]MH_I2C_Read... [15:36:59]Read from MH i2c: F0 09 00 [15:36:59]MH_I2C_Read... [15:36:59]Read from MH i2c: F0 09 00 CE 33 00 1F 99 E4 65 6C AF E3 65 5D [15:36:59]GetLastDocTimeStamp 1709480156 [15:36:59]current date 1709480223 [15:36:59]FM_GetShiftState [15:36:59]SAM_PROTO_GetShiftState [15:36:59]wFMCommunicate request_size=4 [15:36:59]MH_SAM_APDU [15:36:59]CAPDU: 80 13 01 00 [15:36:59]Write to MH i2c: E2 08 00 CF 33 80 13 01 00 00 00 00 00 7F [15:36:59]Write i2c OK [15:36:59]MH_I2C_Read... [15:36:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:59]Read from MH i2c: E2 [15:36:59]MH_I2C_Read... [15:36:59]Read from MH i2c: E2 0E 00 [15:36:59]MH_I2C_Read... [15:36:59]Read from MH i2c: E2 0E 00 CF 33 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 41 [15:36:59]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [15:36:59]wFMCommunicate OK [15:36:59]SAM_PROTO_GetShiftState done [15:36:59]FM_GetShiftState done [15:36:59]opened in 1709425579 [15:36:59]opened+sec_in_day 1709511979 [15:36:59]quantity*price = 80036 [15:36:59]sum+1 = 80038 [15:36:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.99 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 139 03.03.2024 15:37 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123282 ФПД: 91908490265906 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T153703&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123282&fm=91908490265906&tin=02508201610067®Number=0000000000090573&sum=80000 [15:37:00]StoreToDocumentArchive [15:37:00]shift 323 fd 123282 [15:37:00]save to /storage/0323/doc_00123282 [15:37:00]save last doc name /storage/0323/doc_00123282 to /storage/kkm_last_doc_name [15:37:00]save OK [15:37:00]Clear old archive folders... [15:37:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:37:00]tlvbuf is 00DECB70 [15:37:00]SAM_PROTO_ClearQueue [15:37:00]wFMCommunicate request_size=4 [15:37:00]MH_SAM_APDU [15:37:00]CAPDU: 80 09 00 00 [15:37:00]Write to MH i2c: E2 08 00 DC 33 80 09 00 00 00 00 00 00 81 [15:37:00]Write i2c OK [15:37:00]MH_I2C_Read... [15:37:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:37:00]Read from MH i2c: E2 [15:37:00]MH_I2C_Read... [15:37:00]Read from MH i2c: E2 03 00 [15:37:00]MH_I2C_Read... [15:37:00]Read from MH i2c: E2 03 00 DC 33 00 90 00 83 [15:37:00]RAPDU: 90 00 [15:37:00]wFMCommunicate OK [15:37:00]SAM_PROTO_ClearQueue done [15:37:00]KKMCreateOFDPacket [15:37:00]OFDProtocolAddRootSTLVToBuf [15:37:00]FM_MakeSignedData [15:37:00]FM_MakeSignedData [15:37:00]SAM_PROTO_SignData [15:37:00]wFMCommunicate request_size=4 [15:37:00]MH_SAM_APDU [15:37:00]CAPDU: 80 0D 01 02 [15:37:00]Write to MH i2c: E2 08 00 DD 33 80 0D 01 02 00 00 00 00 89 [15:37:00]Write i2c OK [15:37:00]MH_I2C_Read... [15:37:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:37:00]Read from MH i2c: E2 [15:37:00]MH_I2C_Read... [15:37:00]Read from MH i2c: E2 03 00 [15:37:00]MH_I2C_Read... [15:37:00]Read from MH i2c: E2 03 00 DD 33 00 90 00 84 [15:37:00]RAPDU: 90 00 [15:37:00]wFMCommunicate OK [15:37:00]wFMCommunicate request_size=255 [15:37:00]MH_SAM_APDU [15:37: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 35 FF 03 08 00 03 82 32 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 A5 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 1F 99 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 92 E1 01 00 35 04 06 00 53 [15:37:00]Write to MH i2c: E2 02 01 DE 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 35 FF 03 08 00 03 82 32 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 A5 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 1F 99 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 92 E1 01 00 35 04 06 00 53 00 00 98 [15:37:00]Write i2c OK [15:37:00]MH_I2C_Read... [15:37:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:37:00]Read from MH i2c: E2 [15:37:00]MH_I2C_Read... [15:37:00]Read from MH i2c: E2 03 00 [15:37:00]MH_I2C_Read... [15:37:00]Read from MH i2c: E2 03 00 DE 33 00 90 00 85 [15:37:00]RAPDU: 90 00 [15:37:00]wFMCommunicate OK [15:37:00]wFMCommunicate request_size=10 [15:37:00]MH_SAM_APDU [15:37:00]CAPDU: 80 0D 02 02 05 97 1C EA 05 32 [15:37:00]Write to MH i2c: E2 0D 00 DF 33 80 0D 02 02 05 00 97 1C EA 05 32 00 00 6A [15:37:00]Write i2c OK [15:37:00]MH_I2C_Read... [15:37:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:37:00]Read from MH i2c: E2 [15:37:00]MH_I2C_Read... [15:37:00]Read from MH i2c: E2 03 00 [15:37:00]MH_I2C_Read... [15:37:00]Read from MH i2c: E2 03 00 DF 33 00 90 00 86 [15:37:00]RAPDU: 90 00 [15:37:00]wFMCommunicate OK [15:37:00]wFMCommunicate request_size=4 [15:37:00]MH_SAM_APDU [15:37:00]CAPDU: 80 0D 03 02 [15:37:00]Write to MH i2c: E2 08 00 E0 33 80 0D 03 02 00 00 00 00 8E [15:37:00]Write i2c OK [15:37:00]MH_I2C_Read... [15:37:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:37:00]Read from MH i2c: E2 [15:37:00]MH_I2C_Read... [15:37:00]Read from MH i2c: E2 0B 00 [15:37:00]MH_I2C_Read... [15:37:00]Read from MH i2c: E2 0B 00 E0 33 00 45 BA C0 02 DF 10 70 62 90 00 11 [15:37:00]RAPDU: 45 BA C0 02 DF 10 70 62 90 00 [15:37:00]wFMCommunicate OK [15:37:01]SAM_PROTO_SignData done [15:37:01]FM_MakeSignedData done [15:37:01]CreateOFDProtocolMessage [15:37:01]wFMCommunicate request_size=4 [15:37:01]MH_SAM_APDU [15:37:01]CAPDU: 80 11 00 00 [15:37:01]Write to MH i2c: E2 08 00 E1 33 80 11 00 00 00 00 00 00 8E [15:37:01]Write i2c OK [15:37:01]MH_I2C_Read... [15:37:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:37:01]Read from MH i2c: E2 [15:37:01]MH_I2C_Read... [15:37:01]Read from MH i2c: E2 17 00 [15:37:01]MH_I2C_Read... [15:37:01]Read from MH i2c: E2 17 00 E1 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 EC [15:37:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [15:37:01]wFMCommunicate OK [15:37:01]CreateOFDProtocolMessage done [15:37:01]OFDSenderStorePacket 123282 [15:37:01]StoreOFDPacket docnum=123282 [15:37:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 7D 29 07 01 A2 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 35 FF 03 08 00 03 82 32 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 A5 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 1F 99 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 92 E1 01 00 35 04 06 00 53 97 1C EA 05 32 45 BA C0 02 DF 10 70 62 [15:37:01]CheckFolder [15:37:01]dirname=/storage/ofd_packets [15:37:01]CheckFolder done [15:37:01]ProducePacketName [15:37:01]name=ofd_packets/00123282 [15:37:01]NVStorageSaveData ofd_packets/00123282 [15:37:01]File name is /storage/ofd_packets/00123282 [15:37:01]Write 301 bytes [15:37:01]NVStorageSaveData done [15:37:01]OFDSenderStorePacket done [15:37:01]KKMCreateOFDPacket done [15:37:01]NVStorageSaveData kkm_last_timestamp [15:37:01]File name is /storage/kkm_last_timestamp [15:37:01]Write 4 bytes [15:37:01]NVStorageSaveData done [15:37:01]ExternCall_PrintAddStr [15:37:01]wPrintStart [15:37:01]Write to MH i2c: 01 00 00 E2 33 15 [15:37:01]Write i2c OK [15:37:01]MH_I2C_Read... [15:37:01]Read from MH i2c: 01 [15:37:01]MH_I2C_Read... [15:37:01]Read from MH i2c: 01 07 00 [15:37:01]MH_I2C_Read... [15:37:01]Read from MH i2c: 01 07 00 E2 33 00 00 00 00 00 FF 0F 2A [15:37:01]RasterBufferAndPrint [15:37:01]line Счет N : (1)1106218 [15:37:01]line ИНН: 02508201610067 [15:37:01]line Контрольно-Кассовый Чек [15:37:01]line ПРОДАЖА [15:37:01]line ТРК (МРК, ГНК) : 11 [15:37:01]line Товар: 2710124130 [15:37:01]line Аи-92-К-5 [15:37:01]line 12.930 * 61.90 [15:37:01]line = 800.37 [15:37:01]line НДС 12% НСП 1% [15:37:01]line > о реализуемом товаре [15:37:01]line ОКРУГЛЕНИЕ: -0.37 [15:37:01]line ИТОГО: 800.00 [15:37:01]line Внесено: 800.00 [15:37:01]line СДАЧА: 0.00 [15:37:01]line НСП 1% : 7.08 [15:37:01]line НДС 12% : 84.99 [15:37:01]line Наличными: 800.00 [15:37:01]line Безнал.: 0.00 [15:37:01]line Место: АЗС № 25 "Партнер Нефть" [15:37:01]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [15:37:01]line СНО: Общий режим [15:37:01]line Чек 139 03.03.2024 15:37 [15:37:01]line Смена: 323 ФФД: 1.0 [15:37:01]line ЗНМ: 0300000019 [15:37:01]line РНМ: 0000000000090573 [15:37:01]line Версия ККМ: 001 [15:37:01]line ФМ: 0000000000874798 [15:37:01]line ФД: 123282 [15:37:01]line ФПД: 91908490265906 [15:37:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T153703&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123282&fm=91908490265906&tin=02508201610067®Number=0000000000090573&sum=80000 [15:37:01]OFD Sender: Processing packet 123282 [packets to send 112, broken 111] [15:37:01]ProducePacketName [15:37:01]name=ofd_packets/00123282 [15:37:01]OFD Sender: To server: pG, [15:37:01]CommunicateWithHost lk.salyk.kg:30040 [15:37:01]ConnectInit lk.salyk.kg [15:37:01]written 0, free lines is 4095 [15:37:01]Connected sock=10 [15:37: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 37 39 38 0F 01 00 00 7D 29 07 01 A2 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 35 FF 03 08 00 03 82 32 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 A5 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 1F 99 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 92 E1 01 00 35 04 06 00 53 97 1C EA 05 32 45 BA C0 02 DF 10 70 62 [15:37:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 34 00 47 00 6A 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 92 E1 01 00 F4 03 04 00 4A 45 E4 65 B6 04 01 00 00 CE BE 4A 1C D5 65 76 91 [15:37:01]CommunicateWithHost err = 0 [15:37:01]CheckOFDResponse [15:37:01]1017 (14) - 77093643461234 [15:37:01]1041 (16) - 0000000000874798 [15:37:01]1040 (4) - 123282 [15:37:01]1012 (4) - 03.03.2024 09:39 [15:37:01]1206 (1) - 0 [15:37:01]OFD Sender: Remove packet 123282 [15:37:01]ProducePacketName [15:37:01]name=ofd_packets/00123282 [15:37:01]NVStorageDeleteData [15:37:01]Write to MH i2c: 01 00 00 0D 34 41 [15:37:01]Write i2c OK [15:37:01]MH_I2C_Read... [15:37:01]Read from MH i2c: 01 [15:37:01]MH_I2C_Read... [15:37:01]Read from MH i2c: 01 07 00 [15:37:01]MH_I2C_Read... [15:37:01]Read from MH i2c: 01 07 00 0D 34 00 00 00 00 00 E3 0C 37 [15:37:01]RasterBufferAndPrint [15:37:01]line [15:37:01]line [15:37:01]line [15:37:01]line [15:37:01]line [15:37:01]written 0, free lines is 3305 [15:37:01]MH_Cut [15:37:01]Write to MH i2c: D1 01 00 14 34 01 1A [15:37:01]Write i2c OK [15:37:01]MH_I2C_Read... [15:37:01]Read from MH i2c: D1 [15:37:01]MH_I2C_Read... [15:37:01]Read from MH i2c: D1 01 00 [15:37:01]MH_I2C_Read... [15:37:01]Read from MH i2c: D1 01 00 14 34 00 19 [15:37:01]Write to MH i2c: 01 00 00 15 34 49 [15:37:01]Write i2c OK [15:37:01]MH_I2C_Read... [15:37:02]OFD Sender: No OFD packet to send [15:37:02]*** Cut start [15:37:02]*** Purtial cut [15:37:02]*** Stage 1: CUTSNS_PIN = 1 [15:37:04]Read from MH i2c: 01 [15:37:04]MH_I2C_Read... [15:37:04]*** Stop cut motor [15:37:04]*** Cut end [15:37:04]Read from MH i2c: 01 07 00 [15:37:04]MH_I2C_Read... [15:37:04]Read from MH i2c: 01 07 00 15 34 00 00 00 00 00 FF 0F 5E [15:37:04]process_action close_receipt done [15:37:04]requested_data is exist [15:37:04]produce_requested_data [15:37:04]requested_item fm.sn is exist - process it [15:37:04]wFMCommunicate request_size=4 [15:37:04]MH_SAM_APDU [15:37:04]CAPDU: 80 11 00 00 [15:37:04]Write to MH i2c: E2 08 00 16 34 80 11 00 00 00 00 00 00 C4 [15:37:04]Write i2c OK [15:37:04]MH_I2C_Read... [15:37:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:37:04]Read from MH i2c: E2 [15:37:04]MH_I2C_Read... [15:37:04]Read from MH i2c: E2 17 00 [15:37:04]MH_I2C_Read... [15:37:04]Read from MH i2c: E2 17 00 16 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 22 [15:37:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [15:37:04]wFMCommunicate OK [15:37:04]requested_item fd.num is exist - process it [15:37:04]SAM_PROTO_GetFieldsCounters [15:37:04]wFMCommunicate request_size=4 [15:37:04]MH_SAM_APDU [15:37:04]CAPDU: 80 13 00 00 [15:37:04]Write to MH i2c: E2 08 00 17 34 80 13 00 00 00 00 00 00 C7 [15:37:04]Write i2c OK [15:37:04]MH_I2C_Read... [15:37:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:37:04]Read from MH i2c: E2 [15:37:04]MH_I2C_Read... [15:37:04]Read from MH i2c: E2 62 00 [15:37:04]MH_I2C_Read... [15:37:04]Read from MH i2c: E2 62 00 17 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 92 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 4B [15:37: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 92 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:37:04]wFMCommunicate OK [15:37:04]SAM_PROTO_GetFieldsCounters done [15:37:04]requested_item shift.num is exist - process it [15:37:04]requested_item shift.opened is exist - process it [15:37:04]req_shift_opened [15:37:04]FM_GetShiftState [15:37:04]SAM_PROTO_GetShiftState [15:37:04]wFMCommunicate request_size=4 [15:37:04]MH_SAM_APDU [15:37:04]CAPDU: 80 13 01 00 [15:37:04]Write to MH i2c: E2 08 00 18 34 80 13 01 00 00 00 00 00 C9 [15:37:04]Write i2c OK [15:37:04]MH_I2C_Read... [15:37:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:37:04]Read from MH i2c: E2 [15:37:04]MH_I2C_Read... [15:37:04]Read from MH i2c: E2 0E 00 [15:37:04]MH_I2C_Read... [15:37:04]Read from MH i2c: E2 0E 00 18 34 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 8B [15:37:04]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [15:37:04]wFMCommunicate OK [15:37:04]SAM_PROTO_GetShiftState done [15:37:04]FM_GetShiftState done [15:37:04]req_shift_opened done [15:37:04]requested_item shift.open_date is exist - process it [15:37:04]req_shift_open_date [15:37:04]req_shift_open_date done [15:37:04]produce_requested_data done [15:37:04]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123282,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [15:37:04]process_action_free close_receipt [15:37:04]json_value_free [15:37:04]json_value_free done [15:37:04]process_json_proto returns [15:37:04]Send response to host [15:37:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123282,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [15:37:04]free response buf [15:37:04]execute_script done [15:37:04]execute_script returns [15:37:04]free content buf [15:37:04]Sock 7.Close socket [15:37:04]Sock 7.Thread stoped [15:37:07]OFD Sender: No OFD packet to send [15:37:12]OFD Sender: No OFD packet to send [15:37:17]OFD Sender: No OFD packet to send [15:37:22]OFD Sender: No OFD packet to send [15:37:27]OFD Sender: No OFD packet to send [15:37:32]OFD Sender: No OFD packet to send [15:37:37]OFD Sender: No OFD packet to send [15:37:42]OFD Sender: No OFD packet to send [15:37:47]OFD Sender: No OFD packet to send [15:37:52]OFD Sender: No OFD packet to send [15:37:57]OFD Sender: No OFD packet to send [15:38:02]OFD Sender: No OFD packet to send [15:38:07]OFD Sender: No OFD packet to send [15:38:12]OFD Sender: No OFD packet to send [15:38:17]OFD Sender: No OFD packet to send [15:38:22]OFD Sender: No OFD packet to send [15:38:27]OFD Sender: No OFD packet to send [15:38:32]OFD Sender: No OFD packet to send [15:38:37]OFD Sender: No OFD packet to send [15:38:42]OFD Sender: No OFD packet to send [15:38:47]OFD Sender: No OFD packet to send [15:38:52]OFD Sender: No OFD packet to send [15:38:57]OFD Sender: No OFD packet to send [15:39:02]OFD Sender: No OFD packet to send [15:39:07]OFD Sender: No OFD packet to send [15:39:12]OFD Sender: No OFD packet to send [15:39:17]OFD Sender: No OFD packet to send [15:39:22]OFD Sender: No OFD packet to send [15:39:27]OFD Sender: No OFD packet to send [15:39:32]OFD Sender: No OFD packet to send [15:39:37]OFD Sender: No OFD packet to send [15:39:42]OFD Sender: No OFD packet to send [15:39:47]OFD Sender: No OFD packet to send [15:39:52]OFD Sender: No OFD packet to send [15:39:57]OFD Sender: No OFD packet to send [15:40:02]OFD Sender: No OFD packet to send [15:40:07]OFD Sender: No OFD packet to send [15:40:12]OFD Sender: No OFD packet to send [15:40:17]OFD Sender: No OFD packet to send [15:40:22]OFD Sender: No OFD packet to send [15:40:27]OFD Sender: No OFD packet to send [15:40:32]OFD Sender: No OFD packet to send [15:40:37]OFD Sender: No OFD packet to send [15:40:42]OFD Sender: No OFD packet to send [15:40:47]OFD Sender: No OFD packet to send [15:40:52]OFD Sender: No OFD packet to send [15:40:57]OFD Sender: No OFD packet to send [15:41:02]OFD Sender: No OFD packet to send [15:41:07]OFD Sender: No OFD packet to send [15:41:12]OFD Sender: No OFD packet to send [15:41:17]OFD Sender: No OFD packet to send [15:41:22]OFD Sender: No OFD packet to send [15:41:27]OFD Sender: No OFD packet to send [15:41:32]OFD Sender: No OFD packet to send [15:41:37]OFD Sender: No OFD packet to send [15:41:42]OFD Sender: No OFD packet to send [15:41:47]OFD Sender: No OFD packet to send [15:41:52]OFD Sender: No OFD packet to send [15:41:57]OFD Sender: No OFD packet to send [15:42:02]OFD Sender: No OFD packet to send [15:42:07]OFD Sender: No OFD packet to send [15:42:12]OFD Sender: No OFD packet to send [15:42:17]OFD Sender: No OFD packet to send [15:42:22]OFD Sender: No OFD packet to send [15:42:27]OFD Sender: No OFD packet to send [15:42:32]OFD Sender: No OFD packet to send [15:42:37]OFD Sender: No OFD packet to send [15:42:42]OFD Sender: No OFD packet to send [15:42:47]OFD Sender: No OFD packet to send [15:42:52]OFD Sender: No OFD packet to send [15:42:57]OFD Sender: No OFD packet to send [15:43:02]OFD Sender: No OFD packet to send [15:43:07]OFD Sender: No OFD packet to send [15:43:12]OFD Sender: No OFD packet to send [15:43:17]OFD Sender: No OFD packet to send [15:43:22]OFD Sender: No OFD packet to send [15:43:27]OFD Sender: No OFD packet to send [15:43:32]OFD Sender: No OFD packet to send [15:43:37]OFD Sender: No OFD packet to send [15:43:42]OFD Sender: No OFD packet to send [15:43:47]OFD Sender: No OFD packet to send [15:43:52]OFD Sender: No OFD packet to send [15:43:57]OFD Sender: No OFD packet to send [15:44:02]OFD Sender: No OFD packet to send [15:44:02]accept exits with 9 [15:44:02]New connection [15:44:02]New thread 3067395428 created [15:44:02]Thread 3067252068 joined [15:44:02]Waiting for new connection... [15:44:02] Sock 9.Parse request [15:44:02]Sock 9.Check first char [15:44:02]Sock 9.First char is OK [15:44:02]request: POST /json_proto HTTP/1.0 [15:44:02]Method: POST [15:44:02]URL: /json_proto [15:44:02]Method is POST - this is cgi request [15:44:02]url: /json_proto [15:44:02]query_string will be loaded in cgi processing [15:44:02]execute_cgi json_proto POST (null) [15:44:02]execute_cgi path=json_proto method=POST [15:44:02]POST find Content-Length [15:44:02]Host: 172.17.48.197:8080 [15:44:02]Content-Length: 679 [15:44:02]Content-Type: application/json [15:44:02] [15:44:02]POST finish read [15:44:02]Found Content-Length = 679 [15:44:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106219", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 11.310, "sum" : 700.09, "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" ] } } [15:44:02]execute_script... [15:44: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)1106219", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 11.310, "sum" : 700.09, "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" ] } } [15:44:02]POST & json_proto [15:44:02]process_json_proto [15:44:02]json parsed OK: [15:44:02]protocol is kg_v1.0 [15:44:02]action value=close_receipt [15:44:02]process_action close_receipt [15:44:02]cmd_close_receipt [15:44:02]MH_GetDate [15:44:02]Write to MH i2c: F0 00 00 19 34 3C [15:44:02]Write i2c OK [15:44:02]MH_I2C_Read... [15:44:02]Read from MH i2c: F0 [15:44:02]MH_I2C_Read... [15:44:02]Read from MH i2c: F0 09 00 [15:44:02]MH_I2C_Read... [15:44:02]Read from MH i2c: F0 09 00 19 34 00 C6 9A E4 65 6C AF E3 65 51 [15:44:02]GetLastDocTimeStamp 1709480223 [15:44:02]current date 1709480646 [15:44:02]FM_GetShiftState [15:44:02]SAM_PROTO_GetShiftState [15:44:02]wFMCommunicate request_size=4 [15:44:02]MH_SAM_APDU [15:44:02]CAPDU: 80 13 01 00 [15:44:02]Write to MH i2c: E2 08 00 1A 34 80 13 01 00 00 00 00 00 CB [15:44:02]Write i2c OK [15:44:02]MH_I2C_Read... [15:44:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:44:02]Read from MH i2c: E2 [15:44:02]MH_I2C_Read... [15:44:02]Read from MH i2c: E2 0E 00 [15:44:02]MH_I2C_Read... [15:44:02]Read from MH i2c: E2 0E 00 1A 34 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 8D [15:44:02]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [15:44:02]wFMCommunicate OK [15:44:02]SAM_PROTO_GetShiftState done [15:44:02]FM_GetShiftState done [15:44:02]opened in 1709425579 [15:44:02]opened+sec_in_day 1709511979 [15:44:02]quantity*price = 70008 [15:44:02]sum+1 = 70010 [15:44:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.19 НДС 12% : 74.35 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 140 03.03.2024 15:44 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123283 ФПД: 212350103502613 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T154406&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123283&fm=212350103502613&tin=02508201610067®Number=0000000000090573&sum=70000 [15:44:03]StoreToDocumentArchive [15:44:03]shift 323 fd 123283 [15:44:03]save to /storage/0323/doc_00123283 [15:44:03]save last doc name /storage/0323/doc_00123283 to /storage/kkm_last_doc_name [15:44:03]save OK [15:44:03]Clear old archive folders... [15:44:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:44:03]tlvbuf is 00DC55F0 [15:44:03]SAM_PROTO_ClearQueue [15:44:03]wFMCommunicate request_size=4 [15:44:03]MH_SAM_APDU [15:44:03]CAPDU: 80 09 00 00 [15:44:03]Write to MH i2c: E2 08 00 27 34 80 09 00 00 00 00 00 00 CD [15:44:03]Write i2c OK [15:44:03]MH_I2C_Read... [15:44:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:44:03]Read from MH i2c: E2 [15:44:03]MH_I2C_Read... [15:44:03]Read from MH i2c: E2 03 00 [15:44:03]MH_I2C_Read... [15:44:03]Read from MH i2c: E2 03 00 27 34 00 90 00 CF [15:44:03]RAPDU: 90 00 [15:44:03]wFMCommunicate OK [15:44:03]SAM_PROTO_ClearQueue done [15:44:03]KKMCreateOFDPacket [15:44:03]OFDProtocolAddRootSTLVToBuf [15:44:03]FM_MakeSignedData [15:44:03]FM_MakeSignedData [15:44:03]SAM_PROTO_SignData [15:44:03]wFMCommunicate request_size=4 [15:44:03]MH_SAM_APDU [15:44:03]CAPDU: 80 0D 01 02 [15:44:03]Write to MH i2c: E2 08 00 28 34 80 0D 01 02 00 00 00 00 D5 [15:44:03]Write i2c OK [15:44:03]MH_I2C_Read... [15:44:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:44:03]Read from MH i2c: E2 [15:44:03]MH_I2C_Read... [15:44:03]Read from MH i2c: E2 03 00 [15:44:03]MH_I2C_Read... [15:44:03]Read from MH i2c: E2 03 00 28 34 00 90 00 D0 [15:44:03]RAPDU: 90 00 [15:44:03]wFMCommunicate OK [15:44:03]wFMCommunicate request_size=255 [15:44:03]MH_SAM_APDU [15:44: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 35 FF 03 08 00 03 2E 2C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 79 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 6B 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 8C 00 00 00 F4 03 04 00 C6 9A E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 93 E1 01 00 35 04 06 00 C1 [15:44:03]Write to MH i2c: E2 02 01 29 34 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 2C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 79 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 6B 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 8C 00 00 00 F4 03 04 00 C6 9A E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 93 E1 01 00 35 04 06 00 C1 00 00 5C [15:44:03]Write i2c OK [15:44:03]MH_I2C_Read... [15:44:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:44:04]Read from MH i2c: E2 [15:44:04]MH_I2C_Read... [15:44:04]Read from MH i2c: E2 03 00 [15:44:04]MH_I2C_Read... [15:44:04]Read from MH i2c: E2 03 00 29 34 00 90 00 D1 [15:44:04]RAPDU: 90 00 [15:44:04]wFMCommunicate OK [15:44:04]wFMCommunicate request_size=10 [15:44:04]MH_SAM_APDU [15:44:04]CAPDU: 80 0D 02 02 05 21 9C 7C BF 15 [15:44:04]Write to MH i2c: E2 0D 00 2A 34 80 0D 02 02 05 00 21 9C 7C BF 15 00 00 EF [15:44:04]Write i2c OK [15:44:04]MH_I2C_Read... [15:44:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:44:04]Read from MH i2c: E2 [15:44:04]MH_I2C_Read... [15:44:04]Read from MH i2c: E2 03 00 [15:44:04]MH_I2C_Read... [15:44:04]Read from MH i2c: E2 03 00 2A 34 00 90 00 D2 [15:44:04]RAPDU: 90 00 [15:44:04]wFMCommunicate OK [15:44:04]wFMCommunicate request_size=4 [15:44:04]MH_SAM_APDU [15:44:04]CAPDU: 80 0D 03 02 [15:44:04]Write to MH i2c: E2 08 00 2B 34 80 0D 03 02 00 00 00 00 DA [15:44:04]Write i2c OK [15:44:04]MH_I2C_Read... [15:44:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:44:04]Read from MH i2c: E2 [15:44:04]MH_I2C_Read... [15:44:04]Read from MH i2c: E2 0B 00 [15:44:04]MH_I2C_Read... [15:44:04]Read from MH i2c: E2 0B 00 2B 34 00 02 65 18 EE 89 86 40 30 90 00 C7 [15:44:04]RAPDU: 02 65 18 EE 89 86 40 30 90 00 [15:44:04]wFMCommunicate OK [15:44:04]SAM_PROTO_SignData done [15:44:04]FM_MakeSignedData done [15:44:04]CreateOFDProtocolMessage [15:44:04]wFMCommunicate request_size=4 [15:44:04]MH_SAM_APDU [15:44:04]CAPDU: 80 11 00 00 [15:44:04]Write to MH i2c: E2 08 00 2C 34 80 11 00 00 00 00 00 00 DA [15:44:04]Write i2c OK [15:44:04]MH_I2C_Read... [15:44:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:44:04]Read from MH i2c: E2 [15:44:04]MH_I2C_Read... [15:44:04]Read from MH i2c: E2 17 00 [15:44:04]MH_I2C_Read... [15:44:04]Read from MH i2c: E2 17 00 2C 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 38 [15:44:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [15:44:04]wFMCommunicate OK [15:44:04]CreateOFDProtocolMessage done [15:44:04]OFDSenderStorePacket 123283 [15:44:04]StoreOFDPacket docnum=123283 [15:44:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 9A 8C 07 01 1E 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 35 FF 03 08 00 03 2E 2C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 79 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 6B 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 8C 00 00 00 F4 03 04 00 C6 9A E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 93 E1 01 00 35 04 06 00 C1 21 9C 7C BF 15 02 65 18 EE 89 86 40 30 [15:44:04]CheckFolder [15:44:04]dirname=/storage/ofd_packets [15:44:04]CheckFolder done [15:44:04]ProducePacketName [15:44:04]name=ofd_packets/00123283 [15:44:04]NVStorageSaveData ofd_packets/00123283 [15:44:04]File name is /storage/ofd_packets/00123283 [15:44:04]Write 301 bytes [15:44:04]NVStorageSaveData done [15:44:04]OFDSenderStorePacket done [15:44:04]KKMCreateOFDPacket done [15:44:04]NVStorageSaveData kkm_last_timestamp [15:44:04]File name is /storage/kkm_last_timestamp [15:44:04]Write 4 bytes [15:44:04]NVStorageSaveData done [15:44:04]ExternCall_PrintAddStr [15:44:04]wPrintStart [15:44:04]Write to MH i2c: 01 00 00 2D 34 61 [15:44:04]Write i2c OK [15:44:04]MH_I2C_Read... [15:44:04]Read from MH i2c: 01 [15:44:04]MH_I2C_Read... [15:44:04]Read from MH i2c: 01 07 00 [15:44:04]MH_I2C_Read... [15:44:04]Read from MH i2c: 01 07 00 2D 34 00 00 00 00 00 FF 0F 76 [15:44:04]RasterBufferAndPrint [15:44:04]line Счет N : (1)1106219 [15:44:04]line ИНН: 02508201610067 [15:44:04]line Контрольно-Кассовый Чек [15:44:04]line ПРОДАЖА [15:44:04]line ТРК (МРК, ГНК) : 62 [15:44:04]line Товар: 2710124130 [15:44:04]line Аи-92-К-5 [15:44:04]line 11.310 * 61.90 [15:44:04]line = 700.09 [15:44:04]line НДС 12% НСП 1% [15:44:04]line > о реализуемом товаре [15:44:04]line ОКРУГЛЕНИЕ: -0.09 [15:44:04]line ИТОГО: 700.00 [15:44:04]line Внесено: 700.00 [15:44:04]line СДАЧА: 0.00 [15:44:04]line НСП 1% : 6.19 [15:44:04]line НДС 12% : 74.35 [15:44:04]line Наличными: 700.00 [15:44:04]line Безнал.: 0.00 [15:44:04]line Место: АЗС № 25 "Партнер Нефть" [15:44:04]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [15:44:04]line СНО: Общий режим [15:44:04]line Чек 140 03.03.2024 15:44 [15:44:04]line Смена: 323 ФФД: 1.0 [15:44:04]line ЗНМ: 0300000019 [15:44:04]line РНМ: 0000000000090573 [15:44:04]line Версия ККМ: 001 [15:44:04]line ФМ: 0000000000874798 [15:44:04]line ФД: 123283 [15:44:04]line ФПД: 212350103502613 [15:44:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T154406&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123283&fm=212350103502613&tin=02508201610067®Number=0000000000090573&sum=70000 [15:44:04]OFD Sender: Processing packet 123283 [packets to send 112, broken 111] [15:44:04]ProducePacketName [15:44:04]name=ofd_packets/00123283 [15:44:04]OFD Sender: To server: pG, [15:44:04]CommunicateWithHost lk.salyk.kg:30040 [15:44:04]ConnectInit lk.salyk.kg [15:44:04]written 0, free lines is 4095 [15:44:04]Connected sock=10 [15:44: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 37 39 38 0F 01 00 00 9A 8C 07 01 1E 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 35 FF 03 08 00 03 2E 2C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 79 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 6B 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 8C 00 00 00 F4 03 04 00 C6 9A E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 93 E1 01 00 35 04 06 00 C1 21 9C 7C BF 15 02 65 18 EE 89 86 40 30 [15:44:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 3F 1A 47 00 07 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 37 39 38 10 04 04 00 93 E1 01 00 F4 03 04 00 F1 46 E4 65 B6 04 01 00 00 7A BC 3F 33 15 21 57 A6 [15:44:04]CommunicateWithHost err = 0 [15:44:04]CheckOFDResponse [15:44:04]1017 (14) - 77093643461234 [15:44:04]1041 (16) - 0000000000874798 [15:44:04]1040 (4) - 123283 [15:44:04]1012 (4) - 03.03.2024 09:46 [15:44:04]1206 (1) - 0 [15:44:04]OFD Sender: Remove packet 123283 [15:44:04]ProducePacketName [15:44:04]name=ofd_packets/00123283 [15:44:04]NVStorageDeleteData [15:44:05]Write to MH i2c: 01 00 00 58 34 8C [15:44:05]Write i2c OK [15:44:05]MH_I2C_Read... [15:44:05]Read from MH i2c: 01 [15:44:05]MH_I2C_Read... [15:44:05]Read from MH i2c: 01 07 00 [15:44:05]MH_I2C_Read... [15:44:05]Read from MH i2c: 01 07 00 58 34 00 00 00 00 00 DF 0C 7E [15:44:05]RasterBufferAndPrint [15:44:05]line [15:44:05]line [15:44:05]line [15:44:05]line [15:44:05]line [15:44:05]written 0, free lines is 3304 [15:44:05]MH_Cut [15:44:05]Write to MH i2c: D1 01 00 5F 34 01 65 [15:44:05]Write i2c OK [15:44:05]MH_I2C_Read... [15:44:05]Read from MH i2c: D1 [15:44:05]MH_I2C_Read... [15:44:05]Read from MH i2c: D1 01 00 [15:44:05]MH_I2C_Read... [15:44:05]Read from MH i2c: D1 01 00 5F 34 00 64 [15:44:05]Write to MH i2c: 01 00 00 60 34 94 [15:44:05]Write i2c OK [15:44:05]MH_I2C_Read... [15:44:05]OFD Sender: No OFD packet to send [15:44:05]*** Cut start [15:44:05]*** Purtial cut [15:44:05]*** Stage 1: CUTSNS_PIN = 1 [15:44:07]Read from MH i2c: 01 [15:44:07]MH_I2C_Read... [15:44:07]*** Stop cut motor [15:44:07]*** Cut end [15:44:07]Read from MH i2c: 01 07 00 [15:44:07]MH_I2C_Read... [15:44:07]Read from MH i2c: 01 07 00 60 34 00 00 00 00 00 FF 0F A9 [15:44:07]process_action close_receipt done [15:44:07]requested_data is exist [15:44:07]produce_requested_data [15:44:07]requested_item fm.sn is exist - process it [15:44:07]wFMCommunicate request_size=4 [15:44:07]MH_SAM_APDU [15:44:07]CAPDU: 80 11 00 00 [15:44:07]Write to MH i2c: E2 08 00 61 34 80 11 00 00 00 00 00 00 0F [15:44:07]Write i2c OK [15:44:07]MH_I2C_Read... [15:44:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:44:07]Read from MH i2c: E2 [15:44:07]MH_I2C_Read... [15:44:07]Read from MH i2c: E2 17 00 [15:44:07]MH_I2C_Read... [15:44:07]Read from MH i2c: E2 17 00 61 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 6D [15:44:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [15:44:07]wFMCommunicate OK [15:44:07]requested_item fd.num is exist - process it [15:44:07]SAM_PROTO_GetFieldsCounters [15:44:07]wFMCommunicate request_size=4 [15:44:07]MH_SAM_APDU [15:44:07]CAPDU: 80 13 00 00 [15:44:07]Write to MH i2c: E2 08 00 62 34 80 13 00 00 00 00 00 00 12 [15:44:07]Write i2c OK [15:44:07]MH_I2C_Read... [15:44:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:44:08]Read from MH i2c: E2 [15:44:08]MH_I2C_Read... [15:44:08]Read from MH i2c: E2 62 00 [15:44:08]MH_I2C_Read... [15:44:08]Read from MH i2c: E2 62 00 62 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 93 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 9A [15:44: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 93 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:44:08]wFMCommunicate OK [15:44:08]SAM_PROTO_GetFieldsCounters done [15:44:08]requested_item shift.num is exist - process it [15:44:08]requested_item shift.opened is exist - process it [15:44:08]req_shift_opened [15:44:08]FM_GetShiftState [15:44:08]SAM_PROTO_GetShiftState [15:44:08]wFMCommunicate request_size=4 [15:44:08]MH_SAM_APDU [15:44:08]CAPDU: 80 13 01 00 [15:44:08]Write to MH i2c: E2 08 00 63 34 80 13 01 00 00 00 00 00 14 [15:44:08]Write i2c OK [15:44:08]MH_I2C_Read... [15:44:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:44:08]Read from MH i2c: E2 [15:44:08]MH_I2C_Read... [15:44:08]Read from MH i2c: E2 0E 00 [15:44:08]MH_I2C_Read... [15:44:08]Read from MH i2c: E2 0E 00 63 34 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 D6 [15:44:08]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [15:44:08]wFMCommunicate OK [15:44:08]SAM_PROTO_GetShiftState done [15:44:08]FM_GetShiftState done [15:44:08]req_shift_opened done [15:44:08]requested_item shift.open_date is exist - process it [15:44:08]req_shift_open_date [15:44:08]req_shift_open_date done [15:44:08]produce_requested_data done [15:44:08]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123283,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [15:44:08]process_action_free close_receipt [15:44:08]json_value_free [15:44:08]json_value_free done [15:44:08]process_json_proto returns [15:44:08]Send response to host [15:44:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123283,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [15:44:08]free response buf [15:44:08]execute_script done [15:44:08]execute_script returns [15:44:08]free content buf [15:44:08]Sock 9.Close socket [15:44:08]Sock 9.Thread stoped [15:44:10]OFD Sender: No OFD packet to send [15:44:15]OFD Sender: No OFD packet to send [15:44:20]OFD Sender: No OFD packet to send [15:44:25]OFD Sender: No OFD packet to send [15:44:30]OFD Sender: No OFD packet to send [15:44:35]OFD Sender: No OFD packet to send [15:44:40]OFD Sender: No OFD packet to send [15:44:45]OFD Sender: No OFD packet to send [15:44:50]OFD Sender: No OFD packet to send [15:44:55]OFD Sender: No OFD packet to send [15:45:00]OFD Sender: No OFD packet to send [15:45:05]OFD Sender: No OFD packet to send [15:45:10]OFD Sender: No OFD packet to send [15:45:15]OFD Sender: No OFD packet to send [15:45:19]accept exits with 7 [15:45:19]New connection [15:45:19]New thread 3067252068 created [15:45:19]Thread 3067395428 joined [15:45:19]Waiting for new connection... [15:45:19] Sock 7.Parse request [15:45:19]Sock 7.Check first char [15:45:19]Sock 7.First char is OK [15:45:19]request: POST /json_proto HTTP/1.0 [15:45:19]Method: POST [15:45:19]URL: /json_proto [15:45:19]Method is POST - this is cgi request [15:45:19]url: /json_proto [15:45:19]query_string will be loaded in cgi processing [15:45:19]execute_cgi json_proto POST (null) [15:45:19]execute_cgi path=json_proto method=POST [15:45:19]POST find Content-Length [15:45:19]Host: 172.17.48.197:8080 [15:45:19]Content-Length: 1218 [15:45:19]Content-Type: application/json [15:45:19] [15:45:19]POST finish read [15:45:19]Found Content-Length = 1218 [15:45:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106220\u000A03.03.2024 15:41\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 1238.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3583575\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:45:19]execute_script... [15:45:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106220\u000A03.03.2024 15:41\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 1238.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3583575\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:45:19]POST & json_proto [15:45:19]process_json_proto [15:45:19]json parsed OK: [15:45:19]protocol is kg_v1.0 [15:45:19]action value=print_text [15:45:19]process_action print_text [15:45:19]cmd_print_text [15:45:19]ExternCall_PrintAddStr [15:45:19]wPrintStart [15:45:19]Write to MH i2c: 01 00 00 64 34 98 [15:45:19]Write i2c OK [15:45:19]MH_I2C_Read... [15:45:19]Read from MH i2c: 01 [15:45:19]MH_I2C_Read... [15:45:19]Read from MH i2c: 01 07 00 [15:45:19]MH_I2C_Read... [15:45:19]Read from MH i2c: 01 07 00 64 34 00 00 00 00 00 FF 0F AD [15:45:19]RasterBufferAndPrint [15:45:19]line *****ТОВАРНЫЙ ЧЕК***** [15:45:19]line АЗС 25 [15:45:19]line Партнер нефть [15:45:19]line 02508201610067 [15:45:19]line Кассир : Турдумбек у. К. [15:45:19]line Счет N : (1)1106220 [15:45:19]line 03.03.2024 15:41 [15:45:19]line ПРОДАЖА [15:45:19]line ТРК (МРК, ГНК): 21 [15:45:19]line Вид ГСМ : 2710124130 [15:45:19]line Аи-92-К-5 [15:45:19]line 20.000 x 61.90 [15:45:19]line ИТОГ: 1238.00 [15:45:19]line Тип оплаты: Талоны: Топливные Талоны [15:45:19]line 3583575 [15:45:19]line ______________________ [15:45:19]line (подпись) [15:45:19]written 0, free lines is 4095 [15:45:19]Write to MH i2c: 01 00 00 79 34 AD [15:45:19]Write i2c OK [15:45:19]MH_I2C_Read... [15:45:19]Read from MH i2c: 01 [15:45:19]MH_I2C_Read... [15:45:19]Read from MH i2c: 01 07 00 [15:45:19]MH_I2C_Read... [15:45:19]Read from MH i2c: 01 07 00 79 34 00 00 00 00 00 F5 0D B6 [15:45:19]RasterBufferAndPrint [15:45:19]line [15:45:19]line [15:45:19]line [15:45:19]line [15:45:19]line [15:45:19]written 0, free lines is 3575 [15:45:19]MH_Cut [15:45:19]Write to MH i2c: D1 01 00 80 34 01 86 [15:45:19]Write i2c OK [15:45:19]MH_I2C_Read... [15:45:19]Read from MH i2c: D1 [15:45:19]MH_I2C_Read... [15:45:19]Read from MH i2c: D1 01 00 [15:45:19]MH_I2C_Read... [15:45:19]Read from MH i2c: D1 01 00 80 34 00 85 [15:45:19]Write to MH i2c: 01 00 00 81 34 B5 [15:45:19]Write i2c OK [15:45:19]MH_I2C_Read... [15:45:20]*** Cut start [15:45:20]*** Purtial cut [15:45:20]*** Stage 1: CUTSNS_PIN = 1 [15:45:20]OFD Sender: No OFD packet to send [15:45:22]Read from MH i2c: 01 [15:45:22]MH_I2C_Read... [15:45:22]*** Stop cut motor [15:45:22]*** Cut end [15:45:22]Read from MH i2c: 01 07 00 [15:45:22]MH_I2C_Read... [15:45:22]Read from MH i2c: 01 07 00 81 34 00 00 00 00 00 FF 0F CA [15:45:22]process_action print_text done [15:45:22]requested_data is exist [15:45:22]produce_requested_data [15:45:22]requested_item fm.sn is exist - process it [15:45:22]wFMCommunicate request_size=4 [15:45:22]MH_SAM_APDU [15:45:22]CAPDU: 80 11 00 00 [15:45:22]Write to MH i2c: E2 08 00 82 34 80 11 00 00 00 00 00 00 30 [15:45:22]Write i2c OK [15:45:22]MH_I2C_Read... [15:45:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:45:22]Read from MH i2c: E2 [15:45:22]MH_I2C_Read... [15:45:22]Read from MH i2c: E2 17 00 [15:45:22]MH_I2C_Read... [15:45:22]Read from MH i2c: E2 17 00 82 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 8E [15:45:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [15:45:22]wFMCommunicate OK [15:45:22]requested_item fd.num is exist - process it [15:45:22]SAM_PROTO_GetFieldsCounters [15:45:22]wFMCommunicate request_size=4 [15:45:22]MH_SAM_APDU [15:45:22]CAPDU: 80 13 00 00 [15:45:22]Write to MH i2c: E2 08 00 83 34 80 13 00 00 00 00 00 00 33 [15:45:22]Write i2c OK [15:45:22]MH_I2C_Read... [15:45:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:45:22]Read from MH i2c: E2 [15:45:22]MH_I2C_Read... [15:45:22]Read from MH i2c: E2 62 00 [15:45:22]MH_I2C_Read... [15:45:22]Read from MH i2c: E2 62 00 83 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 93 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 BB [15:45: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 93 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:45:22]wFMCommunicate OK [15:45:22]SAM_PROTO_GetFieldsCounters done [15:45:22]requested_item shift.num is exist - process it [15:45:22]requested_item shift.opened is exist - process it [15:45:22]req_shift_opened [15:45:22]FM_GetShiftState [15:45:22]SAM_PROTO_GetShiftState [15:45:22]wFMCommunicate request_size=4 [15:45:22]MH_SAM_APDU [15:45:22]CAPDU: 80 13 01 00 [15:45:22]Write to MH i2c: E2 08 00 84 34 80 13 01 00 00 00 00 00 35 [15:45:22]Write i2c OK [15:45:22]MH_I2C_Read... [15:45:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:45:22]Read from MH i2c: E2 [15:45:22]MH_I2C_Read... [15:45:22]Read from MH i2c: E2 0E 00 [15:45:22]MH_I2C_Read... [15:45:22]Read from MH i2c: E2 0E 00 84 34 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 F7 [15:45:22]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [15:45:22]wFMCommunicate OK [15:45:22]SAM_PROTO_GetShiftState done [15:45:22]FM_GetShiftState done [15:45:22]req_shift_opened done [15:45:22]requested_item shift.open_date is exist - process it [15:45:22]req_shift_open_date [15:45:22]req_shift_open_date done [15:45:22]produce_requested_data done [15:45:22]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123283,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [15:45:22]process_action_free print_text [15:45:22]json_value_free [15:45:22]json_value_free done [15:45:22]process_json_proto returns [15:45:22]Send response to host [15:45:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123283,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [15:45:22]free response buf [15:45:22]execute_script done [15:45:22]execute_script returns [15:45:22]free content buf [15:45:22]Sock 7.Close socket [15:45:22]Sock 7.Thread stoped [15:45:25]OFD Sender: No OFD packet to send [15:45:30]OFD Sender: No OFD packet to send [15:45:35]OFD Sender: No OFD packet to send [15:45:40]OFD Sender: No OFD packet to send [15:45:45]OFD Sender: No OFD packet to send [15:45:50]OFD Sender: No OFD packet to send [15:45:55]OFD Sender: No OFD packet to send [15:45:59]accept exits with 9 [15:45:59]New connection [15:45:59]New thread 3067395428 created [15:45:59]Thread 3067252068 joined [15:45:59]Waiting for new connection... [15:45:59] Sock 9.Parse request [15:45:59]Sock 9.Check first char [15:45:59]Sock 9.First char is OK [15:45:59]request: POST /json_proto HTTP/1.0 [15:45:59]Method: POST [15:45:59]URL: /json_proto [15:45:59]Method is POST - this is cgi request [15:45:59]url: /json_proto [15:45:59]query_string will be loaded in cgi processing [15:45:59]execute_cgi json_proto POST (null) [15:45:59]execute_cgi path=json_proto method=POST [15:45:59]POST find Content-Length [15:45:59]Host: 172.17.48.197:8080 [15:45:59]Content-Length: 678 [15:45:59]Content-Type: application/json [15:45:59] [15:45:59]POST finish read [15:45:59]Found Content-Length = 678 [15:45:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106222", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 6.470, "sum" : 400.49, "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:45:59]execute_script... [15:45: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)1106222", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 6.470, "sum" : 400.49, "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:45:59]POST & json_proto [15:45:59]process_json_proto [15:45:59]json parsed OK: [15:45:59]protocol is kg_v1.0 [15:45:59]action value=close_receipt [15:45:59]process_action close_receipt [15:45:59]cmd_close_receipt [15:45:59]MH_GetDate [15:45:59]Write to MH i2c: F0 00 00 85 34 A8 [15:45:59]Write i2c OK [15:45:59]MH_I2C_Read... [15:45:59]Read from MH i2c: F0 [15:45:59]MH_I2C_Read... [15:45:59]Read from MH i2c: F0 09 00 [15:45:59]MH_I2C_Read... [15:45:59]Read from MH i2c: F0 09 00 85 34 00 3B 9B E4 65 6C AF E3 65 33 [15:45:59]GetLastDocTimeStamp 1709480646 [15:45:59]current date 1709480763 [15:45:59]FM_GetShiftState [15:45:59]SAM_PROTO_GetShiftState [15:45:59]wFMCommunicate request_size=4 [15:45:59]MH_SAM_APDU [15:45:59]CAPDU: 80 13 01 00 [15:45:59]Write to MH i2c: E2 08 00 86 34 80 13 01 00 00 00 00 00 37 [15:45:59]Write i2c OK [15:45:59]MH_I2C_Read... [15:45:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:45:59]Read from MH i2c: E2 [15:45:59]MH_I2C_Read... [15:45:59]Read from MH i2c: E2 0E 00 [15:45:59]MH_I2C_Read... [15:45:59]Read from MH i2c: E2 0E 00 86 34 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 F9 [15:45:59]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [15:45:59]wFMCommunicate OK [15:45:59]SAM_PROTO_GetShiftState done [15:45:59]FM_GetShiftState done [15:45:59]opened in 1709425579 [15:45:59]opened+sec_in_day 1709511979 [15:45:59]quantity*price = 40049 [15:45:59]sum+1 = 40050 [15:45:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.53 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 141 03.03.2024 15:46 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123284 ФПД: 108939995825709 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T154603&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123284&fm=108939995825709&tin=02508201610067®Number=0000000000090573&sum=40000 [15:46:01]StoreToDocumentArchive [15:46:01]shift 323 fd 123284 [15:46:01]save to /storage/0323/doc_00123284 [15:46:01]save last doc name /storage/0323/doc_00123284 to /storage/kkm_last_doc_name [15:46:01]save OK [15:46:01]Clear old archive folders... [15:46:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:46:01]tlvbuf is 00DA2750 [15:46:01]SAM_PROTO_ClearQueue [15:46:01]wFMCommunicate request_size=4 [15:46:01]MH_SAM_APDU [15:46:01]CAPDU: 80 09 00 00 [15:46:01]Write to MH i2c: E2 08 00 93 34 80 09 00 00 00 00 00 00 39 [15:46:01]Write i2c OK [15:46:01]MH_I2C_Read... [15:46:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:46:01]Read from MH i2c: E2 [15:46:01]MH_I2C_Read... [15:46:01]Read from MH i2c: E2 03 00 [15:46:01]MH_I2C_Read... [15:46:01]Read from MH i2c: E2 03 00 93 34 00 90 00 3B [15:46:01]RAPDU: 90 00 [15:46:01]wFMCommunicate OK [15:46:01]SAM_PROTO_ClearQueue done [15:46:01]KKMCreateOFDPacket [15:46:01]OFDProtocolAddRootSTLVToBuf [15:46:01]FM_MakeSignedData [15:46:01]FM_MakeSignedData [15:46:01]SAM_PROTO_SignData [15:46:01]wFMCommunicate request_size=4 [15:46:01]MH_SAM_APDU [15:46:01]CAPDU: 80 0D 01 02 [15:46:01]Write to MH i2c: E2 08 00 94 34 80 0D 01 02 00 00 00 00 41 [15:46:01]Write i2c OK [15:46:01]MH_I2C_Read... [15:46:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:46:01]Read from MH i2c: E2 [15:46:01]MH_I2C_Read... [15:46:01]Read from MH i2c: E2 03 00 [15:46:01]MH_I2C_Read... [15:46:01]Read from MH i2c: E2 03 00 94 34 00 90 00 3C [15:46:01]RAPDU: 90 00 [15:46:01]wFMCommunicate OK [15:46:01]wFMCommunicate request_size=255 [15:46:01]MH_SAM_APDU [15:46: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 35 FF 03 08 00 03 46 19 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 71 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 9D 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 8D 00 00 00 F4 03 04 00 3B 9B E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 94 E1 01 00 35 04 06 00 63 [15:46:01]Write to MH i2c: E2 02 01 95 34 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 19 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 71 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 9D 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 8D 00 00 00 F4 03 04 00 3B 9B E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 94 E1 01 00 35 04 06 00 63 00 00 98 [15:46:01]Write i2c OK [15:46:01]MH_I2C_Read... [15:46:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:46:01]Read from MH i2c: E2 [15:46:01]MH_I2C_Read... [15:46:01]Read from MH i2c: E2 03 00 [15:46:01]MH_I2C_Read... [15:46:01]Read from MH i2c: E2 03 00 95 34 00 90 00 3D [15:46:01]RAPDU: 90 00 [15:46:01]wFMCommunicate OK [15:46:01]wFMCommunicate request_size=10 [15:46:01]MH_SAM_APDU [15:46:01]CAPDU: 80 0D 02 02 05 14 91 C0 C6 2D [15:46:01]Write to MH i2c: E2 0D 00 96 34 80 0D 02 02 05 00 14 91 C0 C6 2D 00 00 A6 [15:46:01]Write i2c OK [15:46:01]MH_I2C_Read... [15:46:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:46:01]Read from MH i2c: E2 [15:46:01]MH_I2C_Read... [15:46:01]Read from MH i2c: E2 03 00 [15:46:01]MH_I2C_Read... [15:46:01]Read from MH i2c: E2 03 00 96 34 00 90 00 3E [15:46:01]RAPDU: 90 00 [15:46:01]wFMCommunicate OK [15:46:01]wFMCommunicate request_size=4 [15:46:01]MH_SAM_APDU [15:46:01]CAPDU: 80 0D 03 02 [15:46:01]Write to MH i2c: E2 08 00 97 34 80 0D 03 02 00 00 00 00 46 [15:46:01]Write i2c OK [15:46:01]MH_I2C_Read... [15:46:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:46:01]Read from MH i2c: E2 [15:46:01]MH_I2C_Read... [15:46:01]Read from MH i2c: E2 0B 00 [15:46:01]MH_I2C_Read... [15:46:01]Read from MH i2c: E2 0B 00 97 34 00 57 E2 A4 69 A9 6E A4 2D 90 00 75 [15:46:01]RAPDU: 57 E2 A4 69 A9 6E A4 2D 90 00 [15:46:01]wFMCommunicate OK [15:46:01]SAM_PROTO_SignData done [15:46:01]FM_MakeSignedData done [15:46:01]CreateOFDProtocolMessage [15:46:01]wFMCommunicate request_size=4 [15:46:01]MH_SAM_APDU [15:46:01]CAPDU: 80 11 00 00 [15:46:01]Write to MH i2c: E2 08 00 98 34 80 11 00 00 00 00 00 00 46 [15:46:01]Write i2c OK [15:46:01]MH_I2C_Read... [15:46:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:46:01]Read from MH i2c: E2 [15:46:01]MH_I2C_Read... [15:46:01]Read from MH i2c: E2 17 00 [15:46:01]MH_I2C_Read... [15:46:01]Read from MH i2c: E2 17 00 98 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 A4 [15:46:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [15:46:01]wFMCommunicate OK [15:46:01]CreateOFDProtocolMessage done [15:46:01]OFDSenderStorePacket 123284 [15:46:01]StoreOFDPacket docnum=123284 [15:46:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 9C B6 07 01 FC 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 19 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 71 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 9D 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 8D 00 00 00 F4 03 04 00 3B 9B E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 94 E1 01 00 35 04 06 00 63 14 91 C0 C6 2D 57 E2 A4 69 A9 6E A4 2D [15:46:01]CheckFolder [15:46:01]dirname=/storage/ofd_packets [15:46:01]CheckFolder done [15:46:01]ProducePacketName [15:46:01]name=ofd_packets/00123284 [15:46:01]NVStorageSaveData ofd_packets/00123284 [15:46:01]File name is /storage/ofd_packets/00123284 [15:46:01]Write 301 bytes [15:46:01]NVStorageSaveData done [15:46:01]OFDSenderStorePacket done [15:46:01]KKMCreateOFDPacket done [15:46:01]NVStorageSaveData kkm_last_timestamp [15:46:01]File name is /storage/kkm_last_timestamp [15:46:01]Write 4 bytes [15:46:01]NVStorageSaveData done [15:46:01]ExternCall_PrintAddStr [15:46:01]wPrintStart [15:46:01]Write to MH i2c: 01 00 00 99 34 CD [15:46:01]Write i2c OK [15:46:01]MH_I2C_Read... [15:46:01]Read from MH i2c: 01 [15:46:01]MH_I2C_Read... [15:46:01]Read from MH i2c: 01 07 00 [15:46:01]MH_I2C_Read... [15:46:01]Read from MH i2c: 01 07 00 99 34 00 00 00 00 00 FF 0F E2 [15:46:01]RasterBufferAndPrint [15:46:01]line Счет N : (1)1106222 [15:46:01]line ИНН: 02508201610067 [15:46:01]line Контрольно-Кассовый Чек [15:46:01]line ПРОДАЖА [15:46:01]line ТРК (МРК, ГНК) : 52 [15:46:01]line Товар: 2710124130 [15:46:01]line Аи-92-К-5 [15:46:01]line 6.470 * 61.90 [15:46:01]line = 400.49 [15:46:01]line НДС 12% НСП 1% [15:46:01]line > о реализуемом товаре [15:46:01]line ОКРУГЛЕНИЕ: -0.49 [15:46:01]line ИТОГО: 400.00 [15:46:01]line Внесено: 400.00 [15:46:01]line СДАЧА: 0.00 [15:46:01]line НСП 1% : 3.54 [15:46:01]line НДС 12% : 42.53 [15:46:01]line Наличными: 400.00 [15:46:01]line Безнал.: 0.00 [15:46:01]line Место: АЗС № 25 "Партнер Нефть" [15:46:01]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [15:46:01]line СНО: Общий режим [15:46:01]line Чек 141 03.03.2024 15:46 [15:46:01]line Смена: 323 ФФД: 1.0 [15:46:01]line ЗНМ: 0300000019 [15:46:01]line РНМ: 0000000000090573 [15:46:01]line Версия ККМ: 001 [15:46:01]line ФМ: 0000000000874798 [15:46:01]line ФД: 123284 [15:46:01]line ФПД: 108939995825709 [15:46:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T154603&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123284&fm=108939995825709&tin=02508201610067®Number=0000000000090573&sum=40000 [15:46:01]written 0, free lines is 4095 [15:46:01]OFD Sender: Processing packet 123284 [packets to send 112, broken 111] [15:46:01]ProducePacketName [15:46:01]name=ofd_packets/00123284 [15:46:01]OFD Sender: To server: pG, [15:46:01]CommunicateWithHost lk.salyk.kg:30040 [15:46:01]ConnectInit lk.salyk.kg [15:46:01]Connected sock=10 [15:46: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 37 39 38 0F 01 00 00 9C B6 07 01 FC 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 19 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 71 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 9D 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 8D 00 00 00 F4 03 04 00 3B 9B E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 94 E1 01 00 35 04 06 00 63 14 91 C0 C6 2D 57 E2 A4 69 A9 6E A4 2D [15:46:02]Write to MH i2c: 01 00 00 C4 34 F8 [15:46:02]Write i2c OK [15:46:02]MH_I2C_Read... [15:46:02]Read from MH i2c: 01 [15:46:02]MH_I2C_Read... [15:46:02]Read from MH i2c: 01 07 00 [15:46:02]MH_I2C_Read... [15:46:02]Read from MH i2c: 01 07 00 C4 34 00 00 00 00 00 E9 0C F4 [15:46:02]RasterBufferAndPrint [15:46:02]line [15:46:02]line [15:46:02]line [15:46:02]line [15:46:02]line [15:46:02]written 0, free lines is 3314 [15:46:02]MH_Cut [15:46:02]Write to MH i2c: D1 01 00 CB 34 01 D1 [15:46:02]Write i2c OK [15:46:02]MH_I2C_Read... [15:46:02]Read from MH i2c: D1 [15:46:02]MH_I2C_Read... [15:46:02]Read from MH i2c: D1 01 00 [15:46:02]MH_I2C_Read... [15:46:02]Read from MH i2c: D1 01 00 CB 34 00 D0 [15:46:02]Write to MH i2c: 01 00 00 CC 34 00 [15:46:02]Write i2c OK [15:46:02]MH_I2C_Read... [15:46:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 6A AE 47 00 0B 48 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 94 E1 01 00 F4 03 04 00 67 47 E4 65 B6 04 01 00 00 4E EC 78 1F 56 D0 F6 C5 [15:46:02]CommunicateWithHost err = 0 [15:46:02]CheckOFDResponse [15:46:02]1017 (14) - 77093643461234 [15:46:02]1041 (16) - 0000000000874798 [15:46:02]1040 (4) - 123284 [15:46:02]1012 (4) - 03.03.2024 09:48 [15:46:02]1206 (1) - 0 [15:46:02]OFD Sender: Remove packet 123284 [15:46:02]ProducePacketName [15:46:02]name=ofd_packets/00123284 [15:46:02]NVStorageDeleteData [15:46:02]OFD Sender: No OFD packet to send [15:46:02]*** Cut start [15:46:02]*** Purtial cut [15:46:02]*** Stage 1: CUTSNS_PIN = 1 [15:46:04]Read from MH i2c: 01 [15:46:04]MH_I2C_Read... [15:46:04]*** Stop cut motor [15:46:04]*** Cut end [15:46:04]Read from MH i2c: 01 07 00 [15:46:04]MH_I2C_Read... [15:46:04]Read from MH i2c: 01 07 00 CC 34 00 00 00 00 00 FF 0F 15 [15:46:04]process_action close_receipt done [15:46:04]requested_data is exist [15:46:04]produce_requested_data [15:46:04]requested_item fm.sn is exist - process it [15:46:04]wFMCommunicate request_size=4 [15:46:04]MH_SAM_APDU [15:46:04]CAPDU: 80 11 00 00 [15:46:04]Write to MH i2c: E2 08 00 CD 34 80 11 00 00 00 00 00 00 7B [15:46:04]Write i2c OK [15:46:04]MH_I2C_Read... [15:46:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:46:04]Read from MH i2c: E2 [15:46:04]MH_I2C_Read... [15:46:04]Read from MH i2c: E2 17 00 [15:46:04]MH_I2C_Read... [15:46:04]Read from MH i2c: E2 17 00 CD 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 D9 [15:46:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [15:46:04]wFMCommunicate OK [15:46:04]requested_item fd.num is exist - process it [15:46:04]SAM_PROTO_GetFieldsCounters [15:46:04]wFMCommunicate request_size=4 [15:46:04]MH_SAM_APDU [15:46:04]CAPDU: 80 13 00 00 [15:46:04]Write to MH i2c: E2 08 00 CE 34 80 13 00 00 00 00 00 00 7E [15:46:04]Write i2c OK [15:46:04]MH_I2C_Read... [15:46:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:46:04]Read from MH i2c: E2 [15:46:04]MH_I2C_Read... [15:46:04]Read from MH i2c: E2 62 00 [15:46:04]MH_I2C_Read... [15:46:04]Read from MH i2c: E2 62 00 CE 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 94 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 0A [15:46: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 94 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:46:04]wFMCommunicate OK [15:46:04]SAM_PROTO_GetFieldsCounters done [15:46:04]requested_item shift.num is exist - process it [15:46:04]requested_item shift.opened is exist - process it [15:46:04]req_shift_opened [15:46:04]FM_GetShiftState [15:46:04]SAM_PROTO_GetShiftState [15:46:04]wFMCommunicate request_size=4 [15:46:04]MH_SAM_APDU [15:46:04]CAPDU: 80 13 01 00 [15:46:04]Write to MH i2c: E2 08 00 CF 34 80 13 01 00 00 00 00 00 80 [15:46:04]Write i2c OK [15:46:04]MH_I2C_Read... [15:46:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:46:04]Read from MH i2c: E2 [15:46:04]MH_I2C_Read... [15:46:04]Read from MH i2c: E2 0E 00 [15:46:04]MH_I2C_Read... [15:46:04]Read from MH i2c: E2 0E 00 CF 34 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 42 [15:46:04]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [15:46:04]wFMCommunicate OK [15:46:04]SAM_PROTO_GetShiftState done [15:46:04]FM_GetShiftState done [15:46:04]req_shift_opened done [15:46:04]requested_item shift.open_date is exist - process it [15:46:04]req_shift_open_date [15:46:04]req_shift_open_date done [15:46:04]produce_requested_data done [15:46:04]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123284,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [15:46:04]process_action_free close_receipt [15:46:04]json_value_free [15:46:04]json_value_free done [15:46:04]process_json_proto returns [15:46:04]Send response to host [15:46:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123284,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [15:46:04]free response buf [15:46:04]execute_script done [15:46:04]execute_script returns [15:46:04]free content buf [15:46:04]Sock 9.Close socket [15:46:04]Sock 9.Thread stoped [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:45]accept exits with 7 [15:46:45]New connection [15:46:45]New thread 3067252068 created [15:46:45]Thread 3067395428 joined [15:46:45]Waiting for new connection... [15:46:45] Sock 7.Parse request [15:46:45]Sock 7.Check first char [15:46:45]Sock 7.First char is OK [15:46:45]request: POST /json_proto HTTP/1.0 [15:46:45]Method: POST [15:46:45]URL: /json_proto [15:46:45]Method is POST - this is cgi request [15:46:45]url: /json_proto [15:46:45]query_string will be loaded in cgi processing [15:46:45]execute_cgi json_proto POST (null) [15:46:45]execute_cgi path=json_proto method=POST [15:46:45]POST find Content-Length [15:46:45]Host: 172.17.48.197:8080 [15:46:45]Content-Length: 809 [15:46:45]Content-Type: application/json [15:46:45] [15:46:45]POST finish read [15:46:45]Found Content-Length = 809 [15:46:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106221", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 21.590, "sum" : 1500.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:46:45]execute_script... [15:46:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106221", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 21.590, "sum" : 1500.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:46:45]POST & json_proto [15:46:45]process_json_proto [15:46:45]json parsed OK: [15:46:45]protocol is kg_v1.0 [15:46:45]action value=close_receipt [15:46:45]process_action close_receipt [15:46:45]cmd_close_receipt [15:46:45]MH_GetDate [15:46:45]Write to MH i2c: F0 00 00 D0 34 F3 [15:46:45]Write i2c OK [15:46:45]MH_I2C_Read... [15:46:45]Read from MH i2c: F0 [15:46:45]MH_I2C_Read... [15:46:45]Read from MH i2c: F0 09 00 [15:46:45]MH_I2C_Read... [15:46:45]Read from MH i2c: F0 09 00 D0 34 00 69 9B E4 65 6C AF E3 65 AC [15:46:45]GetLastDocTimeStamp 1709480763 [15:46:45]current date 1709480809 [15:46:45]FM_GetShiftState [15:46:45]SAM_PROTO_GetShiftState [15:46:45]wFMCommunicate request_size=4 [15:46:45]MH_SAM_APDU [15:46:45]CAPDU: 80 13 01 00 [15:46:45]Write to MH i2c: E2 08 00 D1 34 80 13 01 00 00 00 00 00 82 [15:46:45]Write i2c OK [15:46:45]MH_I2C_Read... [15:46:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:46:45]Read from MH i2c: E2 [15:46:45]MH_I2C_Read... [15:46:45]Read from MH i2c: E2 0E 00 [15:46:45]MH_I2C_Read... [15:46:45]Read from MH i2c: E2 0E 00 D1 34 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 44 [15:46:45]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [15:46:45]wFMCommunicate OK [15:46:45]SAM_PROTO_GetShiftState done [15:46:45]FM_GetShiftState done [15:46:45]opened in 1709425579 [15:46:45]opened+sec_in_day 1709511979 [15:46:45]quantity*price = 150050 [15:46:45]sum+1 = 150052 [15:46:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.51 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 0.00 Безнал.: 1500.51 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 142 03.03.2024 15:46 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874798 ФД: 123285 ФПД: 266081705494914 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T154649&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123285&fm=266081705494914&tin=02508201610067®Number=0000000000090573&sum=150051 [15:46:46]StoreToDocumentArchive [15:46:46]shift 323 fd 123285 [15:46:46]save to /storage/0323/doc_00123285 [15:46:46]save last doc name /storage/0323/doc_00123285 to /storage/kkm_last_doc_name [15:46:46]save OK [15:46:46]Clear old archive folders... [15:46:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:46:46]tlvbuf is B6FC1010 [15:46:46]SAM_PROTO_ClearQueue [15:46:46]wFMCommunicate request_size=4 [15:46:46]MH_SAM_APDU [15:46:46]CAPDU: 80 09 00 00 [15:46:46]Write to MH i2c: E2 08 00 DE 34 80 09 00 00 00 00 00 00 84 [15:46:47]Write i2c OK [15:46:47]MH_I2C_Read... [15:46:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:46:47]Read from MH i2c: E2 [15:46:47]MH_I2C_Read... [15:46:47]Read from MH i2c: E2 03 00 [15:46:47]MH_I2C_Read... [15:46:47]Read from MH i2c: E2 03 00 DE 34 00 90 00 86 [15:46:47]RAPDU: 90 00 [15:46:47]wFMCommunicate OK [15:46:47]SAM_PROTO_ClearQueue done [15:46:47]KKMCreateOFDPacket [15:46:47]OFDProtocolAddRootSTLVToBuf [15:46:47]FM_MakeSignedData [15:46:47]FM_MakeSignedData [15:46:47]SAM_PROTO_SignData [15:46:47]wFMCommunicate request_size=4 [15:46:47]MH_SAM_APDU [15:46:47]CAPDU: 80 0D 01 02 [15:46:47]Write to MH i2c: E2 08 00 DF 34 80 0D 01 02 00 00 00 00 8C [15:46:47]Write i2c OK [15:46:47]MH_I2C_Read... [15:46:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:46:47]Read from MH i2c: E2 [15:46:47]MH_I2C_Read... [15:46:47]Read from MH i2c: E2 03 00 [15:46:47]MH_I2C_Read... [15:46:47]Read from MH i2c: E2 03 00 DF 34 00 90 00 87 [15:46:47]RAPDU: 90 00 [15:46:47]wFMCommunicate OK [15:46:47]wFMCommunicate request_size=255 [15:46:47]MH_SAM_APDU [15:46:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 54 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 23 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 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 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 69 9B E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 95 E1 01 00 35 04 06 00 F1 [15:46:47]Write to MH i2c: E2 02 01 E0 34 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 54 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 23 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 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 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 69 9B E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 95 E1 01 00 35 04 06 00 F1 00 00 15 [15:46:47]Write i2c OK [15:46:47]MH_I2C_Read... [15:46:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:46:47]Read from MH i2c: E2 [15:46:47]MH_I2C_Read... [15:46:47]Read from MH i2c: E2 03 00 [15:46:47]MH_I2C_Read... [15:46:47]Read from MH i2c: E2 03 00 E0 34 00 90 00 88 [15:46:47]RAPDU: 90 00 [15:46:47]wFMCommunicate OK [15:46:47]wFMCommunicate request_size=10 [15:46:47]MH_SAM_APDU [15:46:47]CAPDU: 80 0D 02 02 05 FF F9 89 89 82 [15:46:47]Write to MH i2c: E2 0D 00 E1 34 80 0D 02 02 05 00 FF F9 89 89 82 00 00 25 [15:46:47]Write i2c OK [15:46:47]MH_I2C_Read... [15:46:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:46:47]Read from MH i2c: E2 [15:46:47]MH_I2C_Read... [15:46:47]Read from MH i2c: E2 03 00 [15:46:47]MH_I2C_Read... [15:46:47]Read from MH i2c: E2 03 00 E1 34 00 90 00 89 [15:46:47]RAPDU: 90 00 [15:46:47]wFMCommunicate OK [15:46:47]wFMCommunicate request_size=4 [15:46:47]MH_SAM_APDU [15:46:47]CAPDU: 80 0D 03 02 [15:46:47]Write to MH i2c: E2 08 00 E2 34 80 0D 03 02 00 00 00 00 91 [15:46:47]Write i2c OK [15:46:47]MH_I2C_Read... [15:46:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:46:47]Read from MH i2c: E2 [15:46:47]MH_I2C_Read... [15:46:47]Read from MH i2c: E2 0B 00 [15:46:47]MH_I2C_Read... [15:46:47]Read from MH i2c: E2 0B 00 E2 34 00 48 3E D5 E1 01 B9 6D 6A 90 00 5F [15:46:47]RAPDU: 48 3E D5 E1 01 B9 6D 6A 90 00 [15:46:47]wFMCommunicate OK [15:46:47]SAM_PROTO_SignData done [15:46:47]FM_MakeSignedData done [15:46:47]CreateOFDProtocolMessage [15:46:47]wFMCommunicate request_size=4 [15:46:47]MH_SAM_APDU [15:46:47]CAPDU: 80 11 00 00 [15:46:47]Write to MH i2c: E2 08 00 E3 34 80 11 00 00 00 00 00 00 91 [15:46:47]Write i2c OK [15:46:47]MH_I2C_Read... [15:46:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:46:47]Read from MH i2c: E2 [15:46:47]MH_I2C_Read... [15:46:47]Read from MH i2c: E2 17 00 [15:46:47]MH_I2C_Read... [15:46:47]Read from MH i2c: E2 17 00 E3 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 EF [15:46:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [15:46:47]wFMCommunicate OK [15:46:47]CreateOFDProtocolMessage done [15:46:47]OFDSenderStorePacket 123285 [15:46:47]StoreOFDPacket docnum=123285 [15:46:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 43 E4 07 01 3A 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 54 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 23 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 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 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 69 9B E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 95 E1 01 00 35 04 06 00 F1 FF F9 89 89 82 48 3E D5 E1 01 B9 6D 6A [15:46:47]CheckFolder [15:46:47]dirname=/storage/ofd_packets [15:46:47]CheckFolder done [15:46:47]ProducePacketName [15:46:47]name=ofd_packets/00123285 [15:46:47]NVStorageSaveData ofd_packets/00123285 [15:46:47]File name is /storage/ofd_packets/00123285 [15:46:47]Write 301 bytes [15:46:47]NVStorageSaveData done [15:46:47]OFDSenderStorePacket done [15:46:47]KKMCreateOFDPacket done [15:46:47]NVStorageSaveData kkm_last_timestamp [15:46:47]File name is /storage/kkm_last_timestamp [15:46:47]Write 4 bytes [15:46:47]NVStorageSaveData done [15:46:47]ExternCall_PrintAddStr [15:46:47]wPrintStart [15:46:47]Write to MH i2c: 01 00 00 E4 34 18 [15:46:47]Write i2c OK [15:46:47]MH_I2C_Read... [15:46:47]Read from MH i2c: 01 [15:46:47]MH_I2C_Read... [15:46:47]Read from MH i2c: 01 07 00 [15:46:47]MH_I2C_Read... [15:46:47]Read from MH i2c: 01 07 00 E4 34 00 00 00 00 00 FF 0F 2D [15:46:47]RasterBufferAndPrint [15:46:47]line Счет N : (1)1106221 [15:46:47]line ИНН: 02508201610067 [15:46:47]line Контрольно-Кассовый Чек [15:46:47]line ПРОДАЖА [15:46:47]line ТРК (МРК, ГНК) : 13 [15:46:47]line Товар: 2710124500 [15:46:47]line Аи-95-К-5 [15:46:47]line 21.590 * 69.50 [15:46:47]line = 1500.51 [15:46:47]line НДС 12% НСП 1% [15:46:47]line > о реализуемом товаре [15:46:47]line ИТОГО: 1500.51 [15:46:47]line НСП 1% : 13.28 [15:46:47]line НДС 12% : 159.35 [15:46:47]line Наличными: 0.00 [15:46:47]line Безнал.: 1500.51 [15:46:47]line Место: АЗС № 25 "Партнер Нефть" [15:46:47]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [15:46:47]line СНО: Общий режим [15:46:47]line Чек 142 03.03.2024 15:46 [15:46:47]line Смена: 323 ФФД: 1.0 [15:46:47]line ЗНМ: 0300000019 [15:46:47]line РНМ: 0000000000090573 [15:46:47]line Версия ККМ: 001 [15:46:47]line Платежная система: О! деньги [15:46:47]line ФМ: 0000000000874798 [15:46:47]line ФД: 123285 [15:46:47]line ФПД: 266081705494914 [15:46:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T154649&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123285&fm=266081705494914&tin=02508201610067®Number=0000000000090573&sum=150051 [15:46:47]OFD Sender: Processing packet 123285 [packets to send 112, broken 111] [15:46:47]ProducePacketName [15:46:47]name=ofd_packets/00123285 [15:46:47]OFD Sender: To server: pG, [15:46:47]CommunicateWithHost lk.salyk.kg:30040 [15:46:47]ConnectInit lk.salyk.kg [15:46:47]written 0, free lines is 4095 [15:46:47]Connected sock=10 [15:46:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 43 E4 07 01 3A 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 54 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 23 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 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 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 69 9B E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 95 E1 01 00 35 04 06 00 F1 FF F9 89 89 82 48 3E D5 E1 01 B9 6D 6A [15:46:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 3F 83 47 00 42 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 37 39 38 10 04 04 00 95 E1 01 00 F4 03 04 00 95 47 E4 65 B6 04 01 00 00 52 9F 8C 63 05 28 74 45 [15:46:48]CommunicateWithHost err = 0 [15:46:48]CheckOFDResponse [15:46:48]1017 (14) - 77093643461234 [15:46:48]1041 (16) - 0000000000874798 [15:46:48]1040 (4) - 123285 [15:46:48]1012 (4) - 03.03.2024 09:49 [15:46:48]1206 (1) - 0 [15:46:48]OFD Sender: Remove packet 123285 [15:46:48]ProducePacketName [15:46:48]name=ofd_packets/00123285 [15:46:48]NVStorageDeleteData [15:46:48]Write to MH i2c: 01 00 00 0E 35 43 [15:46:48]Write i2c OK [15:46:48]MH_I2C_Read... [15:46:48]Read from MH i2c: 01 [15:46:48]MH_I2C_Read... [15:46:48]Read from MH i2c: 01 07 00 [15:46:48]MH_I2C_Read... [15:46:48]Read from MH i2c: 01 07 00 0E 35 00 00 00 00 00 08 0D 5F [15:46:48]RasterBufferAndPrint [15:46:48]line [15:46:48]line [15:46:48]line [15:46:48]line [15:46:48]line [15:46:48]written 0, free lines is 3345 [15:46:48]MH_Cut [15:46:48]Write to MH i2c: D1 01 00 15 35 01 1C [15:46:48]Write i2c OK [15:46:48]MH_I2C_Read... [15:46:48]Read from MH i2c: D1 [15:46:48]MH_I2C_Read... [15:46:48]Read from MH i2c: D1 01 00 [15:46:48]MH_I2C_Read... [15:46:48]Read from MH i2c: D1 01 00 15 35 00 1B [15:46:48]Write to MH i2c: 01 00 00 16 35 4B [15:46:48]Write i2c OK [15:46:48]MH_I2C_Read... [15:46:48]OFD Sender: No OFD packet to send [15:46:48]*** Cut start [15:46:48]*** Purtial cut [15:46:48]*** Stage 1: CUTSNS_PIN = 1 [15:46:50]Read from MH i2c: 01 [15:46:51]MH_I2C_Read... [15:46:51]*** Stop cut motor [15:46:51]*** Cut end [15:46:51]Read from MH i2c: 01 07 00 [15:46:51]MH_I2C_Read... [15:46:51]Read from MH i2c: 01 07 00 16 35 00 00 00 00 00 FF 0F 60 [15:46:51]process_action close_receipt done [15:46:51]requested_data is exist [15:46:51]produce_requested_data [15:46:51]requested_item fm.sn is exist - process it [15:46:51]wFMCommunicate request_size=4 [15:46:51]MH_SAM_APDU [15:46:51]CAPDU: 80 11 00 00 [15:46:51]Write to MH i2c: E2 08 00 17 35 80 11 00 00 00 00 00 00 C6 [15:46:51]Write i2c OK [15:46:51]MH_I2C_Read... [15:46:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:46:51]Read from MH i2c: E2 [15:46:51]MH_I2C_Read... [15:46:51]Read from MH i2c: E2 17 00 [15:46:51]MH_I2C_Read... [15:46:51]Read from MH i2c: E2 17 00 17 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 24 [15:46:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [15:46:51]wFMCommunicate OK [15:46:51]requested_item fd.num is exist - process it [15:46:51]SAM_PROTO_GetFieldsCounters [15:46:51]wFMCommunicate request_size=4 [15:46:51]MH_SAM_APDU [15:46:51]CAPDU: 80 13 00 00 [15:46:51]Write to MH i2c: E2 08 00 18 35 80 13 00 00 00 00 00 00 C9 [15:46:51]Write i2c OK [15:46:51]MH_I2C_Read... [15:46:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:46:51]Read from MH i2c: E2 [15:46:51]MH_I2C_Read... [15:46:51]Read from MH i2c: E2 62 00 [15:46:51]MH_I2C_Read... [15:46:51]Read from MH i2c: E2 62 00 18 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 95 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 59 [15:46: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 95 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:46:51]wFMCommunicate OK [15:46:51]SAM_PROTO_GetFieldsCounters done [15:46:51]requested_item shift.num is exist - process it [15:46:51]requested_item shift.opened is exist - process it [15:46:51]req_shift_opened [15:46:51]FM_GetShiftState [15:46:51]SAM_PROTO_GetShiftState [15:46:51]wFMCommunicate request_size=4 [15:46:51]MH_SAM_APDU [15:46:51]CAPDU: 80 13 01 00 [15:46:51]Write to MH i2c: E2 08 00 19 35 80 13 01 00 00 00 00 00 CB [15:46:51]Write i2c OK [15:46:51]MH_I2C_Read... [15:46:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:46:51]Read from MH i2c: E2 [15:46:51]MH_I2C_Read... [15:46:51]Read from MH i2c: E2 0E 00 [15:46:51]MH_I2C_Read... [15:46:51]Read from MH i2c: E2 0E 00 19 35 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 8D [15:46:51]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [15:46:51]wFMCommunicate OK [15:46:51]SAM_PROTO_GetShiftState done [15:46:51]FM_GetShiftState done [15:46:51]req_shift_opened done [15:46:51]requested_item shift.open_date is exist - process it [15:46:51]req_shift_open_date [15:46:51]req_shift_open_date done [15:46:51]produce_requested_data done [15:46:51]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123285,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [15:46:51]process_action_free close_receipt [15:46:51]json_value_free [15:46:51]json_value_free done [15:46:51]process_json_proto returns [15:46:51]Send response to host [15:46:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123285,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [15:46:51]free response buf [15:46:51]execute_script done [15:46:51]execute_script returns [15:46:51]free content buf [15:46:51]Sock 7.Close socket [15:46:51]Sock 7.Thread stoped [15:46:53]OFD Sender: No OFD packet to send [15:46:58]OFD Sender: No OFD packet to send [15:47:03]OFD Sender: No OFD packet to send [15:47:08]OFD Sender: No OFD packet to send [15:47:13]OFD Sender: No OFD packet to send [15:47:18]OFD Sender: No OFD packet to send [15:47:23]OFD Sender: No OFD packet to send [15:47:28]OFD Sender: No OFD packet to send [15:47:33]OFD Sender: No OFD packet to send [15:47:38]OFD Sender: No OFD packet to send [15:47:43]OFD Sender: No OFD packet to send [15:47:48]OFD Sender: No OFD packet to send [15:47:53]OFD Sender: No OFD packet to send [15:47:58]OFD Sender: No OFD packet to send [15:48:03]OFD Sender: No OFD packet to send [15:48:08]OFD Sender: No OFD packet to send [15:48:13]OFD Sender: No OFD packet to send [15:48:18]OFD Sender: No OFD packet to send [15:48:23]OFD Sender: No OFD packet to send [15:48:28]OFD Sender: No OFD packet to send [15:48:33]OFD Sender: No OFD packet to send [15:48:38]OFD Sender: No OFD packet to send [15:48:41]accept exits with 9 [15:48:41]New connection [15:48:41]New thread 3067395428 created [15:48:41]Thread 3067252068 joined [15:48:41]Waiting for new connection... [15:48:41] Sock 9.Parse request [15:48:41]Sock 9.Check first char [15:48:41]Sock 9.First char is OK [15:48:41]request: POST /json_proto HTTP/1.0 [15:48:41]Method: POST [15:48:41]URL: /json_proto [15:48:41]Method is POST - this is cgi request [15:48:41]url: /json_proto [15:48:41]query_string will be loaded in cgi processing [15:48:41]execute_cgi json_proto POST (null) [15:48:41]execute_cgi path=json_proto method=POST [15:48:41]POST find Content-Length [15:48:41]Host: 172.17.48.197:8080 [15:48:41]Content-Length: 683 [15:48:41]Content-Type: application/json [15:48:41] [15:48:41]POST finish read [15:48:41]Found Content-Length = 683 [15:48:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106223", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 28.780, "sum" : 2000.21, "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" ] } } [15:48:41]execute_script... [15:48: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)1106223", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 28.780, "sum" : 2000.21, "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" ] } } [15:48:41]POST & json_proto [15:48:41]process_json_proto [15:48:41]json parsed OK: [15:48:41]protocol is kg_v1.0 [15:48:41]action value=close_receipt [15:48:41]process_action close_receipt [15:48:41]cmd_close_receipt [15:48:41]MH_GetDate [15:48:41]Write to MH i2c: F0 00 00 1A 35 3E [15:48:41]Write i2c OK [15:48:41]MH_I2C_Read... [15:48:41]Read from MH i2c: F0 [15:48:41]MH_I2C_Read... [15:48:41]Read from MH i2c: F0 09 00 [15:48:41]MH_I2C_Read... [15:48:41]Read from MH i2c: F0 09 00 1A 35 00 DD 9B E4 65 6C AF E3 65 6B [15:48:41]GetLastDocTimeStamp 1709480809 [15:48:41]current date 1709480925 [15:48:41]FM_GetShiftState [15:48:41]SAM_PROTO_GetShiftState [15:48:41]wFMCommunicate request_size=4 [15:48:41]MH_SAM_APDU [15:48:41]CAPDU: 80 13 01 00 [15:48:41]Write to MH i2c: E2 08 00 1B 35 80 13 01 00 00 00 00 00 CD [15:48:41]Write i2c OK [15:48:41]MH_I2C_Read... [15:48:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:48:41]Read from MH i2c: E2 [15:48:41]MH_I2C_Read... [15:48:41]Read from MH i2c: E2 0E 00 [15:48:41]MH_I2C_Read... [15:48:41]Read from MH i2c: E2 0E 00 1B 35 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 8F [15:48:41]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [15:48:41]wFMCommunicate OK [15:48:41]SAM_PROTO_GetShiftState done [15:48:41]FM_GetShiftState done [15:48:41]opened in 1709425579 [15:48:41]opened+sec_in_day 1709511979 [15:48:41]quantity*price = 200021 [15:48:41]sum+1 = 200022 [15:48:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.41 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 143 03.03.2024 15:48 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123286 ФПД: 232428717891316 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T154845&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123286&fm=232428717891316&tin=02508201610067®Number=0000000000090573&sum=200000 [15:48:43]StoreToDocumentArchive [15:48:43]shift 323 fd 123286 [15:48:43]save to /storage/0323/doc_00123286 [15:48:43]save last doc name /storage/0323/doc_00123286 to /storage/kkm_last_doc_name [15:48:43]save OK [15:48:43]Clear old archive folders... [15:48:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:48:43]tlvbuf is 00EA6CC0 [15:48:43]SAM_PROTO_ClearQueue [15:48:43]wFMCommunicate request_size=4 [15:48:43]MH_SAM_APDU [15:48:43]CAPDU: 80 09 00 00 [15:48:43]Write to MH i2c: E2 08 00 28 35 80 09 00 00 00 00 00 00 CF [15:48:43]Write i2c OK [15:48:43]MH_I2C_Read... [15:48:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:48:43]Read from MH i2c: E2 [15:48:43]MH_I2C_Read... [15:48:43]Read from MH i2c: E2 03 00 [15:48:43]MH_I2C_Read... [15:48:43]Read from MH i2c: E2 03 00 28 35 00 90 00 D1 [15:48:43]RAPDU: 90 00 [15:48:43]wFMCommunicate OK [15:48:43]SAM_PROTO_ClearQueue done [15:48:43]KKMCreateOFDPacket [15:48:43]OFDProtocolAddRootSTLVToBuf [15:48:43]FM_MakeSignedData [15:48:43]FM_MakeSignedData [15:48:43]SAM_PROTO_SignData [15:48:43]wFMCommunicate request_size=4 [15:48:43]MH_SAM_APDU [15:48:43]CAPDU: 80 0D 01 02 [15:48:43]Write to MH i2c: E2 08 00 29 35 80 0D 01 02 00 00 00 00 D7 [15:48:43]Write i2c OK [15:48:43]MH_I2C_Read... [15:48:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:48:43]Read from MH i2c: E2 [15:48:43]MH_I2C_Read... [15:48:43]Read from MH i2c: E2 03 00 [15:48:43]MH_I2C_Read... [15:48:43]Read from MH i2c: E2 03 00 29 35 00 90 00 D2 [15:48:43]RAPDU: 90 00 [15:48:43]wFMCommunicate OK [15:48:43]wFMCommunicate request_size=255 [15:48:43]MH_SAM_APDU [15:48: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 35 FF 03 08 00 03 6C 70 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 55 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 F9 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 8F 00 00 00 F4 03 04 00 DD 9B E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 96 E1 01 00 35 04 06 00 D3 [15:48:43]Write to MH i2c: E2 02 01 2A 35 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 6C 70 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 55 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 F9 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 8F 00 00 00 F4 03 04 00 DD 9B E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 96 E1 01 00 35 04 06 00 D3 00 00 2B [15:48:43]Write i2c OK [15:48:43]MH_I2C_Read... [15:48:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:48:43]Read from MH i2c: E2 [15:48:43]MH_I2C_Read... [15:48:43]Read from MH i2c: E2 03 00 [15:48:43]MH_I2C_Read... [15:48:43]Read from MH i2c: E2 03 00 2A 35 00 90 00 D3 [15:48:43]RAPDU: 90 00 [15:48:43]wFMCommunicate OK [15:48:43]wFMCommunicate request_size=10 [15:48:43]MH_SAM_APDU [15:48:43]CAPDU: 80 0D 02 02 05 64 87 2A 5E F4 [15:48:43]Write to MH i2c: E2 0D 00 2B 35 80 0D 02 02 05 00 64 87 2A 5E F4 00 00 4B [15:48:43]Write i2c OK [15:48:43]MH_I2C_Read... [15:48:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:48:43]Read from MH i2c: E2 [15:48:43]MH_I2C_Read... [15:48:43]Read from MH i2c: E2 03 00 [15:48:43]MH_I2C_Read... [15:48:43]Read from MH i2c: E2 03 00 2B 35 00 90 00 D4 [15:48:43]RAPDU: 90 00 [15:48:43]wFMCommunicate OK [15:48:43]wFMCommunicate request_size=4 [15:48:43]MH_SAM_APDU [15:48:43]CAPDU: 80 0D 03 02 [15:48:43]Write to MH i2c: E2 08 00 2C 35 80 0D 03 02 00 00 00 00 DC [15:48:43]Write i2c OK [15:48:43]MH_I2C_Read... [15:48:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:48:43]Read from MH i2c: E2 [15:48:43]MH_I2C_Read... [15:48:43]Read from MH i2c: E2 0B 00 [15:48:43]MH_I2C_Read... [15:48:43]Read from MH i2c: E2 0B 00 2C 35 00 C6 6C D4 A0 3C 15 53 98 90 00 BF [15:48:43]RAPDU: C6 6C D4 A0 3C 15 53 98 90 00 [15:48:43]wFMCommunicate OK [15:48:43]SAM_PROTO_SignData done [15:48:43]FM_MakeSignedData done [15:48:43]CreateOFDProtocolMessage [15:48:43]wFMCommunicate request_size=4 [15:48:43]MH_SAM_APDU [15:48:43]CAPDU: 80 11 00 00 [15:48:43]Write to MH i2c: E2 08 00 2D 35 80 11 00 00 00 00 00 00 DC [15:48:43]Write i2c OK [15:48:43]MH_I2C_Read... [15:48:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:48:43]Read from MH i2c: E2 [15:48:43]MH_I2C_Read... [15:48:43]Read from MH i2c: E2 17 00 [15:48:43]MH_I2C_Read... [15:48:43]Read from MH i2c: E2 17 00 2D 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 3A [15:48:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [15:48:43]wFMCommunicate OK [15:48:43]CreateOFDProtocolMessage done [15:48:43]OFDSenderStorePacket 123286 [15:48:43]StoreOFDPacket docnum=123286 [15:48:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 DB 8F 07 01 E0 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 6C 70 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 55 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 F9 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 8F 00 00 00 F4 03 04 00 DD 9B E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 96 E1 01 00 35 04 06 00 D3 64 87 2A 5E F4 C6 6C D4 A0 3C 15 53 98 [15:48:43]CheckFolder [15:48:43]dirname=/storage/ofd_packets [15:48:43]CheckFolder done [15:48:43]ProducePacketName [15:48:43]name=ofd_packets/00123286 [15:48:43]NVStorageSaveData ofd_packets/00123286 [15:48:43]File name is /storage/ofd_packets/00123286 [15:48:43]Write 301 bytes [15:48:43]NVStorageSaveData done [15:48:43]OFDSenderStorePacket done [15:48:43]KKMCreateOFDPacket done [15:48:43]NVStorageSaveData kkm_last_timestamp [15:48:43]File name is /storage/kkm_last_timestamp [15:48:43]Write 4 bytes [15:48:43]NVStorageSaveData done [15:48:43]ExternCall_PrintAddStr [15:48:43]wPrintStart [15:48:43]Write to MH i2c: 01 00 00 2E 35 63 [15:48:43]Write i2c OK [15:48:43]MH_I2C_Read... [15:48:43]Read from MH i2c: 01 [15:48:43]MH_I2C_Read... [15:48:43]Read from MH i2c: 01 07 00 [15:48:43]MH_I2C_Read... [15:48:43]Read from MH i2c: 01 07 00 2E 35 00 00 00 00 00 FF 0F 78 [15:48:43]RasterBufferAndPrint [15:48:43]line Счет N : (1)1106223 [15:48:43]line ИНН: 02508201610067 [15:48:43]line Контрольно-Кассовый Чек [15:48:43]line ПРОДАЖА [15:48:43]line ТРК (МРК, ГНК) : 23 [15:48:43]line Товар: 2710124500 [15:48:43]line Аи-95-К-5 [15:48:43]line 28.780 * 69.50 [15:48:43]line = 2000.21 [15:48:43]line НДС 12% НСП 1% [15:48:43]line > о реализуемом товаре [15:48:43]line ОКРУГЛЕНИЕ: -0.21 [15:48:43]line ИТОГО: 2000.00 [15:48:43]line Внесено: 2000.00 [15:48:43]line СДАЧА: 0.00 [15:48:43]line НСП 1% : 17.70 [15:48:43]line НДС 12% : 212.41 [15:48:43]line Наличными: 2000.00 [15:48:43]line Безнал.: 0.00 [15:48:43]line Место: АЗС № 25 "Партнер Нефть" [15:48:43]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [15:48:43]line СНО: Общий режим [15:48:43]line Чек 143 03.03.2024 15:48 [15:48:43]line Смена: 323 ФФД: 1.0 [15:48:43]line ЗНМ: 0300000019 [15:48:43]line РНМ: 0000000000090573 [15:48:43]line Версия ККМ: 001 [15:48:43]line ФМ: 0000000000874798 [15:48:43]line ФД: 123286 [15:48:43]line ФПД: 232428717891316 [15:48:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T154845&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123286&fm=232428717891316&tin=02508201610067®Number=0000000000090573&sum=200000 [15:48:43]OFD Sender: Processing packet 123286 [packets to send 112, broken 111] [15:48:43]ProducePacketName [15:48:43]name=ofd_packets/00123286 [15:48:43]OFD Sender: To server: pG, [15:48:43]CommunicateWithHost lk.salyk.kg:30040 [15:48:43]ConnectInit lk.salyk.kg [15:48:43]written 0, free lines is 4095 [15:48:44]Connected sock=10 [15:48: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 37 39 38 0F 01 00 00 DB 8F 07 01 E0 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 6C 70 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 55 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 F9 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 8F 00 00 00 F4 03 04 00 DD 9B E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 96 E1 01 00 35 04 06 00 D3 64 87 2A 5E F4 C6 6C D4 A0 3C 15 53 98 [15:48:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 36 5D 47 00 34 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 37 39 38 10 04 04 00 96 E1 01 00 F4 03 04 00 09 48 E4 65 B6 04 01 00 00 28 EB 76 15 9A BA 67 64 [15:48:44]CommunicateWithHost err = 0 [15:48:44]CheckOFDResponse [15:48:44]1017 (14) - 77093643461234 [15:48:44]1041 (16) - 0000000000874798 [15:48:44]1040 (4) - 123286 [15:48:44]1012 (4) - 03.03.2024 09:51 [15:48:44]1206 (1) - 0 [15:48:44]OFD Sender: Remove packet 123286 [15:48:44]ProducePacketName [15:48:44]name=ofd_packets/00123286 [15:48:44]NVStorageDeleteData [15:48:44]Write to MH i2c: 01 00 00 59 35 8E [15:48:44]Write i2c OK [15:48:44]MH_I2C_Read... [15:48:44]Read from MH i2c: 01 [15:48:44]MH_I2C_Read... [15:48:44]Read from MH i2c: 01 07 00 [15:48:44]MH_I2C_Read... [15:48:44]Read from MH i2c: 01 07 00 59 35 00 00 00 00 00 E7 0C 88 [15:48:44]RasterBufferAndPrint [15:48:44]line [15:48:44]line [15:48:44]line [15:48:44]line [15:48:44]line [15:48:44]written 0, free lines is 3312 [15:48:44]MH_Cut [15:48:44]Write to MH i2c: D1 01 00 60 35 01 67 [15:48:44]Write i2c OK [15:48:44]MH_I2C_Read... [15:48:44]Read from MH i2c: D1 [15:48:44]MH_I2C_Read... [15:48:44]Read from MH i2c: D1 01 00 [15:48:44]MH_I2C_Read... [15:48:44]Read from MH i2c: D1 01 00 60 35 00 66 [15:48:44]Write to MH i2c: 01 00 00 61 35 96 [15:48:44]Write i2c OK [15:48:44]MH_I2C_Read... [15:48:44]OFD Sender: No OFD packet to send [15:48:45]*** Cut start [15:48:45]*** Purtial cut [15:48:45]*** Stage 1: CUTSNS_PIN = 1 [15:48:47]Read from MH i2c: 01 [15:48:47]MH_I2C_Read... [15:48:47]*** Stop cut motor [15:48:47]*** Cut end [15:48:47]Read from MH i2c: 01 07 00 [15:48:47]MH_I2C_Read... [15:48:47]Read from MH i2c: 01 07 00 61 35 00 00 00 00 00 FF 0F AB [15:48:47]process_action close_receipt done [15:48:47]requested_data is exist [15:48:47]produce_requested_data [15:48:47]requested_item fm.sn is exist - process it [15:48:47]wFMCommunicate request_size=4 [15:48:47]MH_SAM_APDU [15:48:47]CAPDU: 80 11 00 00 [15:48:47]Write to MH i2c: E2 08 00 62 35 80 11 00 00 00 00 00 00 11 [15:48:47]Write i2c OK [15:48:47]MH_I2C_Read... [15:48:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:48:47]Read from MH i2c: E2 [15:48:47]MH_I2C_Read... [15:48:47]Read from MH i2c: E2 17 00 [15:48:47]MH_I2C_Read... [15:48:47]Read from MH i2c: E2 17 00 62 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 6F [15:48:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [15:48:47]wFMCommunicate OK [15:48:47]requested_item fd.num is exist - process it [15:48:47]SAM_PROTO_GetFieldsCounters [15:48:47]wFMCommunicate request_size=4 [15:48:47]MH_SAM_APDU [15:48:47]CAPDU: 80 13 00 00 [15:48:47]Write to MH i2c: E2 08 00 63 35 80 13 00 00 00 00 00 00 14 [15:48:47]Write i2c OK [15:48:47]MH_I2C_Read... [15:48:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:48:47]Read from MH i2c: E2 [15:48:47]MH_I2C_Read... [15:48:47]Read from MH i2c: E2 62 00 [15:48:47]MH_I2C_Read... [15:48:47]Read from MH i2c: E2 62 00 63 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 96 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 A8 [15: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 96 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:48:47]wFMCommunicate OK [15:48:47]SAM_PROTO_GetFieldsCounters done [15:48:47]requested_item shift.num is exist - process it [15:48:47]requested_item shift.opened is exist - process it [15:48:47]req_shift_opened [15:48:47]FM_GetShiftState [15:48:47]SAM_PROTO_GetShiftState [15:48:47]wFMCommunicate request_size=4 [15:48:47]MH_SAM_APDU [15:48:47]CAPDU: 80 13 01 00 [15:48:47]Write to MH i2c: E2 08 00 64 35 80 13 01 00 00 00 00 00 16 [15:48:47]Write i2c OK [15:48:47]MH_I2C_Read... [15:48:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:48:47]Read from MH i2c: E2 [15:48:47]MH_I2C_Read... [15:48:47]Read from MH i2c: E2 0E 00 [15:48:47]MH_I2C_Read... [15:48:47]Read from MH i2c: E2 0E 00 64 35 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 D8 [15:48:47]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [15:48:47]wFMCommunicate OK [15:48:47]SAM_PROTO_GetShiftState done [15:48:47]FM_GetShiftState done [15:48:47]req_shift_opened done [15:48:47]requested_item shift.open_date is exist - process it [15:48:47]req_shift_open_date [15:48:47]req_shift_open_date done [15:48:47]produce_requested_data done [15:48:47]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123286,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [15:48:47]process_action_free close_receipt [15:48:47]json_value_free [15:48:47]json_value_free done [15:48:47]process_json_proto returns [15:48:47]Send response to host [15:48:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123286,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [15:48:47]free response buf [15:48:47]execute_script done [15:48:47]execute_script returns [15:48:47]free content buf [15:48:47]Sock 9.Close socket [15:48:47]Sock 9.Thread stoped [15:48:49]OFD Sender: No OFD packet to send [15:48:54]OFD Sender: No OFD packet to send [15:48:59]OFD Sender: No OFD packet to send [15:49:04]OFD Sender: No OFD packet to send [15:49:09]OFD Sender: No OFD packet to send [15:49:14]OFD Sender: No OFD packet to send [15:49:19]OFD Sender: No OFD packet to send [15:49:24]OFD Sender: No OFD packet to send [15:49:29]OFD Sender: No OFD packet to send [15:49:34]OFD Sender: No OFD packet to send [15:49:39]OFD Sender: No OFD packet to send [15:49:44]OFD Sender: No OFD packet to send [15:49:49]OFD Sender: No OFD packet to send [15:49:54]OFD Sender: No OFD packet to send [15:49:59]OFD Sender: No OFD packet to send [15:50:04]OFD Sender: No OFD packet to send [15:50:09]OFD Sender: No OFD packet to send [15:50:14]OFD Sender: No OFD packet to send [15:50:16]accept exits with 7 [15:50:16]New connection [15:50:16]New thread 3067252068 created [15:50:16]Thread 3067395428 joined [15:50:16]Waiting for new connection... [15:50:16] Sock 7.Parse request [15:50:16]Sock 7.Check first char [15:50:16]Sock 7.First char is OK [15:50:16]request: POST /json_proto HTTP/1.0 [15:50:16]Method: POST [15:50:16]URL: /json_proto [15:50:16]Method is POST - this is cgi request [15:50:16]url: /json_proto [15:50:16]query_string will be loaded in cgi processing [15:50:16]execute_cgi json_proto POST (null) [15:50:16]execute_cgi path=json_proto method=POST [15:50:16]POST find Content-Length [15:50:16]Host: 172.17.48.197:8080 [15:50:16]Content-Length: 820 [15:50:16]Content-Type: application/json [15:50:16] [15:50:16]POST finish read [15:50:16]Found Content-Length = 820 [15:50:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106224", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.30 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:50:16]execute_script... [15:50: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)1106224", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.30 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:50:16]POST & json_proto [15:50:16]process_json_proto [15:50:16]json parsed OK: [15:50:16]protocol is kg_v1.0 [15:50:16]action value=close_receipt [15:50:16]process_action close_receipt [15:50:16]cmd_close_receipt [15:50:16]MH_GetDate [15:50:16]Write to MH i2c: F0 00 00 65 35 89 [15:50:16]Write i2c OK [15:50:16]MH_I2C_Read... [15:50:16]Read from MH i2c: F0 [15:50:16]MH_I2C_Read... [15:50:16]Read from MH i2c: F0 09 00 [15:50:16]MH_I2C_Read... [15:50:16]Read from MH i2c: F0 09 00 65 35 00 3B 9C E4 65 6C AF E3 65 15 [15:50:16]GetLastDocTimeStamp 1709480925 [15:50:16]current date 1709481019 [15:50:16]FM_GetShiftState [15:50:16]SAM_PROTO_GetShiftState [15:50:16]wFMCommunicate request_size=4 [15:50:16]MH_SAM_APDU [15:50:16]CAPDU: 80 13 01 00 [15:50:16]Write to MH i2c: E2 08 00 66 35 80 13 01 00 00 00 00 00 18 [15:50:16]Write i2c OK [15:50:16]MH_I2C_Read... [15:50:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:50:16]Read from MH i2c: E2 [15:50:16]MH_I2C_Read... [15:50:16]Read from MH i2c: E2 0E 00 [15:50:16]MH_I2C_Read... [15:50:16]Read from MH i2c: E2 0E 00 66 35 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 DA [15:50:16]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [15:50:16]wFMCommunicate OK [15:50:16]SAM_PROTO_GetShiftState done [15:50:16]FM_GetShiftState done [15:50:16]opened in 1709425579 [15:50:16]opened+sec_in_day 1709511979 [15:50:16]quantity*price = 100030 [15:50:16]sum+1 = 100031 [15:50:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.30 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 0.00 Безнал.: 1000.30 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 144 03.03.2024 15:50 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874798 ФД: 123287 ФПД: 231254516533762 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T155020&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123287&fm=231254516533762&tin=02508201610067®Number=0000000000090573&sum=100030 [15:50:17]StoreToDocumentArchive [15:50:17]shift 323 fd 123287 [15:50:17]save to /storage/0323/doc_00123287 [15:50:17]save last doc name /storage/0323/doc_00123287 to /storage/kkm_last_doc_name [15:50:17]save OK [15:50:17]Clear old archive folders... [15:50:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:50:17]tlvbuf is 00DC4FE0 [15:50:17]SAM_PROTO_ClearQueue [15:50:17]wFMCommunicate request_size=4 [15:50:17]MH_SAM_APDU [15:50:17]CAPDU: 80 09 00 00 [15:50:17]Write to MH i2c: E2 08 00 73 35 80 09 00 00 00 00 00 00 1A [15:50:17]Write i2c OK [15:50:17]MH_I2C_Read... [15:50:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:50:17]Read from MH i2c: E2 [15:50:17]MH_I2C_Read... [15:50:17]Read from MH i2c: E2 03 00 [15:50:17]MH_I2C_Read... [15:50:17]Read from MH i2c: E2 03 00 73 35 00 90 00 1C [15:50:17]RAPDU: 90 00 [15:50:17]wFMCommunicate OK [15:50:17]SAM_PROTO_ClearQueue done [15:50:17]KKMCreateOFDPacket [15:50:17]OFDProtocolAddRootSTLVToBuf [15:50:17]FM_MakeSignedData [15:50:17]FM_MakeSignedData [15:50:17]SAM_PROTO_SignData [15:50:17]wFMCommunicate request_size=4 [15:50:17]MH_SAM_APDU [15:50:17]CAPDU: 80 0D 01 02 [15:50:17]Write to MH i2c: E2 08 00 74 35 80 0D 01 02 00 00 00 00 22 [15:50:17]Write i2c OK [15:50:17]MH_I2C_Read... [15:50:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:50:17]Read from MH i2c: E2 [15:50:17]MH_I2C_Read... [15:50:17]Read from MH i2c: E2 03 00 [15:50:17]MH_I2C_Read... [15:50:17]Read from MH i2c: E2 03 00 74 35 00 90 00 1D [15:50:17]RAPDU: 90 00 [15:50:17]wFMCommunicate OK [15:50:17]wFMCommunicate request_size=255 [15:50:17]MH_SAM_APDU [15:50:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 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 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 3C 9C E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 97 E1 01 00 35 04 06 00 D2 [15:50:17]Write to MH i2c: E2 02 01 75 35 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 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 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 3C 9C E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 97 E1 01 00 35 04 06 00 D2 00 00 0A [15:50:17]Write i2c OK [15:50:17]MH_I2C_Read... [15:50:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:50:17]Read from MH i2c: E2 [15:50:17]MH_I2C_Read... [15:50:17]Read from MH i2c: E2 03 00 [15:50:17]MH_I2C_Read... [15:50:17]Read from MH i2c: E2 03 00 75 35 00 90 00 1E [15:50:17]RAPDU: 90 00 [15:50:17]wFMCommunicate OK [15:50:17]wFMCommunicate request_size=10 [15:50:17]MH_SAM_APDU [15:50:17]CAPDU: 80 0D 02 02 05 53 23 4F 8A 02 [15:50:17]Write to MH i2c: E2 0D 00 76 35 80 0D 02 02 05 00 53 23 4F 8A 02 00 00 80 [15:50:17]Write i2c OK [15:50:17]MH_I2C_Read... [15:50:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:50:17]Read from MH i2c: E2 [15:50:17]MH_I2C_Read... [15:50:17]Read from MH i2c: E2 03 00 [15:50:17]MH_I2C_Read... [15:50:17]Read from MH i2c: E2 03 00 76 35 00 90 00 1F [15:50:17]RAPDU: 90 00 [15:50:17]wFMCommunicate OK [15:50:17]wFMCommunicate request_size=4 [15:50:17]MH_SAM_APDU [15:50:17]CAPDU: 80 0D 03 02 [15:50:17]Write to MH i2c: E2 08 00 77 35 80 0D 03 02 00 00 00 00 27 [15:50:17]Write i2c OK [15:50:17]MH_I2C_Read... [15:50:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:50:17]Read from MH i2c: E2 [15:50:17]MH_I2C_Read... [15:50:17]Read from MH i2c: E2 0B 00 [15:50:17]MH_I2C_Read... [15:50:17]Read from MH i2c: E2 0B 00 77 35 00 BC A0 F9 35 35 69 CC FB 90 00 17 [15:50:17]RAPDU: BC A0 F9 35 35 69 CC FB 90 00 [15:50:17]wFMCommunicate OK [15:50:17]SAM_PROTO_SignData done [15:50:17]FM_MakeSignedData done [15:50:17]CreateOFDProtocolMessage [15:50:17]wFMCommunicate request_size=4 [15:50:17]MH_SAM_APDU [15:50:17]CAPDU: 80 11 00 00 [15:50:17]Write to MH i2c: E2 08 00 78 35 80 11 00 00 00 00 00 00 27 [15:50:17]Write i2c OK [15:50:17]MH_I2C_Read... [15:50:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:50:17]Read from MH i2c: E2 [15:50:17]MH_I2C_Read... [15:50:17]Read from MH i2c: E2 17 00 [15:50:17]MH_I2C_Read... [15:50:17]Read from MH i2c: E2 17 00 78 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 85 [15:50:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [15:50:17]wFMCommunicate OK [15:50:17]CreateOFDProtocolMessage done [15:50:17]OFDSenderStorePacket 123287 [15:50:17]StoreOFDPacket docnum=123287 [15:50:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 5F AB 07 01 DF AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 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 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 3C 9C E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 97 E1 01 00 35 04 06 00 D2 53 23 4F 8A 02 BC A0 F9 35 35 69 CC FB [15:50:17]CheckFolder [15:50:17]dirname=/storage/ofd_packets [15:50:17]CheckFolder done [15:50:17]ProducePacketName [15:50:17]name=ofd_packets/00123287 [15:50:17]NVStorageSaveData ofd_packets/00123287 [15:50:17]File name is /storage/ofd_packets/00123287 [15:50:17]Write 301 bytes [15:50:17]NVStorageSaveData done [15:50:17]OFDSenderStorePacket done [15:50:17]KKMCreateOFDPacket done [15:50:17]NVStorageSaveData kkm_last_timestamp [15:50:17]File name is /storage/kkm_last_timestamp [15:50:17]Write 4 bytes [15:50:17]NVStorageSaveData done [15:50:17]ExternCall_PrintAddStr [15:50:17]wPrintStart [15:50:17]Write to MH i2c: 01 00 00 79 35 AE [15:50:17]Write i2c OK [15:50:17]MH_I2C_Read... [15:50:17]Read from MH i2c: 01 [15:50:17]MH_I2C_Read... [15:50:17]Read from MH i2c: 01 07 00 [15:50:17]MH_I2C_Read... [15:50:17]Read from MH i2c: 01 07 00 79 35 00 00 00 00 00 FF 0F C3 [15:50:17]RasterBufferAndPrint [15:50:17]line Счет N : (1)1106224 [15:50:17]line ИНН: 02508201610067 [15:50:17]line Контрольно-Кассовый Чек [15:50:17]line ПРОДАЖА [15:50:17]line ТРК (МРК, ГНК) : 42 [15:50:17]line Товар: 2710124130 [15:50:17]line Аи-92-К-5 [15:50:17]line 16.160 * 61.90 [15:50:17]line = 1000.30 [15:50:17]line НДС 12% НСП 1% [15:50:17]line > о реализуемом товаре [15:50:17]line ИТОГО: 1000.30 [15:50:17]line НСП 1% : 8.85 [15:50:17]line НДС 12% : 106.23 [15:50:17]line Наличными: 0.00 [15:50:17]line Безнал.: 1000.30 [15:50:17]line Место: АЗС № 25 "Партнер Нефть" [15:50:17]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [15:50:17]line СНО: Общий режим [15:50:17]line Чек 144 03.03.2024 15:50 [15:50:17]line Смена: 323 ФФД: 1.0 [15:50:17]line ЗНМ: 0300000019 [15:50:17]line РНМ: 0000000000090573 [15:50:17]line Версия ККМ: 001 [15:50:17]line Платежная система: Бакай Банк [15:50:17]line ФМ: 0000000000874798 [15:50:17]line ФД: 123287 [15:50:17]line ФПД: 231254516533762 [15:50:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T155020&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123287&fm=231254516533762&tin=02508201610067®Number=0000000000090573&sum=100030 [15:50:18]OFD Sender: Processing packet 123287 [packets to send 112, broken 111] [15:50:18]ProducePacketName [15:50:18]name=ofd_packets/00123287 [15:50:18]OFD Sender: To server: pG, [15:50:18]CommunicateWithHost lk.salyk.kg:30040 [15:50:18]ConnectInit lk.salyk.kg [15:50:18]written 0, free lines is 4095 [15:50:18]Connected sock=10 [15:50: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 37 39 38 0F 01 00 00 5F AB 07 01 DF AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 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 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 3C 9C E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 97 E1 01 00 35 04 06 00 D2 53 23 4F 8A 02 BC A0 F9 35 35 69 CC FB [15:50:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 7B E9 47 00 F2 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 37 39 38 10 04 04 00 97 E1 01 00 F4 03 04 00 67 48 E4 65 B6 04 01 00 00 41 8E 17 78 13 14 B3 09 [15:50:18]CommunicateWithHost err = 0 [15:50:18]CheckOFDResponse [15:50:18]1017 (14) - 77093643461234 [15:50:18]1041 (16) - 0000000000874798 [15:50:18]1040 (4) - 123287 [15:50:18]1012 (4) - 03.03.2024 09:52 [15:50:18]1206 (1) - 0 [15:50:18]OFD Sender: Remove packet 123287 [15:50:18]ProducePacketName [15:50:18]name=ofd_packets/00123287 [15:50:18]NVStorageDeleteData [15:50:18]Write to MH i2c: 01 00 00 A3 35 D8 [15:50:18]Write i2c OK [15:50:18]MH_I2C_Read... [15:50:18]Read from MH i2c: 01 [15:50:18]MH_I2C_Read... [15:50:18]Read from MH i2c: 01 07 00 [15:50:18]MH_I2C_Read... [15:50:18]Read from MH i2c: 01 07 00 A3 35 00 00 00 00 00 FE 0C E9 [15:50:18]RasterBufferAndPrint [15:50:18]line [15:50:18]line [15:50:18]line [15:50:18]line [15:50:18]line [15:50:18]written 0, free lines is 3332 [15:50:18]MH_Cut [15:50:18]Write to MH i2c: D1 01 00 AA 35 01 B1 [15:50:18]Write i2c OK [15:50:18]MH_I2C_Read... [15:50:18]Read from MH i2c: D1 [15:50:18]MH_I2C_Read... [15:50:18]Read from MH i2c: D1 01 00 [15:50:18]MH_I2C_Read... [15:50:18]Read from MH i2c: D1 01 00 AA 35 00 B0 [15:50:18]Write to MH i2c: 01 00 00 AB 35 E0 [15:50:18]Write i2c OK [15:50:18]MH_I2C_Read... [15:50:18]OFD Sender: No OFD packet to send [15:50:19]*** Cut start [15:50:19]*** Purtial cut [15:50:19]*** Stage 1: CUTSNS_PIN = 1 [15:50:21]Read from MH i2c: 01 [15:50:21]*** Stop cut motor [15:50:21]*** Cut end [15:50:21]MH_I2C_Read... [15:50:21]Read from MH i2c: 01 07 00 [15:50:21]MH_I2C_Read... [15:50:21]Read from MH i2c: 01 07 00 AB 35 00 00 00 00 00 FF 0F F5 [15:50:21]process_action close_receipt done [15:50:21]requested_data is exist [15:50:21]produce_requested_data [15:50:21]requested_item fm.sn is exist - process it [15:50:21]wFMCommunicate request_size=4 [15:50:21]MH_SAM_APDU [15:50:21]CAPDU: 80 11 00 00 [15:50:21]Write to MH i2c: E2 08 00 AC 35 80 11 00 00 00 00 00 00 5B [15:50:21]Write i2c OK [15:50:21]MH_I2C_Read... [15:50:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:50:21]Read from MH i2c: E2 [15:50:21]MH_I2C_Read... [15:50:21]Read from MH i2c: E2 17 00 [15:50:21]MH_I2C_Read... [15:50:21]Read from MH i2c: E2 17 00 AC 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 B9 [15:50:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [15:50:21]wFMCommunicate OK [15:50:21]requested_item fd.num is exist - process it [15:50:21]SAM_PROTO_GetFieldsCounters [15:50:21]wFMCommunicate request_size=4 [15:50:21]MH_SAM_APDU [15:50:21]CAPDU: 80 13 00 00 [15:50:21]Write to MH i2c: E2 08 00 AD 35 80 13 00 00 00 00 00 00 5E [15:50:21]Write i2c OK [15:50:21]MH_I2C_Read... [15:50:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:50:21]Read from MH i2c: E2 [15:50:21]MH_I2C_Read... [15:50:21]Read from MH i2c: E2 62 00 [15:50:21]MH_I2C_Read... [15:50:21]Read from MH i2c: E2 62 00 AD 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 97 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 F6 [15:50: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 97 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:50:21]wFMCommunicate OK [15:50:21]SAM_PROTO_GetFieldsCounters done [15:50:21]requested_item shift.num is exist - process it [15:50:21]requested_item shift.opened is exist - process it [15:50:21]req_shift_opened [15:50:21]FM_GetShiftState [15:50:21]SAM_PROTO_GetShiftState [15:50:21]wFMCommunicate request_size=4 [15:50:21]MH_SAM_APDU [15:50:21]CAPDU: 80 13 01 00 [15:50:21]Write to MH i2c: E2 08 00 AE 35 80 13 01 00 00 00 00 00 60 [15:50:21]Write i2c OK [15:50:21]MH_I2C_Read... [15:50:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:50:21]Read from MH i2c: E2 [15:50:21]MH_I2C_Read... [15:50:21]Read from MH i2c: E2 0E 00 [15:50:21]MH_I2C_Read... [15:50:21]Read from MH i2c: E2 0E 00 AE 35 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 22 [15:50:21]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [15:50:21]wFMCommunicate OK [15:50:21]SAM_PROTO_GetShiftState done [15:50:21]FM_GetShiftState done [15:50:21]req_shift_opened done [15:50:21]requested_item shift.open_date is exist - process it [15:50:21]req_shift_open_date [15:50:21]req_shift_open_date done [15:50:21]produce_requested_data done [15:50:21]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123287,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [15:50:21]process_action_free close_receipt [15:50:21]json_value_free [15:50:21]json_value_free done [15:50:21]process_json_proto returns [15:50:21]Send response to host [15:50:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123287,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [15:50:21]free response buf [15:50:21]execute_script done [15:50:21]execute_script returns [15:50:21]free content buf [15:50:21]Sock 7.Close socket [15:50:21]Sock 7.Thread stoped [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:18]OFD Sender: No OFD packet to send [15:51:23]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:29]OFD Sender: No OFD packet to send [15:57:34]OFD Sender: No OFD packet to send [15:57:39]OFD Sender: No OFD packet to send [15:57:44]OFD Sender: No OFD packet to send [15:57:49]OFD Sender: No OFD packet to send [15:57:54]OFD Sender: No OFD packet to send [15:57:59]OFD Sender: No OFD packet to send [15:58:04]OFD Sender: No OFD packet to send [15:58:09]OFD Sender: No OFD packet to send [15:58:14]OFD Sender: No OFD packet to send [15:58:19]OFD Sender: No OFD packet to send [15:58:24]OFD Sender: No OFD packet to send [15:58:29]OFD Sender: No OFD packet to send [15:58:34]OFD Sender: No OFD packet to send [15:58:39]OFD Sender: No OFD packet to send [15:58:44]OFD Sender: No OFD packet to send [15:58:49]OFD Sender: No OFD packet to send [15:58:54]OFD Sender: No OFD packet to send [15:58:59]OFD Sender: No OFD packet to send [15:59:04]OFD Sender: No OFD packet to send [15:59:09]OFD Sender: No OFD packet to send [15:59:14]OFD Sender: No OFD packet to send [15:59:19]OFD Sender: No OFD packet to send [15:59:24]OFD Sender: No OFD packet to send [15:59:29]OFD Sender: No OFD packet to send [15:59:34]OFD Sender: No OFD packet to send [15:59:39]OFD Sender: No OFD packet to send [15:59:44]OFD Sender: No OFD packet to send [15:59:49]OFD Sender: No OFD packet to send [15:59:54]OFD Sender: No OFD packet to send [15:59:59]OFD Sender: No OFD packet to send [16:00:04]OFD Sender: No OFD packet to send [16:00:09]OFD Sender: No OFD packet to send [16:00:14]OFD Sender: No OFD packet to send [16:00:19]OFD Sender: No OFD packet to send [16:00:24]OFD Sender: No OFD packet to send [16:00:29]OFD Sender: No OFD packet to send [16:00:34]OFD Sender: No OFD packet to send [16:00:39]OFD Sender: No OFD packet to send [16:00:44]OFD Sender: No OFD packet to send [16:00:49]OFD Sender: No OFD packet to send [16:00:54]OFD Sender: No OFD packet to send [16:00:59]OFD Sender: No OFD packet to send [16:01:04]OFD Sender: No OFD packet to send [16:01:09]OFD Sender: No OFD packet to send [16:01:14]OFD Sender: No OFD packet to send [16:01:19]OFD Sender: No OFD packet to send [16:01:24]OFD Sender: No OFD packet to send [16:01:29]OFD Sender: No OFD packet to send [16:01:34]OFD Sender: No OFD packet to send [16:01:39]OFD Sender: No OFD packet to send [16:01:44]OFD Sender: No OFD packet to send [16:01:49]OFD Sender: No OFD packet to send [16:01:54]OFD Sender: No OFD packet to send [16:01:59]OFD Sender: No OFD packet to send [16:02:04]OFD Sender: No OFD packet to send [16:02:09]OFD Sender: No OFD packet to send [16:02:14]OFD Sender: No OFD packet to send [16:02:19]OFD Sender: No OFD packet to send [16:02:24]OFD Sender: No OFD packet to send [16:02:29]OFD Sender: No OFD packet to send [16:02:34]OFD Sender: No OFD packet to send [16:02:38]accept exits with 9 [16:02:38]New connection [16:02:38]New thread 3067395428 created [16:02:38]Thread 3067252068 joined [16:02:38]Waiting for new connection... [16:02:38] Sock 9.Parse request [16:02:38]Sock 9.Check first char [16:02:38]Sock 9.First char is OK [16:02:38]request: POST /json_proto HTTP/1.0 [16:02:38]Method: POST [16:02:38]URL: /json_proto [16:02:38]Method is POST - this is cgi request [16:02:38]url: /json_proto [16:02:38]query_string will be loaded in cgi processing [16:02:38]execute_cgi json_proto POST (null) [16:02:38]execute_cgi path=json_proto method=POST [16:02:38]POST find Content-Length [16:02:38]Host: 172.17.48.197:8080 [16:02:38]Content-Length: 1210 [16:02:38]Content-Type: application/json [16:02:38] [16:02:38]POST finish read [16:02:38]Found Content-Length = 1210 [16:02:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106225\u000A03.03.2024 15:58\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 1238.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A01043\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:02:38]execute_script... [16:02:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106225\u000A03.03.2024 15:58\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 1238.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A01043\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:02:38]POST & json_proto [16:02:38]process_json_proto [16:02:38]json parsed OK: [16:02:38]protocol is kg_v1.0 [16:02:38]action value=print_text [16:02:38]process_action print_text [16:02:38]cmd_print_text [16:02:38]ExternCall_PrintAddStr [16:02:38]wPrintStart [16:02:38]Write to MH i2c: 01 00 00 AF 35 E4 [16:02:38]Write i2c OK [16:02:38]MH_I2C_Read... [16:02:38]Read from MH i2c: 01 [16:02:38]MH_I2C_Read... [16:02:38]Read from MH i2c: 01 07 00 [16:02:38]MH_I2C_Read... [16:02:38]Read from MH i2c: 01 07 00 AF 35 00 00 00 00 00 FF 0F F9 [16:02:38]RasterBufferAndPrint [16:02:38]line *****ТОВАРНЫЙ ЧЕК***** [16:02:38]line АЗС 25 [16:02:38]line Партнер нефть [16:02:38]line 02508201610067 [16:02:38]line Кассир : Турдумбек у. К. [16:02:38]line Счет N : (1)1106225 [16:02:38]line 03.03.2024 15:58 [16:02:38]line ПРОДАЖА [16:02:38]line ТРК (МРК, ГНК): 11 [16:02:38]line Вид ГСМ : 2710124130 [16:02:38]line Аи-92-К-5 [16:02:38]line 20.000 x 61.90 [16:02:38]line ИТОГ: 1238.00 [16:02:38]line Тип оплаты: Талоны: Топливная Карта [16:02:38]line 01043 [16:02:38]line ______________________ [16:02:38]line (подпись) [16:02:38]written 0, free lines is 4095 [16:02:38]Write to MH i2c: 01 00 00 C4 35 F9 [16:02:38]Write i2c OK [16:02:38]MH_I2C_Read... [16:02:38]Read from MH i2c: 01 [16:02:38]MH_I2C_Read... [16:02:38]Read from MH i2c: 01 07 00 [16:02:38]MH_I2C_Read... [16:02:38]Read from MH i2c: 01 07 00 C4 35 00 00 00 00 00 F5 0D 02 [16:02:38]RasterBufferAndPrint [16:02:38]line [16:02:38]line [16:02:38]line [16:02:38]line [16:02:38]line [16:02:38]written 0, free lines is 3574 [16:02:38]MH_Cut [16:02:38]Write to MH i2c: D1 01 00 CB 35 01 D2 [16:02:38]Write i2c OK [16:02:38]MH_I2C_Read... [16:02:38]Read from MH i2c: D1 [16:02:38]MH_I2C_Read... [16:02:38]Read from MH i2c: D1 01 00 [16:02:38]MH_I2C_Read... [16:02:38]Read from MH i2c: D1 01 00 CB 35 00 D1 [16:02:38]Write to MH i2c: 01 00 00 CC 35 01 [16:02:38]Write i2c OK [16:02:38]MH_I2C_Read... [16:02:38]*** Cut start [16:02:38]*** Purtial cut [16:02:38]*** Stage 1: CUTSNS_PIN = 1 [16:02:39]OFD Sender: No OFD packet to send [16:02:40]Read from MH i2c: 01 [16:02:40]MH_I2C_Read... [16:02:40]*** Stop cut motor [16:02:40]*** Cut end [16:02:40]Read from MH i2c: 01 07 00 [16:02:40]MH_I2C_Read... [16:02:40]Read from MH i2c: 01 07 00 CC 35 00 00 00 00 00 FF 0F 16 [16:02:40]process_action print_text done [16:02:40]requested_data is exist [16:02:40]produce_requested_data [16:02:40]requested_item fm.sn is exist - process it [16:02:40]wFMCommunicate request_size=4 [16:02:40]MH_SAM_APDU [16:02:40]CAPDU: 80 11 00 00 [16:02:40]Write to MH i2c: E2 08 00 CD 35 80 11 00 00 00 00 00 00 7C [16:02:40]Write i2c OK [16:02:40]MH_I2C_Read... [16:02:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:02:40]Read from MH i2c: E2 [16:02:40]MH_I2C_Read... [16:02:40]Read from MH i2c: E2 17 00 [16:02:40]MH_I2C_Read... [16:02:40]Read from MH i2c: E2 17 00 CD 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 DA [16:02:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [16:02:40]wFMCommunicate OK [16:02:40]requested_item fd.num is exist - process it [16:02:40]SAM_PROTO_GetFieldsCounters [16:02:40]wFMCommunicate request_size=4 [16:02:40]MH_SAM_APDU [16:02:40]CAPDU: 80 13 00 00 [16:02:40]Write to MH i2c: E2 08 00 CE 35 80 13 00 00 00 00 00 00 7F [16:02:40]Write i2c OK [16:02:40]MH_I2C_Read... [16:02:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:02:41]Read from MH i2c: E2 [16:02:41]MH_I2C_Read... [16:02:41]Read from MH i2c: E2 62 00 [16:02:41]MH_I2C_Read... [16:02:41]Read from MH i2c: E2 62 00 CE 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 97 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 17 [16:02: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 97 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:02:41]wFMCommunicate OK [16:02:41]SAM_PROTO_GetFieldsCounters done [16:02:41]requested_item shift.num is exist - process it [16:02:41]requested_item shift.opened is exist - process it [16:02:41]req_shift_opened [16:02:41]FM_GetShiftState [16:02:41]SAM_PROTO_GetShiftState [16:02:41]wFMCommunicate request_size=4 [16:02:41]MH_SAM_APDU [16:02:41]CAPDU: 80 13 01 00 [16:02:41]Write to MH i2c: E2 08 00 CF 35 80 13 01 00 00 00 00 00 81 [16:02:41]Write i2c OK [16:02:41]MH_I2C_Read... [16:02:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:02:41]Read from MH i2c: E2 [16:02:41]MH_I2C_Read... [16:02:41]Read from MH i2c: E2 0E 00 [16:02:41]MH_I2C_Read... [16:02:41]Read from MH i2c: E2 0E 00 CF 35 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 43 [16:02:41]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [16:02:41]wFMCommunicate OK [16:02:41]SAM_PROTO_GetShiftState done [16:02:41]FM_GetShiftState done [16:02:41]req_shift_opened done [16:02:41]requested_item shift.open_date is exist - process it [16:02:41]req_shift_open_date [16:02:41]req_shift_open_date done [16:02:41]produce_requested_data done [16:02:41]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123287,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [16:02:41]process_action_free print_text [16:02:41]json_value_free [16:02:41]json_value_free done [16:02:41]process_json_proto returns [16:02:41]Send response to host [16:02:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123287,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [16:02:41]free response buf [16:02:41]execute_script done [16:02:41]execute_script returns [16:02:41]free content buf [16:02:41]Sock 9.Close socket [16:02:41]Sock 9.Thread stoped [16:02:44]OFD Sender: No OFD packet to send [16:02:49]OFD Sender: No OFD packet to send [16:02:54]OFD Sender: No OFD packet to send [16:02:59]OFD Sender: No OFD packet to send [16:03:04]OFD Sender: No OFD packet to send [16:03:09]OFD Sender: No OFD packet to send [16:03:14]OFD Sender: No OFD packet to send [16:03:19]OFD Sender: No OFD packet to send [16:03:24]OFD Sender: No OFD packet to send [16:03:29]OFD Sender: No OFD packet to send [16:03:34]OFD Sender: No OFD packet to send [16:03:39]OFD Sender: No OFD packet to send [16:03:44]OFD Sender: No OFD packet to send [16:03:49]OFD Sender: No OFD packet to send [16:03:54]OFD Sender: No OFD packet to send [16:03:59]OFD Sender: No OFD packet to send [16:04:04]OFD Sender: No OFD packet to send [16:04:09]OFD Sender: No OFD packet to send [16:04:14]OFD Sender: No OFD packet to send [16:04:19]OFD Sender: No OFD packet to send [16:04:24]OFD Sender: No OFD packet to send [16:04:29]OFD Sender: No OFD packet to send [16:04:34]OFD Sender: No OFD packet to send [16:04:39]OFD Sender: No OFD packet to send [16:04:44]OFD Sender: No OFD packet to send [16:04:49]OFD Sender: No OFD packet to send [16:04:54]OFD Sender: No OFD packet to send [16:04:59]OFD Sender: No OFD packet to send [16:05:04]OFD Sender: No OFD packet to send [16:05:09]OFD Sender: No OFD packet to send [16:05:14]OFD Sender: No OFD packet to send [16:05:19]OFD Sender: No OFD packet to send [16:05:24]OFD Sender: No OFD packet to send [16:05:29]OFD Sender: No OFD packet to send [16:05:34]OFD Sender: No OFD packet to send [16:05:39]OFD Sender: No OFD packet to send [16:05:44]OFD Sender: No OFD packet to send [16:05:49]OFD Sender: No OFD packet to send [16:05:54]OFD Sender: No OFD packet to send [16:05:59]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:45]OFD Sender: No OFD packet to send [16:16:50]OFD Sender: No OFD packet to send [16:16:55]OFD Sender: No OFD packet to send [16:17:00]OFD Sender: No OFD packet to send [16:17:05]OFD Sender: No OFD packet to send [16:17:07]accept exits with 7 [16:17:07]New connection [16:17:07]New thread 3067252068 created [16:17:07]Thread 3067395428 joined [16:17:07]Waiting for new connection... [16:17:07] Sock 7.Parse request [16:17:07]Sock 7.Check first char [16:17:07]Sock 7.First char is OK [16:17:07]request: POST /json_proto HTTP/1.0 [16:17:07]Method: POST [16:17:07]URL: /json_proto [16:17:07]Method is POST - this is cgi request [16:17:07]url: /json_proto [16:17:07]query_string will be loaded in cgi processing [16:17:07]execute_cgi json_proto POST (null) [16:17:07]execute_cgi path=json_proto method=POST [16:17:07]POST find Content-Length [16:17:07]Host: 172.17.48.197:8080 [16:17:07]Content-Length: 817 [16:17:07]Content-Type: application/json [16:17:07] [16:17:07]POST finish read [16:17:07]Found Content-Length = 817 [16:17:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106226", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 9.700, "sum" : 600.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 600.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:17:07]execute_script... [16:17: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)1106226", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 9.700, "sum" : 600.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 600.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:17:07]POST & json_proto [16:17:07]process_json_proto [16:17:07]json parsed OK: [16:17:07]protocol is kg_v1.0 [16:17:07]action value=close_receipt [16:17:07]process_action close_receipt [16:17:07]cmd_close_receipt [16:17:07]MH_GetDate [16:17:07]Write to MH i2c: F0 00 00 D0 35 F4 [16:17:07]Write i2c OK [16:17:07]MH_I2C_Read... [16:17:07]Read from MH i2c: F0 [16:17:07]MH_I2C_Read... [16:17:07]Read from MH i2c: F0 09 00 [16:17:07]MH_I2C_Read... [16:17:07]Read from MH i2c: F0 09 00 D0 35 00 87 A2 E4 65 6C AF E3 65 D2 [16:17:07]GetLastDocTimeStamp 1709481020 [16:17:07]current date 1709482631 [16:17:07]FM_GetShiftState [16:17:07]SAM_PROTO_GetShiftState [16:17:07]wFMCommunicate request_size=4 [16:17:07]MH_SAM_APDU [16:17:07]CAPDU: 80 13 01 00 [16:17:07]Write to MH i2c: E2 08 00 D1 35 80 13 01 00 00 00 00 00 83 [16:17:07]Write i2c OK [16:17:07]MH_I2C_Read... [16:17:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:17:07]Read from MH i2c: E2 [16:17:07]MH_I2C_Read... [16:17:07]Read from MH i2c: E2 0E 00 [16:17:07]MH_I2C_Read... [16:17:07]Read from MH i2c: E2 0E 00 D1 35 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 45 [16:17:07]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [16:17:07]wFMCommunicate OK [16:17:07]SAM_PROTO_GetShiftState done [16:17:07]FM_GetShiftState done [16:17:07]opened in 1709425579 [16:17:07]opened+sec_in_day 1709511979 [16:17:07]quantity*price = 60043 [16:17:07]sum+1 = 60044 [16:17:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.43 НСП 1% : 5.31 НДС 12% : 63.76 Наличными: 0.00 Безнал.: 600.43 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 145 03.03.2024 16:17 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874798 ФД: 123288 ФПД: 93278563583877 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T161711&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123288&fm=93278563583877&tin=02508201610067®Number=0000000000090573&sum=60043 [16:17:08]StoreToDocumentArchive [16:17:08]shift 323 fd 123288 [16:17:08]save to /storage/0323/doc_00123288 [16:17:08]save last doc name /storage/0323/doc_00123288 to /storage/kkm_last_doc_name [16:17:08]save OK [16:17:08]Clear old archive folders... [16:17:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:17:08]tlvbuf is 00DA52D0 [16:17:08]SAM_PROTO_ClearQueue [16:17:08]wFMCommunicate request_size=4 [16:17:08]MH_SAM_APDU [16:17:08]CAPDU: 80 09 00 00 [16:17:08]Write to MH i2c: E2 08 00 DE 35 80 09 00 00 00 00 00 00 85 [16:17:08]Write i2c OK [16:17:08]MH_I2C_Read... [16:17:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:17:08]Read from MH i2c: E2 [16:17:08]MH_I2C_Read... [16:17:08]Read from MH i2c: E2 03 00 [16:17:08]MH_I2C_Read... [16:17:08]Read from MH i2c: E2 03 00 DE 35 00 90 00 87 [16:17:08]RAPDU: 90 00 [16:17:08]wFMCommunicate OK [16:17:08]SAM_PROTO_ClearQueue done [16:17:08]KKMCreateOFDPacket [16:17:08]OFDProtocolAddRootSTLVToBuf [16:17:08]FM_MakeSignedData [16:17:08]FM_MakeSignedData [16:17:08]SAM_PROTO_SignData [16:17:08]wFMCommunicate request_size=4 [16:17:08]MH_SAM_APDU [16:17:08]CAPDU: 80 0D 01 02 [16:17:08]Write to MH i2c: E2 08 00 DF 35 80 0D 01 02 00 00 00 00 8D [16:17:08]Write i2c OK [16:17:08]MH_I2C_Read... [16:17:08]Read from MH i2c: E2 [16:17:08]MH_I2C_Read... [16:17:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:17:08]Read from MH i2c: E2 03 00 [16:17:08]MH_I2C_Read... [16:17:08]Read from MH i2c: E2 03 00 DF 35 00 90 00 88 [16:17:08]RAPDU: 90 00 [16:17:08]wFMCommunicate OK [16:17:08]wFMCommunicate request_size=255 [16:17:08]MH_SAM_APDU [16:17: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 25 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 8B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8B 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 E8 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8B EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 87 A2 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 98 E1 01 00 35 04 06 00 54 [16:17:08]Write to MH i2c: E2 02 01 E0 35 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 25 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 8B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8B 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 E8 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8B EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 87 A2 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 98 E1 01 00 35 04 06 00 54 00 00 79 [16:17:08]Write i2c OK [16:17:08]MH_I2C_Read... [16:17:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:17:08]Read from MH i2c: E2 [16:17:08]MH_I2C_Read... [16:17:08]Read from MH i2c: E2 03 00 [16:17:08]MH_I2C_Read... [16:17:08]Read from MH i2c: E2 03 00 E0 35 00 90 00 89 [16:17:08]RAPDU: 90 00 [16:17:08]wFMCommunicate OK [16:17:08]wFMCommunicate request_size=10 [16:17:08]MH_SAM_APDU [16:17:08]CAPDU: 80 0D 02 02 05 D6 1B A5 C7 85 [16:17:08]Write to MH i2c: E2 0D 00 E1 35 80 0D 02 02 05 00 D6 1B A5 C7 85 00 00 7C [16:17:08]Write i2c OK [16:17:08]MH_I2C_Read... [16:17:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:17:08]Read from MH i2c: E2 [16:17:08]MH_I2C_Read... [16:17:08]Read from MH i2c: E2 03 00 [16:17:08]MH_I2C_Read... [16:17:08]Read from MH i2c: E2 03 00 E1 35 00 90 00 8A [16:17:08]RAPDU: 90 00 [16:17:08]wFMCommunicate OK [16:17:08]wFMCommunicate request_size=4 [16:17:08]MH_SAM_APDU [16:17:08]CAPDU: 80 0D 03 02 [16:17:08]Write to MH i2c: E2 08 00 E2 35 80 0D 03 02 00 00 00 00 92 [16:17:08]Write i2c OK [16:17:08]MH_I2C_Read... [16:17:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:17:08]Read from MH i2c: E2 [16:17:08]MH_I2C_Read... [16:17:08]Read from MH i2c: E2 0B 00 [16:17:08]MH_I2C_Read... [16:17:08]Read from MH i2c: E2 0B 00 E2 35 00 C3 85 4F 90 7C F5 73 16 90 00 B4 [16:17:08]RAPDU: C3 85 4F 90 7C F5 73 16 90 00 [16:17:08]wFMCommunicate OK [16:17:08]SAM_PROTO_SignData done [16:17:08]FM_MakeSignedData done [16:17:08]CreateOFDProtocolMessage [16:17:08]wFMCommunicate request_size=4 [16:17:08]MH_SAM_APDU [16:17:08]CAPDU: 80 11 00 00 [16:17:08]Write to MH i2c: E2 08 00 E3 35 80 11 00 00 00 00 00 00 92 [16:17:08]Write i2c OK [16:17:08]MH_I2C_Read... [16:17:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:17:08]Read from MH i2c: E2 [16:17:08]MH_I2C_Read... [16:17:08]Read from MH i2c: E2 17 00 [16:17:08]MH_I2C_Read... [16:17:08]Read from MH i2c: E2 17 00 E3 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 F0 [16:17:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [16:17:08]wFMCommunicate OK [16:17:08]CreateOFDProtocolMessage done [16:17:08]OFDSenderStorePacket 123288 [16:17:08]StoreOFDPacket docnum=123288 [16:17:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 C3 45 07 01 C8 DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 25 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 8B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8B 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 E8 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8B EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 87 A2 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 98 E1 01 00 35 04 06 00 54 D6 1B A5 C7 85 C3 85 4F 90 7C F5 73 16 [16:17:08]CheckFolder [16:17:08]dirname=/storage/ofd_packets [16:17:08]CheckFolder done [16:17:08]ProducePacketName [16:17:08]name=ofd_packets/00123288 [16:17:08]NVStorageSaveData ofd_packets/00123288 [16:17:08]File name is /storage/ofd_packets/00123288 [16:17:08]Write 301 bytes [16:17:08]NVStorageSaveData done [16:17:08]OFDSenderStorePacket done [16:17:08]KKMCreateOFDPacket done [16:17:08]NVStorageSaveData kkm_last_timestamp [16:17:08]File name is /storage/kkm_last_timestamp [16:17:08]Write 4 bytes [16:17:08]NVStorageSaveData done [16:17:08]ExternCall_PrintAddStr [16:17:08]wPrintStart [16:17:08]Write to MH i2c: 01 00 00 E4 35 19 [16:17:08]Write i2c OK [16:17:08]MH_I2C_Read... [16:17:08]Read from MH i2c: 01 [16:17:08]MH_I2C_Read... [16:17:08]Read from MH i2c: 01 07 00 [16:17:08]MH_I2C_Read... [16:17:08]Read from MH i2c: 01 07 00 E4 35 00 00 00 00 00 FF 0F 2E [16:17:08]RasterBufferAndPrint [16:17:08]line Счет N : (1)1106226 [16:17:08]line ИНН: 02508201610067 [16:17:08]line Контрольно-Кассовый Чек [16:17:08]line ПРОДАЖА [16:17:08]line ТРК (МРК, ГНК) : 32 [16:17:08]line Товар: 2710124130 [16:17:08]line Аи-92-К-5 [16:17:08]line 9.700 * 61.90 [16:17:08]line = 600.43 [16:17:08]line НДС 12% НСП 1% [16:17:08]line > о реализуемом товаре [16:17:08]line ИТОГО: 600.43 [16:17:08]line НСП 1% : 5.31 [16:17:08]line НДС 12% : 63.76 [16:17:08]line Наличными: 0.00 [16:17:08]line Безнал.: 600.43 [16:17:08]line Место: АЗС № 25 "Партнер Нефть" [16:17:08]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [16:17:08]line СНО: Общий режим [16:17:08]line Чек 145 03.03.2024 16:17 [16:17:08]line Смена: 323 ФФД: 1.0 [16:17:08]line ЗНМ: 0300000019 [16:17:08]line РНМ: 0000000000090573 [16:17:08]line Версия ККМ: 001 [16:17:08]line Платежная система: Бакай Банк [16:17:08]line ФМ: 0000000000874798 [16:17:08]line ФД: 123288 [16:17:08]line ФПД: 93278563583877 [16:17:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T161711&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123288&fm=93278563583877&tin=02508201610067®Number=0000000000090573&sum=60043 [16:17:09]OFD Sender: Processing packet 123288 [packets to send 112, broken 111] [16:17:09]ProducePacketName [16:17:09]name=ofd_packets/00123288 [16:17:09]OFD Sender: To server: pG, [16:17:09]CommunicateWithHost lk.salyk.kg:30040 [16:17:09]ConnectInit lk.salyk.kg [16:17:09]written 0, free lines is 4095 [16:17:09]Connected sock=10 [16:17: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 37 39 38 0F 01 00 00 C3 45 07 01 C8 DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 25 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 8B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8B 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 E8 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8B EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 87 A2 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 98 E1 01 00 35 04 06 00 54 D6 1B A5 C7 85 C3 85 4F 90 7C F5 73 16 [16:17:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 E5 C9 47 00 11 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 98 E1 01 00 F4 03 04 00 B2 4E E4 65 B6 04 01 00 00 18 E7 EC 34 09 F6 16 C5 [16:17:09]CommunicateWithHost err = 0 [16:17:09]CheckOFDResponse [16:17:09]1017 (14) - 77093643461234 [16:17:09]1041 (16) - 0000000000874798 [16:17:09]1040 (4) - 123288 [16:17:09]1012 (4) - 03.03.2024 10:19 [16:17:09]1206 (1) - 0 [16:17:09]OFD Sender: Remove packet 123288 [16:17:09]ProducePacketName [16:17:09]name=ofd_packets/00123288 [16:17:09]NVStorageDeleteData [16:17:09]Write to MH i2c: 01 00 00 0E 36 44 [16:17:09]Write i2c OK [16:17:09]MH_I2C_Read... [16:17:09]Read from MH i2c: 01 [16:17:09]MH_I2C_Read... [16:17:09]Read from MH i2c: 01 07 00 [16:17:09]MH_I2C_Read... [16:17:09]Read from MH i2c: 01 07 00 0E 36 00 00 00 00 00 02 0D 5A [16:17:09]RasterBufferAndPrint [16:17:09]line [16:17:09]line [16:17:09]line [16:17:09]line [16:17:09]line [16:17:09]written 0, free lines is 3336 [16:17:09]MH_Cut [16:17:09]Write to MH i2c: D1 01 00 15 36 01 1D [16:17:09]Write i2c OK [16:17:09]MH_I2C_Read... [16:17:09]Read from MH i2c: D1 [16:17:09]MH_I2C_Read... [16:17:09]Read from MH i2c: D1 01 00 [16:17:09]MH_I2C_Read... [16:17:09]Read from MH i2c: D1 01 00 15 36 00 1C [16:17:09]Write to MH i2c: 01 00 00 16 36 4C [16:17:09]Write i2c OK [16:17:09]MH_I2C_Read... [16:17:10]OFD Sender: No OFD packet to send [16:17:10]*** Cut start [16:17:10]*** Purtial cut [16:17:10]*** Stage 1: CUTSNS_PIN = 1 [16:17:12]Read from MH i2c: 01 [16:17:12]MH_I2C_Read... [16:17:12]*** Stop cut motor [16:17:12]*** Cut end [16:17:12]Read from MH i2c: 01 07 00 [16:17:12]MH_I2C_Read... [16:17:12]Read from MH i2c: 01 07 00 16 36 00 00 00 00 00 FF 0F 61 [16:17:12]process_action close_receipt done [16:17:12]requested_data is exist [16:17:12]produce_requested_data [16:17:12]requested_item fm.sn is exist - process it [16:17:12]wFMCommunicate request_size=4 [16:17:12]MH_SAM_APDU [16:17:12]CAPDU: 80 11 00 00 [16:17:12]Write to MH i2c: E2 08 00 17 36 80 11 00 00 00 00 00 00 C7 [16:17:12]Write i2c OK [16:17:12]MH_I2C_Read... [16:17:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:17:12]Read from MH i2c: E2 [16:17:12]MH_I2C_Read... [16:17:12]Read from MH i2c: E2 17 00 [16:17:12]MH_I2C_Read... [16:17:12]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 37 39 38 90 00 25 [16:17:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [16:17:12]wFMCommunicate OK [16:17:12]requested_item fd.num is exist - process it [16:17:12]SAM_PROTO_GetFieldsCounters [16:17:12]wFMCommunicate request_size=4 [16:17:12]MH_SAM_APDU [16:17:12]CAPDU: 80 13 00 00 [16:17:12]Write to MH i2c: E2 08 00 18 36 80 13 00 00 00 00 00 00 CA [16:17:12]Write i2c OK [16:17:12]MH_I2C_Read... [16:17:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:17:12]Read from MH i2c: E2 [16:17:12]MH_I2C_Read... [16:17:12]Read from MH i2c: E2 62 00 [16:17:12]MH_I2C_Read... [16:17:12]Read from MH i2c: E2 62 00 18 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 98 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 66 [16:17: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 98 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:17:12]wFMCommunicate OK [16:17:12]SAM_PROTO_GetFieldsCounters done [16:17:12]requested_item shift.num is exist - process it [16:17:12]requested_item shift.opened is exist - process it [16:17:12]req_shift_opened [16:17:12]FM_GetShiftState [16:17:12]SAM_PROTO_GetShiftState [16:17:12]wFMCommunicate request_size=4 [16:17:12]MH_SAM_APDU [16:17:12]CAPDU: 80 13 01 00 [16:17:12]Write to MH i2c: E2 08 00 19 36 80 13 01 00 00 00 00 00 CC [16:17:12]Write i2c OK [16:17:12]MH_I2C_Read... [16:17:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:17:12]Read from MH i2c: E2 [16:17:12]MH_I2C_Read... [16:17:12]Read from MH i2c: E2 0E 00 [16:17:12]MH_I2C_Read... [16:17:12]Read from MH i2c: E2 0E 00 19 36 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 8E [16:17:12]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [16:17:12]wFMCommunicate OK [16:17:12]SAM_PROTO_GetShiftState done [16:17:12]FM_GetShiftState done [16:17:12]req_shift_opened done [16:17:12]requested_item shift.open_date is exist - process it [16:17:12]req_shift_open_date [16:17:12]req_shift_open_date done [16:17:12]produce_requested_data done [16:17:12]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123288,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [16:17:12]process_action_free close_receipt [16:17:12]json_value_free [16:17:12]json_value_free done [16:17:12]process_json_proto returns [16:17:12]Send response to host [16:17:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123288,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [16:17:12]free response buf [16:17:12]execute_script done [16:17:12]execute_script returns [16:17:12]free content buf [16:17:12]Sock 7.Close socket [16:17:12]Sock 7.Thread stoped [16:17:15]OFD Sender: No OFD packet to send [16:17:20]OFD Sender: No OFD packet to send [16:17:25]OFD Sender: No OFD packet to send [16:17:30]OFD Sender: No OFD packet to send [16:17:35]OFD Sender: No OFD packet to send [16:17:40]OFD Sender: No OFD packet to send [16:17:45]OFD Sender: No OFD packet to send [16:17:50]OFD Sender: No OFD packet to send [16:17:55]OFD Sender: No OFD packet to send [16:18:00]OFD Sender: No OFD packet to send [16:18:05]OFD Sender: No OFD packet to send [16:18:10]OFD Sender: No OFD packet to send [16:18:15]OFD Sender: No OFD packet to send [16:18:20]OFD Sender: No OFD packet to send [16:18:25]OFD Sender: No OFD packet to send [16:18:30]OFD Sender: No OFD packet to send [16:18:35]OFD Sender: No OFD packet to send [16:18:40]OFD Sender: No OFD packet to send [16:18:45]OFD Sender: No OFD packet to send [16:18:50]OFD Sender: No OFD packet to send [16:18:55]OFD Sender: No OFD packet to send [16:19:00]OFD Sender: No OFD packet to send [16:19:05]OFD Sender: No OFD packet to send [16:19:10]OFD Sender: No OFD packet to send [16:19:15]OFD Sender: No OFD packet to send [16:19:20]OFD Sender: No OFD packet to send [16:19:25]OFD Sender: No OFD packet to send [16:19:30]OFD Sender: No OFD packet to send [16:19:35]OFD Sender: No OFD packet to send [16:19:40]OFD Sender: No OFD packet to send [16:19:45]OFD Sender: No OFD packet to send [16:19:50]OFD Sender: No OFD packet to send [16:19:55]OFD Sender: No OFD packet to send [16:20:00]OFD Sender: No OFD packet to send [16:20:05]OFD Sender: No OFD packet to send [16:20:10]OFD Sender: No OFD packet to send [16:20:15]OFD Sender: No OFD packet to send [16:20:20]OFD Sender: No OFD packet to send [16:20:25]OFD Sender: No OFD packet to send [16:20:30]OFD Sender: No OFD packet to send [16:20:35]OFD Sender: No OFD packet to send [16:20:40]OFD Sender: No OFD packet to send [16:20:45]OFD Sender: No OFD packet to send [16:20:50]OFD Sender: No OFD packet to send [16:20:55]OFD Sender: No OFD packet to send [16:21:00]OFD Sender: No OFD packet to send [16:21:05]OFD Sender: No OFD packet to send [16:21:10]OFD Sender: No OFD packet to send [16:21:15]OFD Sender: No OFD packet to send [16:21:20]OFD Sender: No OFD packet to send [16:21:25]OFD Sender: No OFD packet to send [16:21:30]OFD Sender: No OFD packet to send [16:21:35]OFD Sender: No OFD packet to send [16:21:40]OFD Sender: No OFD packet to send [16:21:45]OFD Sender: No OFD packet to send [16:21:50]OFD Sender: No OFD packet to send [16:21:55]OFD Sender: No OFD packet to send [16:22:00]OFD Sender: No OFD packet to send [16:22:05]OFD Sender: No OFD packet to send [16:22:10]OFD Sender: No OFD packet to send [16:22:15]OFD Sender: No OFD packet to send [16:22:20]OFD Sender: No OFD packet to send [16: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:25:55]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:28:00]OFD Sender: No OFD packet to send [16:28:05]OFD Sender: No OFD packet to send [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:10]OFD Sender: No OFD packet to send [16:29:15]OFD Sender: No OFD packet to send [16:29:20]OFD Sender: No OFD packet to send [16:29:25]OFD Sender: No OFD packet to send [16:29:30]OFD Sender: No OFD packet to send [16:29:35]OFD Sender: No OFD packet to send [16:29:40]OFD Sender: No OFD packet to send [16:29:45]OFD Sender: No OFD packet to send [16:29:47]accept exits with 9 [16:29:47]New connection [16:29:47]New thread 3067395428 created [16:29:47]Thread 3067252068 joined [16:29:47]Waiting for new connection... [16:29:47] Sock 9.Parse request [16:29:47]Sock 9.Check first char [16:29:47]Sock 9.First char is OK [16:29:47]request: POST /json_proto HTTP/1.0 [16:29:47]Method: POST [16:29:47]URL: /json_proto [16:29:47]Method is POST - this is cgi request [16:29:47]url: /json_proto [16:29:47]query_string will be loaded in cgi processing [16:29:47]execute_cgi json_proto POST (null) [16:29:47]execute_cgi path=json_proto method=POST [16:29:47]POST find Content-Length [16:29:47]Host: 172.17.48.197:8080 [16:29:47]Content-Length: 809 [16:29:47]Content-Type: application/json [16:29:47] [16:29:47]POST finish read [16:29:47]Found Content-Length = 809 [16:29:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106227", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 28.780, "sum" : 2000.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.21 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:29:47]execute_script... [16:29: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)1106227", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 28.780, "sum" : 2000.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.21 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:29:47]POST & json_proto [16:29:47]process_json_proto [16:29:47]json parsed OK: [16:29:47]protocol is kg_v1.0 [16:29:47]action value=close_receipt [16:29:47]process_action close_receipt [16:29:47]cmd_close_receipt [16:29:47]MH_GetDate [16:29:47]Write to MH i2c: F0 00 00 1A 36 3F [16:29:47]Write i2c OK [16:29:47]MH_I2C_Read... [16:29:47]Read from MH i2c: F0 [16:29:47]MH_I2C_Read... [16:29:47]Read from MH i2c: F0 09 00 [16:29:47]MH_I2C_Read... [16:29:47]Read from MH i2c: F0 09 00 1A 36 00 7F A5 E4 65 6C AF E3 65 18 [16:29:47]GetLastDocTimeStamp 1709482631 [16:29:47]current date 1709483391 [16:29:47]FM_GetShiftState [16:29:47]SAM_PROTO_GetShiftState [16:29:47]wFMCommunicate request_size=4 [16:29:47]MH_SAM_APDU [16:29:47]CAPDU: 80 13 01 00 [16:29:47]Write to MH i2c: E2 08 00 1B 36 80 13 01 00 00 00 00 00 CE [16:29:47]Write i2c OK [16:29:47]MH_I2C_Read... [16:29:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:29:47]Read from MH i2c: E2 [16:29:47]MH_I2C_Read... [16:29:47]Read from MH i2c: E2 0E 00 [16:29:47]MH_I2C_Read... [16:29:47]Read from MH i2c: E2 0E 00 1B 36 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 90 [16:29:47]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [16:29:47]wFMCommunicate OK [16:29:47]SAM_PROTO_GetShiftState done [16:29:47]FM_GetShiftState done [16:29:47]opened in 1709425579 [16:29:47]opened+sec_in_day 1709511979 [16:29:47]quantity*price = 200021 [16:29:47]sum+1 = 200022 [16:29:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.21 НСП 1% : 17.70 НДС 12% : 212.41 Наличными: 0.00 Безнал.: 2000.21 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 146 03.03.2024 16:29 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874798 ФД: 123289 ФПД: 130861619729043 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T162951&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123289&fm=130861619729043&tin=02508201610067®Number=0000000000090573&sum=200021 [16:29:48]StoreToDocumentArchive [16:29:48]shift 323 fd 123289 [16:29:48]save to /storage/0323/doc_00123289 [16:29:48]save last doc name /storage/0323/doc_00123289 to /storage/kkm_last_doc_name [16:29:48]save OK [16:29:48]Clear old archive folders... [16:29:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:29:48]tlvbuf is 00DA8A20 [16:29:48]SAM_PROTO_ClearQueue [16:29:48]wFMCommunicate request_size=4 [16:29:48]MH_SAM_APDU [16:29:48]CAPDU: 80 09 00 00 [16:29:48]Write to MH i2c: E2 08 00 28 36 80 09 00 00 00 00 00 00 D0 [16:29:48]Write i2c OK [16:29:48]MH_I2C_Read... [16:29:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:29:48]Read from MH i2c: E2 [16:29:48]MH_I2C_Read... [16:29:48]Read from MH i2c: E2 03 00 [16:29:48]MH_I2C_Read... [16:29:48]Read from MH i2c: E2 03 00 28 36 00 90 00 D2 [16:29:48]RAPDU: 90 00 [16:29:48]wFMCommunicate OK [16:29:48]SAM_PROTO_ClearQueue done [16:29:48]KKMCreateOFDPacket [16:29:48]OFDProtocolAddRootSTLVToBuf [16:29:48]FM_MakeSignedData [16:29:48]FM_MakeSignedData [16:29:48]SAM_PROTO_SignData [16:29:48]wFMCommunicate request_size=4 [16:29:48]MH_SAM_APDU [16:29:48]CAPDU: 80 0D 01 02 [16:29:48]Write to MH i2c: E2 08 00 29 36 80 0D 01 02 00 00 00 00 D8 [16:29:48]Write i2c OK [16:29:48]MH_I2C_Read... [16:29:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:29:48]Read from MH i2c: E2 [16:29:48]MH_I2C_Read... [16:29:48]Read from MH i2c: E2 03 00 [16:29:48]MH_I2C_Read... [16:29:48]Read from MH i2c: E2 03 00 29 36 00 90 00 D3 [16:29:48]RAPDU: 90 00 [16:29:48]wFMCommunicate OK [16:29:48]wFMCommunicate request_size=255 [16:29:48]MH_SAM_APDU [16:29:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 6C 70 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 55 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 55 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 55 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 7F A5 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 99 E1 01 00 35 04 06 00 77 [16:29:48]Write to MH i2c: E2 02 01 2A 36 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 6C 70 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 55 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 55 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 55 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 7F A5 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 99 E1 01 00 35 04 06 00 77 00 00 AC [16:29:48]Write i2c OK [16:29:48]MH_I2C_Read... [16:29:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:29:48]Read from MH i2c: E2 [16:29:48]MH_I2C_Read... [16:29:48]Read from MH i2c: E2 03 00 [16:29:48]MH_I2C_Read... [16:29:48]Read from MH i2c: E2 03 00 2A 36 00 90 00 D4 [16:29:48]RAPDU: 90 00 [16:29:48]wFMCommunicate OK [16:29:48]wFMCommunicate request_size=10 [16:29:48]MH_SAM_APDU [16:29:48]CAPDU: 80 0D 02 02 05 04 98 5B D2 93 [16:29:48]Write to MH i2c: E2 0D 00 2B 36 80 0D 02 02 05 00 04 98 5B D2 93 00 00 41 [16:29:48]Write i2c OK [16:29:48]MH_I2C_Read... [16:29:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:29:48]Read from MH i2c: E2 [16:29:48]MH_I2C_Read... [16:29:48]Read from MH i2c: E2 03 00 [16:29:48]MH_I2C_Read... [16:29:48]Read from MH i2c: E2 03 00 2B 36 00 90 00 D5 [16:29:48]RAPDU: 90 00 [16:29:48]wFMCommunicate OK [16:29:48]wFMCommunicate request_size=4 [16:29:48]MH_SAM_APDU [16:29:48]CAPDU: 80 0D 03 02 [16:29:48]Write to MH i2c: E2 08 00 2C 36 80 0D 03 02 00 00 00 00 DD [16:29:49]Write i2c OK [16:29:49]MH_I2C_Read... [16:29:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:29:49]Read from MH i2c: E2 [16:29:49]MH_I2C_Read... [16:29:49]Read from MH i2c: E2 0B 00 [16:29:49]MH_I2C_Read... [16:29:49]Read from MH i2c: E2 0B 00 2C 36 00 58 46 E6 19 CF 45 8B 5F 90 00 79 [16:29:49]RAPDU: 58 46 E6 19 CF 45 8B 5F 90 00 [16:29:49]wFMCommunicate OK [16:29:49]SAM_PROTO_SignData done [16:29:49]FM_MakeSignedData done [16:29:49]CreateOFDProtocolMessage [16:29:49]wFMCommunicate request_size=4 [16:29:49]MH_SAM_APDU [16:29:49]CAPDU: 80 11 00 00 [16:29:49]Write to MH i2c: E2 08 00 2D 36 80 11 00 00 00 00 00 00 DD [16:29:49]Write i2c OK [16:29:49]MH_I2C_Read... [16:29:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:29:49]Read from MH i2c: E2 [16:29:49]MH_I2C_Read... [16:29:49]Read from MH i2c: E2 17 00 [16:29:49]MH_I2C_Read... [16:29:49]Read from MH i2c: E2 17 00 2D 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 3B [16:29:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [16:29:49]wFMCommunicate OK [16:29:49]CreateOFDProtocolMessage done [16:29:49]OFDSenderStorePacket 123289 [16:29:49]StoreOFDPacket docnum=123289 [16:29:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 80 EE 07 01 FB 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 6C 70 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 55 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 55 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 55 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 7F A5 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 99 E1 01 00 35 04 06 00 77 04 98 5B D2 93 58 46 E6 19 CF 45 8B 5F [16:29:49]CheckFolder [16:29:49]dirname=/storage/ofd_packets [16:29:49]CheckFolder done [16:29:49]ProducePacketName [16:29:49]name=ofd_packets/00123289 [16:29:49]NVStorageSaveData ofd_packets/00123289 [16:29:49]File name is /storage/ofd_packets/00123289 [16:29:49]Write 301 bytes [16:29:49]NVStorageSaveData done [16:29:49]OFDSenderStorePacket done [16:29:49]KKMCreateOFDPacket done [16:29:49]NVStorageSaveData kkm_last_timestamp [16:29:49]File name is /storage/kkm_last_timestamp [16:29:49]Write 4 bytes [16:29:49]NVStorageSaveData done [16:29:49]ExternCall_PrintAddStr [16:29:49]wPrintStart [16:29:49]Write to MH i2c: 01 00 00 2E 36 64 [16:29:49]Write i2c OK [16:29:49]MH_I2C_Read... [16:29:49]Read from MH i2c: 01 [16:29:49]MH_I2C_Read... [16:29:49]Read from MH i2c: 01 07 00 [16:29:49]MH_I2C_Read... [16:29:49]Read from MH i2c: 01 07 00 2E 36 00 00 00 00 00 FF 0F 79 [16:29:49]RasterBufferAndPrint [16:29:49]line Счет N : (1)1106227 [16:29:49]line ИНН: 02508201610067 [16:29:49]line Контрольно-Кассовый Чек [16:29:49]line ПРОДАЖА [16:29:49]line ТРК (МРК, ГНК) : 53 [16:29:49]line Товар: 2710124500 [16:29:49]line Аи-95-К-5 [16:29:49]line 28.780 * 69.50 [16:29:49]line = 2000.21 [16:29:49]line НДС 12% НСП 1% [16:29:49]line > о реализуемом товаре [16:29:49]line ИТОГО: 2000.21 [16:29:49]line НСП 1% : 17.70 [16:29:49]line НДС 12% : 212.41 [16:29:49]line Наличными: 0.00 [16:29:49]line Безнал.: 2000.21 [16:29:49]line Место: АЗС № 25 "Партнер Нефть" [16:29:49]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [16:29:49]line СНО: Общий режим [16:29:49]line Чек 146 03.03.2024 16:29 [16:29:49]line Смена: 323 ФФД: 1.0 [16:29:49]line ЗНМ: 0300000019 [16:29:49]line РНМ: 0000000000090573 [16:29:49]line Версия ККМ: 001 [16:29:49]line Платежная система: О! деньги [16:29:49]line ФМ: 0000000000874798 [16:29:49]line ФД: 123289 [16:29:49]line ФПД: 130861619729043 [16:29:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T162951&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123289&fm=130861619729043&tin=02508201610067®Number=0000000000090573&sum=200021 [16:29:49]OFD Sender: Processing packet 123289 [packets to send 112, broken 111] [16:29:49]ProducePacketName [16:29:49]name=ofd_packets/00123289 [16:29:49]OFD Sender: To server: pG, [16:29:49]CommunicateWithHost lk.salyk.kg:30040 [16:29:49]ConnectInit lk.salyk.kg [16:29:49]written 0, free lines is 4095 [16:29:49]Connected sock=11 [16:29: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 37 39 38 0F 01 00 00 80 EE 07 01 FB 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 6C 70 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 55 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 55 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 55 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 7F A5 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 99 E1 01 00 35 04 06 00 77 04 98 5B D2 93 58 46 E6 19 CF 45 8B 5F [16:29:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 EE 8F 47 00 95 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 37 39 38 10 04 04 00 99 E1 01 00 F4 03 04 00 AA 51 E4 65 B6 04 01 00 00 45 76 6F 7A F4 63 B5 9D [16:29:49]CommunicateWithHost err = 0 [16:29:49]CheckOFDResponse [16:29:49]1017 (14) - 77093643461234 [16:29:49]1041 (16) - 0000000000874798 [16:29:49]1040 (4) - 123289 [16:29:49]1012 (4) - 03.03.2024 10:32 [16:29:49]1206 (1) - 0 [16:29:49]OFD Sender: Remove packet 123289 [16:29:49]ProducePacketName [16:29:49]name=ofd_packets/00123289 [16:29:49]NVStorageDeleteData [16:29:49]Write to MH i2c: 01 00 00 58 36 8E [16:29:49]Write i2c OK [16:29:49]MH_I2C_Read... [16:29:49]Read from MH i2c: 01 [16:29:49]MH_I2C_Read... [16:29:49]Read from MH i2c: 01 07 00 [16:29:49]MH_I2C_Read... [16:29:49]Read from MH i2c: 01 07 00 58 36 00 00 00 00 00 10 0D B2 [16:29:49]RasterBufferAndPrint [16:29:49]line [16:29:49]line [16:29:49]line [16:29:49]line [16:29:49]line [16:29:49]written 0, free lines is 3351 [16:29:49]MH_Cut [16:29:49]Write to MH i2c: D1 01 00 5F 36 01 67 [16:29:49]Write i2c OK [16:29:49]MH_I2C_Read... [16:29:49]Read from MH i2c: D1 [16:29:49]MH_I2C_Read... [16:29:49]Read from MH i2c: D1 01 00 [16:29:49]MH_I2C_Read... [16:29:49]Read from MH i2c: D1 01 00 5F 36 00 66 [16:29:49]Write to MH i2c: 01 00 00 60 36 96 [16:29:49]Write i2c OK [16:29:49]MH_I2C_Read... [16:29:50]OFD Sender: No OFD packet to send [16:29:50]*** Cut start [16:29:50]*** Purtial cut [16:29:50]*** Stage 1: CUTSNS_PIN = 1 [16:29:52]Read from MH i2c: 01 [16:29:52]MH_I2C_Read... [16:29:52]*** Stop cut motor [16:29:52]*** Cut end [16:29:52]Read from MH i2c: 01 07 00 [16:29:52]MH_I2C_Read... [16:29:52]Read from MH i2c: 01 07 00 60 36 00 00 00 00 00 FF 0F AB [16:29:52]process_action close_receipt done [16:29:52]requested_data is exist [16:29:52]produce_requested_data [16:29:52]requested_item fm.sn is exist - process it [16:29:52]wFMCommunicate request_size=4 [16:29:52]MH_SAM_APDU [16:29:52]CAPDU: 80 11 00 00 [16:29:52]Write to MH i2c: E2 08 00 61 36 80 11 00 00 00 00 00 00 11 [16:29:52]Write i2c OK [16:29:52]MH_I2C_Read... [16:29:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:29:52]Read from MH i2c: E2 [16:29:52]MH_I2C_Read... [16:29:52]Read from MH i2c: E2 17 00 [16:29:52]MH_I2C_Read... [16:29:52]Read from MH i2c: E2 17 00 61 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 6F [16:29:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [16:29:52]wFMCommunicate OK [16:29:52]requested_item fd.num is exist - process it [16:29:52]SAM_PROTO_GetFieldsCounters [16:29:52]wFMCommunicate request_size=4 [16:29:52]MH_SAM_APDU [16:29:52]CAPDU: 80 13 00 00 [16:29:52]Write to MH i2c: E2 08 00 62 36 80 13 00 00 00 00 00 00 14 [16:29:52]Write i2c OK [16:29:52]MH_I2C_Read... [16:29:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:29:52]Read from MH i2c: E2 [16:29:52]MH_I2C_Read... [16:29:52]Read from MH i2c: E2 62 00 [16:29:52]MH_I2C_Read... [16:29:52]Read from MH i2c: E2 62 00 62 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 99 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 B4 [16:29: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 99 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:29:52]wFMCommunicate OK [16:29:52]SAM_PROTO_GetFieldsCounters done [16:29:52]requested_item shift.num is exist - process it [16:29:52]requested_item shift.opened is exist - process it [16:29:52]req_shift_opened [16:29:52]FM_GetShiftState [16:29:52]SAM_PROTO_GetShiftState [16:29:52]wFMCommunicate request_size=4 [16:29:52]MH_SAM_APDU [16:29:52]CAPDU: 80 13 01 00 [16:29:52]Write to MH i2c: E2 08 00 63 36 80 13 01 00 00 00 00 00 16 [16:29:52]Write i2c OK [16:29:52]MH_I2C_Read... [16:29:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:29:52]Read from MH i2c: E2 [16:29:52]MH_I2C_Read... [16:29:52]Read from MH i2c: E2 0E 00 [16:29:52]MH_I2C_Read... [16:29:52]Read from MH i2c: E2 0E 00 63 36 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 D8 [16:29:52]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [16:29:52]wFMCommunicate OK [16:29:52]SAM_PROTO_GetShiftState done [16:29:52]FM_GetShiftState done [16:29:52]req_shift_opened done [16:29:52]requested_item shift.open_date is exist - process it [16:29:52]req_shift_open_date [16:29:52]req_shift_open_date done [16:29:52]produce_requested_data done [16:29:52]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123289,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [16:29:52]process_action_free close_receipt [16:29:52]json_value_free [16:29:52]json_value_free done [16:29:52]process_json_proto returns [16:29:52]Send response to host [16:29:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123289,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [16:29:52]free response buf [16:29:52]execute_script done [16:29:52]execute_script returns [16:29:52]free content buf [16:29:52]Sock 9.Close socket [16:29:52]Sock 9.Thread stoped [16:29:55]OFD Sender: No OFD packet to send [16:30:00]OFD Sender: No OFD packet to send [16:30:05]OFD Sender: No OFD packet to send [16:30:10]OFD Sender: No OFD packet to send [16:30:15]OFD Sender: No OFD packet to send [16:30:20]OFD Sender: No OFD packet to send [16:30:25]OFD Sender: No OFD packet to send [16:30:30]OFD Sender: No OFD packet to send [16:30:35]OFD Sender: No OFD packet to send [16:30:40]OFD Sender: No OFD packet to send [16:30:45]OFD Sender: No OFD packet to send [16:30:50]OFD Sender: No OFD packet to send [16:30:55]OFD Sender: No OFD packet to send [16:31:00]OFD Sender: No OFD packet to send [16:31:05]OFD Sender: No OFD packet to send [16:31:10]OFD Sender: No OFD packet to send [16:31:15]OFD Sender: No OFD packet to send [16:31:20]OFD Sender: No OFD packet to send [16:31:25]OFD Sender: No OFD packet to send [16:31:30]OFD Sender: No OFD packet to send [16:31:35]OFD Sender: No OFD packet to send [16:31:40]OFD Sender: No OFD packet to send [16:31:45]OFD Sender: No OFD packet to send [16:31:50]OFD Sender: No OFD packet to send [16:31:55]OFD Sender: No OFD packet to send [16:32:00]OFD Sender: No OFD packet to send [16:32:00]accept exits with 7 [16:32:00]New connection [16:32:00]New thread 3067252068 created [16:32:00]Thread 3067395428 joined [16:32:00]Waiting for new connection... [16:32:00] Sock 7.Parse request [16:32:00]Sock 7.Check first char [16:32:00]Sock 7.First char is OK [16:32:00]request: POST /json_proto HTTP/1.0 [16:32:00]Method: POST [16:32:00]URL: /json_proto [16:32:00]Method is POST - this is cgi request [16:32:00]url: /json_proto [16:32:00]query_string will be loaded in cgi processing [16:32:00]execute_cgi json_proto POST (null) [16:32:00]execute_cgi path=json_proto method=POST [16:32:00]POST find Content-Length [16:32:00]Host: 172.17.48.197:8080 [16:32:00]Content-Length: 822 [16:32:00]Content-Type: application/json [16:32:00] [16:32:00]POST finish read [16:32:00]Found Content-Length = 822 [16:32:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106228", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 70.90, "quantity" : 7.060, "sum" : 500.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.55 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:32:00]execute_script... [16:32: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 : (1)1106228", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 70.90, "quantity" : 7.060, "sum" : 500.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.55 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:32:00]POST & json_proto [16:32:00]process_json_proto [16:32:00]json parsed OK: [16:32:00]protocol is kg_v1.0 [16:32:00]action value=close_receipt [16:32:00]process_action close_receipt [16:32:00]cmd_close_receipt [16:32:00]MH_GetDate [16:32:00]Write to MH i2c: F0 00 00 64 36 89 [16:32:00]Write i2c OK [16:32:00]MH_I2C_Read... [16:32:00]Read from MH i2c: F0 [16:32:00]MH_I2C_Read... [16:32:00]Read from MH i2c: F0 09 00 [16:32:00]MH_I2C_Read... [16:32:00]Read from MH i2c: F0 09 00 64 36 00 04 A6 E4 65 6C AF E3 65 E8 [16:32:00]GetLastDocTimeStamp 1709483391 [16:32:00]current date 1709483524 [16:32:00]FM_GetShiftState [16:32:00]SAM_PROTO_GetShiftState [16:32:00]wFMCommunicate request_size=4 [16:32:00]MH_SAM_APDU [16:32:00]CAPDU: 80 13 01 00 [16:32:00]Write to MH i2c: E2 08 00 65 36 80 13 01 00 00 00 00 00 18 [16:32:00]Write i2c OK [16:32:00]MH_I2C_Read... [16:32:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:32:00]Read from MH i2c: E2 [16:32:00]MH_I2C_Read... [16:32:00]Read from MH i2c: E2 0E 00 [16:32:00]MH_I2C_Read... [16:32:00]Read from MH i2c: E2 0E 00 65 36 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 DA [16:32:00]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [16:32:00]wFMCommunicate OK [16:32:00]SAM_PROTO_GetShiftState done [16:32:00]FM_GetShiftState done [16:32:00]opened in 1709425579 [16:32:00]opened+sec_in_day 1709511979 [16:32:00]quantity*price = 50055 [16:32:00]sum+1 = 50056 [16:32:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.55 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 0.00 Безнал.: 500.55 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 147 03.03.2024 16:32 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874798 ФД: 123290 ФПД: 60390758198260 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T163204&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123290&fm=60390758198260&tin=02508201610067®Number=0000000000090573&sum=50055 [16:32:01]StoreToDocumentArchive [16:32:01]shift 323 fd 123290 [16:32:01]save to /storage/0323/doc_00123290 [16:32:01]save last doc name /storage/0323/doc_00123290 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=252 [16:32:01]tlvbuf is 00D9DEF0 [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 72 36 80 09 00 00 00 00 00 00 1A [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 72 36 00 90 00 1C [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 73 36 80 0D 01 02 00 00 00 00 22 [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:02]Read from MH i2c: E2 03 00 [16:32:02]MH_I2C_Read... [16:32:02]Read from MH i2c: E2 03 00 73 36 00 90 00 1D [16:32:02]RAPDU: 90 00 [16:32:02]wFMCommunicate OK [16:32:02]wFMCommunicate request_size=255 [16:32:02]MH_SAM_APDU [16:32:02]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 35 FF 03 08 00 03 94 1B 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 87 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 87 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 00 00 00 00 00 00 39 04 06 00 87 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 04 A6 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 9A E1 01 00 35 04 06 00 [16:32:02]Write to MH i2c: E2 02 01 74 36 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 35 FF 03 08 00 03 94 1B 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 87 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 87 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 00 00 00 00 00 00 39 04 06 00 87 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 04 A6 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 9A E1 01 00 35 04 06 00 00 00 A5 [16:32:02]Write i2c OK [16:32:02]MH_I2C_Read... [16:32:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:32:02]Read from MH i2c: E2 [16:32:02]MH_I2C_Read... [16:32:02]Read from MH i2c: E2 03 00 [16:32:02]MH_I2C_Read... [16:32:02]Read from MH i2c: E2 03 00 74 36 00 90 00 1E [16:32:02]RAPDU: 90 00 [16:32:02]wFMCommunicate OK [16:32:02]wFMCommunicate request_size=11 [16:32:02]MH_SAM_APDU [16:32:02]CAPDU: 80 0D 02 02 06 36 EC D1 B0 AB F4 [16:32:02]Write to MH i2c: E2 0E 00 75 36 80 0D 02 02 06 00 36 EC D1 B0 AB F4 00 00 73 [16:32:02]Write i2c OK [16:32:02]MH_I2C_Read... [16:32:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:32:02]Read from MH i2c: E2 [16:32:02]MH_I2C_Read... [16:32:02]Read from MH i2c: E2 03 00 [16:32:02]MH_I2C_Read... [16:32:02]Read from MH i2c: E2 03 00 75 36 00 90 00 1F [16:32:02]RAPDU: 90 00 [16:32:02]wFMCommunicate OK [16:32:02]wFMCommunicate request_size=4 [16:32:02]MH_SAM_APDU [16:32:02]CAPDU: 80 0D 03 02 [16:32:02]Write to MH i2c: E2 08 00 76 36 80 0D 03 02 00 00 00 00 27 [16:32:02]Write i2c OK [16:32:02]MH_I2C_Read... [16:32:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:32:02]Read from MH i2c: E2 [16:32:02]MH_I2C_Read... [16:32:02]Read from MH i2c: E2 0B 00 [16:32:02]MH_I2C_Read... [16:32:02]Read from MH i2c: E2 0B 00 76 36 00 A3 F7 C1 05 7B BA 47 54 90 00 58 [16:32:02]RAPDU: A3 F7 C1 05 7B BA 47 54 90 00 [16:32:02]wFMCommunicate OK [16:32:02]SAM_PROTO_SignData done [16:32:02]FM_MakeSignedData done [16:32:02]CreateOFDProtocolMessage [16:32:02]wFMCommunicate request_size=4 [16:32:02]MH_SAM_APDU [16:32:02]CAPDU: 80 11 00 00 [16:32:02]Write to MH i2c: E2 08 00 77 36 80 11 00 00 00 00 00 00 27 [16:32:02]Write i2c OK [16:32:02]MH_I2C_Read... [16:32:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:32:02]Read from MH i2c: E2 [16:32:02]MH_I2C_Read... [16:32:02]Read from MH i2c: E2 17 00 [16:32:02]MH_I2C_Read... [16:32:02]Read from MH i2c: E2 17 00 77 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 85 [16:32:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [16:32:02]wFMCommunicate OK [16:32:02]CreateOFDProtocolMessage done [16:32:02]OFDSenderStorePacket 123290 [16:32:02]StoreOFDPacket docnum=123290 [16:32:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 01 00 00 DA 4A 08 01 AC A0 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 35 FF 03 08 00 03 94 1B 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 87 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 87 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 00 00 00 00 00 00 39 04 06 00 87 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 04 A6 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 9A E1 01 00 35 04 06 00 36 EC D1 B0 AB F4 A3 F7 C1 05 7B BA 47 54 [16:32:02]CheckFolder [16:32:02]dirname=/storage/ofd_packets [16:32:02]CheckFolder done [16:32:02]ProducePacketName [16:32:02]name=ofd_packets/00123290 [16:32:02]NVStorageSaveData ofd_packets/00123290 [16:32:02]File name is /storage/ofd_packets/00123290 [16:32:02]Write 302 bytes [16:32:02]NVStorageSaveData done [16:32:02]OFDSenderStorePacket done [16:32:02]KKMCreateOFDPacket done [16:32:02]NVStorageSaveData kkm_last_timestamp [16:32:02]File name is /storage/kkm_last_timestamp [16:32:02]Write 4 bytes [16:32:02]NVStorageSaveData done [16:32:02]ExternCall_PrintAddStr [16:32:02]wPrintStart [16:32:02]Write to MH i2c: 01 00 00 78 36 AE [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 78 36 00 00 00 00 00 FF 0F C3 [16:32:02]RasterBufferAndPrint [16:32:02]line Счет N : (1)1106228 [16:32:02]line ИНН: 02508201610067 [16:32:02]line Контрольно-Кассовый Чек [16:32:02]line ПРОДАЖА [16:32:02]line ТРК (МРК, ГНК) : 51 [16:32:02]line Товар: 2710194210 [16:32:02]line ДТ(л)-К-5 [16:32:02]line 7.060 * 70.90 [16:32:02]line = 500.55 [16:32:02]line НДС 12% НСП 1% [16:32:02]line > о реализуемом товаре [16:32:02]line ИТОГО: 500.55 [16:32:02]line НСП 1% : 4.43 [16:32:02]line НДС 12% : 53.16 [16:32:02]line Наличными: 0.00 [16:32:02]line Безнал.: 500.55 [16:32:02]line Место: АЗС № 25 "Партнер Нефть" [16:32:02]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [16:32:02]line СНО: Общий режим [16:32:02]line Чек 147 03.03.2024 16:32 [16:32:02]line Смена: 323 ФФД: 1.0 [16:32:02]line ЗНМ: 0300000019 [16:32:02]line РНМ: 0000000000090573 [16:32:02]line Версия ККМ: 001 [16:32:02]line Платежная система: Бакай Банк [16:32:02]line ФМ: 0000000000874798 [16:32:02]line ФД: 123290 [16:32:02]line ФПД: 60390758198260 [16:32:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T163204&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123290&fm=60390758198260&tin=02508201610067®Number=0000000000090573&sum=50055 [16:32:02]OFD Sender: Processing packet 123290 [packets to send 112, broken 111] [16:32:02]ProducePacketName [16:32:02]name=ofd_packets/00123290 [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 37 39 38 10 01 00 00 DA 4A 08 01 AC A0 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 35 FF 03 08 00 03 94 1B 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 87 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 87 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 00 00 00 00 00 00 39 04 06 00 87 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 04 A6 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 9A E1 01 00 35 04 06 00 36 EC D1 B0 AB F4 A3 F7 C1 05 7B BA 47 54 [16:32:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 59 83 47 00 D2 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 37 39 38 10 04 04 00 9A E1 01 00 F4 03 04 00 30 52 E4 65 B6 04 01 00 00 47 8F 33 08 35 8A 93 87 [16:32:03]CommunicateWithHost err = 0 [16:32:03]CheckOFDResponse [16:32:03]1017 (14) - 77093643461234 [16:32:03]1041 (16) - 0000000000874798 [16:32:03]1040 (4) - 123290 [16:32:03]1012 (4) - 03.03.2024 10:34 [16:32:03]1206 (1) - 0 [16:32:03]OFD Sender: Remove packet 123290 [16:32:03]ProducePacketName [16:32:03]name=ofd_packets/00123290 [16:32:03]NVStorageDeleteData [16:32:03]Write to MH i2c: 01 00 00 A2 36 D8 [16:32:03]Write i2c OK [16:32:03]MH_I2C_Read... [16:32:03]Read from MH i2c: 01 [16:32:03]MH_I2C_Read... [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 A2 36 00 00 00 00 00 01 0D ED [16:32:03]RasterBufferAndPrint [16:32:03]line [16:32:03]line [16:32:03]line [16:32:03]line [16:32:03]line [16:32:03]written 0, free lines is 3335 [16:32:03]MH_Cut [16:32:03]Write to MH i2c: D1 01 00 A9 36 01 B1 [16:32:03]Write i2c OK [16:32:03]MH_I2C_Read... [16:32:03]Read from MH i2c: D1 [16:32:03]MH_I2C_Read... [16:32:03]Read from MH i2c: D1 01 00 [16:32:03]MH_I2C_Read... [16:32:03]Read from MH i2c: D1 01 00 A9 36 00 B0 [16:32:03]Write to MH i2c: 01 00 00 AA 36 E0 [16:32:03]Write i2c OK [16:32:03]MH_I2C_Read... [16:32:03]OFD Sender: No OFD packet to send [16:32:03]*** Cut start [16:32:03]*** Purtial cut [16:32:03]*** Stage 1: CUTSNS_PIN = 1 [16:32:05]Read from MH i2c: 01 [16:32:05]MH_I2C_Read... [16:32:05]*** Stop cut motor [16:32:05]*** Cut end [16:32:05]Read from MH i2c: 01 07 00 [16:32:05]MH_I2C_Read... [16:32:05]Read from MH i2c: 01 07 00 AA 36 00 00 00 00 00 FF 0F F5 [16:32:05]process_action close_receipt done [16:32:05]requested_data is exist [16:32:05]produce_requested_data [16:32:05]requested_item fm.sn is exist - process it [16:32:05]wFMCommunicate request_size=4 [16:32:05]MH_SAM_APDU [16:32:05]CAPDU: 80 11 00 00 [16:32:05]Write to MH i2c: E2 08 00 AB 36 80 11 00 00 00 00 00 00 5B [16:32:05]Write i2c OK [16:32:05]MH_I2C_Read... [16:32:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:32:06]Read from MH i2c: E2 [16:32:06]MH_I2C_Read... [16:32:06]Read from MH i2c: E2 17 00 [16:32:06]MH_I2C_Read... [16:32:06]Read from MH i2c: E2 17 00 AB 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 B9 [16:32:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [16:32:06]wFMCommunicate OK [16:32:06]requested_item fd.num is exist - process it [16:32:06]SAM_PROTO_GetFieldsCounters [16:32:06]wFMCommunicate request_size=4 [16:32:06]MH_SAM_APDU [16:32:06]CAPDU: 80 13 00 00 [16:32:06]Write to MH i2c: E2 08 00 AC 36 80 13 00 00 00 00 00 00 5E [16:32:06]Write i2c OK [16:32:06]MH_I2C_Read... [16:32:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:32:06]Read from MH i2c: E2 [16:32:06]MH_I2C_Read... [16:32:06]Read from MH i2c: E2 62 00 [16:32:06]MH_I2C_Read... [16:32:06]Read from MH i2c: E2 62 00 AC 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 9A E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 02 [16:32: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 9A E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:32:06]wFMCommunicate OK [16:32:06]SAM_PROTO_GetFieldsCounters done [16:32:06]requested_item shift.num is exist - process it [16:32:06]requested_item shift.opened is exist - process it [16:32:06]req_shift_opened [16:32:06]FM_GetShiftState [16:32:06]SAM_PROTO_GetShiftState [16:32:06]wFMCommunicate request_size=4 [16:32:06]MH_SAM_APDU [16:32:06]CAPDU: 80 13 01 00 [16:32:06]Write to MH i2c: E2 08 00 AD 36 80 13 01 00 00 00 00 00 60 [16:32:06]Write i2c OK [16:32:06]MH_I2C_Read... [16:32:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:32:06]Read from MH i2c: E2 [16:32:06]MH_I2C_Read... [16:32:06]Read from MH i2c: E2 0E 00 [16:32:06]MH_I2C_Read... [16:32:06]Read from MH i2c: E2 0E 00 AD 36 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 22 [16:32:06]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [16:32:06]wFMCommunicate OK [16:32:06]SAM_PROTO_GetShiftState done [16:32:06]FM_GetShiftState done [16:32:06]req_shift_opened done [16:32:06]requested_item shift.open_date is exist - process it [16:32:06]req_shift_open_date [16:32:06]req_shift_open_date done [16:32:06]produce_requested_data done [16:32:06]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123290,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [16:32:06]process_action_free close_receipt [16:32:06]json_value_free [16:32:06]json_value_free done [16:32:06]process_json_proto returns [16:32:06]Send response to host [16:32:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123290,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [16:32:06]free response buf [16:32:06]execute_script done [16:32:06]execute_script returns [16:32:06]free content buf [16:32:06]Sock 7.Close socket [16:32:06]Sock 7.Thread stoped [16:32:08]OFD Sender: No OFD packet to send [16:32:13]OFD Sender: No OFD packet to send [16:32:18]OFD Sender: No OFD packet to send [16:32:23]OFD Sender: No OFD packet to send [16:32:28]OFD Sender: No OFD packet to send [16:32:33]OFD Sender: No OFD packet to send [16:32:38]OFD Sender: No OFD packet to send [16:32:43]OFD Sender: No OFD packet to send [16:32:48]OFD Sender: No OFD packet to send [16:32:53]OFD Sender: No OFD packet to send [16:32:58]OFD Sender: No OFD packet to send [16:33:03]OFD Sender: No OFD packet to send [16:33:04]accept exits with 9 [16:33:04]New connection [16:33:04]New thread 3067395428 created [16:33:04]Thread 3067252068 joined [16:33:04]Waiting for new connection... [16:33:04] Sock 9.Parse request [16:33:04]Sock 9.Check first char [16:33:04]Sock 9.First char is OK [16:33:04]request: POST /json_proto HTTP/1.0 [16:33:04]Method: POST [16:33:04]URL: /json_proto [16:33:04]Method is POST - this is cgi request [16:33:04]url: /json_proto [16:33:04]query_string will be loaded in cgi processing [16:33:04]execute_cgi json_proto POST (null) [16:33:04]execute_cgi path=json_proto method=POST [16:33:04]POST find Content-Length [16:33:04]Host: 172.17.48.197:8080 [16:33:04]Content-Length: 678 [16:33:04]Content-Type: application/json [16:33:04] [16:33:04]POST finish read [16:33:04]Found Content-Length = 678 [16:33:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106229", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.890, "sum" : 550.29, "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" ] } } [16:33:04]execute_script... [16:33: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)1106229", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.890, "sum" : 550.29, "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" ] } } [16:33:04]POST & json_proto [16:33:04]process_json_proto [16:33:04]json parsed OK: [16:33:04]protocol is kg_v1.0 [16:33:04]action value=close_receipt [16:33:04]process_action close_receipt [16:33:04]cmd_close_receipt [16:33:04]MH_GetDate [16:33:04]Write to MH i2c: F0 00 00 AE 36 D3 [16:33:04]Write i2c OK [16:33:04]MH_I2C_Read... [16:33:04]Read from MH i2c: F0 [16:33:04]MH_I2C_Read... [16:33:04]Read from MH i2c: F0 09 00 [16:33:04]MH_I2C_Read... [16:33:04]Read from MH i2c: F0 09 00 AE 36 00 44 A6 E4 65 6C AF E3 65 72 [16:33:04]GetLastDocTimeStamp 1709483524 [16:33:04]current date 1709483588 [16:33:04]FM_GetShiftState [16:33:04]SAM_PROTO_GetShiftState [16:33:04]wFMCommunicate request_size=4 [16:33:04]MH_SAM_APDU [16:33:04]CAPDU: 80 13 01 00 [16:33:04]Write to MH i2c: E2 08 00 AF 36 80 13 01 00 00 00 00 00 62 [16:33:04]Write i2c OK [16:33:04]MH_I2C_Read... [16:33:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:33:04]Read from MH i2c: E2 [16:33:04]MH_I2C_Read... [16:33:04]Read from MH i2c: E2 0E 00 [16:33:04]MH_I2C_Read... [16:33:04]Read from MH i2c: E2 0E 00 AF 36 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 24 [16:33:04]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [16:33:04]wFMCommunicate OK [16:33:04]SAM_PROTO_GetShiftState done [16:33:04]FM_GetShiftState done [16:33:04]opened in 1709425579 [16:33:04]opened+sec_in_day 1709511979 [16:33:04]quantity*price = 55029 [16:33:04]sum+1 = 55030 [16:33:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 550.00 Внесено: 550.00 СДАЧА: 0.00 НСП 1% : 4.87 НДС 12% : 58.44 Наличными: 550.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 148 03.03.2024 16:33 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123291 ФПД: 29732540245639 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T163308&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123291&fm=29732540245639&tin=02508201610067®Number=0000000000090573&sum=55000 [16:33:05]StoreToDocumentArchive [16:33:05]shift 323 fd 123291 [16:33:05]save to /storage/0323/doc_00123291 [16:33:05]save last doc name /storage/0323/doc_00123291 to /storage/kkm_last_doc_name [16:33:05]save OK [16:33:05]Clear old archive folders... [16:33:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:33:05]tlvbuf is 00DECA10 [16:33:05]SAM_PROTO_ClearQueue [16:33:05]wFMCommunicate request_size=4 [16:33:05]MH_SAM_APDU [16:33:05]CAPDU: 80 09 00 00 [16:33:05]Write to MH i2c: E2 08 00 BC 36 80 09 00 00 00 00 00 00 64 [16:33:05]Write i2c OK [16:33:05]MH_I2C_Read... [16:33:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:33:05]Read from MH i2c: E2 [16:33:05]MH_I2C_Read... [16:33:05]Read from MH i2c: E2 03 00 [16:33:05]MH_I2C_Read... [16:33:05]Read from MH i2c: E2 03 00 BC 36 00 90 00 66 [16:33:05]RAPDU: 90 00 [16:33:05]wFMCommunicate OK [16:33:05]SAM_PROTO_ClearQueue done [16:33:05]KKMCreateOFDPacket [16:33:05]OFDProtocolAddRootSTLVToBuf [16:33:05]FM_MakeSignedData [16:33:05]FM_MakeSignedData [16:33:05]SAM_PROTO_SignData [16:33:05]wFMCommunicate request_size=4 [16:33:05]MH_SAM_APDU [16:33:05]CAPDU: 80 0D 01 02 [16:33:05]Write to MH i2c: E2 08 00 BD 36 80 0D 01 02 00 00 00 00 6C [16:33:05]Write i2c OK [16:33:05]MH_I2C_Read... [16:33:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:33:05]Read from MH i2c: E2 [16:33:05]MH_I2C_Read... [16:33:05]Read from MH i2c: E2 03 00 [16:33:05]MH_I2C_Read... [16:33:05]Read from MH i2c: E2 03 00 BD 36 00 90 00 67 [16:33:05]RAPDU: 90 00 [16:33:05]wFMCommunicate OK [16:33:05]wFMCommunicate request_size=255 [16:33:05]MH_SAM_APDU [16:33: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 35 FF 03 08 00 03 BA 22 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 F5 D6 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 D4 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 94 00 00 00 F4 03 04 00 44 A6 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 9B E1 01 00 35 04 06 00 1B [16:33:05]Write to MH i2c: E2 02 01 BE 36 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 22 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 F5 D6 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 D4 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 94 00 00 00 F4 03 04 00 44 A6 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 9B E1 01 00 35 04 06 00 1B 00 00 3E [16:33:05]Write i2c OK [16:33:05]MH_I2C_Read... [16:33:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:33:05]Read from MH i2c: E2 [16:33:05]MH_I2C_Read... [16:33:05]Read from MH i2c: E2 03 00 [16:33:05]MH_I2C_Read... [16:33:05]Read from MH i2c: E2 03 00 BE 36 00 90 00 68 [16:33:05]RAPDU: 90 00 [16:33:05]wFMCommunicate OK [16:33:05]wFMCommunicate request_size=10 [16:33:05]MH_SAM_APDU [16:33:05]CAPDU: 80 0D 02 02 05 0A A5 7F E6 87 [16:33:05]Write to MH i2c: E2 0D 00 BF 36 80 0D 02 02 05 00 0A A5 7F E6 87 00 00 14 [16:33:05]Write i2c OK [16:33:05]MH_I2C_Read... [16:33:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:33:05]Read from MH i2c: E2 [16:33:05]MH_I2C_Read... [16:33:05]Read from MH i2c: E2 03 00 [16:33:05]MH_I2C_Read... [16:33:05]Read from MH i2c: E2 03 00 BF 36 00 90 00 69 [16:33:05]RAPDU: 90 00 [16:33:05]wFMCommunicate OK [16:33:05]wFMCommunicate request_size=4 [16:33:05]MH_SAM_APDU [16:33:05]CAPDU: 80 0D 03 02 [16:33:05]Write to MH i2c: E2 08 00 C0 36 80 0D 03 02 00 00 00 00 71 [16:33:05]Write i2c OK [16:33:05]MH_I2C_Read... [16:33:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:33:06]Read from MH i2c: E2 [16:33:06]MH_I2C_Read... [16:33:06]Read from MH i2c: E2 0B 00 [16:33:06]MH_I2C_Read... [16:33:06]Read from MH i2c: E2 0B 00 C0 36 00 94 42 E8 F5 71 97 D0 29 90 00 26 [16:33:06]RAPDU: 94 42 E8 F5 71 97 D0 29 90 00 [16:33:06]wFMCommunicate OK [16:33:06]SAM_PROTO_SignData done [16:33:06]FM_MakeSignedData done [16:33:06]CreateOFDProtocolMessage [16:33:06]wFMCommunicate request_size=4 [16:33:06]MH_SAM_APDU [16:33:06]CAPDU: 80 11 00 00 [16:33:06]Write to MH i2c: E2 08 00 C1 36 80 11 00 00 00 00 00 00 71 [16:33:06]Write i2c OK [16:33:06]MH_I2C_Read... [16:33:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:33:06]Read from MH i2c: E2 [16:33:06]MH_I2C_Read... [16:33:06]Read from MH i2c: E2 17 00 [16:33:06]MH_I2C_Read... [16:33:06]Read from MH i2c: E2 17 00 C1 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 CF [16:33:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [16:33:06]wFMCommunicate OK [16:33:06]CreateOFDProtocolMessage done [16:33:06]OFDSenderStorePacket 123291 [16:33:06]StoreOFDPacket docnum=123291 [16:33:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 B7 4C 07 01 9B B2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 22 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 F5 D6 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 D4 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 94 00 00 00 F4 03 04 00 44 A6 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 9B E1 01 00 35 04 06 00 1B 0A A5 7F E6 87 94 42 E8 F5 71 97 D0 29 [16:33:06]CheckFolder [16:33:06]dirname=/storage/ofd_packets [16:33:06]CheckFolder done [16:33:06]ProducePacketName [16:33:06]name=ofd_packets/00123291 [16:33:06]NVStorageSaveData ofd_packets/00123291 [16:33:06]File name is /storage/ofd_packets/00123291 [16:33:06]Write 301 bytes [16:33:06]NVStorageSaveData done [16:33:06]OFDSenderStorePacket done [16:33:06]KKMCreateOFDPacket done [16:33:06]NVStorageSaveData kkm_last_timestamp [16:33:06]File name is /storage/kkm_last_timestamp [16:33:06]Write 4 bytes [16:33:06]NVStorageSaveData done [16:33:06]ExternCall_PrintAddStr [16:33:06]wPrintStart [16:33:06]Write to MH i2c: 01 00 00 C2 36 F8 [16:33:06]Write i2c OK [16:33:06]MH_I2C_Read... [16:33:06]Read from MH i2c: 01 [16:33:06]MH_I2C_Read... [16:33:06]Read from MH i2c: 01 07 00 [16:33:06]MH_I2C_Read... [16:33:06]Read from MH i2c: 01 07 00 C2 36 00 00 00 00 00 FF 0F 0D [16:33:06]RasterBufferAndPrint [16:33:06]line Счет N : (1)1106229 [16:33:06]line ИНН: 02508201610067 [16:33:06]line Контрольно-Кассовый Чек [16:33:06]line ПРОДАЖА [16:33:06]line ТРК (МРК, ГНК) : 32 [16:33:06]line Товар: 2710124130 [16:33:06]line Аи-92-К-5 [16:33:06]line 8.890 * 61.90 [16:33:06]line = 550.29 [16:33:06]line НДС 12% НСП 1% [16:33:06]line > о реализуемом товаре [16:33:06]line ОКРУГЛЕНИЕ: -0.29 [16:33:06]line ИТОГО: 550.00 [16:33:06]line Внесено: 550.00 [16:33:06]line СДАЧА: 0.00 [16:33:06]line НСП 1% : 4.87 [16:33:06]line НДС 12% : 58.44 [16:33:06]line Наличными: 550.00 [16:33:06]line Безнал.: 0.00 [16:33:06]line Место: АЗС № 25 "Партнер Нефть" [16:33:06]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [16:33:06]line СНО: Общий режим [16:33:06]line Чек 148 03.03.2024 16:33 [16:33:06]line Смена: 323 ФФД: 1.0 [16:33:06]line ЗНМ: 0300000019 [16:33:06]line РНМ: 0000000000090573 [16:33:06]line Версия ККМ: 001 [16:33:06]line ФМ: 0000000000874798 [16:33:06]line ФД: 123291 [16:33:06]line ФПД: 29732540245639 [16:33:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T163308&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123291&fm=29732540245639&tin=02508201610067®Number=0000000000090573&sum=55000 [16:33:06]OFD Sender: Processing packet 123291 [packets to send 112, broken 111] [16:33:06]ProducePacketName [16:33:06]name=ofd_packets/00123291 [16:33:06]OFD Sender: To server: pG, [16:33:06]CommunicateWithHost lk.salyk.kg:30040 [16:33:06]ConnectInit lk.salyk.kg [16:33:06]written 0, free lines is 4095 [16:33:06]Connected sock=10 [16:33: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 37 39 38 0F 01 00 00 B7 4C 07 01 9B B2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 22 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 F5 D6 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 D4 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 94 00 00 00 F4 03 04 00 44 A6 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 9B E1 01 00 35 04 06 00 1B 0A A5 7F E6 87 94 42 E8 F5 71 97 D0 29 [16:33:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 22 F1 47 00 5A 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 37 39 38 10 04 04 00 9B E1 01 00 F4 03 04 00 6F 52 E4 65 B6 04 01 00 00 D1 4D F3 38 B2 96 B7 6D [16:33:06]CommunicateWithHost err = 0 [16:33:06]CheckOFDResponse [16:33:06]1017 (14) - 77093643461234 [16:33:06]1041 (16) - 0000000000874798 [16:33:06]1040 (4) - 123291 [16:33:06]1012 (4) - 03.03.2024 10:35 [16:33:06]1206 (1) - 0 [16:33:06]OFD Sender: Remove packet 123291 [16:33:06]ProducePacketName [16:33:06]name=ofd_packets/00123291 [16:33:06]NVStorageDeleteData [16:33:06]Write to MH i2c: 01 00 00 ED 36 23 [16:33:06]Write i2c OK [16:33:06]MH_I2C_Read... [16:33:06]Read from MH i2c: 01 [16:33:06]MH_I2C_Read... [16:33:06]Read from MH i2c: 01 07 00 [16:33:06]MH_I2C_Read... [16:33:06]Read from MH i2c: 01 07 00 ED 36 00 00 00 00 00 FC 0C 32 [16:33:06]RasterBufferAndPrint [16:33:06]line [16:33:06]line [16:33:06]line [16:33:06]line [16:33:06]line [16:33:06]written 0, free lines is 3333 [16:33:06]MH_Cut [16:33:06]Write to MH i2c: D1 01 00 F4 36 01 FC [16:33:06]Write i2c OK [16:33:06]MH_I2C_Read... [16:33:06]Read from MH i2c: D1 [16:33:06]MH_I2C_Read... [16:33:06]Read from MH i2c: D1 01 00 [16:33:06]MH_I2C_Read... [16:33:06]Read from MH i2c: D1 01 00 F4 36 00 FB [16:33:06]Write to MH i2c: 01 00 00 F5 36 2B [16:33:06]Write i2c OK [16:33:06]MH_I2C_Read... [16:33:07]OFD Sender: No OFD packet to send [16:33:07]*** Cut start [16:33:07]*** Purtial cut [16:33:07]*** Stage 1: CUTSNS_PIN = 1 [16:33:09]Read from MH i2c: 01 [16:33:09]MH_I2C_Read... [16:33:09]*** Stop cut motor [16:33:09]*** Cut end [16:33:09]Read from MH i2c: 01 07 00 [16:33:09]MH_I2C_Read... [16:33:09]Read from MH i2c: 01 07 00 F5 36 00 00 00 00 00 FF 0F 40 [16:33:09]process_action close_receipt done [16:33:09]requested_data is exist [16:33:09]produce_requested_data [16:33:09]requested_item fm.sn is exist - process it [16:33:09]wFMCommunicate request_size=4 [16:33:09]MH_SAM_APDU [16:33:09]CAPDU: 80 11 00 00 [16:33:09]Write to MH i2c: E2 08 00 F6 36 80 11 00 00 00 00 00 00 A6 [16:33:09]Write i2c OK [16:33:09]MH_I2C_Read... [16:33:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:33:09]Read from MH i2c: E2 [16:33:09]MH_I2C_Read... [16:33:09]Read from MH i2c: E2 17 00 [16:33:09]MH_I2C_Read... [16:33:09]Read from MH i2c: E2 17 00 F6 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 04 [16:33:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [16:33:09]wFMCommunicate OK [16:33:09]requested_item fd.num is exist - process it [16:33:09]SAM_PROTO_GetFieldsCounters [16:33:09]wFMCommunicate request_size=4 [16:33:09]MH_SAM_APDU [16:33:09]CAPDU: 80 13 00 00 [16:33:09]Write to MH i2c: E2 08 00 F7 36 80 13 00 00 00 00 00 00 A9 [16:33:09]Write i2c OK [16:33:09]MH_I2C_Read... [16:33:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:33:09]Read from MH i2c: E2 [16:33:09]MH_I2C_Read... [16:33:09]Read from MH i2c: E2 62 00 [16:33:09]MH_I2C_Read... [16:33:09]Read from MH i2c: E2 62 00 F7 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 9B E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 51 [16:33: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 9B E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:33:09]wFMCommunicate OK [16:33:09]SAM_PROTO_GetFieldsCounters done [16:33:09]requested_item shift.num is exist - process it [16:33:09]requested_item shift.opened is exist - process it [16:33:09]req_shift_opened [16:33:09]FM_GetShiftState [16:33:09]SAM_PROTO_GetShiftState [16:33:09]wFMCommunicate request_size=4 [16:33:09]MH_SAM_APDU [16:33:09]CAPDU: 80 13 01 00 [16:33:09]Write to MH i2c: E2 08 00 F8 36 80 13 01 00 00 00 00 00 AB [16:33:09]Write i2c OK [16:33:09]MH_I2C_Read... [16:33:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:33:09]Read from MH i2c: E2 [16:33:09]MH_I2C_Read... [16:33:09]Read from MH i2c: E2 0E 00 [16:33:09]MH_I2C_Read... [16:33:09]Read from MH i2c: E2 0E 00 F8 36 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 6D [16:33:09]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [16:33:09]wFMCommunicate OK [16:33:09]SAM_PROTO_GetShiftState done [16:33:09]FM_GetShiftState done [16:33:09]req_shift_opened done [16:33:09]requested_item shift.open_date is exist - process it [16:33:09]req_shift_open_date [16:33:09]req_shift_open_date done [16:33:09]produce_requested_data done [16:33:09]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123291,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [16:33:09]process_action_free close_receipt [16:33:09]json_value_free [16:33:09]json_value_free done [16:33:09]process_json_proto returns [16:33:09]Send response to host [16:33:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123291,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [16:33:09]free response buf [16:33:09]execute_script done [16:33:09]execute_script returns [16:33:09]free content buf [16:33:09]Sock 9.Close socket [16:33:09]Sock 9.Thread stoped [16:33:12]OFD Sender: No OFD packet to send [16:33:17]OFD Sender: No OFD packet to send [16:33:22]OFD Sender: No OFD packet to send [16:33:27]OFD Sender: No OFD packet to send [16:33:32]OFD Sender: No OFD packet to send [16:33:37]OFD Sender: No OFD packet to send [16:33:42]OFD Sender: No OFD packet to send [16:33:47]OFD Sender: No OFD packet to send [16:33:52]OFD Sender: No OFD packet to send [16:33:57]OFD Sender: No OFD packet to send [16:34:02]OFD Sender: No OFD packet to send [16:34:07]OFD Sender: No OFD packet to send [16:34:12]OFD Sender: No OFD packet to send [16:34:17]OFD Sender: No OFD packet to send [16:34:22]OFD Sender: No OFD packet to send [16:34:27]OFD Sender: No OFD packet to send [16:34:32]OFD Sender: No OFD packet to send [16:34:37]OFD Sender: No OFD packet to send [16:34:42]OFD Sender: No OFD packet to send [16:34:47]OFD Sender: No OFD packet to send [16:34:52]OFD Sender: No OFD packet to send [16:34:57]OFD Sender: No OFD packet to send [16:35:02]OFD Sender: No OFD packet to send [16:35:07]OFD Sender: No OFD packet to send [16:35:12]OFD Sender: No OFD packet to send [16:35:16]accept exits with 7 [16:35:16]New connection [16:35:16]New thread 3067252068 created [16:35:16]Thread 3067395428 joined [16:35:16]Waiting for new connection... [16:35:16] Sock 7.Parse request [16:35:16]Sock 7.Check first char [16:35:16]Sock 7.First char is OK [16:35:16]request: POST /json_proto HTTP/1.0 [16:35:16]Method: POST [16:35:16]URL: /json_proto [16:35:16]Method is POST - this is cgi request [16:35:16]url: /json_proto [16:35:16]query_string will be loaded in cgi processing [16:35:16]execute_cgi json_proto POST (null) [16:35:16]execute_cgi path=json_proto method=POST [16:35:16]POST find Content-Length [16:35:16]Host: 172.17.48.197:8080 [16:35:16]Content-Length: 683 [16:35:16]Content-Type: application/json [16:35:16] [16:35:16]POST finish read [16:35:16]Found Content-Length = 683 [16:35:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106230", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:35:16]execute_script... [16:35:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106230", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:35:16]POST & json_proto [16:35:16]process_json_proto [16:35:16]json parsed OK: [16:35:16]protocol is kg_v1.0 [16:35:16]action value=close_receipt [16:35:16]process_action close_receipt [16:35:16]cmd_close_receipt [16:35:16]MH_GetDate [16:35:16]Write to MH i2c: F0 00 00 F9 36 1E [16:35:16]Write i2c OK [16:35:16]MH_I2C_Read... [16:35:16]Read from MH i2c: F0 [16:35:16]MH_I2C_Read... [16:35:16]Read from MH i2c: F0 09 00 [16:35:16]MH_I2C_Read... [16:35:16]Read from MH i2c: F0 09 00 F9 36 00 C8 A6 E4 65 6C AF E3 65 41 [16:35:16]GetLastDocTimeStamp 1709483588 [16:35:16]current date 1709483720 [16:35:16]FM_GetShiftState [16:35:16]SAM_PROTO_GetShiftState [16:35:16]wFMCommunicate request_size=4 [16:35:16]MH_SAM_APDU [16:35:16]CAPDU: 80 13 01 00 [16:35:16]Write to MH i2c: E2 08 00 FA 36 80 13 01 00 00 00 00 00 AD [16:35:16]Write i2c OK [16:35:16]MH_I2C_Read... [16:35:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:35:16]Read from MH i2c: E2 [16:35:16]MH_I2C_Read... [16:35:16]Read from MH i2c: E2 0E 00 [16:35:16]MH_I2C_Read... [16:35:16]Read from MH i2c: E2 0E 00 FA 36 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 6F [16:35:16]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [16:35:16]wFMCommunicate OK [16:35:16]SAM_PROTO_GetShiftState done [16:35:16]FM_GetShiftState done [16:35:16]opened in 1709425579 [16:35:16]opened+sec_in_day 1709511979 [16:35:16]quantity*price = 100010 [16:35:16]sum+1 = 100012 [16:35:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 149 03.03.2024 16:35 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123292 ФПД: 28877386778650 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T163520&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123292&fm=28877386778650&tin=02508201610067®Number=0000000000090573&sum=100000 [16:35:18]StoreToDocumentArchive [16:35:18]shift 323 fd 123292 [16:35:18]save to /storage/0323/doc_00123292 [16:35:18]save last doc name /storage/0323/doc_00123292 to /storage/kkm_last_doc_name [16:35:18]save OK [16:35:18]Clear old archive folders... [16:35:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:35:18]tlvbuf is 00DECCD0 [16:35:18]SAM_PROTO_ClearQueue [16:35:18]wFMCommunicate request_size=4 [16:35:18]MH_SAM_APDU [16:35:18]CAPDU: 80 09 00 00 [16:35:18]Write to MH i2c: E2 08 00 07 37 80 09 00 00 00 00 00 00 B0 [16:35:18]Write i2c OK [16:35:18]MH_I2C_Read... [16:35:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:35:18]Read from MH i2c: E2 [16:35:18]MH_I2C_Read... [16:35:18]Read from MH i2c: E2 03 00 [16:35:18]MH_I2C_Read... [16:35:18]Read from MH i2c: E2 03 00 07 37 00 90 00 B2 [16:35:18]RAPDU: 90 00 [16:35:18]wFMCommunicate OK [16:35:18]SAM_PROTO_ClearQueue done [16:35:18]KKMCreateOFDPacket [16:35:18]OFDProtocolAddRootSTLVToBuf [16:35:18]FM_MakeSignedData [16:35:18]FM_MakeSignedData [16:35:18]SAM_PROTO_SignData [16:35:18]wFMCommunicate request_size=4 [16:35:18]MH_SAM_APDU [16:35:18]CAPDU: 80 0D 01 02 [16:35:18]Write to MH i2c: E2 08 00 08 37 80 0D 01 02 00 00 00 00 B8 [16:35:18]Write i2c OK [16:35:18]MH_I2C_Read... [16:35:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:35:18]Read from MH i2c: E2 [16:35:18]MH_I2C_Read... [16:35:18]Read from MH i2c: E2 03 00 [16:35:18]MH_I2C_Read... [16:35:18]Read from MH i2c: E2 03 00 08 37 00 90 00 B3 [16:35:18]RAPDU: 90 00 [16:35:18]wFMCommunicate OK [16:35:18]wFMCommunicate request_size=255 [16:35:18]MH_SAM_APDU [16:35:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 C8 A6 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 9C E1 01 00 35 04 06 00 1A [16:35:18]Write to MH i2c: E2 02 01 09 37 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 C8 A6 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 9C E1 01 00 35 04 06 00 1A 00 00 45 [16:35:18]Write i2c OK [16:35:18]MH_I2C_Read... [16:35:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:35:18]Read from MH i2c: E2 [16:35:18]MH_I2C_Read... [16:35:18]Read from MH i2c: E2 03 00 [16:35:18]MH_I2C_Read... [16:35:18]Read from MH i2c: E2 03 00 09 37 00 90 00 B4 [16:35:18]RAPDU: 90 00 [16:35:18]wFMCommunicate OK [16:35:18]wFMCommunicate request_size=10 [16:35:18]MH_SAM_APDU [16:35:18]CAPDU: 80 0D 02 02 05 43 8A 61 88 1A [16:35:18]Write to MH i2c: E2 0D 00 0A 37 80 0D 02 02 05 00 43 8A 61 88 1A 00 00 95 [16:35:18]Write i2c OK [16:35:18]MH_I2C_Read... [16:35:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:35:18]Read from MH i2c: E2 [16:35:18]MH_I2C_Read... [16:35:18]Read from MH i2c: E2 03 00 [16:35:18]MH_I2C_Read... [16:35:18]Read from MH i2c: E2 03 00 0A 37 00 90 00 B5 [16:35:18]RAPDU: 90 00 [16:35:18]wFMCommunicate OK [16:35:18]wFMCommunicate request_size=4 [16:35:18]MH_SAM_APDU [16:35:18]CAPDU: 80 0D 03 02 [16:35:18]Write to MH i2c: E2 08 00 0B 37 80 0D 03 02 00 00 00 00 BD [16:35:18]Write i2c OK [16:35:18]MH_I2C_Read... [16:35:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:35:18]Read from MH i2c: E2 [16:35:18]MH_I2C_Read... [16:35:18]Read from MH i2c: E2 0B 00 [16:35:18]MH_I2C_Read... [16:35:18]Read from MH i2c: E2 0B 00 0B 37 00 FE E8 A0 0B 2F 5A 2F 42 90 00 49 [16:35:18]RAPDU: FE E8 A0 0B 2F 5A 2F 42 90 00 [16:35:18]wFMCommunicate OK [16:35:18]SAM_PROTO_SignData done [16:35:18]FM_MakeSignedData done [16:35:18]CreateOFDProtocolMessage [16:35:18]wFMCommunicate request_size=4 [16:35:18]MH_SAM_APDU [16:35:18]CAPDU: 80 11 00 00 [16:35:18]Write to MH i2c: E2 08 00 0C 37 80 11 00 00 00 00 00 00 BD [16:35:18]Write i2c OK [16:35:18]MH_I2C_Read... [16:35:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:35:18]Read from MH i2c: E2 [16:35:18]MH_I2C_Read... [16:35:18]Read from MH i2c: E2 17 00 [16:35:18]MH_I2C_Read... [16:35:18]Read from MH i2c: E2 17 00 0C 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 1B [16:35:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [16:35:18]wFMCommunicate OK [16:35:18]CreateOFDProtocolMessage done [16:35:18]OFDSenderStorePacket 123292 [16:35:18]StoreOFDPacket docnum=123292 [16:35:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 F4 96 07 01 BE 1B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 C8 A6 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 9C E1 01 00 35 04 06 00 1A 43 8A 61 88 1A FE E8 A0 0B 2F 5A 2F 42 [16:35:18]CheckFolder [16:35:18]dirname=/storage/ofd_packets [16:35:18]CheckFolder done [16:35:18]ProducePacketName [16:35:18]name=ofd_packets/00123292 [16:35:18]NVStorageSaveData ofd_packets/00123292 [16:35:18]File name is /storage/ofd_packets/00123292 [16:35:18]Write 301 bytes [16:35:18]NVStorageSaveData done [16:35:18]OFDSenderStorePacket done [16:35:18]KKMCreateOFDPacket done [16:35:18]NVStorageSaveData kkm_last_timestamp [16:35:18]File name is /storage/kkm_last_timestamp [16:35:18]Write 4 bytes [16:35:18]NVStorageSaveData done [16:35:18]ExternCall_PrintAddStr [16:35:18]wPrintStart [16:35:18]Write to MH i2c: 01 00 00 0D 37 44 [16:35:18]Write i2c OK [16:35:18]MH_I2C_Read... [16:35:18]Read from MH i2c: 01 [16:35:18]MH_I2C_Read... [16:35:18]Read from MH i2c: 01 07 00 [16:35:18]MH_I2C_Read... [16:35:18]Read from MH i2c: 01 07 00 0D 37 00 00 00 00 00 FF 0F 59 [16:35:18]RasterBufferAndPrint [16:35:18]line Счет N : (1)1106230 [16:35:18]line ИНН: 02508201610067 [16:35:18]line Контрольно-Кассовый Чек [16:35:18]line ПРОДАЖА [16:35:18]line ТРК (МРК, ГНК) : 53 [16:35:18]line Товар: 2710124500 [16:35:18]line Аи-95-К-5 [16:35:18]line 14.390 * 69.50 [16:35:18]line = 1000.11 [16:35:18]line НДС 12% НСП 1% [16:35:18]line > о реализуемом товаре [16:35:18]line ОКРУГЛЕНИЕ: -0.11 [16:35:18]line ИТОГО: 1000.00 [16:35:18]line Внесено: 1000.00 [16:35:18]line СДАЧА: 0.00 [16:35:18]line НСП 1% : 8.85 [16:35:18]line НДС 12% : 106.21 [16:35:18]line Наличными: 1000.00 [16:35:18]line Безнал.: 0.00 [16:35:18]line Место: АЗС № 25 "Партнер Нефть" [16:35:18]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [16:35:18]line СНО: Общий режим [16:35:18]line Чек 149 03.03.2024 16:35 [16:35:18]line Смена: 323 ФФД: 1.0 [16:35:18]line ЗНМ: 0300000019 [16:35:18]line РНМ: 0000000000090573 [16:35:18]line Версия ККМ: 001 [16:35:18]line ФМ: 0000000000874798 [16:35:18]line ФД: 123292 [16:35:18]line ФПД: 28877386778650 [16:35:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T163520&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123292&fm=28877386778650&tin=02508201610067®Number=0000000000090573&sum=100000 [16:35:18]OFD Sender: Processing packet 123292 [packets to send 112, broken 111] [16:35:18]ProducePacketName [16:35:18]name=ofd_packets/00123292 [16:35:18]OFD Sender: To server: pG, [16:35:18]CommunicateWithHost lk.salyk.kg:30040 [16:35:18]ConnectInit lk.salyk.kg [16:35:18]written 0, free lines is 4095 [16:35:18]Connected sock=10 [16:35: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 37 39 38 0F 01 00 00 F4 96 07 01 BE 1B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 C8 A6 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 9C E1 01 00 35 04 06 00 1A 43 8A 61 88 1A FE E8 A0 0B 2F 5A 2F 42 [16:35:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 78 C1 47 00 4A 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 37 39 38 10 04 04 00 9C E1 01 00 F4 03 04 00 F4 52 E4 65 B6 04 01 00 00 43 5B 75 7A 57 9A A3 70 [16:35:19]CommunicateWithHost err = 0 [16:35:19]CheckOFDResponse [16:35:19]1017 (14) - 77093643461234 [16:35:19]1041 (16) - 0000000000874798 [16:35:19]1040 (4) - 123292 [16:35:19]1012 (4) - 03.03.2024 10:37 [16:35:19]1206 (1) - 0 [16:35:19]OFD Sender: Remove packet 123292 [16:35:19]ProducePacketName [16:35:19]name=ofd_packets/00123292 [16:35:19]NVStorageDeleteData [16:35:19]Write to MH i2c: 01 00 00 38 37 6F [16:35:19]Write i2c OK [16:35:19]MH_I2C_Read... [16:35:19]Read from MH i2c: 01 [16:35:19]MH_I2C_Read... [16:35:19]Read from MH i2c: 01 07 00 [16:35:19]MH_I2C_Read... [16:35:19]Read from MH i2c: 01 07 00 38 37 00 00 00 00 00 F9 0C 7B [16:35:19]RasterBufferAndPrint [16:35:19]line [16:35:19]line [16:35:19]line [16:35:19]line [16:35:19]line [16:35:19]written 0, free lines is 3327 [16:35:19]MH_Cut [16:35:19]Write to MH i2c: D1 01 00 3F 37 01 48 [16:35:19]Write i2c OK [16:35:19]MH_I2C_Read... [16:35:19]Read from MH i2c: D1 [16:35:19]MH_I2C_Read... [16:35:19]Read from MH i2c: D1 01 00 [16:35:19]MH_I2C_Read... [16:35:19]Read from MH i2c: D1 01 00 3F 37 00 47 [16:35:19]Write to MH i2c: 01 00 00 40 37 77 [16:35:19]Write i2c OK [16:35:19]MH_I2C_Read... [16:35:19]OFD Sender: No OFD packet to send [16:35:20]*** Cut start [16:35:20]*** Purtial cut [16:35:20]*** Stage 1: CUTSNS_PIN = 1 [16:35:22]Read from MH i2c: 01 [16:35:22]MH_I2C_Read... [16:35:22]*** Stop cut motor [16:35:22]*** Cut end [16:35:22]Read from MH i2c: 01 07 00 [16:35:22]MH_I2C_Read... [16:35:22]Read from MH i2c: 01 07 00 40 37 00 00 00 00 00 FF 0F 8C [16:35:22]process_action close_receipt done [16:35:22]requested_data is exist [16:35:22]produce_requested_data [16:35:22]requested_item fm.sn is exist - process it [16:35:22]wFMCommunicate request_size=4 [16:35:22]MH_SAM_APDU [16:35:22]CAPDU: 80 11 00 00 [16:35:22]Write to MH i2c: E2 08 00 41 37 80 11 00 00 00 00 00 00 F2 [16:35:22]Write i2c OK [16:35:22]MH_I2C_Read... [16:35:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:35:22]Read from MH i2c: E2 [16:35:22]MH_I2C_Read... [16:35:22]Read from MH i2c: E2 17 00 [16:35:22]MH_I2C_Read... [16:35:22]Read from MH i2c: E2 17 00 41 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 50 [16:35:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [16:35:22]wFMCommunicate OK [16:35:22]requested_item fd.num is exist - process it [16:35:22]SAM_PROTO_GetFieldsCounters [16:35:22]wFMCommunicate request_size=4 [16:35:22]MH_SAM_APDU [16:35:22]CAPDU: 80 13 00 00 [16:35:22]Write to MH i2c: E2 08 00 42 37 80 13 00 00 00 00 00 00 F5 [16:35:22]Write i2c OK [16:35:22]MH_I2C_Read... [16:35:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:35:22]Read from MH i2c: E2 [16:35:22]MH_I2C_Read... [16:35:22]Read from MH i2c: E2 62 00 [16:35:22]MH_I2C_Read... [16:35:22]Read from MH i2c: E2 62 00 42 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 9C E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 A1 [16: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 9C E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:35:22]wFMCommunicate OK [16:35:22]SAM_PROTO_GetFieldsCounters done [16:35:22]requested_item shift.num is exist - process it [16:35:22]requested_item shift.opened is exist - process it [16:35:22]req_shift_opened [16:35:22]FM_GetShiftState [16:35:22]SAM_PROTO_GetShiftState [16:35:22]wFMCommunicate request_size=4 [16:35:22]MH_SAM_APDU [16:35:22]CAPDU: 80 13 01 00 [16:35:22]Write to MH i2c: E2 08 00 43 37 80 13 01 00 00 00 00 00 F7 [16:35:22]Write i2c OK [16:35:22]MH_I2C_Read... [16:35:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:35:22]Read from MH i2c: E2 [16:35:22]MH_I2C_Read... [16:35:22]Read from MH i2c: E2 0E 00 [16:35:22]MH_I2C_Read... [16:35:22]Read from MH i2c: E2 0E 00 43 37 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 B9 [16:35:22]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [16:35:22]wFMCommunicate OK [16:35:22]SAM_PROTO_GetShiftState done [16:35:22]FM_GetShiftState done [16:35:22]req_shift_opened done [16:35:22]requested_item shift.open_date is exist - process it [16:35:22]req_shift_open_date [16:35:22]req_shift_open_date done [16:35:22]produce_requested_data done [16:35:22]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123292,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [16:35:22]process_action_free close_receipt [16:35:22]json_value_free [16:35:22]json_value_free done [16:35:22]process_json_proto returns [16:35:22]Send response to host [16:35:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123292,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [16:35:22]free response buf [16:35:22]execute_script done [16:35:22]execute_script returns [16:35:22]free content buf [16:35:22]Sock 7.Close socket [16:35:22]Sock 7.Thread stoped [16:35:24]OFD Sender: No OFD packet to send [16:35:29]OFD Sender: No OFD packet to send [16:35:34]OFD Sender: No OFD packet to send [16:35:39]OFD Sender: No OFD packet to send [16:35:41]accept exits with 9 [16:35:41]New connection [16:35:41]New thread 3067395428 created [16:35:41]Thread 3067252068 joined [16:35:41]Waiting for new connection... [16:35:41] Sock 9.Parse request [16:35:41]Sock 9.Check first char [16:35:41]Sock 9.First char is OK [16:35:41]request: POST /json_proto HTTP/1.0 [16:35:41]Method: POST [16:35:41]URL: /json_proto [16:35:41]Method is POST - this is cgi request [16:35:41]url: /json_proto [16:35:41]query_string will be loaded in cgi processing [16:35:41]execute_cgi json_proto POST (null) [16:35:41]execute_cgi path=json_proto method=POST [16:35:41]POST find Content-Length [16:35:41]Host: 172.17.48.197:8080 [16:35:41]Content-Length: 683 [16:35:41]Content-Type: application/json [16:35:41] [16:35:41]POST finish read [16:35:41]Found Content-Length = 683 [16:35:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106231", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 32.320, "sum" : 2000.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:35:41]execute_script... [16:35: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)1106231", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 32.320, "sum" : 2000.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:35:41]POST & json_proto [16:35:41]process_json_proto [16:35:41]json parsed OK: [16:35:41]protocol is kg_v1.0 [16:35:41]action value=close_receipt [16:35:41]process_action close_receipt [16:35:41]cmd_close_receipt [16:35:41]MH_GetDate [16:35:41]Write to MH i2c: F0 00 00 44 37 6A [16:35:41]Write i2c OK [16:35:41]MH_I2C_Read... [16:35:41]Read from MH i2c: F0 [16:35:41]MH_I2C_Read... [16:35:41]Read from MH i2c: F0 09 00 [16:35:41]MH_I2C_Read... [16:35:41]Read from MH i2c: F0 09 00 44 37 00 E1 A6 E4 65 6C AF E3 65 A6 [16:35:41]GetLastDocTimeStamp 1709483720 [16:35:41]current date 1709483745 [16:35:41]FM_GetShiftState [16:35:41]SAM_PROTO_GetShiftState [16:35:41]wFMCommunicate request_size=4 [16:35:41]MH_SAM_APDU [16:35:41]CAPDU: 80 13 01 00 [16:35:41]Write to MH i2c: E2 08 00 45 37 80 13 01 00 00 00 00 00 F9 [16:35:41]Write i2c OK [16:35:41]MH_I2C_Read... [16:35:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:35:41]Read from MH i2c: E2 [16:35:41]MH_I2C_Read... [16:35:41]Read from MH i2c: E2 0E 00 [16:35:41]MH_I2C_Read... [16:35:41]Read from MH i2c: E2 0E 00 45 37 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 BB [16:35:41]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [16:35:41]wFMCommunicate OK [16:35:41]SAM_PROTO_GetShiftState done [16:35:41]FM_GetShiftState done [16:35:41]opened in 1709425579 [16:35:41]opened+sec_in_day 1709511979 [16:35:41]quantity*price = 200060 [16:35:41]sum+1 = 200062 [16:35:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.45 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 150 03.03.2024 16:35 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123293 ФПД: 88171135659852 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T163545&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123293&fm=88171135659852&tin=02508201610067®Number=0000000000090573&sum=200000 [16:35:42]StoreToDocumentArchive [16:35:42]shift 323 fd 123293 [16:35:42]save to /storage/0323/doc_00123293 [16:35:42]save last doc name /storage/0323/doc_00123293 to /storage/kkm_last_doc_name [16:35:42]save OK [16:35:42]Clear old archive folders... [16:35:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:35:42]tlvbuf is 00DC4FB0 [16:35:42]SAM_PROTO_ClearQueue [16:35:42]wFMCommunicate request_size=4 [16:35:42]MH_SAM_APDU [16:35:42]CAPDU: 80 09 00 00 [16:35:42]Write to MH i2c: E2 08 00 52 37 80 09 00 00 00 00 00 00 FB [16:35:42]Write i2c OK [16:35:42]MH_I2C_Read... [16:35:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:35:42]Read from MH i2c: E2 [16:35:42]MH_I2C_Read... [16:35:42]Read from MH i2c: E2 03 00 [16:35:42]MH_I2C_Read... [16:35:42]Read from MH i2c: E2 03 00 52 37 00 90 00 FD [16:35:42]RAPDU: 90 00 [16:35:42]wFMCommunicate OK [16:35:42]SAM_PROTO_ClearQueue done [16:35:42]KKMCreateOFDPacket [16:35:42]OFDProtocolAddRootSTLVToBuf [16:35:42]FM_MakeSignedData [16:35:42]FM_MakeSignedData [16:35:42]SAM_PROTO_SignData [16:35:42]wFMCommunicate request_size=4 [16:35:42]MH_SAM_APDU [16:35:42]CAPDU: 80 0D 01 02 [16:35:42]Write to MH i2c: E2 08 00 53 37 80 0D 01 02 00 00 00 00 03 [16:35:42]Write i2c OK [16:35:42]MH_I2C_Read... [16:35:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:35:42]Read from MH i2c: E2 [16:35:42]MH_I2C_Read... [16:35:42]Read from MH i2c: E2 03 00 [16:35:42]MH_I2C_Read... [16:35:42]Read from MH i2c: E2 03 00 53 37 00 90 00 FE [16:35:42]RAPDU: 90 00 [16:35:42]wFMCommunicate OK [16:35:42]wFMCommunicate request_size=255 [16:35:42]MH_SAM_APDU [16:35:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 7E 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 7D 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 FD 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 96 00 00 00 F4 03 04 00 E1 A6 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 9D E1 01 00 35 04 06 00 50 [16:35:42]Write to MH i2c: E2 02 01 54 37 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 7E 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 7D 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 FD 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 96 00 00 00 F4 03 04 00 E1 A6 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 9D E1 01 00 35 04 06 00 50 00 00 00 [16:35:42]Write i2c OK [16:35:42]MH_I2C_Read... [16:35:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:35:43]Read from MH i2c: E2 [16:35:43]MH_I2C_Read... [16:35:43]Read from MH i2c: E2 03 00 [16:35:43]MH_I2C_Read... [16:35:43]Read from MH i2c: E2 03 00 54 37 00 90 00 FF [16:35:43]RAPDU: 90 00 [16:35:43]wFMCommunicate OK [16:35:43]wFMCommunicate request_size=10 [16:35:43]MH_SAM_APDU [16:35:43]CAPDU: 80 0D 02 02 05 30 F1 38 6F 4C [16:35:43]Write to MH i2c: E2 0D 00 55 37 80 0D 02 02 05 00 30 F1 38 6F 4C 00 00 24 [16:35:43]Write i2c OK [16:35:43]MH_I2C_Read... [16:35:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:35:43]Read from MH i2c: E2 [16:35:43]MH_I2C_Read... [16:35:43]Read from MH i2c: E2 03 00 [16:35:43]MH_I2C_Read... [16:35:43]Read from MH i2c: E2 03 00 55 37 00 90 00 00 [16:35:43]RAPDU: 90 00 [16:35:43]wFMCommunicate OK [16:35:43]wFMCommunicate request_size=4 [16:35:43]MH_SAM_APDU [16:35:43]CAPDU: 80 0D 03 02 [16:35:43]Write to MH i2c: E2 08 00 56 37 80 0D 03 02 00 00 00 00 08 [16:35:43]Write i2c OK [16:35:43]MH_I2C_Read... [16:35:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:35:43]Read from MH i2c: E2 [16:35:43]MH_I2C_Read... [16:35:43]Read from MH i2c: E2 0B 00 [16:35:43]MH_I2C_Read... [16:35:43]Read from MH i2c: E2 0B 00 56 37 00 13 62 A4 EA 8C 38 24 DC 90 00 D0 [16:35:43]RAPDU: 13 62 A4 EA 8C 38 24 DC 90 00 [16:35:43]wFMCommunicate OK [16:35:43]SAM_PROTO_SignData done [16:35:43]FM_MakeSignedData done [16:35:43]CreateOFDProtocolMessage [16:35:43]wFMCommunicate request_size=4 [16:35:43]MH_SAM_APDU [16:35:43]CAPDU: 80 11 00 00 [16:35:43]Write to MH i2c: E2 08 00 57 37 80 11 00 00 00 00 00 00 08 [16:35:43]Write i2c OK [16:35:43]MH_I2C_Read... [16:35:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:35:43]Read from MH i2c: E2 [16:35:43]MH_I2C_Read... [16:35:43]Read from MH i2c: E2 17 00 [16:35:43]MH_I2C_Read... [16:35:43]Read from MH i2c: E2 17 00 57 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 66 [16:35:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [16:35:43]wFMCommunicate OK [16:35:43]CreateOFDProtocolMessage done [16:35:43]OFDSenderStorePacket 123293 [16:35:43]StoreOFDPacket docnum=123293 [16:35:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 C7 99 07 01 4E 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 7E 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 7D 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 FD 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 96 00 00 00 F4 03 04 00 E1 A6 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 9D E1 01 00 35 04 06 00 50 30 F1 38 6F 4C 13 62 A4 EA 8C 38 24 DC [16:35:43]CheckFolder [16:35:43]dirname=/storage/ofd_packets [16:35:43]CheckFolder done [16:35:43]ProducePacketName [16:35:43]name=ofd_packets/00123293 [16:35:43]NVStorageSaveData ofd_packets/00123293 [16:35:43]File name is /storage/ofd_packets/00123293 [16:35:43]Write 301 bytes [16:35:43]NVStorageSaveData done [16:35:43]OFDSenderStorePacket done [16:35:43]KKMCreateOFDPacket done [16:35:43]NVStorageSaveData kkm_last_timestamp [16:35:43]File name is /storage/kkm_last_timestamp [16:35:43]Write 4 bytes [16:35:43]NVStorageSaveData done [16:35:43]ExternCall_PrintAddStr [16:35:43]wPrintStart [16:35:43]Write to MH i2c: 01 00 00 58 37 8F [16:35:43]Write i2c OK [16:35:43]MH_I2C_Read... [16:35:43]Read from MH i2c: 01 [16:35:43]MH_I2C_Read... [16:35:43]Read from MH i2c: 01 07 00 [16:35:43]MH_I2C_Read... [16:35:43]Read from MH i2c: 01 07 00 58 37 00 00 00 00 00 FF 0F A4 [16:35:43]RasterBufferAndPrint [16:35:43]line Счет N : (1)1106231 [16:35:43]line ИНН: 02508201610067 [16:35:43]line Контрольно-Кассовый Чек [16:35:43]line ПРОДАЖА [16:35:43]line ТРК (МРК, ГНК) : 11 [16:35:43]line Товар: 2710124130 [16:35:43]line Аи-92-К-5 [16:35:43]line 32.320 * 61.90 [16:35:43]line = 2000.61 [16:35:43]line НДС 12% НСП 1% [16:35:43]line > о реализуемом товаре [16:35:43]line ОКРУГЛЕНИЕ: -0.61 [16:35:43]line ИТОГО: 2000.00 [16:35:43]line Внесено: 2000.00 [16:35:43]line СДАЧА: 0.00 [16:35:43]line НСП 1% : 17.70 [16:35:43]line НДС 12% : 212.45 [16:35:43]line Наличными: 2000.00 [16:35:43]line Безнал.: 0.00 [16:35:43]line Место: АЗС № 25 "Партнер Нефть" [16:35:43]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [16:35:43]line СНО: Общий режим [16:35:43]line Чек 150 03.03.2024 16:35 [16:35:43]line Смена: 323 ФФД: 1.0 [16:35:43]line ЗНМ: 0300000019 [16:35:43]line РНМ: 0000000000090573 [16:35:43]line Версия ККМ: 001 [16:35:43]line ФМ: 0000000000874798 [16:35:43]line ФД: 123293 [16:35:43]line ФПД: 88171135659852 [16:35:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T163545&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123293&fm=88171135659852&tin=02508201610067®Number=0000000000090573&sum=200000 [16:35:43]OFD Sender: Processing packet 123293 [packets to send 112, broken 111] [16:35:43]ProducePacketName [16:35:43]name=ofd_packets/00123293 [16:35:43]OFD Sender: To server: pG, [16:35:43]CommunicateWithHost lk.salyk.kg:30040 [16:35:43]ConnectInit lk.salyk.kg [16:35:43]written 0, free lines is 4095 [16:35:43]Connected sock=10 [16:35: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 37 39 38 0F 01 00 00 C7 99 07 01 4E 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 7E 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 7D 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 FD 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 96 00 00 00 F4 03 04 00 E1 A6 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 9D E1 01 00 35 04 06 00 50 30 F1 38 6F 4C 13 62 A4 EA 8C 38 24 DC [16:35:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 CC EA 47 00 5A 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 9D E1 01 00 F4 03 04 00 0D 53 E4 65 B6 04 01 00 00 7D 09 D0 31 42 C4 20 6D [16:35:43]CommunicateWithHost err = 0 [16:35:43]CheckOFDResponse [16:35:43]1017 (14) - 77093643461234 [16:35:43]1041 (16) - 0000000000874798 [16:35:43]1040 (4) - 123293 [16:35:43]1012 (4) - 03.03.2024 10:38 [16:35:43]1206 (1) - 0 [16:35:43]OFD Sender: Remove packet 123293 [16:35:43]ProducePacketName [16:35:43]name=ofd_packets/00123293 [16:35:43]NVStorageDeleteData [16:35:44]Write to MH i2c: 01 00 00 83 37 BA [16:35:44]Write i2c OK [16:35:44]MH_I2C_Read... [16:35:44]Read from MH i2c: 01 [16:35:44]MH_I2C_Read... [16:35:44]Read from MH i2c: 01 07 00 [16:35:44]MH_I2C_Read... [16:35:44]Read from MH i2c: 01 07 00 83 37 00 00 00 00 00 FD 0C CA [16:35:44]RasterBufferAndPrint [16:35:44]line [16:35:44]line [16:35:44]line [16:35:44]line [16:35:44]line [16:35:44]written 0, free lines is 3334 [16:35:44]MH_Cut [16:35:44]Write to MH i2c: D1 01 00 8A 37 01 93 [16:35:44]Write i2c OK [16:35:44]MH_I2C_Read... [16:35:44]Read from MH i2c: D1 [16:35:44]MH_I2C_Read... [16:35:44]Read from MH i2c: D1 01 00 [16:35:44]MH_I2C_Read... [16:35:44]Read from MH i2c: D1 01 00 8A 37 00 92 [16:35:44]Write to MH i2c: 01 00 00 8B 37 C2 [16:35:44]Write i2c OK [16:35:44]MH_I2C_Read... [16:35:44]OFD Sender: No OFD packet to send [16:35:44]*** Cut start [16:35:44]*** Purtial cut [16:35:44]*** Stage 1: CUTSNS_PIN = 1 [16:35:46]Read from MH i2c: 01 [16:35:46]MH_I2C_Read... [16:35:46]*** Stop cut motor [16:35:46]*** Cut end [16:35:46]Read from MH i2c: 01 07 00 [16:35:46]MH_I2C_Read... [16:35:46]Read from MH i2c: 01 07 00 8B 37 00 00 00 00 00 FF 0F D7 [16:35:46]process_action close_receipt done [16:35:46]requested_data is exist [16:35:46]produce_requested_data [16:35:46]requested_item fm.sn is exist - process it [16:35:46]wFMCommunicate request_size=4 [16:35:46]MH_SAM_APDU [16:35:46]CAPDU: 80 11 00 00 [16:35:46]Write to MH i2c: E2 08 00 8C 37 80 11 00 00 00 00 00 00 3D [16:35:46]Write i2c OK [16:35:46]MH_I2C_Read... [16:35:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:35:46]Read from MH i2c: E2 [16:35:46]MH_I2C_Read... [16:35:46]Read from MH i2c: E2 17 00 [16:35:46]MH_I2C_Read... [16:35:46]Read from MH i2c: E2 17 00 8C 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 9B [16:35:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [16:35:46]wFMCommunicate OK [16:35:46]requested_item fd.num is exist - process it [16:35:46]SAM_PROTO_GetFieldsCounters [16:35:46]wFMCommunicate request_size=4 [16:35:46]MH_SAM_APDU [16:35:46]CAPDU: 80 13 00 00 [16:35:46]Write to MH i2c: E2 08 00 8D 37 80 13 00 00 00 00 00 00 40 [16:35:46]Write i2c OK [16:35:46]MH_I2C_Read... [16:35:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:35:47]Read from MH i2c: E2 [16:35:47]MH_I2C_Read... [16:35:47]Read from MH i2c: E2 62 00 [16:35:47]MH_I2C_Read... [16:35:47]Read from MH i2c: E2 62 00 8D 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 9D E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 F0 [16:35: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 9D E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:35:47]wFMCommunicate OK [16:35:47]SAM_PROTO_GetFieldsCounters done [16:35:47]requested_item shift.num is exist - process it [16:35:47]requested_item shift.opened is exist - process it [16:35:47]req_shift_opened [16:35:47]FM_GetShiftState [16:35:47]SAM_PROTO_GetShiftState [16:35:47]wFMCommunicate request_size=4 [16:35:47]MH_SAM_APDU [16:35:47]CAPDU: 80 13 01 00 [16:35:47]Write to MH i2c: E2 08 00 8E 37 80 13 01 00 00 00 00 00 42 [16:35:47]Write i2c OK [16:35:47]MH_I2C_Read... [16:35:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:35:47]Read from MH i2c: E2 [16:35:47]MH_I2C_Read... [16:35:47]Read from MH i2c: E2 0E 00 [16:35:47]MH_I2C_Read... [16:35:47]Read from MH i2c: E2 0E 00 8E 37 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 04 [16:35:47]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [16:35:47]wFMCommunicate OK [16:35:47]SAM_PROTO_GetShiftState done [16:35:47]FM_GetShiftState done [16:35:47]req_shift_opened done [16:35:47]requested_item shift.open_date is exist - process it [16:35:47]req_shift_open_date [16:35:47]req_shift_open_date done [16:35:47]produce_requested_data done [16:35:47]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123293,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [16:35:47]process_action_free close_receipt [16:35:47]json_value_free [16:35:47]json_value_free done [16:35:47]process_json_proto returns [16:35:47]Send response to host [16:35:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123293,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [16:35:47]free response buf [16:35:47]execute_script done [16:35:47]execute_script returns [16:35:47]free content buf [16:35:47]Sock 9.Close socket [16:35:47]Sock 9.Thread stoped [16:35:49]OFD Sender: No OFD packet to send [16:35:54]OFD Sender: No OFD packet to send [16:35:59]OFD Sender: No OFD packet to send [16:36:04]OFD Sender: No OFD packet to send [16:36:09]OFD Sender: No OFD packet to send [16:36:14]OFD Sender: No OFD packet to send [16:36:19]OFD Sender: No OFD packet to send [16:36:24]OFD Sender: No OFD packet to send [16:36:29]OFD Sender: No OFD packet to send [16:36:34]OFD Sender: No OFD packet to send [16:36:39]OFD Sender: No OFD packet to send [16:36:44]OFD Sender: No OFD packet to send [16:36:49]OFD Sender: No OFD packet to send [16:36:54]OFD Sender: No OFD packet to send [16:36:59]OFD Sender: No OFD packet to send [16:37:04]OFD Sender: No OFD packet to send [16:37:09]OFD Sender: No OFD packet to send [16:37:14]OFD Sender: No OFD packet to send [16:37:19]OFD Sender: No OFD packet to send [16:37:24]OFD Sender: No OFD packet to send [16:37:29]OFD Sender: No OFD packet to send [16:37:34]OFD Sender: No OFD packet to send [16:37:39]OFD Sender: No OFD packet to send [16:37:44]OFD Sender: No OFD packet to send [16:37:49]OFD Sender: No OFD packet to send [16:37:54]OFD Sender: No OFD packet to send [16:37:59]OFD Sender: No OFD packet to send [16:38:04]OFD Sender: No OFD packet to send [16:38:09]OFD Sender: No OFD packet to send [16:38:14]OFD Sender: No OFD packet to send [16:38:19]OFD Sender: No OFD packet to send [16:38:24]OFD Sender: No OFD packet to send [16:38:29]OFD Sender: No OFD packet to send [16:38:34]OFD Sender: No OFD packet to send [16:38:39]OFD Sender: No OFD packet to send [16:38:44]OFD Sender: No OFD packet to send [16:38:49]OFD Sender: No OFD packet to send [16:38:54]OFD Sender: No OFD packet to send [16:38:59]OFD Sender: No OFD packet to send [16:39:04]OFD Sender: No OFD packet to send [16:39:09]OFD Sender: No OFD packet to send [16:39:14]OFD Sender: No OFD packet to send [16:39:19]OFD Sender: No OFD packet to send [16:39:24]OFD Sender: No OFD packet to send [16:39:29]OFD Sender: No OFD packet to send [16:39:34]OFD Sender: No OFD packet to send [16:39:39]OFD Sender: No OFD packet to send [16:39:44]OFD Sender: No OFD packet to send [16:39:49]OFD Sender: No OFD packet to send [16:39:54]OFD Sender: No OFD packet to send [16:39:59]OFD Sender: No OFD packet to send [16:40:04]OFD Sender: No OFD packet to send [16:40:09]OFD Sender: No OFD packet to send [16:40:14]OFD Sender: No OFD packet to send [16:40:19]OFD Sender: No OFD packet to send [16:40:24]OFD Sender: No OFD packet to send [16:40:29]OFD Sender: No OFD packet to send [16:40:34]OFD Sender: No OFD packet to send [16:40:39]OFD Sender: No OFD packet to send [16:40:44]OFD Sender: No OFD packet to send [16:40:49]OFD Sender: No OFD packet to send [16:40:54]OFD Sender: No OFD packet to send [16:40:59]OFD Sender: No OFD packet to send [16:41:04]OFD Sender: No OFD packet to send [16:41:09]OFD Sender: No OFD packet to send [16:41:14]OFD Sender: No OFD packet to send [16:41:19]OFD Sender: No OFD packet to send [16:41:24]OFD Sender: No OFD packet to send [16:41:29]OFD Sender: No OFD packet to send [16:41:34]OFD Sender: No OFD packet to send [16:41:39]OFD Sender: No OFD packet to send [16:41:44]OFD Sender: No OFD packet to send [16:41:49]OFD Sender: No OFD packet to send [16:41:54]OFD Sender: No OFD packet to send [16:41:59]OFD Sender: No OFD packet to send [16:42:04]OFD Sender: No OFD packet to send [16:42:09]OFD Sender: No OFD packet to send [16:42:14]OFD Sender: No OFD packet to send [16:42:19]OFD Sender: No OFD packet to send [16:42:24]OFD Sender: No OFD packet to send [16:42:29]OFD Sender: No OFD packet to send [16:42:34]OFD Sender: No OFD packet to send [16:42:39]OFD Sender: No OFD packet to send [16:42:44]OFD Sender: No OFD packet to send [16:42:49]OFD Sender: No OFD packet to send [16:42:54]OFD Sender: No OFD packet to send [16:42:59]OFD Sender: No OFD packet to send [16:43:04]OFD Sender: No OFD packet to send [16:43:09]OFD Sender: No OFD packet to send [16:43:14]OFD Sender: No OFD packet to send [16:43:19]OFD Sender: No OFD packet to send [16:43:24]OFD Sender: No OFD packet to send [16:43:29]OFD Sender: No OFD packet to send [16:43:34]OFD Sender: No OFD packet to send [16:43:39]OFD Sender: No OFD packet to send [16:43:44]OFD Sender: No OFD packet to send [16:43:50]OFD Sender: No OFD packet to send [16:43:53]accept exits with 7 [16:43:53]New connection [16:43:53]New thread 3067252068 created [16:43:53]Thread 3067395428 joined [16:43:53]Waiting for new connection... [16:43:53] Sock 7.Parse request [16:43:53]Sock 7.Check first char [16:43:53]Sock 7.First char is OK [16:43:53]request: POST /json_proto HTTP/1.0 [16:43:53]Method: POST [16:43:53]URL: /json_proto [16:43:53]Method is POST - this is cgi request [16:43:53]url: /json_proto [16:43:53]query_string will be loaded in cgi processing [16:43:53]execute_cgi json_proto POST (null) [16:43:53]execute_cgi path=json_proto method=POST [16:43:53]POST find Content-Length [16:43:53]Host: 172.17.48.197:8080 [16:43:53]Content-Length: 683 [16:43:53]Content-Type: application/json [16:43:53] [16:43:53]POST finish read [16:43:53]Found Content-Length = 683 [16:43:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106232", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 17.270, "sum" : 1200.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:43:53]execute_script... [16:43: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)1106232", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 17.270, "sum" : 1200.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:43:53]POST & json_proto [16:43:53]process_json_proto [16:43:53]json parsed OK: [16:43:53]protocol is kg_v1.0 [16:43:53]action value=close_receipt [16:43:53]process_action close_receipt [16:43:53]cmd_close_receipt [16:43:53]MH_GetDate [16:43:53]Write to MH i2c: F0 00 00 8F 37 B5 [16:43:53]Write i2c OK [16:43:53]MH_I2C_Read... [16:43:53]Read from MH i2c: F0 [16:43:53]MH_I2C_Read... [16:43:53]Read from MH i2c: F0 09 00 [16:43:53]MH_I2C_Read... [16:43:53]Read from MH i2c: F0 09 00 8F 37 00 CD A8 E4 65 6C AF E3 65 DF [16:43:53]GetLastDocTimeStamp 1709483745 [16:43:53]current date 1709484237 [16:43:53]FM_GetShiftState [16:43:53]SAM_PROTO_GetShiftState [16:43:53]wFMCommunicate request_size=4 [16:43:53]MH_SAM_APDU [16:43:53]CAPDU: 80 13 01 00 [16:43:53]Write to MH i2c: E2 08 00 90 37 80 13 01 00 00 00 00 00 44 [16:43:53]Write i2c OK [16:43:53]MH_I2C_Read... [16:43:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:43:53]Read from MH i2c: E2 [16:43:53]MH_I2C_Read... [16:43:53]Read from MH i2c: E2 0E 00 [16:43:53]MH_I2C_Read... [16:43:53]Read from MH i2c: E2 0E 00 90 37 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 06 [16:43:53]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [16:43:53]wFMCommunicate OK [16:43:53]SAM_PROTO_GetShiftState done [16:43:53]FM_GetShiftState done [16:43:53]opened in 1709425579 [16:43:53]opened+sec_in_day 1709511979 [16:43:53]quantity*price = 120026 [16:43:53]sum+1 = 120028 [16:43:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.46 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 151 03.03.2024 16:43 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123294 ФПД: 213274234144539 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T164357&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123294&fm=213274234144539&tin=02508201610067®Number=0000000000090573&sum=120000 [16:43:54]StoreToDocumentArchive [16:43:54]shift 323 fd 123294 [16:43:54]save to /storage/0323/doc_00123294 [16:43:54]save last doc name /storage/0323/doc_00123294 to /storage/kkm_last_doc_name [16:43:54]save OK [16:43:54]Clear old archive folders... [16:43:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:43:54]tlvbuf is B6FC4230 [16:43:54]SAM_PROTO_ClearQueue [16:43:54]wFMCommunicate request_size=4 [16:43:54]MH_SAM_APDU [16:43:54]CAPDU: 80 09 00 00 [16:43:54]Write to MH i2c: E2 08 00 9D 37 80 09 00 00 00 00 00 00 46 [16:43:54]Write i2c OK [16:43:54]MH_I2C_Read... [16:43:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:43:55]Read from MH i2c: E2 [16:43:55]MH_I2C_Read... [16:43:55]Read from MH i2c: E2 03 00 [16:43:55]MH_I2C_Read... [16:43:55]Read from MH i2c: E2 03 00 9D 37 00 90 00 48 [16:43:55]RAPDU: 90 00 [16:43:55]wFMCommunicate OK [16:43:55]SAM_PROTO_ClearQueue done [16:43:55]KKMCreateOFDPacket [16:43:55]OFDProtocolAddRootSTLVToBuf [16:43:55]FM_MakeSignedData [16:43:55]FM_MakeSignedData [16:43:55]SAM_PROTO_SignData [16:43:55]wFMCommunicate request_size=4 [16:43:55]MH_SAM_APDU [16:43:55]CAPDU: 80 0D 01 02 [16:43:55]Write to MH i2c: E2 08 00 9E 37 80 0D 01 02 00 00 00 00 4E [16:43:55]Write i2c OK [16:43:55]MH_I2C_Read... [16:43:55]OFD Sender: No OFD packet to send [16:43:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:43:55]Read from MH i2c: E2 [16:43:55]MH_I2C_Read... [16:43:55]Read from MH i2c: E2 03 00 [16:43:55]MH_I2C_Read... [16:43:55]Read from MH i2c: E2 03 00 9E 37 00 90 00 49 [16:43:55]RAPDU: 90 00 [16:43:55]wFMCommunicate OK [16:43:55]wFMCommunicate request_size=255 [16:43:55]MH_SAM_APDU [16:43: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 35 FF 03 08 00 03 76 43 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 DB D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CA 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 CD A8 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 9E E1 01 00 35 04 06 00 C1 [16:43:55]Write to MH i2c: E2 02 01 9F 37 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 76 43 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 DB D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CA 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 CD A8 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 9E E1 01 00 35 04 06 00 C1 00 00 39 [16:43:55]Write i2c OK [16:43:55]MH_I2C_Read... [16:43:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:43:55]Read from MH i2c: E2 [16:43:55]MH_I2C_Read... [16:43:55]Read from MH i2c: E2 03 00 [16:43:55]MH_I2C_Read... [16:43:55]Read from MH i2c: E2 03 00 9F 37 00 90 00 4A [16:43:55]RAPDU: 90 00 [16:43:55]wFMCommunicate OK [16:43:55]wFMCommunicate request_size=10 [16:43:55]MH_SAM_APDU [16:43:55]CAPDU: 80 0D 02 02 05 F8 C6 F7 47 1B [16:43:55]Write to MH i2c: E2 0D 00 A0 37 80 0D 02 02 05 00 F8 C6 F7 47 1B 00 00 72 [16:43:55]Write i2c OK [16:43:55]MH_I2C_Read... [16:43:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:43:55]Read from MH i2c: E2 [16:43:55]MH_I2C_Read... [16:43:55]Read from MH i2c: E2 03 00 [16:43:55]MH_I2C_Read... [16:43:55]Read from MH i2c: E2 03 00 A0 37 00 90 00 4B [16:43:55]RAPDU: 90 00 [16:43:55]wFMCommunicate OK [16:43:55]wFMCommunicate request_size=4 [16:43:55]MH_SAM_APDU [16:43:55]CAPDU: 80 0D 03 02 [16:43:55]Write to MH i2c: E2 08 00 A1 37 80 0D 03 02 00 00 00 00 53 [16:43:55]Write i2c OK [16:43:55]MH_I2C_Read... [16:43:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:43:55]Read from MH i2c: E2 [16:43:55]MH_I2C_Read... [16:43:55]Read from MH i2c: E2 0B 00 [16:43:55]MH_I2C_Read... [16:43:55]Read from MH i2c: E2 0B 00 A1 37 00 CB DB 09 45 BE 15 34 71 90 00 C0 [16:43:55]RAPDU: CB DB 09 45 BE 15 34 71 90 00 [16:43:55]wFMCommunicate OK [16:43:55]SAM_PROTO_SignData done [16:43:55]FM_MakeSignedData done [16:43:55]CreateOFDProtocolMessage [16:43:55]wFMCommunicate request_size=4 [16:43:55]MH_SAM_APDU [16:43:55]CAPDU: 80 11 00 00 [16:43:55]Write to MH i2c: E2 08 00 A2 37 80 11 00 00 00 00 00 00 53 [16:43:55]Write i2c OK [16:43:55]MH_I2C_Read... [16:43:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:43:55]Read from MH i2c: E2 [16:43:55]MH_I2C_Read... [16:43:55]Read from MH i2c: E2 17 00 [16:43:55]MH_I2C_Read... [16:43:55]Read from MH i2c: E2 17 00 A2 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 B1 [16:43:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [16:43:55]wFMCommunicate OK [16:43:55]CreateOFDProtocolMessage done [16:43:55]OFDSenderStorePacket 123294 [16:43:55]StoreOFDPacket docnum=123294 [16:43:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 3B 36 07 01 93 A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 76 43 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 DB D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CA 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 CD A8 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 9E E1 01 00 35 04 06 00 C1 F8 C6 F7 47 1B CB DB 09 45 BE 15 34 71 [16:43:55]CheckFolder [16:43:55]dirname=/storage/ofd_packets [16:43:55]CheckFolder done [16:43:55]ProducePacketName [16:43:55]name=ofd_packets/00123294 [16:43:55]NVStorageSaveData ofd_packets/00123294 [16:43:55]File name is /storage/ofd_packets/00123294 [16:43:55]Write 301 bytes [16:43:55]NVStorageSaveData done [16:43:55]OFDSenderStorePacket done [16:43:55]KKMCreateOFDPacket done [16:43:55]NVStorageSaveData kkm_last_timestamp [16:43:55]File name is /storage/kkm_last_timestamp [16:43:55]Write 4 bytes [16:43:55]NVStorageSaveData done [16:43:55]ExternCall_PrintAddStr [16:43:55]wPrintStart [16:43:55]Write to MH i2c: 01 00 00 A3 37 DA [16:43:55]Write i2c OK [16:43:55]MH_I2C_Read... [16:43:55]Read from MH i2c: 01 [16:43:55]MH_I2C_Read... [16:43:55]Read from MH i2c: 01 07 00 [16:43:55]MH_I2C_Read... [16:43:55]Read from MH i2c: 01 07 00 A3 37 00 00 00 00 00 FF 0F EF [16:43:55]RasterBufferAndPrint [16:43:55]line Счет N : (1)1106232 [16:43:55]line ИНН: 02508201610067 [16:43:55]line Контрольно-Кассовый Чек [16:43:55]line ПРОДАЖА [16:43:55]line ТРК (МРК, ГНК) : 13 [16:43:55]line Товар: 2710124500 [16:43:55]line Аи-95-К-5 [16:43:55]line 17.270 * 69.50 [16:43:55]line = 1200.27 [16:43:55]line НДС 12% НСП 1% [16:43:55]line > о реализуемом товаре [16:43:55]line ОКРУГЛЕНИЕ: -0.27 [16:43:55]line ИТОГО: 1200.00 [16:43:55]line Внесено: 1200.00 [16:43:55]line СДАЧА: 0.00 [16:43:55]line НСП 1% : 10.62 [16:43:55]line НДС 12% : 127.46 [16:43:55]line Наличными: 1200.00 [16:43:55]line Безнал.: 0.00 [16:43:55]line Место: АЗС № 25 "Партнер Нефть" [16:43:55]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [16:43:55]line СНО: Общий режим [16:43:55]line Чек 151 03.03.2024 16:43 [16:43:55]line Смена: 323 ФФД: 1.0 [16:43:55]line ЗНМ: 0300000019 [16:43:55]line РНМ: 0000000000090573 [16:43:55]line Версия ККМ: 001 [16:43:55]line ФМ: 0000000000874798 [16:43:55]line ФД: 123294 [16:43:55]line ФПД: 213274234144539 [16:43:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T164357&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123294&fm=213274234144539&tin=02508201610067®Number=0000000000090573&sum=120000 [16:43:55]OFD Sender: Processing packet 123294 [packets to send 112, broken 111] [16:43:55]ProducePacketName [16:43:55]name=ofd_packets/00123294 [16:43:55]OFD Sender: To server: pG, [16:43:55]CommunicateWithHost lk.salyk.kg:30040 [16:43:55]ConnectInit lk.salyk.kg [16:43:55]written 0, free lines is 4095 [16:43:55]Connected sock=10 [16:43: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 37 39 38 0F 01 00 00 3B 36 07 01 93 A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 76 43 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 DB D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CA 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 CD A8 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 9E E1 01 00 35 04 06 00 C1 F8 C6 F7 47 1B CB DB 09 45 BE 15 34 71 [16:43:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 7A 39 47 00 05 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 37 39 38 10 04 04 00 9E E1 01 00 F4 03 04 00 F9 54 E4 65 B6 04 01 00 00 D5 EF 6C DA 1A EB D3 C8 [16:43:56]CommunicateWithHost err = 0 [16:43:56]CheckOFDResponse [16:43:56]1017 (14) - 77093643461234 [16:43:56]1041 (16) - 0000000000874798 [16:43:56]1040 (4) - 123294 [16:43:56]1012 (4) - 03.03.2024 10:46 [16:43:56]1206 (1) - 0 [16:43:56]OFD Sender: Remove packet 123294 [16:43:56]ProducePacketName [16:43:56]name=ofd_packets/00123294 [16:43:56]NVStorageDeleteData [16:43:56]Write to MH i2c: 01 00 00 CE 37 05 [16:43:56]Write i2c OK [16:43:56]MH_I2C_Read... [16:43:56]Read from MH i2c: 01 [16:43:56]MH_I2C_Read... [16:43:56]Read from MH i2c: 01 07 00 [16:43:56]MH_I2C_Read... [16:43:56]Read from MH i2c: 01 07 00 CE 37 00 00 00 00 00 EC 0C 04 [16:43:56]RasterBufferAndPrint [16:43:56]line [16:43:56]line [16:43:56]line [16:43:56]line [16:43:56]line [16:43:56]written 0, free lines is 3317 [16:43:56]MH_Cut [16:43:56]Write to MH i2c: D1 01 00 D5 37 01 DE [16:43:56]Write i2c OK [16:43:56]MH_I2C_Read... [16:43:56]Read from MH i2c: D1 [16:43:56]MH_I2C_Read... [16:43:56]Read from MH i2c: D1 01 00 [16:43:56]MH_I2C_Read... [16:43:56]Read from MH i2c: D1 01 00 D5 37 00 DD [16:43:56]Write to MH i2c: 01 00 00 D6 37 0D [16:43:56]Write i2c OK [16:43:56]MH_I2C_Read... [16:43:56]OFD Sender: No OFD packet to send [16:43:56]*** Cut start [16:43:56]*** Purtial cut [16:43:56]*** Stage 1: CUTSNS_PIN = 1 [16:43:58]Read from MH i2c: 01 [16:43:58]MH_I2C_Read... [16:43:58]*** Stop cut motor [16:43:58]*** Cut end [16:43:58]Read from MH i2c: 01 07 00 [16:43:58]MH_I2C_Read... [16:43:59]Read from MH i2c: 01 07 00 D6 37 00 00 00 00 00 FF 0F 22 [16:43:59]process_action close_receipt done [16:43:59]requested_data is exist [16:43:59]produce_requested_data [16:43:59]requested_item fm.sn is exist - process it [16:43:59]wFMCommunicate request_size=4 [16:43:59]MH_SAM_APDU [16:43:59]CAPDU: 80 11 00 00 [16:43:59]Write to MH i2c: E2 08 00 D7 37 80 11 00 00 00 00 00 00 88 [16:43:59]Write i2c OK [16:43:59]MH_I2C_Read... [16:43:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:43:59]Read from MH i2c: E2 [16:43:59]MH_I2C_Read... [16:43:59]Read from MH i2c: E2 17 00 [16:43:59]MH_I2C_Read... [16:43:59]Read from MH i2c: E2 17 00 D7 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 E6 [16:43:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [16:43:59]wFMCommunicate OK [16:43:59]requested_item fd.num is exist - process it [16:43:59]SAM_PROTO_GetFieldsCounters [16:43:59]wFMCommunicate request_size=4 [16:43:59]MH_SAM_APDU [16:43:59]CAPDU: 80 13 00 00 [16:43:59]Write to MH i2c: E2 08 00 D8 37 80 13 00 00 00 00 00 00 8B [16:43:59]Write i2c OK [16:43:59]MH_I2C_Read... [16:43:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:43:59]Read from MH i2c: E2 [16:43:59]MH_I2C_Read... [16:43:59]Read from MH i2c: E2 62 00 [16:43:59]MH_I2C_Read... [16:43:59]Read from MH i2c: E2 62 00 D8 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 9E E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 3F [16:43:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 9E E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:43:59]wFMCommunicate OK [16:43:59]SAM_PROTO_GetFieldsCounters done [16:43:59]requested_item shift.num is exist - process it [16:43:59]requested_item shift.opened is exist - process it [16:43:59]req_shift_opened [16:43:59]FM_GetShiftState [16:43:59]SAM_PROTO_GetShiftState [16:43:59]wFMCommunicate request_size=4 [16:43:59]MH_SAM_APDU [16:43:59]CAPDU: 80 13 01 00 [16:43:59]Write to MH i2c: E2 08 00 D9 37 80 13 01 00 00 00 00 00 8D [16:43:59]Write i2c OK [16:43:59]MH_I2C_Read... [16:43:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:43:59]Read from MH i2c: E2 [16:43:59]MH_I2C_Read... [16:43:59]Read from MH i2c: E2 0E 00 [16:43:59]MH_I2C_Read... [16:43:59]Read from MH i2c: E2 0E 00 D9 37 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 4F [16:43:59]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [16:43:59]wFMCommunicate OK [16:43:59]SAM_PROTO_GetShiftState done [16:43:59]FM_GetShiftState done [16:43:59]req_shift_opened done [16:43:59]requested_item shift.open_date is exist - process it [16:43:59]req_shift_open_date [16:43:59]req_shift_open_date done [16:43:59]produce_requested_data done [16:43:59]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123294,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [16:43:59]process_action_free close_receipt [16:43:59]json_value_free [16:43:59]json_value_free done [16:43:59]process_json_proto returns [16:43:59]Send response to host [16:43:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123294,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [16:43:59]free response buf [16:43:59]execute_script done [16:43:59]execute_script returns [16:43:59]free content buf [16:43:59]Sock 7.Close socket [16:43:59]Sock 7.Thread stoped [16:44:01]OFD Sender: No OFD packet to send [16:44:06]OFD Sender: No OFD packet to send [16:44:11]OFD Sender: No OFD packet to send [16:44:16]OFD Sender: No OFD packet to send [16:44:21]OFD Sender: No OFD packet to send [16:44:26]OFD Sender: No OFD packet to send [16:44:31]OFD Sender: No OFD packet to send [16:44:36]OFD Sender: No OFD packet to send [16:44:41]OFD Sender: No OFD packet to send [16:44:46]OFD Sender: No OFD packet to send [16:44:51]OFD Sender: No OFD packet to send [16:44:56]OFD Sender: No OFD packet to send [16:45:01]OFD Sender: No OFD packet to send [16:45:06]OFD Sender: No OFD packet to send [16:45:11]OFD Sender: No OFD packet to send [16:45:16]OFD Sender: No OFD packet to send [16:45:21]OFD Sender: No OFD packet to send [16:45:26]OFD Sender: No OFD packet to send [16:45:31]OFD Sender: No OFD packet to send [16:45:36]OFD Sender: No OFD packet to send [16:45:41]OFD Sender: No OFD packet to send [16:45:43]accept exits with 9 [16:45:43]New connection [16:45:43]New thread 3067395428 created [16:45:43]Thread 3067252068 joined [16:45:43]Waiting for new connection... [16:45:43] Sock 9.Parse request [16:45:43]Sock 9.Check first char [16:45:43]Sock 9.First char is OK [16:45:43]request: POST /json_proto HTTP/1.0 [16:45:43]Method: POST [16:45:43]URL: /json_proto [16:45:43]Method is POST - this is cgi request [16:45:43]url: /json_proto [16:45:43]query_string will be loaded in cgi processing [16:45:43]execute_cgi json_proto POST (null) [16:45:43]execute_cgi path=json_proto method=POST [16:45:43]POST find Content-Length [16:45:43]Host: 172.17.48.197:8080 [16:45:43]Content-Length: 806 [16:45:43]Content-Type: application/json [16:45:43] [16:45:43]POST finish read [16:45:43]Found Content-Length = 806 [16:45:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106233", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 5.500, "sum" : 340.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 340.45 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:45:43]execute_script... [16:45: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)1106233", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 5.500, "sum" : 340.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 340.45 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:45:43]POST & json_proto [16:45:43]process_json_proto [16:45:43]json parsed OK: [16:45:43]protocol is kg_v1.0 [16:45:43]action value=close_receipt [16:45:43]process_action close_receipt [16:45:43]cmd_close_receipt [16:45:43]MH_GetDate [16:45:43]Write to MH i2c: F0 00 00 DA 37 00 [16:45:43]Write i2c OK [16:45:43]MH_I2C_Read... [16:45:43]Read from MH i2c: F0 [16:45:43]MH_I2C_Read... [16:45:43]Read from MH i2c: F0 09 00 [16:45:43]MH_I2C_Read... [16:45:43]Read from MH i2c: F0 09 00 DA 37 00 3B A9 E4 65 6C AF E3 65 99 [16:45:43]GetLastDocTimeStamp 1709484237 [16:45:43]current date 1709484347 [16:45:43]FM_GetShiftState [16:45:43]SAM_PROTO_GetShiftState [16:45:43]wFMCommunicate request_size=4 [16:45:43]MH_SAM_APDU [16:45:43]CAPDU: 80 13 01 00 [16:45:43]Write to MH i2c: E2 08 00 DB 37 80 13 01 00 00 00 00 00 8F [16:45:43]Write i2c OK [16:45:43]MH_I2C_Read... [16:45:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:45:43]Read from MH i2c: E2 [16:45:43]MH_I2C_Read... [16:45:43]Read from MH i2c: E2 0E 00 [16:45:43]MH_I2C_Read... [16:45:43]Read from MH i2c: E2 0E 00 DB 37 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 51 [16:45:43]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [16:45:43]wFMCommunicate OK [16:45:43]SAM_PROTO_GetShiftState done [16:45:43]FM_GetShiftState done [16:45:43]opened in 1709425579 [16:45:43]opened+sec_in_day 1709511979 [16:45:43]quantity*price = 34045 [16:45:43]sum+1 = 34046 [16:45:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 340.45 НСП 1% : 3.01 НДС 12% : 36.15 Наличными: 0.00 Безнал.: 340.45 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 152 03.03.2024 16:45 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874798 ФД: 123295 ФПД: 176704134223976 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T164547&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123295&fm=176704134223976&tin=02508201610067®Number=0000000000090573&sum=34045 [16:45:44]StoreToDocumentArchive [16:45:44]shift 323 fd 123295 [16:45:44]save to /storage/0323/doc_00123295 [16:45:44]save last doc name /storage/0323/doc_00123295 to /storage/kkm_last_doc_name [16:45:44]save OK [16:45:44]Clear old archive folders... [16:45:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:45:44]tlvbuf is 00E02920 [16:45:44]SAM_PROTO_ClearQueue [16:45:44]wFMCommunicate request_size=4 [16:45:44]MH_SAM_APDU [16:45:44]CAPDU: 80 09 00 00 [16:45:44]Write to MH i2c: E2 08 00 E8 37 80 09 00 00 00 00 00 00 91 [16:45:44]Write i2c OK [16:45:44]MH_I2C_Read... [16:45:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:45:44]Read from MH i2c: E2 [16:45:44]MH_I2C_Read... [16:45:44]Read from MH i2c: E2 03 00 [16:45:44]MH_I2C_Read... [16:45:44]Read from MH i2c: E2 03 00 E8 37 00 90 00 93 [16:45:44]RAPDU: 90 00 [16:45:44]wFMCommunicate OK [16:45:44]SAM_PROTO_ClearQueue done [16:45:44]KKMCreateOFDPacket [16:45:44]OFDProtocolAddRootSTLVToBuf [16:45:44]FM_MakeSignedData [16:45:44]FM_MakeSignedData [16:45:44]SAM_PROTO_SignData [16:45:44]wFMCommunicate request_size=4 [16:45:44]MH_SAM_APDU [16:45:44]CAPDU: 80 0D 01 02 [16:45:44]Write to MH i2c: E2 08 00 E9 37 80 0D 01 02 00 00 00 00 99 [16:45:44]Write i2c OK [16:45:44]MH_I2C_Read... [16:45:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:45:44]Read from MH i2c: E2 [16:45:44]MH_I2C_Read... [16:45:44]Read from MH i2c: E2 03 00 [16:45:44]MH_I2C_Read... [16:45:44]Read from MH i2c: E2 03 00 E9 37 00 90 00 94 [16:45:44]RAPDU: 90 00 [16:45:44]wFMCommunicate OK [16:45:44]wFMCommunicate request_size=255 [16:45:44]MH_SAM_APDU [16:45: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 15 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 FD 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FD 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FD 84 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 3B A9 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 9F E1 01 00 35 04 06 00 A0 [16:45:44]Write to MH i2c: E2 02 01 EA 37 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 15 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 FD 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FD 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FD 84 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 3B A9 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 9F E1 01 00 35 04 06 00 A0 00 00 8C [16:45:44]Write i2c OK [16:45:44]MH_I2C_Read... [16:45:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:45:45]Read from MH i2c: E2 [16:45:45]MH_I2C_Read... [16:45:45]Read from MH i2c: E2 03 00 [16:45:45]MH_I2C_Read... [16:45:45]Read from MH i2c: E2 03 00 EA 37 00 90 00 95 [16:45:45]RAPDU: 90 00 [16:45:45]wFMCommunicate OK [16:45:45]wFMCommunicate request_size=10 [16:45:45]MH_SAM_APDU [16:45:45]CAPDU: 80 0D 02 02 05 B6 23 26 98 68 [16:45:45]Write to MH i2c: E2 0D 00 EB 37 80 0D 02 02 05 00 B6 23 26 98 68 00 00 A5 [16:45:45]Write i2c OK [16:45:45]MH_I2C_Read... [16:45:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:45:45]Read from MH i2c: E2 [16:45:45]MH_I2C_Read... [16:45:45]Read from MH i2c: E2 03 00 [16:45:45]MH_I2C_Read... [16:45:45]Read from MH i2c: E2 03 00 EB 37 00 90 00 96 [16:45:45]RAPDU: 90 00 [16:45:45]wFMCommunicate OK [16:45:45]wFMCommunicate request_size=4 [16:45:45]MH_SAM_APDU [16:45:45]CAPDU: 80 0D 03 02 [16:45:45]Write to MH i2c: E2 08 00 EC 37 80 0D 03 02 00 00 00 00 9E [16:45:45]Write i2c OK [16:45:45]MH_I2C_Read... [16:45:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:45:45]Read from MH i2c: E2 [16:45:45]MH_I2C_Read... [16:45:45]Read from MH i2c: E2 0B 00 [16:45:45]MH_I2C_Read... [16:45:45]Read from MH i2c: E2 0B 00 EC 37 00 F6 33 B5 19 08 4D 03 24 90 00 12 [16:45:45]RAPDU: F6 33 B5 19 08 4D 03 24 90 00 [16:45:45]wFMCommunicate OK [16:45:45]SAM_PROTO_SignData done [16:45:45]FM_MakeSignedData done [16:45:45]CreateOFDProtocolMessage [16:45:45]wFMCommunicate request_size=4 [16:45:45]MH_SAM_APDU [16:45:45]CAPDU: 80 11 00 00 [16:45:45]Write to MH i2c: E2 08 00 ED 37 80 11 00 00 00 00 00 00 9E [16:45:45]Write i2c OK [16:45:45]MH_I2C_Read... [16:45:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:45:45]Read from MH i2c: E2 [16:45:45]MH_I2C_Read... [16:45:45]Read from MH i2c: E2 17 00 [16:45:45]MH_I2C_Read... [16:45:45]Read from MH i2c: E2 17 00 ED 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 FC [16:45:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [16:45:45]wFMCommunicate OK [16:45:45]CreateOFDProtocolMessage done [16:45:45]OFDSenderStorePacket 123295 [16:45:45]StoreOFDPacket docnum=123295 [16:45:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 EA 7E 07 01 5B 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 15 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 FD 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FD 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FD 84 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 3B A9 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 9F E1 01 00 35 04 06 00 A0 B6 23 26 98 68 F6 33 B5 19 08 4D 03 24 [16:45:45]CheckFolder [16:45:45]dirname=/storage/ofd_packets [16:45:45]CheckFolder done [16:45:45]ProducePacketName [16:45:45]name=ofd_packets/00123295 [16:45:45]NVStorageSaveData ofd_packets/00123295 [16:45:45]File name is /storage/ofd_packets/00123295 [16:45:45]Write 301 bytes [16:45:45]NVStorageSaveData done [16:45:45]OFDSenderStorePacket done [16:45:45]KKMCreateOFDPacket done [16:45:45]NVStorageSaveData kkm_last_timestamp [16:45:45]File name is /storage/kkm_last_timestamp [16:45:45]Write 4 bytes [16:45:45]NVStorageSaveData done [16:45:45]ExternCall_PrintAddStr [16:45:45]wPrintStart [16:45:45]Write to MH i2c: 01 00 00 EE 37 25 [16:45:45]Write i2c OK [16:45:45]MH_I2C_Read... [16:45:45]Read from MH i2c: 01 [16:45:45]MH_I2C_Read... [16:45:45]Read from MH i2c: 01 07 00 [16:45:45]MH_I2C_Read... [16:45:45]Read from MH i2c: 01 07 00 EE 37 00 00 00 00 00 FF 0F 3A [16:45:45]RasterBufferAndPrint [16:45:45]line Счет N : (1)1106233 [16:45:45]line ИНН: 02508201610067 [16:45:45]line Контрольно-Кассовый Чек [16:45:45]line ПРОДАЖА [16:45:45]line ТРК (МРК, ГНК) : 52 [16:45:45]line Товар: 2710124130 [16:45:45]line Аи-92-К-5 [16:45:45]line 5.500 * 61.90 [16:45:45]line = 340.45 [16:45:45]line НДС 12% НСП 1% [16:45:45]line > о реализуемом товаре [16:45:45]line ИТОГО: 340.45 [16:45:45]line НСП 1% : 3.01 [16:45:45]line НДС 12% : 36.15 [16:45:45]line Наличными: 0.00 [16:45:45]line Безнал.: 340.45 [16:45:45]line Место: АЗС № 25 "Партнер Нефть" [16:45:45]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [16:45:45]line СНО: Общий режим [16:45:45]line Чек 152 03.03.2024 16:45 [16:45:45]line Смена: 323 ФФД: 1.0 [16:45:45]line ЗНМ: 0300000019 [16:45:45]line РНМ: 0000000000090573 [16:45:45]line Версия ККМ: 001 [16:45:45]line Платежная система: О! деньги [16:45:45]line ФМ: 0000000000874798 [16:45:45]line ФД: 123295 [16:45:45]line ФПД: 176704134223976 [16:45:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T164547&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123295&fm=176704134223976&tin=02508201610067®Number=0000000000090573&sum=34045 [16:45:45]OFD Sender: Processing packet 123295 [packets to send 112, broken 111] [16:45:45]ProducePacketName [16:45:45]name=ofd_packets/00123295 [16:45:45]OFD Sender: To server: pG, [16:45:45]CommunicateWithHost lk.salyk.kg:30040 [16:45:45]ConnectInit lk.salyk.kg [16:45:45]written 0, free lines is 4095 [16:45:45]Connected sock=10 [16:45: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 37 39 38 0F 01 00 00 EA 7E 07 01 5B 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 15 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 FD 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FD 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FD 84 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 3B A9 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 9F E1 01 00 35 04 06 00 A0 B6 23 26 98 68 F6 33 B5 19 08 4D 03 24 [16:45:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 AE 95 47 00 10 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 37 39 38 10 04 04 00 9F E1 01 00 F4 03 04 00 67 55 E4 65 B6 04 01 00 00 1D 16 EA AD 75 EA 89 AA [16:45:46]CommunicateWithHost err = 0 [16:45:46]CheckOFDResponse [16:45:46]1017 (14) - 77093643461234 [16:45:46]1041 (16) - 0000000000874798 [16:45:46]1040 (4) - 123295 [16:45:46]1012 (4) - 03.03.2024 10:48 [16:45:46]1206 (1) - 0 [16:45:46]OFD Sender: Remove packet 123295 [16:45:46]ProducePacketName [16:45:46]name=ofd_packets/00123295 [16:45:46]NVStorageDeleteData [16:45:46]Write to MH i2c: 01 00 00 18 38 50 [16:45:46]Write i2c OK [16:45:46]MH_I2C_Read... [16:45:46]Read from MH i2c: 01 [16:45:46]MH_I2C_Read... [16:45:46]Read from MH i2c: 01 07 00 [16:45:46]MH_I2C_Read... [16:45:46]Read from MH i2c: 01 07 00 18 38 00 00 00 00 00 FF 0C 62 [16:45:46]RasterBufferAndPrint [16:45:46]line [16:45:46]line [16:45:46]line [16:45:46]line [16:45:46]line [16:45:46]written 0, free lines is 3336 [16:45:46]MH_Cut [16:45:46]Write to MH i2c: D1 01 00 1F 38 01 29 [16:45:46]Write i2c OK [16:45:46]MH_I2C_Read... [16:45:46]Read from MH i2c: D1 [16:45:46]MH_I2C_Read... [16:45:46]Read from MH i2c: D1 01 00 [16:45:46]MH_I2C_Read... [16:45:46]Read from MH i2c: D1 01 00 1F 38 00 28 [16:45:46]Write to MH i2c: 01 00 00 20 38 58 [16:45:46]Write i2c OK [16:45:46]MH_I2C_Read... [16:45:46]OFD Sender: No OFD packet to send [16:45:46]*** Cut start [16:45:46]*** Purtial cut [16:45:46]*** Stage 1: CUTSNS_PIN = 1 [16:45:48]Read from MH i2c: 01 [16:45:48]MH_I2C_Read... [16:45:48]*** Stop cut motor [16:45:48]*** Cut end [16:45:48]Read from MH i2c: 01 07 00 [16:45:48]MH_I2C_Read... [16:45:48]Read from MH i2c: 01 07 00 20 38 00 00 00 00 00 FF 0F 6D [16:45:48]process_action close_receipt done [16:45:48]requested_data is exist [16:45:48]produce_requested_data [16:45:48]requested_item fm.sn is exist - process it [16:45:48]wFMCommunicate request_size=4 [16:45:48]MH_SAM_APDU [16:45:48]CAPDU: 80 11 00 00 [16:45:48]Write to MH i2c: E2 08 00 21 38 80 11 00 00 00 00 00 00 D3 [16:45:48]Write i2c OK [16:45:48]MH_I2C_Read... [16:45:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:45:48]Read from MH i2c: E2 [16:45:48]MH_I2C_Read... [16:45:48]Read from MH i2c: E2 17 00 [16:45:48]MH_I2C_Read... [16:45:48]Read from MH i2c: E2 17 00 21 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 31 [16:45:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [16:45:48]wFMCommunicate OK [16:45:48]requested_item fd.num is exist - process it [16:45:48]SAM_PROTO_GetFieldsCounters [16:45:48]wFMCommunicate request_size=4 [16:45:48]MH_SAM_APDU [16:45:48]CAPDU: 80 13 00 00 [16:45:48]Write to MH i2c: E2 08 00 22 38 80 13 00 00 00 00 00 00 D6 [16:45:48]Write i2c OK [16:45:48]MH_I2C_Read... [16:45:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:45:49]Read from MH i2c: E2 [16:45:49]MH_I2C_Read... [16:45:49]Read from MH i2c: E2 62 00 [16:45:49]MH_I2C_Read... [16:45:49]Read from MH i2c: E2 62 00 22 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 9F E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 8E [16:45:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 9F E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:45:49]wFMCommunicate OK [16:45:49]SAM_PROTO_GetFieldsCounters done [16:45:49]requested_item shift.num is exist - process it [16:45:49]requested_item shift.opened is exist - process it [16:45:49]req_shift_opened [16:45:49]FM_GetShiftState [16:45:49]SAM_PROTO_GetShiftState [16:45:49]wFMCommunicate request_size=4 [16:45:49]MH_SAM_APDU [16:45:49]CAPDU: 80 13 01 00 [16:45:49]Write to MH i2c: E2 08 00 23 38 80 13 01 00 00 00 00 00 D8 [16:45:49]Write i2c OK [16:45:49]MH_I2C_Read... [16:45:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:45:49]Read from MH i2c: E2 [16:45:49]MH_I2C_Read... [16:45:49]Read from MH i2c: E2 0E 00 [16:45:49]MH_I2C_Read... [16:45:49]Read from MH i2c: E2 0E 00 23 38 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 9A [16:45:49]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [16:45:49]wFMCommunicate OK [16:45:49]SAM_PROTO_GetShiftState done [16:45:49]FM_GetShiftState done [16:45:49]req_shift_opened done [16:45:49]requested_item shift.open_date is exist - process it [16:45:49]req_shift_open_date [16:45:49]req_shift_open_date done [16:45:49]produce_requested_data done [16:45:49]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123295,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [16:45:49]process_action_free close_receipt [16:45:49]json_value_free [16:45:49]json_value_free done [16:45:49]process_json_proto returns [16:45:49]Send response to host [16:45:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123295,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [16:45:49]free response buf [16:45:49]execute_script done [16:45:49]execute_script returns [16:45:49]free content buf [16:45:49]Sock 9.Close socket [16:45:49]Sock 9.Thread stoped [16:45:51]OFD Sender: No OFD packet to send [16:45:56]OFD Sender: No OFD packet to send [16:46:01]OFD Sender: No OFD packet to send [16:46:06]OFD Sender: No OFD packet to send [16:46:11]OFD Sender: No OFD packet to send [16:46:15]accept exits with 7 [16:46:15]New connection [16:46:15]New thread 3067252068 created [16:46:15]Thread 3067395428 joined [16:46:15]Waiting for new connection... [16:46:15] Sock 7.Parse request [16:46:15]Sock 7.Check first char [16:46:15]Sock 7.First char is OK [16:46:15]request: POST /json_proto HTTP/1.0 [16:46:15]Method: POST [16:46:15]URL: /json_proto [16:46:15]Method is POST - this is cgi request [16:46:15]url: /json_proto [16:46:15]query_string will be loaded in cgi processing [16:46:15]execute_cgi json_proto POST (null) [16:46:15]execute_cgi path=json_proto method=POST [16:46:15]POST find Content-Length [16:46:15]Host: 172.17.48.197:8080 [16:46:15]Content-Length: 683 [16:46:15]Content-Type: application/json [16:46:15] [16:46:15]POST finish read [16:46:15]Found Content-Length = 683 [16:46:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106234", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "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:46:15]execute_script... [16:46: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)1106234", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "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:46:15]POST & json_proto [16:46:15]process_json_proto [16:46:15]json parsed OK: [16:46:15]protocol is kg_v1.0 [16:46:15]action value=close_receipt [16:46:15]process_action close_receipt [16:46:15]cmd_close_receipt [16:46:15]MH_GetDate [16:46:15]Write to MH i2c: F0 00 00 24 38 4B [16:46:15]Write i2c OK [16:46:15]MH_I2C_Read... [16:46:15]Read from MH i2c: F0 [16:46:15]MH_I2C_Read... [16:46:15]Read from MH i2c: F0 09 00 [16:46:15]MH_I2C_Read... [16:46:15]Read from MH i2c: F0 09 00 24 38 00 5B A9 E4 65 6C AF E3 65 04 [16:46:15]GetLastDocTimeStamp 1709484347 [16:46:15]current date 1709484379 [16:46:15]FM_GetShiftState [16:46:15]SAM_PROTO_GetShiftState [16:46:15]wFMCommunicate request_size=4 [16:46:15]MH_SAM_APDU [16:46:15]CAPDU: 80 13 01 00 [16:46:15]Write to MH i2c: E2 08 00 25 38 80 13 01 00 00 00 00 00 DA [16:46:15]Write i2c OK [16:46:15]MH_I2C_Read... [16:46:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:46:15]Read from MH i2c: E2 [16:46:15]MH_I2C_Read... [16:46:15]Read from MH i2c: E2 0E 00 [16:46:15]MH_I2C_Read... [16:46:15]Read from MH i2c: E2 0E 00 25 38 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 9C [16:46:15]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [16:46:15]wFMCommunicate OK [16:46:15]SAM_PROTO_GetShiftState done [16:46:15]FM_GetShiftState done [16:46:15]opened in 1709425579 [16:46:15]opened+sec_in_day 1709511979 [16:46:15]quantity*price = 100030 [16:46:15]sum+1 = 100031 [16:46:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 153 03.03.2024 16:46 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123296 ФПД: 67051707026969 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T164619&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123296&fm=67051707026969&tin=02508201610067®Number=0000000000090573&sum=100000 [16:46:16]StoreToDocumentArchive [16:46:16]shift 323 fd 123296 [16:46:16]save to /storage/0323/doc_00123296 [16:46:16]save last doc name /storage/0323/doc_00123296 to /storage/kkm_last_doc_name [16:46:16]save OK [16:46:16]Clear old archive folders... [16:46:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:46:16]tlvbuf is B6FC1070 [16:46:16]SAM_PROTO_ClearQueue [16:46:16]wFMCommunicate request_size=4 [16:46:16]MH_SAM_APDU [16:46:16]CAPDU: 80 09 00 00 [16:46:16]Write to MH i2c: E2 08 00 32 38 80 09 00 00 00 00 00 00 DC [16:46:16]Write i2c OK [16:46:16]MH_I2C_Read... [16:46:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:46:16]Read from MH i2c: E2 [16:46:16]MH_I2C_Read... [16:46:16]Read from MH i2c: E2 03 00 [16:46:16]MH_I2C_Read... [16:46:16]Read from MH i2c: E2 03 00 32 38 00 90 00 DE [16:46:16]RAPDU: 90 00 [16:46:16]wFMCommunicate OK [16:46:16]SAM_PROTO_ClearQueue done [16:46:16]KKMCreateOFDPacket [16:46:16]OFDProtocolAddRootSTLVToBuf [16:46:16]FM_MakeSignedData [16:46:16]FM_MakeSignedData [16:46:16]SAM_PROTO_SignData [16:46:16]wFMCommunicate request_size=4 [16:46:16]MH_SAM_APDU [16:46:16]CAPDU: 80 0D 01 02 [16:46:16]Write to MH i2c: E2 08 00 33 38 80 0D 01 02 00 00 00 00 E4 [16:46:17]Write i2c OK [16:46:17]MH_I2C_Read... [16:46:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:46:17]Read from MH i2c: E2 [16:46:17]MH_I2C_Read... [16:46:17]Read from MH i2c: E2 03 00 [16:46:17]MH_I2C_Read... [16:46:17]Read from MH i2c: E2 03 00 33 38 00 90 00 DF [16:46:17]RAPDU: 90 00 [16:46:17]wFMCommunicate OK [16:46:17]wFMCommunicate request_size=255 [16:46:17]MH_SAM_APDU [16:46:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 99 00 00 00 F4 03 04 00 5B A9 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 A0 E1 01 00 35 04 06 00 3C [16:46:17]Write to MH i2c: E2 02 01 34 38 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 99 00 00 00 F4 03 04 00 5B A9 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 A0 E1 01 00 35 04 06 00 3C 00 00 38 [16:46:17]Write i2c OK [16:46:17]MH_I2C_Read... [16:46:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:46:17]Read from MH i2c: E2 [16:46:17]MH_I2C_Read... [16:46:17]Read from MH i2c: E2 03 00 [16:46:17]MH_I2C_Read... [16:46:17]Read from MH i2c: E2 03 00 34 38 00 90 00 E0 [16:46:17]RAPDU: 90 00 [16:46:17]wFMCommunicate OK [16:46:17]wFMCommunicate request_size=10 [16:46:17]MH_SAM_APDU [16:46:17]CAPDU: 80 0D 02 02 05 FB B1 2D CE 19 [16:46:17]Write to MH i2c: E2 0D 00 35 38 80 0D 02 02 05 00 FB B1 2D CE 19 00 00 B1 [16:46:17]Write i2c OK [16:46:17]MH_I2C_Read... [16:46:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:46:17]Read from MH i2c: E2 [16:46:17]MH_I2C_Read... [16:46:17]Read from MH i2c: E2 03 00 [16:46:17]MH_I2C_Read... [16:46:17]Read from MH i2c: E2 03 00 35 38 00 90 00 E1 [16:46:17]RAPDU: 90 00 [16:46:17]wFMCommunicate OK [16:46:17]wFMCommunicate request_size=4 [16:46:17]MH_SAM_APDU [16:46:17]CAPDU: 80 0D 03 02 [16:46:17]Write to MH i2c: E2 08 00 36 38 80 0D 03 02 00 00 00 00 E9 [16:46:17]Write i2c OK [16:46:17]MH_I2C_Read... [16:46:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:46:17]Read from MH i2c: E2 [16:46:17]MH_I2C_Read... [16:46:17]Read from MH i2c: E2 0B 00 [16:46:17]MH_I2C_Read... [16:46:17]Read from MH i2c: E2 0B 00 36 38 00 41 1E D0 95 5B 70 3C 77 90 00 2C [16:46:17]RAPDU: 41 1E D0 95 5B 70 3C 77 90 00 [16:46:17]wFMCommunicate OK [16:46:17]SAM_PROTO_SignData done [16:46:17]FM_MakeSignedData done [16:46:17]CreateOFDProtocolMessage [16:46:17]wFMCommunicate request_size=4 [16:46:17]MH_SAM_APDU [16:46:17]CAPDU: 80 11 00 00 [16:46:17]Write to MH i2c: E2 08 00 37 38 80 11 00 00 00 00 00 00 E9 [16:46:17]Write i2c OK [16:46:17]MH_I2C_Read... [16:46:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:46:17]Read from MH i2c: E2 [16:46:17]MH_I2C_Read... [16:46:17]Read from MH i2c: E2 17 00 [16:46:17]MH_I2C_Read... [16:46:17]Read from MH i2c: E2 17 00 37 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 47 [16:46:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [16:46:17]wFMCommunicate OK [16:46:17]CreateOFDProtocolMessage done [16:46:17]OFDSenderStorePacket 123296 [16:46:17]StoreOFDPacket docnum=123296 [16:46:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 81 F7 07 01 EE B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 99 00 00 00 F4 03 04 00 5B A9 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 A0 E1 01 00 35 04 06 00 3C FB B1 2D CE 19 41 1E D0 95 5B 70 3C 77 [16:46:17]CheckFolder [16:46:17]dirname=/storage/ofd_packets [16:46:17]CheckFolder done [16:46:17]ProducePacketName [16:46:17]name=ofd_packets/00123296 [16:46:17]NVStorageSaveData ofd_packets/00123296 [16:46:17]File name is /storage/ofd_packets/00123296 [16:46:17]Write 301 bytes [16:46:17]NVStorageSaveData done [16:46:17]OFDSenderStorePacket done [16:46:17]KKMCreateOFDPacket done [16:46:17]NVStorageSaveData kkm_last_timestamp [16:46:17]File name is /storage/kkm_last_timestamp [16:46:17]Write 4 bytes [16:46:17]NVStorageSaveData done [16:46:17]ExternCall_PrintAddStr [16:46:17]wPrintStart [16:46:17]Write to MH i2c: 01 00 00 38 38 70 [16:46:17]Write i2c OK [16:46:17]MH_I2C_Read... [16:46:17]Read from MH i2c: 01 [16:46:17]MH_I2C_Read... [16:46:17]Read from MH i2c: 01 07 00 [16:46:17]MH_I2C_Read... [16:46:17]Read from MH i2c: 01 07 00 38 38 00 00 00 00 00 FF 0F 85 [16:46:17]RasterBufferAndPrint [16:46:17]line Счет N : (1)1106234 [16:46:17]line ИНН: 02508201610067 [16:46:17]line Контрольно-Кассовый Чек [16:46:17]line ПРОДАЖА [16:46:17]line ТРК (МРК, ГНК) : 62 [16:46:17]line Товар: 2710124130 [16:46:17]line Аи-92-К-5 [16:46:17]line 16.160 * 61.90 [16:46:17]line = 1000.30 [16:46:17]line НДС 12% НСП 1% [16:46:17]line > о реализуемом товаре [16:46:17]line ОКРУГЛЕНИЕ: -0.30 [16:46:17]line ИТОГО: 1000.00 [16:46:17]line Внесено: 1000.00 [16:46:17]line СДАЧА: 0.00 [16:46:17]line НСП 1% : 8.85 [16:46:17]line НДС 12% : 106.23 [16:46:17]line Наличными: 1000.00 [16:46:17]line Безнал.: 0.00 [16:46:17]line Место: АЗС № 25 "Партнер Нефть" [16:46:17]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [16:46:17]line СНО: Общий режим [16:46:17]line Чек 153 03.03.2024 16:46 [16:46:17]line Смена: 323 ФФД: 1.0 [16:46:17]line ЗНМ: 0300000019 [16:46:17]line РНМ: 0000000000090573 [16:46:17]line Версия ККМ: 001 [16:46:17]line ФМ: 0000000000874798 [16:46:17]line ФД: 123296 [16:46:17]line ФПД: 67051707026969 [16:46:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T164619&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123296&fm=67051707026969&tin=02508201610067®Number=0000000000090573&sum=100000 [16:46:17]written 0, free lines is 4095 [16:46:17]OFD Sender: Processing packet 123296 [packets to send 112, broken 111] [16:46:17]ProducePacketName [16:46:17]name=ofd_packets/00123296 [16:46:17]OFD Sender: To server: pG, [16:46:17]CommunicateWithHost lk.salyk.kg:30040 [16:46:17]ConnectInit lk.salyk.kg [16:46:17]Connected sock=10 [16:46: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 37 39 38 0F 01 00 00 81 F7 07 01 EE B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 99 00 00 00 F4 03 04 00 5B A9 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 A0 E1 01 00 35 04 06 00 3C FB B1 2D CE 19 41 1E D0 95 5B 70 3C 77 [16:46:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 4D 9D 47 00 74 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 37 39 38 10 04 04 00 A0 E1 01 00 F4 03 04 00 86 55 E4 65 B6 04 01 00 00 D0 7A 65 7F BB B6 A4 8E [16:46:17]CommunicateWithHost err = 0 [16:46:17]CheckOFDResponse [16:46:17]1017 (14) - 77093643461234 [16:46:17]1041 (16) - 0000000000874798 [16:46:17]1040 (4) - 123296 [16:46:17]1012 (4) - 03.03.2024 10:48 [16:46:17]1206 (1) - 0 [16:46:17]OFD Sender: Remove packet 123296 [16:46:17]ProducePacketName [16:46:17]name=ofd_packets/00123296 [16:46:17]NVStorageDeleteData [16:46:17]Write to MH i2c: 01 00 00 63 38 9B [16:46:17]Write i2c OK [16:46:17]MH_I2C_Read... [16:46:17]Read from MH i2c: 01 [16:46:17]MH_I2C_Read... [16:46:17]Read from MH i2c: 01 07 00 [16:46:17]MH_I2C_Read... [16:46:17]Read from MH i2c: 01 07 00 63 38 00 00 00 00 00 01 0D B0 [16:46:17]RasterBufferAndPrint [16:46:17]line [16:46:17]line [16:46:17]line [16:46:17]line [16:46:17]line [16:46:17]written 0, free lines is 3335 [16:46:17]MH_Cut [16:46:17]Write to MH i2c: D1 01 00 6A 38 01 74 [16:46:17]Write i2c OK [16:46:17]MH_I2C_Read... [16:46:17]Read from MH i2c: D1 [16:46:17]MH_I2C_Read... [16:46:17]Read from MH i2c: D1 01 00 [16:46:17]MH_I2C_Read... [16:46:17]Read from MH i2c: D1 01 00 6A 38 00 73 [16:46:17]Write to MH i2c: 01 00 00 6B 38 A3 [16:46:17]Write i2c OK [16:46:17]MH_I2C_Read... [16:46:18]OFD Sender: No OFD packet to send [16:46:18]*** Cut start [16:46:18]*** Purtial cut [16:46:18]*** Stage 1: CUTSNS_PIN = 1 [16:46:20]Read from MH i2c: 01 [16:46:20]MH_I2C_Read... [16:46:20]*** Stop cut motor [16:46:20]*** Cut end [16:46:20]Read from MH i2c: 01 07 00 [16:46:20]MH_I2C_Read... [16:46:20]Read from MH i2c: 01 07 00 6B 38 00 00 00 00 00 FF 0F B8 [16:46:20]process_action close_receipt done [16:46:20]requested_data is exist [16:46:20]produce_requested_data [16:46:20]requested_item fm.sn is exist - process it [16:46:20]wFMCommunicate request_size=4 [16:46:20]MH_SAM_APDU [16:46:20]CAPDU: 80 11 00 00 [16:46:20]Write to MH i2c: E2 08 00 6C 38 80 11 00 00 00 00 00 00 1E [16:46:20]Write i2c OK [16:46:20]MH_I2C_Read... [16:46:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:46:20]Read from MH i2c: E2 [16:46:20]MH_I2C_Read... [16:46:20]Read from MH i2c: E2 17 00 [16:46:20]MH_I2C_Read... [16:46:20]Read from MH i2c: E2 17 00 6C 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 7C [16:46:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [16:46:20]wFMCommunicate OK [16:46:20]requested_item fd.num is exist - process it [16:46:20]SAM_PROTO_GetFieldsCounters [16:46:20]wFMCommunicate request_size=4 [16:46:20]MH_SAM_APDU [16:46:20]CAPDU: 80 13 00 00 [16:46:20]Write to MH i2c: E2 08 00 6D 38 80 13 00 00 00 00 00 00 21 [16:46:20]Write i2c OK [16:46:20]MH_I2C_Read... [16:46:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:46:20]Read from MH i2c: E2 [16:46:20]MH_I2C_Read... [16:46:20]Read from MH i2c: E2 62 00 [16:46:20]MH_I2C_Read... [16:46:20]Read from MH i2c: E2 62 00 6D 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 A0 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [16:46: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 A0 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:46:20]wFMCommunicate OK [16:46:20]SAM_PROTO_GetFieldsCounters done [16:46:20]requested_item shift.num is exist - process it [16:46:20]requested_item shift.opened is exist - process it [16:46:20]req_shift_opened [16:46:20]FM_GetShiftState [16:46:20]SAM_PROTO_GetShiftState [16:46:20]wFMCommunicate request_size=4 [16:46:20]MH_SAM_APDU [16:46:20]CAPDU: 80 13 01 00 [16:46:20]Write to MH i2c: E2 08 00 6E 38 80 13 01 00 00 00 00 00 23 [16:46:20]Write i2c OK [16:46:20]MH_I2C_Read... [16:46:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:46:20]Read from MH i2c: E2 [16:46:20]MH_I2C_Read... [16:46:20]Read from MH i2c: E2 0E 00 [16:46:20]MH_I2C_Read... [16:46:20]Read from MH i2c: E2 0E 00 6E 38 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 E5 [16:46:20]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [16:46:20]wFMCommunicate OK [16:46:20]SAM_PROTO_GetShiftState done [16:46:20]FM_GetShiftState done [16:46:20]req_shift_opened done [16:46:20]requested_item shift.open_date is exist - process it [16:46:20]req_shift_open_date [16:46:20]req_shift_open_date done [16:46:20]produce_requested_data done [16:46:20]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123296,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [16:46:20]process_action_free close_receipt [16:46:20]json_value_free [16:46:20]json_value_free done [16:46:20]process_json_proto returns [16:46:20]Send response to host [16:46:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123296,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [16:46:20]free response buf [16:46:20]execute_script done [16:46:20]execute_script returns [16:46:20]free content buf [16:46:20]Sock 7.Close socket [16:46:20]Sock 7.Thread stoped [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:04]accept exits with 9 [16:47:04]New connection [16:47:04]New thread 3067395428 created [16:47:04]Thread 3067252068 joined [16:47:04]Waiting for new connection... [16:47:04] Sock 9.Parse request [16:47:04]Sock 9.Check first char [16:47:04]Sock 9.First char is OK [16:47:04]request: POST /json_proto HTTP/1.0 [16:47:04]Method: POST [16:47:04]URL: /json_proto [16:47:04]Method is POST - this is cgi request [16:47:04]url: /json_proto [16:47:04]query_string will be loaded in cgi processing [16:47:04]execute_cgi json_proto POST (null) [16:47:04]execute_cgi path=json_proto method=POST [16:47:04]POST find Content-Length [16:47:04]Host: 172.17.48.197:8080 [16:47:04]Content-Length: 678 [16:47:04]Content-Type: application/json [16:47:04] [16:47:04]POST finish read [16:47:04]Found Content-Length = 678 [16:47:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106235", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 3.240, "sum" : 200.56, "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" ] } } [16:47:04]execute_script... [16:47:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106235", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 3.240, "sum" : 200.56, "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" ] } } [16:47:04]POST & json_proto [16:47:04]process_json_proto [16:47:04]json parsed OK: [16:47:04]protocol is kg_v1.0 [16:47:04]action value=close_receipt [16:47:04]process_action close_receipt [16:47:04]cmd_close_receipt [16:47:04]MH_GetDate [16:47:04]Write to MH i2c: F0 00 00 6F 38 96 [16:47:04]Write i2c OK [16:47:04]MH_I2C_Read... [16:47:04]Read from MH i2c: F0 [16:47:04]MH_I2C_Read... [16:47:04]Read from MH i2c: F0 09 00 [16:47:04]MH_I2C_Read... [16:47:04]Read from MH i2c: F0 09 00 6F 38 00 8C A9 E4 65 6C AF E3 65 80 [16:47:04]GetLastDocTimeStamp 1709484379 [16:47:04]current date 1709484428 [16:47:04]FM_GetShiftState [16:47:04]SAM_PROTO_GetShiftState [16:47:04]wFMCommunicate request_size=4 [16:47:04]MH_SAM_APDU [16:47:04]CAPDU: 80 13 01 00 [16:47:04]Write to MH i2c: E2 08 00 70 38 80 13 01 00 00 00 00 00 25 [16:47:04]Write i2c OK [16:47:04]MH_I2C_Read... [16:47:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:47:04]Read from MH i2c: E2 [16:47:04]MH_I2C_Read... [16:47:04]Read from MH i2c: E2 0E 00 [16:47:04]MH_I2C_Read... [16:47:04]Read from MH i2c: E2 0E 00 70 38 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 E7 [16:47:04]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [16:47:04]wFMCommunicate OK [16:47:04]SAM_PROTO_GetShiftState done [16:47:04]FM_GetShiftState done [16:47:04]opened in 1709425579 [16:47:04]opened+sec_in_day 1709511979 [16:47:04]quantity*price = 20055 [16:47:04]sum+1 = 20057 [16:47:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.30 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 154 03.03.2024 16:47 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123297 ФПД: 139588911329110 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T164708&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123297&fm=139588911329110&tin=02508201610067®Number=0000000000090573&sum=20000 [16:47:05]StoreToDocumentArchive [16:47:05]shift 323 fd 123297 [16:47:05]save to /storage/0323/doc_00123297 [16:47:05]save last doc name /storage/0323/doc_00123297 to /storage/kkm_last_doc_name [16:47:05]save OK [16:47:05]Clear old archive folders... [16:47:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:47:05]tlvbuf is B6FC1070 [16:47:05]SAM_PROTO_ClearQueue [16:47:05]wFMCommunicate request_size=4 [16:47:05]MH_SAM_APDU [16:47:05]CAPDU: 80 09 00 00 [16:47:05]Write to MH i2c: E2 08 00 7D 38 80 09 00 00 00 00 00 00 27 [16:47:05]Write i2c OK [16:47:05]MH_I2C_Read... [16:47:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:47:05]Read from MH i2c: E2 [16:47:05]MH_I2C_Read... [16:47:05]Read from MH i2c: E2 03 00 [16:47:05]MH_I2C_Read... [16:47:05]Read from MH i2c: E2 03 00 7D 38 00 90 00 29 [16:47:05]RAPDU: 90 00 [16:47:05]wFMCommunicate OK [16:47:05]SAM_PROTO_ClearQueue done [16:47:05]KKMCreateOFDPacket [16:47:05]OFDProtocolAddRootSTLVToBuf [16:47:05]FM_MakeSignedData [16:47:05]FM_MakeSignedData [16:47:05]SAM_PROTO_SignData [16:47:05]wFMCommunicate request_size=4 [16:47:05]MH_SAM_APDU [16:47:05]CAPDU: 80 0D 01 02 [16:47:05]Write to MH i2c: E2 08 00 7E 38 80 0D 01 02 00 00 00 00 2F [16:47:05]Write i2c OK [16:47:05]MH_I2C_Read... [16:47:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:47:05]Read from MH i2c: E2 [16:47:05]MH_I2C_Read... [16:47:05]Read from MH i2c: E2 03 00 [16:47:05]MH_I2C_Read... [16:47:05]Read from MH i2c: E2 03 00 7E 38 00 90 00 2A [16:47:05]RAPDU: 90 00 [16:47:05]wFMCommunicate OK [16:47:05]wFMCommunicate request_size=255 [16:47:05]MH_SAM_APDU [16:47: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 35 FF 03 08 00 03 A8 0C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 58 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 52 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 9A 00 00 00 F4 03 04 00 8C A9 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 A1 E1 01 00 35 04 06 00 7E [16:47:05]Write to MH i2c: E2 02 01 7F 38 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 0C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 58 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 52 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 9A 00 00 00 F4 03 04 00 8C A9 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 A1 E1 01 00 35 04 06 00 7E 00 00 27 [16:47:05]Write i2c OK [16:47:05]MH_I2C_Read... [16:47:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:47:05]Read from MH i2c: E2 [16:47:05]MH_I2C_Read... [16:47:05]Read from MH i2c: E2 03 00 [16:47:05]MH_I2C_Read... [16:47:05]Read from MH i2c: E2 03 00 7F 38 00 90 00 2B [16:47:05]RAPDU: 90 00 [16:47:05]wFMCommunicate OK [16:47:05]wFMCommunicate request_size=10 [16:47:05]MH_SAM_APDU [16:47:05]CAPDU: 80 0D 02 02 05 F4 93 79 6F 56 [16:47:05]Write to MH i2c: E2 0D 00 80 38 80 0D 02 02 05 00 F4 93 79 6F 56 00 00 01 [16:47:05]Write i2c OK [16:47:05]MH_I2C_Read... [16:47:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:47:05]Read from MH i2c: E2 [16:47:05]MH_I2C_Read... [16:47:05]Read from MH i2c: E2 03 00 [16:47:05]MH_I2C_Read... [16:47:05]Read from MH i2c: E2 03 00 80 38 00 90 00 2C [16:47:05]RAPDU: 90 00 [16:47:05]wFMCommunicate OK [16:47:05]wFMCommunicate request_size=4 [16:47:05]MH_SAM_APDU [16:47:05]CAPDU: 80 0D 03 02 [16:47:05]Write to MH i2c: E2 08 00 81 38 80 0D 03 02 00 00 00 00 34 [16:47:05]Write i2c OK [16:47:05]MH_I2C_Read... [16:47:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:47:05]Read from MH i2c: E2 [16:47:05]MH_I2C_Read... [16:47:05]Read from MH i2c: E2 0B 00 [16:47:05]MH_I2C_Read... [16:47:05]Read from MH i2c: E2 0B 00 81 38 00 EB 29 CE 70 05 81 99 16 90 00 BC [16:47:05]RAPDU: EB 29 CE 70 05 81 99 16 90 00 [16:47:05]wFMCommunicate OK [16:47:05]SAM_PROTO_SignData done [16:47:05]FM_MakeSignedData done [16:47:05]CreateOFDProtocolMessage [16:47:05]wFMCommunicate request_size=4 [16:47:05]MH_SAM_APDU [16:47:05]CAPDU: 80 11 00 00 [16:47:05]Write to MH i2c: E2 08 00 82 38 80 11 00 00 00 00 00 00 34 [16:47:05]Write i2c OK [16:47:05]MH_I2C_Read... [16:47:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:47:05]Read from MH i2c: E2 [16:47:05]MH_I2C_Read... [16:47:05]Read from MH i2c: E2 17 00 [16:47:05]MH_I2C_Read... [16:47:05]Read from MH i2c: E2 17 00 82 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 92 [16:47:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [16:47:05]wFMCommunicate OK [16:47:05]CreateOFDProtocolMessage done [16:47:05]OFDSenderStorePacket 123297 [16:47:05]StoreOFDPacket docnum=123297 [16:47:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 64 B7 07 01 28 F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 0C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 58 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 52 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 9A 00 00 00 F4 03 04 00 8C A9 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 A1 E1 01 00 35 04 06 00 7E F4 93 79 6F 56 EB 29 CE 70 05 81 99 16 [16:47:05]CheckFolder [16:47:05]dirname=/storage/ofd_packets [16:47:05]CheckFolder done [16:47:05]ProducePacketName [16:47:05]name=ofd_packets/00123297 [16:47:05]NVStorageSaveData ofd_packets/00123297 [16:47:05]File name is /storage/ofd_packets/00123297 [16:47:05]Write 301 bytes [16:47:05]NVStorageSaveData done [16:47:05]OFDSenderStorePacket done [16:47:05]KKMCreateOFDPacket done [16:47:05]NVStorageSaveData kkm_last_timestamp [16:47:05]File name is /storage/kkm_last_timestamp [16:47:05]Write 4 bytes [16:47:05]NVStorageSaveData done [16:47:05]ExternCall_PrintAddStr [16:47:05]wPrintStart [16:47:05]Write to MH i2c: 01 00 00 83 38 BB [16:47:05]Write i2c OK [16:47:05]MH_I2C_Read... [16:47:05]Read from MH i2c: 01 [16:47:05]MH_I2C_Read... [16:47:05]Read from MH i2c: 01 07 00 [16:47:05]MH_I2C_Read... [16:47:05]Read from MH i2c: 01 07 00 83 38 00 00 00 00 00 FF 0F D0 [16:47:05]RasterBufferAndPrint [16:47:05]line Счет N : (1)1106235 [16:47:05]line ИНН: 02508201610067 [16:47:05]line Контрольно-Кассовый Чек [16:47:05]line ПРОДАЖА [16:47:05]line ТРК (МРК, ГНК) : 52 [16:47:05]line Товар: 2710124130 [16:47:05]line Аи-92-К-5 [16:47:05]line 3.240 * 61.90 [16:47:05]line = 200.56 [16:47:05]line НДС 12% НСП 1% [16:47:05]line > о реализуемом товаре [16:47:05]line ОКРУГЛЕНИЕ: -0.56 [16:47:05]line ИТОГО: 200.00 [16:47:05]line Внесено: 200.00 [16:47:05]line СДАЧА: 0.00 [16:47:05]line НСП 1% : 1.77 [16:47:05]line НДС 12% : 21.30 [16:47:05]line Наличными: 200.00 [16:47:05]line Безнал.: 0.00 [16:47:05]line Место: АЗС № 25 "Партнер Нефть" [16:47:05]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [16:47:05]line СНО: Общий режим [16:47:05]line Чек 154 03.03.2024 16:47 [16:47:05]line Смена: 323 ФФД: 1.0 [16:47:05]line ЗНМ: 0300000019 [16:47:05]line РНМ: 0000000000090573 [16:47:05]line Версия ККМ: 001 [16:47:05]line ФМ: 0000000000874798 [16:47:05]line ФД: 123297 [16:47:05]line ФПД: 139588911329110 [16:47:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T164708&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123297&fm=139588911329110&tin=02508201610067®Number=0000000000090573&sum=20000 [16:47:06]OFD Sender: Processing packet 123297 [packets to send 112, broken 111] [16:47:06]ProducePacketName [16:47:06]name=ofd_packets/00123297 [16:47:06]OFD Sender: To server: pG, [16:47:06]CommunicateWithHost lk.salyk.kg:30040 [16:47:06]ConnectInit lk.salyk.kg [16:47:06]written 0, free lines is 4095 [16:47:06]Connected sock=10 [16:47:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 64 B7 07 01 28 F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 0C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 58 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 52 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 9A 00 00 00 F4 03 04 00 8C A9 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 A1 E1 01 00 35 04 06 00 7E F4 93 79 6F 56 EB 29 CE 70 05 81 99 16 [16:47:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 BF 4B 47 00 AC 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 A1 E1 01 00 F4 03 04 00 B7 55 E4 65 B6 04 01 00 00 A5 CB 43 16 65 53 2E 2C [16:47:06]CommunicateWithHost err = 0 [16:47:06]CheckOFDResponse [16:47:06]1017 (14) - 77093643461234 [16:47:06]1041 (16) - 0000000000874798 [16:47:06]1040 (4) - 123297 [16:47:06]1012 (4) - 03.03.2024 10:49 [16:47:06]1206 (1) - 0 [16:47:06]OFD Sender: Remove packet 123297 [16:47:06]ProducePacketName [16:47:06]name=ofd_packets/00123297 [16:47:06]NVStorageDeleteData [16:47:06]Write to MH i2c: 01 00 00 AE 38 E6 [16:47:06]Write i2c OK [16:47:06]MH_I2C_Read... [16:47:06]Read from MH i2c: 01 [16:47:06]MH_I2C_Read... [16:47:06]Read from MH i2c: 01 07 00 [16:47:06]MH_I2C_Read... [16:47:06]Read from MH i2c: 01 07 00 AE 38 00 00 00 00 00 F9 0C F2 [16:47:06]RasterBufferAndPrint [16:47:06]line [16:47:06]line [16:47:06]line [16:47:06]line [16:47:06]line [16:47:06]written 0, free lines is 3330 [16:47:06]MH_Cut [16:47:06]Write to MH i2c: D1 01 00 B5 38 01 BF [16:47:06]Write i2c OK [16:47:06]MH_I2C_Read... [16:47:06]Read from MH i2c: D1 [16:47:06]MH_I2C_Read... [16:47:06]Read from MH i2c: D1 01 00 [16:47:06]MH_I2C_Read... [16:47:06]Read from MH i2c: D1 01 00 B5 38 00 BE [16:47:06]Write to MH i2c: 01 00 00 B6 38 EE [16:47:06]Write i2c OK [16:47:06]MH_I2C_Read... [16:47:06]OFD Sender: No OFD packet to send [16:47:07]*** Cut start [16:47:07]*** Purtial cut [16:47:07]*** Stage 1: CUTSNS_PIN = 1 [16:47:09]Read from MH i2c: 01 [16:47:09]MH_I2C_Read... [16:47:09]Read from MH i2c: 01 07 00 [16:47:09]MH_I2C_Read... [16:47:09]*** Stop cut motor [16:47:09]Read from MH i2c: 01 07 00 B6 38 00 00 00 00 00 FF 0F 03 [16:47:09]process_action close_receipt done [16:47:09]requested_data is exist [16:47:09]produce_requested_data [16:47:09]requested_item fm.sn is exist - process it [16:47:09]wFMCommunicate request_size=4 [16:47:09]MH_SAM_APDU [16:47:09]CAPDU: 80 11 00 00 [16:47:09]Write to MH i2c: E2 08 00 B7 38 80 11 00 00 00 00 00 00 69 [16:47:09]*** Cut end [16:47:09]Write i2c OK [16:47:09]MH_I2C_Read... [16:47:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:47:09]Read from MH i2c: E2 [16:47:09]MH_I2C_Read... [16:47:09]Read from MH i2c: E2 17 00 [16:47:09]MH_I2C_Read... [16:47:09]Read from MH i2c: E2 17 00 B7 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 C7 [16:47:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [16:47:09]wFMCommunicate OK [16:47:09]requested_item fd.num is exist - process it [16:47:09]SAM_PROTO_GetFieldsCounters [16:47:09]wFMCommunicate request_size=4 [16:47:09]MH_SAM_APDU [16:47:09]CAPDU: 80 13 00 00 [16:47:09]Write to MH i2c: E2 08 00 B8 38 80 13 00 00 00 00 00 00 6C [16:47:09]Write i2c OK [16:47:09]MH_I2C_Read... [16:47:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:47:09]Read from MH i2c: E2 [16:47:09]MH_I2C_Read... [16:47:09]Read from MH i2c: E2 62 00 [16:47:09]MH_I2C_Read... [16:47:09]Read from MH i2c: E2 62 00 B8 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 A1 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 2C [16:47: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 A1 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:47:09]wFMCommunicate OK [16:47:09]SAM_PROTO_GetFieldsCounters done [16:47:09]requested_item shift.num is exist - process it [16:47:09]requested_item shift.opened is exist - process it [16:47:09]req_shift_opened [16:47:09]FM_GetShiftState [16:47:09]SAM_PROTO_GetShiftState [16:47:09]wFMCommunicate request_size=4 [16:47:09]MH_SAM_APDU [16:47:09]CAPDU: 80 13 01 00 [16:47:09]Write to MH i2c: E2 08 00 B9 38 80 13 01 00 00 00 00 00 6E [16:47:09]Write i2c OK [16:47:09]MH_I2C_Read... [16:47:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:47:09]Read from MH i2c: E2 [16:47:09]MH_I2C_Read... [16:47:09]Read from MH i2c: E2 0E 00 [16:47:09]MH_I2C_Read... [16:47:09]Read from MH i2c: E2 0E 00 B9 38 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 30 [16:47:09]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [16:47:09]wFMCommunicate OK [16:47:09]SAM_PROTO_GetShiftState done [16:47:09]FM_GetShiftState done [16:47:09]req_shift_opened done [16:47:09]requested_item shift.open_date is exist - process it [16:47:09]req_shift_open_date [16:47:09]req_shift_open_date done [16:47:09]produce_requested_data done [16:47:09]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123297,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [16:47:09]process_action_free close_receipt [16:47:09]json_value_free [16:47:09]json_value_free done [16:47:09]process_json_proto returns [16:47:09]Send response to host [16:47:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123297,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [16:47:09]free response buf [16:47:09]execute_script done [16:47:09]execute_script returns [16:47:09]free content buf [16:47:09]Sock 9.Close socket [16:47:09]Sock 9.Thread stoped [16:47:11]OFD Sender: No OFD packet to send [16:47:16]OFD Sender: No OFD packet to send [16:47:21]OFD Sender: No OFD packet to send [16:47:26]OFD Sender: No OFD packet to send [16:47:31]OFD Sender: No OFD packet to send [16:47:36]OFD Sender: No OFD packet to send [16:47:41]OFD Sender: No OFD packet to send [16:47:46]OFD Sender: No OFD packet to send [16:47:51]OFD Sender: No OFD packet to send [16:47:56]OFD Sender: No OFD packet to send [16:48:01]OFD Sender: No OFD packet to send [16:48:06]OFD Sender: No OFD packet to send [16:48:11]OFD Sender: No OFD packet to send [16:48:16]OFD Sender: No OFD packet to send [16:48:21]OFD Sender: No OFD packet to send [16:48:26]OFD Sender: No OFD packet to send [16:48:31]OFD Sender: No OFD packet to send [16:48:36]OFD Sender: No OFD packet to send [16:48:41]OFD Sender: No OFD packet to send [16:48:47]OFD Sender: No OFD packet to send [16:48:52]OFD Sender: No OFD packet to send [16:48:57]OFD Sender: No OFD packet to send [16:49:02]OFD Sender: No OFD packet to send [16:49:07]OFD Sender: No OFD packet to send [16:49:12]OFD Sender: No OFD packet to send [16:49:17]OFD Sender: No OFD packet to send [16:49:22]OFD Sender: No OFD packet to send [16:49:27]OFD Sender: No OFD packet to send [16:49:32]OFD Sender: No OFD packet to send [16:49:37]OFD Sender: No OFD packet to send [16:49:42]OFD Sender: No OFD packet to send [16:49:47]OFD Sender: No OFD packet to send [16:49:52]OFD Sender: No OFD packet to send [16:49:57]OFD Sender: No OFD packet to send [16:50:02]OFD Sender: No OFD packet to send [16:50:07]OFD Sender: No OFD packet to send [16:50:12]OFD Sender: No OFD packet to send [16:50:12]accept exits with 7 [16:50:12]New connection [16:50:12]New thread 3067252068 created [16:50:12]Thread 3067395428 joined [16:50:12]Waiting for new connection... [16:50:12] Sock 7.Parse request [16:50:12]Sock 7.Check first char [16:50:12]Sock 7.First char is OK [16:50:12]request: POST /json_proto HTTP/1.0 [16:50:12]Method: POST [16:50:12]URL: /json_proto [16:50:12]Method is POST - this is cgi request [16:50:12]url: /json_proto [16:50:12]query_string will be loaded in cgi processing [16:50:12]execute_cgi json_proto POST (null) [16:50:12]execute_cgi path=json_proto method=POST [16:50:12]POST find Content-Length [16:50:12]Host: 172.17.48.197:8080 [16:50:12]Content-Length: 683 [16:50:12]Content-Type: application/json [16:50:12] [16:50:12]POST finish read [16:50:12]Found Content-Length = 683 [16:50:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106236", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "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:50:12]execute_script... [16:50:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106236", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "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:50:12]POST & json_proto [16:50:12]process_json_proto [16:50:12]json parsed OK: [16:50:12]protocol is kg_v1.0 [16:50:12]action value=close_receipt [16:50:12]process_action close_receipt [16:50:12]cmd_close_receipt [16:50:12]MH_GetDate [16:50:12]Write to MH i2c: F0 00 00 BA 38 E1 [16:50:12]Write i2c OK [16:50:12]MH_I2C_Read... [16:50:12]Read from MH i2c: F0 [16:50:12]MH_I2C_Read... [16:50:12]Read from MH i2c: F0 09 00 [16:50:12]MH_I2C_Read... [16:50:12]Read from MH i2c: F0 09 00 BA 38 00 48 AA E4 65 6C AF E3 65 88 [16:50:12]GetLastDocTimeStamp 1709484428 [16:50:12]current date 1709484616 [16:50:12]FM_GetShiftState [16:50:12]SAM_PROTO_GetShiftState [16:50:12]wFMCommunicate request_size=4 [16:50:12]MH_SAM_APDU [16:50:12]CAPDU: 80 13 01 00 [16:50:12]Write to MH i2c: E2 08 00 BB 38 80 13 01 00 00 00 00 00 70 [16:50:12]Write i2c OK [16:50:12]MH_I2C_Read... [16:50:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:12]Read from MH i2c: E2 [16:50:12]MH_I2C_Read... [16:50:12]Read from MH i2c: E2 0E 00 [16:50:12]MH_I2C_Read... [16:50:12]Read from MH i2c: E2 0E 00 BB 38 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 32 [16:50:12]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [16:50:12]wFMCommunicate OK [16:50:12]SAM_PROTO_GetShiftState done [16:50:12]FM_GetShiftState done [16:50:12]opened in 1709425579 [16:50:12]opened+sec_in_day 1709511979 [16:50:12]quantity*price = 100030 [16:50:12]sum+1 = 100031 [16:50:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 155 03.03.2024 16:50 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123298 ФПД: 154458522434162 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T165016&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123298&fm=154458522434162&tin=02508201610067®Number=0000000000090573&sum=100000 [16:50:13]StoreToDocumentArchive [16:50:13]shift 323 fd 123298 [16:50:13]save to /storage/0323/doc_00123298 [16:50:13]save last doc name /storage/0323/doc_00123298 to /storage/kkm_last_doc_name [16:50:13]save OK [16:50:13]Clear old archive folders... [16:50:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:50:13]tlvbuf is B6FC1B30 [16:50:13]SAM_PROTO_ClearQueue [16:50:13]wFMCommunicate request_size=4 [16:50:13]MH_SAM_APDU [16:50:13]CAPDU: 80 09 00 00 [16:50:13]Write to MH i2c: E2 08 00 C8 38 80 09 00 00 00 00 00 00 72 [16:50:13]Write i2c OK [16:50:13]MH_I2C_Read... [16:50:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:50:13]Read from MH i2c: E2 [16:50:13]MH_I2C_Read... [16:50:13]Read from MH i2c: E2 03 00 [16:50:13]MH_I2C_Read... [16:50:13]Read from MH i2c: E2 03 00 C8 38 00 90 00 74 [16:50:13]RAPDU: 90 00 [16:50:13]wFMCommunicate OK [16:50:13]SAM_PROTO_ClearQueue done [16:50:13]KKMCreateOFDPacket [16:50:13]OFDProtocolAddRootSTLVToBuf [16:50:13]FM_MakeSignedData [16:50:13]FM_MakeSignedData [16:50:13]SAM_PROTO_SignData [16:50:13]wFMCommunicate request_size=4 [16:50:13]MH_SAM_APDU [16:50:13]CAPDU: 80 0D 01 02 [16:50:13]Write to MH i2c: E2 08 00 C9 38 80 0D 01 02 00 00 00 00 7A [16:50:13]Write i2c OK [16:50:13]MH_I2C_Read... [16:50:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:50:13]Read from MH i2c: E2 [16:50:13]MH_I2C_Read... [16:50:13]Read from MH i2c: E2 03 00 [16:50:13]MH_I2C_Read... [16:50:13]Read from MH i2c: E2 03 00 C9 38 00 90 00 75 [16:50:13]RAPDU: 90 00 [16:50:13]wFMCommunicate OK [16:50:13]wFMCommunicate request_size=255 [16:50:13]MH_SAM_APDU [16:50:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 9B 00 00 00 F4 03 04 00 48 AA E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 A2 E1 01 00 35 04 06 00 8C [16:50:13]Write to MH i2c: E2 02 01 CA 38 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 9B 00 00 00 F4 03 04 00 48 AA E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 A2 E1 01 00 35 04 06 00 8C 00 00 10 [16:50:13]Write i2c OK [16:50:13]MH_I2C_Read... [16:50:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:13]Read from MH i2c: E2 [16:50:13]MH_I2C_Read... [16:50:13]Read from MH i2c: E2 03 00 [16:50:13]MH_I2C_Read... [16:50:13]Read from MH i2c: E2 03 00 CA 38 00 90 00 76 [16:50:13]RAPDU: 90 00 [16:50:13]wFMCommunicate OK [16:50:13]wFMCommunicate request_size=10 [16:50:13]MH_SAM_APDU [16:50:13]CAPDU: 80 0D 02 02 05 7A AD 5C BA 72 [16:50:13]Write to MH i2c: E2 0D 00 CB 38 80 0D 02 02 05 00 7A AD 5C BA 72 00 00 36 [16:50:13]Write i2c OK [16:50:13]MH_I2C_Read... [16:50:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:13]Read from MH i2c: E2 [16:50:13]MH_I2C_Read... [16:50:13]Read from MH i2c: E2 03 00 [16:50:13]MH_I2C_Read... [16:50:13]Read from MH i2c: E2 03 00 CB 38 00 90 00 77 [16:50:13]RAPDU: 90 00 [16:50:13]wFMCommunicate OK [16:50:13]wFMCommunicate request_size=4 [16:50:13]MH_SAM_APDU [16:50:13]CAPDU: 80 0D 03 02 [16:50:13]Write to MH i2c: E2 08 00 CC 38 80 0D 03 02 00 00 00 00 7F [16:50:13]Write i2c OK [16:50:13]MH_I2C_Read... [16:50:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:50:13]Read from MH i2c: E2 [16:50:13]MH_I2C_Read... [16:50:13]Read from MH i2c: E2 0B 00 [16:50:13]MH_I2C_Read... [16:50:13]Read from MH i2c: E2 0B 00 CC 38 00 33 B7 07 9B CD 86 A3 57 90 00 59 [16:50:13]RAPDU: 33 B7 07 9B CD 86 A3 57 90 00 [16:50:13]wFMCommunicate OK [16:50:13]SAM_PROTO_SignData done [16:50:13]FM_MakeSignedData done [16:50:13]CreateOFDProtocolMessage [16:50:13]wFMCommunicate request_size=4 [16:50:13]MH_SAM_APDU [16:50:13]CAPDU: 80 11 00 00 [16:50:13]Write to MH i2c: E2 08 00 CD 38 80 11 00 00 00 00 00 00 7F [16:50:13]Write i2c OK [16:50:13]MH_I2C_Read... [16:50:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:50:13]Read from MH i2c: E2 [16:50:13]MH_I2C_Read... [16:50:13]Read from MH i2c: E2 17 00 [16:50:13]MH_I2C_Read... [16:50:13]Read from MH i2c: E2 17 00 CD 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 DD [16:50:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [16:50:13]wFMCommunicate OK [16:50:13]CreateOFDProtocolMessage done [16:50:13]OFDSenderStorePacket 123298 [16:50:13]StoreOFDPacket docnum=123298 [16:50:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 B1 1A 07 01 62 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 9B 00 00 00 F4 03 04 00 48 AA E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 A2 E1 01 00 35 04 06 00 8C 7A AD 5C BA 72 33 B7 07 9B CD 86 A3 57 [16:50:13]CheckFolder [16:50:13]dirname=/storage/ofd_packets [16:50:13]CheckFolder done [16:50:13]ProducePacketName [16:50:13]name=ofd_packets/00123298 [16:50:13]NVStorageSaveData ofd_packets/00123298 [16:50:13]File name is /storage/ofd_packets/00123298 [16:50:13]Write 301 bytes [16:50:13]NVStorageSaveData done [16:50:13]OFDSenderStorePacket done [16:50:13]KKMCreateOFDPacket done [16:50:13]NVStorageSaveData kkm_last_timestamp [16:50:13]File name is /storage/kkm_last_timestamp [16:50:13]Write 4 bytes [16:50:13]NVStorageSaveData done [16:50:13]ExternCall_PrintAddStr [16:50:13]wPrintStart [16:50:13]Write to MH i2c: 01 00 00 CE 38 06 [16:50:13]Write i2c OK [16:50:13]MH_I2C_Read... [16:50:13]Read from MH i2c: 01 [16:50:13]MH_I2C_Read... [16:50:13]Read from MH i2c: 01 07 00 [16:50:13]MH_I2C_Read... [16:50:13]Read from MH i2c: 01 07 00 CE 38 00 00 00 00 00 FF 0F 1B [16:50:13]RasterBufferAndPrint [16:50:13]line Счет N : (1)1106236 [16:50:13]line ИНН: 02508201610067 [16:50:13]line Контрольно-Кассовый Чек [16:50:13]line ПРОДАЖА [16:50:13]line ТРК (МРК, ГНК) : 21 [16:50:13]line Товар: 2710124130 [16:50:13]line Аи-92-К-5 [16:50:13]line 16.160 * 61.90 [16:50:13]line = 1000.30 [16:50:13]line НДС 12% НСП 1% [16:50:13]line > о реализуемом товаре [16:50:13]line ОКРУГЛЕНИЕ: -0.30 [16:50:13]line ИТОГО: 1000.00 [16:50:13]line Внесено: 1000.00 [16:50:13]line СДАЧА: 0.00 [16:50:13]line НСП 1% : 8.85 [16:50:13]line НДС 12% : 106.23 [16:50:13]line Наличными: 1000.00 [16:50:13]line Безнал.: 0.00 [16:50:13]line Место: АЗС № 25 "Партнер Нефть" [16:50:13]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [16:50:13]line СНО: Общий режим [16:50:13]line Чек 155 03.03.2024 16:50 [16:50:13]line Смена: 323 ФФД: 1.0 [16:50:13]line ЗНМ: 0300000019 [16:50:13]line РНМ: 0000000000090573 [16:50:13]line Версия ККМ: 001 [16:50:13]line ФМ: 0000000000874798 [16:50:13]line ФД: 123298 [16:50:13]line ФПД: 154458522434162 [16:50:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T165016&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123298&fm=154458522434162&tin=02508201610067®Number=0000000000090573&sum=100000 [16:50:14]OFD Sender: Processing packet 123298 [packets to send 112, broken 111] [16:50:14]ProducePacketName [16:50:14]name=ofd_packets/00123298 [16:50:14]OFD Sender: To server: pG, [16:50:14]CommunicateWithHost lk.salyk.kg:30040 [16:50:14]ConnectInit lk.salyk.kg [16:50:14]written 0, free lines is 4095 [16:50:14]Connected sock=10 [16:50: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 37 39 38 0F 01 00 00 B1 1A 07 01 62 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 9B 00 00 00 F4 03 04 00 48 AA E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 A2 E1 01 00 35 04 06 00 8C 7A AD 5C BA 72 33 B7 07 9B CD 86 A3 57 [16:50:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 27 D0 47 00 EB 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 37 39 38 10 04 04 00 A2 E1 01 00 F4 03 04 00 73 56 E4 65 B6 04 01 00 00 E9 F9 9A E9 6C 9C CB F5 [16:50:14]CommunicateWithHost err = 0 [16:50:14]CheckOFDResponse [16:50:14]1017 (14) - 77093643461234 [16:50:14]1041 (16) - 0000000000874798 [16:50:14]1040 (4) - 123298 [16:50:14]1012 (4) - 03.03.2024 10:52 [16:50:14]1206 (1) - 0 [16:50:14]OFD Sender: Remove packet 123298 [16:50:14]ProducePacketName [16:50:14]name=ofd_packets/00123298 [16:50:14]NVStorageDeleteData [16:50:14]Write to MH i2c: 01 00 00 F9 38 31 [16:50:14]Write i2c OK [16:50:14]MH_I2C_Read... [16:50:14]Read from MH i2c: 01 [16:50:14]MH_I2C_Read... [16:50:14]Read from MH i2c: 01 07 00 [16:50:14]MH_I2C_Read... [16:50:14]Read from MH i2c: 01 07 00 F9 38 00 00 00 00 00 08 0D 4D [16:50:14]RasterBufferAndPrint [16:50:14]line [16:50:14]line [16:50:14]line [16:50:14]line [16:50:14]line [16:50:14]written 0, free lines is 3345 [16:50:14]MH_Cut [16:50:14]Write to MH i2c: D1 01 00 00 39 01 0B [16:50:14]Write i2c OK [16:50:14]MH_I2C_Read... [16:50:14]Read from MH i2c: D1 [16:50:14]MH_I2C_Read... [16:50:14]Read from MH i2c: D1 01 00 [16:50:14]MH_I2C_Read... [16:50:14]Read from MH i2c: D1 01 00 00 39 00 0A [16:50:14]Write to MH i2c: 01 00 00 01 39 3A [16:50:14]Write i2c OK [16:50:14]MH_I2C_Read... [16:50:15]OFD Sender: No OFD packet to send [16:50:15]*** Cut start [16:50:15]*** Purtial cut [16:50:15]*** Stage 1: CUTSNS_PIN = 1 [16:50:17]Read from MH i2c: 01 [16:50:17]MH_I2C_Read... [16:50:17]*** Stop cut motor [16:50:17]*** Cut end [16:50:17]Read from MH i2c: 01 07 00 [16:50:17]MH_I2C_Read... [16:50:17]Read from MH i2c: 01 07 00 01 39 00 00 00 00 00 FF 0F 4F [16:50:17]process_action close_receipt done [16:50:17]requested_data is exist [16:50:17]produce_requested_data [16:50:17]requested_item fm.sn is exist - process it [16:50:17]wFMCommunicate request_size=4 [16:50:17]MH_SAM_APDU [16:50:17]CAPDU: 80 11 00 00 [16:50:17]Write to MH i2c: E2 08 00 02 39 80 11 00 00 00 00 00 00 B5 [16:50:17]Write i2c OK [16:50:17]MH_I2C_Read... [16:50:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:50:17]Read from MH i2c: E2 [16:50:17]MH_I2C_Read... [16:50:17]Read from MH i2c: E2 17 00 [16:50:17]MH_I2C_Read... [16:50:17]Read from MH i2c: E2 17 00 02 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 13 [16:50:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [16:50:17]wFMCommunicate OK [16:50:17]requested_item fd.num is exist - process it [16:50:17]SAM_PROTO_GetFieldsCounters [16:50:17]wFMCommunicate request_size=4 [16:50:17]MH_SAM_APDU [16:50:17]CAPDU: 80 13 00 00 [16:50:17]Write to MH i2c: E2 08 00 03 39 80 13 00 00 00 00 00 00 B8 [16:50:17]Write i2c OK [16:50:17]MH_I2C_Read... [16:50:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:50:17]Read from MH i2c: E2 [16:50:17]MH_I2C_Read... [16:50:17]Read from MH i2c: E2 62 00 [16:50:17]MH_I2C_Read... [16:50:17]Read from MH i2c: E2 62 00 03 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 A2 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 7C [16:50: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 A2 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:50:17]wFMCommunicate OK [16:50:17]SAM_PROTO_GetFieldsCounters done [16:50:17]requested_item shift.num is exist - process it [16:50:17]requested_item shift.opened is exist - process it [16:50:17]req_shift_opened [16:50:17]FM_GetShiftState [16:50:17]SAM_PROTO_GetShiftState [16:50:17]wFMCommunicate request_size=4 [16:50:17]MH_SAM_APDU [16:50:17]CAPDU: 80 13 01 00 [16:50:17]Write to MH i2c: E2 08 00 04 39 80 13 01 00 00 00 00 00 BA [16:50:17]Write i2c OK [16:50:17]MH_I2C_Read... [16:50:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:17]Read from MH i2c: E2 [16:50:17]MH_I2C_Read... [16:50:17]Read from MH i2c: E2 0E 00 [16:50:17]MH_I2C_Read... [16:50:17]Read from MH i2c: E2 0E 00 04 39 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 7C [16:50:17]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [16:50:17]wFMCommunicate OK [16:50:17]SAM_PROTO_GetShiftState done [16:50:17]FM_GetShiftState done [16:50:17]req_shift_opened done [16:50:17]requested_item shift.open_date is exist - process it [16:50:17]req_shift_open_date [16:50:17]req_shift_open_date done [16:50:17]produce_requested_data done [16:50:17]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123298,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [16:50:17]process_action_free close_receipt [16:50:17]json_value_free [16:50:17]json_value_free done [16:50:17]process_json_proto returns [16:50:17]Send response to host [16:50:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123298,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [16:50:17]free response buf [16:50:17]execute_script done [16:50:17]execute_script returns [16:50:17]free content buf [16:50:17]Sock 7.Close socket [16:50:17]Sock 7.Thread stoped [16:50:20]OFD Sender: No OFD packet to send [16:50:25]OFD Sender: No OFD packet to send [16:50:30]OFD Sender: No OFD packet to send [16:50:35]OFD Sender: No OFD packet to send [16:50:40]OFD Sender: No OFD packet to send [16:50:45]OFD Sender: No OFD packet to send [16:50:50]OFD Sender: No OFD packet to send [16:50:55]OFD Sender: No OFD packet to send [16:51:00]OFD Sender: No OFD packet to send [16:51:05]OFD Sender: No OFD packet to send [16:51:10]OFD Sender: No OFD packet to send [16:51:15]OFD Sender: No OFD packet to send [16:51:20]OFD Sender: No OFD packet to send [16:51:25]OFD Sender: No OFD packet to send [16:51:30]OFD Sender: No OFD packet to send [16:51:35]OFD Sender: No OFD packet to send [16:51:40]OFD Sender: No OFD packet to send [16:51:45]OFD Sender: No OFD packet to send [16:51:50]OFD Sender: No OFD packet to send [16:51:55]OFD Sender: No OFD packet to send [16:52:00]OFD Sender: No OFD packet to send [16:52:05]OFD Sender: No OFD packet to send [16:52:10]OFD Sender: No OFD packet to send [16:52:15]OFD Sender: No OFD packet to send [16:52:20]OFD Sender: No OFD packet to send [16:52:25]OFD Sender: No OFD packet to send [16:52:30]OFD Sender: No OFD packet to send [16:52:35]OFD Sender: No OFD packet to send [16:52:40]OFD Sender: No OFD packet to send [16:52:45]OFD Sender: No OFD packet to send [16:52:50]OFD Sender: No OFD packet to send [16:52:55]OFD Sender: No OFD packet to send [16:53:00]OFD Sender: No OFD packet to send [16:53:05]OFD Sender: No OFD packet to send [16:53:10]OFD Sender: No OFD packet to send [16:53:15]OFD Sender: No OFD packet to send [16:53:20]OFD Sender: No OFD packet to send [16:53:25]OFD Sender: No OFD packet to send [16:53:30]OFD Sender: No OFD packet to send [16:53:35]OFD Sender: No OFD packet to send [16:53:40]OFD Sender: No OFD packet to send [16:53:45]OFD Sender: No OFD packet to send [16:53:50]OFD Sender: No OFD packet to send [16:53:55]OFD Sender: No OFD packet to send [16:54:00]OFD Sender: No OFD packet to send [16:54:05]OFD Sender: No OFD packet to send [16:54:10]OFD Sender: No OFD packet to send [16:54:15]OFD Sender: No OFD packet to send [16:54:20]OFD Sender: No OFD packet to send [16:54:25]OFD Sender: No OFD packet to send [16:54:30]OFD Sender: No OFD packet to send [16:54:35]OFD Sender: No OFD packet to send [16:54:40]OFD Sender: No OFD packet to send [16:54:45]OFD Sender: No OFD packet to send [16:54:50]OFD Sender: No OFD packet to send [16:54:55]OFD Sender: No OFD packet to send [16:55:00]OFD Sender: No OFD packet to send [16:55:05]OFD Sender: No OFD packet to send [16:55:05]accept exits with 9 [16:55:05]New connection [16:55:05]New thread 3067395428 created [16:55:05]Thread 3067252068 joined [16:55:05]Waiting for new connection... [16:55:05] Sock 9.Parse request [16:55:05]Sock 9.Check first char [16:55:05]Sock 9.First char is OK [16:55:05]request: POST /json_proto HTTP/1.0 [16:55:05]Method: POST [16:55:05]URL: /json_proto [16:55:05]Method is POST - this is cgi request [16:55:05]url: /json_proto [16:55:05]query_string will be loaded in cgi processing [16:55:05]execute_cgi json_proto POST (null) [16:55:05]execute_cgi path=json_proto method=POST [16:55:05]POST find Content-Length [16:55:05]Host: 172.17.48.197:8080 [16:55:05]Content-Length: 678 [16:55:05]Content-Type: application/json [16:55:05] [16:55:05]POST finish read [16:55:05]Found Content-Length = 678 [16:55:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106237", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 4.850, "sum" : 300.22, "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" ] } } [16:55:05]execute_script... [16:55:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106237", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 4.850, "sum" : 300.22, "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" ] } } [16:55:05]POST & json_proto [16:55:05]process_json_proto [16:55:05]json parsed OK: [16:55:05]protocol is kg_v1.0 [16:55:05]action value=close_receipt [16:55:05]process_action close_receipt [16:55:05]cmd_close_receipt [16:55:05]MH_GetDate [16:55:05]Write to MH i2c: F0 00 00 05 39 2D [16:55:05]Write i2c OK [16:55:05]MH_I2C_Read... [16:55:05]Read from MH i2c: F0 [16:55:05]MH_I2C_Read... [16:55:05]Read from MH i2c: F0 09 00 [16:55:05]MH_I2C_Read... [16:55:05]Read from MH i2c: F0 09 00 05 39 00 6D AB E4 65 6C AF E3 65 FA [16:55:05]GetLastDocTimeStamp 1709484616 [16:55:05]current date 1709484909 [16:55:05]FM_GetShiftState [16:55:05]SAM_PROTO_GetShiftState [16:55:05]wFMCommunicate request_size=4 [16:55:05]MH_SAM_APDU [16:55:05]CAPDU: 80 13 01 00 [16:55:05]Write to MH i2c: E2 08 00 06 39 80 13 01 00 00 00 00 00 BC [16:55:05]Write i2c OK [16:55:05]MH_I2C_Read... [16:55:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:55:05]Read from MH i2c: E2 [16:55:05]MH_I2C_Read... [16:55:05]Read from MH i2c: E2 0E 00 [16:55:05]MH_I2C_Read... [16:55:05]Read from MH i2c: E2 0E 00 06 39 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 7E [16:55:05]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [16:55:05]wFMCommunicate OK [16:55:05]SAM_PROTO_GetShiftState done [16:55:05]FM_GetShiftState done [16:55:05]opened in 1709425579 [16:55:05]opened+sec_in_day 1709511979 [16:55:05]quantity*price = 30021 [16:55:05]sum+1 = 30023 [16:55:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.88 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 156 03.03.2024 16:55 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123299 ФПД: 201126332441012 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T165509&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123299&fm=201126332441012&tin=02508201610067®Number=0000000000090573&sum=30000 [16:55:06]StoreToDocumentArchive [16:55:06]shift 323 fd 123299 [16:55:06]save to /storage/0323/doc_00123299 [16:55:06]save last doc name /storage/0323/doc_00123299 to /storage/kkm_last_doc_name [16:55:06]save OK [16:55:06]Clear old archive folders... [16:55:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:55:06]tlvbuf is 00E2A080 [16:55:06]SAM_PROTO_ClearQueue [16:55:06]wFMCommunicate request_size=4 [16:55:06]MH_SAM_APDU [16:55:06]CAPDU: 80 09 00 00 [16:55:06]Write to MH i2c: E2 08 00 13 39 80 09 00 00 00 00 00 00 BE [16:55:06]Write i2c OK [16:55:06]MH_I2C_Read... [16:55:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:55:06]Read from MH i2c: E2 [16:55:06]MH_I2C_Read... [16:55:06]Read from MH i2c: E2 03 00 [16:55:06]MH_I2C_Read... [16:55:06]Read from MH i2c: E2 03 00 13 39 00 90 00 C0 [16:55:06]RAPDU: 90 00 [16:55:06]wFMCommunicate OK [16:55:06]SAM_PROTO_ClearQueue done [16:55:06]KKMCreateOFDPacket [16:55:06]OFDProtocolAddRootSTLVToBuf [16:55:06]FM_MakeSignedData [16:55:06]FM_MakeSignedData [16:55:06]SAM_PROTO_SignData [16:55:06]wFMCommunicate request_size=4 [16:55:06]MH_SAM_APDU [16:55:06]CAPDU: 80 0D 01 02 [16:55:06]Write to MH i2c: E2 08 00 14 39 80 0D 01 02 00 00 00 00 C6 [16:55:06]Write i2c OK [16:55:06]MH_I2C_Read... [16:55:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:55:07]Read from MH i2c: E2 [16:55:07]MH_I2C_Read... [16:55:07]Read from MH i2c: E2 03 00 [16:55:07]MH_I2C_Read... [16:55:07]Read from MH i2c: E2 03 00 14 39 00 90 00 C1 [16:55:07]RAPDU: 90 00 [16:55:07]wFMCommunicate OK [16:55:07]wFMCommunicate request_size=255 [16:55:07]MH_SAM_APDU [16:55:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 12 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 46 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 74 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 9C 00 00 00 F4 03 04 00 6D AB E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 A3 E1 01 00 35 04 06 00 B6 [16:55:07]Write to MH i2c: E2 02 01 15 39 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 12 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 46 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 74 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 9C 00 00 00 F4 03 04 00 6D AB E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 A3 E1 01 00 35 04 06 00 B6 00 00 30 [16:55:07]Write i2c OK [16:55:07]MH_I2C_Read... [16:55:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:07]Read from MH i2c: E2 [16:55:07]MH_I2C_Read... [16:55:07]Read from MH i2c: E2 03 00 [16:55:07]MH_I2C_Read... [16:55:07]Read from MH i2c: E2 03 00 15 39 00 90 00 C2 [16:55:07]RAPDU: 90 00 [16:55:07]wFMCommunicate OK [16:55:07]wFMCommunicate request_size=10 [16:55:07]MH_SAM_APDU [16:55:07]CAPDU: 80 0D 02 02 05 EC 5F 99 A1 B4 [16:55:07]Write to MH i2c: E2 0D 00 16 39 80 0D 02 02 05 00 EC 5F 99 A1 B4 00 00 0C [16:55:07]Write i2c OK [16:55:07]MH_I2C_Read... [16:55:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:07]Read from MH i2c: E2 [16:55:07]MH_I2C_Read... [16:55:07]Read from MH i2c: E2 03 00 [16:55:07]MH_I2C_Read... [16:55:07]Read from MH i2c: E2 03 00 16 39 00 90 00 C3 [16:55:07]RAPDU: 90 00 [16:55:07]wFMCommunicate OK [16:55:07]wFMCommunicate request_size=4 [16:55:07]MH_SAM_APDU [16:55:07]CAPDU: 80 0D 03 02 [16:55:07]Write to MH i2c: E2 08 00 17 39 80 0D 03 02 00 00 00 00 CB [16:55:07]Write i2c OK [16:55:07]MH_I2C_Read... [16:55:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:55:07]Read from MH i2c: E2 [16:55:07]MH_I2C_Read... [16:55:07]Read from MH i2c: E2 0B 00 [16:55:07]MH_I2C_Read... [16:55:07]Read from MH i2c: E2 0B 00 17 39 00 B3 C7 C2 CD E2 81 02 11 90 00 4B [16:55:07]RAPDU: B3 C7 C2 CD E2 81 02 11 90 00 [16:55:07]wFMCommunicate OK [16:55:07]SAM_PROTO_SignData done [16:55:07]FM_MakeSignedData done [16:55:07]CreateOFDProtocolMessage [16:55:07]wFMCommunicate request_size=4 [16:55:07]MH_SAM_APDU [16:55:07]CAPDU: 80 11 00 00 [16:55:07]Write to MH i2c: E2 08 00 18 39 80 11 00 00 00 00 00 00 CB [16:55:07]Write i2c OK [16:55:07]MH_I2C_Read... [16:55:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:07]Read from MH i2c: E2 [16:55:07]MH_I2C_Read... [16:55:07]Read from MH i2c: E2 17 00 [16:55:07]MH_I2C_Read... [16:55:07]Read from MH i2c: E2 17 00 18 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 29 [16:55:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [16:55:07]wFMCommunicate OK [16:55:07]CreateOFDProtocolMessage done [16:55:07]OFDSenderStorePacket 123299 [16:55:07]StoreOFDPacket docnum=123299 [16:55:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 15 56 07 01 97 78 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 12 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 46 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 74 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 9C 00 00 00 F4 03 04 00 6D AB E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 A3 E1 01 00 35 04 06 00 B6 EC 5F 99 A1 B4 B3 C7 C2 CD E2 81 02 11 [16:55:07]CheckFolder [16:55:07]dirname=/storage/ofd_packets [16:55:07]CheckFolder done [16:55:07]ProducePacketName [16:55:07]name=ofd_packets/00123299 [16:55:07]NVStorageSaveData ofd_packets/00123299 [16:55:07]File name is /storage/ofd_packets/00123299 [16:55:07]Write 301 bytes [16:55:07]NVStorageSaveData done [16:55:07]OFDSenderStorePacket done [16:55:07]KKMCreateOFDPacket done [16:55:07]NVStorageSaveData kkm_last_timestamp [16:55:07]File name is /storage/kkm_last_timestamp [16:55:07]Write 4 bytes [16:55:07]NVStorageSaveData done [16:55:07]ExternCall_PrintAddStr [16:55:07]wPrintStart [16:55:07]Write to MH i2c: 01 00 00 19 39 52 [16:55:07]Write i2c OK [16:55:07]MH_I2C_Read... [16:55:07]Read from MH i2c: 01 [16:55:07]MH_I2C_Read... [16:55:07]Read from MH i2c: 01 07 00 [16:55:07]MH_I2C_Read... [16:55:07]Read from MH i2c: 01 07 00 19 39 00 00 00 00 00 FF 0F 67 [16:55:07]RasterBufferAndPrint [16:55:07]line Счет N : (1)1106237 [16:55:07]line ИНН: 02508201610067 [16:55:07]line Контрольно-Кассовый Чек [16:55:07]line ПРОДАЖА [16:55:07]line ТРК (МРК, ГНК) : 62 [16:55:07]line Товар: 2710124130 [16:55:07]line Аи-92-К-5 [16:55:07]line 4.850 * 61.90 [16:55:07]line = 300.22 [16:55:07]line НДС 12% НСП 1% [16:55:07]line > о реализуемом товаре [16:55:07]line ОКРУГЛЕНИЕ: -0.22 [16:55:07]line ИТОГО: 300.00 [16:55:07]line Внесено: 300.00 [16:55:07]line СДАЧА: 0.00 [16:55:07]line НСП 1% : 2.66 [16:55:07]line НДС 12% : 31.88 [16:55:07]line Наличными: 300.00 [16:55:07]line Безнал.: 0.00 [16:55:07]line Место: АЗС № 25 "Партнер Нефть" [16:55:07]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [16:55:07]line СНО: Общий режим [16:55:07]line Чек 156 03.03.2024 16:55 [16:55:07]line Смена: 323 ФФД: 1.0 [16:55:07]line ЗНМ: 0300000019 [16:55:07]line РНМ: 0000000000090573 [16:55:07]line Версия ККМ: 001 [16:55:07]line ФМ: 0000000000874798 [16:55:07]line ФД: 123299 [16:55:07]line ФПД: 201126332441012 [16:55:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T165509&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123299&fm=201126332441012&tin=02508201610067®Number=0000000000090573&sum=30000 [16:55:07]OFD Sender: Processing packet 123299 [packets to send 112, broken 111] [16:55:07]ProducePacketName [16:55:07]name=ofd_packets/00123299 [16:55:07]OFD Sender: To server: pG, [16:55:07]CommunicateWithHost lk.salyk.kg:30040 [16:55:07]ConnectInit lk.salyk.kg [16:55:07]written 0, free lines is 4095 [16:55:07]Connected sock=10 [16:55: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 37 39 38 0F 01 00 00 15 56 07 01 97 78 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 12 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 46 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 74 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 9C 00 00 00 F4 03 04 00 6D AB E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 A3 E1 01 00 35 04 06 00 B6 EC 5F 99 A1 B4 B3 C7 C2 CD E2 81 02 11 [16:55:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 63 F2 47 00 D9 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 A3 E1 01 00 F4 03 04 00 99 57 E4 65 B6 04 01 00 00 DC 4E A6 05 05 DC DA DF [16:55:08]CommunicateWithHost err = 0 [16:55:08]CheckOFDResponse [16:55:08]1017 (14) - 77093643461234 [16:55:08]1041 (16) - 0000000000874798 [16:55:08]1040 (4) - 123299 [16:55:08]1012 (4) - 03.03.2024 10:57 [16:55:08]1206 (1) - 0 [16:55:08]OFD Sender: Remove packet 123299 [16:55:08]ProducePacketName [16:55:08]name=ofd_packets/00123299 [16:55:08]NVStorageDeleteData [16:55:08]Write to MH i2c: 01 00 00 44 39 7D [16:55:08]Write i2c OK [16:55:08]MH_I2C_Read... [16:55:08]Read from MH i2c: 01 [16:55:08]MH_I2C_Read... [16:55:08]Read from MH i2c: 01 07 00 [16:55:08]MH_I2C_Read... [16:55:08]Read from MH i2c: 01 07 00 44 39 00 00 00 00 00 F8 0C 88 [16:55:08]RasterBufferAndPrint [16:55:08]line [16:55:08]line [16:55:08]line [16:55:08]line [16:55:08]line [16:55:08]written 0, free lines is 3329 [16:55:08]MH_Cut [16:55:08]Write to MH i2c: D1 01 00 4B 39 01 56 [16:55:08]Write i2c OK [16:55:08]MH_I2C_Read... [16:55:08]Read from MH i2c: D1 [16:55:08]MH_I2C_Read... [16:55:08]Read from MH i2c: D1 01 00 [16:55:08]MH_I2C_Read... [16:55:08]Read from MH i2c: D1 01 00 4B 39 00 55 [16:55:08]Write to MH i2c: 01 00 00 4C 39 85 [16:55:08]Write i2c OK [16:55:08]MH_I2C_Read... [16:55:08]OFD Sender: No OFD packet to send [16:55:08]*** Cut start [16:55:08]*** Purtial cut [16:55:08]*** Stage 1: CUTSNS_PIN = 1 [16:55:10]Read from MH i2c: 01 [16:55:10]MH_I2C_Read... [16:55:10]*** Stop cut motor [16:55:10]*** Cut end [16:55:10]Read from MH i2c: 01 07 00 [16:55:10]MH_I2C_Read... [16:55:10]Read from MH i2c: 01 07 00 4C 39 00 00 00 00 00 FF 0F 9A [16:55:10]process_action close_receipt done [16:55:10]requested_data is exist [16:55:10]produce_requested_data [16:55:10]requested_item fm.sn is exist - process it [16:55:10]wFMCommunicate request_size=4 [16:55:10]MH_SAM_APDU [16:55:10]CAPDU: 80 11 00 00 [16:55:10]Write to MH i2c: E2 08 00 4D 39 80 11 00 00 00 00 00 00 00 [16:55:10]Write i2c OK [16:55:10]MH_I2C_Read... [16:55:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:11]Read from MH i2c: E2 [16:55:11]MH_I2C_Read... [16:55:11]Read from MH i2c: E2 17 00 [16:55:11]MH_I2C_Read... [16:55:11]Read from MH i2c: E2 17 00 4D 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 5E [16:55:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [16:55:11]wFMCommunicate OK [16:55:11]requested_item fd.num is exist - process it [16:55:11]SAM_PROTO_GetFieldsCounters [16:55:11]wFMCommunicate request_size=4 [16:55:11]MH_SAM_APDU [16:55:11]CAPDU: 80 13 00 00 [16:55:11]Write to MH i2c: E2 08 00 4E 39 80 13 00 00 00 00 00 00 03 [16:55:11]Write i2c OK [16:55:11]MH_I2C_Read... [16:55:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:55:11]Read from MH i2c: E2 [16:55:11]MH_I2C_Read... [16:55:11]Read from MH i2c: E2 62 00 [16:55:11]MH_I2C_Read... [16:55:11]Read from MH i2c: E2 62 00 4E 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 A3 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 CB [16:55: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 A3 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:55:11]wFMCommunicate OK [16:55:11]SAM_PROTO_GetFieldsCounters done [16:55:11]requested_item shift.num is exist - process it [16:55:11]requested_item shift.opened is exist - process it [16:55:11]req_shift_opened [16:55:11]FM_GetShiftState [16:55:11]SAM_PROTO_GetShiftState [16:55:11]wFMCommunicate request_size=4 [16:55:11]MH_SAM_APDU [16:55:11]CAPDU: 80 13 01 00 [16:55:11]Write to MH i2c: E2 08 00 4F 39 80 13 01 00 00 00 00 00 05 [16:55:11]Write i2c OK [16:55:11]MH_I2C_Read... [16:55:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:55:11]Read from MH i2c: E2 [16:55:11]MH_I2C_Read... [16:55:11]Read from MH i2c: E2 0E 00 [16:55:11]MH_I2C_Read... [16:55:11]Read from MH i2c: E2 0E 00 4F 39 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 C7 [16:55:11]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [16:55:11]wFMCommunicate OK [16:55:11]SAM_PROTO_GetShiftState done [16:55:11]FM_GetShiftState done [16:55:11]req_shift_opened done [16:55:11]requested_item shift.open_date is exist - process it [16:55:11]req_shift_open_date [16:55:11]req_shift_open_date done [16:55:11]produce_requested_data done [16:55:11]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123299,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [16:55:11]process_action_free close_receipt [16:55:11]json_value_free [16:55:11]json_value_free done [16:55:11]process_json_proto returns [16:55:11]Send response to host [16:55:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123299,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [16:55:11]free response buf [16:55:11]execute_script done [16:55:11]execute_script returns [16:55:11]free content buf [16:55:11]Sock 9.Close socket [16:55:11]Sock 9.Thread stoped [16:55:13]OFD Sender: No OFD packet to send [16:55:18]OFD Sender: No OFD packet to send [16:55:23]OFD Sender: No OFD packet to send [16:55:28]OFD Sender: No OFD packet to send [16:55:33]OFD Sender: No OFD packet to send [16:55:38]OFD Sender: No OFD packet to send [16:55:43]OFD Sender: No OFD packet to send [16:55:48]OFD Sender: No OFD packet to send [16:55:53]OFD Sender: No OFD packet to send [16:55:58]OFD Sender: No OFD packet to send [16:56:03]OFD Sender: No OFD packet to send [16:56:08]OFD Sender: No OFD packet to send [16:56:13]OFD Sender: No OFD packet to send [16:56:18]OFD Sender: No OFD packet to send [16:56:23]OFD Sender: No OFD packet to send [16:56:28]OFD Sender: No OFD packet to send [16:56:33]OFD Sender: No OFD packet to send [16:56:38]OFD Sender: No OFD packet to send [16:56:43]OFD Sender: No OFD packet to send [16:56:48]OFD Sender: No OFD packet to send [16:56:53]OFD Sender: No OFD packet to send [16:56:58]OFD Sender: No OFD packet to send [16:57:03]OFD Sender: No OFD packet to send [16:57:08]OFD Sender: No OFD packet to send [16:57:13]OFD Sender: No OFD packet to send [16:57:18]OFD Sender: No OFD packet to send [16:57:23]OFD Sender: No OFD packet to send [16:57:28]OFD Sender: No OFD packet to send [16:57:33]OFD Sender: No OFD packet to send [16:57:38]OFD Sender: No OFD packet to send [16:57:43]OFD Sender: No OFD packet to send [16:57:48]OFD Sender: No OFD packet to send [16:57:53]OFD Sender: No OFD packet to send [16:57:58]OFD Sender: No OFD packet to send [16:58:01]accept exits with 7 [16:58:01]New connection [16:58:01]New thread 3067252068 created [16:58:01]Thread 3067395428 joined [16:58:01]Waiting for new connection... [16:58:01] Sock 7.Parse request [16:58:01]Sock 7.Check first char [16:58:01]Sock 7.First char is OK [16:58:01]request: POST /json_proto HTTP/1.0 [16:58:01]Method: POST [16:58:01]URL: /json_proto [16:58:01]Method is POST - this is cgi request [16:58:01]url: /json_proto [16:58:01]query_string will be loaded in cgi processing [16:58:01]execute_cgi json_proto POST (null) [16:58:01]execute_cgi path=json_proto method=POST [16:58:01]POST find Content-Length [16:58:01]Host: 172.17.48.197:8080 [16:58:01]Content-Length: 641 [16:58:01]Content-Type: application/json [16:58:01] [16:58:01]POST finish read [16:58:01]Found Content-Length = 641 [16:58:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106238", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 10.000, "sum" : 619.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 619.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:58:01]execute_script... [16:58: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)1106238", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 10.000, "sum" : 619.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 619.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:58:01]POST & json_proto [16:58:01]process_json_proto [16:58:01]json parsed OK: [16:58:01]protocol is kg_v1.0 [16:58:01]action value=close_receipt [16:58:01]process_action close_receipt [16:58:01]cmd_close_receipt [16:58:01]MH_GetDate [16:58:01]Write to MH i2c: F0 00 00 50 39 78 [16:58:01]Write i2c OK [16:58:01]MH_I2C_Read... [16:58:01]Read from MH i2c: F0 [16:58:01]MH_I2C_Read... [16:58:01]Read from MH i2c: F0 09 00 [16:58:01]MH_I2C_Read... [16:58:01]Read from MH i2c: F0 09 00 50 39 00 1D AC E4 65 6C AF E3 65 F6 [16:58:01]GetLastDocTimeStamp 1709484909 [16:58:01]current date 1709485085 [16:58:01]FM_GetShiftState [16:58:01]SAM_PROTO_GetShiftState [16:58:01]wFMCommunicate request_size=4 [16:58:01]MH_SAM_APDU [16:58:01]CAPDU: 80 13 01 00 [16:58:01]Write to MH i2c: E2 08 00 51 39 80 13 01 00 00 00 00 00 07 [16:58:01]Write i2c OK [16:58:01]MH_I2C_Read... [16:58:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:58:01]Read from MH i2c: E2 [16:58:01]MH_I2C_Read... [16:58:01]Read from MH i2c: E2 0E 00 [16:58:01]MH_I2C_Read... [16:58:01]Read from MH i2c: E2 0E 00 51 39 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 C9 [16:58:01]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [16:58:01]wFMCommunicate OK [16:58:01]SAM_PROTO_GetShiftState done [16:58:01]FM_GetShiftState done [16:58:01]opened in 1709425579 [16:58:01]opened+sec_in_day 1709511979 [16:58:01]quantity*price = 61900 [16:58:01]sum+1 = 61901 [16:58:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 619.00 НСП 1% : 5.48 НДС 12% : 65.73 Наличными: 619.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 157 03.03.2024 16:58 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123300 ФПД: 269907525775429 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T165805&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123300&fm=269907525775429&tin=02508201610067®Number=0000000000090573&sum=61900 [16:58:02]StoreToDocumentArchive [16:58:02]shift 323 fd 123300 [16:58:02]save to /storage/0323/doc_00123300 [16:58:02]save last doc name /storage/0323/doc_00123300 to /storage/kkm_last_doc_name [16:58:02]save OK [16:58:02]Clear old archive folders... [16:58:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:58:02]tlvbuf is 00E021C0 [16:58:02]SAM_PROTO_ClearQueue [16:58:02]wFMCommunicate request_size=4 [16:58:02]MH_SAM_APDU [16:58:02]CAPDU: 80 09 00 00 [16:58:02]Write to MH i2c: E2 08 00 5E 39 80 09 00 00 00 00 00 00 09 [16:58:02]Write i2c OK [16:58:02]MH_I2C_Read... [16:58:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:58:02]Read from MH i2c: E2 [16:58:02]MH_I2C_Read... [16:58:02]Read from MH i2c: E2 03 00 [16:58:02]MH_I2C_Read... [16:58:02]Read from MH i2c: E2 03 00 5E 39 00 90 00 0B [16:58:02]RAPDU: 90 00 [16:58:02]wFMCommunicate OK [16:58:02]SAM_PROTO_ClearQueue done [16:58:02]KKMCreateOFDPacket [16:58:02]OFDProtocolAddRootSTLVToBuf [16:58:02]FM_MakeSignedData [16:58:02]FM_MakeSignedData [16:58:02]SAM_PROTO_SignData [16:58:02]wFMCommunicate request_size=4 [16:58:02]MH_SAM_APDU [16:58:02]CAPDU: 80 0D 01 02 [16:58:02]Write to MH i2c: E2 08 00 5F 39 80 0D 01 02 00 00 00 00 11 [16:58:02]Write i2c OK [16:58:02]MH_I2C_Read... [16:58:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:58:02]Read from MH i2c: E2 [16:58:02]MH_I2C_Read... [16:58:02]Read from MH i2c: E2 03 00 [16:58:02]MH_I2C_Read... [16:58:02]Read from MH i2c: E2 03 00 5F 39 00 90 00 0C [16:58:02]RAPDU: 90 00 [16:58:02]wFMCommunicate OK [16:58:02]wFMCommunicate request_size=255 [16:58:02]MH_SAM_APDU [16:58:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 CC F1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC F1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 19 00 00 00 00 07 04 06 00 CC F1 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 1D AC E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 A4 E1 01 00 35 04 06 00 F5 [16:58:02]Write to MH i2c: E2 02 01 60 39 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 CC F1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC F1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 19 00 00 00 00 07 04 06 00 CC F1 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 1D AC E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 A4 E1 01 00 35 04 06 00 F5 00 00 33 [16:58:02]Write i2c OK [16:58:02]MH_I2C_Read... [16:58:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:58:03]Read from MH i2c: E2 [16:58:03]MH_I2C_Read... [16:58:03]Read from MH i2c: E2 03 00 [16:58:03]MH_I2C_Read... [16:58:03]Read from MH i2c: E2 03 00 60 39 00 90 00 0D [16:58:03]RAPDU: 90 00 [16:58:03]wFMCommunicate OK [16:58:03]wFMCommunicate request_size=10 [16:58:03]MH_SAM_APDU [16:58:03]CAPDU: 80 0D 02 02 05 7A BE 32 30 45 [16:58:03]Write to MH i2c: E2 0D 00 61 39 80 0D 02 02 05 00 7A BE 32 30 45 00 00 FD [16:58:03]Write i2c OK [16:58:03]MH_I2C_Read... [16:58:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:58:03]Read from MH i2c: E2 [16:58:03]MH_I2C_Read... [16:58:03]Read from MH i2c: E2 03 00 [16:58:03]MH_I2C_Read... [16:58:03]Read from MH i2c: E2 03 00 61 39 00 90 00 0E [16:58:03]RAPDU: 90 00 [16:58:03]wFMCommunicate OK [16:58:03]wFMCommunicate request_size=4 [16:58:03]MH_SAM_APDU [16:58:03]CAPDU: 80 0D 03 02 [16:58:03]Write to MH i2c: E2 08 00 62 39 80 0D 03 02 00 00 00 00 16 [16:58:03]Write i2c OK [16:58:03]MH_I2C_Read... [16:58:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:58:03]Read from MH i2c: E2 [16:58:03]MH_I2C_Read... [16:58:03]Read from MH i2c: E2 0B 00 [16:58:03]MH_I2C_Read... [16:58:03]Read from MH i2c: E2 0B 00 62 39 00 C5 54 98 9A 9C F7 6E 70 90 00 D3 [16:58:03]RAPDU: C5 54 98 9A 9C F7 6E 70 90 00 [16:58:03]wFMCommunicate OK [16:58:03]SAM_PROTO_SignData done [16:58:03]FM_MakeSignedData done [16:58:03]CreateOFDProtocolMessage [16:58:03]wFMCommunicate request_size=4 [16:58:03]MH_SAM_APDU [16:58:03]CAPDU: 80 11 00 00 [16:58:03]Write to MH i2c: E2 08 00 63 39 80 11 00 00 00 00 00 00 16 [16:58:03]Write i2c OK [16:58:03]MH_I2C_Read... [16:58:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:58:03]Read from MH i2c: E2 [16:58:03]MH_I2C_Read... [16:58:03]Read from MH i2c: E2 17 00 [16:58:03]MH_I2C_Read... [16:58:03]Read from MH i2c: E2 17 00 63 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 74 [16:58:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [16:58:03]wFMCommunicate OK [16:58:03]CreateOFDProtocolMessage done [16:58:03]OFDSenderStorePacket 123300 [16:58:03]StoreOFDPacket docnum=123300 [16:58:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 8C 4E 07 01 F8 CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 CC F1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC F1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 19 00 00 00 00 07 04 06 00 CC F1 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 1D AC E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 A4 E1 01 00 35 04 06 00 F5 7A BE 32 30 45 C5 54 98 9A 9C F7 6E 70 [16:58:03]CheckFolder [16:58:03]dirname=/storage/ofd_packets [16:58:03]CheckFolder done [16:58:03]ProducePacketName [16:58:03]name=ofd_packets/00123300 [16:58:03]NVStorageSaveData ofd_packets/00123300 [16:58:03]File name is /storage/ofd_packets/00123300 [16:58:03]Write 301 bytes [16:58:03]NVStorageSaveData done [16:58:03]OFDSenderStorePacket done [16:58:03]KKMCreateOFDPacket done [16:58:03]NVStorageSaveData kkm_last_timestamp [16:58:03]File name is /storage/kkm_last_timestamp [16:58:03]Write 4 bytes [16:58:03]NVStorageSaveData done [16:58:03]ExternCall_PrintAddStr [16:58:03]wPrintStart [16:58:03]Write to MH i2c: 01 00 00 64 39 9D [16:58:03]Write i2c OK [16:58:03]MH_I2C_Read... [16:58:03]Read from MH i2c: 01 [16:58:03]MH_I2C_Read... [16:58:03]Read from MH i2c: 01 07 00 [16:58:03]MH_I2C_Read... [16:58:03]Read from MH i2c: 01 07 00 64 39 00 00 00 00 00 FF 0F B2 [16:58:03]RasterBufferAndPrint [16:58:03]line Счет N : (1)1106238 [16:58:03]line ИНН: 02508201610067 [16:58:03]line Контрольно-Кассовый Чек [16:58:03]line ПРОДАЖА [16:58:03]line ТРК (МРК, ГНК) : 52 [16:58:03]line Товар: 2710124130 [16:58:03]line Аи-92-К-5 [16:58:03]line 10.000 * 61.90 [16:58:03]line = 619.00 [16:58:03]line НДС 12% НСП 1% [16:58:03]line > о реализуемом товаре [16:58:03]line ИТОГО: 619.00 [16:58:03]line НСП 1% : 5.48 [16:58:03]line НДС 12% : 65.73 [16:58:03]line Наличными: 619.00 [16:58:03]line Безнал.: 0.00 [16:58:03]line Место: АЗС № 25 "Партнер Нефть" [16:58:03]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [16:58:03]line СНО: Общий режим [16:58:03]line Чек 157 03.03.2024 16:58 [16:58:03]line Смена: 323 ФФД: 1.0 [16:58:03]line ЗНМ: 0300000019 [16:58:03]line РНМ: 0000000000090573 [16:58:03]line Версия ККМ: 001 [16:58:03]line ФМ: 0000000000874798 [16:58:03]line ФД: 123300 [16:58:03]line ФПД: 269907525775429 [16:58:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T165805&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123300&fm=269907525775429&tin=02508201610067®Number=0000000000090573&sum=61900 [16:58:03]OFD Sender: Processing packet 123300 [packets to send 112, broken 111] [16:58:03]ProducePacketName [16:58:03]name=ofd_packets/00123300 [16:58:03]OFD Sender: To server: pG, [16:58:03]CommunicateWithHost lk.salyk.kg:30040 [16:58:03]ConnectInit lk.salyk.kg [16:58:03]written 0, free lines is 4095 [16:58:03]Connected sock=10 [16:58: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 37 39 38 0F 01 00 00 8C 4E 07 01 F8 CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 CC F1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC F1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 19 00 00 00 00 07 04 06 00 CC F1 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 1D AC E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 A4 E1 01 00 35 04 06 00 F5 7A BE 32 30 45 C5 54 98 9A 9C F7 6E 70 [16:58:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 CD 21 47 00 6F E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 A4 E1 01 00 F4 03 04 00 49 58 E4 65 B6 04 01 00 00 61 AA 74 E3 F2 C7 C7 EC [16:58:03]CommunicateWithHost err = 0 [16:58:03]CheckOFDResponse [16:58:03]1017 (14) - 77093643461234 [16:58:03]1041 (16) - 0000000000874798 [16:58:03]1040 (4) - 123300 [16:58:03]1012 (4) - 03.03.2024 11:00 [16:58:03]1206 (1) - 0 [16:58:03]OFD Sender: Remove packet 123300 [16:58:03]ProducePacketName [16:58:03]name=ofd_packets/00123300 [16:58:03]NVStorageDeleteData [16:58:04]Write to MH i2c: 01 00 00 8C 39 C5 [16:58:04]Write i2c OK [16:58:04]MH_I2C_Read... [16:58:04]Read from MH i2c: 01 [16:58:04]MH_I2C_Read... [16:58:04]Read from MH i2c: 01 07 00 [16:58:04]MH_I2C_Read... [16:58:04]Read from MH i2c: 01 07 00 8C 39 00 00 00 00 00 1C 0D F5 [16:58:04]RasterBufferAndPrint [16:58:04]line [16:58:04]line [16:58:04]line [16:58:04]line [16:58:04]line [16:58:04]written 0, free lines is 3362 [16:58:04]MH_Cut [16:58:04]Write to MH i2c: D1 01 00 93 39 01 9E [16:58:04]Write i2c OK [16:58:04]MH_I2C_Read... [16:58:04]Read from MH i2c: D1 [16:58:04]MH_I2C_Read... [16:58:04]Read from MH i2c: D1 01 00 [16:58:04]MH_I2C_Read... [16:58:04]Read from MH i2c: D1 01 00 93 39 00 9D [16:58:04]Write to MH i2c: 01 00 00 94 39 CD [16:58:04]Write i2c OK [16:58:04]MH_I2C_Read... [16:58:04]OFD Sender: No OFD packet to send [16:58:04]*** Cut start [16:58:04]*** Purtial cut [16:58:04]*** Stage 1: CUTSNS_PIN = 1 [16:58:06]Read from MH i2c: 01 [16:58:06]MH_I2C_Read... [16:58:06]*** Stop cut motor [16:58:06]*** Cut end [16:58:06]Read from MH i2c: 01 07 00 [16:58:06]MH_I2C_Read... [16:58:06]Read from MH i2c: 01 07 00 94 39 00 00 00 00 00 FF 0F E2 [16:58:06]process_action close_receipt done [16:58:06]requested_data is exist [16:58:06]produce_requested_data [16:58:06]requested_item fm.sn is exist - process it [16:58:06]wFMCommunicate request_size=4 [16:58:06]MH_SAM_APDU [16:58:06]CAPDU: 80 11 00 00 [16:58:06]Write to MH i2c: E2 08 00 95 39 80 11 00 00 00 00 00 00 48 [16:58:06]Write i2c OK [16:58:06]MH_I2C_Read... [16:58:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:58:06]Read from MH i2c: E2 [16:58:06]MH_I2C_Read... [16:58:06]Read from MH i2c: E2 17 00 [16:58:06]MH_I2C_Read... [16:58:06]Read from MH i2c: E2 17 00 95 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 A6 [16:58:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [16:58:06]wFMCommunicate OK [16:58:06]requested_item fd.num is exist - process it [16:58:06]SAM_PROTO_GetFieldsCounters [16:58:06]wFMCommunicate request_size=4 [16:58:06]MH_SAM_APDU [16:58:06]CAPDU: 80 13 00 00 [16:58:06]Write to MH i2c: E2 08 00 96 39 80 13 00 00 00 00 00 00 4B [16:58:06]Write i2c OK [16:58:06]MH_I2C_Read... [16:58:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:58:07]Read from MH i2c: E2 [16:58:07]MH_I2C_Read... [16:58:07]Read from MH i2c: E2 62 00 [16:58:07]MH_I2C_Read... [16:58:07]Read from MH i2c: E2 62 00 96 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 A4 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 17 [16:58: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 A4 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:58:07]wFMCommunicate OK [16:58:07]SAM_PROTO_GetFieldsCounters done [16:58:07]requested_item shift.num is exist - process it [16:58:07]requested_item shift.opened is exist - process it [16:58:07]req_shift_opened [16:58:07]FM_GetShiftState [16:58:07]SAM_PROTO_GetShiftState [16:58:07]wFMCommunicate request_size=4 [16:58:07]MH_SAM_APDU [16:58:07]CAPDU: 80 13 01 00 [16:58:07]Write to MH i2c: E2 08 00 97 39 80 13 01 00 00 00 00 00 4D [16:58:07]Write i2c OK [16:58:07]MH_I2C_Read... [16:58:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:58:07]Read from MH i2c: E2 [16:58:07]MH_I2C_Read... [16:58:07]Read from MH i2c: E2 0E 00 [16:58:07]MH_I2C_Read... [16:58:07]Read from MH i2c: E2 0E 00 97 39 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 0F [16:58:07]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [16:58:07]wFMCommunicate OK [16:58:07]SAM_PROTO_GetShiftState done [16:58:07]FM_GetShiftState done [16:58:07]req_shift_opened done [16:58:07]requested_item shift.open_date is exist - process it [16:58:07]req_shift_open_date [16:58:07]req_shift_open_date done [16:58:07]produce_requested_data done [16:58:07]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123300,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [16:58:07]process_action_free close_receipt [16:58:07]json_value_free [16:58:07]json_value_free done [16:58:07]process_json_proto returns [16:58:07]Send response to host [16:58:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123300,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [16:58:07]free response buf [16:58:07]execute_script done [16:58:07]execute_script returns [16:58:07]free content buf [16:58:07]Sock 7.Close socket [16:58:07]Sock 7.Thread stoped [16:58:09]OFD Sender: No OFD packet to send [16:58:14]OFD Sender: No OFD packet to send [16:58:19]OFD Sender: No OFD packet to send [16:58:24]OFD Sender: No OFD packet to send [16:58:29]OFD Sender: No OFD packet to send [16:58:34]OFD Sender: No OFD packet to send [16:58:39]OFD Sender: No OFD packet to send [16:58:44]OFD Sender: No OFD packet to send [16:58:49]OFD Sender: No OFD packet to send [16:58:54]OFD Sender: No OFD packet to send [16:58:59]OFD Sender: No OFD packet to send [16:59:04]OFD Sender: No OFD packet to send [16:59:09]OFD Sender: No OFD packet to send [16:59:14]OFD Sender: No OFD packet to send [16:59:19]OFD Sender: No OFD packet to send [16:59:24]OFD Sender: No OFD packet to send [16:59:29]OFD Sender: No OFD packet to send [16:59:34]OFD Sender: No OFD packet to send [16:59:39]OFD Sender: No OFD packet to send [16:59:44]OFD Sender: No OFD packet to send [16:59:49]OFD Sender: No OFD packet to send [16:59:54]OFD Sender: No OFD packet to send [16:59:59]OFD Sender: No OFD packet to send [17:00:04]OFD Sender: No OFD packet to send [17:00:09]OFD Sender: No OFD packet to send [17:00:14]OFD Sender: No OFD packet to send [17:00:19]OFD Sender: No OFD packet to send [17:00:24]OFD Sender: No OFD packet to send [17:00:29]OFD Sender: No OFD packet to send [17:00:34]OFD Sender: No OFD packet to send [17:00:39]OFD Sender: No OFD packet to send [17:00:44]OFD Sender: No OFD packet to send [17:00:49]OFD Sender: No OFD packet to send [17:00:54]OFD Sender: No OFD packet to send [17:00:59]OFD Sender: No OFD packet to send [17:01:04]OFD Sender: No OFD packet to send [17:01:09]OFD Sender: No OFD packet to send [17:01:14]OFD Sender: No OFD packet to send [17:01:19]OFD Sender: No OFD packet to send [17:01:24]OFD Sender: No OFD packet to send [17:01:29]OFD Sender: No OFD packet to send [17:01:34]OFD Sender: No OFD packet to send [17:01:39]OFD Sender: No OFD packet to send [17:01:44]OFD Sender: No OFD packet to send [17:01:49]OFD Sender: No OFD packet to send [17:01:54]OFD Sender: No OFD packet to send [17:01:59]OFD Sender: No OFD packet to send [17:02:04]OFD Sender: No OFD packet to send [17:02:09]OFD Sender: No OFD packet to send [17:02:14]OFD Sender: No OFD packet to send [17:02:19]OFD Sender: No OFD packet to send [17:02:24]OFD Sender: No OFD packet to send [17:02:29]OFD Sender: No OFD packet to send [17:02:34]OFD Sender: No OFD packet to send [17:02:39]OFD Sender: No OFD packet to send [17:02:44]OFD Sender: No OFD packet to send [17:02:49]OFD Sender: No OFD packet to send [17:02:54]OFD Sender: No OFD packet to send [17:02:59]OFD Sender: No OFD packet to send [17:03:04]OFD Sender: No OFD packet to send [17:03:09]OFD Sender: No OFD packet to send [17:03:14]OFD Sender: No OFD packet to send [17:03:19]OFD Sender: No OFD packet to send [17:03:24]OFD Sender: No OFD packet to send [17:03:29]OFD Sender: No OFD packet to send [17:03:34]OFD Sender: No OFD packet to send [17:03:39]OFD Sender: No OFD packet to send [17:03:44]OFD Sender: No OFD packet to send [17:03:49]OFD Sender: No OFD packet to send [17:03:54]OFD Sender: No OFD packet to send [17:03:59]OFD Sender: No OFD packet to send [17:04:04]OFD Sender: No OFD packet to send [17:04:09]OFD Sender: No OFD packet to send [17:04:14]OFD Sender: No OFD packet to send [17:04:19]OFD Sender: No OFD packet to send [17:04:24]OFD Sender: No OFD packet to send [17:04:29]OFD Sender: No OFD packet to send [17:04:34]OFD Sender: No OFD packet to send [17:04:39]OFD Sender: No OFD packet to send [17:04:44]OFD Sender: No OFD packet to send [17:04:49]OFD Sender: No OFD packet to send [17:04:54]OFD Sender: No OFD packet to send [17:04:59]OFD Sender: No OFD packet to send [17:05:04]OFD Sender: No OFD packet to send [17:05:09]OFD Sender: No OFD packet to send [17:05:14]OFD Sender: No OFD packet to send [17:05:19]OFD Sender: No OFD packet to send [17:05:24]OFD Sender: No OFD packet to send [17:05:29]OFD Sender: No OFD packet to send [17:05:35]OFD Sender: No OFD packet to send [17:05:40]OFD Sender: No OFD packet to send [17:05:45]OFD Sender: No OFD packet to send [17:05:50]OFD Sender: No OFD packet to send [17:05:55]OFD Sender: No OFD packet to send [17:06:00]OFD Sender: No OFD packet to send [17:06:05]OFD Sender: No OFD packet to send [17:06:10]OFD Sender: No OFD packet to send [17:06:15]OFD Sender: No OFD packet to send [17:06:20]OFD Sender: No OFD packet to send [17:06:25]OFD Sender: No OFD packet to send [17:06:30]OFD Sender: No OFD packet to send [17:06:35]OFD Sender: No OFD packet to send [17:06:40]OFD Sender: No OFD packet to send [17:06:45]OFD Sender: No OFD packet to send [17:06:50]OFD Sender: No OFD packet to send [17:06:55]OFD Sender: No OFD packet to send [17:07:00]OFD Sender: No OFD packet to send [17:07:05]OFD Sender: No OFD packet to send [17:07:10]OFD Sender: No OFD packet to send [17:07:15]OFD Sender: No OFD packet to send [17:07:20]OFD Sender: No OFD packet to send [17:07:25]OFD Sender: No OFD packet to send [17:07:30]OFD Sender: No OFD packet to send [17:07:35]OFD Sender: No OFD packet to send [17:07:40]OFD Sender: No OFD packet to send [17:07:45]OFD Sender: No OFD packet to send [17:07:50]OFD Sender: No OFD packet to send [17:07:55]OFD Sender: No OFD packet to send [17:08:00]OFD Sender: No OFD packet to send [17:08:05]OFD Sender: No OFD packet to send [17:08:10]OFD Sender: No OFD packet to send [17:08:15]OFD Sender: No OFD packet to send [17:08:20]OFD Sender: No OFD packet to send [17:08:25]OFD Sender: No OFD packet to send [17:08:30]OFD Sender: No OFD packet to send [17:08:35]OFD Sender: No OFD packet to send [17:08:40]OFD Sender: No OFD packet to send [17:08:45]OFD Sender: No OFD packet to send [17:08:50]OFD Sender: No OFD packet to send [17:08:55]OFD Sender: No OFD packet to send [17:09:00]OFD Sender: No OFD packet to send [17:09:05]OFD Sender: No OFD packet to send [17:09:09]accept exits with 9 [17:09:09]New connection [17:09:09]New thread 3067395428 created [17:09:09]Thread 3067252068 joined [17:09:09]Waiting for new connection... [17:09:09] Sock 9.Parse request [17:09:09]Sock 9.Check first char [17:09:09]Sock 9.First char is OK [17:09:09]request: POST /json_proto HTTP/1.0 [17:09:09]Method: POST [17:09:09]URL: /json_proto [17:09:09]Method is POST - this is cgi request [17:09:09]url: /json_proto [17:09:09]query_string will be loaded in cgi processing [17:09:09]execute_cgi json_proto POST (null) [17:09:09]execute_cgi path=json_proto method=POST [17:09:09]POST find Content-Length [17:09:09]Host: 172.17.48.197:8080 [17:09:09]Content-Length: 1180 [17:09:09]Content-Type: application/json [17:09:09] [17:09:09]POST finish read [17:09:09]Found Content-Length = 1180 [17:09:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106241\u000A03.03.2024 17:05\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 63\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 40.000 x 69.50\u000A\u0418\u0422\u041E\u0413: 2780.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A7005830830119681\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:09:09]execute_script... [17:09:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106241\u000A03.03.2024 17:05\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 63\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 40.000 x 69.50\u000A\u0418\u0422\u041E\u0413: 2780.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A7005830830119681\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:09:09]POST & json_proto [17:09:09]process_json_proto [17:09:09]json parsed OK: [17:09:09]protocol is kg_v1.0 [17:09:09]action value=print_text [17:09:09]process_action print_text [17:09:09]cmd_print_text [17:09:09]ExternCall_PrintAddStr [17:09:09]wPrintStart [17:09:09]Write to MH i2c: 01 00 00 98 39 D1 [17:09:09]Write i2c OK [17:09:09]MH_I2C_Read... [17:09:09]Read from MH i2c: 01 [17:09:09]MH_I2C_Read... [17:09:09]Read from MH i2c: 01 07 00 [17:09:09]MH_I2C_Read... [17:09:09]Read from MH i2c: 01 07 00 98 39 00 00 00 00 00 FF 0F E6 [17:09:09]RasterBufferAndPrint [17:09:09]line *****ТОВАРНЫЙ ЧЕК***** [17:09:09]line АЗС 25 [17:09:09]line Партнер нефть [17:09:09]line 02508201610067 [17:09:09]line Кассир : Турдумбек у. К. [17:09:09]line Счет N : (1)1106241 [17:09:09]line 03.03.2024 17:05 [17:09:09]line ПРОДАЖА [17:09:09]line ТРК (МРК, ГНК): 63 [17:09:09]line Вид ГСМ : 2710124500 [17:09:09]line Аи-95-К-5 [17:09:09]line 40.000 x 69.50 [17:09:09]line ИТОГ: 2780.00 [17:09:09]line Тип оплаты: Талоны: ТК ГПНА Online [17:09:09]line 7005830830119681 [17:09:09]line ______________________ [17:09:09]line (подпись) [17:09:09]written 0, free lines is 4095 [17:09:09]Write to MH i2c: 01 00 00 AD 39 E6 [17:09:09]Write i2c OK [17:09:09]MH_I2C_Read... [17:09:09]Read from MH i2c: 01 [17:09:09]MH_I2C_Read... [17:09:09]Read from MH i2c: 01 07 00 [17:09:09]MH_I2C_Read... [17:09:09]Read from MH i2c: 01 07 00 AD 39 00 00 00 00 00 FA 0D F4 [17:09:09]RasterBufferAndPrint [17:09:09]line [17:09:09]line [17:09:09]line [17:09:09]line [17:09:09]line [17:09:09]written 0, free lines is 3580 [17:09:09]MH_Cut [17:09:09]Write to MH i2c: D1 01 00 B4 39 01 BF [17:09:09]Write i2c OK [17:09:09]MH_I2C_Read... [17:09:09]Read from MH i2c: D1 [17:09:09]MH_I2C_Read... [17:09:09]Read from MH i2c: D1 01 00 [17:09:09]MH_I2C_Read... [17:09:09]Read from MH i2c: D1 01 00 B4 39 00 BE [17:09:09]Write to MH i2c: 01 00 00 B5 39 EE [17:09:09]Write i2c OK [17:09:09]MH_I2C_Read... [17:09:10]OFD Sender: No OFD packet to send [17:09:10]*** Cut start [17:09:10]*** Purtial cut [17:09:10]*** Stage 1: CUTSNS_PIN = 1 [17:09:12]Read from MH i2c: 01 [17:09:12]MH_I2C_Read... [17:09:12]*** Stop cut motor [17:09:12]*** Cut end [17:09:12]Read from MH i2c: 01 07 00 [17:09:12]MH_I2C_Read... [17:09:12]Read from MH i2c: 01 07 00 B5 39 00 00 00 00 00 FF 0F 03 [17:09:12]process_action print_text done [17:09:12]requested_data is exist [17:09:12]produce_requested_data [17:09:12]requested_item fm.sn is exist - process it [17:09:12]wFMCommunicate request_size=4 [17:09:12]MH_SAM_APDU [17:09:12]CAPDU: 80 11 00 00 [17:09:12]Write to MH i2c: E2 08 00 B6 39 80 11 00 00 00 00 00 00 69 [17:09:12]Write i2c OK [17:09:12]MH_I2C_Read... [17:09:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:12]Read from MH i2c: E2 [17:09:12]MH_I2C_Read... [17:09:12]Read from MH i2c: E2 17 00 [17:09:12]MH_I2C_Read... [17:09:12]Read from MH i2c: E2 17 00 B6 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 C7 [17:09:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [17:09:12]wFMCommunicate OK [17:09:12]requested_item fd.num is exist - process it [17:09:12]SAM_PROTO_GetFieldsCounters [17:09:12]wFMCommunicate request_size=4 [17:09:12]MH_SAM_APDU [17:09:12]CAPDU: 80 13 00 00 [17:09:12]Write to MH i2c: E2 08 00 B7 39 80 13 00 00 00 00 00 00 6C [17:09:12]Write i2c OK [17:09:12]MH_I2C_Read... [17:09:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:09:12]Read from MH i2c: E2 [17:09:12]MH_I2C_Read... [17:09:12]Read from MH i2c: E2 62 00 [17:09:12]MH_I2C_Read... [17:09:12]Read from MH i2c: E2 62 00 B7 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 A4 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 38 [17:09:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 A4 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:09:12]wFMCommunicate OK [17:09:12]SAM_PROTO_GetFieldsCounters done [17:09:12]requested_item shift.num is exist - process it [17:09:12]requested_item shift.opened is exist - process it [17:09:12]req_shift_opened [17:09:12]FM_GetShiftState [17:09:12]SAM_PROTO_GetShiftState [17:09:12]wFMCommunicate request_size=4 [17:09:12]MH_SAM_APDU [17:09:12]CAPDU: 80 13 01 00 [17:09:12]Write to MH i2c: E2 08 00 B8 39 80 13 01 00 00 00 00 00 6E [17:09:12]Write i2c OK [17:09:12]MH_I2C_Read... [17:09:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:09:12]Read from MH i2c: E2 [17:09:12]MH_I2C_Read... [17:09:12]Read from MH i2c: E2 0E 00 [17:09:12]MH_I2C_Read... [17:09:12]Read from MH i2c: E2 0E 00 B8 39 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 30 [17:09:12]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [17:09:12]wFMCommunicate OK [17:09:12]SAM_PROTO_GetShiftState done [17:09:12]FM_GetShiftState done [17:09:12]req_shift_opened done [17:09:12]requested_item shift.open_date is exist - process it [17:09:12]req_shift_open_date [17:09:12]req_shift_open_date done [17:09:12]produce_requested_data done [17:09:12]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123300,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [17:09:12]process_action_free print_text [17:09:12]json_value_free [17:09:12]json_value_free done [17:09:12]process_json_proto returns [17:09:12]Send response to host [17:09:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123300,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [17:09:12]free response buf [17:09:12]execute_script done [17:09:12]execute_script returns [17:09:12]free content buf [17:09:12]Sock 9.Close socket [17:09:12]Sock 9.Thread stoped [17:09:13]accept exits with 7 [17:09:13]New connection [17:09:13]New thread 3067252068 created [17:09:13]Thread 3067395428 joined [17:09:13]Waiting for new connection... [17:09:13] Sock 7.Parse request [17:09:13]Sock 7.Check first char [17:09:13]Sock 7.First char is OK [17:09:13]request: POST /json_proto HTTP/1.0 [17:09:13]Method: POST [17:09:13]URL: /json_proto [17:09:13]Method is POST - this is cgi request [17:09:13]url: /json_proto [17:09:13]query_string will be loaded in cgi processing [17:09:13]execute_cgi json_proto POST (null) [17:09:13]execute_cgi path=json_proto method=POST [17:09:13]POST find Content-Length [17:09:13]Host: 172.17.48.197:8080 [17:09:13]Content-Length: 678 [17:09:13]Content-Type: application/json [17:09:13] [17:09:13]POST finish read [17:09:13]Found Content-Length = 678 [17:09:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106243", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 6.470, "sum" : 400.49, "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" ] } } [17:09:13]execute_script... [17:09: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)1106243", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 6.470, "sum" : 400.49, "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" ] } } [17:09:13]POST & json_proto [17:09:13]process_json_proto [17:09:13]json parsed OK: [17:09:13]protocol is kg_v1.0 [17:09:13]action value=close_receipt [17:09:13]process_action close_receipt [17:09:13]cmd_close_receipt [17:09:13]MH_GetDate [17:09:13]Write to MH i2c: F0 00 00 B9 39 E1 [17:09:13]Write i2c OK [17:09:13]MH_I2C_Read... [17:09:13]Read from MH i2c: F0 [17:09:13]MH_I2C_Read... [17:09:13]Read from MH i2c: F0 09 00 [17:09:13]MH_I2C_Read... [17:09:13]Read from MH i2c: F0 09 00 B9 39 00 BD AE E4 65 6C AF E3 65 01 [17:09:13]GetLastDocTimeStamp 1709485085 [17:09:13]current date 1709485757 [17:09:13]FM_GetShiftState [17:09:13]SAM_PROTO_GetShiftState [17:09:13]wFMCommunicate request_size=4 [17:09:13]MH_SAM_APDU [17:09:13]CAPDU: 80 13 01 00 [17:09:13]Write to MH i2c: E2 08 00 BA 39 80 13 01 00 00 00 00 00 70 [17:09:13]Write i2c OK [17:09:13]MH_I2C_Read... [17:09:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:09:13]Read from MH i2c: E2 [17:09:13]MH_I2C_Read... [17:09:13]Read from MH i2c: E2 0E 00 [17:09:13]MH_I2C_Read... [17:09:13]Read from MH i2c: E2 0E 00 BA 39 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 32 [17:09:13]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [17:09:13]wFMCommunicate OK [17:09:13]SAM_PROTO_GetShiftState done [17:09:13]FM_GetShiftState done [17:09:13]opened in 1709425579 [17:09:13]opened+sec_in_day 1709511979 [17:09:13]quantity*price = 40049 [17:09:13]sum+1 = 40050 [17:09:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.53 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 158 03.03.2024 17:09 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123301 ФПД: 89457046090757 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T170917&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123301&fm=89457046090757&tin=02508201610067®Number=0000000000090573&sum=40000 [17:09:14]StoreToDocumentArchive [17:09:14]shift 323 fd 123301 [17:09:14]save to /storage/0323/doc_00123301 [17:09:14]save last doc name /storage/0323/doc_00123301 to /storage/kkm_last_doc_name [17:09:14]save OK [17:09:14]Clear old archive folders... [17:09:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:09:14]tlvbuf is 00DCB1B0 [17:09:14]SAM_PROTO_ClearQueue [17:09:14]wFMCommunicate request_size=4 [17:09:14]MH_SAM_APDU [17:09:14]CAPDU: 80 09 00 00 [17:09:14]Write to MH i2c: E2 08 00 C7 39 80 09 00 00 00 00 00 00 72 [17:09:14]Write i2c OK [17:09:14]MH_I2C_Read... [17:09:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:09:14]Read from MH i2c: E2 [17:09:14]MH_I2C_Read... [17:09:14]Read from MH i2c: E2 03 00 [17:09:14]MH_I2C_Read... [17:09:14]Read from MH i2c: E2 03 00 C7 39 00 90 00 74 [17:09:14]RAPDU: 90 00 [17:09:14]wFMCommunicate OK [17:09:14]SAM_PROTO_ClearQueue done [17:09:14]KKMCreateOFDPacket [17:09:14]OFDProtocolAddRootSTLVToBuf [17:09:14]FM_MakeSignedData [17:09:14]FM_MakeSignedData [17:09:14]SAM_PROTO_SignData [17:09:14]wFMCommunicate request_size=4 [17:09:14]MH_SAM_APDU [17:09:14]CAPDU: 80 0D 01 02 [17:09:14]Write to MH i2c: E2 08 00 C8 39 80 0D 01 02 00 00 00 00 7A [17:09:14]Write i2c OK [17:09:14]MH_I2C_Read... [17:09:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:09:14]Read from MH i2c: E2 [17:09:14]MH_I2C_Read... [17:09:14]Read from MH i2c: E2 03 00 [17:09:14]MH_I2C_Read... [17:09:14]Read from MH i2c: E2 03 00 C8 39 00 90 00 75 [17:09:14]RAPDU: 90 00 [17:09:14]wFMCommunicate OK [17:09:14]wFMCommunicate request_size=255 [17:09:14]MH_SAM_APDU [17:09: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 19 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 71 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 9D 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 9E 00 00 00 F4 03 04 00 BD AE E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 A5 E1 01 00 35 04 06 00 51 [17:09:14]Write to MH i2c: E2 02 01 C9 39 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 19 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 71 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 9D 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 9E 00 00 00 F4 03 04 00 BD AE E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 A5 E1 01 00 35 04 06 00 51 00 00 76 [17:09:14]Write i2c OK [17:09:14]MH_I2C_Read... [17:09:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:09:14]Read from MH i2c: E2 [17:09:14]MH_I2C_Read... [17:09:14]Read from MH i2c: E2 03 00 [17:09:14]MH_I2C_Read... [17:09:14]Read from MH i2c: E2 03 00 C9 39 00 90 00 76 [17:09:14]RAPDU: 90 00 [17:09:14]wFMCommunicate OK [17:09:14]wFMCommunicate request_size=10 [17:09:14]MH_SAM_APDU [17:09:14]CAPDU: 80 0D 02 02 05 5C 57 74 74 05 [17:09:14]Write to MH i2c: E2 0D 00 CA 39 80 0D 02 02 05 00 5C 57 74 74 05 00 00 27 [17:09:14]Write i2c OK [17:09:14]MH_I2C_Read... [17:09:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:09:14]Read from MH i2c: E2 [17:09:14]MH_I2C_Read... [17:09:14]Read from MH i2c: E2 03 00 [17:09:14]MH_I2C_Read... [17:09:14]Read from MH i2c: E2 03 00 CA 39 00 90 00 77 [17:09:14]RAPDU: 90 00 [17:09:14]wFMCommunicate OK [17:09:14]wFMCommunicate request_size=4 [17:09:14]MH_SAM_APDU [17:09:14]CAPDU: 80 0D 03 02 [17:09:14]Write to MH i2c: E2 08 00 CB 39 80 0D 03 02 00 00 00 00 7F [17:09:14]Write i2c OK [17:09:14]MH_I2C_Read... [17:09:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:09:14]Read from MH i2c: E2 [17:09:14]MH_I2C_Read... [17:09:14]Read from MH i2c: E2 0B 00 [17:09:14]MH_I2C_Read... [17:09:14]Read from MH i2c: E2 0B 00 CB 39 00 BE 26 2B 32 47 BF 8C 6B 90 00 BE [17:09:14]RAPDU: BE 26 2B 32 47 BF 8C 6B 90 00 [17:09:14]wFMCommunicate OK [17:09:14]SAM_PROTO_SignData done [17:09:14]FM_MakeSignedData done [17:09:14]CreateOFDProtocolMessage [17:09:14]wFMCommunicate request_size=4 [17:09:14]MH_SAM_APDU [17:09:14]CAPDU: 80 11 00 00 [17:09:14]Write to MH i2c: E2 08 00 CC 39 80 11 00 00 00 00 00 00 7F [17:09:14]Write i2c OK [17:09:14]MH_I2C_Read... [17:09:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:14]Read from MH i2c: E2 [17:09:14]MH_I2C_Read... [17:09:14]Read from MH i2c: E2 17 00 [17:09:14]MH_I2C_Read... [17:09:14]Read from MH i2c: E2 17 00 CC 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 DD [17:09:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [17:09:14]wFMCommunicate OK [17:09:14]CreateOFDProtocolMessage done [17:09:14]OFDSenderStorePacket 123301 [17:09:14]StoreOFDPacket docnum=123301 [17:09:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 09 4A 07 01 D6 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 19 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 71 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 9D 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 9E 00 00 00 F4 03 04 00 BD AE E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 A5 E1 01 00 35 04 06 00 51 5C 57 74 74 05 BE 26 2B 32 47 BF 8C 6B [17:09:14]CheckFolder [17:09:14]dirname=/storage/ofd_packets [17:09:14]CheckFolder done [17:09:14]ProducePacketName [17:09:14]name=ofd_packets/00123301 [17:09:14]NVStorageSaveData ofd_packets/00123301 [17:09:14]File name is /storage/ofd_packets/00123301 [17:09:14]Write 301 bytes [17:09:14]NVStorageSaveData done [17:09:14]OFDSenderStorePacket done [17:09:14]KKMCreateOFDPacket done [17:09:14]NVStorageSaveData kkm_last_timestamp [17:09:14]File name is /storage/kkm_last_timestamp [17:09:14]Write 4 bytes [17:09:14]NVStorageSaveData done [17:09:15]ExternCall_PrintAddStr [17:09:15]wPrintStart [17:09:15]Write to MH i2c: 01 00 00 CD 39 06 [17:09:15]Write i2c OK [17:09:15]MH_I2C_Read... [17:09:15]Read from MH i2c: 01 [17:09:15]MH_I2C_Read... [17:09:15]Read from MH i2c: 01 07 00 [17:09:15]MH_I2C_Read... [17:09:15]Read from MH i2c: 01 07 00 CD 39 00 00 00 00 00 FF 0F 1B [17:09:15]RasterBufferAndPrint [17:09:15]line Счет N : (1)1106243 [17:09:15]line ИНН: 02508201610067 [17:09:15]line Контрольно-Кассовый Чек [17:09:15]line ПРОДАЖА [17:09:15]line ТРК (МРК, ГНК) : 52 [17:09:15]line Товар: 2710124130 [17:09:15]line Аи-92-К-5 [17:09:15]line 6.470 * 61.90 [17:09:15]line = 400.49 [17:09:15]line НДС 12% НСП 1% [17:09:15]line > о реализуемом товаре [17:09:15]line ОКРУГЛЕНИЕ: -0.49 [17:09:15]line ИТОГО: 400.00 [17:09:15]line Внесено: 400.00 [17:09:15]line СДАЧА: 0.00 [17:09:15]line НСП 1% : 3.54 [17:09:15]line НДС 12% : 42.53 [17:09:15]line Наличными: 400.00 [17:09:15]line Безнал.: 0.00 [17:09:15]line Место: АЗС № 25 "Партнер Нефть" [17:09:15]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [17:09:15]line СНО: Общий режим [17:09:15]line Чек 158 03.03.2024 17:09 [17:09:15]line Смена: 323 ФФД: 1.0 [17:09:15]line ЗНМ: 0300000019 [17:09:15]line РНМ: 0000000000090573 [17:09:15]line Версия ККМ: 001 [17:09:15]line ФМ: 0000000000874798 [17:09:15]line ФД: 123301 [17:09:15]line ФПД: 89457046090757 [17:09:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T170917&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123301&fm=89457046090757&tin=02508201610067®Number=0000000000090573&sum=40000 [17:09:15]OFD Sender: Processing packet 123301 [packets to send 112, broken 111] [17:09:15]ProducePacketName [17:09:15]name=ofd_packets/00123301 [17:09:15]OFD Sender: To server: pG, [17:09:15]CommunicateWithHost lk.salyk.kg:30040 [17:09:15]ConnectInit lk.salyk.kg [17:09:15]written 0, free lines is 4095 [17:09:15]Connected sock=10 [17:09: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 37 39 38 0F 01 00 00 09 4A 07 01 D6 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 19 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 71 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 9D 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 9E 00 00 00 F4 03 04 00 BD AE E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 A5 E1 01 00 35 04 06 00 51 5C 57 74 74 05 BE 26 2B 32 47 BF 8C 6B [17:09:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 4C 93 47 00 AB 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 37 39 38 10 04 04 00 A5 E1 01 00 F4 03 04 00 E8 5A E4 65 B6 04 01 00 00 4B E5 B8 98 D2 C0 4B A9 [17:09:15]CommunicateWithHost err = 0 [17:09:15]CheckOFDResponse [17:09:15]1017 (14) - 77093643461234 [17:09:15]1041 (16) - 0000000000874798 [17:09:15]1040 (4) - 123301 [17:09:15]1012 (4) - 03.03.2024 11:11 [17:09:15]1206 (1) - 0 [17:09:15]OFD Sender: Remove packet 123301 [17:09:15]ProducePacketName [17:09:15]name=ofd_packets/00123301 [17:09:15]NVStorageDeleteData [17:09:15]Write to MH i2c: 01 00 00 F8 39 31 [17:09:15]Write i2c OK [17:09:15]MH_I2C_Read... [17:09:15]Read from MH i2c: 01 [17:09:15]MH_I2C_Read... [17:09:15]Read from MH i2c: 01 07 00 [17:09:15]MH_I2C_Read... [17:09:15]Read from MH i2c: 01 07 00 F8 39 00 00 00 00 00 E1 0C 25 [17:09:15]RasterBufferAndPrint [17:09:15]line [17:09:15]line [17:09:15]line [17:09:15]line [17:09:15]line [17:09:15]written 0, free lines is 3306 [17:09:15]MH_Cut [17:09:15]Write to MH i2c: D1 01 00 FF 39 01 0A [17:09:15]Write i2c OK [17:09:15]MH_I2C_Read... [17:09:15]Read from MH i2c: D1 [17:09:15]MH_I2C_Read... [17:09:15]Read from MH i2c: D1 01 00 [17:09:15]MH_I2C_Read... [17:09:15]Read from MH i2c: D1 01 00 FF 39 00 09 [17:09:15]Write to MH i2c: 01 00 00 00 3A 3A [17:09:15]Write i2c OK [17:09:15]MH_I2C_Read... [17:09:16]OFD Sender: No OFD packet to send [17:09:16]*** Cut start [17:09:16]*** Purtial cut [17:09:16]*** Stage 1: CUTSNS_PIN = 1 [17:09:18]Read from MH i2c: 01 [17:09:18]MH_I2C_Read... [17:09:18]*** Stop cut motor [17:09:18]*** Cut end [17:09:18]Read from MH i2c: 01 07 00 [17:09:18]MH_I2C_Read... [17:09:18]Read from MH i2c: 01 07 00 00 3A 00 00 00 00 00 FF 0F 4F [17:09:18]process_action close_receipt done [17:09:18]requested_data is exist [17:09:18]produce_requested_data [17:09:18]requested_item fm.sn is exist - process it [17:09:18]wFMCommunicate request_size=4 [17:09:18]MH_SAM_APDU [17:09:18]CAPDU: 80 11 00 00 [17:09:18]Write to MH i2c: E2 08 00 01 3A 80 11 00 00 00 00 00 00 B5 [17:09:18]Write i2c OK [17:09:18]MH_I2C_Read... [17:09:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:18]Read from MH i2c: E2 [17:09:18]MH_I2C_Read... [17:09:18]Read from MH i2c: E2 17 00 [17:09:18]MH_I2C_Read... [17:09:18]Read from MH i2c: E2 17 00 01 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 13 [17:09:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [17:09:18]wFMCommunicate OK [17:09:18]requested_item fd.num is exist - process it [17:09:18]SAM_PROTO_GetFieldsCounters [17:09:18]wFMCommunicate request_size=4 [17:09:18]MH_SAM_APDU [17:09:18]CAPDU: 80 13 00 00 [17:09:18]Write to MH i2c: E2 08 00 02 3A 80 13 00 00 00 00 00 00 B8 [17:09:18]Write i2c OK [17:09:18]MH_I2C_Read... [17:09:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:09:18]Read from MH i2c: E2 [17:09:18]MH_I2C_Read... [17:09:18]Read from MH i2c: E2 62 00 [17:09:18]MH_I2C_Read... [17:09:18]Read from MH i2c: E2 62 00 02 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 A5 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 88 [17:09: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 A5 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:09:18]wFMCommunicate OK [17:09:18]SAM_PROTO_GetFieldsCounters done [17:09:18]requested_item shift.num is exist - process it [17:09:18]requested_item shift.opened is exist - process it [17:09:18]req_shift_opened [17:09:18]FM_GetShiftState [17:09:18]SAM_PROTO_GetShiftState [17:09:18]wFMCommunicate request_size=4 [17:09:18]MH_SAM_APDU [17:09:18]CAPDU: 80 13 01 00 [17:09:18]Write to MH i2c: E2 08 00 03 3A 80 13 01 00 00 00 00 00 BA [17:09:18]Write i2c OK [17:09:18]MH_I2C_Read... [17:09:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:09:18]Read from MH i2c: E2 [17:09:18]MH_I2C_Read... [17:09:18]Read from MH i2c: E2 0E 00 [17:09:18]MH_I2C_Read... [17:09:18]Read from MH i2c: E2 0E 00 03 3A 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 7C [17:09:18]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [17:09:18]wFMCommunicate OK [17:09:18]SAM_PROTO_GetShiftState done [17:09:18]FM_GetShiftState done [17:09:18]req_shift_opened done [17:09:18]requested_item shift.open_date is exist - process it [17:09:18]req_shift_open_date [17:09:18]req_shift_open_date done [17:09:18]produce_requested_data done [17:09:18]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123301,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [17:09:18]process_action_free close_receipt [17:09:18]json_value_free [17:09:18]json_value_free done [17:09:18]process_json_proto returns [17:09:18]Send response to host [17:09:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123301,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [17:09:18]free response buf [17:09:18]execute_script done [17:09:18]execute_script returns [17:09:18]free content buf [17:09:18]Sock 7.Close socket [17:09:18]Sock 7.Thread stoped [17:09:21]OFD Sender: No OFD packet to send [17:09:26]OFD Sender: No OFD packet to send [17:09:31]OFD Sender: No OFD packet to send [17:09:36]OFD Sender: No OFD packet to send [17:09:41]OFD Sender: No OFD packet to send [17:09:46]OFD Sender: No OFD packet to send [17:09:51]OFD Sender: No OFD packet to send [17:09:56]OFD Sender: No OFD packet to send [17:09:59]accept exits with 9 [17:09:59]New connection [17:09:59]New thread 3067395428 created [17:09:59]Thread 3067252068 joined [17:09:59]Waiting for new connection... [17:09:59] Sock 9.Parse request [17:09:59]Sock 9.Check first char [17:09:59]Sock 9.First char is OK [17:09:59]request: POST /json_proto HTTP/1.0 [17:09:59]Method: POST [17:09:59]URL: /json_proto [17:09:59]Method is POST - this is cgi request [17:09:59]url: /json_proto [17:09:59]query_string will be loaded in cgi processing [17:09:59]execute_cgi json_proto POST (null) [17:09:59]execute_cgi path=json_proto method=POST [17:09:59]POST find Content-Length [17:09:59]Host: 172.17.48.197:8080 [17:09:59]Content-Length: 1210 [17:09:59]Content-Type: application/json [17:09:59] [17:09:59]POST finish read [17:09:59]Found Content-Length = 1210 [17:09:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106242\u000A03.03.2024 17:06\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 1857.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74718\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:09:59]execute_script... [17:09:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106242\u000A03.03.2024 17:06\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 1857.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74718\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:09:59]POST & json_proto [17:09:59]process_json_proto [17:09:59]json parsed OK: [17:09:59]protocol is kg_v1.0 [17:09:59]action value=print_text [17:09:59]process_action print_text [17:09:59]cmd_print_text [17:09:59]ExternCall_PrintAddStr [17:09:59]wPrintStart [17:09:59]Write to MH i2c: 01 00 00 04 3A 3E [17:09:59]Write i2c OK [17:09:59]MH_I2C_Read... [17:09:59]Read from MH i2c: 01 [17:09:59]MH_I2C_Read... [17:09:59]Read from MH i2c: 01 07 00 [17:09:59]MH_I2C_Read... [17:09:59]Read from MH i2c: 01 07 00 04 3A 00 00 00 00 00 FF 0F 53 [17:09:59]RasterBufferAndPrint [17:09:59]line *****ТОВАРНЫЙ ЧЕК***** [17:09:59]line АЗС 25 [17:09:59]line Партнер нефть [17:09:59]line 02508201610067 [17:09:59]line Кассир : Турдумбек у. К. [17:09:59]line Счет N : (1)1106242 [17:09:59]line 03.03.2024 17:06 [17:09:59]line ПРОДАЖА [17:09:59]line ТРК (МРК, ГНК): 21 [17:09:59]line Вид ГСМ : 2710124130 [17:09:59]line Аи-92-К-5 [17:09:59]line 30.000 x 61.90 [17:09:59]line ИТОГ: 1857.00 [17:09:59]line Тип оплаты: Талоны: Топливная Карта [17:09:59]line 74718 [17:09:59]line ______________________ [17:09:59]line (подпись) [17:09:59]written 0, free lines is 4095 [17:09:59]Write to MH i2c: 01 00 00 19 3A 53 [17:09:59]Write i2c OK [17:09:59]MH_I2C_Read... [17:09:59]Read from MH i2c: 01 [17:09:59]MH_I2C_Read... [17:09:59]Read from MH i2c: 01 07 00 [17:09:59]MH_I2C_Read... [17:09:59]Read from MH i2c: 01 07 00 19 3A 00 00 00 00 00 F5 0D 5C [17:09:59]RasterBufferAndPrint [17:09:59]line [17:09:59]line [17:09:59]line [17:09:59]line [17:09:59]line [17:09:59]written 0, free lines is 3574 [17:09:59]MH_Cut [17:09:59]Write to MH i2c: D1 01 00 20 3A 01 2C [17:09:59]Write i2c OK [17:09:59]MH_I2C_Read... [17:09:59]Read from MH i2c: D1 [17:09:59]MH_I2C_Read... [17:09:59]Read from MH i2c: D1 01 00 [17:09:59]MH_I2C_Read... [17:09:59]Read from MH i2c: D1 01 00 20 3A 00 2B [17:09:59]Write to MH i2c: 01 00 00 21 3A 5B [17:09:59]Write i2c OK [17:09:59]MH_I2C_Read... [17:09:59]*** Cut start [17:09:59]*** Purtial cut [17:09:59]*** Stage 1: CUTSNS_PIN = 1 [17:10:01]OFD Sender: No OFD packet to send [17:10:01]Read from MH i2c: 01 [17:10:01]MH_I2C_Read... [17:10:01]*** Stop cut motor [17:10:01]*** Cut end [17:10:01]Read from MH i2c: 01 07 00 [17:10:01]MH_I2C_Read... [17:10:01]Read from MH i2c: 01 07 00 21 3A 00 00 00 00 00 FF 0F 70 [17:10:01]process_action print_text done [17:10:01]requested_data is exist [17:10:01]produce_requested_data [17:10:01]requested_item fm.sn is exist - process it [17:10:01]wFMCommunicate request_size=4 [17:10:01]MH_SAM_APDU [17:10:01]CAPDU: 80 11 00 00 [17:10:01]Write to MH i2c: E2 08 00 22 3A 80 11 00 00 00 00 00 00 D6 [17:10:01]Write i2c OK [17:10:01]MH_I2C_Read... [17:10:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:10:02]Read from MH i2c: E2 [17:10:02]MH_I2C_Read... [17:10:02]Read from MH i2c: E2 17 00 [17:10:02]MH_I2C_Read... [17:10:02]Read from MH i2c: E2 17 00 22 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 34 [17:10:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [17:10:02]wFMCommunicate OK [17:10:02]requested_item fd.num is exist - process it [17:10:02]SAM_PROTO_GetFieldsCounters [17:10:02]wFMCommunicate request_size=4 [17:10:02]MH_SAM_APDU [17:10:02]CAPDU: 80 13 00 00 [17:10:02]Write to MH i2c: E2 08 00 23 3A 80 13 00 00 00 00 00 00 D9 [17:10:02]Write i2c OK [17:10:02]MH_I2C_Read... [17:10:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:10:02]Read from MH i2c: E2 [17:10:02]MH_I2C_Read... [17:10:02]Read from MH i2c: E2 62 00 [17:10:02]MH_I2C_Read... [17:10:02]Read from MH i2c: E2 62 00 23 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 A5 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 A9 [17:10: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 A5 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:10:02]wFMCommunicate OK [17:10:02]SAM_PROTO_GetFieldsCounters done [17:10:02]requested_item shift.num is exist - process it [17:10:02]requested_item shift.opened is exist - process it [17:10:02]req_shift_opened [17:10:02]FM_GetShiftState [17:10:02]SAM_PROTO_GetShiftState [17:10:02]wFMCommunicate request_size=4 [17:10:02]MH_SAM_APDU [17:10:02]CAPDU: 80 13 01 00 [17:10:02]Write to MH i2c: E2 08 00 24 3A 80 13 01 00 00 00 00 00 DB [17:10:02]Write i2c OK [17:10:02]MH_I2C_Read... [17:10:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:10:02]Read from MH i2c: E2 [17:10:02]MH_I2C_Read... [17:10:02]Read from MH i2c: E2 0E 00 [17:10:02]MH_I2C_Read... [17:10:02]Read from MH i2c: E2 0E 00 24 3A 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 9D [17:10:02]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [17:10:02]wFMCommunicate OK [17:10:02]SAM_PROTO_GetShiftState done [17:10:02]FM_GetShiftState done [17:10:02]req_shift_opened done [17:10:02]requested_item shift.open_date is exist - process it [17:10:02]req_shift_open_date [17:10:02]req_shift_open_date done [17:10:02]produce_requested_data done [17:10:02]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123301,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [17:10:02]process_action_free print_text [17:10:02]json_value_free [17:10:02]json_value_free done [17:10:02]process_json_proto returns [17:10:02]Send response to host [17:10:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123301,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [17:10:02]free response buf [17:10:02]execute_script done [17:10:02]execute_script returns [17:10:02]free content buf [17:10:02]Sock 9.Close socket [17:10:02]Sock 9.Thread stoped [17:10:06]OFD Sender: No OFD packet to send [17:10:11]OFD Sender: No OFD packet to send [17:10:16]OFD Sender: No OFD packet to send [17:10:21]OFD Sender: No OFD packet to send [17:10:26]OFD Sender: No OFD packet to send [17:10:31]OFD Sender: No OFD packet to send [17:10:36]OFD Sender: No OFD packet to send [17:10:41]OFD Sender: No OFD packet to send [17:10:46]OFD Sender: No OFD packet to send [17:10:51]OFD Sender: No OFD packet to send [17:10:56]OFD Sender: No OFD packet to send [17:11:01]OFD Sender: No OFD packet to send [17:11:06]OFD Sender: No OFD packet to send [17:11:10]accept exits with 7 [17:11:10]New connection [17:11:10]New thread 3067252068 created [17:11:10]Thread 3067395428 joined [17:11:10]Waiting for new connection... [17:11:10] Sock 7.Parse request [17:11:10]Sock 7.Check first char [17:11:10]Sock 7.First char is OK [17:11:10]request: POST /json_proto HTTP/1.0 [17:11:10]Method: POST [17:11:10]URL: /json_proto [17:11:10]Method is POST - this is cgi request [17:11:10]url: /json_proto [17:11:10]query_string will be loaded in cgi processing [17:11:10]execute_cgi json_proto POST (null) [17:11:10]execute_cgi path=json_proto method=POST [17:11:10]POST find Content-Length [17:11:10]Host: 172.17.48.197:8080 [17:11:10]Content-Length: 678 [17:11:10]Content-Type: application/json [17:11:10] [17:11:10]POST finish read [17:11:10]Found Content-Length = 678 [17:11:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106244", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:11:10]execute_script... [17:11: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)1106244", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:11:10]POST & json_proto [17:11:10]process_json_proto [17:11:10]json parsed OK: [17:11:10]protocol is kg_v1.0 [17:11:10]action value=close_receipt [17:11:10]process_action close_receipt [17:11:10]cmd_close_receipt [17:11:10]MH_GetDate [17:11:10]Write to MH i2c: F0 00 00 25 3A 4E [17:11:10]Write i2c OK [17:11:10]MH_I2C_Read... [17:11:10]Read from MH i2c: F0 [17:11:10]MH_I2C_Read... [17:11:10]Read from MH i2c: F0 09 00 [17:11:10]MH_I2C_Read... [17:11:10]Read from MH i2c: F0 09 00 25 3A 00 32 AF E4 65 6C AF E3 65 E4 [17:11:10]GetLastDocTimeStamp 1709485757 [17:11:10]current date 1709485874 [17:11:10]FM_GetShiftState [17:11:10]SAM_PROTO_GetShiftState [17:11:10]wFMCommunicate request_size=4 [17:11:10]MH_SAM_APDU [17:11:10]CAPDU: 80 13 01 00 [17:11:10]Write to MH i2c: E2 08 00 26 3A 80 13 01 00 00 00 00 00 DD [17:11:10]Write i2c OK [17:11:10]MH_I2C_Read... [17:11:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:11:10]Read from MH i2c: E2 [17:11:10]MH_I2C_Read... [17:11:10]Read from MH i2c: E2 0E 00 [17:11:10]MH_I2C_Read... [17:11:10]Read from MH i2c: E2 0E 00 26 3A 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 9F [17:11:10]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [17:11:10]wFMCommunicate OK [17:11:10]SAM_PROTO_GetShiftState done [17:11:10]FM_GetShiftState done [17:11:10]opened in 1709425579 [17:11:10]opened+sec_in_day 1709511979 [17:11:10]quantity*price = 50015 [17:11:10]sum+1 = 50016 [17:11:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 159 03.03.2024 17:11 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123302 ФПД: 255268555366838 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T171114&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123302&fm=255268555366838&tin=02508201610067®Number=0000000000090573&sum=50000 [17:11:11]StoreToDocumentArchive [17:11:11]shift 323 fd 123302 [17:11:11]save to /storage/0323/doc_00123302 [17:11:11]save last doc name /storage/0323/doc_00123302 to /storage/kkm_last_doc_name [17:11:11]save OK [17:11:11]Clear old archive folders... [17:11:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:11:11]tlvbuf is 00E29E60 [17:11:11]SAM_PROTO_ClearQueue [17:11:11]wFMCommunicate request_size=4 [17:11:11]MH_SAM_APDU [17:11:11]CAPDU: 80 09 00 00 [17:11:11]Write to MH i2c: E2 08 00 33 3A 80 09 00 00 00 00 00 00 DF [17:11:11]Write i2c OK [17:11:11]MH_I2C_Read... [17:11:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:11:11]Read from MH i2c: E2 [17:11:11]MH_I2C_Read... [17:11:11]Read from MH i2c: E2 03 00 [17:11:11]MH_I2C_Read... [17:11:11]Read from MH i2c: E2 03 00 33 3A 00 90 00 E1 [17:11:11]RAPDU: 90 00 [17:11:11]wFMCommunicate OK [17:11:11]SAM_PROTO_ClearQueue done [17:11:11]KKMCreateOFDPacket [17:11:11]OFDProtocolAddRootSTLVToBuf [17:11:11]FM_MakeSignedData [17:11:11]FM_MakeSignedData [17:11:11]SAM_PROTO_SignData [17:11:11]wFMCommunicate request_size=4 [17:11:11]MH_SAM_APDU [17:11:11]CAPDU: 80 0D 01 02 [17:11:11]Write to MH i2c: E2 08 00 34 3A 80 0D 01 02 00 00 00 00 E7 [17:11:11]Write i2c OK [17:11:11]MH_I2C_Read... [17:11:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:11:11]Read from MH i2c: E2 [17:11:11]MH_I2C_Read... [17:11:11]Read from MH i2c: E2 03 00 [17:11:11]MH_I2C_Read... [17:11:11]Read from MH i2c: E2 03 00 34 3A 00 90 00 E2 [17:11:11]RAPDU: 90 00 [17:11:11]wFMCommunicate OK [17:11:11]wFMCommunicate request_size=255 [17:11:11]MH_SAM_APDU [17:11:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 32 AF E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 A6 E1 01 00 35 04 06 00 E8 [17:11:11]Write to MH i2c: E2 02 01 35 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 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 32 AF E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 A6 E1 01 00 35 04 06 00 E8 00 00 44 [17:11:11]Write i2c OK [17:11:11]MH_I2C_Read... [17:11:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:11:12]Read from MH i2c: E2 [17:11:12]MH_I2C_Read... [17:11:12]Read from MH i2c: E2 03 00 [17:11:12]MH_I2C_Read... [17:11:12]Read from MH i2c: E2 03 00 35 3A 00 90 00 E3 [17:11:12]RAPDU: 90 00 [17:11:12]wFMCommunicate OK [17:11:12]wFMCommunicate request_size=10 [17:11:12]MH_SAM_APDU [17:11:12]CAPDU: 80 0D 02 02 05 2A 57 90 A1 B6 [17:11:12]Write to MH i2c: E2 0D 00 36 3A 80 0D 02 02 05 00 2A 57 90 A1 B6 00 00 5C [17:11:12]Write i2c OK [17:11:12]MH_I2C_Read... [17:11:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:11:12]Read from MH i2c: E2 [17:11:12]MH_I2C_Read... [17:11:12]Read from MH i2c: E2 03 00 [17:11:12]MH_I2C_Read... [17:11:12]Read from MH i2c: E2 03 00 36 3A 00 90 00 E4 [17:11:12]RAPDU: 90 00 [17:11:12]wFMCommunicate OK [17:11:12]wFMCommunicate request_size=4 [17:11:12]MH_SAM_APDU [17:11:12]CAPDU: 80 0D 03 02 [17:11:12]Write to MH i2c: E2 08 00 37 3A 80 0D 03 02 00 00 00 00 EC [17:11:12]Write i2c OK [17:11:12]MH_I2C_Read... [17:11:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:11:12]Read from MH i2c: E2 [17:11:12]MH_I2C_Read... [17:11:12]Read from MH i2c: E2 0B 00 [17:11:12]MH_I2C_Read... [17:11:12]Read from MH i2c: E2 0B 00 37 3A 00 24 95 80 23 61 90 E8 69 90 00 8B [17:11:12]RAPDU: 24 95 80 23 61 90 E8 69 90 00 [17:11:12]wFMCommunicate OK [17:11:12]SAM_PROTO_SignData done [17:11:12]FM_MakeSignedData done [17:11:12]CreateOFDProtocolMessage [17:11:12]wFMCommunicate request_size=4 [17:11:12]MH_SAM_APDU [17:11:12]CAPDU: 80 11 00 00 [17:11:12]Write to MH i2c: E2 08 00 38 3A 80 11 00 00 00 00 00 00 EC [17:11:12]Write i2c OK [17:11:12]MH_I2C_Read... [17:11:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:11:12]Read from MH i2c: E2 [17:11:12]MH_I2C_Read... [17:11:12]Read from MH i2c: E2 17 00 [17:11:12]MH_I2C_Read... [17:11:12]Read from MH i2c: E2 17 00 38 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 4A [17:11:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [17:11:12]wFMCommunicate OK [17:11:12]CreateOFDProtocolMessage done [17:11:12]OFDSenderStorePacket 123302 [17:11:12]StoreOFDPacket docnum=123302 [17:11:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 5B C6 07 01 7A AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 32 AF E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 A6 E1 01 00 35 04 06 00 E8 2A 57 90 A1 B6 24 95 80 23 61 90 E8 69 [17:11:12]CheckFolder [17:11:12]dirname=/storage/ofd_packets [17:11:12]CheckFolder done [17:11:12]ProducePacketName [17:11:12]name=ofd_packets/00123302 [17:11:12]NVStorageSaveData ofd_packets/00123302 [17:11:12]File name is /storage/ofd_packets/00123302 [17:11:12]Write 301 bytes [17:11:12]NVStorageSaveData done [17:11:12]OFDSenderStorePacket done [17:11:12]KKMCreateOFDPacket done [17:11:12]NVStorageSaveData kkm_last_timestamp [17:11:12]File name is /storage/kkm_last_timestamp [17:11:12]Write 4 bytes [17:11:12]NVStorageSaveData done [17:11:12]ExternCall_PrintAddStr [17:11:12]wPrintStart [17:11:12]Write to MH i2c: 01 00 00 39 3A 73 [17:11:12]Write i2c OK [17:11:12]MH_I2C_Read... [17:11:12]Read from MH i2c: 01 [17:11:12]MH_I2C_Read... [17:11:12]Read from MH i2c: 01 07 00 [17:11:12]MH_I2C_Read... [17:11:12]Read from MH i2c: 01 07 00 39 3A 00 00 00 00 00 FF 0F 88 [17:11:12]RasterBufferAndPrint [17:11:12]line Счет N : (1)1106244 [17:11:12]line ИНН: 02508201610067 [17:11:12]line Контрольно-Кассовый Чек [17:11:12]line ПРОДАЖА [17:11:12]line ТРК (МРК, ГНК) : 11 [17:11:12]line Товар: 2710124130 [17:11:12]line Аи-92-К-5 [17:11:12]line 8.080 * 61.90 [17:11:12]line = 500.15 [17:11:12]line НДС 12% НСП 1% [17:11:12]line > о реализуемом товаре [17:11:12]line ОКРУГЛЕНИЕ: -0.15 [17:11:12]line ИТОГО: 500.00 [17:11:12]line Внесено: 500.00 [17:11:12]line СДАЧА: 0.00 [17:11:12]line НСП 1% : 4.43 [17:11:12]line НДС 12% : 53.11 [17:11:12]line Наличными: 500.00 [17:11:12]line Безнал.: 0.00 [17:11:12]line Место: АЗС № 25 "Партнер Нефть" [17:11:12]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [17:11:12]line СНО: Общий режим [17:11:12]line Чек 159 03.03.2024 17:11 [17:11:12]line Смена: 323 ФФД: 1.0 [17:11:12]line ЗНМ: 0300000019 [17:11:12]line РНМ: 0000000000090573 [17:11:12]line Версия ККМ: 001 [17:11:12]line ФМ: 0000000000874798 [17:11:12]line ФД: 123302 [17:11:12]line ФПД: 255268555366838 [17:11:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T171114&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123302&fm=255268555366838&tin=02508201610067®Number=0000000000090573&sum=50000 [17:11:12]OFD Sender: Processing packet 123302 [packets to send 112, broken 111] [17:11:12]ProducePacketName [17:11:12]name=ofd_packets/00123302 [17:11:12]OFD Sender: To server: pG, [17:11:12]CommunicateWithHost lk.salyk.kg:30040 [17:11:12]ConnectInit lk.salyk.kg [17:11:12]written 0, free lines is 4095 [17:11:12]Connected sock=10 [17:11: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 37 39 38 0F 01 00 00 5B C6 07 01 7A AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 32 AF E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 A6 E1 01 00 35 04 06 00 E8 2A 57 90 A1 B6 24 95 80 23 61 90 E8 69 [17:11:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 03 6D 47 00 C9 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 37 39 38 10 04 04 00 A6 E1 01 00 F4 03 04 00 5E 5B E4 65 B6 04 01 00 00 B9 6D B5 57 01 D8 0D 9D [17:11:12]CommunicateWithHost err = 0 [17:11:12]CheckOFDResponse [17:11:12]1017 (14) - 77093643461234 [17:11:12]1041 (16) - 0000000000874798 [17:11:12]1040 (4) - 123302 [17:11:12]1012 (4) - 03.03.2024 11:13 [17:11:12]1206 (1) - 0 [17:11:12]OFD Sender: Remove packet 123302 [17:11:12]ProducePacketName [17:11:12]name=ofd_packets/00123302 [17:11:12]NVStorageDeleteData [17:11:13]Write to MH i2c: 01 00 00 64 3A 9E [17:11:13]Write i2c OK [17:11:13]MH_I2C_Read... [17:11:13]Read from MH i2c: 01 [17:11:13]MH_I2C_Read... [17:11:13]Read from MH i2c: 01 07 00 [17:11:13]MH_I2C_Read... [17:11:13]Read from MH i2c: 01 07 00 64 3A 00 00 00 00 00 F2 0C A3 [17:11:13]RasterBufferAndPrint [17:11:13]line [17:11:13]line [17:11:13]line [17:11:13]line [17:11:13]line [17:11:13]written 0, free lines is 3323 [17:11:13]MH_Cut [17:11:13]Write to MH i2c: D1 01 00 6B 3A 01 77 [17:11:13]Write i2c OK [17:11:13]MH_I2C_Read... [17:11:13]Read from MH i2c: D1 [17:11:13]MH_I2C_Read... [17:11:13]Read from MH i2c: D1 01 00 [17:11:13]MH_I2C_Read... [17:11:13]Read from MH i2c: D1 01 00 6B 3A 00 76 [17:11:13]Write to MH i2c: 01 00 00 6C 3A A6 [17:11:13]Write i2c OK [17:11:13]MH_I2C_Read... [17:11:13]OFD Sender: No OFD packet to send [17:11:13]*** Cut start [17:11:13]*** Purtial cut [17:11:13]*** Stage 1: CUTSNS_PIN = 1 [17:11:15]Read from MH i2c: 01 [17:11:15]MH_I2C_Read... [17:11:15]*** Stop cut motor [17:11:15]*** Cut end [17:11:15]Read from MH i2c: 01 07 00 [17:11:15]MH_I2C_Read... [17:11:15]Read from MH i2c: 01 07 00 6C 3A 00 00 00 00 00 FF 0F BB [17:11:15]process_action close_receipt done [17:11:15]requested_data is exist [17:11:15]produce_requested_data [17:11:15]requested_item fm.sn is exist - process it [17:11:15]wFMCommunicate request_size=4 [17:11:15]MH_SAM_APDU [17:11:15]CAPDU: 80 11 00 00 [17:11:15]Write to MH i2c: E2 08 00 6D 3A 80 11 00 00 00 00 00 00 21 [17:11:15]Write i2c OK [17:11:15]MH_I2C_Read... [17:11:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:11:15]Read from MH i2c: E2 [17:11:15]MH_I2C_Read... [17:11:15]Read from MH i2c: E2 17 00 [17:11:15]MH_I2C_Read... [17:11:15]Read from MH i2c: E2 17 00 6D 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 7F [17:11:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [17:11:15]wFMCommunicate OK [17:11:15]requested_item fd.num is exist - process it [17:11:15]SAM_PROTO_GetFieldsCounters [17:11:15]wFMCommunicate request_size=4 [17:11:15]MH_SAM_APDU [17:11:15]CAPDU: 80 13 00 00 [17:11:15]Write to MH i2c: E2 08 00 6E 3A 80 13 00 00 00 00 00 00 24 [17:11:15]Write i2c OK [17:11:15]MH_I2C_Read... [17:11:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:11:16]Read from MH i2c: E2 [17:11:16]MH_I2C_Read... [17:11:16]Read from MH i2c: E2 62 00 [17:11:16]MH_I2C_Read... [17:11:16]Read from MH i2c: E2 62 00 6E 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 A6 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 F8 [17:11: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 A6 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:11:16]wFMCommunicate OK [17:11:16]SAM_PROTO_GetFieldsCounters done [17:11:16]requested_item shift.num is exist - process it [17:11:16]requested_item shift.opened is exist - process it [17:11:16]req_shift_opened [17:11:16]FM_GetShiftState [17:11:16]SAM_PROTO_GetShiftState [17:11:16]wFMCommunicate request_size=4 [17:11:16]MH_SAM_APDU [17:11:16]CAPDU: 80 13 01 00 [17:11:16]Write to MH i2c: E2 08 00 6F 3A 80 13 01 00 00 00 00 00 26 [17:11:16]Write i2c OK [17:11:16]MH_I2C_Read... [17:11:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:11:16]Read from MH i2c: E2 [17:11:16]MH_I2C_Read... [17:11:16]Read from MH i2c: E2 0E 00 [17:11:16]MH_I2C_Read... [17:11:16]Read from MH i2c: E2 0E 00 6F 3A 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 E8 [17:11:16]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [17:11:16]wFMCommunicate OK [17:11:16]SAM_PROTO_GetShiftState done [17:11:16]FM_GetShiftState done [17:11:16]req_shift_opened done [17:11:16]requested_item shift.open_date is exist - process it [17:11:16]req_shift_open_date [17:11:16]req_shift_open_date done [17:11:16]produce_requested_data done [17:11:16]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123302,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [17:11:16]process_action_free close_receipt [17:11:16]json_value_free [17:11:16]json_value_free done [17:11:16]process_json_proto returns [17:11:16]Send response to host [17:11:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123302,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [17:11:16]free response buf [17:11:16]execute_script done [17:11:16]execute_script returns [17:11:16]free content buf [17:11:16]Sock 7.Close socket [17:11:16]Sock 7.Thread stoped [17:11:18]OFD Sender: No OFD packet to send [17:11:23]OFD Sender: No OFD packet to send [17:11:28]OFD Sender: No OFD packet to send [17:11:33]OFD Sender: No OFD packet to send [17:11:38]OFD Sender: No OFD packet to send [17:11:43]OFD Sender: No OFD packet to send [17:11:48]OFD Sender: No OFD packet to send [17:11:53]OFD Sender: No OFD packet to send [17:11:58]OFD Sender: No OFD packet to send [17:12:03]OFD Sender: No OFD packet to send [17:12:08]OFD Sender: No OFD packet to send [17:12:13]OFD Sender: No OFD packet to send [17:12:18]OFD Sender: No OFD packet to send [17:12:23]OFD Sender: No OFD packet to send [17:12:28]OFD Sender: No OFD packet to send [17:12:33]OFD Sender: No OFD packet to send [17:12:38]OFD Sender: No OFD packet to send [17:12:43]OFD Sender: No OFD packet to send [17:12:48]OFD Sender: No OFD packet to send [17:12:53]OFD Sender: No OFD packet to send [17:12:58]OFD Sender: No OFD packet to send [17:13:03]OFD Sender: No OFD packet to send [17:13:08]OFD Sender: No OFD packet to send [17:13:13]OFD Sender: No OFD packet to send [17:13:18]OFD Sender: No OFD packet to send [17:13:23]OFD Sender: No OFD packet to send [17:13:28]OFD Sender: No OFD packet to send [17:13:33]OFD Sender: No OFD packet to send [17:13:38]OFD Sender: No OFD packet to send [17:13:43]OFD Sender: No OFD packet to send [17:13:48]OFD Sender: No OFD packet to send [17:13:53]OFD Sender: No OFD packet to send [17:13:58]OFD Sender: No OFD packet to send [17:14:03]OFD Sender: No OFD packet to send [17:14:08]OFD Sender: No OFD packet to send [17:14:13]OFD Sender: No OFD packet to send [17:14:18]OFD Sender: No OFD packet to send [17:14:23]OFD Sender: No OFD packet to send [17:14:28]OFD Sender: No OFD packet to send [17:14:33]OFD Sender: No OFD packet to send [17:14:38]OFD Sender: No OFD packet to send [17:14:39]accept exits with 9 [17:14:39]New connection [17:14:39]New thread 3067395428 created [17:14:39]Thread 3067252068 joined [17:14:39]Waiting for new connection... [17:14:39] Sock 9.Parse request [17:14:39]Sock 9.Check first char [17:14:39]Sock 9.First char is OK [17:14:39]request: POST /json_proto HTTP/1.0 [17:14:39]Method: POST [17:14:39]URL: /json_proto [17:14:39]Method is POST - this is cgi request [17:14:39]url: /json_proto [17:14:39]query_string will be loaded in cgi processing [17:14:39]execute_cgi json_proto POST (null) [17:14:39]execute_cgi path=json_proto method=POST [17:14:39]POST find Content-Length [17:14:39]Host: 172.17.48.197:8080 [17:14:39]Content-Length: 683 [17:14:39]Content-Type: application/json [17:14:39] [17:14:39]POST finish read [17:14:39]Found Content-Length = 683 [17:14:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106245", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 32.320, "sum" : 2000.61, "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" ] } } [17:14:39]execute_script... [17:14: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)1106245", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 32.320, "sum" : 2000.61, "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" ] } } [17:14:39]POST & json_proto [17:14:39]process_json_proto [17:14:39]json parsed OK: [17:14:39]protocol is kg_v1.0 [17:14:39]action value=close_receipt [17:14:39]process_action close_receipt [17:14:39]cmd_close_receipt [17:14:39]MH_GetDate [17:14:39]Write to MH i2c: F0 00 00 70 3A 99 [17:14:39]Write i2c OK [17:14:39]MH_I2C_Read... [17:14:39]Read from MH i2c: F0 [17:14:39]MH_I2C_Read... [17:14:39]Read from MH i2c: F0 09 00 [17:14:39]MH_I2C_Read... [17:14:39]Read from MH i2c: F0 09 00 70 3A 00 03 B0 E4 65 6C AF E3 65 01 [17:14:39]GetLastDocTimeStamp 1709485874 [17:14:39]current date 1709486083 [17:14:39]FM_GetShiftState [17:14:39]SAM_PROTO_GetShiftState [17:14:39]wFMCommunicate request_size=4 [17:14:39]MH_SAM_APDU [17:14:39]CAPDU: 80 13 01 00 [17:14:39]Write to MH i2c: E2 08 00 71 3A 80 13 01 00 00 00 00 00 28 [17:14:39]Write i2c OK [17:14:39]MH_I2C_Read... [17:14:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:14:39]Read from MH i2c: E2 [17:14:39]MH_I2C_Read... [17:14:39]Read from MH i2c: E2 0E 00 [17:14:39]MH_I2C_Read... [17:14:39]Read from MH i2c: E2 0E 00 71 3A 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 EA [17:14:39]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [17:14:39]wFMCommunicate OK [17:14:39]SAM_PROTO_GetShiftState done [17:14:39]FM_GetShiftState done [17:14:39]opened in 1709425579 [17:14:39]opened+sec_in_day 1709511979 [17:14:39]quantity*price = 200060 [17:14:39]sum+1 = 200062 [17:14:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.45 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 160 03.03.2024 17:14 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123303 ФПД: 43291566466104 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T171443&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123303&fm=43291566466104&tin=02508201610067®Number=0000000000090573&sum=200000 [17:14:40]StoreToDocumentArchive [17:14:40]shift 323 fd 123303 [17:14:40]save to /storage/0323/doc_00123303 [17:14:40]save last doc name /storage/0323/doc_00123303 to /storage/kkm_last_doc_name [17:14:40]save OK [17:14:40]Clear old archive folders... [17:14:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:14:40]tlvbuf is 00D9E590 [17:14:40]SAM_PROTO_ClearQueue [17:14:40]wFMCommunicate request_size=4 [17:14:40]MH_SAM_APDU [17:14:40]CAPDU: 80 09 00 00 [17:14:40]Write to MH i2c: E2 08 00 7E 3A 80 09 00 00 00 00 00 00 2A [17:14:40]Write i2c OK [17:14:40]MH_I2C_Read... [17:14:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:14:40]Read from MH i2c: E2 [17:14:40]MH_I2C_Read... [17:14:40]Read from MH i2c: E2 03 00 [17:14:40]MH_I2C_Read... [17:14:40]Read from MH i2c: E2 03 00 7E 3A 00 90 00 2C [17:14:40]RAPDU: 90 00 [17:14:40]wFMCommunicate OK [17:14:40]SAM_PROTO_ClearQueue done [17:14:40]KKMCreateOFDPacket [17:14:40]OFDProtocolAddRootSTLVToBuf [17:14:40]FM_MakeSignedData [17:14:40]FM_MakeSignedData [17:14:40]SAM_PROTO_SignData [17:14:40]wFMCommunicate request_size=4 [17:14:40]MH_SAM_APDU [17:14:40]CAPDU: 80 0D 01 02 [17:14:40]Write to MH i2c: E2 08 00 7F 3A 80 0D 01 02 00 00 00 00 32 [17:14:40]Write i2c OK [17:14:40]MH_I2C_Read... [17:14:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:14:40]Read from MH i2c: E2 [17:14:40]MH_I2C_Read... [17:14:40]Read from MH i2c: E2 03 00 [17:14:40]MH_I2C_Read... [17:14:40]Read from MH i2c: E2 03 00 7F 3A 00 90 00 2D [17:14:40]RAPDU: 90 00 [17:14:40]wFMCommunicate OK [17:14:40]wFMCommunicate request_size=255 [17:14:40]MH_SAM_APDU [17:14: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 35 FF 03 08 00 03 40 7E 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 7D 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 FD 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 A0 00 00 00 F4 03 04 00 03 B0 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 A7 E1 01 00 35 04 06 00 27 [17:14:40]Write to MH i2c: E2 02 01 80 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 35 FF 03 08 00 03 40 7E 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 7D 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 FD 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 A0 00 00 00 F4 03 04 00 03 B0 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 A7 E1 01 00 35 04 06 00 27 00 00 46 [17:14:40]Write i2c OK [17:14:40]MH_I2C_Read... [17:14:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:14:41]Read from MH i2c: E2 [17:14:41]MH_I2C_Read... [17:14:41]Read from MH i2c: E2 03 00 [17:14:41]MH_I2C_Read... [17:14:41]Read from MH i2c: E2 03 00 80 3A 00 90 00 2E [17:14:41]RAPDU: 90 00 [17:14:41]wFMCommunicate OK [17:14:41]wFMCommunicate request_size=10 [17:14:41]MH_SAM_APDU [17:14:41]CAPDU: 80 0D 02 02 05 5F 9A 70 E4 38 [17:14:41]Write to MH i2c: E2 0D 00 81 3A 80 0D 02 02 05 00 5F 9A 70 E4 38 00 00 C4 [17:14:41]Write i2c OK [17:14:41]MH_I2C_Read... [17:14:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:14:41]Read from MH i2c: E2 [17:14:41]MH_I2C_Read... [17:14:41]Read from MH i2c: E2 03 00 [17:14:41]MH_I2C_Read... [17:14:41]Read from MH i2c: E2 03 00 81 3A 00 90 00 2F [17:14:41]RAPDU: 90 00 [17:14:41]wFMCommunicate OK [17:14:41]wFMCommunicate request_size=4 [17:14:41]MH_SAM_APDU [17:14:41]CAPDU: 80 0D 03 02 [17:14:41]Write to MH i2c: E2 08 00 82 3A 80 0D 03 02 00 00 00 00 37 [17:14:41]Write i2c OK [17:14:41]MH_I2C_Read... [17:14:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:14:41]Read from MH i2c: E2 [17:14:41]MH_I2C_Read... [17:14:41]Read from MH i2c: E2 0B 00 [17:14:41]MH_I2C_Read... [17:14:41]Read from MH i2c: E2 0B 00 82 3A 00 0A 4F 2B 09 FA 65 EB B7 90 00 C6 [17:14:41]RAPDU: 0A 4F 2B 09 FA 65 EB B7 90 00 [17:14:41]wFMCommunicate OK [17:14:41]SAM_PROTO_SignData done [17:14:41]FM_MakeSignedData done [17:14:41]CreateOFDProtocolMessage [17:14:41]wFMCommunicate request_size=4 [17:14:41]MH_SAM_APDU [17:14:41]CAPDU: 80 11 00 00 [17:14:41]Write to MH i2c: E2 08 00 83 3A 80 11 00 00 00 00 00 00 37 [17:14:41]Write i2c OK [17:14:41]MH_I2C_Read... [17:14:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:14:41]Read from MH i2c: E2 [17:14:41]MH_I2C_Read... [17:14:41]Read from MH i2c: E2 17 00 [17:14:41]MH_I2C_Read... [17:14:41]Read from MH i2c: E2 17 00 83 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 95 [17:14:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [17:14:41]wFMCommunicate OK [17:14:41]CreateOFDProtocolMessage done [17:14:41]OFDSenderStorePacket 123303 [17:14:41]StoreOFDPacket docnum=123303 [17:14:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 56 1F 07 01 23 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 7E 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 7D 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 FD 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 A0 00 00 00 F4 03 04 00 03 B0 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 A7 E1 01 00 35 04 06 00 27 5F 9A 70 E4 38 0A 4F 2B 09 FA 65 EB B7 [17:14:41]CheckFolder [17:14:41]dirname=/storage/ofd_packets [17:14:41]CheckFolder done [17:14:41]ProducePacketName [17:14:41]name=ofd_packets/00123303 [17:14:41]NVStorageSaveData ofd_packets/00123303 [17:14:41]File name is /storage/ofd_packets/00123303 [17:14:41]Write 301 bytes [17:14:41]NVStorageSaveData done [17:14:41]OFDSenderStorePacket done [17:14:41]KKMCreateOFDPacket done [17:14:41]NVStorageSaveData kkm_last_timestamp [17:14:41]File name is /storage/kkm_last_timestamp [17:14:41]Write 4 bytes [17:14:41]NVStorageSaveData done [17:14:41]ExternCall_PrintAddStr [17:14:41]wPrintStart [17:14:41]Write to MH i2c: 01 00 00 84 3A BE [17:14:41]Write i2c OK [17:14:41]MH_I2C_Read... [17:14:41]Read from MH i2c: 01 [17:14:41]MH_I2C_Read... [17:14:41]Read from MH i2c: 01 07 00 [17:14:41]MH_I2C_Read... [17:14:41]Read from MH i2c: 01 07 00 84 3A 00 00 00 00 00 FF 0F D3 [17:14:41]RasterBufferAndPrint [17:14:41]line Счет N : (1)1106245 [17:14:41]line ИНН: 02508201610067 [17:14:41]line Контрольно-Кассовый Чек [17:14:41]line ПРОДАЖА [17:14:41]line ТРК (МРК, ГНК) : 52 [17:14:41]line Товар: 2710124130 [17:14:41]line Аи-92-К-5 [17:14:41]line 32.320 * 61.90 [17:14:41]line = 2000.61 [17:14:41]line НДС 12% НСП 1% [17:14:41]line > о реализуемом товаре [17:14:41]line ОКРУГЛЕНИЕ: -0.61 [17:14:41]line ИТОГО: 2000.00 [17:14:41]line Внесено: 2000.00 [17:14:41]line СДАЧА: 0.00 [17:14:41]line НСП 1% : 17.70 [17:14:41]line НДС 12% : 212.45 [17:14:41]line Наличными: 2000.00 [17:14:41]line Безнал.: 0.00 [17:14:41]line Место: АЗС № 25 "Партнер Нефть" [17:14:41]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [17:14:41]line СНО: Общий режим [17:14:41]line Чек 160 03.03.2024 17:14 [17:14:41]line Смена: 323 ФФД: 1.0 [17:14:41]line ЗНМ: 0300000019 [17:14:41]line РНМ: 0000000000090573 [17:14:41]line Версия ККМ: 001 [17:14:41]line ФМ: 0000000000874798 [17:14:41]line ФД: 123303 [17:14:41]line ФПД: 43291566466104 [17:14:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T171443&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123303&fm=43291566466104&tin=02508201610067®Number=0000000000090573&sum=200000 [17:14:41]OFD Sender: Processing packet 123303 [packets to send 112, broken 111] [17:14:41]ProducePacketName [17:14:41]name=ofd_packets/00123303 [17:14:41]OFD Sender: To server: pG, [17:14:41]CommunicateWithHost lk.salyk.kg:30040 [17:14:41]ConnectInit lk.salyk.kg [17:14:41]written 0, free lines is 4095 [17:14:41]Connected sock=10 [17:14: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 37 39 38 0F 01 00 00 56 1F 07 01 23 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 7E 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 7D 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 FD 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 A0 00 00 00 F4 03 04 00 03 B0 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 A7 E1 01 00 35 04 06 00 27 5F 9A 70 E4 38 0A 4F 2B 09 FA 65 EB B7 [17:14:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 B7 19 47 00 A1 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 37 39 38 10 04 04 00 A7 E1 01 00 F4 03 04 00 2E 5C E4 65 B6 04 01 00 00 5D 57 09 67 0B 52 F7 D1 [17:14:41]CommunicateWithHost err = 0 [17:14:41]CheckOFDResponse [17:14:41]1017 (14) - 77093643461234 [17:14:41]1041 (16) - 0000000000874798 [17:14:41]1040 (4) - 123303 [17:14:41]1012 (4) - 03.03.2024 11:17 [17:14:41]1206 (1) - 0 [17:14:41]OFD Sender: Remove packet 123303 [17:14:41]ProducePacketName [17:14:41]name=ofd_packets/00123303 [17:14:41]NVStorageDeleteData [17:14:42]Write to MH i2c: 01 00 00 AF 3A E9 [17:14:42]Write i2c OK [17:14:42]MH_I2C_Read... [17:14:42]Read from MH i2c: 01 [17:14:42]MH_I2C_Read... [17:14:42]Read from MH i2c: 01 07 00 [17:14:42]MH_I2C_Read... [17:14:42]Read from MH i2c: 01 07 00 AF 3A 00 00 00 00 00 E3 0C DF [17:14:42]RasterBufferAndPrint [17:14:42]line [17:14:42]line [17:14:42]line [17:14:42]line [17:14:42]line [17:14:42]written 0, free lines is 3305 [17:14:42]MH_Cut [17:14:42]Write to MH i2c: D1 01 00 B6 3A 01 C2 [17:14:42]Write i2c OK [17:14:42]MH_I2C_Read... [17:14:42]Read from MH i2c: D1 [17:14:42]MH_I2C_Read... [17:14:42]Read from MH i2c: D1 01 00 [17:14:42]MH_I2C_Read... [17:14:42]Read from MH i2c: D1 01 00 B6 3A 00 C1 [17:14:42]Write to MH i2c: 01 00 00 B7 3A F1 [17:14:42]Write i2c OK [17:14:42]MH_I2C_Read... [17:14:42]OFD Sender: No OFD packet to send [17:14:42]*** Cut start [17:14:42]*** Purtial cut [17:14:42]*** Stage 1: CUTSNS_PIN = 1 [17:14:44]Read from MH i2c: 01 [17:14:44]MH_I2C_Read... [17:14:44]*** Stop cut motor [17:14:44]*** Cut end [17:14:44]Read from MH i2c: 01 07 00 [17:14:44]MH_I2C_Read... [17:14:44]Read from MH i2c: 01 07 00 B7 3A 00 00 00 00 00 FF 0F 06 [17:14:44]process_action close_receipt done [17:14:44]requested_data is exist [17:14:44]produce_requested_data [17:14:44]requested_item fm.sn is exist - process it [17:14:44]wFMCommunicate request_size=4 [17:14:44]MH_SAM_APDU [17:14:44]CAPDU: 80 11 00 00 [17:14:44]Write to MH i2c: E2 08 00 B8 3A 80 11 00 00 00 00 00 00 6C [17:14:44]Write i2c OK [17:14:44]MH_I2C_Read... [17:14:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:14:44]Read from MH i2c: E2 [17:14:44]MH_I2C_Read... [17:14:44]Read from MH i2c: E2 17 00 [17:14:44]MH_I2C_Read... [17:14:44]Read from MH i2c: E2 17 00 B8 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 CA [17:14:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [17:14:44]wFMCommunicate OK [17:14:44]requested_item fd.num is exist - process it [17:14:44]SAM_PROTO_GetFieldsCounters [17:14:44]wFMCommunicate request_size=4 [17:14:44]MH_SAM_APDU [17:14:44]CAPDU: 80 13 00 00 [17:14:44]Write to MH i2c: E2 08 00 B9 3A 80 13 00 00 00 00 00 00 6F [17:14:44]Write i2c OK [17:14:44]MH_I2C_Read... [17:14:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:14:44]Read from MH i2c: E2 [17:14:44]MH_I2C_Read... [17:14:44]Read from MH i2c: E2 62 00 [17:14:44]MH_I2C_Read... [17:14:44]Read from MH i2c: E2 62 00 B9 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 A7 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 47 [17:14: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 A7 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:14:44]wFMCommunicate OK [17:14:44]SAM_PROTO_GetFieldsCounters done [17:14:44]requested_item shift.num is exist - process it [17:14:44]requested_item shift.opened is exist - process it [17:14:44]req_shift_opened [17:14:44]FM_GetShiftState [17:14:44]SAM_PROTO_GetShiftState [17:14:44]wFMCommunicate request_size=4 [17:14:44]MH_SAM_APDU [17:14:44]CAPDU: 80 13 01 00 [17:14:44]Write to MH i2c: E2 08 00 BA 3A 80 13 01 00 00 00 00 00 71 [17:14:44]Write i2c OK [17:14:44]MH_I2C_Read... [17:14:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:14:44]Read from MH i2c: E2 [17:14:44]MH_I2C_Read... [17:14:44]Read from MH i2c: E2 0E 00 [17:14:44]MH_I2C_Read... [17:14:44]Read from MH i2c: E2 0E 00 BA 3A 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 33 [17:14:44]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [17:14:44]wFMCommunicate OK [17:14:44]SAM_PROTO_GetShiftState done [17:14:44]FM_GetShiftState done [17:14:44]req_shift_opened done [17:14:44]requested_item shift.open_date is exist - process it [17:14:44]req_shift_open_date [17:14:44]req_shift_open_date done [17:14:44]produce_requested_data done [17:14:44]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123303,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [17:14:44]process_action_free close_receipt [17:14:44]json_value_free [17:14:44]json_value_free done [17:14:44]process_json_proto returns [17:14:44]Send response to host [17:14:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123303,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [17:14:44]free response buf [17:14:44]execute_script done [17:14:44]execute_script returns [17:14:44]free content buf [17:14:44]Sock 9.Close socket [17:14:44]Sock 9.Thread stoped [17:14:47]OFD Sender: No OFD packet to send [17:14:52]OFD Sender: No OFD packet to send [17:14:57]OFD Sender: No OFD packet to send [17:15:02]OFD Sender: No OFD packet to send [17:15:07]OFD Sender: No OFD packet to send [17:15:12]OFD Sender: No OFD packet to send [17:15:17]OFD Sender: No OFD packet to send [17:15:22]OFD Sender: No OFD packet to send [17:15:27]OFD Sender: No OFD packet to send [17:15:32]OFD Sender: No OFD packet to send [17:15:37]OFD Sender: No OFD packet to send [17:15:42]OFD Sender: No OFD packet to send [17:15:47]OFD Sender: No OFD packet to send [17:15:52]OFD Sender: No OFD packet to send [17:15:57]OFD Sender: No OFD packet to send [17:16:02]OFD Sender: No OFD packet to send [17:16:07]OFD Sender: No OFD packet to send [17:16:12]OFD Sender: No OFD packet to send [17:16:17]OFD Sender: No OFD packet to send [17:16:19]int [17:16:19]Write to MH i2c: 01 00 00 BB 3A F5 [17:16:19]*** FLAG_PRN_KEY set [17:16:19]Write i2c OK [17:16:19]MH_I2C_Read... [17:16:19]Read from MH i2c: 01 [17:16:19]MH_I2C_Read... [17:16:19]Read from MH i2c: 01 07 00 [17:16:19]MH_I2C_Read... [17:16:19]Read from MH i2c: 01 07 00 BB 3A 00 08 00 00 00 FF 0F 12 [17:16:19]state=0 [17:16:19]Key pressed [17:16:19]Feed [17:16:19]Write to MH i2c: D8 00 00 BC 3A CD [17:16:19]Write i2c OK [17:16:19]MH_I2C_Read... [17:16:19]Read from MH i2c: D8 [17:16:19]MH_I2C_Read... [17:16:19]Read from MH i2c: D8 01 00 [17:16:19]MH_I2C_Read... [17:16:19]Read from MH i2c: D8 01 00 BC 3A 00 CE [17:16:19]int [17:16:19]Write to MH i2c: 01 00 00 BD 3A F7 [17:16:19]Write i2c OK [17:16:19]MH_I2C_Read... [17:16:19]Read from MH i2c: 01 [17:16:19]MH_I2C_Read... [17:16:19]Read from MH i2c: 01 07 00 [17:16:19]MH_I2C_Read... [17:16:19]Read from MH i2c: 01 07 00 BD 3A 00 48 00 00 00 3C 00 82 [17:16:19]state=2 [17:16:19]Key pressed [17:16:20]int [17:16:20]Write to MH i2c: 01 00 00 BE 3A F8 [17:16:20]*** FLAG_PRN_KEY reset [17:16:20]Write i2c OK [17:16:20]MH_I2C_Read... [17:16:20]Read from MH i2c: 01 [17:16:20]MH_I2C_Read... [17:16:20]Read from MH i2c: 01 07 00 [17:16:20]MH_I2C_Read... [17:16:20]Read from MH i2c: 01 07 00 BE 3A 00 00 00 00 00 FD 0F 0B [17:16:20]state=2 [17:16:20]Stop feed [17:16:20]int [17:16:20]Write to MH i2c: 01 00 00 BF 3A F9 [17:16:20]*** FLAG_PRN_KEY set [17:16:20]Write i2c OK [17:16:20]MH_I2C_Read... [17:16:20]Read from MH i2c: 01 [17:16:20]MH_I2C_Read... [17:16:20]Read from MH i2c: 01 07 00 [17:16:20]MH_I2C_Read... [17:16:20]Read from MH i2c: 01 07 00 BF 3A 00 08 00 00 00 FF 0F 16 [17:16:20]state=0 [17:16:20]Key pressed [17:16:20]Feed [17:16:20]Write to MH i2c: D8 00 00 C0 3A D1 [17:16:20]Write i2c OK [17:16:20]MH_I2C_Read... [17:16:20]Read from MH i2c: D8 [17:16:20]MH_I2C_Read... [17:16:20]Read from MH i2c: D8 01 00 [17:16:20]MH_I2C_Read... [17:16:20]Read from MH i2c: D8 01 00 C0 3A 00 D2 [17:16:20]int [17:16:20]Write to MH i2c: 01 00 00 C1 3A FB [17:16:20]Write i2c OK [17:16:20]MH_I2C_Read... [17:16:20]Read from MH i2c: 01 [17:16:20]MH_I2C_Read... [17:16:20]Read from MH i2c: 01 07 00 [17:16:20]MH_I2C_Read... [17:16:20]Read from MH i2c: 01 07 00 C1 3A 00 48 00 00 00 3C 00 86 [17:16:20]state=2 [17:16:20]Key pressed [17:16:20]int [17:16:20]Write to MH i2c: 01 00 00 C2 3A FC [17:16:20]*** FLAG_PRN_KEY reset [17:16:20]Write i2c OK [17:16:20]MH_I2C_Read... [17:16:20]Read from MH i2c: 01 [17:16:20]MH_I2C_Read... [17:16:20]Read from MH i2c: 01 07 00 [17:16:20]MH_I2C_Read... [17:16:20]Read from MH i2c: 01 07 00 C2 3A 00 00 00 00 00 F6 0F 08 [17:16:20]state=2 [17:16:20]Stop feed [17:16:22]OFD Sender: No OFD packet to send [17:16:27]OFD Sender: No OFD packet to send [17:16:32]OFD Sender: No OFD packet to send [17:16:37]OFD Sender: No OFD packet to send [17:16:42]OFD Sender: No OFD packet to send [17:16:47]OFD Sender: No OFD packet to send [17:16:52]OFD Sender: No OFD packet to send [17:16:57]OFD Sender: No OFD packet to send [17:17:02]OFD Sender: No OFD packet to send [17:17:07]OFD Sender: No OFD packet to send [17:17:12]OFD Sender: No OFD packet to send [17:17:17]OFD Sender: No OFD packet to send [17:17:22]OFD Sender: No OFD packet to send [17:17:27]OFD Sender: No OFD packet to send [17:17:32]OFD Sender: No OFD packet to send [17:17:37]OFD Sender: No OFD packet to send [17:17:42]OFD Sender: No OFD packet to send [17:17:47]OFD Sender: No OFD packet to send [17:17:52]OFD Sender: No OFD packet to send [17:17:57]OFD Sender: No OFD packet to send [17:18:02]OFD Sender: No OFD packet to send [17:18:07]OFD Sender: No OFD packet to send [17:18:12]OFD Sender: No OFD packet to send [17:18:17]OFD Sender: No OFD packet to send [17:18:22]OFD Sender: No OFD packet to send [17:18:27]OFD Sender: No OFD packet to send [17:18:32]OFD Sender: No OFD packet to send [17:18:37]OFD Sender: No OFD packet to send [17:18:42]OFD Sender: No OFD packet to send [17:18:47]OFD Sender: No OFD packet to send [17:18:52]OFD Sender: No OFD packet to send [17:18:57]OFD Sender: No OFD packet to send [17:19:02]OFD Sender: No OFD packet to send [17:19:07]OFD Sender: No OFD packet to send [17:19:12]OFD Sender: No OFD packet to send [17:19:17]OFD Sender: No OFD packet to send [17:19:22]OFD Sender: No OFD packet to send [17:19:27]OFD Sender: No OFD packet to send [17:19:32]OFD Sender: No OFD packet to send [17:19:37]OFD Sender: No OFD packet to send [17:19:42]OFD Sender: No OFD packet to send [17:19:47]OFD Sender: No OFD packet to send [17:19:52]OFD Sender: No OFD packet to send [17:19:57]OFD Sender: No OFD packet to send [17:20:02]OFD Sender: No OFD packet to send [17:20:07]OFD Sender: No OFD packet to send [17:20:12]OFD Sender: No OFD packet to send [17:20:17]OFD Sender: No OFD packet to send [17:20:22]OFD Sender: No OFD packet to send [17:20:27]OFD Sender: No OFD packet to send [17:20:32]OFD Sender: No OFD packet to send [17:20:37]OFD Sender: No OFD packet to send [17:20:42]OFD Sender: No OFD packet to send [17:20:47]OFD Sender: No OFD packet to send [17:20:52]OFD Sender: No OFD packet to send [17:20:57]OFD Sender: No OFD packet to send [17:21:02]OFD Sender: No OFD packet to send [17:21:07]OFD Sender: No OFD packet to send [17:21:12]OFD Sender: No OFD packet to send [17:21:17]OFD Sender: No OFD packet to send [17:21:22]OFD Sender: No OFD packet to send [17:21:27]OFD Sender: No OFD packet to send [17:21:32]OFD Sender: No OFD packet to send [17:21:37]OFD Sender: No OFD packet to send [17:21:42]OFD Sender: No OFD packet to send [17:21:47]OFD Sender: No OFD packet to send [17:21:52]OFD Sender: No OFD packet to send [17:21:57]OFD Sender: No OFD packet to send [17:22:02]OFD Sender: No OFD packet to send [17:22:07]OFD Sender: No OFD packet to send [17:22:08]accept exits with 7 [17:22:08]New connection [17:22:08]New thread 3067252068 created [17:22:08]Thread 3067395428 joined [17:22:08]Waiting for new connection... [17:22:08] Sock 7.Parse request [17:22:08]Sock 7.Check first char [17:22:08]Sock 7.First char is OK [17:22:08]request: POST /json_proto HTTP/1.0 [17:22:08]Method: POST [17:22:08]URL: /json_proto [17:22:08]Method is POST - this is cgi request [17:22:08]url: /json_proto [17:22:08]query_string will be loaded in cgi processing [17:22:08]execute_cgi json_proto POST (null) [17:22:08]execute_cgi path=json_proto method=POST [17:22:08]POST find Content-Length [17:22:08]Host: 172.17.48.197:8080 [17:22:08]Content-Length: 643 [17:22:08]Content-Type: application/json [17:22:08] [17:22:08]POST finish read [17:22:08]Found Content-Length = 643 [17:22:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106246", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 30.000, "sum" : 1857.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1857.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:22:08]execute_script... [17:22: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)1106246", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 30.000, "sum" : 1857.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1857.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:22:08]POST & json_proto [17:22:08]process_json_proto [17:22:08]json parsed OK: [17:22:08]protocol is kg_v1.0 [17:22:08]action value=close_receipt [17:22:08]process_action close_receipt [17:22:08]cmd_close_receipt [17:22:08]MH_GetDate [17:22:08]Write to MH i2c: F0 00 00 C3 3A EC [17:22:08]Write i2c OK [17:22:08]MH_I2C_Read... [17:22:08]Read from MH i2c: F0 [17:22:08]MH_I2C_Read... [17:22:08]Read from MH i2c: F0 09 00 [17:22:08]MH_I2C_Read... [17:22:08]Read from MH i2c: F0 09 00 C3 3A 00 C4 B1 E4 65 6C AF E3 65 16 [17:22:08]GetLastDocTimeStamp 1709486083 [17:22:08]current date 1709486532 [17:22:08]FM_GetShiftState [17:22:08]SAM_PROTO_GetShiftState [17:22:08]wFMCommunicate request_size=4 [17:22:08]MH_SAM_APDU [17:22:08]CAPDU: 80 13 01 00 [17:22:08]Write to MH i2c: E2 08 00 C4 3A 80 13 01 00 00 00 00 00 7B [17:22:08]Write i2c OK [17:22:08]MH_I2C_Read... [17:22:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:22:08]Read from MH i2c: E2 [17:22:08]MH_I2C_Read... [17:22:08]Read from MH i2c: E2 0E 00 [17:22:08]MH_I2C_Read... [17:22:08]Read from MH i2c: E2 0E 00 C4 3A 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 3D [17:22:08]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [17:22:08]wFMCommunicate OK [17:22:08]SAM_PROTO_GetShiftState done [17:22:08]FM_GetShiftState done [17:22:08]opened in 1709425579 [17:22:08]opened+sec_in_day 1709511979 [17:22:08]quantity*price = 185700 [17:22:08]sum+1 = 185701 [17:22:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1857.00 НСП 1% : 16.43 НДС 12% : 197.20 Наличными: 1857.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 161 03.03.2024 17:22 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123304 ФПД: 138788387158505 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T172212&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123304&fm=138788387158505&tin=02508201610067®Number=0000000000090573&sum=185700 [17:22:09]StoreToDocumentArchive [17:22:09]shift 323 fd 123304 [17:22:09]save to /storage/0323/doc_00123304 [17:22:09]save last doc name /storage/0323/doc_00123304 to /storage/kkm_last_doc_name [17:22:09]save OK [17:22:09]Clear old archive folders... [17:22:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:22:09]tlvbuf is 00E0D500 [17:22:09]SAM_PROTO_ClearQueue [17:22:09]wFMCommunicate request_size=4 [17:22:09]MH_SAM_APDU [17:22:09]CAPDU: 80 09 00 00 [17:22:09]Write to MH i2c: E2 08 00 D1 3A 80 09 00 00 00 00 00 00 7D [17:22:09]Write i2c OK [17:22:09]MH_I2C_Read... [17:22:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:22:09]Read from MH i2c: E2 [17:22:09]MH_I2C_Read... [17:22:09]Read from MH i2c: E2 03 00 [17:22:09]MH_I2C_Read... [17:22:09]Read from MH i2c: E2 03 00 D1 3A 00 90 00 7F [17:22:09]RAPDU: 90 00 [17:22:09]wFMCommunicate OK [17:22:09]SAM_PROTO_ClearQueue done [17:22:09]KKMCreateOFDPacket [17:22:09]OFDProtocolAddRootSTLVToBuf [17:22:09]FM_MakeSignedData [17:22:09]FM_MakeSignedData [17:22:09]SAM_PROTO_SignData [17:22:09]wFMCommunicate request_size=4 [17:22:09]MH_SAM_APDU [17:22:09]CAPDU: 80 0D 01 02 [17:22:09]Write to MH i2c: E2 08 00 D2 3A 80 0D 01 02 00 00 00 00 85 [17:22:09]Write i2c OK [17:22:09]MH_I2C_Read... [17:22:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:22:09]Read from MH i2c: E2 [17:22:09]MH_I2C_Read... [17:22:09]Read from MH i2c: E2 03 00 [17:22:09]MH_I2C_Read... [17:22:09]Read from MH i2c: E2 03 00 D2 3A 00 90 00 80 [17:22:09]RAPDU: 90 00 [17:22:09]wFMCommunicate OK [17:22:09]wFMCommunicate request_size=255 [17:22:09]MH_SAM_APDU [17:22: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 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 64 D5 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 D5 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 4D 00 00 00 00 07 04 06 00 64 D5 02 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 C4 B1 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 A8 E1 01 00 35 04 06 00 7E [17:22:09]Write to MH i2c: E2 02 01 D3 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 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 64 D5 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 D5 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 4D 00 00 00 00 07 04 06 00 64 D5 02 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 C4 B1 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 A8 E1 01 00 35 04 06 00 7E 00 00 A6 [17:22:09]Write i2c OK [17:22:09]MH_I2C_Read... [17:22:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:22:09]Read from MH i2c: E2 [17:22:09]MH_I2C_Read... [17:22:09]Read from MH i2c: E2 03 00 [17:22:09]MH_I2C_Read... [17:22:09]Read from MH i2c: E2 03 00 D3 3A 00 90 00 81 [17:22:09]RAPDU: 90 00 [17:22:09]wFMCommunicate OK [17:22:09]wFMCommunicate request_size=10 [17:22:09]MH_SAM_APDU [17:22:09]CAPDU: 80 0D 02 02 05 3A 30 83 F9 E9 [17:22:09]Write to MH i2c: E2 0D 00 D4 3A 80 0D 02 02 05 00 3A 30 83 F9 E9 00 00 61 [17:22:09]Write i2c OK [17:22:09]MH_I2C_Read... [17:22:09]Read from MH i2c: E2 [17:22:09]MH_I2C_Read... [17:22:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:22:09]Read from MH i2c: E2 03 00 [17:22:09]MH_I2C_Read... [17:22:09]Read from MH i2c: E2 03 00 D4 3A 00 90 00 82 [17:22:09]RAPDU: 90 00 [17:22:09]wFMCommunicate OK [17:22:09]wFMCommunicate request_size=4 [17:22:09]MH_SAM_APDU [17:22:09]CAPDU: 80 0D 03 02 [17:22:09]Write to MH i2c: E2 08 00 D5 3A 80 0D 03 02 00 00 00 00 8A [17:22:09]Write i2c OK [17:22:09]MH_I2C_Read... [17:22:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:22:09]Read from MH i2c: E2 [17:22:09]MH_I2C_Read... [17:22:09]Read from MH i2c: E2 0B 00 [17:22:09]MH_I2C_Read... [17:22:09]Read from MH i2c: E2 0B 00 D5 3A 00 5A 37 8E A5 7F A4 0D 0E 90 00 8D [17:22:09]RAPDU: 5A 37 8E A5 7F A4 0D 0E 90 00 [17:22:09]wFMCommunicate OK [17:22:09]SAM_PROTO_SignData done [17:22:09]FM_MakeSignedData done [17:22:09]CreateOFDProtocolMessage [17:22:09]wFMCommunicate request_size=4 [17:22:09]MH_SAM_APDU [17:22:09]CAPDU: 80 11 00 00 [17:22:09]Write to MH i2c: E2 08 00 D6 3A 80 11 00 00 00 00 00 00 8A [17:22:09]Write i2c OK [17:22:09]MH_I2C_Read... [17:22:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:22:09]Read from MH i2c: E2 [17:22:09]MH_I2C_Read... [17:22:09]Read from MH i2c: E2 17 00 [17:22:09]MH_I2C_Read... [17:22:09]Read from MH i2c: E2 17 00 D6 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 E8 [17:22:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [17:22:09]wFMCommunicate OK [17:22:09]CreateOFDProtocolMessage done [17:22:09]OFDSenderStorePacket 123304 [17:22:09]StoreOFDPacket docnum=123304 [17:22:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 5E 41 07 01 93 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 64 D5 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 D5 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 4D 00 00 00 00 07 04 06 00 64 D5 02 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 C4 B1 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 A8 E1 01 00 35 04 06 00 7E 3A 30 83 F9 E9 5A 37 8E A5 7F A4 0D 0E [17:22:09]CheckFolder [17:22:09]dirname=/storage/ofd_packets [17:22:09]CheckFolder done [17:22:09]ProducePacketName [17:22:09]name=ofd_packets/00123304 [17:22:09]NVStorageSaveData ofd_packets/00123304 [17:22:09]File name is /storage/ofd_packets/00123304 [17:22:09]Write 301 bytes [17:22:09]NVStorageSaveData done [17:22:09]OFDSenderStorePacket done [17:22:09]KKMCreateOFDPacket done [17:22:09]NVStorageSaveData kkm_last_timestamp [17:22:09]File name is /storage/kkm_last_timestamp [17:22:09]Write 4 bytes [17:22:09]NVStorageSaveData done [17:22:09]ExternCall_PrintAddStr [17:22:09]wPrintStart [17:22:09]Write to MH i2c: 01 00 00 D7 3A 11 [17:22:09]Write i2c OK [17:22:09]MH_I2C_Read... [17:22:09]Read from MH i2c: 01 [17:22:09]MH_I2C_Read... [17:22:09]Read from MH i2c: 01 07 00 [17:22:09]MH_I2C_Read... [17:22:09]Read from MH i2c: 01 07 00 D7 3A 00 00 00 00 00 FF 0F 26 [17:22:09]RasterBufferAndPrint [17:22:09]line Счет N : (1)1106246 [17:22:09]line ИНН: 02508201610067 [17:22:09]line Контрольно-Кассовый Чек [17:22:09]line ПРОДАЖА [17:22:09]line ТРК (МРК, ГНК) : 11 [17:22:09]line Товар: 2710124130 [17:22:09]line Аи-92-К-5 [17:22:09]line 30.000 * 61.90 [17:22:09]line = 1857.00 [17:22:09]line НДС 12% НСП 1% [17:22:09]line > о реализуемом товаре [17:22:09]line ИТОГО: 1857.00 [17:22:09]line НСП 1% : 16.43 [17:22:09]line НДС 12% : 197.20 [17:22:09]line Наличными: 1857.00 [17:22:09]line Безнал.: 0.00 [17:22:09]line Место: АЗС № 25 "Партнер Нефть" [17:22:09]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [17:22:09]line СНО: Общий режим [17:22:09]line Чек 161 03.03.2024 17:22 [17:22:09]line Смена: 323 ФФД: 1.0 [17:22:09]line ЗНМ: 0300000019 [17:22:09]line РНМ: 0000000000090573 [17:22:09]line Версия ККМ: 001 [17:22:09]line ФМ: 0000000000874798 [17:22:09]line ФД: 123304 [17:22:09]line ФПД: 138788387158505 [17:22:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T172212&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123304&fm=138788387158505&tin=02508201610067®Number=0000000000090573&sum=185700 [17:22:10]OFD Sender: Processing packet 123304 [packets to send 112, broken 111] [17:22:10]ProducePacketName [17:22:10]name=ofd_packets/00123304 [17:22:10]OFD Sender: To server: pG, [17:22:10]CommunicateWithHost lk.salyk.kg:30040 [17:22:10]ConnectInit lk.salyk.kg [17:22:10]written 0, free lines is 4095 [17:22:10]Connected sock=10 [17:22: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 37 39 38 0F 01 00 00 5E 41 07 01 93 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 64 D5 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 D5 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 4D 00 00 00 00 07 04 06 00 64 D5 02 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 C4 B1 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 A8 E1 01 00 35 04 06 00 7E 3A 30 83 F9 E9 5A 37 8E A5 7F A4 0D 0E [17:22:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 1F 1E 47 00 84 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 37 39 38 10 04 04 00 A8 E1 01 00 F4 03 04 00 EF 5D E4 65 B6 04 01 00 00 B8 EC B7 56 37 88 D5 5F [17:22:10]CommunicateWithHost err = 0 [17:22:10]CheckOFDResponse [17:22:10]1017 (14) - 77093643461234 [17:22:10]1041 (16) - 0000000000874798 [17:22:10]1040 (4) - 123304 [17:22:10]1012 (4) - 03.03.2024 11:24 [17:22:10]1206 (1) - 0 [17:22:10]OFD Sender: Remove packet 123304 [17:22:10]ProducePacketName [17:22:10]name=ofd_packets/00123304 [17:22:10]NVStorageDeleteData [17:22:10]Write to MH i2c: 01 00 00 FF 3A 39 [17:22:10]Write i2c OK [17:22:10]MH_I2C_Read... [17:22:10]Read from MH i2c: 01 [17:22:10]MH_I2C_Read... [17:22:10]Read from MH i2c: 01 07 00 [17:22:10]MH_I2C_Read... [17:22:10]Read from MH i2c: 01 07 00 FF 3A 00 00 00 00 00 15 0D 62 [17:22:10]RasterBufferAndPrint [17:22:10]line [17:22:10]line [17:22:10]line [17:22:10]line [17:22:10]line [17:22:10]written 0, free lines is 3355 [17:22:10]MH_Cut [17:22:10]Write to MH i2c: D1 01 00 06 3B 01 13 [17:22:10]Write i2c OK [17:22:10]MH_I2C_Read... [17:22:10]Read from MH i2c: D1 [17:22:10]MH_I2C_Read... [17:22:10]Read from MH i2c: D1 01 00 [17:22:10]MH_I2C_Read... [17:22:10]Read from MH i2c: D1 01 00 06 3B 00 12 [17:22:10]Write to MH i2c: 01 00 00 07 3B 42 [17:22:10]Write i2c OK [17:22:10]MH_I2C_Read... [17:22:10]OFD Sender: No OFD packet to send [17:22:11]*** Cut start [17:22:11]*** Purtial cut [17:22:11]*** Stage 1: CUTSNS_PIN = 1 [17:22:13]Read from MH i2c: 01 [17:22:13]MH_I2C_Read... [17:22:13]*** Stop cut motor [17:22:13]*** Cut end [17:22:13]Read from MH i2c: 01 07 00 [17:22:13]MH_I2C_Read... [17:22:13]Read from MH i2c: 01 07 00 07 3B 00 00 00 00 00 FF 0F 57 [17:22:13]process_action close_receipt done [17:22:13]requested_data is exist [17:22:13]produce_requested_data [17:22:13]requested_item fm.sn is exist - process it [17:22:13]wFMCommunicate request_size=4 [17:22:13]MH_SAM_APDU [17:22:13]CAPDU: 80 11 00 00 [17:22:13]Write to MH i2c: E2 08 00 08 3B 80 11 00 00 00 00 00 00 BD [17:22:13]Write i2c OK [17:22:13]MH_I2C_Read... [17:22:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:22:13]Read from MH i2c: E2 [17:22:13]MH_I2C_Read... [17:22:13]Read from MH i2c: E2 17 00 [17:22:13]MH_I2C_Read... [17:22:13]Read from MH i2c: E2 17 00 08 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 1B [17:22:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [17:22:13]wFMCommunicate OK [17:22:13]requested_item fd.num is exist - process it [17:22:13]SAM_PROTO_GetFieldsCounters [17:22:13]wFMCommunicate request_size=4 [17:22:13]MH_SAM_APDU [17:22:13]CAPDU: 80 13 00 00 [17:22:13]Write to MH i2c: E2 08 00 09 3B 80 13 00 00 00 00 00 00 C0 [17:22:13]Write i2c OK [17:22:13]MH_I2C_Read... [17:22:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:22:13]Read from MH i2c: E2 [17:22:13]MH_I2C_Read... [17:22:13]Read from MH i2c: E2 62 00 [17:22:13]MH_I2C_Read... [17:22:13]Read from MH i2c: E2 62 00 09 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 A8 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 9C [17:22: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 A8 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:22:13]wFMCommunicate OK [17:22:13]SAM_PROTO_GetFieldsCounters done [17:22:13]requested_item shift.num is exist - process it [17:22:13]requested_item shift.opened is exist - process it [17:22:13]req_shift_opened [17:22:13]FM_GetShiftState [17:22:13]SAM_PROTO_GetShiftState [17:22:13]wFMCommunicate request_size=4 [17:22:13]MH_SAM_APDU [17:22:13]CAPDU: 80 13 01 00 [17:22:13]Write to MH i2c: E2 08 00 0A 3B 80 13 01 00 00 00 00 00 C2 [17:22:13]Write i2c OK [17:22:13]MH_I2C_Read... [17:22:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:22:13]Read from MH i2c: E2 [17:22:13]MH_I2C_Read... [17:22:13]Read from MH i2c: E2 0E 00 [17:22:13]MH_I2C_Read... [17:22:13]Read from MH i2c: E2 0E 00 0A 3B 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 84 [17:22:13]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [17:22:13]wFMCommunicate OK [17:22:13]SAM_PROTO_GetShiftState done [17:22:13]FM_GetShiftState done [17:22:13]req_shift_opened done [17:22:13]requested_item shift.open_date is exist - process it [17:22:13]req_shift_open_date [17:22:13]req_shift_open_date done [17:22:13]produce_requested_data done [17:22:13]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123304,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [17:22:13]process_action_free close_receipt [17:22:13]json_value_free [17:22:13]json_value_free done [17:22:13]process_json_proto returns [17:22:13]Send response to host [17:22:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123304,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [17:22:13]free response buf [17:22:13]execute_script done [17:22:13]execute_script returns [17:22:13]free content buf [17:22:13]Sock 7.Close socket [17:22:13]Sock 7.Thread stoped [17:22:15]OFD Sender: No OFD packet to send [17:22:20]OFD Sender: No OFD packet to send [17:22:25]OFD Sender: No OFD packet to send [17:22:30]OFD Sender: No OFD packet to send [17:22:35]OFD Sender: No OFD packet to send [17:22:40]OFD Sender: No OFD packet to send [17:22:45]OFD Sender: No OFD packet to send [17:22:50]OFD Sender: No OFD packet to send [17:22:55]OFD Sender: No OFD packet to send [17:23:00]OFD Sender: No OFD packet to send [17:23:05]OFD Sender: No OFD packet to send [17:23:10]OFD Sender: No OFD packet to send [17:23:15]OFD Sender: No OFD packet to send [17:23:20]OFD Sender: No OFD packet to send [17:23:25]OFD Sender: No OFD packet to send [17:23:30]OFD Sender: No OFD packet to send [17:23:35]OFD Sender: No OFD packet to send [17:23:40]OFD Sender: No OFD packet to send [17:23:45]OFD Sender: No OFD packet to send [17:23:50]OFD Sender: No OFD packet to send [17:23:55]OFD Sender: No OFD packet to send [17:24:00]OFD Sender: No OFD packet to send [17:24:05]OFD Sender: No OFD packet to send [17:24:10]OFD Sender: No OFD packet to send [17:24:15]OFD Sender: No OFD packet to send [17:24:20]OFD Sender: No OFD packet to send [17:24:25]OFD Sender: No OFD packet to send [17:24:30]OFD Sender: No OFD packet to send [17:24:35]OFD Sender: No OFD packet to send [17:24:40]OFD Sender: No OFD packet to send [17:24:46]OFD Sender: No OFD packet to send [17:24:51]OFD Sender: No OFD packet to send [17:24:56]OFD Sender: No OFD packet to send [17:25:01]OFD Sender: No OFD packet to send [17:25:06]OFD Sender: No OFD packet to send [17:25:11]OFD Sender: No OFD packet to send [17:25:16]OFD Sender: No OFD packet to send [17:25:21]OFD Sender: No OFD packet to send [17:25:26]OFD Sender: No OFD packet to send [17:25:31]OFD Sender: No OFD packet to send [17:25:36]OFD Sender: No OFD packet to send [17:25:41]OFD Sender: No OFD packet to send [17:25:46]OFD Sender: No OFD packet to send [17:25:51]OFD Sender: No OFD packet to send [17:25:56]OFD Sender: No OFD packet to send [17:26:01]OFD Sender: No OFD packet to send [17:26:06]OFD Sender: No OFD packet to send [17:26:11]OFD Sender: No OFD packet to send [17:26:16]OFD Sender: No OFD packet to send [17:26:21]OFD Sender: No OFD packet to send [17:26:26]OFD Sender: No OFD packet to send [17:26:31]OFD Sender: No OFD packet to send [17:26:36]OFD Sender: No OFD packet to send [17:26:41]OFD Sender: No OFD packet to send [17:26:46]OFD Sender: No OFD packet to send [17:26:51]OFD Sender: No OFD packet to send [17:26:56]OFD Sender: No OFD packet to send [17:27:01]OFD Sender: No OFD packet to send [17:27:06]OFD Sender: No OFD packet to send [17:27:11]OFD Sender: No OFD packet to send [17:27:16]OFD Sender: No OFD packet to send [17:27:21]OFD Sender: No OFD packet to send [17:27:26]OFD Sender: No OFD packet to send [17:27:31]OFD Sender: No OFD packet to send [17:27:36]OFD Sender: No OFD packet to send [17:27:41]OFD Sender: No OFD packet to send [17:27:43]accept exits with 9 [17:27:43]New connection [17:27:43]New thread 3067395428 created [17:27:43]Thread 3067252068 joined [17:27:43]Waiting for new connection... [17:27:43] Sock 9.Parse request [17:27:43]Sock 9.Check first char [17:27:43]Sock 9.First char is OK [17:27:43]request: POST /json_proto HTTP/1.0 [17:27:43]Method: POST [17:27:43]URL: /json_proto [17:27:43]Method is POST - this is cgi request [17:27:43]url: /json_proto [17:27:43]query_string will be loaded in cgi processing [17:27:43]execute_cgi json_proto POST (null) [17:27:43]execute_cgi path=json_proto method=POST [17:27:43]POST find Content-Length [17:27:43]Host: 172.17.48.197:8080 [17:27:43]Content-Length: 1210 [17:27:43]Content-Type: application/json [17:27:43] [17:27:43]POST finish read [17:27:43]Found Content-Length = 1210 [17:27:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106247\u000A03.03.2024 17:24\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 52\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 23.750 x 61.90\u000A\u0418\u0422\u041E\u0413: 1470.13\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A43005\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:27:43]execute_script... [17:27:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106247\u000A03.03.2024 17:24\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 52\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 23.750 x 61.90\u000A\u0418\u0422\u041E\u0413: 1470.13\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A43005\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:27:43]POST & json_proto [17:27:43]process_json_proto [17:27:43]json parsed OK: [17:27:43]protocol is kg_v1.0 [17:27:43]action value=print_text [17:27:43]process_action print_text [17:27:43]cmd_print_text [17:27:43]ExternCall_PrintAddStr [17:27:43]wPrintStart [17:27:43]Write to MH i2c: 01 00 00 0B 3B 46 [17:27:43]Write i2c OK [17:27:43]MH_I2C_Read... [17:27:43]Read from MH i2c: 01 [17:27:43]MH_I2C_Read... [17:27:43]Read from MH i2c: 01 07 00 [17:27:43]MH_I2C_Read... [17:27:43]Read from MH i2c: 01 07 00 0B 3B 00 00 00 00 00 FF 0F 5B [17:27:43]RasterBufferAndPrint [17:27:43]line *****ТОВАРНЫЙ ЧЕК***** [17:27:43]line АЗС 25 [17:27:43]line Партнер нефть [17:27:43]line 02508201610067 [17:27:43]line Кассир : Турдумбек у. К. [17:27:43]line Счет N : (1)1106247 [17:27:43]line 03.03.2024 17:24 [17:27:43]line ПРОДАЖА [17:27:43]line ТРК (МРК, ГНК): 52 [17:27:43]line Вид ГСМ : 2710124130 [17:27:43]line Аи-92-К-5 [17:27:43]line 23.750 x 61.90 [17:27:43]line ИТОГ: 1470.13 [17:27:43]line Тип оплаты: Талоны: Топливная Карта [17:27:43]line 43005 [17:27:43]line ______________________ [17:27:43]line (подпись) [17:27:43]written 0, free lines is 4095 [17:27:43]Write to MH i2c: 01 00 00 20 3B 5B [17:27:43]Write i2c OK [17:27:43]MH_I2C_Read... [17:27:43]Read from MH i2c: 01 [17:27:43]MH_I2C_Read... [17:27:43]Read from MH i2c: 01 07 00 [17:27:43]MH_I2C_Read... [17:27:43]Read from MH i2c: 01 07 00 20 3B 00 00 00 00 00 F4 0D 63 [17:27:43]RasterBufferAndPrint [17:27:43]line [17:27:43]line [17:27:43]line [17:27:43]line [17:27:43]line [17:27:43]written 0, free lines is 3574 [17:27:43]MH_Cut [17:27:43]Write to MH i2c: D1 01 00 27 3B 01 34 [17:27:43]Write i2c OK [17:27:43]MH_I2C_Read... [17:27:43]Read from MH i2c: D1 [17:27:43]MH_I2C_Read... [17:27:43]Read from MH i2c: D1 01 00 [17:27:43]MH_I2C_Read... [17:27:43]Read from MH i2c: D1 01 00 27 3B 00 33 [17:27:43]Write to MH i2c: 01 00 00 28 3B 63 [17:27:43]Write i2c OK [17:27:43]MH_I2C_Read... [17:27:44]*** Cut start [17:27:44]*** Purtial cut [17:27:44]*** Stage 1: CUTSNS_PIN = 1 [17:27:46]Read from MH i2c: 01 [17:27:46]MH_I2C_Read... [17:27:46]*** Stop cut motor [17:27:46]*** Cut end [17:27:46]Read from MH i2c: 01 07 00 [17:27:46]MH_I2C_Read... [17:27:46]Read from MH i2c: 01 07 00 28 3B 00 00 00 00 00 FF 0F 78 [17:27:46]process_action print_text done [17:27:46]requested_data is exist [17:27:46]produce_requested_data [17:27:46]requested_item fm.sn is exist - process it [17:27:46]wFMCommunicate request_size=4 [17:27:46]MH_SAM_APDU [17:27:46]CAPDU: 80 11 00 00 [17:27:46]Write to MH i2c: E2 08 00 29 3B 80 11 00 00 00 00 00 00 DE [17:27:46]Write i2c OK [17:27:46]MH_I2C_Read... [17:27:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:46]Read from MH i2c: E2 [17:27:46]MH_I2C_Read... [17:27:46]Read from MH i2c: E2 17 00 [17:27:46]MH_I2C_Read... [17:27:46]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 37 39 38 90 00 3C [17:27:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [17:27:46]wFMCommunicate OK [17:27:46]requested_item fd.num is exist - process it [17:27:46]SAM_PROTO_GetFieldsCounters [17:27:46]wFMCommunicate request_size=4 [17:27:46]MH_SAM_APDU [17:27:46]CAPDU: 80 13 00 00 [17:27:46]Write to MH i2c: E2 08 00 2A 3B 80 13 00 00 00 00 00 00 E1 [17:27:46]Write i2c OK [17:27:46]MH_I2C_Read... [17:27:46]OFD Sender: No OFD packet to send [17:27:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:27:46]Read from MH i2c: E2 [17:27:46]MH_I2C_Read... [17:27:46]Read from MH i2c: E2 62 00 [17:27:46]MH_I2C_Read... [17:27:46]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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 A8 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 BD [17:27: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 A8 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:27:46]wFMCommunicate OK [17:27:46]SAM_PROTO_GetFieldsCounters done [17:27:46]requested_item shift.num is exist - process it [17:27:46]requested_item shift.opened is exist - process it [17:27:46]req_shift_opened [17:27:46]FM_GetShiftState [17:27:46]SAM_PROTO_GetShiftState [17:27:46]wFMCommunicate request_size=4 [17:27:46]MH_SAM_APDU [17:27:46]CAPDU: 80 13 01 00 [17:27:46]Write to MH i2c: E2 08 00 2B 3B 80 13 01 00 00 00 00 00 E3 [17:27:46]Write i2c OK [17:27:46]MH_I2C_Read... [17:27:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:27:46]Read from MH i2c: E2 [17:27:46]MH_I2C_Read... [17:27:46]Read from MH i2c: E2 0E 00 [17:27:46]MH_I2C_Read... [17:27:46]Read from MH i2c: E2 0E 00 2B 3B 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 A5 [17:27:46]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [17:27:46]wFMCommunicate OK [17:27:46]SAM_PROTO_GetShiftState done [17:27:46]FM_GetShiftState done [17:27:46]req_shift_opened done [17:27:46]requested_item shift.open_date is exist - process it [17:27:46]req_shift_open_date [17:27:46]req_shift_open_date done [17:27:46]produce_requested_data done [17:27:46]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123304,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [17:27:46]process_action_free print_text [17:27:46]json_value_free [17:27:46]json_value_free done [17:27:46]process_json_proto returns [17:27:46]Send response to host [17:27:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123304,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [17:27:46]free response buf [17:27:46]execute_script done [17:27:46]execute_script returns [17:27:46]free content buf [17:27:46]Sock 9.Close socket [17:27:46]Sock 9.Thread stoped [17:27:51]OFD Sender: No OFD packet to send [17:27:56]OFD Sender: No OFD packet to send [17:28:01]OFD Sender: No OFD packet to send [17:28:06]OFD Sender: No OFD packet to send [17:28:11]OFD Sender: No OFD packet to send [17:28:16]OFD Sender: No OFD packet to send [17:28:21]OFD Sender: No OFD packet to send [17:28:26]OFD Sender: No OFD packet to send [17:28:31]OFD Sender: No OFD packet to send [17:28:36]OFD Sender: No OFD packet to send [17:28:41]OFD Sender: No OFD packet to send [17:28:46]OFD Sender: No OFD packet to send [17:28:51]OFD Sender: No OFD packet to send [17:28:56]OFD Sender: No OFD packet to send [17:29:01]OFD Sender: No OFD packet to send [17:29:06]OFD Sender: No OFD packet to send [17:29:11]OFD Sender: No OFD packet to send [17:29:16]OFD Sender: No OFD packet to send [17:29:21]OFD Sender: No OFD packet to send [17:29:26]OFD Sender: No OFD packet to send [17:29:31]OFD Sender: No OFD packet to send [17:29:36]OFD Sender: No OFD packet to send [17:29:41]OFD Sender: No OFD packet to send [17:29:46]OFD Sender: No OFD packet to send [17:29:51]OFD Sender: No OFD packet to send [17:29:56]OFD Sender: No OFD packet to send [17:30:01]OFD Sender: No OFD packet to send [17:30:06]OFD Sender: No OFD packet to send [17:30:11]OFD Sender: No OFD packet to send [17:30:16]OFD Sender: No OFD packet to send [17:30:21]OFD Sender: No OFD packet to send [17:30:26]OFD Sender: No OFD packet to send [17:30:31]OFD Sender: No OFD packet to send [17:30:36]OFD Sender: No OFD packet to send [17:30:41]OFD Sender: No OFD packet to send [17:30:46]OFD Sender: No OFD packet to send [17:30:51]OFD Sender: No OFD packet to send [17:30:56]OFD Sender: No OFD packet to send [17:31:01]OFD Sender: No OFD packet to send [17:31:06]OFD Sender: No OFD packet to send [17:31:11]OFD Sender: No OFD packet to send [17:31:16]OFD Sender: No OFD packet to send [17:31:21]OFD Sender: No OFD packet to send [17:31:26]OFD Sender: No OFD packet to send [17:31:31]OFD Sender: No OFD packet to send [17:31:36]OFD Sender: No OFD packet to send [17:31:41]OFD Sender: No OFD packet to send [17:31:46]OFD Sender: No OFD packet to send [17:31:51]OFD Sender: No OFD packet to send [17:31:56]OFD Sender: No OFD packet to send [17:32:01]OFD Sender: No OFD packet to send [17:32:06]OFD Sender: No OFD packet to send [17:32:11]OFD Sender: No OFD packet to send [17:32:16]OFD Sender: No OFD packet to send [17:32:21]OFD Sender: No OFD packet to send [17:32:26]OFD Sender: No OFD packet to send [17:32:31]OFD Sender: No OFD packet to send [17:32:36]OFD Sender: No OFD packet to send [17:32:41]OFD Sender: No OFD packet to send [17:32:46]OFD Sender: No OFD packet to send [17:32:48]accept exits with 7 [17:32:48]New connection [17:32:48]New thread 3067252068 created [17:32:48]Thread 3067395428 joined [17:32:48]Waiting for new connection... [17:32:48] Sock 7.Parse request [17:32:48]Sock 7.Check first char [17:32:48]Sock 7.First char is OK [17:32:48]request: POST /json_proto HTTP/1.0 [17:32:48]Method: POST [17:32:48]URL: /json_proto [17:32:48]Method is POST - this is cgi request [17:32:48]url: /json_proto [17:32:48]query_string will be loaded in cgi processing [17:32:48]execute_cgi json_proto POST (null) [17:32:48]execute_cgi path=json_proto method=POST [17:32:48]POST find Content-Length [17:32:48]Host: 172.17.48.197:8080 [17:32:48]Content-Length: 679 [17:32:48]Content-Type: application/json [17:32:48] [17:32:48]POST finish read [17:32:48]Found Content-Length = 679 [17:32:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106248", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 11.310, "sum" : 700.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:32:48]execute_script... [17:32:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106248", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 11.310, "sum" : 700.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:32:48]POST & json_proto [17:32:48]process_json_proto [17:32:48]json parsed OK: [17:32:48]protocol is kg_v1.0 [17:32:48]action value=close_receipt [17:32:48]process_action close_receipt [17:32:48]cmd_close_receipt [17:32:48]MH_GetDate [17:32:48]Write to MH i2c: F0 00 00 2C 3B 56 [17:32:48]Write i2c OK [17:32:48]MH_I2C_Read... [17:32:48]Read from MH i2c: F0 [17:32:48]MH_I2C_Read... [17:32:48]Read from MH i2c: F0 09 00 [17:32:48]MH_I2C_Read... [17:32:48]Read from MH i2c: F0 09 00 2C 3B 00 44 B4 E4 65 6C AF E3 65 03 [17:32:48]GetLastDocTimeStamp 1709486532 [17:32:48]current date 1709487172 [17:32:48]FM_GetShiftState [17:32:48]SAM_PROTO_GetShiftState [17:32:48]wFMCommunicate request_size=4 [17:32:48]MH_SAM_APDU [17:32:48]CAPDU: 80 13 01 00 [17:32:48]Write to MH i2c: E2 08 00 2D 3B 80 13 01 00 00 00 00 00 E5 [17:32:48]Write i2c OK [17:32:48]MH_I2C_Read... [17:32:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:32:48]Read from MH i2c: E2 [17:32:48]MH_I2C_Read... [17:32:48]Read from MH i2c: E2 0E 00 [17:32:48]MH_I2C_Read... [17:32:48]Read from MH i2c: E2 0E 00 2D 3B 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 A7 [17:32:48]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [17:32:48]wFMCommunicate OK [17:32:48]SAM_PROTO_GetShiftState done [17:32:48]FM_GetShiftState done [17:32:48]opened in 1709425579 [17:32:48]opened+sec_in_day 1709511979 [17:32:48]quantity*price = 70008 [17:32:48]sum+1 = 70010 [17:32:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.19 НДС 12% : 74.35 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 162 03.03.2024 17:32 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123305 ФПД: 140379251075935 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T173252&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123305&fm=140379251075935&tin=02508201610067®Number=0000000000090573&sum=70000 [17:32:49]StoreToDocumentArchive [17:32:49]shift 323 fd 123305 [17:32:49]save to /storage/0323/doc_00123305 [17:32:49]save last doc name /storage/0323/doc_00123305 to /storage/kkm_last_doc_name [17:32:49]save OK [17:32:49]Clear old archive folders... [17:32:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:32:49]tlvbuf is 00EBFDF0 [17:32:49]SAM_PROTO_ClearQueue [17:32:49]wFMCommunicate request_size=4 [17:32:49]MH_SAM_APDU [17:32:49]CAPDU: 80 09 00 00 [17:32:49]Write to MH i2c: E2 08 00 3A 3B 80 09 00 00 00 00 00 00 E7 [17:32:49]Write i2c OK [17:32:49]MH_I2C_Read... [17:32:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:32:49]Read from MH i2c: E2 [17:32:49]MH_I2C_Read... [17:32:49]Read from MH i2c: E2 03 00 [17:32:49]MH_I2C_Read... [17:32:49]Read from MH i2c: E2 03 00 3A 3B 00 90 00 E9 [17:32:49]RAPDU: 90 00 [17:32:49]wFMCommunicate OK [17:32:49]SAM_PROTO_ClearQueue done [17:32:49]KKMCreateOFDPacket [17:32:49]OFDProtocolAddRootSTLVToBuf [17:32:49]FM_MakeSignedData [17:32:49]FM_MakeSignedData [17:32:49]SAM_PROTO_SignData [17:32:49]wFMCommunicate request_size=4 [17:32:49]MH_SAM_APDU [17:32:49]CAPDU: 80 0D 01 02 [17:32:49]Write to MH i2c: E2 08 00 3B 3B 80 0D 01 02 00 00 00 00 EF [17:32:49]Write i2c OK [17:32:49]MH_I2C_Read... [17:32:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:32:49]Read from MH i2c: E2 [17:32:49]MH_I2C_Read... [17:32:49]Read from MH i2c: E2 03 00 [17:32:49]MH_I2C_Read... [17:32:49]Read from MH i2c: E2 03 00 3B 3B 00 90 00 EA [17:32:49]RAPDU: 90 00 [17:32:49]wFMCommunicate OK [17:32:49]wFMCommunicate request_size=255 [17:32:49]MH_SAM_APDU [17:32:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 2C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 79 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 6B 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 A2 00 00 00 F4 03 04 00 44 B4 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 A9 E1 01 00 35 04 06 00 7F [17:32:49]Write to MH i2c: E2 02 01 3C 3B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 2C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 79 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 6B 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 A2 00 00 00 F4 03 04 00 44 B4 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 A9 E1 01 00 35 04 06 00 7F 00 00 F8 [17:32:49]Write i2c OK [17:32:49]MH_I2C_Read... [17:32:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:32:50]Read from MH i2c: E2 [17:32:50]MH_I2C_Read... [17:32:50]Read from MH i2c: E2 03 00 [17:32:50]MH_I2C_Read... [17:32:50]Read from MH i2c: E2 03 00 3C 3B 00 90 00 EB [17:32:50]RAPDU: 90 00 [17:32:50]wFMCommunicate OK [17:32:50]wFMCommunicate request_size=10 [17:32:50]MH_SAM_APDU [17:32:50]CAPDU: 80 0D 02 02 05 AC 97 64 EB 5F [17:32:50]Write to MH i2c: E2 0D 00 3D 3B 80 0D 02 02 05 00 AC 97 64 EB 5F 00 00 ED [17:32:50]Write i2c OK [17:32:50]MH_I2C_Read... [17:32:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:32:50]Read from MH i2c: E2 [17:32:50]MH_I2C_Read... [17:32:50]Read from MH i2c: E2 03 00 [17:32:50]MH_I2C_Read... [17:32:50]Read from MH i2c: E2 03 00 3D 3B 00 90 00 EC [17:32:50]RAPDU: 90 00 [17:32:50]wFMCommunicate OK [17:32:50]wFMCommunicate request_size=4 [17:32:50]MH_SAM_APDU [17:32:50]CAPDU: 80 0D 03 02 [17:32:50]Write to MH i2c: E2 08 00 3E 3B 80 0D 03 02 00 00 00 00 F4 [17:32:50]Write i2c OK [17:32:50]MH_I2C_Read... [17:32:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:32:50]Read from MH i2c: E2 [17:32:50]MH_I2C_Read... [17:32:50]Read from MH i2c: E2 0B 00 [17:32:50]MH_I2C_Read... [17:32:50]Read from MH i2c: E2 0B 00 3E 3B 00 AB A2 07 92 BA 2A 13 02 90 00 D4 [17:32:50]RAPDU: AB A2 07 92 BA 2A 13 02 90 00 [17:32:50]wFMCommunicate OK [17:32:50]SAM_PROTO_SignData done [17:32:50]FM_MakeSignedData done [17:32:50]CreateOFDProtocolMessage [17:32:50]wFMCommunicate request_size=4 [17:32:50]MH_SAM_APDU [17:32:50]CAPDU: 80 11 00 00 [17:32:50]Write to MH i2c: E2 08 00 3F 3B 80 11 00 00 00 00 00 00 F4 [17:32:50]Write i2c OK [17:32:50]MH_I2C_Read... [17:32:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:32:50]Read from MH i2c: E2 [17:32:50]MH_I2C_Read... [17:32:50]Read from MH i2c: E2 17 00 [17:32:50]MH_I2C_Read... [17:32:50]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 37 39 38 90 00 52 [17:32:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [17:32:50]wFMCommunicate OK [17:32:50]CreateOFDProtocolMessage done [17:32:50]OFDSenderStorePacket 123305 [17:32:50]StoreOFDPacket docnum=123305 [17:32:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 36 37 07 01 57 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 2C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 79 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 6B 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 A2 00 00 00 F4 03 04 00 44 B4 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 A9 E1 01 00 35 04 06 00 7F AC 97 64 EB 5F AB A2 07 92 BA 2A 13 02 [17:32:50]CheckFolder [17:32:50]dirname=/storage/ofd_packets [17:32:50]CheckFolder done [17:32:50]ProducePacketName [17:32:50]name=ofd_packets/00123305 [17:32:50]NVStorageSaveData ofd_packets/00123305 [17:32:50]File name is /storage/ofd_packets/00123305 [17:32:50]Write 301 bytes [17:32:50]NVStorageSaveData done [17:32:50]OFDSenderStorePacket done [17:32:50]KKMCreateOFDPacket done [17:32:50]NVStorageSaveData kkm_last_timestamp [17:32:50]File name is /storage/kkm_last_timestamp [17:32:50]Write 4 bytes [17:32:50]NVStorageSaveData done [17:32:50]OFD Sender: Processing packet 123305 [packets to send 112, broken 111] [17:32:50]ProducePacketName [17:32:50]name=ofd_packets/00123305 [17:32:50]OFD Sender: To server: pG, [17:32:50]CommunicateWithHost lk.salyk.kg:30040 [17:32:50]ConnectInit lk.salyk.kg [17:32:50]ExternCall_PrintAddStr [17:32:50]wPrintStart [17:32:50]Write to MH i2c: 01 00 00 40 3B 7B [17:32:50]Write i2c OK [17:32:50]MH_I2C_Read... [17:32:50]Read from MH i2c: 01 [17:32:50]MH_I2C_Read... [17:32:50]Read from MH i2c: 01 07 00 [17:32:50]MH_I2C_Read... [17:32:50]Read from MH i2c: 01 07 00 40 3B 00 00 00 00 00 FF 0F 90 [17:32:50]RasterBufferAndPrint [17:32:50]line Счет N : (1)1106248 [17:32:50]line ИНН: 02508201610067 [17:32:50]line Контрольно-Кассовый Чек [17:32:50]line ПРОДАЖА [17:32:50]line ТРК (МРК, ГНК) : 62 [17:32:50]line Товар: 2710124130 [17:32:50]line Аи-92-К-5 [17:32:50]line 11.310 * 61.90 [17:32:50]line = 700.09 [17:32:50]line НДС 12% НСП 1% [17:32:50]line > о реализуемом товаре [17:32:50]line ОКРУГЛЕНИЕ: -0.09 [17:32:50]line ИТОГО: 700.00 [17:32:50]line Внесено: 700.00 [17:32:50]line СДАЧА: 0.00 [17:32:50]line НСП 1% : 6.19 [17:32:50]line НДС 12% : 74.35 [17:32:50]line Наличными: 700.00 [17:32:50]line Безнал.: 0.00 [17:32:50]line Место: АЗС № 25 "Партнер Нефть" [17:32:50]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [17:32:50]line СНО: Общий режим [17:32:50]line Чек 162 03.03.2024 17:32 [17:32:50]line Смена: 323 ФФД: 1.0 [17:32:50]line ЗНМ: 0300000019 [17:32:50]line РНМ: 0000000000090573 [17:32:50]line Версия ККМ: 001 [17:32:50]line ФМ: 0000000000874798 [17:32:50]line ФД: 123305 [17:32:50]line ФПД: 140379251075935 [17:32:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T173252&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123305&fm=140379251075935&tin=02508201610067®Number=0000000000090573&sum=70000 [17:32:50]Connected sock=11 [17:32: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 37 39 38 0F 01 00 00 36 37 07 01 57 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 2C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 79 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 6B 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 A2 00 00 00 F4 03 04 00 44 B4 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 A9 E1 01 00 35 04 06 00 7F AC 97 64 EB 5F AB A2 07 92 BA 2A 13 02 [17:32:50]written 0, free lines is 4095 [17:32:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 9D 05 47 00 CD 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 37 39 38 10 04 04 00 A9 E1 01 00 F4 03 04 00 70 60 E4 65 B6 04 01 00 00 1F 98 99 28 62 2C 53 B9 [17:32:50]CommunicateWithHost err = 0 [17:32:50]CheckOFDResponse [17:32:50]1017 (14) - 77093643461234 [17:32:50]1041 (16) - 0000000000874798 [17:32:50]1040 (4) - 123305 [17:32:50]1012 (4) - 03.03.2024 11:35 [17:32:50]1206 (1) - 0 [17:32:50]OFD Sender: Remove packet 123305 [17:32:50]ProducePacketName [17:32:50]name=ofd_packets/00123305 [17:32:50]NVStorageDeleteData [17:32:51]Write to MH i2c: 01 00 00 6B 3B A6 [17:32:51]Write i2c OK [17:32:51]MH_I2C_Read... [17:32:51]Read from MH i2c: 01 [17:32:51]MH_I2C_Read... [17:32:51]Read from MH i2c: 01 07 00 [17:32:51]MH_I2C_Read... [17:32:51]Read from MH i2c: 01 07 00 6B 3B 00 00 00 00 00 E9 0C A2 [17:32:51]RasterBufferAndPrint [17:32:51]line [17:32:51]line [17:32:51]line [17:32:51]line [17:32:51]line [17:32:51]written 0, free lines is 3311 [17:32:51]MH_Cut [17:32:51]Write to MH i2c: D1 01 00 72 3B 01 7F [17:32:51]Write i2c OK [17:32:51]MH_I2C_Read... [17:32:51]Read from MH i2c: D1 [17:32:51]MH_I2C_Read... [17:32:51]Read from MH i2c: D1 01 00 [17:32:51]MH_I2C_Read... [17:32:51]Read from MH i2c: D1 01 00 72 3B 00 7E [17:32:51]Write to MH i2c: 01 00 00 73 3B AE [17:32:51]Write i2c OK [17:32:51]MH_I2C_Read... [17:32:51]OFD Sender: No OFD packet to send [17:32:51]*** Cut start [17:32:51]*** Purtial cut [17:32:51]*** Stage 1: CUTSNS_PIN = 1 [17:32:53]Read from MH i2c: 01 [17:32:53]MH_I2C_Read... [17:32:53]*** Stop cut motor [17:32:53]*** Cut end [17:32:53]Read from MH i2c: 01 07 00 [17:32:53]MH_I2C_Read... [17:32:53]Read from MH i2c: 01 07 00 73 3B 00 00 00 00 00 FF 0F C3 [17:32:53]process_action close_receipt done [17:32:53]requested_data is exist [17:32:53]produce_requested_data [17:32:53]requested_item fm.sn is exist - process it [17:32:53]wFMCommunicate request_size=4 [17:32:53]MH_SAM_APDU [17:32:53]CAPDU: 80 11 00 00 [17:32:53]Write to MH i2c: E2 08 00 74 3B 80 11 00 00 00 00 00 00 29 [17:32:53]Write i2c OK [17:32:53]MH_I2C_Read... [17:32:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:32:53]Read from MH i2c: E2 [17:32:53]MH_I2C_Read... [17:32:53]Read from MH i2c: E2 17 00 [17:32:53]MH_I2C_Read... [17:32:53]Read from MH i2c: E2 17 00 74 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 87 [17:32:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [17:32:53]wFMCommunicate OK [17:32:53]requested_item fd.num is exist - process it [17:32:53]SAM_PROTO_GetFieldsCounters [17:32:53]wFMCommunicate request_size=4 [17:32:53]MH_SAM_APDU [17:32:53]CAPDU: 80 13 00 00 [17:32:53]Write to MH i2c: E2 08 00 75 3B 80 13 00 00 00 00 00 00 2C [17:32:53]Write i2c OK [17:32:53]MH_I2C_Read... [17:32:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:32:54]Read from MH i2c: E2 [17:32:54]MH_I2C_Read... [17:32:54]Read from MH i2c: E2 62 00 [17:32:54]MH_I2C_Read... [17:32:54]Read from MH i2c: E2 62 00 75 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 A9 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 0C [17:32: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 A9 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:32:54]wFMCommunicate OK [17:32:54]SAM_PROTO_GetFieldsCounters done [17:32:54]requested_item shift.num is exist - process it [17:32:54]requested_item shift.opened is exist - process it [17:32:54]req_shift_opened [17:32:54]FM_GetShiftState [17:32:54]SAM_PROTO_GetShiftState [17:32:54]wFMCommunicate request_size=4 [17:32:54]MH_SAM_APDU [17:32:54]CAPDU: 80 13 01 00 [17:32:54]Write to MH i2c: E2 08 00 76 3B 80 13 01 00 00 00 00 00 2E [17:32:54]Write i2c OK [17:32:54]MH_I2C_Read... [17:32:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:32:54]Read from MH i2c: E2 [17:32:54]MH_I2C_Read... [17:32:54]Read from MH i2c: E2 0E 00 [17:32:54]MH_I2C_Read... [17:32:54]Read from MH i2c: E2 0E 00 76 3B 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 F0 [17:32:54]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [17:32:54]wFMCommunicate OK [17:32:54]SAM_PROTO_GetShiftState done [17:32:54]FM_GetShiftState done [17:32:54]req_shift_opened done [17:32:54]requested_item shift.open_date is exist - process it [17:32:54]req_shift_open_date [17:32:54]req_shift_open_date done [17:32:54]produce_requested_data done [17:32:54]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123305,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [17:32:54]process_action_free close_receipt [17:32:54]json_value_free [17:32:54]json_value_free done [17:32:54]process_json_proto returns [17:32:54]Send response to host [17:32:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123305,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [17:32:54]free response buf [17:32:54]execute_script done [17:32:54]execute_script returns [17:32:54]free content buf [17:32:54]Sock 7.Close socket [17:32:54]Sock 7.Thread stoped [17:32:56]OFD Sender: No OFD packet to send [17:33:01]OFD Sender: No OFD packet to send [17:33:06]OFD Sender: No OFD packet to send [17:33:11]OFD Sender: No OFD packet to send [17:33:16]OFD Sender: No OFD packet to send [17:33:21]OFD Sender: No OFD packet to send [17:33:26]OFD Sender: No OFD packet to send [17:33:31]OFD Sender: No OFD packet to send [17:33:36]OFD Sender: No OFD packet to send [17:33:41]OFD Sender: No OFD packet to send [17:33:46]OFD Sender: No OFD packet to send [17:33:51]OFD Sender: No OFD packet to send [17:33:56]OFD Sender: No OFD packet to send [17:34:01]OFD Sender: No OFD packet to send [17:34:06]OFD Sender: No OFD packet to send [17:34:11]OFD Sender: No OFD packet to send [17:34:16]OFD Sender: No OFD packet to send [17:34:21]OFD Sender: No OFD packet to send [17:34:26]OFD Sender: No OFD packet to send [17:34:31]OFD Sender: No OFD packet to send [17:34:36]OFD Sender: No OFD packet to send [17:34:41]OFD Sender: No OFD packet to send [17:34:46]OFD Sender: No OFD packet to send [17:34:51]OFD Sender: No OFD packet to send [17:34:56]OFD Sender: No OFD packet to send [17:35:01]OFD Sender: No OFD packet to send [17:35:06]OFD Sender: No OFD packet to send [17:35:11]OFD Sender: No OFD packet to send [17:35:16]OFD Sender: No OFD packet to send [17:35:21]OFD Sender: No OFD packet to send [17:35:26]OFD Sender: No OFD packet to send [17:35:30]accept exits with 9 [17:35:30]New connection [17:35:30]New thread 3067395428 created [17:35:30]Thread 3067252068 joined [17:35:30]Waiting for new connection... [17:35:30] Sock 9.Parse request [17:35:30]Sock 9.Check first char [17:35:30]Sock 9.First char is OK [17:35:30]request: POST /json_proto HTTP/1.0 [17:35:30]Method: POST [17:35:30]URL: /json_proto [17:35:30]Method is POST - this is cgi request [17:35:30]url: /json_proto [17:35:30]query_string will be loaded in cgi processing [17:35:30]execute_cgi json_proto POST (null) [17:35:30]execute_cgi path=json_proto method=POST [17:35:30]POST find Content-Length [17:35:30]Host: 172.17.48.197:8080 [17:35:30]Content-Length: 678 [17:35:30]Content-Type: application/json [17:35:30] [17:35:30]POST finish read [17:35:30]Found Content-Length = 678 [17:35:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106250", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 4.850, "sum" : 300.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:35:30]execute_script... [17:35: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)1106250", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 4.850, "sum" : 300.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:35:30]POST & json_proto [17:35:30]process_json_proto [17:35:30]json parsed OK: [17:35:30]protocol is kg_v1.0 [17:35:30]action value=close_receipt [17:35:30]process_action close_receipt [17:35:30]cmd_close_receipt [17:35:30]MH_GetDate [17:35:30]Write to MH i2c: F0 00 00 77 3B A1 [17:35:30]Write i2c OK [17:35:30]MH_I2C_Read... [17:35:30]Read from MH i2c: F0 [17:35:30]MH_I2C_Read... [17:35:30]Read from MH i2c: F0 09 00 [17:35:30]MH_I2C_Read... [17:35:30]Read from MH i2c: F0 09 00 77 3B 00 E6 B4 E4 65 6C AF E3 65 F0 [17:35:30]GetLastDocTimeStamp 1709487172 [17:35:30]current date 1709487334 [17:35:30]FM_GetShiftState [17:35:30]SAM_PROTO_GetShiftState [17:35:30]wFMCommunicate request_size=4 [17:35:30]MH_SAM_APDU [17:35:30]CAPDU: 80 13 01 00 [17:35:30]Write to MH i2c: E2 08 00 78 3B 80 13 01 00 00 00 00 00 30 [17:35:30]Write i2c OK [17:35:30]MH_I2C_Read... [17:35:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:35:30]Read from MH i2c: E2 [17:35:30]MH_I2C_Read... [17:35:30]Read from MH i2c: E2 0E 00 [17:35:30]MH_I2C_Read... [17:35:30]Read from MH i2c: E2 0E 00 78 3B 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 F2 [17:35:30]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [17:35:30]wFMCommunicate OK [17:35:30]SAM_PROTO_GetShiftState done [17:35:30]FM_GetShiftState done [17:35:30]opened in 1709425579 [17:35:30]opened+sec_in_day 1709511979 [17:35:30]quantity*price = 30021 [17:35:30]sum+1 = 30023 [17:35:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.88 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 163 03.03.2024 17:35 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123306 ФПД: 6014676075269 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T173534&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123306&fm=6014676075269&tin=02508201610067®Number=0000000000090573&sum=30000 [17:35:31]StoreToDocumentArchive [17:35:31]shift 323 fd 123306 [17:35:31]save to /storage/0323/doc_00123306 [17:35:31]save last doc name /storage/0323/doc_00123306 to /storage/kkm_last_doc_name [17:35:31]save OK [17:35:31]Clear old archive folders... [17:35:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:35:31]tlvbuf is 00E3F880 [17:35:31]SAM_PROTO_ClearQueue [17:35:31]wFMCommunicate request_size=4 [17:35:31]MH_SAM_APDU [17:35:31]CAPDU: 80 09 00 00 [17:35:31]Write to MH i2c: E2 08 00 85 3B 80 09 00 00 00 00 00 00 32 [17:35:31]Write i2c OK [17:35:31]MH_I2C_Read... [17:35:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:35:31]Read from MH i2c: E2 [17:35:31]MH_I2C_Read... [17:35:31]Read from MH i2c: E2 03 00 [17:35:31]MH_I2C_Read... [17:35:31]Read from MH i2c: E2 03 00 85 3B 00 90 00 34 [17:35:31]RAPDU: 90 00 [17:35:31]wFMCommunicate OK [17:35:31]SAM_PROTO_ClearQueue done [17:35:31]KKMCreateOFDPacket [17:35:31]OFDProtocolAddRootSTLVToBuf [17:35:31]FM_MakeSignedData [17:35:31]FM_MakeSignedData [17:35:31]SAM_PROTO_SignData [17:35:31]wFMCommunicate request_size=4 [17:35:31]MH_SAM_APDU [17:35:31]CAPDU: 80 0D 01 02 [17:35:31]Write to MH i2c: E2 08 00 86 3B 80 0D 01 02 00 00 00 00 3A [17:35:31]Write i2c OK [17:35:31]MH_I2C_Read... [17:35:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:35:31]Read from MH i2c: E2 [17:35:31]MH_I2C_Read... [17:35:31]Read from MH i2c: E2 03 00 [17:35:31]MH_I2C_Read... [17:35:31]Read from MH i2c: E2 03 00 86 3B 00 90 00 35 [17:35:31]RAPDU: 90 00 [17:35:31]wFMCommunicate OK [17:35:31]wFMCommunicate request_size=255 [17:35:31]MH_SAM_APDU [17:35:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 12 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 46 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 74 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 A3 00 00 00 F4 03 04 00 E6 B4 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 AA E1 01 00 35 04 06 00 05 [17:35:31]Write to MH i2c: E2 02 01 87 3B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 12 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 46 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 74 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 A3 00 00 00 F4 03 04 00 E6 B4 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 AA E1 01 00 35 04 06 00 05 00 00 83 [17:35:31]Write i2c OK [17:35:31]MH_I2C_Read... [17:35:31]OFD Sender: No OFD packet to send [17:35:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:35:31]Read from MH i2c: E2 [17:35:31]MH_I2C_Read... [17:35:31]Read from MH i2c: E2 03 00 [17:35:31]MH_I2C_Read... [17:35:31]Read from MH i2c: E2 03 00 87 3B 00 90 00 36 [17:35:31]RAPDU: 90 00 [17:35:31]wFMCommunicate OK [17:35:31]wFMCommunicate request_size=10 [17:35:31]MH_SAM_APDU [17:35:31]CAPDU: 80 0D 02 02 05 78 66 A1 83 05 [17:35:31]Write to MH i2c: E2 0D 00 88 3B 80 0D 02 02 05 00 78 66 A1 83 05 00 00 4E [17:35:31]Write i2c OK [17:35:31]MH_I2C_Read... [17:35:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:35:31]Read from MH i2c: E2 [17:35:31]MH_I2C_Read... [17:35:31]Read from MH i2c: E2 03 00 [17:35:31]MH_I2C_Read... [17:35:31]Read from MH i2c: E2 03 00 88 3B 00 90 00 37 [17:35:31]RAPDU: 90 00 [17:35:31]wFMCommunicate OK [17:35:31]wFMCommunicate request_size=4 [17:35:31]MH_SAM_APDU [17:35:31]CAPDU: 80 0D 03 02 [17:35:31]Write to MH i2c: E2 08 00 89 3B 80 0D 03 02 00 00 00 00 3F [17:35:31]Write i2c OK [17:35:31]MH_I2C_Read... [17:35:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:35:31]Read from MH i2c: E2 [17:35:31]MH_I2C_Read... [17:35:31]Read from MH i2c: E2 0B 00 [17:35:31]MH_I2C_Read... [17:35:31]Read from MH i2c: E2 0B 00 89 3B 00 BE 84 1F 25 F1 DE 88 0F 90 00 2C [17:35:31]RAPDU: BE 84 1F 25 F1 DE 88 0F 90 00 [17:35:31]wFMCommunicate OK [17:35:31]SAM_PROTO_SignData done [17:35:31]FM_MakeSignedData done [17:35:31]CreateOFDProtocolMessage [17:35:31]wFMCommunicate request_size=4 [17:35:31]MH_SAM_APDU [17:35:31]CAPDU: 80 11 00 00 [17:35:31]Write to MH i2c: E2 08 00 8A 3B 80 11 00 00 00 00 00 00 3F [17:35:31]Write i2c OK [17:35:31]MH_I2C_Read... [17:35:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:35:31]Read from MH i2c: E2 [17:35:31]MH_I2C_Read... [17:35:31]Read from MH i2c: E2 17 00 [17:35:31]MH_I2C_Read... [17:35:31]Read from MH i2c: E2 17 00 8A 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 9D [17:35:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [17:35:31]wFMCommunicate OK [17:35:31]CreateOFDProtocolMessage done [17:35:31]OFDSenderStorePacket 123306 [17:35:31]StoreOFDPacket docnum=123306 [17:35:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 75 4D 07 01 08 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 12 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 46 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 74 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 A3 00 00 00 F4 03 04 00 E6 B4 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 AA E1 01 00 35 04 06 00 05 78 66 A1 83 05 BE 84 1F 25 F1 DE 88 0F [17:35:31]CheckFolder [17:35:31]dirname=/storage/ofd_packets [17:35:31]CheckFolder done [17:35:31]ProducePacketName [17:35:31]name=ofd_packets/00123306 [17:35:31]NVStorageSaveData ofd_packets/00123306 [17:35:31]File name is /storage/ofd_packets/00123306 [17:35:31]Write 301 bytes [17:35:31]NVStorageSaveData done [17:35:31]OFDSenderStorePacket done [17:35:31]KKMCreateOFDPacket done [17:35:31]NVStorageSaveData kkm_last_timestamp [17:35:31]File name is /storage/kkm_last_timestamp [17:35:31]Write 4 bytes [17:35:31]NVStorageSaveData done [17:35:31]ExternCall_PrintAddStr [17:35:31]wPrintStart [17:35:31]Write to MH i2c: 01 00 00 8B 3B C6 [17:35:31]Write i2c OK [17:35:31]MH_I2C_Read... [17:35:31]Read from MH i2c: 01 [17:35:31]MH_I2C_Read... [17:35:31]Read from MH i2c: 01 07 00 [17:35:31]MH_I2C_Read... [17:35:31]Read from MH i2c: 01 07 00 8B 3B 00 00 00 00 00 FF 0F DB [17:35:31]RasterBufferAndPrint [17:35:31]line Счет N : (1)1106250 [17:35:31]line ИНН: 02508201610067 [17:35:31]line Контрольно-Кассовый Чек [17:35:31]line ПРОДАЖА [17:35:31]line ТРК (МРК, ГНК) : 62 [17:35:31]line Товар: 2710124130 [17:35:31]line Аи-92-К-5 [17:35:31]line 4.850 * 61.90 [17:35:31]line = 300.22 [17:35:31]line НДС 12% НСП 1% [17:35:31]line > о реализуемом товаре [17:35:31]line ОКРУГЛЕНИЕ: -0.22 [17:35:31]line ИТОГО: 300.00 [17:35:31]line Внесено: 300.00 [17:35:31]line СДАЧА: 0.00 [17:35:31]line НСП 1% : 2.66 [17:35:31]line НДС 12% : 31.88 [17:35:31]line Наличными: 300.00 [17:35:31]line Безнал.: 0.00 [17:35:31]line Место: АЗС № 25 "Партнер Нефть" [17:35:31]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [17:35:31]line СНО: Общий режим [17:35:31]line Чек 163 03.03.2024 17:35 [17:35:31]line Смена: 323 ФФД: 1.0 [17:35:31]line ЗНМ: 0300000019 [17:35:31]line РНМ: 0000000000090573 [17:35:31]line Версия ККМ: 001 [17:35:31]line ФМ: 0000000000874798 [17:35:31]line ФД: 123306 [17:35:31]line ФПД: 6014676075269 [17:35:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T173534&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123306&fm=6014676075269&tin=02508201610067®Number=0000000000090573&sum=30000 [17:35:32]OFD Sender: Processing packet 123306 [packets to send 112, broken 111] [17:35:32]ProducePacketName [17:35:32]name=ofd_packets/00123306 [17:35:32]OFD Sender: To server: pG, [17:35:32]CommunicateWithHost lk.salyk.kg:30040 [17:35:32]ConnectInit lk.salyk.kg [17:35:32]written 0, free lines is 4095 [17:35:32]Connected sock=10 [17:35: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 37 39 38 0F 01 00 00 75 4D 07 01 08 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 12 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 46 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 74 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 A3 00 00 00 F4 03 04 00 E6 B4 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 AA E1 01 00 35 04 06 00 05 78 66 A1 83 05 BE 84 1F 25 F1 DE 88 0F [17:35:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 D8 76 47 00 1E 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 37 39 38 10 04 04 00 AA E1 01 00 F4 03 04 00 11 61 E4 65 B6 04 01 00 00 48 76 2D B0 10 54 CB BD [17:35:32]CommunicateWithHost err = 0 [17:35:32]CheckOFDResponse [17:35:32]1017 (14) - 77093643461234 [17:35:32]1041 (16) - 0000000000874798 [17:35:32]1040 (4) - 123306 [17:35:32]1012 (4) - 03.03.2024 11:37 [17:35:32]1206 (1) - 0 [17:35:32]OFD Sender: Remove packet 123306 [17:35:32]ProducePacketName [17:35:32]name=ofd_packets/00123306 [17:35:32]NVStorageDeleteData [17:35:32]Write to MH i2c: 01 00 00 B6 3B F1 [17:35:32]Write i2c OK [17:35:32]MH_I2C_Read... [17:35:32]Read from MH i2c: 01 [17:35:32]MH_I2C_Read... [17:35:32]Read from MH i2c: 01 07 00 [17:35:32]MH_I2C_Read... [17:35:32]Read from MH i2c: 01 07 00 B6 3B 00 00 00 00 00 E3 0C E7 [17:35:32]RasterBufferAndPrint [17:35:32]line [17:35:32]line [17:35:32]line [17:35:32]line [17:35:32]line [17:35:32]written 0, free lines is 3305 [17:35:32]MH_Cut [17:35:32]Write to MH i2c: D1 01 00 BD 3B 01 CA [17:35:32]Write i2c OK [17:35:32]MH_I2C_Read... [17:35:32]Read from MH i2c: D1 [17:35:32]MH_I2C_Read... [17:35:32]Read from MH i2c: D1 01 00 [17:35:32]MH_I2C_Read... [17:35:32]Read from MH i2c: D1 01 00 BD 3B 00 C9 [17:35:32]Write to MH i2c: 01 00 00 BE 3B F9 [17:35:32]Write i2c OK [17:35:32]MH_I2C_Read... [17:35:32]OFD Sender: No OFD packet to send [17:35:33]*** Cut start [17:35:33]*** Purtial cut [17:35:33]*** Stage 1: CUTSNS_PIN = 1 [17:35:35]Read from MH i2c: 01 [17:35:35]MH_I2C_Read... [17:35:35]*** Stop cut motor [17:35:35]*** Cut end [17:35:35]Read from MH i2c: 01 07 00 [17:35:35]MH_I2C_Read... [17:35:35]Read from MH i2c: 01 07 00 BE 3B 00 00 00 00 00 FF 0F 0E [17:35:35]process_action close_receipt done [17:35:35]requested_data is exist [17:35:35]produce_requested_data [17:35:35]requested_item fm.sn is exist - process it [17:35:35]wFMCommunicate request_size=4 [17:35:35]MH_SAM_APDU [17:35:35]CAPDU: 80 11 00 00 [17:35:35]Write to MH i2c: E2 08 00 BF 3B 80 11 00 00 00 00 00 00 74 [17:35:35]Write i2c OK [17:35:35]MH_I2C_Read... [17:35:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:35:35]Read from MH i2c: E2 [17:35:35]MH_I2C_Read... [17:35:35]Read from MH i2c: E2 17 00 [17:35:35]MH_I2C_Read... [17:35:35]Read from MH i2c: E2 17 00 BF 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 D2 [17:35:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [17:35:35]wFMCommunicate OK [17:35:35]requested_item fd.num is exist - process it [17:35:35]SAM_PROTO_GetFieldsCounters [17:35:35]wFMCommunicate request_size=4 [17:35:35]MH_SAM_APDU [17:35:35]CAPDU: 80 13 00 00 [17:35:35]Write to MH i2c: E2 08 00 C0 3B 80 13 00 00 00 00 00 00 77 [17:35:35]Write i2c OK [17:35:35]MH_I2C_Read... [17:35:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:35:35]Read from MH i2c: E2 [17:35:35]MH_I2C_Read... [17:35:35]Read from MH i2c: E2 62 00 [17:35:35]MH_I2C_Read... [17:35:35]Read from MH i2c: E2 62 00 C0 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 AA E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 5B [17:35: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 AA E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:35:35]wFMCommunicate OK [17:35:35]SAM_PROTO_GetFieldsCounters done [17:35:35]requested_item shift.num is exist - process it [17:35:35]requested_item shift.opened is exist - process it [17:35:35]req_shift_opened [17:35:35]FM_GetShiftState [17:35:35]SAM_PROTO_GetShiftState [17:35:35]wFMCommunicate request_size=4 [17:35:35]MH_SAM_APDU [17:35:35]CAPDU: 80 13 01 00 [17:35:35]Write to MH i2c: E2 08 00 C1 3B 80 13 01 00 00 00 00 00 79 [17:35:35]Write i2c OK [17:35:35]MH_I2C_Read... [17:35:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:35:35]Read from MH i2c: E2 [17:35:35]MH_I2C_Read... [17:35:35]Read from MH i2c: E2 0E 00 [17:35:35]MH_I2C_Read... [17:35:35]Read from MH i2c: E2 0E 00 C1 3B 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 3B [17:35:35]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [17:35:35]wFMCommunicate OK [17:35:35]SAM_PROTO_GetShiftState done [17:35:35]FM_GetShiftState done [17:35:35]req_shift_opened done [17:35:35]requested_item shift.open_date is exist - process it [17:35:35]req_shift_open_date [17:35:35]req_shift_open_date done [17:35:35]produce_requested_data done [17:35:35]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123306,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [17:35:35]process_action_free close_receipt [17:35:35]json_value_free [17:35:35]json_value_free done [17:35:35]process_json_proto returns [17:35:35]Send response to host [17:35:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123306,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [17:35:35]free response buf [17:35:35]execute_script done [17:35:35]execute_script returns [17:35:35]free content buf [17:35:35]Sock 9.Close socket [17:35:35]Sock 9.Thread stoped [17:35:37]OFD Sender: No OFD packet to send [17:35:42]OFD Sender: No OFD packet to send [17:35:47]OFD Sender: No OFD packet to send [17:35:52]OFD Sender: No OFD packet to send [17:35:57]OFD Sender: No OFD packet to send [17:35:59]accept exits with 7 [17:35:59]New connection [17:35:59]New thread 3067252068 created [17:35:59]Thread 3067395428 joined [17:35:59]Waiting for new connection... [17:35:59] Sock 7.Parse request [17:35:59]Sock 7.Check first char [17:35:59]Sock 7.First char is OK [17:35:59]request: POST /json_proto HTTP/1.0 [17:35:59]Method: POST [17:35:59]URL: /json_proto [17:35:59]Method is POST - this is cgi request [17:35:59]url: /json_proto [17:35:59]query_string will be loaded in cgi processing [17:35:59]execute_cgi json_proto POST (null) [17:35:59]execute_cgi path=json_proto method=POST [17:35:59]POST find Content-Length [17:35:59]Host: 172.17.48.197:8080 [17:35:59]Content-Length: 820 [17:35:59]Content-Type: application/json [17:35:59] [17:35:59]POST finish read [17:35:59]Found Content-Length = 820 [17:35:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106249", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 28.780, "sum" : 2000.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.21 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:35:59]execute_script... [17:35: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)1106249", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 28.780, "sum" : 2000.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.21 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:35:59]POST & json_proto [17:35:59]process_json_proto [17:35:59]json parsed OK: [17:35:59]protocol is kg_v1.0 [17:35:59]action value=close_receipt [17:35:59]process_action close_receipt [17:35:59]cmd_close_receipt [17:35:59]MH_GetDate [17:35:59]Write to MH i2c: F0 00 00 C2 3B EC [17:35:59]Write i2c OK [17:35:59]MH_I2C_Read... [17:35:59]Read from MH i2c: F0 [17:35:59]MH_I2C_Read... [17:35:59]Read from MH i2c: F0 09 00 [17:35:59]MH_I2C_Read... [17:35:59]Read from MH i2c: F0 09 00 C2 3B 00 03 B5 E4 65 6C AF E3 65 59 [17:35:59]GetLastDocTimeStamp 1709487334 [17:35:59]current date 1709487363 [17:35:59]FM_GetShiftState [17:35:59]SAM_PROTO_GetShiftState [17:35:59]wFMCommunicate request_size=4 [17:35:59]MH_SAM_APDU [17:35:59]CAPDU: 80 13 01 00 [17:35:59]Write to MH i2c: E2 08 00 C3 3B 80 13 01 00 00 00 00 00 7B [17:35:59]Write i2c OK [17:35:59]MH_I2C_Read... [17:35:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:35:59]Read from MH i2c: E2 [17:35:59]MH_I2C_Read... [17:35:59]Read from MH i2c: E2 0E 00 [17:35:59]MH_I2C_Read... [17:35:59]Read from MH i2c: E2 0E 00 C3 3B 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 3D [17:35:59]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [17:35:59]wFMCommunicate OK [17:35:59]SAM_PROTO_GetShiftState done [17:35:59]FM_GetShiftState done [17:35:59]opened in 1709425579 [17:35:59]opened+sec_in_day 1709511979 [17:35:59]quantity*price = 200021 [17:35:59]sum+1 = 200022 [17:35:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.21 НСП 1% : 17.70 НДС 12% : 212.41 Наличными: 0.00 Безнал.: 2000.21 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 164 03.03.2024 17:36 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874798 ФД: 123307 ФПД: 41393237294568 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T173603&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123307&fm=41393237294568&tin=02508201610067®Number=0000000000090573&sum=200021 [17:36:00]StoreToDocumentArchive [17:36:00]shift 323 fd 123307 [17:36:00]save to /storage/0323/doc_00123307 [17:36:00]save last doc name /storage/0323/doc_00123307 to /storage/kkm_last_doc_name [17:36:00]save OK [17:36:00]Clear old archive folders... [17:36:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:36:00]tlvbuf is 00DA9080 [17:36:00]SAM_PROTO_ClearQueue [17:36:00]wFMCommunicate request_size=4 [17:36:00]MH_SAM_APDU [17:36:00]CAPDU: 80 09 00 00 [17:36:00]Write to MH i2c: E2 08 00 D0 3B 80 09 00 00 00 00 00 00 7D [17:36:00]Write i2c OK [17:36:00]MH_I2C_Read... [17:36:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:36:00]Read from MH i2c: E2 [17:36:00]MH_I2C_Read... [17:36:00]Read from MH i2c: E2 03 00 [17:36:00]MH_I2C_Read... [17:36:00]Read from MH i2c: E2 03 00 D0 3B 00 90 00 7F [17:36:00]RAPDU: 90 00 [17:36:00]wFMCommunicate OK [17:36:00]SAM_PROTO_ClearQueue done [17:36:00]KKMCreateOFDPacket [17:36:00]OFDProtocolAddRootSTLVToBuf [17:36:00]FM_MakeSignedData [17:36:00]FM_MakeSignedData [17:36:00]SAM_PROTO_SignData [17:36:00]wFMCommunicate request_size=4 [17:36:00]MH_SAM_APDU [17:36:00]CAPDU: 80 0D 01 02 [17:36:00]Write to MH i2c: E2 08 00 D1 3B 80 0D 01 02 00 00 00 00 85 [17:36:00]Write i2c OK [17:36:00]MH_I2C_Read... [17:36:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:36:00]Read from MH i2c: E2 [17:36:00]MH_I2C_Read... [17:36:00]Read from MH i2c: E2 03 00 [17:36:00]MH_I2C_Read... [17:36:00]Read from MH i2c: E2 03 00 D1 3B 00 90 00 80 [17:36:00]RAPDU: 90 00 [17:36:00]wFMCommunicate OK [17:36:00]wFMCommunicate request_size=255 [17:36:00]MH_SAM_APDU [17:36:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 6C 70 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 55 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 55 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 55 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 03 B5 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 AB E1 01 00 35 04 06 00 25 [17:36:00]Write to MH i2c: E2 02 01 D2 3B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 6C 70 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 55 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 55 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 55 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 03 B5 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 AB E1 01 00 35 04 06 00 25 00 00 BF [17:36:00]Write i2c OK [17:36:00]MH_I2C_Read... [17:36:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:36:00]Read from MH i2c: E2 [17:36:00]MH_I2C_Read... [17:36:00]Read from MH i2c: E2 03 00 [17:36:00]MH_I2C_Read... [17:36:00]Read from MH i2c: E2 03 00 D2 3B 00 90 00 81 [17:36:00]RAPDU: 90 00 [17:36:00]wFMCommunicate OK [17:36:00]wFMCommunicate request_size=10 [17:36:00]MH_SAM_APDU [17:36:00]CAPDU: 80 0D 02 02 05 A5 9D 34 7D E8 [17:36:00]Write to MH i2c: E2 0D 00 D3 3B 80 0D 02 02 05 00 A5 9D 34 7D E8 00 00 6D [17:36:00]Write i2c OK [17:36:00]MH_I2C_Read... [17:36:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:36:00]Read from MH i2c: E2 [17:36:00]MH_I2C_Read... [17:36:00]Read from MH i2c: E2 03 00 [17:36:00]MH_I2C_Read... [17:36:00]Read from MH i2c: E2 03 00 D3 3B 00 90 00 82 [17:36:00]RAPDU: 90 00 [17:36:00]wFMCommunicate OK [17:36:00]wFMCommunicate request_size=4 [17:36:00]MH_SAM_APDU [17:36:00]CAPDU: 80 0D 03 02 [17:36:00]Write to MH i2c: E2 08 00 D4 3B 80 0D 03 02 00 00 00 00 8A [17:36:00]Write i2c OK [17:36:00]MH_I2C_Read... [17:36:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:36:00]Read from MH i2c: E2 [17:36:00]MH_I2C_Read... [17:36:00]Read from MH i2c: E2 0B 00 [17:36:00]MH_I2C_Read... [17:36:00]Read from MH i2c: E2 0B 00 D4 3B 00 A8 E4 B5 F8 7A DE A8 70 90 00 34 [17:36:00]RAPDU: A8 E4 B5 F8 7A DE A8 70 90 00 [17:36:01]wFMCommunicate OK [17:36:01]SAM_PROTO_SignData done [17:36:01]FM_MakeSignedData done [17:36:01]CreateOFDProtocolMessage [17:36:01]wFMCommunicate request_size=4 [17:36:01]MH_SAM_APDU [17:36:01]CAPDU: 80 11 00 00 [17:36:01]Write to MH i2c: E2 08 00 D5 3B 80 11 00 00 00 00 00 00 8A [17:36:01]Write i2c OK [17:36:01]MH_I2C_Read... [17:36:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:01]Read from MH i2c: E2 [17:36:01]MH_I2C_Read... [17:36:01]Read from MH i2c: E2 17 00 [17:36:01]MH_I2C_Read... [17:36:01]Read from MH i2c: E2 17 00 D5 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 E8 [17:36:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [17:36:01]wFMCommunicate OK [17:36:01]CreateOFDProtocolMessage done [17:36:01]OFDSenderStorePacket 123307 [17:36:01]StoreOFDPacket docnum=123307 [17:36:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 60 29 07 01 D4 A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 6C 70 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 55 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 55 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 55 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 03 B5 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 AB E1 01 00 35 04 06 00 25 A5 9D 34 7D E8 A8 E4 B5 F8 7A DE A8 70 [17:36:01]CheckFolder [17:36:01]dirname=/storage/ofd_packets [17:36:01]CheckFolder done [17:36:01]ProducePacketName [17:36:01]name=ofd_packets/00123307 [17:36:01]NVStorageSaveData ofd_packets/00123307 [17:36:01]File name is /storage/ofd_packets/00123307 [17:36:01]Write 301 bytes [17:36:01]NVStorageSaveData done [17:36:01]OFDSenderStorePacket done [17:36:01]KKMCreateOFDPacket done [17:36:01]NVStorageSaveData kkm_last_timestamp [17:36:01]File name is /storage/kkm_last_timestamp [17:36:01]Write 4 bytes [17:36:01]NVStorageSaveData done [17:36:01]ExternCall_PrintAddStr [17:36:01]wPrintStart [17:36:01]Write to MH i2c: 01 00 00 D6 3B 11 [17:36:01]Write i2c OK [17:36:01]MH_I2C_Read... [17:36:01]Read from MH i2c: 01 [17:36:01]MH_I2C_Read... [17:36:01]Read from MH i2c: 01 07 00 [17:36:01]MH_I2C_Read... [17:36:01]Read from MH i2c: 01 07 00 D6 3B 00 00 00 00 00 FF 0F 26 [17:36:01]RasterBufferAndPrint [17:36:01]line Счет N : (1)1106249 [17:36:01]line ИНН: 02508201610067 [17:36:01]line Контрольно-Кассовый Чек [17:36:01]line ПРОДАЖА [17:36:01]line ТРК (МРК, ГНК) : 23 [17:36:01]line Товар: 2710124500 [17:36:01]line Аи-95-К-5 [17:36:01]line 28.780 * 69.50 [17:36:01]line = 2000.21 [17:36:01]line НДС 12% НСП 1% [17:36:01]line > о реализуемом товаре [17:36:01]line ИТОГО: 2000.21 [17:36:01]line НСП 1% : 17.70 [17:36:01]line НДС 12% : 212.41 [17:36:01]line Наличными: 0.00 [17:36:01]line Безнал.: 2000.21 [17:36:01]line Место: АЗС № 25 "Партнер Нефть" [17:36:01]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [17:36:01]line СНО: Общий режим [17:36:01]line Чек 164 03.03.2024 17:36 [17:36:01]line Смена: 323 ФФД: 1.0 [17:36:01]line ЗНМ: 0300000019 [17:36:01]line РНМ: 0000000000090573 [17:36:01]line Версия ККМ: 001 [17:36:01]line Платежная система: Бакай Банк [17:36:01]line ФМ: 0000000000874798 [17:36:01]line ФД: 123307 [17:36:01]line ФПД: 41393237294568 [17:36:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T173603&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123307&fm=41393237294568&tin=02508201610067®Number=0000000000090573&sum=200021 [17:36:01]OFD Sender: Processing packet 123307 [packets to send 112, broken 111] [17:36:01]ProducePacketName [17:36:01]name=ofd_packets/00123307 [17:36:01]OFD Sender: To server: pG, [17:36:01]CommunicateWithHost lk.salyk.kg:30040 [17:36:01]ConnectInit lk.salyk.kg [17:36:01]written 0, free lines is 4095 [17:36:01]Connected sock=10 [17:36: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 37 39 38 0F 01 00 00 60 29 07 01 D4 A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 6C 70 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 55 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 55 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 55 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 03 B5 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 AB E1 01 00 35 04 06 00 25 A5 9D 34 7D E8 A8 E4 B5 F8 7A DE A8 70 [17:36:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 58 28 47 00 79 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 37 39 38 10 04 04 00 AB E1 01 00 F4 03 04 00 2E 61 E4 65 B6 04 01 00 00 F4 2B A1 27 AB B2 23 71 [17:36:01]CommunicateWithHost err = 0 [17:36:01]CheckOFDResponse [17:36:01]1017 (14) - 77093643461234 [17:36:01]1041 (16) - 0000000000874798 [17:36:01]1040 (4) - 123307 [17:36:01]1012 (4) - 03.03.2024 11:38 [17:36:01]1206 (1) - 0 [17:36:01]OFD Sender: Remove packet 123307 [17:36:01]ProducePacketName [17:36:01]name=ofd_packets/00123307 [17:36:01]NVStorageDeleteData [17:36:01]Write to MH i2c: 01 00 00 00 3C 3C [17:36:01]Write i2c OK [17:36:01]MH_I2C_Read... [17:36:01]Read from MH i2c: 01 [17:36:01]MH_I2C_Read... [17:36:01]Read from MH i2c: 01 07 00 [17:36:01]MH_I2C_Read... [17:36:01]Read from MH i2c: 01 07 00 00 3C 00 00 00 00 00 05 0D 55 [17:36:01]RasterBufferAndPrint [17:36:01]line [17:36:01]line [17:36:01]line [17:36:01]line [17:36:01]line [17:36:01]written 0, free lines is 3342 [17:36:01]MH_Cut [17:36:01]Write to MH i2c: D1 01 00 07 3C 01 15 [17:36:01]Write i2c OK [17:36:01]MH_I2C_Read... [17:36:01]Read from MH i2c: D1 [17:36:01]MH_I2C_Read... [17:36:01]Read from MH i2c: D1 01 00 [17:36:01]MH_I2C_Read... [17:36:01]Read from MH i2c: D1 01 00 07 3C 00 14 [17:36:01]Write to MH i2c: 01 00 00 08 3C 44 [17:36:01]Write i2c OK [17:36:01]MH_I2C_Read... [17:36:02]OFD Sender: No OFD packet to send [17:36:02]*** Cut start [17:36:02]*** Purtial cut [17:36:02]*** Stage 1: CUTSNS_PIN = 1 [17:36:04]Read from MH i2c: 01 [17:36:04]MH_I2C_Read... [17:36:04]*** Stop cut motor [17:36:04]*** Cut end [17:36:04]Read from MH i2c: 01 07 00 [17:36:04]MH_I2C_Read... [17:36:04]Read from MH i2c: 01 07 00 08 3C 00 00 00 00 00 FF 0F 59 [17:36:04]process_action close_receipt done [17:36:04]requested_data is exist [17:36:04]produce_requested_data [17:36:04]requested_item fm.sn is exist - process it [17:36:04]wFMCommunicate request_size=4 [17:36:04]MH_SAM_APDU [17:36:04]CAPDU: 80 11 00 00 [17:36:04]Write to MH i2c: E2 08 00 09 3C 80 11 00 00 00 00 00 00 BF [17:36:04]Write i2c OK [17:36:04]MH_I2C_Read... [17:36:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:04]Read from MH i2c: E2 [17:36:04]MH_I2C_Read... [17:36:04]Read from MH i2c: E2 17 00 [17:36:04]MH_I2C_Read... [17:36:04]Read from MH i2c: E2 17 00 09 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 1D [17:36:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [17:36:04]wFMCommunicate OK [17:36:04]requested_item fd.num is exist - process it [17:36:04]SAM_PROTO_GetFieldsCounters [17:36:04]wFMCommunicate request_size=4 [17:36:04]MH_SAM_APDU [17:36:04]CAPDU: 80 13 00 00 [17:36:04]Write to MH i2c: E2 08 00 0A 3C 80 13 00 00 00 00 00 00 C2 [17:36:04]Write i2c OK [17:36:04]MH_I2C_Read... [17:36:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:36:04]Read from MH i2c: E2 [17:36:04]MH_I2C_Read... [17:36:04]Read from MH i2c: E2 62 00 [17:36:04]MH_I2C_Read... [17:36:04]Read from MH i2c: E2 62 00 0A 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 AB E1 01 00 0E 04 04 00 43 01 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 AA [17:36: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 AB E1 01 00 0E 04 04 00 43 01 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 [17:36:04]wFMCommunicate OK [17:36:04]SAM_PROTO_GetFieldsCounters done [17:36:04]requested_item shift.num is exist - process it [17:36:04]requested_item shift.opened is exist - process it [17:36:04]req_shift_opened [17:36:04]FM_GetShiftState [17:36:04]SAM_PROTO_GetShiftState [17:36:04]wFMCommunicate request_size=4 [17:36:04]MH_SAM_APDU [17:36:04]CAPDU: 80 13 01 00 [17:36:04]Write to MH i2c: E2 08 00 0B 3C 80 13 01 00 00 00 00 00 C4 [17:36:04]Write i2c OK [17:36:04]MH_I2C_Read... [17:36:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:04]Read from MH i2c: E2 [17:36:04]MH_I2C_Read... [17:36:04]Read from MH i2c: E2 0E 00 [17:36:04]MH_I2C_Read... [17:36:04]Read from MH i2c: E2 0E 00 0B 3C 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 86 [17:36:04]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [17:36:04]wFMCommunicate OK [17:36:04]SAM_PROTO_GetShiftState done [17:36:04]FM_GetShiftState done [17:36:04]req_shift_opened done [17:36:04]requested_item shift.open_date is exist - process it [17:36:04]req_shift_open_date [17:36:04]req_shift_open_date done [17:36:04]produce_requested_data done [17:36:04]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123307,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [17:36:04]process_action_free close_receipt [17:36:04]json_value_free [17:36:04]json_value_free done [17:36:04]process_json_proto returns [17:36:04]Send response to host [17:36:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123307,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [17:36:04]free response buf [17:36:04]execute_script done [17:36:04]execute_script returns [17:36:04]free content buf [17:36:04]Sock 7.Close socket [17:36:04]Sock 7.Thread stoped [17:36:07]OFD Sender: No OFD packet to send [17:36:12]OFD Sender: No OFD packet to send [17:36:17]OFD Sender: No OFD packet to send [17:36:22]OFD Sender: No OFD packet to send [17:36:27]OFD Sender: No OFD packet to send [17:36:32]OFD Sender: No OFD packet to send [17:36:37]OFD Sender: No OFD packet to send [17:36:42]OFD Sender: No OFD packet to send [17:36:47]OFD Sender: No OFD packet to send [17:36:52]accept exits with 9 [17:36:52]New connection [17:36:52]New thread 3067395428 created [17:36:52]Thread 3067252068 joined [17:36:52]Waiting for new connection... [17:36:52] Sock 9.Parse request [17:36:52]Sock 9.Check first char [17:36:52]Sock 9.First char is OK [17:36:52]request: POST /json_proto HTTP/1.0 [17:36:52]Method: POST [17:36:52]URL: /json_proto [17:36:52]Method is POST - this is cgi request [17:36:52]url: /json_proto [17:36:52]query_string will be loaded in cgi processing [17:36:52]execute_cgi json_proto POST (null) [17:36:52]execute_cgi path=json_proto method=POST [17:36:52]POST find Content-Length [17:36:52]Host: 172.17.48.197:8080 [17:36:52]Content-Length: 683 [17:36:52]Content-Type: application/json [17:36:52] [17:36:52]POST finish read [17:36:52]Found Content-Length = 683 [17:36:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106251", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 21.590, "sum" : 1500.51, "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" ] } } [17:36:52]execute_script... [17:36:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106251", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 21.590, "sum" : 1500.51, "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" ] } } [17:36:52]POST & json_proto [17:36:52]process_json_proto [17:36:52]json parsed OK: [17:36:52]protocol is kg_v1.0 [17:36:52]action value=close_receipt [17:36:52]process_action close_receipt [17:36:52]cmd_close_receipt [17:36:52]MH_GetDate [17:36:52]Write to MH i2c: F0 00 00 0C 3C 37 [17:36:52]Write i2c OK [17:36:52]MH_I2C_Read... [17:36:52]Read from MH i2c: F0 [17:36:52]MH_I2C_Read... [17:36:52]Read from MH i2c: F0 09 00 [17:36:52]MH_I2C_Read... [17:36:52]Read from MH i2c: F0 09 00 0C 3C 00 38 B5 E4 65 6C AF E3 65 D9 [17:36:52]GetLastDocTimeStamp 1709487363 [17:36:52]current date 1709487416 [17:36:52]FM_GetShiftState [17:36:52]SAM_PROTO_GetShiftState [17:36:52]wFMCommunicate request_size=4 [17:36:52]MH_SAM_APDU [17:36:52]CAPDU: 80 13 01 00 [17:36:52]Write to MH i2c: E2 08 00 0D 3C 80 13 01 00 00 00 00 00 C6 [17:36:52]Write i2c OK [17:36:52]MH_I2C_Read... [17:36:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:52]Read from MH i2c: E2 [17:36:52]MH_I2C_Read... [17:36:52]Read from MH i2c: E2 0E 00 [17:36:52]MH_I2C_Read... [17:36:52]Read from MH i2c: E2 0E 00 0D 3C 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 88 [17:36:52]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [17:36:52]wFMCommunicate OK [17:36:52]SAM_PROTO_GetShiftState done [17:36:52]FM_GetShiftState done [17:36:52]opened in 1709425579 [17:36:52]opened+sec_in_day 1709511979 [17:36:52]quantity*price = 150050 [17:36:52]sum+1 = 150052 [17:36:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 165 03.03.2024 17:36 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123308 ФПД: 219656480455593 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T173656&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123308&fm=219656480455593&tin=02508201610067®Number=0000000000090573&sum=150000 [17:36:53]StoreToDocumentArchive [17:36:53]shift 323 fd 123308 [17:36:53]save to /storage/0323/doc_00123308 [17:36:53]save last doc name /storage/0323/doc_00123308 to /storage/kkm_last_doc_name [17:36:53]save OK [17:36:53]Clear old archive folders... [17:36:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:36:53]tlvbuf is 00DC51E0 [17:36:53]SAM_PROTO_ClearQueue [17:36:53]wFMCommunicate request_size=4 [17:36:53]MH_SAM_APDU [17:36:53]CAPDU: 80 09 00 00 [17:36:53]Write to MH i2c: E2 08 00 1A 3C 80 09 00 00 00 00 00 00 C8 [17:36:53]Write i2c OK [17:36:53]MH_I2C_Read... [17:36:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:36:53]Read from MH i2c: E2 [17:36:53]MH_I2C_Read... [17:36:53]Read from MH i2c: E2 03 00 [17:36:53]MH_I2C_Read... [17:36:53]Read from MH i2c: E2 03 00 1A 3C 00 90 00 CA [17:36:53]RAPDU: 90 00 [17:36:53]wFMCommunicate OK [17:36:53]SAM_PROTO_ClearQueue done [17:36:53]KKMCreateOFDPacket [17:36:53]OFDProtocolAddRootSTLVToBuf [17:36:53]FM_MakeSignedData [17:36:53]FM_MakeSignedData [17:36:53]SAM_PROTO_SignData [17:36:53]wFMCommunicate request_size=4 [17:36:53]MH_SAM_APDU [17:36:53]CAPDU: 80 0D 01 02 [17:36:53]Write to MH i2c: E2 08 00 1B 3C 80 0D 01 02 00 00 00 00 D0 [17:36:53]Write i2c OK [17:36:53]MH_I2C_Read... [17:36:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:36:53]Read from MH i2c: E2 [17:36:53]MH_I2C_Read... [17:36:53]Read from MH i2c: E2 03 00 [17:36:53]MH_I2C_Read... [17:36:53]Read from MH i2c: E2 03 00 1B 3C 00 90 00 CB [17:36:53]RAPDU: 90 00 [17:36:53]wFMCommunicate OK [17:36:53]wFMCommunicate request_size=255 [17:36:53]MH_SAM_APDU [17:36:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 54 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 23 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 38 B5 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 AC E1 01 00 35 04 06 00 C7 [17:36:53]Write to MH i2c: E2 02 01 1C 3C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 54 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 23 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 38 B5 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 AC E1 01 00 35 04 06 00 C7 00 00 DE [17:36:53]Write i2c OK [17:36:53]MH_I2C_Read... [17:36:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:36:53]Read from MH i2c: E2 [17:36:53]MH_I2C_Read... [17:36:53]Read from MH i2c: E2 03 00 [17:36:53]MH_I2C_Read... [17:36:53]Read from MH i2c: E2 03 00 1C 3C 00 90 00 CC [17:36:53]RAPDU: 90 00 [17:36:53]wFMCommunicate OK [17:36:53]wFMCommunicate request_size=10 [17:36:53]MH_SAM_APDU [17:36:53]CAPDU: 80 0D 02 02 05 C6 C2 7D 7B A9 [17:36:53]Write to MH i2c: E2 0D 00 1D 3C 80 0D 02 02 05 00 C6 C2 7D 7B A9 00 00 06 [17:36:53]Write i2c OK [17:36:53]MH_I2C_Read... [17:36:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:36:53]Read from MH i2c: E2 [17:36:53]MH_I2C_Read... [17:36:53]Read from MH i2c: E2 03 00 [17:36:53]MH_I2C_Read... [17:36:53]Read from MH i2c: E2 03 00 1D 3C 00 90 00 CD [17:36:53]RAPDU: 90 00 [17:36:53]wFMCommunicate OK [17:36:53]wFMCommunicate request_size=4 [17:36:53]MH_SAM_APDU [17:36:53]CAPDU: 80 0D 03 02 [17:36:53]Write to MH i2c: E2 08 00 1E 3C 80 0D 03 02 00 00 00 00 D5 [17:36:53]Write i2c OK [17:36:53]MH_I2C_Read... [17:36:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:36:53]Read from MH i2c: E2 [17:36:53]MH_I2C_Read... [17:36:53]Read from MH i2c: E2 0B 00 [17:36:53]MH_I2C_Read... [17:36:53]Read from MH i2c: E2 0B 00 1E 3C 00 27 E3 8A 62 7B 44 A7 E6 90 00 18 [17:36:53]RAPDU: 27 E3 8A 62 7B 44 A7 E6 90 00 [17:36:53]wFMCommunicate OK [17:36:53]SAM_PROTO_SignData done [17:36:53]FM_MakeSignedData done [17:36:53]CreateOFDProtocolMessage [17:36:53]wFMCommunicate request_size=4 [17:36:53]MH_SAM_APDU [17:36:53]CAPDU: 80 11 00 00 [17:36:53]Write to MH i2c: E2 08 00 1F 3C 80 11 00 00 00 00 00 00 D5 [17:36:53]Write i2c OK [17:36:53]MH_I2C_Read... [17:36:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:53]Read from MH i2c: E2 [17:36:53]MH_I2C_Read... [17:36:53]Read from MH i2c: E2 17 00 [17:36:53]MH_I2C_Read... [17:36:53]Read from MH i2c: E2 17 00 1F 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 33 [17:36:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [17:36:53]wFMCommunicate OK [17:36:53]CreateOFDProtocolMessage done [17:36:53]OFDSenderStorePacket 123308 [17:36:53]StoreOFDPacket docnum=123308 [17:36:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 CE A6 07 01 8B 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 54 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 23 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 38 B5 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 AC E1 01 00 35 04 06 00 C7 C6 C2 7D 7B A9 27 E3 8A 62 7B 44 A7 E6 [17:36:53]CheckFolder [17:36:53]dirname=/storage/ofd_packets [17:36:53]CheckFolder done [17:36:53]ProducePacketName [17:36:53]name=ofd_packets/00123308 [17:36:53]NVStorageSaveData ofd_packets/00123308 [17:36:53]File name is /storage/ofd_packets/00123308 [17:36:53]Write 301 bytes [17:36:53]NVStorageSaveData done [17:36:53]OFDSenderStorePacket done [17:36:53]KKMCreateOFDPacket done [17:36:53]NVStorageSaveData kkm_last_timestamp [17:36:53]File name is /storage/kkm_last_timestamp [17:36:53]Write 4 bytes [17:36:53]NVStorageSaveData done [17:36:53]ExternCall_PrintAddStr [17:36:53]wPrintStart [17:36:53]Write to MH i2c: 01 00 00 20 3C 5C [17:36:53]OFD Sender: Processing packet 123308 [packets to send 112, broken 111] [17:36:53]ProducePacketName [17:36:53]name=ofd_packets/00123308 [17:36:53]OFD Sender: To server: pG, [17:36:53]CommunicateWithHost lk.salyk.kg:30040 [17:36:53]ConnectInit lk.salyk.kg [17:36:53]Write i2c OK [17:36:53]MH_I2C_Read... [17:36:53]Read from MH i2c: 01 [17:36:53]MH_I2C_Read... [17:36:53]Read from MH i2c: 01 07 00 [17:36:53]MH_I2C_Read... [17:36:53]Read from MH i2c: 01 07 00 20 3C 00 00 00 00 00 FF 0F 71 [17:36:53]RasterBufferAndPrint [17:36:53]line Счет N : (1)1106251 [17:36:53]line ИНН: 02508201610067 [17:36:53]line Контрольно-Кассовый Чек [17:36:53]line ПРОДАЖА [17:36:53]line ТРК (МРК, ГНК) : 53 [17:36:53]line Товар: 2710124500 [17:36:53]line Аи-95-К-5 [17:36:53]line 21.590 * 69.50 [17:36:53]line = 1500.51 [17:36:53]line НДС 12% НСП 1% [17:36:53]line > о реализуемом товаре [17:36:53]line ОКРУГЛЕНИЕ: -0.51 [17:36:53]line ИТОГО: 1500.00 [17:36:53]line Внесено: 1500.00 [17:36:53]line СДАЧА: 0.00 [17:36:53]line НСП 1% : 13.28 [17:36:53]line НДС 12% : 159.35 [17:36:53]line Наличными: 1500.00 [17:36:53]line Безнал.: 0.00 [17:36:53]line Место: АЗС № 25 "Партнер Нефть" [17:36:53]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [17:36:53]line СНО: Общий режим [17:36:53]line Чек 165 03.03.2024 17:36 [17:36:53]line Смена: 323 ФФД: 1.0 [17:36:53]line ЗНМ: 0300000019 [17:36:53]line РНМ: 0000000000090573 [17:36:53]line Версия ККМ: 001 [17:36:53]line ФМ: 0000000000874798 [17:36:53]line ФД: 123308 [17:36:53]line ФПД: 219656480455593 [17:36:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T173656&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123308&fm=219656480455593&tin=02508201610067®Number=0000000000090573&sum=150000 [17:36:53]written 0, free lines is 4095 [17:36:53]Connected sock=10 [17:36: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 37 39 38 0F 01 00 00 CE A6 07 01 8B 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 54 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 23 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 38 B5 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 AC E1 01 00 35 04 06 00 C7 C6 C2 7D 7B A9 27 E3 8A 62 7B 44 A7 E6 [17:36:54]Write to MH i2c: 01 00 00 4B 3C 87 [17:36:54]Write i2c OK [17:36:54]MH_I2C_Read... [17:36:54]Read from MH i2c: 01 [17:36:54]MH_I2C_Read... [17:36:54]Read from MH i2c: 01 07 00 [17:36:54]MH_I2C_Read... [17:36:54]Read from MH i2c: 01 07 00 4B 3C 00 00 00 00 00 E5 0C 7F [17:36:54]RasterBufferAndPrint [17:36:54]line [17:36:54]line [17:36:54]line [17:36:54]line [17:36:54]line [17:36:54]written 0, free lines is 3310 [17:36:54]MH_Cut [17:36:54]Write to MH i2c: D1 01 00 52 3C 01 60 [17:36:54]Write i2c OK [17:36:54]MH_I2C_Read... [17:36:54]Read from MH i2c: D1 [17:36:54]MH_I2C_Read... [17:36:54]Read from MH i2c: D1 01 00 [17:36:54]MH_I2C_Read... [17:36:54]Read from MH i2c: D1 01 00 52 3C 00 5F [17:36:54]Write to MH i2c: 01 00 00 53 3C 8F [17:36:54]Write i2c OK [17:36:54]MH_I2C_Read... [17:36:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 48 A7 47 00 24 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 37 39 38 10 04 04 00 AC E1 01 00 F4 03 04 00 63 61 E4 65 B6 04 01 00 00 90 D2 C6 B0 2B 46 62 4D [17:36:54]CommunicateWithHost err = 0 [17:36:54]CheckOFDResponse [17:36:54]1017 (14) - 77093643461234 [17:36:54]1041 (16) - 0000000000874798 [17:36:54]1040 (4) - 123308 [17:36:54]1012 (4) - 03.03.2024 11:39 [17:36:54]1206 (1) - 0 [17:36:54]OFD Sender: Remove packet 123308 [17:36:54]ProducePacketName [17:36:54]name=ofd_packets/00123308 [17:36:54]NVStorageDeleteData [17:36:54]OFD Sender: No OFD packet to send [17:36:54]*** Cut start [17:36:54]*** Purtial cut [17:36:54]*** Stage 1: CUTSNS_PIN = 1 [17:36:56]Read from MH i2c: 01 [17:36:56]MH_I2C_Read... [17:36:56]*** Stop cut motor [17:36:56]*** Cut end [17:36:56]Read from MH i2c: 01 07 00 [17:36:56]MH_I2C_Read... [17:36:56]Read from MH i2c: 01 07 00 53 3C 00 00 00 00 00 FF 0F A4 [17:36:56]process_action close_receipt done [17:36:56]requested_data is exist [17:36:56]produce_requested_data [17:36:56]requested_item fm.sn is exist - process it [17:36:56]wFMCommunicate request_size=4 [17:36:56]MH_SAM_APDU [17:36:56]CAPDU: 80 11 00 00 [17:36:56]Write to MH i2c: E2 08 00 54 3C 80 11 00 00 00 00 00 00 0A [17:36:56]Write i2c OK [17:36:56]MH_I2C_Read... [17:36:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:57]Read from MH i2c: E2 [17:36:57]MH_I2C_Read... [17:36:57]Read from MH i2c: E2 17 00 [17:36:57]MH_I2C_Read... [17:36:57]Read from MH i2c: E2 17 00 54 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 68 [17:36:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [17:36:57]wFMCommunicate OK [17:36:57]requested_item fd.num is exist - process it [17:36:57]SAM_PROTO_GetFieldsCounters [17:36:57]wFMCommunicate request_size=4 [17:36:57]MH_SAM_APDU [17:36:57]CAPDU: 80 13 00 00 [17:36:57]Write to MH i2c: E2 08 00 55 3C 80 13 00 00 00 00 00 00 0D [17:36:57]Write i2c OK [17:36:57]MH_I2C_Read... [17:36:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:36:57]Read from MH i2c: E2 [17:36:57]MH_I2C_Read... [17:36:57]Read from MH i2c: E2 62 00 [17:36:57]MH_I2C_Read... [17:36:57]Read from MH i2c: E2 62 00 55 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 AC E1 01 00 0E 04 04 00 43 01 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 F9 [17:36: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 AC E1 01 00 0E 04 04 00 43 01 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 [17:36:57]wFMCommunicate OK [17:36:57]SAM_PROTO_GetFieldsCounters done [17:36:57]requested_item shift.num is exist - process it [17:36:57]requested_item shift.opened is exist - process it [17:36:57]req_shift_opened [17:36:57]FM_GetShiftState [17:36:57]SAM_PROTO_GetShiftState [17:36:57]wFMCommunicate request_size=4 [17:36:57]MH_SAM_APDU [17:36:57]CAPDU: 80 13 01 00 [17:36:57]Write to MH i2c: E2 08 00 56 3C 80 13 01 00 00 00 00 00 0F [17:36:57]Write i2c OK [17:36:57]MH_I2C_Read... [17:36:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:57]Read from MH i2c: E2 [17:36:57]MH_I2C_Read... [17:36:57]Read from MH i2c: E2 0E 00 [17:36:57]MH_I2C_Read... [17:36:57]Read from MH i2c: E2 0E 00 56 3C 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 D1 [17:36:57]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [17:36:57]wFMCommunicate OK [17:36:57]SAM_PROTO_GetShiftState done [17:36:57]FM_GetShiftState done [17:36:57]req_shift_opened done [17:36:57]requested_item shift.open_date is exist - process it [17:36:57]req_shift_open_date [17:36:57]req_shift_open_date done [17:36:57]produce_requested_data done [17:36:57]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123308,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [17:36:57]process_action_free close_receipt [17:36:57]json_value_free [17:36:57]json_value_free done [17:36:57]process_json_proto returns [17:36:57]Send response to host [17:36:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123308,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [17:36:57]free response buf [17:36:57]execute_script done [17:36:57]execute_script returns [17:36:57]free content buf [17:36:57]Sock 9.Close socket [17:36:57]Sock 9.Thread stoped [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:49]OFD Sender: No OFD packet to send [17:37:54]OFD Sender: No OFD packet to send [17:37:59]OFD Sender: No OFD packet to send [17:38:04]OFD Sender: No OFD packet to send [17:38:09]OFD Sender: No OFD packet to send [17:38:14]OFD Sender: No OFD packet to send [17:38:19]OFD Sender: No OFD packet to send [17:38:24]OFD Sender: No OFD packet to send [17:38:29]OFD Sender: No OFD packet to send [17:38:34]OFD Sender: No OFD packet to send [17:38:39]OFD Sender: No OFD packet to send [17:38:44]OFD Sender: No OFD packet to send [17:38:49]OFD Sender: No OFD packet to send [17:38:54]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:39:58]accept exits with 7 [17:39:58]New connection [17:39:58]New thread 3067252068 created [17:39:58]Thread 3067395428 joined [17:39:58]Waiting for new connection... [17:39:58] Sock 7.Parse request [17:39:58]Sock 7.Check first char [17:39:58]Sock 7.First char is OK [17:39:58]request: POST /json_proto HTTP/1.0 [17:39:58]Method: POST [17:39:58]URL: /json_proto [17:39:58]Method is POST - this is cgi request [17:39:58]url: /json_proto [17:39:58]query_string will be loaded in cgi processing [17:39:58]execute_cgi json_proto POST (null) [17:39:58]execute_cgi path=json_proto method=POST [17:39:58]POST find Content-Length [17:39:58]Host: 172.17.48.197:8080 [17:39:58]Content-Length: 1218 [17:39:58]Content-Type: application/json [17:39:58] [17:39:58]POST finish read [17:39:58]Found Content-Length = 1218 [17:39:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106252\u000A03.03.2024 17:36\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 1238.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3581970\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:39:58]execute_script... [17:39:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106252\u000A03.03.2024 17:36\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 1238.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3581970\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:39:58]POST & json_proto [17:39:58]process_json_proto [17:39:58]json parsed OK: [17:39:58]protocol is kg_v1.0 [17:39:58]action value=print_text [17:39:58]process_action print_text [17:39:58]cmd_print_text [17:39:58]ExternCall_PrintAddStr [17:39:58]wPrintStart [17:39:58]Write to MH i2c: 01 00 00 57 3C 93 [17:39:58]Write i2c OK [17:39:58]MH_I2C_Read... [17:39:58]Read from MH i2c: 01 [17:39:58]MH_I2C_Read... [17:39:58]Read from MH i2c: 01 07 00 [17:39:58]MH_I2C_Read... [17:39:58]Read from MH i2c: 01 07 00 57 3C 00 00 00 00 00 FF 0F A8 [17:39:58]RasterBufferAndPrint [17:39:58]line *****ТОВАРНЫЙ ЧЕК***** [17:39:58]line АЗС 25 [17:39:58]line Партнер нефть [17:39:58]line 02508201610067 [17:39:58]line Кассир : Турдумбек у. К. [17:39:58]line Счет N : (1)1106252 [17:39:58]line 03.03.2024 17:36 [17:39:58]line ПРОДАЖА [17:39:58]line ТРК (МРК, ГНК): 32 [17:39:58]line Вид ГСМ : 2710124130 [17:39:58]line Аи-92-К-5 [17:39:58]line 20.000 x 61.90 [17:39:58]line ИТОГ: 1238.00 [17:39:58]line Тип оплаты: Талоны: Топливные Талоны [17:39:58]line 3581970 [17:39:58]line ______________________ [17:39:58]line (подпись) [17:39:58]written 0, free lines is 4095 [17:39:58]Write to MH i2c: 01 00 00 6C 3C A8 [17:39:58]Write i2c OK [17:39:58]MH_I2C_Read... [17:39:58]Read from MH i2c: 01 [17:39:58]MH_I2C_Read... [17:39:58]Read from MH i2c: 01 07 00 [17:39:58]MH_I2C_Read... [17:39:58]Read from MH i2c: 01 07 00 6C 3C 00 00 00 00 00 F5 0D B1 [17:39:58]RasterBufferAndPrint [17:39:58]line [17:39:58]line [17:39:58]line [17:39:58]line [17:39:58]line [17:39:58]written 0, free lines is 3575 [17:39:58]MH_Cut [17:39:58]Write to MH i2c: D1 01 00 73 3C 01 81 [17:39:58]Write i2c OK [17:39:58]MH_I2C_Read... [17:39:58]Read from MH i2c: D1 [17:39:58]MH_I2C_Read... [17:39:58]Read from MH i2c: D1 01 00 [17:39:58]MH_I2C_Read... [17:39:58]Read from MH i2c: D1 01 00 73 3C 00 80 [17:39:58]Write to MH i2c: 01 00 00 74 3C B0 [17:39:58]Write i2c OK [17:39:58]MH_I2C_Read... [17:39:59]*** Cut start [17:39:59]*** Purtial cut [17:39:59]*** Stage 1: CUTSNS_PIN = 1 [17:40:00]OFD Sender: No OFD packet to send [17:40:01]Read from MH i2c: 01 [17:40:01]MH_I2C_Read... [17:40:01]*** Stop cut motor [17:40:01]*** Cut end [17:40:01]Read from MH i2c: 01 07 00 [17:40:01]MH_I2C_Read... [17:40:01]Read from MH i2c: 01 07 00 74 3C 00 00 00 00 00 FF 0F C5 [17:40:01]process_action print_text done [17:40:01]requested_data is exist [17:40:01]produce_requested_data [17:40:01]requested_item fm.sn is exist - process it [17:40:01]wFMCommunicate request_size=4 [17:40:01]MH_SAM_APDU [17:40:01]CAPDU: 80 11 00 00 [17:40:01]Write to MH i2c: E2 08 00 75 3C 80 11 00 00 00 00 00 00 2B [17:40:01]Write i2c OK [17:40:01]MH_I2C_Read... [17:40:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:40:01]Read from MH i2c: E2 [17:40:01]MH_I2C_Read... [17:40:01]Read from MH i2c: E2 17 00 [17:40:01]MH_I2C_Read... [17:40:01]Read from MH i2c: E2 17 00 75 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 89 [17:40:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [17:40:01]wFMCommunicate OK [17:40:01]requested_item fd.num is exist - process it [17:40:01]SAM_PROTO_GetFieldsCounters [17:40:01]wFMCommunicate request_size=4 [17:40:01]MH_SAM_APDU [17:40:01]CAPDU: 80 13 00 00 [17:40:01]Write to MH i2c: E2 08 00 76 3C 80 13 00 00 00 00 00 00 2E [17:40:01]Write i2c OK [17:40:01]MH_I2C_Read... [17:40:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:40:01]Read from MH i2c: E2 [17:40:01]MH_I2C_Read... [17:40:01]Read from MH i2c: E2 62 00 [17:40:01]MH_I2C_Read... [17:40:01]Read from MH i2c: E2 62 00 76 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 AC E1 01 00 0E 04 04 00 43 01 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 1A [17:40: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 AC E1 01 00 0E 04 04 00 43 01 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 [17:40:01]wFMCommunicate OK [17:40:01]SAM_PROTO_GetFieldsCounters done [17:40:01]requested_item shift.num is exist - process it [17:40:01]requested_item shift.opened is exist - process it [17:40:01]req_shift_opened [17:40:01]FM_GetShiftState [17:40:01]SAM_PROTO_GetShiftState [17:40:01]wFMCommunicate request_size=4 [17:40:01]MH_SAM_APDU [17:40:01]CAPDU: 80 13 01 00 [17:40:01]Write to MH i2c: E2 08 00 77 3C 80 13 01 00 00 00 00 00 30 [17:40:01]Write i2c OK [17:40:01]MH_I2C_Read... [17:40:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:40:01]Read from MH i2c: E2 [17:40:01]MH_I2C_Read... [17:40:01]Read from MH i2c: E2 0E 00 [17:40:01]MH_I2C_Read... [17:40:01]Read from MH i2c: E2 0E 00 77 3C 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 F2 [17:40:01]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [17:40:01]wFMCommunicate OK [17:40:01]SAM_PROTO_GetShiftState done [17:40:01]FM_GetShiftState done [17:40:01]req_shift_opened done [17:40:01]requested_item shift.open_date is exist - process it [17:40:01]req_shift_open_date [17:40:01]req_shift_open_date done [17:40:01]produce_requested_data done [17:40:01]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123308,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [17:40:01]process_action_free print_text [17:40:01]json_value_free [17:40:01]json_value_free done [17:40:01]process_json_proto returns [17:40:01]Send response to host [17:40:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123308,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [17:40:01]free response buf [17:40:01]execute_script done [17:40:01]execute_script returns [17:40:01]free content buf [17:40:01]Sock 7.Close socket [17:40:01]Sock 7.Thread stoped [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:50]OFD Sender: No OFD packet to send [17:43:52]accept exits with 9 [17:43:52]New connection [17:43:52]New thread 3067395428 created [17:43:52]Thread 3067252068 joined [17:43:52]Waiting for new connection... [17:43:52] Sock 9.Parse request [17:43:52]Sock 9.Check first char [17:43:52]Sock 9.First char is OK [17:43:52]request: POST /json_proto HTTP/1.0 [17:43:52]Method: POST [17:43:52]URL: /json_proto [17:43:52]Method is POST - this is cgi request [17:43:52]url: /json_proto [17:43:52]query_string will be loaded in cgi processing [17:43:52]execute_cgi json_proto POST (null) [17:43:52]execute_cgi path=json_proto method=POST [17:43:52]POST find Content-Length [17:43:52]Host: 172.17.48.197:8080 [17:43:52]Content-Length: 820 [17:43:52]Content-Type: application/json [17:43:52] [17:43:52]POST finish read [17:43:52]Found Content-Length = 820 [17:43:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106253", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 42.010, "sum" : 2919.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 2919.70 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:43:52]execute_script... [17:43: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)1106253", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 42.010, "sum" : 2919.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 2919.70 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:43:52]POST & json_proto [17:43:52]process_json_proto [17:43:52]json parsed OK: [17:43:52]protocol is kg_v1.0 [17:43:52]action value=close_receipt [17:43:52]process_action close_receipt [17:43:52]cmd_close_receipt [17:43:52]MH_GetDate [17:43:52]Write to MH i2c: F0 00 00 78 3C A3 [17:43:52]Write i2c OK [17:43:52]MH_I2C_Read... [17:43:52]Read from MH i2c: F0 [17:43:52]MH_I2C_Read... [17:43:52]Read from MH i2c: F0 09 00 [17:43:52]MH_I2C_Read... [17:43:52]Read from MH i2c: F0 09 00 78 3C 00 DC B6 E4 65 6C AF E3 65 EA [17:43:52]GetLastDocTimeStamp 1709487416 [17:43:52]current date 1709487836 [17:43:52]FM_GetShiftState [17:43:52]SAM_PROTO_GetShiftState [17:43:52]wFMCommunicate request_size=4 [17:43:52]MH_SAM_APDU [17:43:52]CAPDU: 80 13 01 00 [17:43:52]Write to MH i2c: E2 08 00 79 3C 80 13 01 00 00 00 00 00 32 [17:43:52]Write i2c OK [17:43:52]MH_I2C_Read... [17:43:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:43:52]Read from MH i2c: E2 [17:43:52]MH_I2C_Read... [17:43:52]Read from MH i2c: E2 0E 00 [17:43:52]MH_I2C_Read... [17:43:52]Read from MH i2c: E2 0E 00 79 3C 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 F4 [17:43:52]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [17:43:52]wFMCommunicate OK [17:43:52]SAM_PROTO_GetShiftState done [17:43:52]FM_GetShiftState done [17:43:52]opened in 1709425579 [17:43:52]opened+sec_in_day 1709511979 [17:43:52]quantity*price = 291969 [17:43:52]sum+1 = 291971 [17:43:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2919.70 НСП 1% : 25.84 НДС 12% : 310.06 Наличными: 0.00 Безнал.: 2919.70 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 166 03.03.2024 17:43 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874798 ФД: 123309 ФПД: 236842875810868 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T174356&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123309&fm=236842875810868&tin=02508201610067®Number=0000000000090573&sum=291970 [17:43:53]StoreToDocumentArchive [17:43:53]shift 323 fd 123309 [17:43:53]save to /storage/0323/doc_00123309 [17:43:53]save last doc name /storage/0323/doc_00123309 to /storage/kkm_last_doc_name [17:43:53]save OK [17:43:53]Clear old archive folders... [17:43:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:43:53]tlvbuf is 00E65DF0 [17:43:53]SAM_PROTO_ClearQueue [17:43:53]wFMCommunicate request_size=4 [17:43:53]MH_SAM_APDU [17:43:53]CAPDU: 80 09 00 00 [17:43:53]Write to MH i2c: E2 08 00 86 3C 80 09 00 00 00 00 00 00 34 [17:43:53]Write i2c OK [17:43:53]MH_I2C_Read... [17:43:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:43:53]Read from MH i2c: E2 [17:43:53]MH_I2C_Read... [17:43:53]Read from MH i2c: E2 03 00 [17:43:53]MH_I2C_Read... [17:43:53]Read from MH i2c: E2 03 00 86 3C 00 90 00 36 [17:43:53]RAPDU: 90 00 [17:43:53]wFMCommunicate OK [17:43:53]SAM_PROTO_ClearQueue done [17:43:53]KKMCreateOFDPacket [17:43:53]OFDProtocolAddRootSTLVToBuf [17:43:53]FM_MakeSignedData [17:43:53]FM_MakeSignedData [17:43:53]SAM_PROTO_SignData [17:43:53]wFMCommunicate request_size=4 [17:43:53]MH_SAM_APDU [17:43:53]CAPDU: 80 0D 01 02 [17:43:53]Write to MH i2c: E2 08 00 87 3C 80 0D 01 02 00 00 00 00 3C [17:43:53]Write i2c OK [17:43:53]MH_I2C_Read... [17:43:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:43:53]Read from MH i2c: E2 [17:43:53]MH_I2C_Read... [17:43:53]Read from MH i2c: E2 03 00 [17:43:53]MH_I2C_Read... [17:43:53]Read from MH i2c: E2 03 00 87 3C 00 90 00 37 [17:43:53]RAPDU: 90 00 [17:43:53]wFMCommunicate OK [17:43:53]wFMCommunicate request_size=255 [17:43:53]MH_SAM_APDU [17:43:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 1A A4 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 82 74 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 82 74 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 18 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 79 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 82 74 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 DC B6 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 AD E1 01 00 35 04 06 00 D7 [17:43:53]Write to MH i2c: E2 02 01 88 3C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 1A A4 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 82 74 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 82 74 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 18 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 79 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 82 74 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 DC B6 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 AD E1 01 00 35 04 06 00 D7 00 00 25 [17:43:53]Write i2c OK [17:43:53]MH_I2C_Read... [17:43:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:43:53]Read from MH i2c: E2 [17:43:53]MH_I2C_Read... [17:43:53]Read from MH i2c: E2 03 00 [17:43:53]MH_I2C_Read... [17:43:53]Read from MH i2c: E2 03 00 88 3C 00 90 00 38 [17:43:53]RAPDU: 90 00 [17:43:53]wFMCommunicate OK [17:43:53]wFMCommunicate request_size=10 [17:43:53]MH_SAM_APDU [17:43:53]CAPDU: 80 0D 02 02 05 68 47 7A F4 34 [17:43:53]Write to MH i2c: E2 0D 00 89 3C 80 0D 02 02 05 00 68 47 7A F4 34 00 00 9A [17:43:53]Write i2c OK [17:43:53]MH_I2C_Read... [17:43:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:43:53]Read from MH i2c: E2 [17:43:53]MH_I2C_Read... [17:43:53]Read from MH i2c: E2 03 00 [17:43:53]MH_I2C_Read... [17:43:53]Read from MH i2c: E2 03 00 89 3C 00 90 00 39 [17:43:53]RAPDU: 90 00 [17:43:53]wFMCommunicate OK [17:43:53]wFMCommunicate request_size=4 [17:43:53]MH_SAM_APDU [17:43:53]CAPDU: 80 0D 03 02 [17:43:53]Write to MH i2c: E2 08 00 8A 3C 80 0D 03 02 00 00 00 00 41 [17:43:53]Write i2c OK [17:43:53]MH_I2C_Read... [17:43:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:43:53]Read from MH i2c: E2 [17:43:53]MH_I2C_Read... [17:43:53]Read from MH i2c: E2 0B 00 [17:43:53]MH_I2C_Read... [17:43:53]Read from MH i2c: E2 0B 00 8A 3C 00 7F 93 42 1B 77 32 B5 93 90 00 A2 [17:43:53]RAPDU: 7F 93 42 1B 77 32 B5 93 90 00 [17:43:53]wFMCommunicate OK [17:43:53]SAM_PROTO_SignData done [17:43:53]FM_MakeSignedData done [17:43:53]CreateOFDProtocolMessage [17:43:53]wFMCommunicate request_size=4 [17:43:53]MH_SAM_APDU [17:43:53]CAPDU: 80 11 00 00 [17:43:53]Write to MH i2c: E2 08 00 8B 3C 80 11 00 00 00 00 00 00 41 [17:43:53]Write i2c OK [17:43:53]MH_I2C_Read... [17:43:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:43:53]Read from MH i2c: E2 [17:43:53]MH_I2C_Read... [17:43:53]Read from MH i2c: E2 17 00 [17:43:53]MH_I2C_Read... [17:43:53]Read from MH i2c: E2 17 00 8B 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 9F [17:43:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [17:43:53]wFMCommunicate OK [17:43:53]CreateOFDProtocolMessage done [17:43:53]OFDSenderStorePacket 123309 [17:43:53]StoreOFDPacket docnum=123309 [17:43:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 A0 D3 07 01 A9 ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 1A A4 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 82 74 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 82 74 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 18 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 79 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 82 74 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 DC B6 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 AD E1 01 00 35 04 06 00 D7 68 47 7A F4 34 7F 93 42 1B 77 32 B5 93 [17:43:53]CheckFolder [17:43:53]dirname=/storage/ofd_packets [17:43:53]CheckFolder done [17:43:53]ProducePacketName [17:43:53]name=ofd_packets/00123309 [17:43:53]NVStorageSaveData ofd_packets/00123309 [17:43:53]File name is /storage/ofd_packets/00123309 [17:43:53]Write 301 bytes [17:43:53]NVStorageSaveData done [17:43:53]OFDSenderStorePacket done [17:43:53]KKMCreateOFDPacket done [17:43:53]NVStorageSaveData kkm_last_timestamp [17:43:53]File name is /storage/kkm_last_timestamp [17:43:53]Write 4 bytes [17:43:53]NVStorageSaveData done [17:43:53]ExternCall_PrintAddStr [17:43:53]wPrintStart [17:43:53]Write to MH i2c: 01 00 00 8C 3C C8 [17:43:53]Write i2c OK [17:43:53]MH_I2C_Read... [17:43:53]Read from MH i2c: 01 [17:43:53]MH_I2C_Read... [17:43:53]Read from MH i2c: 01 07 00 [17:43:53]MH_I2C_Read... [17:43:53]Read from MH i2c: 01 07 00 8C 3C 00 00 00 00 00 FF 0F DD [17:43:53]RasterBufferAndPrint [17:43:53]line Счет N : (1)1106253 [17:43:53]line ИНН: 02508201610067 [17:43:53]line Контрольно-Кассовый Чек [17:43:53]line ПРОДАЖА [17:43:53]line ТРК (МРК, ГНК) : 53 [17:43:53]line Товар: 2710124500 [17:43:53]line Аи-95-К-5 [17:43:53]line 42.010 * 69.50 [17:43:53]line = 2919.70 [17:43:53]line НДС 12% НСП 1% [17:43:53]line > о реализуемом товаре [17:43:53]line ИТОГО: 2919.70 [17:43:53]line НСП 1% : 25.84 [17:43:53]line НДС 12% : 310.06 [17:43:53]line Наличными: 0.00 [17:43:53]line Безнал.: 2919.70 [17:43:53]line Место: АЗС № 25 "Партнер Нефть" [17:43:53]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [17:43:53]line СНО: Общий режим [17:43:53]line Чек 166 03.03.2024 17:43 [17:43:53]line Смена: 323 ФФД: 1.0 [17:43:53]line ЗНМ: 0300000019 [17:43:53]line РНМ: 0000000000090573 [17:43:53]line Версия ККМ: 001 [17:43:53]line Платежная система: Бакай Банк [17:43:53]line ФМ: 0000000000874798 [17:43:53]line ФД: 123309 [17:43:53]line ФПД: 236842875810868 [17:43:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T174356&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123309&fm=236842875810868&tin=02508201610067®Number=0000000000090573&sum=291970 [17:43:54]OFD Sender: Processing packet 123309 [packets to send 112, broken 111] [17:43:54]ProducePacketName [17:43:54]name=ofd_packets/00123309 [17:43:54]OFD Sender: To server: pG, [17:43:54]CommunicateWithHost lk.salyk.kg:30040 [17:43:54]ConnectInit lk.salyk.kg [17:43:54]written 0, free lines is 4095 [17:43:54]Connected sock=10 [17:43: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 37 39 38 0F 01 00 00 A0 D3 07 01 A9 ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 1A A4 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 82 74 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 82 74 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 18 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 79 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 82 74 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 DC B6 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 AD E1 01 00 35 04 06 00 D7 68 47 7A F4 34 7F 93 42 1B 77 32 B5 93 [17:43:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 16 69 47 00 BE 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 37 39 38 10 04 04 00 AD E1 01 00 F4 03 04 00 07 63 E4 65 B6 04 01 00 00 20 4F D3 37 64 BA 8F 38 [17:43:54]CommunicateWithHost err = 0 [17:43:54]CheckOFDResponse [17:43:54]1017 (14) - 77093643461234 [17:43:54]1041 (16) - 0000000000874798 [17:43:54]1040 (4) - 123309 [17:43:54]1012 (4) - 03.03.2024 11:46 [17:43:54]1206 (1) - 0 [17:43:54]OFD Sender: Remove packet 123309 [17:43:54]ProducePacketName [17:43:54]name=ofd_packets/00123309 [17:43:54]NVStorageDeleteData [17:43:54]Write to MH i2c: 01 00 00 B6 3C F2 [17:43:54]Write i2c OK [17:43:54]MH_I2C_Read... [17:43:54]Read from MH i2c: 01 [17:43:54]MH_I2C_Read... [17:43:54]Read from MH i2c: 01 07 00 [17:43:54]MH_I2C_Read... [17:43:54]Read from MH i2c: 01 07 00 B6 3C 00 00 00 00 00 06 0D 0C [17:43:54]RasterBufferAndPrint [17:43:54]line [17:43:54]line [17:43:54]line [17:43:54]line [17:43:54]line [17:43:54]written 0, free lines is 3343 [17:43:54]MH_Cut [17:43:54]Write to MH i2c: D1 01 00 BD 3C 01 CB [17:43:54]Write i2c OK [17:43:54]MH_I2C_Read... [17:43:54]Read from MH i2c: D1 [17:43:54]MH_I2C_Read... [17:43:54]Read from MH i2c: D1 01 00 [17:43:54]MH_I2C_Read... [17:43:54]Read from MH i2c: D1 01 00 BD 3C 00 CA [17:43:54]Write to MH i2c: 01 00 00 BE 3C FA [17:43:54]Write i2c OK [17:43:54]MH_I2C_Read... [17:43:54]OFD Sender: No OFD packet to send [17:43:55]*** Cut start [17:43:55]*** Purtial cut [17:43:55]*** Stage 1: CUTSNS_PIN = 1 [17:43:57]Read from MH i2c: 01 [17:43:57]MH_I2C_Read... [17:43:57]*** Stop cut motor [17:43:57]*** Cut end [17:43:57]Read from MH i2c: 01 07 00 [17:43:57]MH_I2C_Read... [17:43:57]Read from MH i2c: 01 07 00 BE 3C 00 00 00 00 00 FF 0F 0F [17:43:57]process_action close_receipt done [17:43:57]requested_data is exist [17:43:57]produce_requested_data [17:43:57]requested_item fm.sn is exist - process it [17:43:57]wFMCommunicate request_size=4 [17:43:57]MH_SAM_APDU [17:43:57]CAPDU: 80 11 00 00 [17:43:57]Write to MH i2c: E2 08 00 BF 3C 80 11 00 00 00 00 00 00 75 [17:43:57]Write i2c OK [17:43:57]MH_I2C_Read... [17:43:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:43:57]Read from MH i2c: E2 [17:43:57]MH_I2C_Read... [17:43:57]Read from MH i2c: E2 17 00 [17:43:57]MH_I2C_Read... [17:43:57]Read from MH i2c: E2 17 00 BF 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 D3 [17:43:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [17:43:57]wFMCommunicate OK [17:43:57]requested_item fd.num is exist - process it [17:43:57]SAM_PROTO_GetFieldsCounters [17:43:57]wFMCommunicate request_size=4 [17:43:57]MH_SAM_APDU [17:43:57]CAPDU: 80 13 00 00 [17:43:57]Write to MH i2c: E2 08 00 C0 3C 80 13 00 00 00 00 00 00 78 [17:43:57]Write i2c OK [17:43:57]MH_I2C_Read... [17:43:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:43:57]Read from MH i2c: E2 [17:43:57]MH_I2C_Read... [17:43:57]Read from MH i2c: E2 62 00 [17:43:57]MH_I2C_Read... [17:43:57]Read from MH i2c: E2 62 00 C0 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 AD E1 01 00 0E 04 04 00 43 01 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 68 [17:43: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 AD E1 01 00 0E 04 04 00 43 01 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 [17:43:57]wFMCommunicate OK [17:43:57]SAM_PROTO_GetFieldsCounters done [17:43:57]requested_item shift.num is exist - process it [17:43:57]requested_item shift.opened is exist - process it [17:43:57]req_shift_opened [17:43:57]FM_GetShiftState [17:43:57]SAM_PROTO_GetShiftState [17:43:57]wFMCommunicate request_size=4 [17:43:57]MH_SAM_APDU [17:43:57]CAPDU: 80 13 01 00 [17:43:57]Write to MH i2c: E2 08 00 C1 3C 80 13 01 00 00 00 00 00 7A [17:43:57]Write i2c OK [17:43:57]MH_I2C_Read... [17:43:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:43:57]Read from MH i2c: E2 [17:43:57]MH_I2C_Read... [17:43:57]Read from MH i2c: E2 0E 00 [17:43:57]MH_I2C_Read... [17:43:57]Read from MH i2c: E2 0E 00 C1 3C 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 3C [17:43:57]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [17:43:57]wFMCommunicate OK [17:43:57]SAM_PROTO_GetShiftState done [17:43:57]FM_GetShiftState done [17:43:57]req_shift_opened done [17:43:57]requested_item shift.open_date is exist - process it [17:43:57]req_shift_open_date [17:43:57]req_shift_open_date done [17:43:57]produce_requested_data done [17:43:57]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123309,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [17:43:57]process_action_free close_receipt [17:43:57]json_value_free [17:43:57]json_value_free done [17:43:57]process_json_proto returns [17:43:57]Send response to host [17:43:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123309,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [17:43:57]free response buf [17:43:57]execute_script done [17:43:57]execute_script returns [17:43:57]free content buf [17:43:57]Sock 9.Close socket [17:43:57]Sock 9.Thread stoped [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:14]OFD Sender: No OFD packet to send [17:45:19]OFD Sender: No OFD packet to send [17:45:24]OFD Sender: No OFD packet to send [17:45:29]OFD Sender: No OFD packet to send [17:45:34]OFD Sender: No OFD packet to send [17:45:39]OFD Sender: No OFD packet to send [17:45:44]OFD Sender: No OFD packet to send [17:45:49]OFD Sender: No OFD packet to send [17:45:54]OFD Sender: No OFD packet to send [17:45:59]OFD Sender: No OFD packet to send [17:46:04]OFD Sender: No OFD packet to send [17:46:09]OFD Sender: No OFD packet to send [17:46:14]OFD Sender: No OFD packet to send [17:46:19]OFD Sender: No OFD packet to send [17:46:24]OFD Sender: No OFD packet to send [17:46:29]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:45]OFD Sender: No OFD packet to send [17:47:50]OFD Sender: No OFD packet to send [17:47:55]OFD Sender: No OFD packet to send [17:48:00]OFD Sender: No OFD packet to send [17:48:05]OFD Sender: No OFD packet to send [17:48:10]OFD Sender: No OFD packet to send [17:48:15]OFD Sender: No OFD packet to send [17:48:20]OFD Sender: No OFD packet to send [17:48:25]OFD Sender: No OFD packet to send [17:48:30]OFD Sender: No OFD packet to send [17:48:35]OFD Sender: No OFD packet to send [17:48:40]OFD Sender: No OFD packet to send [17:48:45]OFD Sender: No OFD packet to send [17:48:50]OFD Sender: No OFD packet to send [17:48:55]OFD Sender: No OFD packet to send [17:49:00]OFD Sender: No OFD packet to send [17:49:05]OFD Sender: No OFD packet to send [17:49:10]OFD Sender: No OFD packet to send [17:49:15]OFD Sender: No OFD packet to send [17:49:20]OFD Sender: No OFD packet to send [17:49:25]OFD Sender: No OFD packet to send [17:49:30]OFD Sender: No OFD packet to send [17:49:35]OFD Sender: No OFD packet to send [17:49:40]OFD Sender: No OFD packet to send [17:49:45]OFD Sender: No OFD packet to send [17:49:50]OFD Sender: No OFD packet to send [17:49:55]OFD Sender: No OFD packet to send [17:50:00]OFD Sender: No OFD packet to send [17:50:05]OFD Sender: No OFD packet to send [17:50:10]OFD Sender: No OFD packet to send [17:50:15]OFD Sender: No OFD packet to send [17:50:20]OFD Sender: No OFD packet to send [17:50:25]OFD Sender: No OFD packet to send [17:50:30]OFD Sender: No OFD packet to send [17:50:35]OFD Sender: No OFD packet to send [17:50:40]OFD Sender: No OFD packet to send [17:50:40]accept exits with 7 [17:50:40]New connection [17:50:40]New thread 3067252068 created [17:50:40]Thread 3067395428 joined [17:50:40]Waiting for new connection... [17:50:40] Sock 7.Parse request [17:50:40]Sock 7.Check first char [17:50:40]Sock 7.First char is OK [17:50:40]request: POST /json_proto HTTP/1.0 [17:50:40]Method: POST [17:50:40]URL: /json_proto [17:50:40]Method is POST - this is cgi request [17:50:40]url: /json_proto [17:50:40]query_string will be loaded in cgi processing [17:50:40]execute_cgi json_proto POST (null) [17:50:40]execute_cgi path=json_proto method=POST [17:50:40]POST find Content-Length [17:50:40]Host: 172.17.48.197:8080 [17:50:40]Content-Length: 818 [17:50:40]Content-Type: application/json [17:50:40] [17:50:40]POST finish read [17:50:40]Found Content-Length = 818 [17:50:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106254", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 10.000, "sum" : 619.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 619.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:50:40]execute_script... [17:50: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)1106254", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 10.000, "sum" : 619.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 619.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:50:40]POST & json_proto [17:50:40]process_json_proto [17:50:40]json parsed OK: [17:50:40]protocol is kg_v1.0 [17:50:40]action value=close_receipt [17:50:40]process_action close_receipt [17:50:40]cmd_close_receipt [17:50:40]MH_GetDate [17:50:40]Write to MH i2c: F0 00 00 C2 3C ED [17:50:40]Write i2c OK [17:50:40]MH_I2C_Read... [17:50:40]Read from MH i2c: F0 [17:50:40]MH_I2C_Read... [17:50:40]Read from MH i2c: F0 09 00 [17:50:40]MH_I2C_Read... [17:50:40]Read from MH i2c: F0 09 00 C2 3C 00 74 B8 E4 65 6C AF E3 65 CE [17:50:40]GetLastDocTimeStamp 1709487836 [17:50:40]current date 1709488244 [17:50:40]FM_GetShiftState [17:50:40]SAM_PROTO_GetShiftState [17:50:40]wFMCommunicate request_size=4 [17:50:40]MH_SAM_APDU [17:50:40]CAPDU: 80 13 01 00 [17:50:40]Write to MH i2c: E2 08 00 C3 3C 80 13 01 00 00 00 00 00 7C [17:50:40]Write i2c OK [17:50:40]MH_I2C_Read... [17:50:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:50:40]Read from MH i2c: E2 [17:50:40]MH_I2C_Read... [17:50:40]Read from MH i2c: E2 0E 00 [17:50:40]MH_I2C_Read... [17:50:40]Read from MH i2c: E2 0E 00 C3 3C 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 3E [17:50:40]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [17:50:40]wFMCommunicate OK [17:50:40]SAM_PROTO_GetShiftState done [17:50:40]FM_GetShiftState done [17:50:40]opened in 1709425579 [17:50:40]opened+sec_in_day 1709511979 [17:50:40]quantity*price = 61900 [17:50:40]sum+1 = 61901 [17:50:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 619.00 НСП 1% : 5.48 НДС 12% : 65.73 Наличными: 0.00 Безнал.: 619.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 167 03.03.2024 17:50 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874798 ФД: 123310 ФПД: 64170707343586 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T175045&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123310&fm=64170707343586&tin=02508201610067®Number=0000000000090573&sum=61900 [17:50:41]StoreToDocumentArchive [17:50:41]shift 323 fd 123310 [17:50:41]save to /storage/0323/doc_00123310 [17:50:41]save last doc name /storage/0323/doc_00123310 to /storage/kkm_last_doc_name [17:50:41]save OK [17:50:41]Clear old archive folders... [17:50:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:50:41]tlvbuf is 00E45740 [17:50:41]SAM_PROTO_ClearQueue [17:50:41]wFMCommunicate request_size=4 [17:50:41]MH_SAM_APDU [17:50:41]CAPDU: 80 09 00 00 [17:50:41]Write to MH i2c: E2 08 00 D0 3C 80 09 00 00 00 00 00 00 7E [17:50:41]Write i2c OK [17:50:41]MH_I2C_Read... [17:50:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:50:41]Read from MH i2c: E2 [17:50:41]MH_I2C_Read... [17:50:41]Read from MH i2c: E2 03 00 [17:50:41]MH_I2C_Read... [17:50:41]Read from MH i2c: E2 03 00 D0 3C 00 90 00 80 [17:50:41]RAPDU: 90 00 [17:50:41]wFMCommunicate OK [17:50:41]SAM_PROTO_ClearQueue done [17:50:41]KKMCreateOFDPacket [17:50:41]OFDProtocolAddRootSTLVToBuf [17:50:41]FM_MakeSignedData [17:50:41]FM_MakeSignedData [17:50:41]SAM_PROTO_SignData [17:50:41]wFMCommunicate request_size=4 [17:50:41]MH_SAM_APDU [17:50:41]CAPDU: 80 0D 01 02 [17:50:41]Write to MH i2c: E2 08 00 D1 3C 80 0D 01 02 00 00 00 00 86 [17:50:41]Write i2c OK [17:50:41]MH_I2C_Read... [17:50:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:50:41]Read from MH i2c: E2 [17:50:41]MH_I2C_Read... [17:50:41]Read from MH i2c: E2 03 00 [17:50:41]MH_I2C_Read... [17:50:41]Read from MH i2c: E2 03 00 D1 3C 00 90 00 81 [17:50:41]RAPDU: 90 00 [17:50:41]wFMCommunicate OK [17:50:41]wFMCommunicate request_size=255 [17:50:41]MH_SAM_APDU [17:50: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 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 CC F1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC F1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 19 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CC F1 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 75 B8 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 AE E1 01 00 35 04 06 00 3A [17:50:41]Write to MH i2c: E2 02 01 D2 3C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 CC F1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC F1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 19 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CC F1 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 75 B8 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 AE E1 01 00 35 04 06 00 3A 00 00 65 [17:50:41]Write i2c OK [17:50:41]MH_I2C_Read... [17:50:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:50:42]Read from MH i2c: E2 [17:50:42]MH_I2C_Read... [17:50:42]Read from MH i2c: E2 03 00 [17:50:42]MH_I2C_Read... [17:50:42]Read from MH i2c: E2 03 00 D2 3C 00 90 00 82 [17:50:42]RAPDU: 90 00 [17:50:42]wFMCommunicate OK [17:50:42]wFMCommunicate request_size=10 [17:50:42]MH_SAM_APDU [17:50:42]CAPDU: 80 0D 02 02 05 5C E8 37 58 E2 [17:50:42]Write to MH i2c: E2 0D 00 D3 3C 80 0D 02 02 05 00 5C E8 37 58 E2 00 00 48 [17:50:42]Write i2c OK [17:50:42]MH_I2C_Read... [17:50:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:50:42]Read from MH i2c: E2 [17:50:42]MH_I2C_Read... [17:50:42]Read from MH i2c: E2 03 00 [17:50:42]MH_I2C_Read... [17:50:42]Read from MH i2c: E2 03 00 D3 3C 00 90 00 83 [17:50:42]RAPDU: 90 00 [17:50:42]wFMCommunicate OK [17:50:42]wFMCommunicate request_size=4 [17:50:42]MH_SAM_APDU [17:50:42]CAPDU: 80 0D 03 02 [17:50:42]Write to MH i2c: E2 08 00 D4 3C 80 0D 03 02 00 00 00 00 8B [17:50:42]Write i2c OK [17:50:42]MH_I2C_Read... [17:50:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:50:42]Read from MH i2c: E2 [17:50:42]MH_I2C_Read... [17:50:42]Read from MH i2c: E2 0B 00 [17:50:42]MH_I2C_Read... [17:50:42]Read from MH i2c: E2 0B 00 D4 3C 00 43 87 71 D1 85 F0 A2 AD 90 00 5C [17:50:42]RAPDU: 43 87 71 D1 85 F0 A2 AD 90 00 [17:50:42]wFMCommunicate OK [17:50:42]SAM_PROTO_SignData done [17:50:42]FM_MakeSignedData done [17:50:42]CreateOFDProtocolMessage [17:50:42]wFMCommunicate request_size=4 [17:50:42]MH_SAM_APDU [17:50:42]CAPDU: 80 11 00 00 [17:50:42]Write to MH i2c: E2 08 00 D5 3C 80 11 00 00 00 00 00 00 8B [17:50:42]Write i2c OK [17:50:42]MH_I2C_Read... [17:50:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:50:42]Read from MH i2c: E2 [17:50:42]MH_I2C_Read... [17:50:42]Read from MH i2c: E2 17 00 [17:50:42]MH_I2C_Read... [17:50:42]Read from MH i2c: E2 17 00 D5 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 E9 [17:50:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [17:50:42]wFMCommunicate OK [17:50:42]CreateOFDProtocolMessage done [17:50:42]OFDSenderStorePacket 123310 [17:50:42]StoreOFDPacket docnum=123310 [17:50:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 F8 B1 07 01 D0 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 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 CC F1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC F1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 19 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CC F1 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 75 B8 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 AE E1 01 00 35 04 06 00 3A 5C E8 37 58 E2 43 87 71 D1 85 F0 A2 AD [17:50:42]CheckFolder [17:50:42]dirname=/storage/ofd_packets [17:50:42]CheckFolder done [17:50:42]ProducePacketName [17:50:42]name=ofd_packets/00123310 [17:50:42]NVStorageSaveData ofd_packets/00123310 [17:50:42]File name is /storage/ofd_packets/00123310 [17:50:42]Write 301 bytes [17:50:42]NVStorageSaveData done [17:50:42]OFDSenderStorePacket done [17:50:42]KKMCreateOFDPacket done [17:50:42]NVStorageSaveData kkm_last_timestamp [17:50:42]File name is /storage/kkm_last_timestamp [17:50:42]Write 4 bytes [17:50:42]NVStorageSaveData done [17:50:42]ExternCall_PrintAddStr [17:50:42]wPrintStart [17:50:42]Write to MH i2c: 01 00 00 D6 3C 12 [17:50:42]Write i2c OK [17:50:42]MH_I2C_Read... [17:50:42]Read from MH i2c: 01 [17:50:42]MH_I2C_Read... [17:50:42]Read from MH i2c: 01 07 00 [17:50:42]MH_I2C_Read... [17:50:42]Read from MH i2c: 01 07 00 D6 3C 00 00 00 00 00 FF 0F 27 [17:50:42]RasterBufferAndPrint [17:50:42]line Счет N : (1)1106254 [17:50:42]line ИНН: 02508201610067 [17:50:42]line Контрольно-Кассовый Чек [17:50:42]line ПРОДАЖА [17:50:42]line ТРК (МРК, ГНК) : 52 [17:50:42]line Товар: 2710124130 [17:50:42]line Аи-92-К-5 [17:50:42]line 10.000 * 61.90 [17:50:42]line = 619.00 [17:50:42]line НДС 12% НСП 1% [17:50:42]line > о реализуемом товаре [17:50:42]line ИТОГО: 619.00 [17:50:42]line НСП 1% : 5.48 [17:50:42]line НДС 12% : 65.73 [17:50:42]line Наличными: 0.00 [17:50:42]line Безнал.: 619.00 [17:50:42]line Место: АЗС № 25 "Партнер Нефть" [17:50:42]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [17:50:42]line СНО: Общий режим [17:50:42]line Чек 167 03.03.2024 17:50 [17:50:42]line Смена: 323 ФФД: 1.0 [17:50:42]line ЗНМ: 0300000019 [17:50:42]line РНМ: 0000000000090573 [17:50:42]line Версия ККМ: 001 [17:50:42]line Платежная система: Бакай Банк [17:50:42]line ФМ: 0000000000874798 [17:50:42]line ФД: 123310 [17:50:42]line ФПД: 64170707343586 [17:50:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T175045&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123310&fm=64170707343586&tin=02508201610067®Number=0000000000090573&sum=61900 [17:50:42]OFD Sender: Processing packet 123310 [packets to send 112, broken 111] [17:50:42]ProducePacketName [17:50:42]name=ofd_packets/00123310 [17:50:42]OFD Sender: To server: pG, [17:50:42]CommunicateWithHost lk.salyk.kg:30040 [17:50:42]ConnectInit lk.salyk.kg [17:50:42]written 0, free lines is 4095 [17:50:42]Connected sock=10 [17:50: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 37 39 38 0F 01 00 00 F8 B1 07 01 D0 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 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 CC F1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC F1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 19 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CC F1 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 75 B8 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 AE E1 01 00 35 04 06 00 3A 5C E8 37 58 E2 43 87 71 D1 85 F0 A2 AD [17:50:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 1D A2 47 00 71 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 AE E1 01 00 F4 03 04 00 A0 64 E4 65 B6 04 01 00 00 FD 97 31 05 B9 8F 3A 84 [17:50:42]CommunicateWithHost err = 0 [17:50:42]CheckOFDResponse [17:50:42]1017 (14) - 77093643461234 [17:50:42]1041 (16) - 0000000000874798 [17:50:42]1040 (4) - 123310 [17:50:42]1012 (4) - 03.03.2024 11:53 [17:50:42]1206 (1) - 0 [17:50:42]OFD Sender: Remove packet 123310 [17:50:42]ProducePacketName [17:50:42]name=ofd_packets/00123310 [17:50:42]NVStorageDeleteData [17:50:43]Write to MH i2c: 01 00 00 00 3D 3D [17:50:43]Write i2c OK [17:50:43]MH_I2C_Read... [17:50:43]Read from MH i2c: 01 [17:50:43]MH_I2C_Read... [17:50:43]Read from MH i2c: 01 07 00 [17:50:43]MH_I2C_Read... [17:50:43]Read from MH i2c: 01 07 00 00 3D 00 00 00 00 00 FE 0C 4E [17:50:43]RasterBufferAndPrint [17:50:43]line [17:50:43]line [17:50:43]line [17:50:43]line [17:50:43]line [17:50:43]written 0, free lines is 3335 [17:50:43]MH_Cut [17:50:43]Write to MH i2c: D1 01 00 07 3D 01 16 [17:50:43]Write i2c OK [17:50:43]MH_I2C_Read... [17:50:43]Read from MH i2c: D1 [17:50:43]MH_I2C_Read... [17:50:43]Read from MH i2c: D1 01 00 [17:50:43]MH_I2C_Read... [17:50:43]Read from MH i2c: D1 01 00 07 3D 00 15 [17:50:43]Write to MH i2c: 01 00 00 08 3D 45 [17:50:43]Write i2c OK [17:50:43]MH_I2C_Read... [17:50:43]OFD Sender: No OFD packet to send [17:50:43]*** Cut start [17:50:43]*** Purtial cut [17:50:43]*** Stage 1: CUTSNS_PIN = 1 [17:50:45]Read from MH i2c: 01 [17:50:45]MH_I2C_Read... [17:50:45]*** Stop cut motor [17:50:45]*** Cut end [17:50:45]Read from MH i2c: 01 07 00 [17:50:45]MH_I2C_Read... [17:50:45]Read from MH i2c: 01 07 00 08 3D 00 00 00 00 00 FF 0F 5A [17:50:45]process_action close_receipt done [17:50:45]requested_data is exist [17:50:45]produce_requested_data [17:50:45]requested_item fm.sn is exist - process it [17:50:45]wFMCommunicate request_size=4 [17:50:45]MH_SAM_APDU [17:50:45]CAPDU: 80 11 00 00 [17:50:45]Write to MH i2c: E2 08 00 09 3D 80 11 00 00 00 00 00 00 C0 [17:50:45]Write i2c OK [17:50:45]MH_I2C_Read... [17:50:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:50:45]Read from MH i2c: E2 [17:50:45]MH_I2C_Read... [17:50:45]Read from MH i2c: E2 17 00 [17:50:45]MH_I2C_Read... [17:50:45]Read from MH i2c: E2 17 00 09 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 1E [17:50:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [17:50:45]wFMCommunicate OK [17:50:45]requested_item fd.num is exist - process it [17:50:45]SAM_PROTO_GetFieldsCounters [17:50:45]wFMCommunicate request_size=4 [17:50:45]MH_SAM_APDU [17:50:45]CAPDU: 80 13 00 00 [17:50:45]Write to MH i2c: E2 08 00 0A 3D 80 13 00 00 00 00 00 00 C3 [17:50:45]Write i2c OK [17:50:45]MH_I2C_Read... [17:50:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:50:46]Read from MH i2c: E2 [17:50:46]MH_I2C_Read... [17:50:46]Read from MH i2c: E2 62 00 [17:50:46]MH_I2C_Read... [17:50:46]Read from MH i2c: E2 62 00 0A 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 AE E1 01 00 0E 04 04 00 43 01 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 B7 [17:50: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 AE E1 01 00 0E 04 04 00 43 01 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 [17:50:46]wFMCommunicate OK [17:50:46]SAM_PROTO_GetFieldsCounters done [17:50:46]requested_item shift.num is exist - process it [17:50:46]requested_item shift.opened is exist - process it [17:50:46]req_shift_opened [17:50:46]FM_GetShiftState [17:50:46]SAM_PROTO_GetShiftState [17:50:46]wFMCommunicate request_size=4 [17:50:46]MH_SAM_APDU [17:50:46]CAPDU: 80 13 01 00 [17:50:46]Write to MH i2c: E2 08 00 0B 3D 80 13 01 00 00 00 00 00 C5 [17:50:46]Write i2c OK [17:50:46]MH_I2C_Read... [17:50:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:50:46]Read from MH i2c: E2 [17:50:46]MH_I2C_Read... [17:50:46]Read from MH i2c: E2 0E 00 [17:50:46]MH_I2C_Read... [17:50:46]Read from MH i2c: E2 0E 00 0B 3D 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 87 [17:50:46]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [17:50:46]wFMCommunicate OK [17:50:46]SAM_PROTO_GetShiftState done [17:50:46]FM_GetShiftState done [17:50:46]req_shift_opened done [17:50:46]requested_item shift.open_date is exist - process it [17:50:46]req_shift_open_date [17:50:46]req_shift_open_date done [17:50:46]produce_requested_data done [17:50:46]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123310,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [17:50:46]process_action_free close_receipt [17:50:46]json_value_free [17:50:46]json_value_free done [17:50:46]process_json_proto returns [17:50:46]Send response to host [17:50:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123310,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [17:50:46]free response buf [17:50:46]execute_script done [17:50:46]execute_script returns [17:50:46]free content buf [17:50:46]Sock 7.Close socket [17:50:46]Sock 7.Thread stoped [17:50:48]OFD Sender: No OFD packet to send [17:50:53]OFD Sender: No OFD packet to send [17:50:58]OFD Sender: No OFD packet to send [17:51:03]OFD Sender: No OFD packet to send [17:51:08]OFD Sender: No OFD packet to send [17:51:13]OFD Sender: No OFD packet to send [17:51:18]OFD Sender: No OFD packet to send [17:51:23]OFD Sender: No OFD packet to send [17:51:28]OFD Sender: No OFD packet to send [17:51:33]OFD Sender: No OFD packet to send [17:51:38]OFD Sender: No OFD packet to send [17:51:43]OFD Sender: No OFD packet to send [17:51:48]OFD Sender: No OFD packet to send [17:51:53]OFD Sender: No OFD packet to send [17:51:58]OFD Sender: No OFD packet to send [17:52:03]OFD Sender: No OFD packet to send [17:52:08]OFD Sender: No OFD packet to send [17:52:13]OFD Sender: No OFD packet to send [17:52:18]OFD Sender: No OFD packet to send [17:52:23]OFD Sender: No OFD packet to send [17:52:28]OFD Sender: No OFD packet to send [17:52:33]OFD Sender: No OFD packet to send [17:52: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:23]OFD Sender: No OFD packet to send [17:53:28]OFD Sender: No OFD packet to send [17:53:33]OFD Sender: No OFD packet to send [17:53:38]OFD Sender: No OFD packet to send [17:53:43]OFD Sender: No OFD packet to send [17:53:48]OFD Sender: No OFD packet to send [17:53:53]OFD Sender: No OFD packet to send [17:53:58]OFD Sender: No OFD packet to send [17:54:03]OFD Sender: No OFD packet to send [17:54:08]OFD Sender: No OFD packet to send [17:54:13]OFD Sender: No OFD packet to send [17:54:18]OFD Sender: No OFD packet to send [17:54:23]OFD Sender: No OFD packet to send [17:54:28]OFD Sender: No OFD packet to send [17:54:33]OFD Sender: No OFD packet to send [17:54:38]OFD Sender: No OFD packet to send [17:54:43]OFD Sender: No OFD packet to send [17:54:48]OFD Sender: No OFD packet to send [17:54:53]OFD Sender: No OFD packet to send [17:54:58]OFD Sender: No OFD packet to send [17:55:03]OFD Sender: No OFD packet to send [17:55:08]OFD Sender: No OFD packet to send [17:55:11]accept exits with 9 [17:55:11]New connection [17:55:11]New thread 3067395428 created [17:55:11]Thread 3067252068 joined [17:55:11]Waiting for new connection... [17:55:11] Sock 9.Parse request [17:55:11]Sock 9.Check first char [17:55:11]Sock 9.First char is OK [17:55:11]request: POST /json_proto HTTP/1.0 [17:55:11]Method: POST [17:55:11]URL: /json_proto [17:55:11]Method is POST - this is cgi request [17:55:11]url: /json_proto [17:55:11]query_string will be loaded in cgi processing [17:55:11]execute_cgi json_proto POST (null) [17:55:11]execute_cgi path=json_proto method=POST [17:55:11]POST find Content-Length [17:55:11]Host: 172.17.48.197:8080 [17:55:11]Content-Length: 807 [17:55:11]Content-Type: application/json [17:55:11] [17:55:11]POST finish read [17:55:11]Found Content-Length = 807 [17:55:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106255", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 10.510, "sum" : 650.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 650.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:55:11]execute_script... [17:55: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)1106255", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 10.510, "sum" : 650.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 650.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:55:11]POST & json_proto [17:55:11]process_json_proto [17:55:11]json parsed OK: [17:55:11]protocol is kg_v1.0 [17:55:11]action value=close_receipt [17:55:11]process_action close_receipt [17:55:11]cmd_close_receipt [17:55:11]MH_GetDate [17:55:11]Write to MH i2c: F0 00 00 0C 3D 38 [17:55:11]Write i2c OK [17:55:11]MH_I2C_Read... [17:55:11]Read from MH i2c: F0 [17:55:11]MH_I2C_Read... [17:55:11]Read from MH i2c: F0 09 00 [17:55:11]MH_I2C_Read... [17:55:11]Read from MH i2c: F0 09 00 0C 3D 00 83 B9 E4 65 6C AF E3 65 29 [17:55:11]GetLastDocTimeStamp 1709488245 [17:55:11]current date 1709488515 [17:55:11]FM_GetShiftState [17:55:11]SAM_PROTO_GetShiftState [17:55:11]wFMCommunicate request_size=4 [17:55:11]MH_SAM_APDU [17:55:11]CAPDU: 80 13 01 00 [17:55:11]Write to MH i2c: E2 08 00 0D 3D 80 13 01 00 00 00 00 00 C7 [17:55:11]Write i2c OK [17:55:11]MH_I2C_Read... [17:55:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:55:11]Read from MH i2c: E2 [17:55:11]MH_I2C_Read... [17:55:11]Read from MH i2c: E2 0E 00 [17:55:11]MH_I2C_Read... [17:55:11]Read from MH i2c: E2 0E 00 0D 3D 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 89 [17:55:11]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [17:55:11]wFMCommunicate OK [17:55:11]SAM_PROTO_GetShiftState done [17:55:11]FM_GetShiftState done [17:55:11]opened in 1709425579 [17:55:11]opened+sec_in_day 1709511979 [17:55:11]quantity*price = 65056 [17:55:11]sum+1 = 65058 [17:55:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 650.57 НСП 1% : 5.76 НДС 12% : 69.09 Наличными: 0.00 Безнал.: 650.57 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 168 03.03.2024 17:55 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874798 ФД: 123311 ФПД: 187351287559830 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T175515&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123311&fm=187351287559830&tin=02508201610067®Number=0000000000090573&sum=65057 [17:55:12]StoreToDocumentArchive [17:55:12]shift 323 fd 123311 [17:55:12]save to /storage/0323/doc_00123311 [17:55:12]save last doc name /storage/0323/doc_00123311 to /storage/kkm_last_doc_name [17:55:12]save OK [17:55:12]Clear old archive folders... [17:55:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:55:12]tlvbuf is 00D9E4C0 [17:55:12]SAM_PROTO_ClearQueue [17:55:12]wFMCommunicate request_size=4 [17:55:12]MH_SAM_APDU [17:55:12]CAPDU: 80 09 00 00 [17:55:12]Write to MH i2c: E2 08 00 1A 3D 80 09 00 00 00 00 00 00 C9 [17:55:12]Write i2c OK [17:55:12]MH_I2C_Read... [17:55:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:55:12]Read from MH i2c: E2 [17:55:12]MH_I2C_Read... [17:55:12]Read from MH i2c: E2 03 00 [17:55:12]MH_I2C_Read... [17:55:12]Read from MH i2c: E2 03 00 1A 3D 00 90 00 CB [17:55:12]RAPDU: 90 00 [17:55:12]wFMCommunicate OK [17:55:12]SAM_PROTO_ClearQueue done [17:55:12]KKMCreateOFDPacket [17:55:12]OFDProtocolAddRootSTLVToBuf [17:55:12]FM_MakeSignedData [17:55:12]FM_MakeSignedData [17:55:12]SAM_PROTO_SignData [17:55:12]wFMCommunicate request_size=4 [17:55:12]MH_SAM_APDU [17:55:12]CAPDU: 80 0D 01 02 [17:55:12]Write to MH i2c: E2 08 00 1B 3D 80 0D 01 02 00 00 00 00 D1 [17:55:12]Write i2c OK [17:55:12]MH_I2C_Read... [17:55:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:55:12]Read from MH i2c: E2 [17:55:12]MH_I2C_Read... [17:55:12]Read from MH i2c: E2 03 00 [17:55:12]MH_I2C_Read... [17:55:12]Read from MH i2c: E2 03 00 1B 3D 00 90 00 CC [17:55:12]RAPDU: 90 00 [17:55:12]wFMCommunicate OK [17:55:12]wFMCommunicate request_size=255 [17:55:12]MH_SAM_APDU [17:55:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 29 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 21 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 83 B9 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 AF E1 01 00 35 04 06 00 AA [17:55:12]Write to MH i2c: E2 02 01 1C 3D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 29 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 21 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 83 B9 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 AF E1 01 00 35 04 06 00 AA 00 00 C4 [17:55:12]Write i2c OK [17:55:12]MH_I2C_Read... [17:55:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:55:13]Read from MH i2c: E2 [17:55:13]MH_I2C_Read... [17:55:13]Read from MH i2c: E2 03 00 [17:55:13]MH_I2C_Read... [17:55:13]Read from MH i2c: E2 03 00 1C 3D 00 90 00 CD [17:55:13]RAPDU: 90 00 [17:55:13]wFMCommunicate OK [17:55:13]wFMCommunicate request_size=10 [17:55:13]MH_SAM_APDU [17:55:13]CAPDU: 80 0D 02 02 05 65 1E F1 76 96 [17:55:13]Write to MH i2c: E2 0D 00 1D 3D 80 0D 02 02 05 00 65 1E F1 76 96 00 00 5E [17:55:13]Write i2c OK [17:55:13]MH_I2C_Read... [17:55:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:55:13]Read from MH i2c: E2 [17:55:13]MH_I2C_Read... [17:55:13]Read from MH i2c: E2 03 00 [17:55:13]MH_I2C_Read... [17:55:13]Read from MH i2c: E2 03 00 1D 3D 00 90 00 CE [17:55:13]RAPDU: 90 00 [17:55:13]wFMCommunicate OK [17:55:13]wFMCommunicate request_size=4 [17:55:13]MH_SAM_APDU [17:55:13]CAPDU: 80 0D 03 02 [17:55:13]Write to MH i2c: E2 08 00 1E 3D 80 0D 03 02 00 00 00 00 D6 [17:55:13]Write i2c OK [17:55:13]MH_I2C_Read... [17:55:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:55:13]Read from MH i2c: E2 [17:55:13]MH_I2C_Read... [17:55:13]Read from MH i2c: E2 0B 00 [17:55:13]MH_I2C_Read... [17:55:13]Read from MH i2c: E2 0B 00 1E 3D 00 7C E2 2E 09 BF 08 BF 65 90 00 57 [17:55:13]RAPDU: 7C E2 2E 09 BF 08 BF 65 90 00 [17:55:13]wFMCommunicate OK [17:55:13]SAM_PROTO_SignData done [17:55:13]FM_MakeSignedData done [17:55:13]CreateOFDProtocolMessage [17:55:13]wFMCommunicate request_size=4 [17:55:13]MH_SAM_APDU [17:55:13]CAPDU: 80 11 00 00 [17:55:13]Write to MH i2c: E2 08 00 1F 3D 80 11 00 00 00 00 00 00 D6 [17:55:13]Write i2c OK [17:55:13]MH_I2C_Read... [17:55:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:55:13]Read from MH i2c: E2 [17:55:13]MH_I2C_Read... [17:55:13]Read from MH i2c: E2 17 00 [17:55:13]MH_I2C_Read... [17:55:13]Read from MH i2c: E2 17 00 1F 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 34 [17:55:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [17:55:13]wFMCommunicate OK [17:55:13]CreateOFDProtocolMessage done [17:55:13]OFDSenderStorePacket 123311 [17:55:13]StoreOFDPacket docnum=123311 [17:55:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 92 C3 07 01 F7 DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 29 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 21 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 83 B9 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 AF E1 01 00 35 04 06 00 AA 65 1E F1 76 96 7C E2 2E 09 BF 08 BF 65 [17:55:13]CheckFolder [17:55:13]dirname=/storage/ofd_packets [17:55:13]CheckFolder done [17:55:13]ProducePacketName [17:55:13]name=ofd_packets/00123311 [17:55:13]NVStorageSaveData ofd_packets/00123311 [17:55:13]File name is /storage/ofd_packets/00123311 [17:55:13]Write 301 bytes [17:55:13]NVStorageSaveData done [17:55:13]OFDSenderStorePacket done [17:55:13]KKMCreateOFDPacket done [17:55:13]NVStorageSaveData kkm_last_timestamp [17:55:13]File name is /storage/kkm_last_timestamp [17:55:13]Write 4 bytes [17:55:13]NVStorageSaveData done [17:55:13]ExternCall_PrintAddStr [17:55:13]wPrintStart [17:55:13]Write to MH i2c: 01 00 00 20 3D 5D [17:55:13]Write i2c OK [17:55:13]MH_I2C_Read... [17:55:13]Read from MH i2c: 01 [17:55:13]MH_I2C_Read... [17:55:13]Read from MH i2c: 01 07 00 [17:55:13]MH_I2C_Read... [17:55:13]Read from MH i2c: 01 07 00 20 3D 00 00 00 00 00 FF 0F 72 [17:55:13]RasterBufferAndPrint [17:55:13]line Счет N : (1)1106255 [17:55:13]line ИНН: 02508201610067 [17:55:13]line Контрольно-Кассовый Чек [17:55:13]line ПРОДАЖА [17:55:13]line ТРК (МРК, ГНК) : 11 [17:55:13]line Товар: 2710124130 [17:55:13]line Аи-92-К-5 [17:55:13]line 10.510 * 61.90 [17:55:13]line = 650.57 [17:55:13]line НДС 12% НСП 1% [17:55:13]line > о реализуемом товаре [17:55:13]line ИТОГО: 650.57 [17:55:13]line НСП 1% : 5.76 [17:55:13]line НДС 12% : 69.09 [17:55:13]line Наличными: 0.00 [17:55:13]line Безнал.: 650.57 [17:55:13]line Место: АЗС № 25 "Партнер Нефть" [17:55:13]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [17:55:13]line СНО: Общий режим [17:55:13]line Чек 168 03.03.2024 17:55 [17:55:13]line Смена: 323 ФФД: 1.0 [17:55:13]line ЗНМ: 0300000019 [17:55:13]line РНМ: 0000000000090573 [17:55:13]line Версия ККМ: 001 [17:55:13]line Платежная система: О! деньги [17:55:13]line ФМ: 0000000000874798 [17:55:13]line ФД: 123311 [17:55:13]line ФПД: 187351287559830 [17:55:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T175515&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123311&fm=187351287559830&tin=02508201610067®Number=0000000000090573&sum=65057 [17:55:13]OFD Sender: Processing packet 123311 [packets to send 112, broken 111] [17:55:13]ProducePacketName [17:55:13]name=ofd_packets/00123311 [17:55:13]OFD Sender: To server: pG, [17:55:13]CommunicateWithHost lk.salyk.kg:30040 [17:55:13]ConnectInit lk.salyk.kg [17:55:13]written 0, free lines is 4095 [17:55:13]Connected sock=10 [17:55: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 37 39 38 0F 01 00 00 92 C3 07 01 F7 DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 29 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 21 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 83 B9 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 AF E1 01 00 35 04 06 00 AA 65 1E F1 76 96 7C E2 2E 09 BF 08 BF 65 [17:55:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 6A 58 47 00 5A 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 37 39 38 10 04 04 00 AF E1 01 00 F4 03 04 00 AE 65 E4 65 B6 04 01 00 00 2C 1B 3D 40 14 A7 76 05 [17:55:13]CommunicateWithHost err = 0 [17:55:13]CheckOFDResponse [17:55:13]1017 (14) - 77093643461234 [17:55:13]1041 (16) - 0000000000874798 [17:55:13]1040 (4) - 123311 [17:55:13]1012 (4) - 03.03.2024 11:57 [17:55:13]1206 (1) - 0 [17:55:13]OFD Sender: Remove packet 123311 [17:55:13]ProducePacketName [17:55:13]name=ofd_packets/00123311 [17:55:13]NVStorageDeleteData [17:55:13]Write to MH i2c: 01 00 00 4A 3D 87 [17:55:13]Write i2c OK [17:55:13]MH_I2C_Read... [17:55:13]Read from MH i2c: 01 [17:55:13]MH_I2C_Read... [17:55:13]Read from MH i2c: 01 07 00 [17:55:13]MH_I2C_Read... [17:55:13]Read from MH i2c: 01 07 00 4A 3D 00 00 00 00 00 02 0D 9D [17:55:13]RasterBufferAndPrint [17:55:13]line [17:55:13]line [17:55:13]line [17:55:13]line [17:55:13]line [17:55:13]written 0, free lines is 3336 [17:55:14]MH_Cut [17:55:14]Write to MH i2c: D1 01 00 51 3D 01 60 [17:55:14]Write i2c OK [17:55:14]MH_I2C_Read... [17:55:14]Read from MH i2c: D1 [17:55:14]MH_I2C_Read... [17:55:14]Read from MH i2c: D1 01 00 [17:55:14]MH_I2C_Read... [17:55:14]Read from MH i2c: D1 01 00 51 3D 00 5F [17:55:14]Write to MH i2c: 01 00 00 52 3D 8F [17:55:14]Write i2c OK [17:55:14]MH_I2C_Read... [17:55:14]OFD Sender: No OFD packet to send [17:55:14]*** Cut start [17:55:14]*** Purtial cut [17:55:14]*** Stage 1: CUTSNS_PIN = 1 [17:55:16]Read from MH i2c: 01 [17:55:16]MH_I2C_Read... [17:55:16]*** Stop cut motor [17:55:16]*** Cut end [17:55:16]Read from MH i2c: 01 07 00 [17:55:16]MH_I2C_Read... [17:55:16]Read from MH i2c: 01 07 00 52 3D 00 00 00 00 00 FF 0F A4 [17:55:16]process_action close_receipt done [17:55:16]requested_data is exist [17:55:16]produce_requested_data [17:55:16]requested_item fm.sn is exist - process it [17:55:16]wFMCommunicate request_size=4 [17:55:16]MH_SAM_APDU [17:55:16]CAPDU: 80 11 00 00 [17:55:16]Write to MH i2c: E2 08 00 53 3D 80 11 00 00 00 00 00 00 0A [17:55:16]Write i2c OK [17:55:16]MH_I2C_Read... [17:55:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:55:16]Read from MH i2c: E2 [17:55:16]MH_I2C_Read... [17:55:16]Read from MH i2c: E2 17 00 [17:55:16]MH_I2C_Read... [17:55:16]Read from MH i2c: E2 17 00 53 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 68 [17:55:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [17:55:16]wFMCommunicate OK [17:55:16]requested_item fd.num is exist - process it [17:55:16]SAM_PROTO_GetFieldsCounters [17:55:16]wFMCommunicate request_size=4 [17:55:16]MH_SAM_APDU [17:55:16]CAPDU: 80 13 00 00 [17:55:16]Write to MH i2c: E2 08 00 54 3D 80 13 00 00 00 00 00 00 0D [17:55:16]Write i2c OK [17:55:16]MH_I2C_Read... [17:55:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:55:16]Read from MH i2c: E2 [17:55:16]MH_I2C_Read... [17:55:16]Read from MH i2c: E2 62 00 [17:55:16]MH_I2C_Read... [17:55:16]Read from MH i2c: E2 62 00 54 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 AF E1 01 00 0E 04 04 00 43 01 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 05 [17:55: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 AF E1 01 00 0E 04 04 00 43 01 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 [17:55:16]wFMCommunicate OK [17:55:16]SAM_PROTO_GetFieldsCounters done [17:55:16]requested_item shift.num is exist - process it [17:55:16]requested_item shift.opened is exist - process it [17:55:16]req_shift_opened [17:55:16]FM_GetShiftState [17:55:16]SAM_PROTO_GetShiftState [17:55:16]wFMCommunicate request_size=4 [17:55:16]MH_SAM_APDU [17:55:16]CAPDU: 80 13 01 00 [17:55:16]Write to MH i2c: E2 08 00 55 3D 80 13 01 00 00 00 00 00 0F [17:55:16]Write i2c OK [17:55:16]MH_I2C_Read... [17:55:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:55:16]Read from MH i2c: E2 [17:55:16]MH_I2C_Read... [17:55:16]Read from MH i2c: E2 0E 00 [17:55:16]MH_I2C_Read... [17:55:16]Read from MH i2c: E2 0E 00 55 3D 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 D1 [17:55:16]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [17:55:16]wFMCommunicate OK [17:55:16]SAM_PROTO_GetShiftState done [17:55:16]FM_GetShiftState done [17:55:16]req_shift_opened done [17:55:16]requested_item shift.open_date is exist - process it [17:55:16]req_shift_open_date [17:55:16]req_shift_open_date done [17:55:16]produce_requested_data done [17:55:16]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123311,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [17:55:16]process_action_free close_receipt [17:55:16]json_value_free [17:55:16]json_value_free done [17:55:16]process_json_proto returns [17:55:16]Send response to host [17:55:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123311,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [17:55:16]free response buf [17:55:16]execute_script done [17:55:16]execute_script returns [17:55:16]free content buf [17:55:16]Sock 9.Close socket [17:55:16]Sock 9.Thread stoped [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:49]OFD Sender: No OFD packet to send [17:55:54]OFD Sender: No OFD packet to send [17:55:59]OFD Sender: No OFD packet to send [17:56:04]OFD Sender: No OFD packet to send [17:56:09]OFD Sender: No OFD packet to send [17:56:14]OFD Sender: No OFD packet to send [17:56:19]OFD Sender: No OFD packet to send [17:56:24]OFD Sender: No OFD packet to send [17:56:29]OFD Sender: No OFD packet to send [17:56:34]OFD Sender: No OFD packet to send [17:56:39]OFD Sender: No OFD packet to send [17:56:44]OFD Sender: No OFD packet to send [17:56:49]OFD Sender: No OFD packet to send [17:56:54]OFD Sender: No OFD packet to send [17:56:59]OFD Sender: No OFD packet to send [17:57:04]OFD Sender: No OFD packet to send [17:57:09]OFD Sender: No OFD packet to send [17:57:14]OFD Sender: No OFD packet to send [17:57:19]OFD Sender: No OFD packet to send [17:57:24]OFD Sender: No OFD packet to send [17:57:29]OFD Sender: No OFD packet to send [17:57:34]OFD Sender: No OFD packet to send [17:57:39]OFD Sender: No OFD packet to send [17:57:44]OFD Sender: No OFD packet to send [17:57:49]OFD Sender: No OFD packet to send [17:57:54]OFD Sender: No OFD packet to send [17:57:59]OFD Sender: No OFD packet to send [17:58:04]OFD Sender: No OFD packet to send [17:58:09]OFD Sender: No OFD packet to send [17:58:14]OFD Sender: No OFD packet to send [17:58:19]OFD Sender: No OFD packet to send [17:58:24]OFD Sender: No OFD packet to send [17:58:29]OFD Sender: No OFD packet to send [17:58:34]OFD Sender: No OFD packet to send [17:58:39]OFD Sender: No OFD packet to send [17:58:44]OFD Sender: No OFD packet to send [17:58:49]OFD Sender: No OFD packet to send [17:58:54]OFD Sender: No OFD packet to send [17:58:59]OFD Sender: No OFD packet to send [17:59:04]OFD Sender: No OFD packet to send [17:59:09]OFD Sender: No OFD packet to send [17:59:14]OFD Sender: No OFD packet to send [17:59:19]OFD Sender: No OFD packet to send [17:59:24]OFD Sender: No OFD packet to send [17:59:29]OFD Sender: No OFD packet to send [17:59:34]OFD Sender: No OFD packet to send [17:59:39]OFD Sender: No OFD packet to send [17:59:44]OFD Sender: No OFD packet to send [17:59:49]OFD Sender: No OFD packet to send [17:59:54]OFD Sender: No OFD packet to send [17:59:59]OFD Sender: No OFD packet to send [18:00:04]OFD Sender: No OFD packet to send [18:00:09]OFD Sender: No OFD packet to send [18:00:14]OFD Sender: No OFD packet to send [18:00:19]OFD Sender: No OFD packet to send [18:00:24]OFD Sender: No OFD packet to send [18:00:24]accept exits with 7 [18:00:24]New connection [18:00:24]New thread 3067252068 created [18:00:24]Thread 3067395428 joined [18:00:24]Waiting for new connection... [18:00:24] Sock 7.Parse request [18:00:24]Sock 7.Check first char [18:00:24]Sock 7.First char is OK [18:00:24]request: POST /json_proto HTTP/1.0 [18:00:24]Method: POST [18:00:24]URL: /json_proto [18:00:24]Method is POST - this is cgi request [18:00:24]url: /json_proto [18:00:24]query_string will be loaded in cgi processing [18:00:24]execute_cgi json_proto POST (null) [18:00:24]execute_cgi path=json_proto method=POST [18:00:24]POST find Content-Length [18:00:24]Host: 172.17.48.197:8080 [18:00:24]Content-Length: 678 [18:00:24]Content-Type: application/json [18:00:24] [18:00:24]POST finish read [18:00:24]Found Content-Length = 678 [18:00:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106256", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:00:24]execute_script... [18:00:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106256", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:00:24]POST & json_proto [18:00:24]process_json_proto [18:00:24]json parsed OK: [18:00:24]protocol is kg_v1.0 [18:00:24]action value=close_receipt [18:00:24]process_action close_receipt [18:00:24]cmd_close_receipt [18:00:24]MH_GetDate [18:00:24]Write to MH i2c: F0 00 00 56 3D 82 [18:00:24]Write i2c OK [18:00:24]MH_I2C_Read... [18:00:24]Read from MH i2c: F0 [18:00:24]MH_I2C_Read... [18:00:24]Read from MH i2c: F0 09 00 [18:00:24]MH_I2C_Read... [18:00:24]Read from MH i2c: F0 09 00 56 3D 00 BD BA E4 65 6C AF E3 65 AE [18:00:24]GetLastDocTimeStamp 1709488515 [18:00:24]current date 1709488829 [18:00:24]FM_GetShiftState [18:00:24]SAM_PROTO_GetShiftState [18:00:24]wFMCommunicate request_size=4 [18:00:24]MH_SAM_APDU [18:00:24]CAPDU: 80 13 01 00 [18:00:24]Write to MH i2c: E2 08 00 57 3D 80 13 01 00 00 00 00 00 11 [18:00:24]Write i2c OK [18:00:24]MH_I2C_Read... [18:00:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:00:24]Read from MH i2c: E2 [18:00:24]MH_I2C_Read... [18:00:24]Read from MH i2c: E2 0E 00 [18:00:24]MH_I2C_Read... [18:00:24]Read from MH i2c: E2 0E 00 57 3D 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 D3 [18:00:24]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [18:00:24]wFMCommunicate OK [18:00:24]SAM_PROTO_GetShiftState done [18:00:24]FM_GetShiftState done [18:00:24]opened in 1709425579 [18:00:24]opened+sec_in_day 1709511979 [18:00:24]quantity*price = 50015 [18:00:24]sum+1 = 50016 [18:00:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 169 03.03.2024 18:00 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123312 ФПД: 156166670234359 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T180029&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123312&fm=156166670234359&tin=02508201610067®Number=0000000000090573&sum=50000 [18:00:25]StoreToDocumentArchive [18:00:25]shift 323 fd 123312 [18:00:25]save to /storage/0323/doc_00123312 [18:00:25]save last doc name /storage/0323/doc_00123312 to /storage/kkm_last_doc_name [18:00:25]save OK [18:00:25]Clear old archive folders... [18:00:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:00:25]tlvbuf is 00E65E30 [18:00:25]SAM_PROTO_ClearQueue [18:00:25]wFMCommunicate request_size=4 [18:00:25]MH_SAM_APDU [18:00:25]CAPDU: 80 09 00 00 [18:00:25]Write to MH i2c: E2 08 00 64 3D 80 09 00 00 00 00 00 00 13 [18:00:25]Write i2c OK [18:00:25]MH_I2C_Read... [18:00:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:00:25]Read from MH i2c: E2 [18:00:25]MH_I2C_Read... [18:00:25]Read from MH i2c: E2 03 00 [18:00:25]MH_I2C_Read... [18:00:25]Read from MH i2c: E2 03 00 64 3D 00 90 00 15 [18:00:25]RAPDU: 90 00 [18:00:25]wFMCommunicate OK [18:00:25]SAM_PROTO_ClearQueue done [18:00:25]KKMCreateOFDPacket [18:00:25]OFDProtocolAddRootSTLVToBuf [18:00:25]FM_MakeSignedData [18:00:25]FM_MakeSignedData [18:00:25]SAM_PROTO_SignData [18:00:25]wFMCommunicate request_size=4 [18:00:25]MH_SAM_APDU [18:00:25]CAPDU: 80 0D 01 02 [18:00:25]Write to MH i2c: E2 08 00 65 3D 80 0D 01 02 00 00 00 00 1B [18:00:25]Write i2c OK [18:00:25]MH_I2C_Read... [18:00:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:00:26]Read from MH i2c: E2 [18:00:26]MH_I2C_Read... [18:00:26]Read from MH i2c: E2 03 00 [18:00:26]MH_I2C_Read... [18:00:26]Read from MH i2c: E2 03 00 65 3D 00 90 00 16 [18:00:26]RAPDU: 90 00 [18:00:26]wFMCommunicate OK [18:00:26]wFMCommunicate request_size=255 [18:00:26]MH_SAM_APDU [18:00:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 BD BA E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 B0 E1 01 00 35 04 06 00 8E [18:00:26]Write to MH i2c: E2 02 01 66 3D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 BD BA E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 B0 E1 01 00 35 04 06 00 8E 00 00 C8 [18:00:26]Write i2c OK [18:00:26]MH_I2C_Read... [18:00:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:00:26]Read from MH i2c: E2 [18:00:26]MH_I2C_Read... [18:00:26]Read from MH i2c: E2 03 00 [18:00:26]MH_I2C_Read... [18:00:26]Read from MH i2c: E2 03 00 66 3D 00 90 00 17 [18:00:26]RAPDU: 90 00 [18:00:26]wFMCommunicate OK [18:00:26]wFMCommunicate request_size=10 [18:00:26]MH_SAM_APDU [18:00:26]CAPDU: 80 0D 02 02 05 08 62 E7 B2 F7 [18:00:26]Write to MH i2c: E2 0D 00 67 3D 80 0D 02 02 05 00 08 62 E7 B2 F7 00 00 22 [18:00:26]Write i2c OK [18:00:26]MH_I2C_Read... [18:00:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:00:26]Read from MH i2c: E2 [18:00:26]MH_I2C_Read... [18:00:26]Read from MH i2c: E2 03 00 [18:00:26]MH_I2C_Read... [18:00:26]Read from MH i2c: E2 03 00 67 3D 00 90 00 18 [18:00:26]RAPDU: 90 00 [18:00:26]wFMCommunicate OK [18:00:26]wFMCommunicate request_size=4 [18:00:26]MH_SAM_APDU [18:00:26]CAPDU: 80 0D 03 02 [18:00:26]Write to MH i2c: E2 08 00 68 3D 80 0D 03 02 00 00 00 00 20 [18:00:26]Write i2c OK [18:00:26]MH_I2C_Read... [18:00:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:00:26]Read from MH i2c: E2 [18:00:26]MH_I2C_Read... [18:00:26]Read from MH i2c: E2 0B 00 [18:00:26]MH_I2C_Read... [18:00:26]Read from MH i2c: E2 0B 00 68 3D 00 99 88 4C B2 6B 26 E7 C0 90 00 78 [18:00:26]RAPDU: 99 88 4C B2 6B 26 E7 C0 90 00 [18:00:26]wFMCommunicate OK [18:00:26]SAM_PROTO_SignData done [18:00:26]FM_MakeSignedData done [18:00:26]CreateOFDProtocolMessage [18:00:26]wFMCommunicate request_size=4 [18:00:26]MH_SAM_APDU [18:00:26]CAPDU: 80 11 00 00 [18:00:26]Write to MH i2c: E2 08 00 69 3D 80 11 00 00 00 00 00 00 20 [18:00:26]Write i2c OK [18:00:26]MH_I2C_Read... [18:00:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:00:26]Read from MH i2c: E2 [18:00:26]MH_I2C_Read... [18:00:26]Read from MH i2c: E2 17 00 [18:00:26]MH_I2C_Read... [18:00:26]Read from MH i2c: E2 17 00 69 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 7E [18:00:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [18:00:26]wFMCommunicate OK [18:00:26]CreateOFDProtocolMessage done [18:00:26]OFDSenderStorePacket 123312 [18:00:26]StoreOFDPacket docnum=123312 [18:00:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 C1 82 07 01 00 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 BD BA E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 B0 E1 01 00 35 04 06 00 8E 08 62 E7 B2 F7 99 88 4C B2 6B 26 E7 C0 [18:00:26]CheckFolder [18:00:26]dirname=/storage/ofd_packets [18:00:26]CheckFolder done [18:00:26]ProducePacketName [18:00:26]name=ofd_packets/00123312 [18:00:26]NVStorageSaveData ofd_packets/00123312 [18:00:26]File name is /storage/ofd_packets/00123312 [18:00:26]Write 301 bytes [18:00:26]NVStorageSaveData done [18:00:26]OFDSenderStorePacket done [18:00:26]KKMCreateOFDPacket done [18:00:26]NVStorageSaveData kkm_last_timestamp [18:00:26]File name is /storage/kkm_last_timestamp [18:00:26]Write 4 bytes [18:00:26]NVStorageSaveData done [18:00:26]ExternCall_PrintAddStr [18:00:26]wPrintStart [18:00:26]Write to MH i2c: 01 00 00 6A 3D A7 [18:00:26]Write i2c OK [18:00:26]MH_I2C_Read... [18:00:26]Read from MH i2c: 01 [18:00:26]MH_I2C_Read... [18:00:26]Read from MH i2c: 01 07 00 [18:00:26]MH_I2C_Read... [18:00:26]Read from MH i2c: 01 07 00 6A 3D 00 00 00 00 00 FF 0F BC [18:00:26]RasterBufferAndPrint [18:00:26]line Счет N : (1)1106256 [18:00:26]line ИНН: 02508201610067 [18:00:26]line Контрольно-Кассовый Чек [18:00:26]line ПРОДАЖА [18:00:26]line ТРК (МРК, ГНК) : 62 [18:00:26]line Товар: 2710124130 [18:00:26]line Аи-92-К-5 [18:00:26]line 8.080 * 61.90 [18:00:26]line = 500.15 [18:00:26]line НДС 12% НСП 1% [18:00:26]line > о реализуемом товаре [18:00:26]line ОКРУГЛЕНИЕ: -0.15 [18:00:26]line ИТОГО: 500.00 [18:00:26]line Внесено: 500.00 [18:00:26]line СДАЧА: 0.00 [18:00:26]line НСП 1% : 4.43 [18:00:26]line НДС 12% : 53.11 [18:00:26]line Наличными: 500.00 [18:00:26]line Безнал.: 0.00 [18:00:26]line Место: АЗС № 25 "Партнер Нефть" [18:00:26]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [18:00:26]line СНО: Общий режим [18:00:26]line Чек 169 03.03.2024 18:00 [18:00:26]line Смена: 323 ФФД: 1.0 [18:00:26]line ЗНМ: 0300000019 [18:00:26]line РНМ: 0000000000090573 [18:00:26]line Версия ККМ: 001 [18:00:26]line ФМ: 0000000000874798 [18:00:26]line ФД: 123312 [18:00:26]line ФПД: 156166670234359 [18:00:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T180029&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123312&fm=156166670234359&tin=02508201610067®Number=0000000000090573&sum=50000 [18:00:26]OFD Sender: Processing packet 123312 [packets to send 112, broken 111] [18:00:26]ProducePacketName [18:00:26]name=ofd_packets/00123312 [18:00:26]OFD Sender: To server: pG, [18:00:26]CommunicateWithHost lk.salyk.kg:30040 [18:00:26]ConnectInit lk.salyk.kg [18:00:26]written 0, free lines is 4095 [18:00:26]Connected sock=10 [18:00: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 37 39 38 0F 01 00 00 C1 82 07 01 00 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 BD BA E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 B0 E1 01 00 35 04 06 00 8E 08 62 E7 B2 F7 99 88 4C B2 6B 26 E7 C0 [18:00:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 E7 5D 47 00 BE 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 B0 E1 01 00 F4 03 04 00 E8 66 E4 65 B6 04 01 00 00 6F 52 92 F2 F1 26 68 41 [18:00:27]CommunicateWithHost err = 0 [18:00:27]CheckOFDResponse [18:00:27]1017 (14) - 77093643461234 [18:00:27]1041 (16) - 0000000000874798 [18:00:27]1040 (4) - 123312 [18:00:27]1012 (4) - 03.03.2024 12:02 [18:00:27]1206 (1) - 0 [18:00:27]OFD Sender: Remove packet 123312 [18:00:27]ProducePacketName [18:00:27]name=ofd_packets/00123312 [18:00:27]NVStorageDeleteData [18:00:27]Write to MH i2c: 01 00 00 95 3D D2 [18:00:27]Write i2c OK [18:00:27]MH_I2C_Read... [18:00:27]Read from MH i2c: 01 [18:00:27]MH_I2C_Read... [18:00:27]Read from MH i2c: 01 07 00 [18:00:27]MH_I2C_Read... [18:00:27]Read from MH i2c: 01 07 00 95 3D 00 00 00 00 00 E7 0C CC [18:00:27]RasterBufferAndPrint [18:00:27]line [18:00:27]line [18:00:27]line [18:00:27]line [18:00:27]line [18:00:27]written 0, free lines is 3312 [18:00:27]MH_Cut [18:00:27]Write to MH i2c: D1 01 00 9C 3D 01 AB [18:00:27]Write i2c OK [18:00:27]MH_I2C_Read... [18:00:27]Read from MH i2c: D1 [18:00:27]MH_I2C_Read... [18:00:27]Read from MH i2c: D1 01 00 [18:00:27]MH_I2C_Read... [18:00:27]Read from MH i2c: D1 01 00 9C 3D 00 AA [18:00:27]Write to MH i2c: 01 00 00 9D 3D DA [18:00:27]Write i2c OK [18:00:27]MH_I2C_Read... [18:00:27]OFD Sender: No OFD packet to send [18:00:27]*** Cut start [18:00:27]*** Purtial cut [18:00:27]*** Stage 1: CUTSNS_PIN = 1 [18:00:29]Read from MH i2c: 01 [18:00:29]MH_I2C_Read... [18:00:29]*** Stop cut motor [18:00:29]*** Cut end [18:00:29]Read from MH i2c: 01 07 00 [18:00:29]MH_I2C_Read... [18:00:29]Read from MH i2c: 01 07 00 9D 3D 00 00 00 00 00 FF 0F EF [18:00:29]process_action close_receipt done [18:00:29]requested_data is exist [18:00:29]produce_requested_data [18:00:29]requested_item fm.sn is exist - process it [18:00:29]wFMCommunicate request_size=4 [18:00:29]MH_SAM_APDU [18:00:29]CAPDU: 80 11 00 00 [18:00:29]Write to MH i2c: E2 08 00 9E 3D 80 11 00 00 00 00 00 00 55 [18:00:29]Write i2c OK [18:00:29]MH_I2C_Read... [18:00:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:00:30]Read from MH i2c: E2 [18:00:30]MH_I2C_Read... [18:00:30]Read from MH i2c: E2 17 00 [18:00:30]MH_I2C_Read... [18:00:30]Read from MH i2c: E2 17 00 9E 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 B3 [18:00:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [18:00:30]wFMCommunicate OK [18:00:30]requested_item fd.num is exist - process it [18:00:30]SAM_PROTO_GetFieldsCounters [18:00:30]wFMCommunicate request_size=4 [18:00:30]MH_SAM_APDU [18:00:30]CAPDU: 80 13 00 00 [18:00:30]Write to MH i2c: E2 08 00 9F 3D 80 13 00 00 00 00 00 00 58 [18:00:30]Write i2c OK [18:00:30]MH_I2C_Read... [18:00:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:00:30]Read from MH i2c: E2 [18:00:30]MH_I2C_Read... [18:00:30]Read from MH i2c: E2 62 00 [18:00:30]MH_I2C_Read... [18:00:30]Read from MH i2c: E2 62 00 9F 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 B0 E1 01 00 0E 04 04 00 43 01 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 54 [18:00: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 B0 E1 01 00 0E 04 04 00 43 01 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 [18:00:30]wFMCommunicate OK [18:00:30]SAM_PROTO_GetFieldsCounters done [18:00:30]requested_item shift.num is exist - process it [18:00:30]requested_item shift.opened is exist - process it [18:00:30]req_shift_opened [18:00:30]FM_GetShiftState [18:00:30]SAM_PROTO_GetShiftState [18:00:30]wFMCommunicate request_size=4 [18:00:30]MH_SAM_APDU [18:00:30]CAPDU: 80 13 01 00 [18:00:30]Write to MH i2c: E2 08 00 A0 3D 80 13 01 00 00 00 00 00 5A [18:00:30]Write i2c OK [18:00:30]MH_I2C_Read... [18:00:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:00:30]Read from MH i2c: E2 [18:00:30]MH_I2C_Read... [18:00:30]Read from MH i2c: E2 0E 00 [18:00:30]MH_I2C_Read... [18:00:30]Read from MH i2c: E2 0E 00 A0 3D 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 1C [18:00:30]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [18:00:30]wFMCommunicate OK [18:00:30]SAM_PROTO_GetShiftState done [18:00:30]FM_GetShiftState done [18:00:30]req_shift_opened done [18:00:30]requested_item shift.open_date is exist - process it [18:00:30]req_shift_open_date [18:00:30]req_shift_open_date done [18:00:30]produce_requested_data done [18:00:30]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123312,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [18:00:30]process_action_free close_receipt [18:00:30]json_value_free [18:00:30]json_value_free done [18:00:30]process_json_proto returns [18:00:30]Send response to host [18:00:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123312,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [18:00:30]free response buf [18:00:30]execute_script done [18:00:30]execute_script returns [18:00:30]free content buf [18:00:30]Sock 7.Close socket [18:00:30]Sock 7.Thread stoped [18:00:32]OFD Sender: No OFD packet to send [18:00:37]OFD Sender: No OFD packet to send [18:00:42]OFD Sender: No OFD packet to send [18:00:47]OFD Sender: No OFD packet to send [18:00:52]OFD Sender: No OFD packet to send [18:00:57]OFD Sender: No OFD packet to send [18:01:02]OFD Sender: No OFD packet to send [18:01:07]OFD Sender: No OFD packet to send [18:01:12]OFD Sender: No OFD packet to send [18:01:17]OFD Sender: No OFD packet to send [18:01:22]OFD Sender: No OFD packet to send [18:01:27]OFD Sender: No OFD packet to send [18:01:32]OFD Sender: No OFD packet to send [18:01:37]OFD Sender: No OFD packet to send [18:01:42]OFD Sender: No OFD packet to send [18:01:47]OFD Sender: No OFD packet to send [18:01:52]OFD Sender: No OFD packet to send [18:01:57]OFD Sender: No OFD packet to send [18:01:59]accept exits with 9 [18:01:59]New connection [18:01:59]New thread 3067395428 created [18:01:59]Thread 3067252068 joined [18:01:59]Waiting for new connection... [18:01:59] Sock 9.Parse request [18:01:59]Sock 9.Check first char [18:01:59]Sock 9.First char is OK [18:01:59]request: POST /json_proto HTTP/1.0 [18:01:59]Method: POST [18:01:59]URL: /json_proto [18:01:59]Method is POST - this is cgi request [18:01:59]url: /json_proto [18:01:59]query_string will be loaded in cgi processing [18:01:59]execute_cgi json_proto POST (null) [18:01:59]execute_cgi path=json_proto method=POST [18:01:59]POST find Content-Length [18:01:59]Host: 172.17.48.197:8080 [18:01:59]Content-Length: 678 [18:01:59]Content-Type: application/json [18:01:59] [18:01:59]POST finish read [18:01:59]Found Content-Length = 678 [18:01:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106257", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:01:59]execute_script... [18:01: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)1106257", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:01:59]POST & json_proto [18:01:59]process_json_proto [18:01:59]json parsed OK: [18:01:59]protocol is kg_v1.0 [18:01:59]action value=close_receipt [18:01:59]process_action close_receipt [18:01:59]cmd_close_receipt [18:01:59]MH_GetDate [18:01:59]Write to MH i2c: F0 00 00 A1 3D CD [18:01:59]Write i2c OK [18:01:59]MH_I2C_Read... [18:01:59]Read from MH i2c: F0 [18:01:59]MH_I2C_Read... [18:01:59]Read from MH i2c: F0 09 00 [18:01:59]MH_I2C_Read... [18:01:59]Read from MH i2c: F0 09 00 A1 3D 00 1B BB E4 65 6C AF E3 65 58 [18:01:59]GetLastDocTimeStamp 1709488829 [18:01:59]current date 1709488923 [18:01:59]FM_GetShiftState [18:01:59]SAM_PROTO_GetShiftState [18:01:59]wFMCommunicate request_size=4 [18:01:59]MH_SAM_APDU [18:01:59]CAPDU: 80 13 01 00 [18:01:59]Write to MH i2c: E2 08 00 A2 3D 80 13 01 00 00 00 00 00 5C [18:01:59]Write i2c OK [18:01:59]MH_I2C_Read... [18:01:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:01:59]Read from MH i2c: E2 [18:01:59]MH_I2C_Read... [18:01:59]Read from MH i2c: E2 0E 00 [18:01:59]MH_I2C_Read... [18:01:59]Read from MH i2c: E2 0E 00 A2 3D 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 1E [18:01:59]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [18:01:59]wFMCommunicate OK [18:01:59]SAM_PROTO_GetShiftState done [18:01:59]FM_GetShiftState done [18:01:59]opened in 1709425579 [18:01:59]opened+sec_in_day 1709511979 [18:01:59]quantity*price = 50015 [18:01:59]sum+1 = 50016 [18:01:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 170 03.03.2024 18:02 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123313 ФПД: 54395147267089 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T180203&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123313&fm=54395147267089&tin=02508201610067®Number=0000000000090573&sum=50000 [18:02:00]StoreToDocumentArchive [18:02:00]shift 323 fd 123313 [18:02:00]save to /storage/0323/doc_00123313 [18:02:00]save last doc name /storage/0323/doc_00123313 to /storage/kkm_last_doc_name [18:02:00]save OK [18:02:00]Clear old archive folders... [18:02:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:02:00]tlvbuf is 00E17980 [18:02:00]SAM_PROTO_ClearQueue [18:02:00]wFMCommunicate request_size=4 [18:02:00]MH_SAM_APDU [18:02:00]CAPDU: 80 09 00 00 [18:02:00]Write to MH i2c: E2 08 00 AF 3D 80 09 00 00 00 00 00 00 5E [18:02:00]Write i2c OK [18:02:00]MH_I2C_Read... [18:02:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:02:00]Read from MH i2c: E2 [18:02:00]MH_I2C_Read... [18:02:00]Read from MH i2c: E2 03 00 [18:02:00]MH_I2C_Read... [18:02:00]Read from MH i2c: E2 03 00 AF 3D 00 90 00 60 [18:02:00]RAPDU: 90 00 [18:02:00]wFMCommunicate OK [18:02:00]SAM_PROTO_ClearQueue done [18:02:00]KKMCreateOFDPacket [18:02:00]OFDProtocolAddRootSTLVToBuf [18:02:00]FM_MakeSignedData [18:02:00]FM_MakeSignedData [18:02:00]SAM_PROTO_SignData [18:02:00]wFMCommunicate request_size=4 [18:02:00]MH_SAM_APDU [18:02:00]CAPDU: 80 0D 01 02 [18:02:00]Write to MH i2c: E2 08 00 B0 3D 80 0D 01 02 00 00 00 00 66 [18:02:00]Write i2c OK [18:02:00]MH_I2C_Read... [18:02:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:02:00]Read from MH i2c: E2 [18:02:00]MH_I2C_Read... [18:02:00]Read from MH i2c: E2 03 00 [18:02:00]MH_I2C_Read... [18:02:00]Read from MH i2c: E2 03 00 B0 3D 00 90 00 61 [18:02:00]RAPDU: 90 00 [18:02:00]wFMCommunicate OK [18:02:00]wFMCommunicate request_size=255 [18:02:00]MH_SAM_APDU [18:02: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 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 1B BB E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 B1 E1 01 00 35 04 06 00 31 [18:02:00]Write to MH i2c: E2 02 01 B1 3D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 1B BB E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 B1 E1 01 00 35 04 06 00 31 00 00 17 [18:02:00]Write i2c OK [18:02:00]MH_I2C_Read... [18:02:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:02:01]Read from MH i2c: E2 [18:02:01]MH_I2C_Read... [18:02:01]Read from MH i2c: E2 03 00 [18:02:01]MH_I2C_Read... [18:02:01]Read from MH i2c: E2 03 00 B1 3D 00 90 00 62 [18:02:01]RAPDU: 90 00 [18:02:01]wFMCommunicate OK [18:02:01]wFMCommunicate request_size=10 [18:02:01]MH_SAM_APDU [18:02:01]CAPDU: 80 0D 02 02 05 78 DB 6E 2C 11 [18:02:01]Write to MH i2c: E2 0D 00 B2 3D 80 0D 02 02 05 00 78 DB 6E 2C 11 00 00 71 [18:02:01]Write i2c OK [18:02:01]MH_I2C_Read... [18:02:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:02:01]Read from MH i2c: E2 [18:02:01]MH_I2C_Read... [18:02:01]Read from MH i2c: E2 03 00 [18:02:01]MH_I2C_Read... [18:02:01]Read from MH i2c: E2 03 00 B2 3D 00 90 00 63 [18:02:01]RAPDU: 90 00 [18:02:01]wFMCommunicate OK [18:02:01]wFMCommunicate request_size=4 [18:02:01]MH_SAM_APDU [18:02:01]CAPDU: 80 0D 03 02 [18:02:01]Write to MH i2c: E2 08 00 B3 3D 80 0D 03 02 00 00 00 00 6B [18:02:01]Write i2c OK [18:02:01]MH_I2C_Read... [18:02:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:02:01]Read from MH i2c: E2 [18:02:01]MH_I2C_Read... [18:02:01]Read from MH i2c: E2 0B 00 [18:02:01]MH_I2C_Read... [18:02:01]Read from MH i2c: E2 0B 00 B3 3D 00 98 AC 76 CE DA B0 08 14 90 00 9A [18:02:01]RAPDU: 98 AC 76 CE DA B0 08 14 90 00 [18:02:01]wFMCommunicate OK [18:02:01]SAM_PROTO_SignData done [18:02:01]FM_MakeSignedData done [18:02:01]CreateOFDProtocolMessage [18:02:01]wFMCommunicate request_size=4 [18:02:01]MH_SAM_APDU [18:02:01]CAPDU: 80 11 00 00 [18:02:01]Write to MH i2c: E2 08 00 B4 3D 80 11 00 00 00 00 00 00 6B [18:02:01]Write i2c OK [18:02:01]MH_I2C_Read... [18:02:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:02:01]Read from MH i2c: E2 [18:02:01]MH_I2C_Read... [18:02:01]Read from MH i2c: E2 17 00 [18:02:01]MH_I2C_Read... [18:02:01]Read from MH i2c: E2 17 00 B4 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 C9 [18:02:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [18:02:01]wFMCommunicate OK [18:02:01]CreateOFDProtocolMessage done [18:02:01]OFDSenderStorePacket 123313 [18:02:01]StoreOFDPacket docnum=123313 [18:02:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 19 1D 07 01 65 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 1B BB E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 B1 E1 01 00 35 04 06 00 31 78 DB 6E 2C 11 98 AC 76 CE DA B0 08 14 [18:02:01]CheckFolder [18:02:01]dirname=/storage/ofd_packets [18:02:01]CheckFolder done [18:02:01]ProducePacketName [18:02:01]name=ofd_packets/00123313 [18:02:01]NVStorageSaveData ofd_packets/00123313 [18:02:01]File name is /storage/ofd_packets/00123313 [18:02:01]Write 301 bytes [18:02:01]NVStorageSaveData done [18:02:01]OFDSenderStorePacket done [18:02:01]KKMCreateOFDPacket done [18:02:01]NVStorageSaveData kkm_last_timestamp [18:02:01]File name is /storage/kkm_last_timestamp [18:02:01]Write 4 bytes [18:02:01]NVStorageSaveData done [18:02:01]ExternCall_PrintAddStr [18:02:01]wPrintStart [18:02:01]Write to MH i2c: 01 00 00 B5 3D F2 [18:02:01]Write i2c OK [18:02:01]MH_I2C_Read... [18:02:01]Read from MH i2c: 01 [18:02:01]MH_I2C_Read... [18:02:01]Read from MH i2c: 01 07 00 [18:02:01]MH_I2C_Read... [18:02:01]Read from MH i2c: 01 07 00 B5 3D 00 00 00 00 00 FF 0F 07 [18:02:01]RasterBufferAndPrint [18:02:01]line Счет N : (1)1106257 [18:02:01]line ИНН: 02508201610067 [18:02:01]line Контрольно-Кассовый Чек [18:02:01]line ПРОДАЖА [18:02:01]line ТРК (МРК, ГНК) : 21 [18:02:01]line Товар: 2710124130 [18:02:01]line Аи-92-К-5 [18:02:01]line 8.080 * 61.90 [18:02:01]line = 500.15 [18:02:01]line НДС 12% НСП 1% [18:02:01]line > о реализуемом товаре [18:02:01]line ОКРУГЛЕНИЕ: -0.15 [18:02:01]line ИТОГО: 500.00 [18:02:01]line Внесено: 500.00 [18:02:01]line СДАЧА: 0.00 [18:02:01]line НСП 1% : 4.43 [18:02:01]line НДС 12% : 53.11 [18:02:01]line Наличными: 500.00 [18:02:01]line Безнал.: 0.00 [18:02:01]line Место: АЗС № 25 "Партнер Нефть" [18:02:01]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [18:02:01]line СНО: Общий режим [18:02:01]line Чек 170 03.03.2024 18:02 [18:02:01]line Смена: 323 ФФД: 1.0 [18:02:01]line ЗНМ: 0300000019 [18:02:01]line РНМ: 0000000000090573 [18:02:01]line Версия ККМ: 001 [18:02:01]line ФМ: 0000000000874798 [18:02:01]line ФД: 123313 [18:02:01]line ФПД: 54395147267089 [18:02:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T180203&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123313&fm=54395147267089&tin=02508201610067®Number=0000000000090573&sum=50000 [18:02:01]OFD Sender: Processing packet 123313 [packets to send 112, broken 111] [18:02:01]ProducePacketName [18:02:01]name=ofd_packets/00123313 [18:02:01]OFD Sender: To server: pG, [18:02:01]CommunicateWithHost lk.salyk.kg:30040 [18:02:01]ConnectInit lk.salyk.kg [18:02:01]written 0, free lines is 4095 [18:02:01]Connected sock=10 [18:02: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 37 39 38 0F 01 00 00 19 1D 07 01 65 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 1B BB E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 B1 E1 01 00 35 04 06 00 31 78 DB 6E 2C 11 98 AC 76 CE DA B0 08 14 [18:02:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 38 AC 47 00 ED 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 B1 E1 01 00 F4 03 04 00 46 67 E4 65 B6 04 01 00 00 66 25 F4 97 F1 F8 72 65 [18:02:01]CommunicateWithHost err = 0 [18:02:01]CheckOFDResponse [18:02:01]1017 (14) - 77093643461234 [18:02:01]1041 (16) - 0000000000874798 [18:02:01]1040 (4) - 123313 [18:02:01]1012 (4) - 03.03.2024 12:04 [18:02:01]1206 (1) - 0 [18:02:01]OFD Sender: Remove packet 123313 [18:02:01]ProducePacketName [18:02:01]name=ofd_packets/00123313 [18:02:01]NVStorageDeleteData [18:02:01]Write to MH i2c: 01 00 00 E0 3D 1D [18:02:01]Write i2c OK [18:02:01]MH_I2C_Read... [18:02:01]Read from MH i2c: 01 [18:02:01]MH_I2C_Read... [18:02:01]Read from MH i2c: 01 07 00 [18:02:01]MH_I2C_Read... [18:02:01]Read from MH i2c: 01 07 00 E0 3D 00 00 00 00 00 E3 0C 13 [18:02:01]RasterBufferAndPrint [18:02:01]line [18:02:01]line [18:02:01]line [18:02:01]line [18:02:01]line [18:02:01]written 0, free lines is 3305 [18:02:01]MH_Cut [18:02:01]Write to MH i2c: D1 01 00 E7 3D 01 F6 [18:02:01]Write i2c OK [18:02:01]MH_I2C_Read... [18:02:01]Read from MH i2c: D1 [18:02:01]MH_I2C_Read... [18:02:01]Read from MH i2c: D1 01 00 [18:02:01]MH_I2C_Read... [18:02:01]Read from MH i2c: D1 01 00 E7 3D 00 F5 [18:02:01]Write to MH i2c: 01 00 00 E8 3D 25 [18:02:01]Write i2c OK [18:02:01]MH_I2C_Read... [18:02:02]OFD Sender: No OFD packet to send [18:02:02]*** Cut start [18:02:02]*** Purtial cut [18:02:02]*** Stage 1: CUTSNS_PIN = 1 [18:02:04]Read from MH i2c: 01 [18:02:04]MH_I2C_Read... [18:02:04]*** Stop cut motor [18:02:04]*** Cut end [18:02:04]Read from MH i2c: 01 07 00 [18:02:04]MH_I2C_Read... [18:02:04]Read from MH i2c: 01 07 00 E8 3D 00 00 00 00 00 FF 0F 3A [18:02:04]process_action close_receipt done [18:02:04]requested_data is exist [18:02:04]produce_requested_data [18:02:04]requested_item fm.sn is exist - process it [18:02:04]wFMCommunicate request_size=4 [18:02:04]MH_SAM_APDU [18:02:04]CAPDU: 80 11 00 00 [18:02:04]Write to MH i2c: E2 08 00 E9 3D 80 11 00 00 00 00 00 00 A0 [18:02:04]Write i2c OK [18:02:04]MH_I2C_Read... [18:02:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:02:04]Read from MH i2c: E2 [18:02:04]MH_I2C_Read... [18:02:04]Read from MH i2c: E2 17 00 [18:02:04]MH_I2C_Read... [18:02:04]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 37 39 38 90 00 FE [18:02:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [18:02:04]wFMCommunicate OK [18:02:04]requested_item fd.num is exist - process it [18:02:04]SAM_PROTO_GetFieldsCounters [18:02:04]wFMCommunicate request_size=4 [18:02:04]MH_SAM_APDU [18:02:04]CAPDU: 80 13 00 00 [18:02:04]Write to MH i2c: E2 08 00 EA 3D 80 13 00 00 00 00 00 00 A3 [18:02:04]Write i2c OK [18:02:04]MH_I2C_Read... [18:02:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:02:04]Read from MH i2c: E2 [18:02:04]MH_I2C_Read... [18:02:04]Read from MH i2c: E2 62 00 [18:02:04]MH_I2C_Read... [18:02:04]Read from MH i2c: E2 62 00 EA 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 B1 E1 01 00 0E 04 04 00 43 01 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 A3 [18:02: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 B1 E1 01 00 0E 04 04 00 43 01 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 [18:02:04]wFMCommunicate OK [18:02:04]SAM_PROTO_GetFieldsCounters done [18:02:04]requested_item shift.num is exist - process it [18:02:04]requested_item shift.opened is exist - process it [18:02:04]req_shift_opened [18:02:04]FM_GetShiftState [18:02:04]SAM_PROTO_GetShiftState [18:02:04]wFMCommunicate request_size=4 [18:02:04]MH_SAM_APDU [18:02:04]CAPDU: 80 13 01 00 [18:02:04]Write to MH i2c: E2 08 00 EB 3D 80 13 01 00 00 00 00 00 A5 [18:02:04]Write i2c OK [18:02:04]MH_I2C_Read... [18:02:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:02:04]Read from MH i2c: E2 [18:02:04]MH_I2C_Read... [18:02:04]Read from MH i2c: E2 0E 00 [18:02:04]MH_I2C_Read... [18:02:04]Read from MH i2c: E2 0E 00 EB 3D 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 67 [18:02:04]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [18:02:04]wFMCommunicate OK [18:02:04]SAM_PROTO_GetShiftState done [18:02:04]FM_GetShiftState done [18:02:04]req_shift_opened done [18:02:04]requested_item shift.open_date is exist - process it [18:02:04]req_shift_open_date [18:02:04]req_shift_open_date done [18:02:04]produce_requested_data done [18:02:04]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123313,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [18:02:04]process_action_free close_receipt [18:02:04]json_value_free [18:02:04]json_value_free done [18:02:04]process_json_proto returns [18:02:04]Send response to host [18:02:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123313,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [18:02:04]free response buf [18:02:04]execute_script done [18:02:04]execute_script returns [18:02:04]free content buf [18:02:04]Sock 9.Close socket [18:02:04]Sock 9.Thread stoped [18:02:07]OFD Sender: No OFD packet to send [18:02:12]OFD Sender: No OFD packet to send [18:02:17]OFD Sender: No OFD packet to send [18:02:18]int [18:02:18]Write to MH i2c: 01 00 00 EC 3D 29 [18:02:18]*** FLAG_PRN_KEY set [18:02:18]Write i2c OK [18:02:18]MH_I2C_Read... [18:02:18]Read from MH i2c: 01 [18:02:18]MH_I2C_Read... [18:02:18]Read from MH i2c: 01 07 00 [18:02:18]MH_I2C_Read... [18:02:18]Read from MH i2c: 01 07 00 EC 3D 00 08 00 00 00 FF 0F 46 [18:02:18]state=0 [18:02:18]Key pressed [18:02:18]Feed [18:02:18]Write to MH i2c: D8 00 00 ED 3D 01 [18:02:18]Write i2c OK [18:02:18]MH_I2C_Read... [18:02:18]Read from MH i2c: D8 [18:02:18]MH_I2C_Read... [18:02:18]Read from MH i2c: D8 01 00 [18:02:18]MH_I2C_Read... [18:02:18]Read from MH i2c: D8 01 00 ED 3D 00 02 [18:02:18]int [18:02:18]Write to MH i2c: 01 00 00 EE 3D 2B [18:02:18]Write i2c OK [18:02:18]MH_I2C_Read... [18:02:18]Read from MH i2c: 01 [18:02:18]MH_I2C_Read... [18:02:18]Read from MH i2c: 01 07 00 [18:02:18]MH_I2C_Read... [18:02:18]Read from MH i2c: 01 07 00 EE 3D 00 48 00 00 00 3C 00 B6 [18:02:18]state=2 [18:02:18]Key pressed [18:02:18]int [18:02:18]Write to MH i2c: 01 00 00 EF 3D 2C [18:02:18]*** FLAG_PRN_KEY reset [18:02:18]Write i2c OK [18:02:18]MH_I2C_Read... [18:02:18]Read from MH i2c: 01 [18:02:18]MH_I2C_Read... [18:02:18]Read from MH i2c: 01 07 00 [18:02:18]MH_I2C_Read... [18:02:18]Read from MH i2c: 01 07 00 EF 3D 00 00 00 00 00 F5 0F 37 [18:02:18]state=2 [18:02:18]Stop feed [18:02:22]OFD Sender: No OFD packet to send [18:02:27]OFD Sender: No OFD packet to send [18:02:32]OFD Sender: No OFD packet to send [18:02:37]OFD Sender: No OFD packet to send [18:02:42]OFD Sender: No OFD packet to send [18:02:47]OFD Sender: No OFD packet to send [18:02:52]OFD Sender: No OFD packet to send [18:02:57]OFD Sender: No OFD packet to send [18:03:02]OFD Sender: No OFD packet to send [18:03:07]OFD Sender: No OFD packet to send [18:03:12]OFD Sender: No OFD packet to send [18:03:17]OFD Sender: No OFD packet to send [18:03:22]OFD Sender: No OFD packet to send [18:03:27]OFD Sender: No OFD packet to send [18:03:32]OFD Sender: No OFD packet to send [18:03:37]OFD Sender: No OFD packet to send [18:03:42]OFD Sender: No OFD packet to send [18:03:47]OFD Sender: No OFD packet to send [18:03:52]OFD Sender: No OFD packet to send [18:03:57]OFD Sender: No OFD packet to send [18:04:02]OFD Sender: No OFD packet to send [18:04:07]OFD Sender: No OFD packet to send [18:04:12]OFD Sender: No OFD packet to send [18:04:17]OFD Sender: No OFD packet to send [18:04:22]OFD Sender: No OFD packet to send [18:04:27]OFD Sender: No OFD packet to send [18:04:32]OFD Sender: No OFD packet to send [18:04:37]OFD Sender: No OFD packet to send [18:04:42]OFD Sender: No OFD packet to send [18:04:47]OFD Sender: No OFD packet to send [18:04:52]OFD Sender: No OFD packet to send [18:04:57]OFD Sender: No OFD packet to send [18:05:02]OFD Sender: No OFD packet to send [18:05:07]OFD Sender: No OFD packet to send [18:05:12]OFD Sender: No OFD packet to send [18:05:17]OFD Sender: No OFD packet to send [18:05:22]OFD Sender: No OFD packet to send [18:05:27]OFD Sender: No OFD packet to send [18:05:32]OFD Sender: No OFD packet to send [18:05:37]OFD Sender: No OFD packet to send [18:05:42]OFD Sender: No OFD packet to send [18:05:47]OFD Sender: No OFD packet to send [18:05:52]OFD Sender: No OFD packet to send [18:05:57]OFD Sender: No OFD packet to send [18:06:02]OFD Sender: No OFD packet to send [18:06:07]OFD Sender: No OFD packet to send [18:06:12]OFD Sender: No OFD packet to send [18:06:17]OFD Sender: No OFD packet to send [18:06:22]OFD Sender: No OFD packet to send [18:06:27]OFD Sender: No OFD packet to send [18:06:32]OFD Sender: No OFD packet to send [18:06:37]OFD Sender: No OFD packet to send [18:06:42]OFD Sender: No OFD packet to send [18:06:47]OFD Sender: No OFD packet to send [18:06:52]OFD Sender: No OFD packet to send [18:06:57]OFD Sender: No OFD packet to send [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:07:58]accept exits with 7 [18:07:58]New connection [18:07:58]New thread 3067252068 created [18:07:58]Thread 3067395428 joined [18:07:58]Waiting for new connection... [18:07:58] Sock 7.Parse request [18:07:58]Sock 7.Check first char [18:07:58]Sock 7.First char is OK [18:07:58]request: POST /json_proto HTTP/1.0 [18:07:58]Method: POST [18:07:58]URL: /json_proto [18:07:58]Method is POST - this is cgi request [18:07:58]url: /json_proto [18:07:58]query_string will be loaded in cgi processing [18:07:58]execute_cgi json_proto POST (null) [18:07:58]execute_cgi path=json_proto method=POST [18:07:58]POST find Content-Length [18:07:58]Host: 172.17.48.197:8080 [18:07:58]Content-Length: 825 [18:07:58]Content-Type: application/json [18:07:58] [18:07:58]POST finish read [18:07:58]Found Content-Length = 825 [18:07:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106258", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 70.90, "quantity" : 28.210, "sum" : 2000.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:07:58]execute_script... [18:07: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)1106258", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 70.90, "quantity" : 28.210, "sum" : 2000.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:07:58]POST & json_proto [18:07:58]process_json_proto [18:07:58]json parsed OK: [18:07:58]protocol is kg_v1.0 [18:07:58]action value=close_receipt [18:07:58]process_action close_receipt [18:07:58]cmd_close_receipt [18:07:58]MH_GetDate [18:07:58]Write to MH i2c: F0 00 00 F0 3D 1C [18:07:58]Write i2c OK [18:07:58]MH_I2C_Read... [18:07:58]Read from MH i2c: F0 [18:07:58]MH_I2C_Read... [18:07:58]Read from MH i2c: F0 09 00 [18:07:58]MH_I2C_Read... [18:07:58]Read from MH i2c: F0 09 00 F0 3D 00 82 BC E4 65 6C AF E3 65 0F [18:07:58]GetLastDocTimeStamp 1709488923 [18:07:58]current date 1709489282 [18:07:58]FM_GetShiftState [18:07:58]SAM_PROTO_GetShiftState [18:07:58]wFMCommunicate request_size=4 [18:07:58]MH_SAM_APDU [18:07:58]CAPDU: 80 13 01 00 [18:07:58]Write to MH i2c: E2 08 00 F1 3D 80 13 01 00 00 00 00 00 AB [18:07:58]Write i2c OK [18:07:58]MH_I2C_Read... [18:07:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:07:58]Read from MH i2c: E2 [18:07:58]MH_I2C_Read... [18:07:58]Read from MH i2c: E2 0E 00 [18:07:58]MH_I2C_Read... [18:07:58]Read from MH i2c: E2 0E 00 F1 3D 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 6D [18:07:58]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [18:07:58]wFMCommunicate OK [18:07:58]SAM_PROTO_GetShiftState done [18:07:58]FM_GetShiftState done [18:07:58]opened in 1709425579 [18:07:58]opened+sec_in_day 1709511979 [18:07:58]quantity*price = 200008 [18:07:58]sum+1 = 200010 [18:07:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.09 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 0.00 Безнал.: 2000.09 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 171 03.03.2024 18:08 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874798 ФД: 123314 ФПД: 197101910802942 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T180802&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123314&fm=197101910802942&tin=02508201610067®Number=0000000000090573&sum=200009 [18:07:59]StoreToDocumentArchive [18:07:59]shift 323 fd 123314 [18:07:59]save to /storage/0323/doc_00123314 [18:07:59]save last doc name /storage/0323/doc_00123314 to /storage/kkm_last_doc_name [18:07:59]save OK [18:07:59]Clear old archive folders... [18:07:59]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:07:59]tlvbuf is 00DECF50 [18:07:59]SAM_PROTO_ClearQueue [18:07:59]wFMCommunicate request_size=4 [18:07:59]MH_SAM_APDU [18:07:59]CAPDU: 80 09 00 00 [18:07:59]Write to MH i2c: E2 08 00 FE 3D 80 09 00 00 00 00 00 00 AD [18:07:59]Write i2c OK [18:07:59]MH_I2C_Read... [18:07:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:07:59]Read from MH i2c: E2 [18:07:59]MH_I2C_Read... [18:07:59]Read from MH i2c: E2 03 00 [18:07:59]MH_I2C_Read... [18:07:59]Read from MH i2c: E2 03 00 FE 3D 00 90 00 AF [18:07:59]RAPDU: 90 00 [18:07:59]wFMCommunicate OK [18:07:59]SAM_PROTO_ClearQueue done [18:07:59]KKMCreateOFDPacket [18:07:59]OFDProtocolAddRootSTLVToBuf [18:07:59]FM_MakeSignedData [18:07:59]FM_MakeSignedData [18:07:59]SAM_PROTO_SignData [18:07:59]wFMCommunicate request_size=4 [18:07:59]MH_SAM_APDU [18:07:59]CAPDU: 80 0D 01 02 [18:07:59]Write to MH i2c: E2 08 00 FF 3D 80 0D 01 02 00 00 00 00 B5 [18:07:59]Write i2c OK [18:07:59]MH_I2C_Read... [18:07:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:07:59]Read from MH i2c: E2 [18:07:59]MH_I2C_Read... [18:07:59]Read from MH i2c: E2 03 00 [18:07:59]MH_I2C_Read... [18:07:59]Read from MH i2c: E2 03 00 FF 3D 00 90 00 B0 [18:07:59]RAPDU: 90 00 [18:07:59]wFMCommunicate OK [18:07:59]wFMCommunicate request_size=255 [18:07:59]MH_SAM_APDU [18:07:59]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 32 6E 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 49 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 49 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 49 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 82 BC E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 B2 E1 01 00 35 04 06 00 [18:07:59]Write to MH i2c: E2 02 01 00 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 35 FF 03 08 00 03 32 6E 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 49 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 49 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 49 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 82 BC E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 B2 E1 01 00 35 04 06 00 00 00 C1 [18:07:59]Write i2c OK [18:07:59]MH_I2C_Read... [18:08:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:08:00]Read from MH i2c: E2 [18:08:00]MH_I2C_Read... [18:08:00]Read from MH i2c: E2 03 00 [18:08:00]MH_I2C_Read... [18:08:00]Read from MH i2c: E2 03 00 00 3E 00 90 00 B2 [18:08:00]RAPDU: 90 00 [18:08:00]wFMCommunicate OK [18:08:00]wFMCommunicate request_size=11 [18:08:00]MH_SAM_APDU [18:08:00]CAPDU: 80 0D 02 02 06 B3 43 5D 60 C1 FE [18:08:00]Write to MH i2c: E2 0E 00 01 3E 80 0D 02 02 06 00 B3 43 5D 60 C1 FE 00 00 37 [18:08:00]Write i2c OK [18:08:00]MH_I2C_Read... [18:08:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:08:00]Read from MH i2c: E2 [18:08:00]MH_I2C_Read... [18:08:00]Read from MH i2c: E2 03 00 [18:08:00]MH_I2C_Read... [18:08:00]Read from MH i2c: E2 03 00 01 3E 00 90 00 B3 [18:08:00]RAPDU: 90 00 [18:08:00]wFMCommunicate OK [18:08:00]wFMCommunicate request_size=4 [18:08:00]MH_SAM_APDU [18:08:00]CAPDU: 80 0D 03 02 [18:08:00]Write to MH i2c: E2 08 00 02 3E 80 0D 03 02 00 00 00 00 BB [18:08:00]Write i2c OK [18:08:00]MH_I2C_Read... [18:08:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:08:00]Read from MH i2c: E2 [18:08:00]MH_I2C_Read... [18:08:00]Read from MH i2c: E2 0B 00 [18:08:00]MH_I2C_Read... [18:08:00]Read from MH i2c: E2 0B 00 02 3E 00 CF 7B 64 4B 60 7A 90 70 90 00 8F [18:08:00]RAPDU: CF 7B 64 4B 60 7A 90 70 90 00 [18:08:00]wFMCommunicate OK [18:08:00]SAM_PROTO_SignData done [18:08:00]FM_MakeSignedData done [18:08:00]CreateOFDProtocolMessage [18:08:00]wFMCommunicate request_size=4 [18:08:00]MH_SAM_APDU [18:08:00]CAPDU: 80 11 00 00 [18:08:00]Write to MH i2c: E2 08 00 03 3E 80 11 00 00 00 00 00 00 BB [18:08:00]Write i2c OK [18:08:00]MH_I2C_Read... [18:08:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:08:00]Read from MH i2c: E2 [18:08:00]MH_I2C_Read... [18:08:00]Read from MH i2c: E2 17 00 [18:08:00]MH_I2C_Read... [18:08:00]Read from MH i2c: E2 17 00 03 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 19 [18:08:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [18:08:00]wFMCommunicate OK [18:08:00]CreateOFDProtocolMessage done [18:08:00]OFDSenderStorePacket 123314 [18:08:00]StoreOFDPacket docnum=123314 [18:08:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 01 00 00 7D CC 08 01 F5 85 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 35 FF 03 08 00 03 32 6E 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 49 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 49 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 49 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 82 BC E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 B2 E1 01 00 35 04 06 00 B3 43 5D 60 C1 FE CF 7B 64 4B 60 7A 90 70 [18:08:00]CheckFolder [18:08:00]dirname=/storage/ofd_packets [18:08:00]CheckFolder done [18:08:00]ProducePacketName [18:08:00]name=ofd_packets/00123314 [18:08:00]NVStorageSaveData ofd_packets/00123314 [18:08:00]File name is /storage/ofd_packets/00123314 [18:08:00]Write 302 bytes [18:08:00]NVStorageSaveData done [18:08:00]OFDSenderStorePacket done [18:08:00]KKMCreateOFDPacket done [18:08:00]NVStorageSaveData kkm_last_timestamp [18:08:00]File name is /storage/kkm_last_timestamp [18:08:00]Write 4 bytes [18:08:00]NVStorageSaveData done [18:08:00]ExternCall_PrintAddStr [18:08:00]wPrintStart [18:08:00]Write to MH i2c: 01 00 00 04 3E 42 [18:08:00]Write i2c OK [18:08:00]MH_I2C_Read... [18:08:00]Read from MH i2c: 01 [18:08:00]MH_I2C_Read... [18:08:00]Read from MH i2c: 01 07 00 [18:08:00]MH_I2C_Read... [18:08:00]Read from MH i2c: 01 07 00 04 3E 00 00 00 00 00 FF 0F 57 [18:08:00]RasterBufferAndPrint [18:08:00]line Счет N : (1)1106258 [18:08:00]line ИНН: 02508201610067 [18:08:00]line Контрольно-Кассовый Чек [18:08:00]line ПРОДАЖА [18:08:00]line ТРК (МРК, ГНК) : 51 [18:08:00]line Товар: 2710194210 [18:08:00]line ДТ(л)-К-5 [18:08:00]line 28.210 * 70.90 [18:08:00]line = 2000.09 [18:08:00]line НДС 12% НСП 1% [18:08:00]line > о реализуемом товаре [18:08:00]line ИТОГО: 2000.09 [18:08:00]line НСП 1% : 17.70 [18:08:00]line НДС 12% : 212.40 [18:08:00]line Наличными: 0.00 [18:08:00]line Безнал.: 2000.09 [18:08:00]line Место: АЗС № 25 "Партнер Нефть" [18:08:00]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [18:08:00]line СНО: Общий режим [18:08:00]line Чек 171 03.03.2024 18:08 [18:08:00]line Смена: 323 ФФД: 1.0 [18:08:00]line ЗНМ: 0300000019 [18:08:00]line РНМ: 0000000000090573 [18:08:00]line Версия ККМ: 001 [18:08:00]line Платежная система: Бакай Банк [18:08:00]line ФМ: 0000000000874798 [18:08:00]line ФД: 123314 [18:08:00]line ФПД: 197101910802942 [18:08:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T180802&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123314&fm=197101910802942&tin=02508201610067®Number=0000000000090573&sum=200009 [18:08:00]OFD Sender: Processing packet 123314 [packets to send 112, broken 111] [18:08:00]ProducePacketName [18:08:00]name=ofd_packets/00123314 [18:08:00]OFD Sender: To server: pG, [18:08:00]CommunicateWithHost lk.salyk.kg:30040 [18:08:00]ConnectInit lk.salyk.kg [18:08:00]written 0, free lines is 4095 [18:08:00]Connected sock=10 [18:08: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 37 39 38 10 01 00 00 7D CC 08 01 F5 85 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 35 FF 03 08 00 03 32 6E 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 49 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 49 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 49 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 82 BC E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 B2 E1 01 00 35 04 06 00 B3 43 5D 60 C1 FE CF 7B 64 4B 60 7A 90 70 [18:08:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 32 59 47 00 F4 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 37 39 38 10 04 04 00 B2 E1 01 00 F4 03 04 00 AE 68 E4 65 B6 04 01 00 00 0F 18 BF BB 46 1C 57 25 [18:08:00]CommunicateWithHost err = 0 [18:08:00]CheckOFDResponse [18:08:00]1017 (14) - 77093643461234 [18:08:00]1041 (16) - 0000000000874798 [18:08:00]1040 (4) - 123314 [18:08:00]1012 (4) - 03.03.2024 12:10 [18:08:00]1206 (1) - 0 [18:08:00]OFD Sender: Remove packet 123314 [18:08:00]ProducePacketName [18:08:00]name=ofd_packets/00123314 [18:08:00]NVStorageDeleteData [18:08:01]Write to MH i2c: 01 00 00 2E 3E 6C [18:08:01]Write i2c OK [18:08:01]MH_I2C_Read... [18:08:01]Read from MH i2c: 01 [18:08:01]MH_I2C_Read... [18:08:01]Read from MH i2c: 01 07 00 [18:08:01]MH_I2C_Read... [18:08:01]Read from MH i2c: 01 07 00 2E 3E 00 00 00 00 00 03 0D 83 [18:08:01]RasterBufferAndPrint [18:08:01]line [18:08:01]line [18:08:01]line [18:08:01]line [18:08:01]line [18:08:01]written 0, free lines is 3337 [18:08:01]MH_Cut [18:08:01]Write to MH i2c: D1 01 00 35 3E 01 45 [18:08:01]Write i2c OK [18:08:01]MH_I2C_Read... [18:08:01]Read from MH i2c: D1 [18:08:01]MH_I2C_Read... [18:08:01]Read from MH i2c: D1 01 00 [18:08:01]MH_I2C_Read... [18:08:01]Read from MH i2c: D1 01 00 35 3E 00 44 [18:08:01]Write to MH i2c: 01 00 00 36 3E 74 [18:08:01]Write i2c OK [18:08:01]MH_I2C_Read... [18:08:01]OFD Sender: No OFD packet to send [18:08:01]*** Cut start [18:08:01]*** Purtial cut [18:08:01]*** Stage 1: CUTSNS_PIN = 1 [18:08:03]Read from MH i2c: 01 [18:08:03]MH_I2C_Read... [18:08:03]*** Stop cut motor [18:08:03]*** Cut end [18:08:03]Read from MH i2c: 01 07 00 [18:08:03]MH_I2C_Read... [18:08:03]Read from MH i2c: 01 07 00 36 3E 00 00 00 00 00 FF 0F 89 [18:08:03]process_action close_receipt done [18:08:03]requested_data is exist [18:08:03]produce_requested_data [18:08:03]requested_item fm.sn is exist - process it [18:08:03]wFMCommunicate request_size=4 [18:08:03]MH_SAM_APDU [18:08:03]CAPDU: 80 11 00 00 [18:08:03]Write to MH i2c: E2 08 00 37 3E 80 11 00 00 00 00 00 00 EF [18:08:03]Write i2c OK [18:08:03]MH_I2C_Read... [18:08:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:08:03]Read from MH i2c: E2 [18:08:03]MH_I2C_Read... [18:08:03]Read from MH i2c: E2 17 00 [18:08:03]MH_I2C_Read... [18:08:03]Read from MH i2c: E2 17 00 37 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 4D [18:08:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [18:08:03]wFMCommunicate OK [18:08:03]requested_item fd.num is exist - process it [18:08:03]SAM_PROTO_GetFieldsCounters [18:08:03]wFMCommunicate request_size=4 [18:08:03]MH_SAM_APDU [18:08:03]CAPDU: 80 13 00 00 [18:08:03]Write to MH i2c: E2 08 00 38 3E 80 13 00 00 00 00 00 00 F2 [18:08:03]Write i2c OK [18:08:03]MH_I2C_Read... [18:08:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:08:03]Read from MH i2c: E2 [18:08:03]MH_I2C_Read... [18:08:03]Read from MH i2c: E2 62 00 [18:08:03]MH_I2C_Read... [18:08:03]Read from MH i2c: E2 62 00 38 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 B2 E1 01 00 0E 04 04 00 43 01 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 F6 [18:08: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 B2 E1 01 00 0E 04 04 00 43 01 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 [18:08:03]wFMCommunicate OK [18:08:03]SAM_PROTO_GetFieldsCounters done [18:08:03]requested_item shift.num is exist - process it [18:08:03]requested_item shift.opened is exist - process it [18:08:03]req_shift_opened [18:08:03]FM_GetShiftState [18:08:03]SAM_PROTO_GetShiftState [18:08:03]wFMCommunicate request_size=4 [18:08:03]MH_SAM_APDU [18:08:03]CAPDU: 80 13 01 00 [18:08:03]Write to MH i2c: E2 08 00 39 3E 80 13 01 00 00 00 00 00 F4 [18:08:03]Write i2c OK [18:08:03]MH_I2C_Read... [18:08:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:08:04]Read from MH i2c: E2 [18:08:04]MH_I2C_Read... [18:08:04]Read from MH i2c: E2 0E 00 [18:08:04]MH_I2C_Read... [18:08:04]Read from MH i2c: E2 0E 00 39 3E 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 B6 [18:08:04]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [18:08:04]wFMCommunicate OK [18:08:04]SAM_PROTO_GetShiftState done [18:08:04]FM_GetShiftState done [18:08:04]req_shift_opened done [18:08:04]requested_item shift.open_date is exist - process it [18:08:04]req_shift_open_date [18:08:04]req_shift_open_date done [18:08:04]produce_requested_data done [18:08:04]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123314,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [18:08:04]process_action_free close_receipt [18:08:04]json_value_free [18:08:04]json_value_free done [18:08:04]process_json_proto returns [18:08:04]Send response to host [18:08:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123314,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [18:08:04]free response buf [18:08:04]execute_script done [18:08:04]execute_script returns [18:08:04]free content buf [18:08:04]Sock 7.Close socket [18:08:04]Sock 7.Thread stoped [18:08:06]OFD Sender: No OFD packet to send [18:08:11]OFD Sender: No OFD packet to send [18:08:16]OFD Sender: No OFD packet to send [18:08:21]OFD Sender: No OFD packet to send [18:08:26]OFD Sender: No OFD packet to send [18:08:31]OFD Sender: No OFD packet to send [18:08:36]OFD Sender: No OFD packet to send [18:08:41]OFD Sender: No OFD packet to send [18:08:46]OFD Sender: No OFD packet to send [18:08:51]OFD Sender: No OFD packet to send [18:08:56]OFD Sender: No OFD packet to send [18:09:01]OFD Sender: No OFD packet to send [18:09:06]OFD Sender: No OFD packet to send [18:09:11]OFD Sender: No OFD packet to send [18:09:16]OFD Sender: No OFD packet to send [18:09:21]OFD Sender: No OFD packet to send [18:09:26]OFD Sender: No OFD packet to send [18:09:31]OFD Sender: No OFD packet to send [18:09:36]OFD Sender: No OFD packet to send [18:09:41]OFD Sender: No OFD packet to send [18:09:46]OFD Sender: No OFD packet to send [18:09:51]OFD Sender: No OFD packet to send [18:09:56]OFD Sender: No OFD packet to send [18:10:01]OFD Sender: No OFD packet to send [18:10:06]OFD Sender: No OFD packet to send [18:10:11]OFD Sender: No OFD packet to send [18:10:16]OFD Sender: No OFD packet to send [18:10:21]OFD Sender: No OFD packet to send [18:10:26]OFD Sender: No OFD packet to send [18:10:31]OFD Sender: No OFD packet to send [18:10:36]OFD Sender: No OFD packet to send [18:10:41]OFD Sender: No OFD packet to send [18:10:46]OFD Sender: No OFD packet to send [18:10:51]OFD Sender: No OFD packet to send [18:10:56]OFD Sender: No OFD packet to send [18:11:01]OFD Sender: No OFD packet to send [18:11:06]OFD Sender: No OFD packet to send [18:11:11]OFD Sender: No OFD packet to send [18:11:16]OFD Sender: No OFD packet to send [18:11:21]OFD Sender: No OFD packet to send [18:11:26]OFD Sender: No OFD packet to send [18:11:31]OFD Sender: No OFD packet to send [18:11:36]OFD Sender: No OFD packet to send [18:11:41]OFD Sender: No OFD packet to send [18:11:46]OFD Sender: No OFD packet to send [18:11:51]OFD Sender: No OFD packet to send [18:11:56]OFD Sender: No OFD packet to send [18:12:01]OFD Sender: No OFD packet to send [18:12:06]OFD Sender: No OFD packet to send [18:12:11]OFD Sender: No OFD packet to send [18:12:16]OFD Sender: No OFD packet to send [18:12:21]OFD Sender: No OFD packet to send [18:12:26]OFD Sender: No OFD packet to send [18:12:31]OFD Sender: No OFD packet to send [18:12:36]OFD Sender: No OFD packet to send [18:12:41]OFD Sender: No OFD packet to send [18:12:46]OFD Sender: No OFD packet to send [18:12:51]OFD Sender: No OFD packet to send [18:12:56]OFD Sender: No OFD packet to send [18:13:01]OFD Sender: No OFD packet to send [18:13:06]OFD Sender: No OFD packet to send [18:13:11]OFD Sender: No OFD packet to send [18:13:16]OFD Sender: No OFD packet to send [18:13:21]OFD Sender: No OFD packet to send [18:13:24]accept exits with 9 [18:13:24]New connection [18:13:24]New thread 3067395428 created [18:13:24]Thread 3067252068 joined [18:13:24]Waiting for new connection... [18:13:24] Sock 9.Parse request [18:13:24]Sock 9.Check first char [18:13:24]Sock 9.First char is OK [18:13:24]request: POST /json_proto HTTP/1.0 [18:13:24]Method: POST [18:13:24]URL: /json_proto [18:13:24]Method is POST - this is cgi request [18:13:24]url: /json_proto [18:13:24]query_string will be loaded in cgi processing [18:13:24]execute_cgi json_proto POST (null) [18:13:24]execute_cgi path=json_proto method=POST [18:13:24]POST find Content-Length [18:13:24]Host: 172.17.48.197:8080 [18:13:24]Content-Length: 678 [18:13:24]Content-Type: application/json [18:13:24] [18:13:24]POST finish read [18:13:24]Found Content-Length = 678 [18:13:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106259", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:13:24]execute_script... [18:13:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106259", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:13:24]POST & json_proto [18:13:24]process_json_proto [18:13:24]json parsed OK: [18:13:24]protocol is kg_v1.0 [18:13:24]action value=close_receipt [18:13:24]process_action close_receipt [18:13:24]cmd_close_receipt [18:13:24]MH_GetDate [18:13:24]Write to MH i2c: F0 00 00 3A 3E 67 [18:13:24]Write i2c OK [18:13:24]MH_I2C_Read... [18:13:24]Read from MH i2c: F0 [18:13:24]MH_I2C_Read... [18:13:24]Read from MH i2c: F0 09 00 [18:13:24]MH_I2C_Read... [18:13:24]Read from MH i2c: F0 09 00 3A 3E 00 C8 BD E4 65 6C AF E3 65 A1 [18:13:24]GetLastDocTimeStamp 1709489282 [18:13:24]current date 1709489608 [18:13:24]FM_GetShiftState [18:13:24]SAM_PROTO_GetShiftState [18:13:24]wFMCommunicate request_size=4 [18:13:24]MH_SAM_APDU [18:13:24]CAPDU: 80 13 01 00 [18:13:24]Write to MH i2c: E2 08 00 3B 3E 80 13 01 00 00 00 00 00 F6 [18:13:24]Write i2c OK [18:13:24]MH_I2C_Read... [18:13:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:13:24]Read from MH i2c: E2 [18:13:24]MH_I2C_Read... [18:13:24]Read from MH i2c: E2 0E 00 [18:13:24]MH_I2C_Read... [18:13:24]Read from MH i2c: E2 0E 00 3B 3E 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 B8 [18:13:24]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [18:13:24]wFMCommunicate OK [18:13:24]SAM_PROTO_GetShiftState done [18:13:24]FM_GetShiftState done [18:13:24]opened in 1709425579 [18:13:24]opened+sec_in_day 1709511979 [18:13:24]quantity*price = 50015 [18:13:24]sum+1 = 50016 [18:13:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 172 03.03.2024 18:13 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123315 ФПД: 267257756228128 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T181328&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123315&fm=267257756228128&tin=02508201610067®Number=0000000000090573&sum=50000 [18:13:25]StoreToDocumentArchive [18:13:25]shift 323 fd 123315 [18:13:25]save to /storage/0323/doc_00123315 [18:13:25]save last doc name /storage/0323/doc_00123315 to /storage/kkm_last_doc_name [18:13:25]save OK [18:13:25]Clear old archive folders... [18:13:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:13:25]tlvbuf is 00E45640 [18:13:25]SAM_PROTO_ClearQueue [18:13:25]wFMCommunicate request_size=4 [18:13:25]MH_SAM_APDU [18:13:25]CAPDU: 80 09 00 00 [18:13:25]Write to MH i2c: E2 08 00 48 3E 80 09 00 00 00 00 00 00 F8 [18:13:25]Write i2c OK [18:13:25]MH_I2C_Read... [18:13:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:13:25]Read from MH i2c: E2 [18:13:25]MH_I2C_Read... [18:13:25]Read from MH i2c: E2 03 00 [18:13:25]MH_I2C_Read... [18:13:25]Read from MH i2c: E2 03 00 48 3E 00 90 00 FA [18:13:25]RAPDU: 90 00 [18:13:25]wFMCommunicate OK [18:13:25]SAM_PROTO_ClearQueue done [18:13:25]KKMCreateOFDPacket [18:13:25]OFDProtocolAddRootSTLVToBuf [18:13:25]FM_MakeSignedData [18:13:25]FM_MakeSignedData [18:13:25]SAM_PROTO_SignData [18:13:25]wFMCommunicate request_size=4 [18:13:25]MH_SAM_APDU [18:13:25]CAPDU: 80 0D 01 02 [18:13:25]Write to MH i2c: E2 08 00 49 3E 80 0D 01 02 00 00 00 00 00 [18:13:25]Write i2c OK [18:13:25]MH_I2C_Read... [18:13:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:13:25]Read from MH i2c: E2 [18:13:25]MH_I2C_Read... [18:13:25]Read from MH i2c: E2 03 00 [18:13:25]MH_I2C_Read... [18:13:25]Read from MH i2c: E2 03 00 49 3E 00 90 00 FB [18:13:25]RAPDU: 90 00 [18:13:25]wFMCommunicate OK [18:13:25]wFMCommunicate request_size=255 [18:13:25]MH_SAM_APDU [18:13:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 C8 BD E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 B3 E1 01 00 35 04 06 00 F3 [18:13:25]Write to MH i2c: E2 02 01 4A 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 C8 BD E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 B3 E1 01 00 35 04 06 00 F3 00 00 26 [18:13:25]Write i2c OK [18:13:25]MH_I2C_Read... [18:13:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:13:25]Read from MH i2c: E2 [18:13:25]MH_I2C_Read... [18:13:25]Read from MH i2c: E2 03 00 [18:13:25]MH_I2C_Read... [18:13:25]Read from MH i2c: E2 03 00 4A 3E 00 90 00 FC [18:13:25]RAPDU: 90 00 [18:13:25]wFMCommunicate OK [18:13:25]wFMCommunicate request_size=10 [18:13:25]MH_SAM_APDU [18:13:25]CAPDU: 80 0D 02 02 05 11 CB 9F 9A 20 [18:13:25]Write to MH i2c: E2 0D 00 4B 3E 80 0D 02 02 05 00 11 CB 9F 9A 20 00 00 42 [18:13:25]Write i2c OK [18:13:25]MH_I2C_Read... [18:13:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:13:26]Read from MH i2c: E2 [18:13:26]MH_I2C_Read... [18:13:26]Read from MH i2c: E2 03 00 [18:13:26]MH_I2C_Read... [18:13:26]Read from MH i2c: E2 03 00 4B 3E 00 90 00 FD [18:13:26]RAPDU: 90 00 [18:13:26]wFMCommunicate OK [18:13:26]wFMCommunicate request_size=4 [18:13:26]MH_SAM_APDU [18:13:26]CAPDU: 80 0D 03 02 [18:13:26]Write to MH i2c: E2 08 00 4C 3E 80 0D 03 02 00 00 00 00 05 [18:13:26]Write i2c OK [18:13:26]MH_I2C_Read... [18:13:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:13:26]Read from MH i2c: E2 [18:13:26]MH_I2C_Read... [18:13:26]Read from MH i2c: E2 0B 00 [18:13:26]MH_I2C_Read... [18:13:26]Read from MH i2c: E2 0B 00 4C 3E 00 27 20 A6 C1 1D D9 F1 09 90 00 A4 [18:13:26]RAPDU: 27 20 A6 C1 1D D9 F1 09 90 00 [18:13:26]wFMCommunicate OK [18:13:26]SAM_PROTO_SignData done [18:13:26]FM_MakeSignedData done [18:13:26]CreateOFDProtocolMessage [18:13:26]wFMCommunicate request_size=4 [18:13:26]MH_SAM_APDU [18:13:26]CAPDU: 80 11 00 00 [18:13:26]Write to MH i2c: E2 08 00 4D 3E 80 11 00 00 00 00 00 00 05 [18:13:26]Write i2c OK [18:13:26]MH_I2C_Read... [18:13:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:13:26]Read from MH i2c: E2 [18:13:26]MH_I2C_Read... [18:13:26]Read from MH i2c: E2 17 00 [18:13:26]MH_I2C_Read... [18:13:26]Read from MH i2c: E2 17 00 4D 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 63 [18:13:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [18:13:26]wFMCommunicate OK [18:13:26]CreateOFDProtocolMessage done [18:13:26]OFDSenderStorePacket 123315 [18:13:26]StoreOFDPacket docnum=123315 [18:13:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 3D 6A 07 01 02 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 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 C8 BD E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 B3 E1 01 00 35 04 06 00 F3 11 CB 9F 9A 20 27 20 A6 C1 1D D9 F1 09 [18:13:26]CheckFolder [18:13:26]dirname=/storage/ofd_packets [18:13:26]CheckFolder done [18:13:26]ProducePacketName [18:13:26]name=ofd_packets/00123315 [18:13:26]NVStorageSaveData ofd_packets/00123315 [18:13:26]File name is /storage/ofd_packets/00123315 [18:13:26]Write 301 bytes [18:13:26]NVStorageSaveData done [18:13:26]OFDSenderStorePacket done [18:13:26]KKMCreateOFDPacket done [18:13:26]NVStorageSaveData kkm_last_timestamp [18:13:26]File name is /storage/kkm_last_timestamp [18:13:26]Write 4 bytes [18:13:26]NVStorageSaveData done [18:13:26]ExternCall_PrintAddStr [18:13:26]wPrintStart [18:13:26]Write to MH i2c: 01 00 00 4E 3E 8C [18:13:26]Write i2c OK [18:13:26]MH_I2C_Read... [18:13:26]Read from MH i2c: 01 [18:13:26]MH_I2C_Read... [18:13:26]Read from MH i2c: 01 07 00 [18:13:26]MH_I2C_Read... [18:13:26]Read from MH i2c: 01 07 00 4E 3E 00 00 00 00 00 FF 0F A1 [18:13:26]RasterBufferAndPrint [18:13:26]line Счет N : (1)1106259 [18:13:26]line ИНН: 02508201610067 [18:13:26]line Контрольно-Кассовый Чек [18:13:26]line ПРОДАЖА [18:13:26]line ТРК (МРК, ГНК) : 52 [18:13:26]line Товар: 2710124130 [18:13:26]line Аи-92-К-5 [18:13:26]line 8.080 * 61.90 [18:13:26]line = 500.15 [18:13:26]line НДС 12% НСП 1% [18:13:26]line > о реализуемом товаре [18:13:26]line ОКРУГЛЕНИЕ: -0.15 [18:13:26]line ИТОГО: 500.00 [18:13:26]line Внесено: 500.00 [18:13:26]line СДАЧА: 0.00 [18:13:26]line НСП 1% : 4.43 [18:13:26]line НДС 12% : 53.11 [18:13:26]line Наличными: 500.00 [18:13:26]line Безнал.: 0.00 [18:13:26]line Место: АЗС № 25 "Партнер Нефть" [18:13:26]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [18:13:26]line СНО: Общий режим [18:13:26]line Чек 172 03.03.2024 18:13 [18:13:26]line Смена: 323 ФФД: 1.0 [18:13:26]line ЗНМ: 0300000019 [18:13:26]line РНМ: 0000000000090573 [18:13:26]line Версия ККМ: 001 [18:13:26]line ФМ: 0000000000874798 [18:13:26]line ФД: 123315 [18:13:26]line ФПД: 267257756228128 [18:13:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T181328&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123315&fm=267257756228128&tin=02508201610067®Number=0000000000090573&sum=50000 [18:13:26]OFD Sender: Processing packet 123315 [packets to send 112, broken 111] [18:13:26]ProducePacketName [18:13:26]name=ofd_packets/00123315 [18:13:26]OFD Sender: To server: pG, [18:13:26]CommunicateWithHost lk.salyk.kg:30040 [18:13:26]ConnectInit lk.salyk.kg [18:13:26]written 0, free lines is 4095 [18:13:26]Connected sock=10 [18:13: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 37 39 38 0F 01 00 00 3D 6A 07 01 02 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 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 C8 BD E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 B3 E1 01 00 35 04 06 00 F3 11 CB 9F 9A 20 27 20 A6 C1 1D D9 F1 09 [18:13:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 2E FB 47 00 5D 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 37 39 38 10 04 04 00 B3 E1 01 00 F4 03 04 00 F3 69 E4 65 B6 04 01 00 00 1B F0 C5 45 AE F8 DE 68 [18:13:26]CommunicateWithHost err = 0 [18:13:26]CheckOFDResponse [18:13:26]1017 (14) - 77093643461234 [18:13:26]1041 (16) - 0000000000874798 [18:13:26]1040 (4) - 123315 [18:13:26]1012 (4) - 03.03.2024 12:15 [18:13:26]1206 (1) - 0 [18:13:26]OFD Sender: Remove packet 123315 [18:13:26]ProducePacketName [18:13:26]name=ofd_packets/00123315 [18:13:26]NVStorageDeleteData [18:13:26]Write to MH i2c: 01 00 00 79 3E B7 [18:13:26]Write i2c OK [18:13:26]MH_I2C_Read... [18:13:26]Read from MH i2c: 01 [18:13:26]MH_I2C_Read... [18:13:26]Read from MH i2c: 01 07 00 [18:13:26]MH_I2C_Read... [18:13:26]Read from MH i2c: 01 07 00 79 3E 00 00 00 00 00 E1 0C AB [18:13:26]RasterBufferAndPrint [18:13:26]line [18:13:26]line [18:13:26]line [18:13:26]line [18:13:26]line [18:13:26]written 0, free lines is 3303 [18:13:26]MH_Cut [18:13:26]Write to MH i2c: D1 01 00 80 3E 01 90 [18:13:26]Write i2c OK [18:13:26]MH_I2C_Read... [18:13:26]Read from MH i2c: D1 [18:13:26]MH_I2C_Read... [18:13:26]Read from MH i2c: D1 01 00 [18:13:26]MH_I2C_Read... [18:13:26]Read from MH i2c: D1 01 00 80 3E 00 8F [18:13:26]Write to MH i2c: 01 00 00 81 3E BF [18:13:26]Write i2c OK [18:13:26]MH_I2C_Read... [18:13:27]OFD Sender: No OFD packet to send [18:13:27]*** Cut start [18:13:27]*** Purtial cut [18:13:27]*** Stage 1: CUTSNS_PIN = 1 [18:13:29]Read from MH i2c: 01 [18:13:29]MH_I2C_Read... [18:13:29]*** Stop cut motor [18:13:29]*** Cut end [18:13:29]Read from MH i2c: 01 07 00 [18:13:29]MH_I2C_Read... [18:13:29]Read from MH i2c: 01 07 00 81 3E 00 00 00 00 00 FF 0F D4 [18:13:29]process_action close_receipt done [18:13:29]requested_data is exist [18:13:29]produce_requested_data [18:13:29]requested_item fm.sn is exist - process it [18:13:29]wFMCommunicate request_size=4 [18:13:29]MH_SAM_APDU [18:13:29]CAPDU: 80 11 00 00 [18:13:29]Write to MH i2c: E2 08 00 82 3E 80 11 00 00 00 00 00 00 3A [18:13:29]Write i2c OK [18:13:29]MH_I2C_Read... [18:13:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:13:29]Read from MH i2c: E2 [18:13:29]MH_I2C_Read... [18:13:29]Read from MH i2c: E2 17 00 [18:13:29]MH_I2C_Read... [18:13:29]Read from MH i2c: E2 17 00 82 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 98 [18:13:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [18:13:29]wFMCommunicate OK [18:13:29]requested_item fd.num is exist - process it [18:13:29]SAM_PROTO_GetFieldsCounters [18:13:29]wFMCommunicate request_size=4 [18:13:29]MH_SAM_APDU [18:13:29]CAPDU: 80 13 00 00 [18:13:29]Write to MH i2c: E2 08 00 83 3E 80 13 00 00 00 00 00 00 3D [18:13:29]Write i2c OK [18:13:29]MH_I2C_Read... [18:13:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:13:29]Read from MH i2c: E2 [18:13:29]MH_I2C_Read... [18:13:29]Read from MH i2c: E2 62 00 [18:13:29]MH_I2C_Read... [18:13:29]Read from MH i2c: E2 62 00 83 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 B3 E1 01 00 0E 04 04 00 43 01 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 45 [18:13: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 B3 E1 01 00 0E 04 04 00 43 01 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 [18:13:29]wFMCommunicate OK [18:13:29]SAM_PROTO_GetFieldsCounters done [18:13:29]requested_item shift.num is exist - process it [18:13:29]requested_item shift.opened is exist - process it [18:13:29]req_shift_opened [18:13:29]FM_GetShiftState [18:13:29]SAM_PROTO_GetShiftState [18:13:29]wFMCommunicate request_size=4 [18:13:29]MH_SAM_APDU [18:13:29]CAPDU: 80 13 01 00 [18:13:29]Write to MH i2c: E2 08 00 84 3E 80 13 01 00 00 00 00 00 3F [18:13:29]Write i2c OK [18:13:29]MH_I2C_Read... [18:13:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:13:29]Read from MH i2c: E2 [18:13:29]MH_I2C_Read... [18:13:29]Read from MH i2c: E2 0E 00 [18:13:29]MH_I2C_Read... [18:13:29]Read from MH i2c: E2 0E 00 84 3E 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 01 [18:13:29]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [18:13:29]wFMCommunicate OK [18:13:29]SAM_PROTO_GetShiftState done [18:13:29]FM_GetShiftState done [18:13:29]req_shift_opened done [18:13:29]requested_item shift.open_date is exist - process it [18:13:29]req_shift_open_date [18:13:29]req_shift_open_date done [18:13:29]produce_requested_data done [18:13:29]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123315,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [18:13:29]process_action_free close_receipt [18:13:29]json_value_free [18:13:29]json_value_free done [18:13:29]process_json_proto returns [18:13:29]Send response to host [18:13:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123315,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [18:13:29]free response buf [18:13:29]execute_script done [18:13:29]execute_script returns [18:13:29]free content buf [18:13:29]Sock 9.Close socket [18:13:29]Sock 9.Thread stoped [18:13:32]OFD Sender: No OFD packet to send [18:13:37]OFD Sender: No OFD packet to send [18:13:42]OFD Sender: No OFD packet to send [18:13:47]OFD Sender: No OFD packet to send [18:13:52]OFD Sender: No OFD packet to send [18:13:57]OFD Sender: No OFD packet to send [18:14:02]OFD Sender: No OFD packet to send [18:14:07]OFD Sender: No OFD packet to send [18:14:12]OFD Sender: No OFD packet to send [18:14:17]OFD Sender: No OFD packet to send [18:14:22]OFD Sender: No OFD packet to send [18:14:27]OFD Sender: No OFD packet to send [18:14:32]OFD Sender: No OFD packet to send [18:14:37]OFD Sender: No OFD packet to send [18:14:42]OFD Sender: No OFD packet to send [18:14:47]OFD Sender: No OFD packet to send [18:14:52]OFD Sender: No OFD packet to send [18:14:57]OFD Sender: No OFD packet to send [18:15:02]OFD Sender: No OFD packet to send [18:15:07]OFD Sender: No OFD packet to send [18:15:12]OFD Sender: No OFD packet to send [18:15:17]OFD Sender: No OFD packet to send [18:15:22]OFD Sender: No OFD packet to send [18:15:27]OFD Sender: No OFD packet to send [18:15:32]OFD Sender: No OFD packet to send [18:15:37]OFD Sender: No OFD packet to send [18:15:42]OFD Sender: No OFD packet to send [18:15:47]OFD Sender: No OFD packet to send [18:15:52]OFD Sender: No OFD packet to send [18:15:57]OFD Sender: No OFD packet to send [18:16:02]OFD Sender: No OFD packet to send [18:16:07]OFD Sender: No OFD packet to send [18:16:12]OFD Sender: No OFD packet to send [18:16:17]OFD Sender: No OFD packet to send [18:16:21]accept exits with 7 [18:16:21]New connection [18:16:21]New thread 3067252068 created [18:16:21]Thread 3067395428 joined [18:16:21]Waiting for new connection... [18:16:21] Sock 7.Parse request [18:16:21]Sock 7.Check first char [18:16:21]Sock 7.First char is OK [18:16:21]request: POST /json_proto HTTP/1.0 [18:16:21]Method: POST [18:16:21]URL: /json_proto [18:16:21]Method is POST - this is cgi request [18:16:21]url: /json_proto [18:16:21]query_string will be loaded in cgi processing [18:16:21]execute_cgi json_proto POST (null) [18:16:21]execute_cgi path=json_proto method=POST [18:16:21]POST find Content-Length [18:16:21]Host: 172.17.48.197:8080 [18:16:21]Content-Length: 658 [18:16:21]Content-Type: application/json [18:16:21] [18:16:21]POST finish read [18:16:21]Found Content-Length = 658 [18:16:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)184152", "tax_sys" : 0, "items" : [ { "code": "4870216764968", "name": "\u041D\u0430\u0433\u0440.\u0422\u0430\u0431.\u041F\u0430\u043B\u043E\u0447. HEETS Torquoise Selectio", "price" : 141.00, "quantity" : 1.000, "sum" : 141.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 141.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:16:21]execute_script... [18:16: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)184152", "tax_sys" : 0, "items" : [ { "code": "4870216764968", "name": "\u041D\u0430\u0433\u0440.\u0422\u0430\u0431.\u041F\u0430\u043B\u043E\u0447. HEETS Torquoise Selectio", "price" : 141.00, "quantity" : 1.000, "sum" : 141.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 141.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:16:21]POST & json_proto [18:16:21]process_json_proto [18:16:21]json parsed OK: [18:16:21]protocol is kg_v1.0 [18:16:21]action value=close_receipt [18:16:21]process_action close_receipt [18:16:21]cmd_close_receipt [18:16:21]MH_GetDate [18:16:21]Write to MH i2c: F0 00 00 85 3E B2 [18:16:21]Write i2c OK [18:16:21]MH_I2C_Read... [18:16:21]Read from MH i2c: F0 [18:16:21]MH_I2C_Read... [18:16:21]Read from MH i2c: F0 09 00 [18:16:21]MH_I2C_Read... [18:16:21]Read from MH i2c: F0 09 00 85 3E 00 79 BE E4 65 6C AF E3 65 9E [18:16:21]GetLastDocTimeStamp 1709489608 [18:16:21]current date 1709489785 [18:16:21]FM_GetShiftState [18:16:21]SAM_PROTO_GetShiftState [18:16:21]wFMCommunicate request_size=4 [18:16:21]MH_SAM_APDU [18:16:21]CAPDU: 80 13 01 00 [18:16:21]Write to MH i2c: E2 08 00 86 3E 80 13 01 00 00 00 00 00 41 [18:16:21]Write i2c OK [18:16:21]MH_I2C_Read... [18:16:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:16:21]Read from MH i2c: E2 [18:16:21]MH_I2C_Read... [18:16:21]Read from MH i2c: E2 0E 00 [18:16:21]MH_I2C_Read... [18:16:21]Read from MH i2c: E2 0E 00 86 3E 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 03 [18:16:21]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [18:16:21]wFMCommunicate OK [18:16:21]SAM_PROTO_GetShiftState done [18:16:21]FM_GetShiftState done [18:16:21]opened in 1709425579 [18:16:21]opened+sec_in_day 1709511979 [18:16:21]quantity*price = 14100 [18:16:21]sum+1 = 14101 [18:16:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 141.00 НСП 1% : 1.25 НДС 12% : 14.97 Наличными: 141.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 173 03.03.2024 18:16 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123316 ФПД: 249109713447703 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T181625&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123316&fm=249109713447703&tin=02508201610067®Number=0000000000090573&sum=14100 0 [18:16:22]StoreToDocumentArchive [18:16:22]shift 323 fd 123316 [18:16:22]save to /storage/0323/doc_00123316 [18:16:22]save last doc name /storage/0323/doc_00123316 to /storage/kkm_last_doc_name [18:16:22]save OK [18:16:22]Clear old archive folders... [18:16:22]ProcessDocumentItem done err = 0, tmpTLVsize=294 [18:16:22]tlvbuf is 00E297B0 [18:16:22]SAM_PROTO_ClearQueue [18:16:22]wFMCommunicate request_size=4 [18:16:22]MH_SAM_APDU [18:16:22]CAPDU: 80 09 00 00 [18:16:22]Write to MH i2c: E2 08 00 93 3E 80 09 00 00 00 00 00 00 43 [18:16:22]Write i2c OK [18:16:22]MH_I2C_Read... [18:16:22]OFD Sender: No OFD packet to send [18:16:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:16:22]Read from MH i2c: E2 [18:16:22]MH_I2C_Read... [18:16:22]Read from MH i2c: E2 03 00 [18:16:22]MH_I2C_Read... [18:16:22]Read from MH i2c: E2 03 00 93 3E 00 90 00 45 [18:16:22]RAPDU: 90 00 [18:16:22]wFMCommunicate OK [18:16:22]SAM_PROTO_ClearQueue done [18:16:22]KKMCreateOFDPacket [18:16:22]OFDProtocolAddRootSTLVToBuf [18:16:22]FM_MakeSignedData [18:16:22]FM_MakeSignedData [18:16:22]SAM_PROTO_SignData [18:16:22]wFMCommunicate request_size=4 [18:16:22]MH_SAM_APDU [18:16:22]CAPDU: 80 0D 01 02 [18:16:22]Write to MH i2c: E2 08 00 94 3E 80 0D 01 02 00 00 00 00 4B [18:16:22]Write i2c OK [18:16:22]MH_I2C_Read... [18:16:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:16:22]Read from MH i2c: E2 [18:16:22]MH_I2C_Read... [18:16:22]Read from MH i2c: E2 03 00 [18:16:22]MH_I2C_Read... [18:16:22]Read from MH i2c: E2 03 00 94 3E 00 90 00 46 [18:16:22]RAPDU: 90 00 [18:16:22]wFMCommunicate OK [18:16:22]wFMCommunicate request_size=255 [18:16:22]MH_SAM_APDU [18:16:22]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 34 39 36 38 06 04 34 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 54 6F 72 71 75 6F 69 73 65 20 53 65 6C 65 63 74 69 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 05 00 00 00 00 07 04 06 00 14 37 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 79 BE E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [18:16:22]Write to MH i2c: E2 02 01 95 3E 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 34 39 36 38 06 04 34 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 54 6F 72 71 75 6F 69 73 65 20 53 65 6C 65 63 74 69 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 05 00 00 00 00 07 04 06 00 14 37 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 79 BE E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 65 [18:16:22]Write i2c OK [18:16:22]MH_I2C_Read... [18:16:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:16:22]Read from MH i2c: E2 [18:16:22]MH_I2C_Read... [18:16:22]Read from MH i2c: E2 03 00 [18:16:22]MH_I2C_Read... [18:16:22]Read from MH i2c: E2 03 00 95 3E 00 90 00 47 [18:16:22]RAPDU: 90 00 [18:16:22]wFMCommunicate OK [18:16:22]wFMCommunicate request_size=53 [18:16:22]MH_SAM_APDU [18:16:22]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 B4 E1 01 00 35 04 06 00 E2 90 5F FA EB 17 [18:16:22]Write to MH i2c: E2 38 00 96 3E 80 0D 02 02 30 00 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 B4 E1 01 00 35 04 06 00 E2 90 5F FA EB 17 00 00 B0 [18:16:22]Write i2c OK [18:16:22]MH_I2C_Read... [18:16:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:16:22]Read from MH i2c: E2 [18:16:22]MH_I2C_Read... [18:16:22]Read from MH i2c: E2 03 00 [18:16:22]MH_I2C_Read... [18:16:22]Read from MH i2c: E2 03 00 96 3E 00 90 00 48 [18:16:22]RAPDU: 90 00 [18:16:22]wFMCommunicate OK [18:16:22]wFMCommunicate request_size=4 [18:16:22]MH_SAM_APDU [18:16:22]CAPDU: 80 0D 03 02 [18:16:22]Write to MH i2c: E2 08 00 97 3E 80 0D 03 02 00 00 00 00 50 [18:16:22]Write i2c OK [18:16:22]MH_I2C_Read... [18:16:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:16:22]Read from MH i2c: E2 [18:16:22]MH_I2C_Read... [18:16:22]Read from MH i2c: E2 0B 00 [18:16:22]MH_I2C_Read... [18:16:22]Read from MH i2c: E2 0B 00 97 3E 00 38 4F F3 F9 CF C3 38 E0 90 00 6E [18:16:22]RAPDU: 38 4F F3 F9 CF C3 38 E0 90 00 [18:16:22]wFMCommunicate OK [18:16:22]SAM_PROTO_SignData done [18:16:22]FM_MakeSignedData done [18:16:22]CreateOFDProtocolMessage [18:16:22]wFMCommunicate request_size=4 [18:16:22]MH_SAM_APDU [18:16:22]CAPDU: 80 11 00 00 [18:16:22]Write to MH i2c: E2 08 00 98 3E 80 11 00 00 00 00 00 00 50 [18:16:22]Write i2c OK [18:16:22]MH_I2C_Read... [18:16:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:16:23]Read from MH i2c: E2 [18:16:23]MH_I2C_Read... [18:16:23]Read from MH i2c: E2 17 00 [18:16:23]MH_I2C_Read... [18:16:23]Read from MH i2c: E2 17 00 98 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 AE [18:16:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [18:16:23]wFMCommunicate OK [18:16:23]CreateOFDProtocolMessage done [18:16:23]OFDSenderStorePacket 123316 [18:16:23]StoreOFDPacket docnum=123316 [18:16:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 3A 01 00 00 C8 24 32 01 CC 95 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 34 39 36 38 06 04 34 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 54 6F 72 71 75 6F 69 73 65 20 53 65 6C 65 63 74 69 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 05 00 00 00 00 07 04 06 00 14 37 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 79 BE E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 B4 E1 01 00 35 04 06 00 E2 90 5F FA EB 17 38 4F F3 F9 CF C3 38 E0 [18:16:23]CheckFolder [18:16:23]dirname=/storage/ofd_packets [18:16:23]CheckFolder done [18:16:23]ProducePacketName [18:16:23]name=ofd_packets/00123316 [18:16:23]NVStorageSaveData ofd_packets/00123316 [18:16:23]File name is /storage/ofd_packets/00123316 [18:16:23]Write 344 bytes [18:16:23]NVStorageSaveData done [18:16:23]OFDSenderStorePacket done [18:16:23]KKMCreateOFDPacket done [18:16:23]NVStorageSaveData kkm_last_timestamp [18:16:23]File name is /storage/kkm_last_timestamp [18:16:23]Write 4 bytes [18:16:23]NVStorageSaveData done [18:16:23]ExternCall_PrintAddStr [18:16:23]wPrintStart [18:16:23]Write to MH i2c: 01 00 00 99 3E D7 [18:16:23]Write i2c OK [18:16:23]MH_I2C_Read... [18:16:23]Read from MH i2c: 01 [18:16:23]MH_I2C_Read... [18:16:23]Read from MH i2c: 01 07 00 [18:16:23]MH_I2C_Read... [18:16:23]Read from MH i2c: 01 07 00 99 3E 00 00 00 00 00 FF 0F EC [18:16:23]RasterBufferAndPrint [18:16:23]line Счет N : (3)184152 [18:16:23]line ИНН: 02508201610067 [18:16:23]line Контрольно-Кассовый Чек [18:16:23]line ПРОДАЖА [18:16:23]line Товар: 4870216764968 [18:16:23]line Нагр.Таб.Палоч. HEETS Torquoise Selectio [18:16:23]line 1.000 * 141.00 [18:16:23]line = 141.00 [18:16:23]line НДС 12% НСП 1% [18:16:23]line > о реализуемом товаре [18:16:23]line ИТОГО: 141.00 [18:16:23]line НСП 1% : 1.25 [18:16:23]line НДС 12% : 14.97 [18:16:23]line Наличными: 141.00 [18:16:23]line Безнал.: 0.00 [18:16:23]line Место: АЗС № 25 "Партнер Нефть" [18:16:23]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [18:16:23]line СНО: Общий режим [18:16:23]line Чек 173 03.03.2024 18:16 [18:16:23]line Смена: 323 ФФД: 1.0 [18:16:23]line ЗНМ: 0300000019 [18:16:23]line РНМ: 0000000000090573 [18:16:23]line Версия ККМ: 001 [18:16:23]line ФМ: 0000000000874798 [18:16:23]line ФД: 123316 [18:16:23]line ФПД: 249109713447703 [18:16:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T181625&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123316&fm=249109713447703&tin=02508201610067®Number=0000000000090573&sum=14100 [18:16:23]OFD Sender: Processing packet 123316 [packets to send 112, broken 111] [18:16:23]ProducePacketName [18:16:23]name=ofd_packets/00123316 [18:16:23]OFD Sender: To server: pG, [18:16:23]CommunicateWithHost lk.salyk.kg:30040 [18:16:23]ConnectInit lk.salyk.kg [18:16:23]line 0 [18:16:23]written 0, free lines is 4095 [18:16:23]Connected sock=10 [18:16: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 37 39 38 3A 01 00 00 C8 24 32 01 CC 95 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 34 39 36 38 06 04 34 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 54 6F 72 71 75 6F 69 73 65 20 53 65 6C 65 63 74 69 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 05 00 00 00 00 07 04 06 00 14 37 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 79 BE E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 B4 E1 01 00 35 04 06 00 E2 90 5F FA EB 17 38 4F F3 F9 CF C3 38 E0 [18:16:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 83 3F 47 00 D0 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 37 39 38 10 04 04 00 B4 E1 01 00 F4 03 04 00 A4 6A E4 65 B6 04 01 00 00 30 E0 22 7D 6D CC D6 1B [18:16:23]CommunicateWithHost err = 0 [18:16:23]CheckOFDResponse [18:16:23]1017 (14) - 77093643461234 [18:16:23]1041 (16) - 0000000000874798 [18:16:23]1040 (4) - 123316 [18:16:23]1012 (4) - 03.03.2024 12:18 [18:16:23]1206 (1) - 0 [18:16:23]OFD Sender: Remove packet 123316 [18:16:23]ProducePacketName [18:16:23]name=ofd_packets/00123316 [18:16:23]NVStorageDeleteData [18:16:23]Write to MH i2c: 01 00 00 C2 3E 00 [18:16:23]Write i2c OK [18:16:23]MH_I2C_Read... [18:16:23]Read from MH i2c: 01 [18:16:23]MH_I2C_Read... [18:16:23]Read from MH i2c: 01 07 00 [18:16:23]MH_I2C_Read... [18:16:23]Read from MH i2c: 01 07 00 C2 3E 00 00 00 00 00 12 0D 26 [18:16:23]RasterBufferAndPrint [18:16:23]line [18:16:23]line [18:16:23]line [18:16:23]line [18:16:23]line [18:16:23]written 0, free lines is 3352 [18:16:23]MH_Cut [18:16:23]Write to MH i2c: D1 01 00 C9 3E 01 D9 [18:16:23]Write i2c OK [18:16:23]MH_I2C_Read... [18:16:23]Read from MH i2c: D1 [18:16:23]MH_I2C_Read... [18:16:23]Read from MH i2c: D1 01 00 [18:16:23]MH_I2C_Read... [18:16:23]Read from MH i2c: D1 01 00 C9 3E 00 D8 [18:16:23]Write to MH i2c: 01 00 00 CA 3E 08 [18:16:23]Write i2c OK [18:16:23]MH_I2C_Read... [18:16:24]OFD Sender: No OFD packet to send [18:16:24]*** Cut start [18:16:24]*** Purtial cut [18:16:24]*** Stage 1: CUTSNS_PIN = 1 [18:16:26]Read from MH i2c: 01 [18:16:26]MH_I2C_Read... [18:16:26]*** Stop cut motor [18:16:26]*** Cut end [18:16:26]Read from MH i2c: 01 07 00 [18:16:26]MH_I2C_Read... [18:16:26]Read from MH i2c: 01 07 00 CA 3E 00 00 00 00 00 FF 0F 1D [18:16:26]process_action close_receipt done [18:16:26]requested_data is exist [18:16:26]produce_requested_data [18:16:26]requested_item fm.sn is exist - process it [18:16:26]wFMCommunicate request_size=4 [18:16:26]MH_SAM_APDU [18:16:26]CAPDU: 80 11 00 00 [18:16:26]Write to MH i2c: E2 08 00 CB 3E 80 11 00 00 00 00 00 00 83 [18:16:26]Write i2c OK [18:16:26]MH_I2C_Read... [18:16:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:16:26]Read from MH i2c: E2 [18:16:26]MH_I2C_Read... [18:16:26]Read from MH i2c: E2 17 00 [18:16:26]MH_I2C_Read... [18:16:26]Read from MH i2c: E2 17 00 CB 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 E1 [18:16:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [18:16:26]wFMCommunicate OK [18:16:26]requested_item fd.num is exist - process it [18:16:26]SAM_PROTO_GetFieldsCounters [18:16:26]wFMCommunicate request_size=4 [18:16:26]MH_SAM_APDU [18:16:26]CAPDU: 80 13 00 00 [18:16:26]Write to MH i2c: E2 08 00 CC 3E 80 13 00 00 00 00 00 00 86 [18:16:26]Write i2c OK [18:16:26]MH_I2C_Read... [18:16:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:16:26]Read from MH i2c: E2 [18:16:26]MH_I2C_Read... [18:16:26]Read from MH i2c: E2 62 00 [18:16:26]MH_I2C_Read... [18:16:26]Read from MH i2c: E2 62 00 CC 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 B4 E1 01 00 0E 04 04 00 43 01 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 92 [18:16:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 B4 E1 01 00 0E 04 04 00 43 01 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:16:26]wFMCommunicate OK [18:16:26]SAM_PROTO_GetFieldsCounters done [18:16:26]requested_item shift.num is exist - process it [18:16:26]requested_item shift.opened is exist - process it [18:16:26]req_shift_opened [18:16:26]FM_GetShiftState [18:16:26]SAM_PROTO_GetShiftState [18:16:26]wFMCommunicate request_size=4 [18:16:26]MH_SAM_APDU [18:16:26]CAPDU: 80 13 01 00 [18:16:26]Write to MH i2c: E2 08 00 CD 3E 80 13 01 00 00 00 00 00 88 [18:16:26]Write i2c OK [18:16:26]MH_I2C_Read... [18:16:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:16:26]Read from MH i2c: E2 [18:16:26]MH_I2C_Read... [18:16:26]Read from MH i2c: E2 0E 00 [18:16:26]MH_I2C_Read... [18:16:26]Read from MH i2c: E2 0E 00 CD 3E 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 4A [18:16:26]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [18:16:26]wFMCommunicate OK [18:16:26]SAM_PROTO_GetShiftState done [18:16:26]FM_GetShiftState done [18:16:26]req_shift_opened done [18:16:26]requested_item shift.open_date is exist - process it [18:16:26]req_shift_open_date [18:16:26]req_shift_open_date done [18:16:26]produce_requested_data done [18:16:26]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123316,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [18:16:26]process_action_free close_receipt [18:16:26]json_value_free [18:16:26]json_value_free done [18:16:26]process_json_proto returns [18:16:26]Send response to host [18:16:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123316,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [18:16:26]free response buf [18:16:26]execute_script done [18:16:26]execute_script returns [18:16:26]free content buf [18:16:26]Sock 7.Close socket [18:16:26]Sock 7.Thread stoped [18:16:29]OFD Sender: No OFD packet to send [18:16:34]OFD Sender: No OFD packet to send [18:16:39]OFD Sender: No OFD packet to send [18:16:44]OFD Sender: No OFD packet to send [18:16:49]OFD Sender: No OFD packet to send [18:16:54]OFD Sender: No OFD packet to send [18:16:59]OFD Sender: No OFD packet to send [18:17:04]OFD Sender: No OFD packet to send [18:17:09]OFD Sender: No OFD packet to send [18:17:14]OFD Sender: No OFD packet to send [18:17:19]OFD Sender: No OFD packet to send [18:17:24]OFD Sender: No OFD packet to send [18:17:29]OFD Sender: No OFD packet to send [18:17:34]OFD Sender: No OFD packet to send [18:17:39]OFD Sender: No OFD packet to send [18:17:44]OFD Sender: No OFD packet to send [18:17:49]OFD Sender: No OFD packet to send [18:17:54]OFD Sender: No OFD packet to send [18:17:59]OFD Sender: No OFD packet to send [18:18:04]OFD Sender: No OFD packet to send [18:18:09]OFD Sender: No OFD packet to send [18:18:14]OFD Sender: No OFD packet to send [18:18:19]OFD Sender: No OFD packet to send [18:18:24]OFD Sender: No OFD packet to send [18:18:29]OFD Sender: No OFD packet to send [18:18:34]OFD Sender: No OFD packet to send [18:18:39]OFD Sender: No OFD packet to send [18:18:44]OFD Sender: No OFD packet to send [18:18:49]OFD Sender: No OFD packet to send [18:18:54]OFD Sender: No OFD packet to send [18:18:59]OFD Sender: No OFD packet to send [18:19:04]OFD Sender: No OFD packet to send [18:19:09]OFD Sender: No OFD packet to send [18:19:14]OFD Sender: No OFD packet to send [18:19:19]OFD Sender: No OFD packet to send [18:19:24]OFD Sender: No OFD packet to send [18:19:29]OFD Sender: No OFD packet to send [18:19:34]OFD Sender: No OFD packet to send [18:19:39]OFD Sender: No OFD packet to send [18:19:44]OFD Sender: No OFD packet to send [18:19:49]OFD Sender: No OFD packet to send [18:19:54]OFD Sender: No OFD packet to send [18:19:59]OFD Sender: No OFD packet to send [18:20:04]OFD Sender: No OFD packet to send [18:20:09]OFD Sender: No OFD packet to send [18:20:14]OFD Sender: No OFD packet to send [18:20:19]OFD Sender: No OFD packet to send [18:20:24]OFD Sender: No OFD packet to send [18:20:29]OFD Sender: No OFD packet to send [18:20:34]OFD Sender: No OFD packet to send [18:20:39]OFD Sender: No OFD packet to send [18:20:44]OFD Sender: No OFD packet to send [18:20:49]OFD Sender: No OFD packet to send [18:20:54]OFD Sender: No OFD packet to send [18:20:59]OFD Sender: No OFD packet to send [18:21:04]OFD Sender: No OFD packet to send [18:21:09]OFD Sender: No OFD packet to send [18:21:14]OFD Sender: No OFD packet to send [18:21:19]OFD Sender: No OFD packet to send [18:21:24]OFD Sender: No OFD packet to send [18:21:29]OFD Sender: No OFD packet to send [18:21:34]OFD Sender: No OFD packet to send [18:21:39]OFD Sender: No OFD packet to send [18:21:44]OFD Sender: No OFD packet to send [18:21:49]OFD Sender: No OFD packet to send [18:21:54]OFD Sender: No OFD packet to send [18:21:59]OFD Sender: No OFD packet to send [18:22:04]OFD Sender: No OFD packet to send [18:22:09]OFD Sender: No OFD packet to send [18:22:14]OFD Sender: No OFD packet to send [18:22:19]OFD Sender: No OFD packet to send [18:22:24]OFD Sender: No OFD packet to send [18:22:29]OFD Sender: No OFD packet to send [18:22:31]accept exits with 9 [18:22:31]New connection [18:22:31]New thread 3067395428 created [18:22:31]Thread 3067252068 joined [18:22:31]Waiting for new connection... [18:22:31] Sock 9.Parse request [18:22:31]Sock 9.Check first char [18:22:31]Sock 9.First char is OK [18:22:31]request: POST /json_proto HTTP/1.0 [18:22:31]Method: POST [18:22:31]URL: /json_proto [18:22:31]Method is POST - this is cgi request [18:22:31]url: /json_proto [18:22:31]query_string will be loaded in cgi processing [18:22:31]execute_cgi json_proto POST (null) [18:22:31]execute_cgi path=json_proto method=POST [18:22:31]POST find Content-Length [18:22:31]Host: 172.17.48.197:8080 [18:22:31]Content-Length: 806 [18:22:31]Content-Type: application/json [18:22:31] [18:22:31]POST finish read [18:22:31]Found Content-Length = 806 [18:22:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106263", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 6.470, "sum" : 400.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 400.49 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:22:31]execute_script... [18:22:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106263", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 6.470, "sum" : 400.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 400.49 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:22:31]POST & json_proto [18:22:31]process_json_proto [18:22:31]json parsed OK: [18:22:31]protocol is kg_v1.0 [18:22:31]action value=close_receipt [18:22:31]process_action close_receipt [18:22:31]cmd_close_receipt [18:22:31]MH_GetDate [18:22:31]Write to MH i2c: F0 00 00 CE 3E FB [18:22:31]Write i2c OK [18:22:31]MH_I2C_Read... [18:22:31]Read from MH i2c: F0 [18:22:31]MH_I2C_Read... [18:22:31]Read from MH i2c: F0 09 00 [18:22:31]MH_I2C_Read... [18:22:31]Read from MH i2c: F0 09 00 CE 3E 00 EC BF E4 65 6C AF E3 65 5B [18:22:31]GetLastDocTimeStamp 1709489785 [18:22:31]current date 1709490156 [18:22:31]FM_GetShiftState [18:22:31]SAM_PROTO_GetShiftState [18:22:31]wFMCommunicate request_size=4 [18:22:31]MH_SAM_APDU [18:22:31]CAPDU: 80 13 01 00 [18:22:31]Write to MH i2c: E2 08 00 CF 3E 80 13 01 00 00 00 00 00 8A [18:22:31]Write i2c OK [18:22:31]MH_I2C_Read... [18:22:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:22:31]Read from MH i2c: E2 [18:22:31]MH_I2C_Read... [18:22:31]Read from MH i2c: E2 0E 00 [18:22:31]MH_I2C_Read... [18:22:31]Read from MH i2c: E2 0E 00 CF 3E 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 4C [18:22:31]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [18:22:31]wFMCommunicate OK [18:22:31]SAM_PROTO_GetShiftState done [18:22:31]FM_GetShiftState done [18:22:31]opened in 1709425579 [18:22:31]opened+sec_in_day 1709511979 [18:22:31]quantity*price = 40049 [18:22:31]sum+1 = 40050 [18:22:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.49 НСП 1% : 3.54 НДС 12% : 42.53 Наличными: 0.00 Безнал.: 400.49 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 174 03.03.2024 18:22 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874798 ФД: 123317 ФПД: 103592208742849 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T182236&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123317&fm=103592208742849&tin=02508201610067®Number=0000000000090573&sum=40049 [18:22:33]StoreToDocumentArchive [18:22:33]shift 323 fd 123317 [18:22:33]save to /storage/0323/doc_00123317 [18:22:33]save last doc name /storage/0323/doc_00123317 to /storage/kkm_last_doc_name [18:22:33]save OK [18:22:33]Clear old archive folders... [18:22:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:22:33]tlvbuf is 00E33560 [18:22:33]SAM_PROTO_ClearQueue [18:22:33]wFMCommunicate request_size=4 [18:22:33]MH_SAM_APDU [18:22:33]CAPDU: 80 09 00 00 [18:22:33]Write to MH i2c: E2 08 00 DC 3E 80 09 00 00 00 00 00 00 8C [18:22:33]Write i2c OK [18:22:33]MH_I2C_Read... [18:22:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:22:33]Read from MH i2c: E2 [18:22:33]MH_I2C_Read... [18:22:33]Read from MH i2c: E2 03 00 [18:22:33]MH_I2C_Read... [18:22:33]Read from MH i2c: E2 03 00 DC 3E 00 90 00 8E [18:22:33]RAPDU: 90 00 [18:22:33]wFMCommunicate OK [18:22:33]SAM_PROTO_ClearQueue done [18:22:33]KKMCreateOFDPacket [18:22:33]OFDProtocolAddRootSTLVToBuf [18:22:33]FM_MakeSignedData [18:22:33]FM_MakeSignedData [18:22:33]SAM_PROTO_SignData [18:22:33]wFMCommunicate request_size=4 [18:22:33]MH_SAM_APDU [18:22:33]CAPDU: 80 0D 01 02 [18:22:33]Write to MH i2c: E2 08 00 DD 3E 80 0D 01 02 00 00 00 00 94 [18:22:33]Write i2c OK [18:22:33]MH_I2C_Read... [18:22:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:22:33]Read from MH i2c: E2 [18:22:33]MH_I2C_Read... [18:22:33]Read from MH i2c: E2 03 00 [18:22:33]MH_I2C_Read... [18:22:33]Read from MH i2c: E2 03 00 DD 3E 00 90 00 8F [18:22:33]RAPDU: 90 00 [18:22:33]wFMCommunicate OK [18:22:33]wFMCommunicate request_size=255 [18:22:33]MH_SAM_APDU [18:22:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 19 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 71 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 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 9D 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 EC BF E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 B5 E1 01 00 35 04 06 00 5E [18:22:33]Write to MH i2c: E2 02 01 DE 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 19 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 71 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 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 9D 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 EC BF E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 B5 E1 01 00 35 04 06 00 5E 00 00 5F [18:22:33]Write i2c OK [18:22:33]MH_I2C_Read... [18:22:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:22:33]Read from MH i2c: E2 [18:22:33]MH_I2C_Read... [18:22:33]Read from MH i2c: E2 03 00 [18:22:33]MH_I2C_Read... [18:22:33]Read from MH i2c: E2 03 00 DE 3E 00 90 00 90 [18:22:33]RAPDU: 90 00 [18:22:33]wFMCommunicate OK [18:22:33]wFMCommunicate request_size=10 [18:22:33]MH_SAM_APDU [18:22:33]CAPDU: 80 0D 02 02 05 37 70 CD B9 C1 [18:22:33]Write to MH i2c: E2 0D 00 DF 3E 80 0D 02 02 05 00 37 70 CD B9 C1 00 00 8F [18:22:33]Write i2c OK [18:22:33]MH_I2C_Read... [18:22:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:22:33]Read from MH i2c: E2 [18:22:33]MH_I2C_Read... [18:22:33]Read from MH i2c: E2 03 00 [18:22:33]MH_I2C_Read... [18:22:33]Read from MH i2c: E2 03 00 DF 3E 00 90 00 91 [18:22:33]RAPDU: 90 00 [18:22:33]wFMCommunicate OK [18:22:33]wFMCommunicate request_size=4 [18:22:33]MH_SAM_APDU [18:22:33]CAPDU: 80 0D 03 02 [18:22:33]Write to MH i2c: E2 08 00 E0 3E 80 0D 03 02 00 00 00 00 99 [18:22:33]Write i2c OK [18:22:33]MH_I2C_Read... [18:22:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:22:33]Read from MH i2c: E2 [18:22:33]MH_I2C_Read... [18:22:33]Read from MH i2c: E2 0B 00 [18:22:33]MH_I2C_Read... [18:22:33]Read from MH i2c: E2 0B 00 E0 3E 00 E7 F4 98 4C F4 52 A3 B5 90 00 F7 [18:22:33]RAPDU: E7 F4 98 4C F4 52 A3 B5 90 00 [18:22:33]wFMCommunicate OK [18:22:33]SAM_PROTO_SignData done [18:22:33]FM_MakeSignedData done [18:22:33]CreateOFDProtocolMessage [18:22:33]wFMCommunicate request_size=4 [18:22:33]MH_SAM_APDU [18:22:33]CAPDU: 80 11 00 00 [18:22:33]Write to MH i2c: E2 08 00 E1 3E 80 11 00 00 00 00 00 00 99 [18:22:33]Write i2c OK [18:22:33]MH_I2C_Read... [18:22:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:22:33]Read from MH i2c: E2 [18:22:33]MH_I2C_Read... [18:22:33]Read from MH i2c: E2 17 00 [18:22:33]MH_I2C_Read... [18:22:33]Read from MH i2c: E2 17 00 E1 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 F7 [18:22:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [18:22:33]wFMCommunicate OK [18:22:33]CreateOFDProtocolMessage done [18:22:33]OFDSenderStorePacket 123317 [18:22:33]StoreOFDPacket docnum=123317 [18:22:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 EE 19 07 01 96 CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 19 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 71 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 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 9D 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 EC BF E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 B5 E1 01 00 35 04 06 00 5E 37 70 CD B9 C1 E7 F4 98 4C F4 52 A3 B5 [18:22:33]CheckFolder [18:22:33]dirname=/storage/ofd_packets [18:22:33]CheckFolder done [18:22:33]ProducePacketName [18:22:33]name=ofd_packets/00123317 [18:22:33]NVStorageSaveData ofd_packets/00123317 [18:22:33]File name is /storage/ofd_packets/00123317 [18:22:33]Write 301 bytes [18:22:33]NVStorageSaveData done [18:22:33]OFDSenderStorePacket done [18:22:33]KKMCreateOFDPacket done [18:22:33]NVStorageSaveData kkm_last_timestamp [18:22:33]File name is /storage/kkm_last_timestamp [18:22:33]Write 4 bytes [18:22:33]NVStorageSaveData done [18:22:33]ExternCall_PrintAddStr [18:22:33]wPrintStart [18:22:33]Write to MH i2c: 01 00 00 E2 3E 20 [18:22:33]Write i2c OK [18:22:33]MH_I2C_Read... [18:22:33]Read from MH i2c: 01 [18:22:33]MH_I2C_Read... [18:22:33]Read from MH i2c: 01 07 00 [18:22:33]MH_I2C_Read... [18:22:33]Read from MH i2c: 01 07 00 E2 3E 00 00 00 00 00 FF 0F 35 [18:22:33]RasterBufferAndPrint [18:22:33]line Счет N : (1)1106263 [18:22:33]line ИНН: 02508201610067 [18:22:33]line Контрольно-Кассовый Чек [18:22:33]line ПРОДАЖА [18:22:33]line ТРК (МРК, ГНК) : 11 [18:22:33]line Товар: 2710124130 [18:22:33]line Аи-92-К-5 [18:22:33]line 6.470 * 61.90 [18:22:33]line = 400.49 [18:22:33]line НДС 12% НСП 1% [18:22:33]line > о реализуемом товаре [18:22:33]line ИТОГО: 400.49 [18:22:33]line НСП 1% : 3.54 [18:22:33]line НДС 12% : 42.53 [18:22:33]line Наличными: 0.00 [18:22:33]line Безнал.: 400.49 [18:22:33]line Место: АЗС № 25 "Партнер Нефть" [18:22:33]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [18:22:33]line СНО: Общий режим [18:22:33]line Чек 174 03.03.2024 18:22 [18:22:33]line Смена: 323 ФФД: 1.0 [18:22:33]line ЗНМ: 0300000019 [18:22:33]line РНМ: 0000000000090573 [18:22:33]line Версия ККМ: 001 [18:22:33]line Платежная система: О! деньги [18:22:33]line ФМ: 0000000000874798 [18:22:33]line ФД: 123317 [18:22:33]line ФПД: 103592208742849 [18:22:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T182236&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123317&fm=103592208742849&tin=02508201610067®Number=0000000000090573&sum=40049 [18:22:33]written 0, free lines is 4095 [18:22:33]OFD Sender: Processing packet 123317 [packets to send 112, broken 111] [18:22:33]ProducePacketName [18:22:33]name=ofd_packets/00123317 [18:22:33]OFD Sender: To server: pG, [18:22:33]CommunicateWithHost lk.salyk.kg:30040 [18:22:33]ConnectInit lk.salyk.kg [18:22:34]Connected sock=11 [18:22: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 37 39 38 0F 01 00 00 EE 19 07 01 96 CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 19 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 71 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 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 9D 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 EC BF E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 B5 E1 01 00 35 04 06 00 5E 37 70 CD B9 C1 E7 F4 98 4C F4 52 A3 B5 [18:22:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 CE 88 47 00 C1 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 37 39 38 10 04 04 00 B5 E1 01 00 F4 03 04 00 17 6C E4 65 B6 04 01 00 00 77 A5 99 0C DD AE 00 6E [18:22:34]CommunicateWithHost err = 0 [18:22:34]CheckOFDResponse [18:22:34]1017 (14) - 77093643461234 [18:22:34]1041 (16) - 0000000000874798 [18:22:34]1040 (4) - 123317 [18:22:34]1012 (4) - 03.03.2024 12:24 [18:22:34]1206 (1) - 0 [18:22:34]OFD Sender: Remove packet 123317 [18:22:34]ProducePacketName [18:22:34]name=ofd_packets/00123317 [18:22:34]NVStorageDeleteData [18:22:34]Write to MH i2c: 01 00 00 0C 3F 4B [18:22:34]Write i2c OK [18:22:34]MH_I2C_Read... [18:22:34]Read from MH i2c: 01 [18:22:34]MH_I2C_Read... [18:22:34]Read from MH i2c: 01 07 00 [18:22:34]MH_I2C_Read... [18:22:34]Read from MH i2c: 01 07 00 0C 3F 00 00 00 00 00 F9 0C 57 [18:22:34]RasterBufferAndPrint [18:22:34]line [18:22:34]line [18:22:34]line [18:22:34]line [18:22:34]line [18:22:34]written 0, free lines is 3327 [18:22:34]MH_Cut [18:22:34]Write to MH i2c: D1 01 00 13 3F 01 24 [18:22:34]Write i2c OK [18:22:34]MH_I2C_Read... [18:22:34]Read from MH i2c: D1 [18:22:34]MH_I2C_Read... [18:22:34]Read from MH i2c: D1 01 00 [18:22:34]MH_I2C_Read... [18:22:34]Read from MH i2c: D1 01 00 13 3F 00 23 [18:22:34]Write to MH i2c: 01 00 00 14 3F 53 [18:22:34]Write i2c OK [18:22:34]MH_I2C_Read... [18:22:34]OFD Sender: No OFD packet to send [18:22:35]*** Cut start [18:22:35]*** Purtial cut [18:22:35]*** Stage 1: CUTSNS_PIN = 1 [18:22:37]Read from MH i2c: 01 [18:22:37]MH_I2C_Read... [18:22:37]*** Stop cut motor [18:22:37]*** Cut end [18:22:37]Read from MH i2c: 01 07 00 [18:22:37]MH_I2C_Read... [18:22:37]Read from MH i2c: 01 07 00 14 3F 00 00 00 00 00 FF 0F 68 [18:22:37]process_action close_receipt done [18:22:37]requested_data is exist [18:22:37]produce_requested_data [18:22:37]requested_item fm.sn is exist - process it [18:22:37]wFMCommunicate request_size=4 [18:22:37]MH_SAM_APDU [18:22:37]CAPDU: 80 11 00 00 [18:22:37]Write to MH i2c: E2 08 00 15 3F 80 11 00 00 00 00 00 00 CE [18:22:37]Write i2c OK [18:22:37]MH_I2C_Read... [18:22:37]Read from MH i2c: E2 [18:22:37]MH_I2C_Read... [18:22:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:22:37]Read from MH i2c: E2 17 00 [18:22:37]MH_I2C_Read... [18:22:37]Read from MH i2c: E2 17 00 15 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 2C [18:22:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [18:22:37]wFMCommunicate OK [18:22:37]requested_item fd.num is exist - process it [18:22:37]SAM_PROTO_GetFieldsCounters [18:22:37]wFMCommunicate request_size=4 [18:22:37]MH_SAM_APDU [18:22:37]CAPDU: 80 13 00 00 [18:22:37]Write to MH i2c: E2 08 00 16 3F 80 13 00 00 00 00 00 00 D1 [18:22:37]Write i2c OK [18:22:37]MH_I2C_Read... [18:22:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:22:37]Read from MH i2c: E2 [18:22:37]MH_I2C_Read... [18:22:37]Read from MH i2c: E2 62 00 [18:22:37]MH_I2C_Read... [18:22:37]Read from MH i2c: E2 62 00 16 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 B5 E1 01 00 0E 04 04 00 43 01 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 E1 [18: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 B5 E1 01 00 0E 04 04 00 43 01 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 [18:22:37]wFMCommunicate OK [18:22:37]SAM_PROTO_GetFieldsCounters done [18:22:37]requested_item shift.num is exist - process it [18:22:37]requested_item shift.opened is exist - process it [18:22:37]req_shift_opened [18:22:37]FM_GetShiftState [18:22:37]SAM_PROTO_GetShiftState [18:22:37]wFMCommunicate request_size=4 [18:22:37]MH_SAM_APDU [18:22:37]CAPDU: 80 13 01 00 [18:22:37]Write to MH i2c: E2 08 00 17 3F 80 13 01 00 00 00 00 00 D3 [18:22:37]Write i2c OK [18:22:37]MH_I2C_Read... [18:22:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:22:37]Read from MH i2c: E2 [18:22:37]MH_I2C_Read... [18:22:37]Read from MH i2c: E2 0E 00 [18:22:37]MH_I2C_Read... [18:22:37]Read from MH i2c: E2 0E 00 17 3F 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 95 [18:22:37]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [18:22:37]wFMCommunicate OK [18:22:37]SAM_PROTO_GetShiftState done [18:22:37]FM_GetShiftState done [18:22:37]req_shift_opened done [18:22:37]requested_item shift.open_date is exist - process it [18:22:37]req_shift_open_date [18:22:37]req_shift_open_date done [18:22:37]produce_requested_data done [18:22:37]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123317,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [18:22:37]process_action_free close_receipt [18:22:37]json_value_free [18:22:37]json_value_free done [18:22:37]process_json_proto returns [18:22:37]Send response to host [18:22:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123317,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [18:22:37]free response buf [18:22:37]execute_script done [18:22:37]execute_script returns [18:22:37]free content buf [18:22:37]Sock 9.Close socket [18:22:37]Sock 9.Thread stoped [18:22:39]OFD Sender: No OFD packet to send [18:22:44]OFD Sender: No OFD packet to send [18:22:49]OFD Sender: No OFD packet to send [18:22:54]OFD Sender: No OFD packet to send [18:22:59]OFD Sender: No OFD packet to send [18:23:04]OFD Sender: No OFD packet to send [18:23:09]OFD Sender: No OFD packet to send [18:23:14]OFD Sender: No OFD packet to send [18:23:19]OFD Sender: No OFD packet to send [18:23:24]OFD Sender: No OFD packet to send [18:23:29]OFD Sender: No OFD packet to send [18:23:34]OFD Sender: No OFD packet to send [18:23:39]OFD Sender: No OFD packet to send [18:23:44]OFD Sender: No OFD packet to send [18:23:49]OFD Sender: No OFD packet to send [18:23:54]OFD Sender: No OFD packet to send [18:23:59]OFD Sender: No OFD packet to send [18:24:04]OFD Sender: No OFD packet to send [18:24:09]OFD Sender: No OFD packet to send [18:24:14]OFD Sender: No OFD packet to send [18:24:19]OFD Sender: No OFD packet to send [18:24:24]OFD Sender: No OFD packet to send [18:24:29]OFD Sender: No OFD packet to send [18:24:34]OFD Sender: No OFD packet to send [18:24:39]OFD Sender: No OFD packet to send [18:24:44]OFD Sender: No OFD packet to send [18:24:49]OFD Sender: No OFD packet to send [18:24:54]OFD Sender: No OFD packet to send [18:24:59]OFD Sender: No OFD packet to send [18:25:04]OFD Sender: No OFD packet to send [18:25:09]OFD Sender: No OFD packet to send [18:25:14]OFD Sender: No OFD packet to send [18:25:19]OFD Sender: No OFD packet to send [18:25:24]OFD Sender: No OFD packet to send [18:25:29]OFD Sender: No OFD packet to send [18:25:34]OFD Sender: No OFD packet to send [18:25:39]OFD Sender: No OFD packet to send [18:25:44]OFD Sender: No OFD packet to send [18:25:49]OFD Sender: No OFD packet to send [18:25:54]OFD Sender: No OFD packet to send [18:25:59]OFD Sender: No OFD packet to send [18:26:04]OFD Sender: No OFD packet to send [18:26:09]OFD Sender: No OFD packet to send [18:26:14]OFD Sender: No OFD packet to send [18:26:19]OFD Sender: No OFD packet to send [18:26:24]OFD Sender: No OFD packet to send [18:26:29]OFD Sender: No OFD packet to send [18:26:34]OFD Sender: No OFD packet to send [18:26:39]OFD Sender: No OFD packet to send [18:26:44]OFD Sender: No OFD packet to send [18:26:49]OFD Sender: No OFD packet to send [18:26:54]OFD Sender: No OFD packet to send [18:26:59]OFD Sender: No OFD packet to send [18:27:04]OFD Sender: No OFD packet to send [18:27:09]OFD Sender: No OFD packet to send [18:27:15]OFD Sender: No OFD packet to send [18:27:20]OFD Sender: No OFD packet to send [18:27:25]OFD Sender: No OFD packet to send [18:27:30]OFD Sender: No OFD packet to send [18:27:35]OFD Sender: No OFD packet to send [18:27:40]OFD Sender: No OFD packet to send [18:27:45]OFD Sender: No OFD packet to send [18:27:50]OFD Sender: No OFD packet to send [18:27:55]OFD Sender: No OFD packet to send [18:28:00]OFD Sender: No OFD packet to send [18:28:05]OFD Sender: No OFD packet to send [18:28:10]OFD Sender: No OFD packet to send [18:28:15]OFD Sender: No OFD packet to send [18:28:20]OFD Sender: No OFD packet to send [18:28:25]OFD Sender: No OFD packet to send [18:28:30]OFD Sender: No OFD packet to send [18:28:35]OFD Sender: No OFD packet to send [18:28:40]OFD Sender: No OFD packet to send [18:28:45]OFD Sender: No OFD packet to send [18:28:50]OFD Sender: No OFD packet to send [18:28:55]OFD Sender: No OFD packet to send [18:29:00]OFD Sender: No OFD packet to send [18:29:05]OFD Sender: No OFD packet to send [18:29:10]OFD Sender: No OFD packet to send [18:29:15]OFD Sender: No OFD packet to send [18:29:20]OFD Sender: No OFD packet to send [18:29:25]OFD Sender: No OFD packet to send [18:29:30]OFD Sender: No OFD packet to send [18:29:35]OFD Sender: No OFD packet to send [18:29:40]OFD Sender: No OFD packet to send [18:29:45]OFD Sender: No OFD packet to send [18:29:50]OFD Sender: No OFD packet to send [18:29:55]OFD Sender: No OFD packet to send [18:30:00]OFD Sender: No OFD packet to send [18:30:05]OFD Sender: No OFD packet to send [18:30:10]OFD Sender: No OFD packet to send [18:30:15]OFD Sender: No OFD packet to send [18:30:20]OFD Sender: No OFD packet to send [18:30:25]OFD Sender: No OFD packet to send [18:30:30]OFD Sender: No OFD packet to send [18:30:35]OFD Sender: No OFD packet to send [18:30:40]OFD Sender: No OFD packet to send [18:30:45]OFD Sender: No OFD packet to send [18:30:50]OFD Sender: No OFD packet to send [18:30:55]OFD Sender: No OFD packet to send [18:31:00]OFD Sender: No OFD packet to send [18:31:05]OFD Sender: No OFD packet to send [18:31:10]OFD Sender: No OFD packet to send [18:31:15]OFD Sender: No OFD packet to send [18:31:20]OFD Sender: No OFD packet to send [18:31:25]OFD Sender: No OFD packet to send [18:31:30]OFD Sender: No OFD packet to send [18:31:35]OFD Sender: No OFD packet to send [18:31:40]OFD Sender: No OFD packet to send [18:31:45]OFD Sender: No OFD packet to send [18:31:50]OFD Sender: No OFD packet to send [18:31:55]OFD Sender: No OFD packet to send [18:32:00]OFD Sender: No OFD packet to send [18:32:05]OFD Sender: No OFD packet to send [18:32:10]OFD Sender: No OFD packet to send [18:32:15]OFD Sender: No OFD packet to send [18:32:20]OFD Sender: No OFD packet to send [18:32:25]OFD Sender: No OFD packet to send [18:32:30]OFD Sender: No OFD packet to send [18:32:35]OFD Sender: No OFD packet to send [18:32:40]OFD Sender: No OFD packet to send [18:32:45]OFD Sender: No OFD packet to send [18:32:50]OFD Sender: No OFD packet to send [18:32:55]OFD Sender: No OFD packet to send [18:32:55]accept exits with 7 [18:32:55]New connection [18:32:55]New thread 3067252068 created [18:32:55]Thread 3067395428 joined [18:32:55]Waiting for new connection... [18:32:55] Sock 7.Parse request [18:32:55]Sock 7.Check first char [18:32:55]Sock 7.First char is OK [18:32:55]request: POST /json_proto HTTP/1.0 [18:32:55]Method: POST [18:32:55]URL: /json_proto [18:32:55]Method is POST - this is cgi request [18:32:55]url: /json_proto [18:32:55]query_string will be loaded in cgi processing [18:32:55]execute_cgi json_proto POST (null) [18:32:55]execute_cgi path=json_proto method=POST [18:32:55]POST find Content-Length [18:32:55]Host: 172.17.48.197:8080 [18:32:55]Content-Length: 678 [18:32:55]Content-Type: application/json [18:32:55] [18:32:55]POST finish read [18:32:55]Found Content-Length = 678 [18:32:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106264", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 4.850, "sum" : 300.22, "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:32:55]execute_script... [18:32:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106264", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 4.850, "sum" : 300.22, "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:32:55]POST & json_proto [18:32:55]process_json_proto [18:32:55]json parsed OK: [18:32:55]protocol is kg_v1.0 [18:32:55]action value=close_receipt [18:32:55]process_action close_receipt [18:32:55]cmd_close_receipt [18:32:55]MH_GetDate [18:32:55]Write to MH i2c: F0 00 00 18 3F 46 [18:32:55]Write i2c OK [18:32:55]MH_I2C_Read... [18:32:55]Read from MH i2c: F0 [18:32:55]MH_I2C_Read... [18:32:55]Read from MH i2c: F0 09 00 [18:32:55]MH_I2C_Read... [18:32:55]Read from MH i2c: F0 09 00 18 3F 00 5C C2 E4 65 6C AF E3 65 19 [18:32:55]GetLastDocTimeStamp 1709490156 [18:32:55]current date 1709490780 [18:32:55]FM_GetShiftState [18:32:55]SAM_PROTO_GetShiftState [18:32:55]wFMCommunicate request_size=4 [18:32:55]MH_SAM_APDU [18:32:55]CAPDU: 80 13 01 00 [18:32:55]Write to MH i2c: E2 08 00 19 3F 80 13 01 00 00 00 00 00 D5 [18:32:55]Write i2c OK [18:32:55]MH_I2C_Read... [18:32:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:32:55]Read from MH i2c: E2 [18:32:55]MH_I2C_Read... [18:32:55]Read from MH i2c: E2 0E 00 [18:32:55]MH_I2C_Read... [18:32:55]Read from MH i2c: E2 0E 00 19 3F 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 97 [18:32:55]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [18:32:55]wFMCommunicate OK [18:32:55]SAM_PROTO_GetShiftState done [18:32:55]FM_GetShiftState done [18:32:55]opened in 1709425579 [18:32:55]opened+sec_in_day 1709511979 [18:32:55]quantity*price = 30021 [18:32:55]sum+1 = 30023 [18:32:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.88 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 175 03.03.2024 18:33 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123318 ФПД: 223342318242726 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T183300&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123318&fm=223342318242726&tin=02508201610067®Number=0000000000090573&sum=30000 [18:32:56]StoreToDocumentArchive [18:32:56]shift 323 fd 123318 [18:32:56]save to /storage/0323/doc_00123318 [18:32:56]save last doc name /storage/0323/doc_00123318 to /storage/kkm_last_doc_name [18:32:56]save OK [18:32:56]Clear old archive folders... [18:32:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:32:56]tlvbuf is 00E65D50 [18:32:56]SAM_PROTO_ClearQueue [18:32:56]wFMCommunicate request_size=4 [18:32:56]MH_SAM_APDU [18:32:56]CAPDU: 80 09 00 00 [18:32:56]Write to MH i2c: E2 08 00 26 3F 80 09 00 00 00 00 00 00 D7 [18:32:56]Write i2c OK [18:32:56]MH_I2C_Read... [18:32:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:32:56]Read from MH i2c: E2 [18:32:56]MH_I2C_Read... [18:32:56]Read from MH i2c: E2 03 00 [18:32:56]MH_I2C_Read... [18:32:56]Read from MH i2c: E2 03 00 26 3F 00 90 00 D9 [18:32:56]RAPDU: 90 00 [18:32:56]wFMCommunicate OK [18:32:56]SAM_PROTO_ClearQueue done [18:32:56]KKMCreateOFDPacket [18:32:56]OFDProtocolAddRootSTLVToBuf [18:32:56]FM_MakeSignedData [18:32:56]FM_MakeSignedData [18:32:56]SAM_PROTO_SignData [18:32:56]wFMCommunicate request_size=4 [18:32:56]MH_SAM_APDU [18:32:56]CAPDU: 80 0D 01 02 [18:32:56]Write to MH i2c: E2 08 00 27 3F 80 0D 01 02 00 00 00 00 DF [18:32:56]Write i2c OK [18:32:56]MH_I2C_Read... [18:32:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:32:56]Read from MH i2c: E2 [18:32:56]MH_I2C_Read... [18:32:56]Read from MH i2c: E2 03 00 [18:32:56]MH_I2C_Read... [18:32:56]Read from MH i2c: E2 03 00 27 3F 00 90 00 DA [18:32:56]RAPDU: 90 00 [18:32:56]wFMCommunicate OK [18:32:56]wFMCommunicate request_size=255 [18:32:56]MH_SAM_APDU [18:32: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 35 FF 03 08 00 03 F2 12 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 46 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 74 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 AF 00 00 00 F4 03 04 00 5C C2 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 B6 E1 01 00 35 04 06 00 CB [18:32:56]Write to MH i2c: E2 02 01 28 3F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 12 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 46 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 74 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 AF 00 00 00 F4 03 04 00 5C C2 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 B6 E1 01 00 35 04 06 00 CB 00 00 8A [18:32:56]Write i2c OK [18:32:56]MH_I2C_Read... [18:32:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:32:57]Read from MH i2c: E2 [18:32:57]MH_I2C_Read... [18:32:57]Read from MH i2c: E2 03 00 [18:32:57]MH_I2C_Read... [18:32:57]Read from MH i2c: E2 03 00 28 3F 00 90 00 DB [18:32:57]RAPDU: 90 00 [18:32:57]wFMCommunicate OK [18:32:57]wFMCommunicate request_size=10 [18:32:57]MH_SAM_APDU [18:32:57]CAPDU: 80 0D 02 02 05 20 EF 8A CB A6 [18:32:57]Write to MH i2c: E2 0D 00 29 3F 80 0D 02 02 05 00 20 EF 8A CB A6 00 00 F6 [18:32:57]Write i2c OK [18:32:57]MH_I2C_Read... [18:32:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:32:57]Read from MH i2c: E2 [18:32:57]MH_I2C_Read... [18:32:57]Read from MH i2c: E2 03 00 [18:32:57]MH_I2C_Read... [18:32:57]Read from MH i2c: E2 03 00 29 3F 00 90 00 DC [18:32:57]RAPDU: 90 00 [18:32:57]wFMCommunicate OK [18:32:57]wFMCommunicate request_size=4 [18:32:57]MH_SAM_APDU [18:32:57]CAPDU: 80 0D 03 02 [18:32:57]Write to MH i2c: E2 08 00 2A 3F 80 0D 03 02 00 00 00 00 E4 [18:32:57]Write i2c OK [18:32:57]MH_I2C_Read... [18:32:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:32:57]Read from MH i2c: E2 [18:32:57]MH_I2C_Read... [18:32:57]Read from MH i2c: E2 0B 00 [18:32:57]MH_I2C_Read... [18:32:57]Read from MH i2c: E2 0B 00 2A 3F 00 B7 91 73 28 37 F4 E5 35 90 00 0D [18:32:57]RAPDU: B7 91 73 28 37 F4 E5 35 90 00 [18:32:57]wFMCommunicate OK [18:32:57]SAM_PROTO_SignData done [18:32:57]FM_MakeSignedData done [18:32:57]CreateOFDProtocolMessage [18:32:57]wFMCommunicate request_size=4 [18:32:57]MH_SAM_APDU [18:32:57]CAPDU: 80 11 00 00 [18:32:57]Write to MH i2c: E2 08 00 2B 3F 80 11 00 00 00 00 00 00 E4 [18:32:57]Write i2c OK [18:32:57]MH_I2C_Read... [18:32:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:32:57]Read from MH i2c: E2 [18:32:57]MH_I2C_Read... [18:32:57]Read from MH i2c: E2 17 00 [18:32:57]MH_I2C_Read... [18:32:57]Read from MH i2c: E2 17 00 2B 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 42 [18:32:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [18:32:57]wFMCommunicate OK [18:32:57]CreateOFDProtocolMessage done [18:32:57]OFDSenderStorePacket 123318 [18:32:57]StoreOFDPacket docnum=123318 [18:32:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 9A F4 07 01 7E 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 35 FF 03 08 00 03 F2 12 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 46 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 74 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 AF 00 00 00 F4 03 04 00 5C C2 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 B6 E1 01 00 35 04 06 00 CB 20 EF 8A CB A6 B7 91 73 28 37 F4 E5 35 [18:32:57]CheckFolder [18:32:57]dirname=/storage/ofd_packets [18:32:57]CheckFolder done [18:32:57]ProducePacketName [18:32:57]name=ofd_packets/00123318 [18:32:57]NVStorageSaveData ofd_packets/00123318 [18:32:57]File name is /storage/ofd_packets/00123318 [18:32:57]Write 301 bytes [18:32:57]NVStorageSaveData done [18:32:57]OFDSenderStorePacket done [18:32:57]KKMCreateOFDPacket done [18:32:57]NVStorageSaveData kkm_last_timestamp [18:32:57]File name is /storage/kkm_last_timestamp [18:32:57]Write 4 bytes [18:32:57]NVStorageSaveData done [18:32:57]ExternCall_PrintAddStr [18:32:57]wPrintStart [18:32:57]Write to MH i2c: 01 00 00 2C 3F 6B [18:32:57]Write i2c OK [18:32:57]MH_I2C_Read... [18:32:57]Read from MH i2c: 01 [18:32:57]MH_I2C_Read... [18:32:57]Read from MH i2c: 01 07 00 [18:32:57]MH_I2C_Read... [18:32:57]Read from MH i2c: 01 07 00 2C 3F 00 00 00 00 00 FF 0F 80 [18:32:57]RasterBufferAndPrint [18:32:57]line Счет N : (1)1106264 [18:32:57]line ИНН: 02508201610067 [18:32:57]line Контрольно-Кассовый Чек [18:32:57]line ПРОДАЖА [18:32:57]line ТРК (МРК, ГНК) : 62 [18:32:57]line Товар: 2710124130 [18:32:57]line Аи-92-К-5 [18:32:57]line 4.850 * 61.90 [18:32:57]line = 300.22 [18:32:57]line НДС 12% НСП 1% [18:32:57]line > о реализуемом товаре [18:32:57]line ОКРУГЛЕНИЕ: -0.22 [18:32:57]line ИТОГО: 300.00 [18:32:57]line Внесено: 300.00 [18:32:57]line СДАЧА: 0.00 [18:32:57]line НСП 1% : 2.66 [18:32:57]line НДС 12% : 31.88 [18:32:57]line Наличными: 300.00 [18:32:57]line Безнал.: 0.00 [18:32:57]line Место: АЗС № 25 "Партнер Нефть" [18:32:57]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [18:32:57]line СНО: Общий режим [18:32:57]line Чек 175 03.03.2024 18:33 [18:32:57]line Смена: 323 ФФД: 1.0 [18:32:57]line ЗНМ: 0300000019 [18:32:57]line РНМ: 0000000000090573 [18:32:57]line Версия ККМ: 001 [18:32:57]line ФМ: 0000000000874798 [18:32:57]line ФД: 123318 [18:32:57]line ФПД: 223342318242726 [18:32:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T183300&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123318&fm=223342318242726&tin=02508201610067®Number=0000000000090573&sum=30000 [18:32:57]OFD Sender: Processing packet 123318 [packets to send 112, broken 111] [18:32:57]ProducePacketName [18:32:57]name=ofd_packets/00123318 [18:32:57]OFD Sender: To server: pG, [18:32:57]CommunicateWithHost lk.salyk.kg:30040 [18:32:57]ConnectInit lk.salyk.kg [18:32:57]written 0, free lines is 4095 [18:32:57]Connected sock=11 [18:32:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 9A F4 07 01 7E 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 35 FF 03 08 00 03 F2 12 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 46 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 74 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 AF 00 00 00 F4 03 04 00 5C C2 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 B6 E1 01 00 35 04 06 00 CB 20 EF 8A CB A6 B7 91 73 28 37 F4 E5 35 [18:32:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 B3 36 47 00 AA 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 37 39 38 10 04 04 00 B6 E1 01 00 F4 03 04 00 87 6E E4 65 B6 04 01 00 00 E7 CD 73 4E 16 5B 9B 62 [18:32:57]CommunicateWithHost err = 0 [18:32:57]CheckOFDResponse [18:32:57]1017 (14) - 77093643461234 [18:32:57]1041 (16) - 0000000000874798 [18:32:57]1040 (4) - 123318 [18:32:57]1012 (4) - 03.03.2024 12:35 [18:32:57]1206 (1) - 0 [18:32:57]OFD Sender: Remove packet 123318 [18:32:57]ProducePacketName [18:32:57]name=ofd_packets/00123318 [18:32:57]NVStorageDeleteData [18:32:58]Write to MH i2c: 01 00 00 57 3F 96 [18:32:58]Write i2c OK [18:32:58]MH_I2C_Read... [18:32:58]Read from MH i2c: 01 [18:32:58]MH_I2C_Read... [18:32:58]Read from MH i2c: 01 07 00 [18:32:58]MH_I2C_Read... [18:32:58]Read from MH i2c: 01 07 00 57 3F 00 00 00 00 00 F8 0C A1 [18:32:58]RasterBufferAndPrint [18:32:58]line [18:32:58]line [18:32:58]line [18:32:58]line [18:32:58]line [18:32:58]written 0, free lines is 3326 [18:32:58]MH_Cut [18:32:58]Write to MH i2c: D1 01 00 5E 3F 01 6F [18:32:58]Write i2c OK [18:32:58]MH_I2C_Read... [18:32:58]Read from MH i2c: D1 [18:32:58]MH_I2C_Read... [18:32:58]Read from MH i2c: D1 01 00 [18:32:58]MH_I2C_Read... [18:32:58]Read from MH i2c: D1 01 00 5E 3F 00 6E [18:32:58]Write to MH i2c: 01 00 00 5F 3F 9E [18:32:58]Write i2c OK [18:32:58]MH_I2C_Read... [18:32:58]OFD Sender: No OFD packet to send [18:32:58]*** Cut start [18:32:58]*** Purtial cut [18:32:58]*** Stage 1: CUTSNS_PIN = 1 [18:33:00]Read from MH i2c: 01 [18:33:00]MH_I2C_Read... [18:33:00]*** Stop cut motor [18:33:00]*** Cut end [18:33:00]Read from MH i2c: 01 07 00 [18:33:00]MH_I2C_Read... [18:33:00]Read from MH i2c: 01 07 00 5F 3F 00 00 00 00 00 FF 0F B3 [18:33:00]process_action close_receipt done [18:33:00]requested_data is exist [18:33:00]produce_requested_data [18:33:00]requested_item fm.sn is exist - process it [18:33:00]wFMCommunicate request_size=4 [18:33:00]MH_SAM_APDU [18:33:00]CAPDU: 80 11 00 00 [18:33:00]Write to MH i2c: E2 08 00 60 3F 80 11 00 00 00 00 00 00 19 [18:33:00]Write i2c OK [18:33:00]MH_I2C_Read... [18:33:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:33:00]Read from MH i2c: E2 [18:33:00]MH_I2C_Read... [18:33:00]Read from MH i2c: E2 17 00 [18:33:00]MH_I2C_Read... [18:33:00]Read from MH i2c: E2 17 00 60 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 77 [18:33:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [18:33:00]wFMCommunicate OK [18:33:00]requested_item fd.num is exist - process it [18:33:00]SAM_PROTO_GetFieldsCounters [18:33:00]wFMCommunicate request_size=4 [18:33:00]MH_SAM_APDU [18:33:00]CAPDU: 80 13 00 00 [18:33:00]Write to MH i2c: E2 08 00 61 3F 80 13 00 00 00 00 00 00 1C [18:33:00]Write i2c OK [18:33:00]MH_I2C_Read... [18:33:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:33:00]Read from MH i2c: E2 [18:33:00]MH_I2C_Read... [18:33:00]Read from MH i2c: E2 62 00 [18:33:00]MH_I2C_Read... [18:33:00]Read from MH i2c: E2 62 00 61 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 B6 E1 01 00 0E 04 04 00 43 01 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 30 [18:33: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 B6 E1 01 00 0E 04 04 00 43 01 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 [18:33:00]wFMCommunicate OK [18:33:00]SAM_PROTO_GetFieldsCounters done [18:33:00]requested_item shift.num is exist - process it [18:33:00]requested_item shift.opened is exist - process it [18:33:00]req_shift_opened [18:33:00]FM_GetShiftState [18:33:00]SAM_PROTO_GetShiftState [18:33:00]wFMCommunicate request_size=4 [18:33:00]MH_SAM_APDU [18:33:00]CAPDU: 80 13 01 00 [18:33:00]Write to MH i2c: E2 08 00 62 3F 80 13 01 00 00 00 00 00 1E [18:33:00]Write i2c OK [18:33:00]MH_I2C_Read... [18:33:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:33:01]Read from MH i2c: E2 [18:33:01]MH_I2C_Read... [18:33:01]Read from MH i2c: E2 0E 00 [18:33:01]MH_I2C_Read... [18:33:01]Read from MH i2c: E2 0E 00 62 3F 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 E0 [18:33:01]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [18:33:01]wFMCommunicate OK [18:33:01]SAM_PROTO_GetShiftState done [18:33:01]FM_GetShiftState done [18:33:01]req_shift_opened done [18:33:01]requested_item shift.open_date is exist - process it [18:33:01]req_shift_open_date [18:33:01]req_shift_open_date done [18:33:01]produce_requested_data done [18:33:01]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123318,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [18:33:01]process_action_free close_receipt [18:33:01]json_value_free [18:33:01]json_value_free done [18:33:01]process_json_proto returns [18:33:01]Send response to host [18:33:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123318,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [18:33:01]free response buf [18:33:01]execute_script done [18:33:01]execute_script returns [18:33:01]free content buf [18:33:01]Sock 7.Close socket [18:33:01]Sock 7.Thread stoped [18:33:03]OFD Sender: No OFD packet to send [18:33:08]OFD Sender: No OFD packet to send [18:33:13]OFD Sender: No OFD packet to send [18:33:18]OFD Sender: No OFD packet to send [18:33:23]OFD Sender: No OFD packet to send [18:33:28]OFD Sender: No OFD packet to send [18:33:33]OFD Sender: No OFD packet to send [18:33:38]OFD Sender: No OFD packet to send [18:33:43]OFD Sender: No OFD packet to send [18:33:48]OFD Sender: No OFD packet to send [18:33:51]accept exits with 9 [18:33:51]New connection [18:33:51]New thread 3067395428 created [18:33:51]Thread 3067252068 joined [18:33:51]Waiting for new connection... [18:33:51] Sock 9.Parse request [18:33:51]Sock 9.Check first char [18:33:51]Sock 9.First char is OK [18:33:51]request: POST /json_proto HTTP/1.0 [18:33:51]Method: POST [18:33:51]URL: /json_proto [18:33:51]Method is POST - this is cgi request [18:33:51]url: /json_proto [18:33:51]query_string will be loaded in cgi processing [18:33:51]execute_cgi json_proto POST (null) [18:33:51]execute_cgi path=json_proto method=POST [18:33:51]POST find Content-Length [18:33:51]Host: 172.17.48.197:8080 [18:33:51]Content-Length: 806 [18:33:51]Content-Type: application/json [18:33:51] [18:33:51]POST finish read [18:33:51]Found Content-Length = 806 [18:33:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106266", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 7.200, "sum" : 500.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:33:51]execute_script... [18:33: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)1106266", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 7.200, "sum" : 500.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:33:51]POST & json_proto [18:33:51]process_json_proto [18:33:51]json parsed OK: [18:33:51]protocol is kg_v1.0 [18:33:51]action value=close_receipt [18:33:51]process_action close_receipt [18:33:51]cmd_close_receipt [18:33:51]MH_GetDate [18:33:51]Write to MH i2c: F0 00 00 63 3F 91 [18:33:51]Write i2c OK [18:33:51]MH_I2C_Read... [18:33:51]Read from MH i2c: F0 [18:33:51]MH_I2C_Read... [18:33:51]Read from MH i2c: F0 09 00 [18:33:51]MH_I2C_Read... [18:33:51]Read from MH i2c: F0 09 00 63 3F 00 93 C2 E4 65 6C AF E3 65 9B [18:33:51]GetLastDocTimeStamp 1709490780 [18:33:51]current date 1709490835 [18:33:51]FM_GetShiftState [18:33:51]SAM_PROTO_GetShiftState [18:33:51]wFMCommunicate request_size=4 [18:33:51]MH_SAM_APDU [18:33:51]CAPDU: 80 13 01 00 [18:33:51]Write to MH i2c: E2 08 00 64 3F 80 13 01 00 00 00 00 00 20 [18:33:51]Write i2c OK [18:33:51]MH_I2C_Read... [18:33:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:33:51]Read from MH i2c: E2 [18:33:51]MH_I2C_Read... [18:33:51]Read from MH i2c: E2 0E 00 [18:33:51]MH_I2C_Read... [18:33:51]Read from MH i2c: E2 0E 00 64 3F 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 E2 [18:33:51]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [18:33:51]wFMCommunicate OK [18:33:51]SAM_PROTO_GetShiftState done [18:33:51]FM_GetShiftState done [18:33:51]opened in 1709425579 [18:33:51]opened+sec_in_day 1709511979 [18:33:51]quantity*price = 50040 [18:33:51]sum+1 = 50041 [18:33:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.40 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.40 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 176 03.03.2024 18:33 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874798 ФД: 123319 ФПД: 153282642867648 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T183355&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123319&fm=153282642867648&tin=02508201610067®Number=0000000000090573&sum=50040 [18:33:52]StoreToDocumentArchive [18:33:52]shift 323 fd 123319 [18:33:52]save to /storage/0323/doc_00123319 [18:33:52]save last doc name /storage/0323/doc_00123319 to /storage/kkm_last_doc_name [18:33:52]save OK [18:33:52]Clear old archive folders... [18:33:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:33:52]tlvbuf is 00E45430 [18:33:52]SAM_PROTO_ClearQueue [18:33:52]wFMCommunicate request_size=4 [18:33:52]MH_SAM_APDU [18:33:52]CAPDU: 80 09 00 00 [18:33:52]Write to MH i2c: E2 08 00 71 3F 80 09 00 00 00 00 00 00 22 [18:33:52]Write i2c OK [18:33:52]MH_I2C_Read... [18:33:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:33:52]Read from MH i2c: E2 [18:33:52]MH_I2C_Read... [18:33:52]Read from MH i2c: E2 03 00 [18:33:52]MH_I2C_Read... [18:33:52]Read from MH i2c: E2 03 00 71 3F 00 90 00 24 [18:33:52]RAPDU: 90 00 [18:33:52]wFMCommunicate OK [18:33:52]SAM_PROTO_ClearQueue done [18:33:52]KKMCreateOFDPacket [18:33:52]OFDProtocolAddRootSTLVToBuf [18:33:52]FM_MakeSignedData [18:33:52]FM_MakeSignedData [18:33:52]SAM_PROTO_SignData [18:33:52]wFMCommunicate request_size=4 [18:33:52]MH_SAM_APDU [18:33:52]CAPDU: 80 0D 01 02 [18:33:52]Write to MH i2c: E2 08 00 72 3F 80 0D 01 02 00 00 00 00 2A [18:33:52]Write i2c OK [18:33:52]MH_I2C_Read... [18:33:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:33:52]Read from MH i2c: E2 [18:33:52]MH_I2C_Read... [18:33:52]Read from MH i2c: E2 03 00 [18:33:52]MH_I2C_Read... [18:33:52]Read from MH i2c: E2 03 00 72 3F 00 90 00 25 [18:33:52]RAPDU: 90 00 [18:33:52]wFMCommunicate OK [18:33:52]wFMCommunicate request_size=255 [18:33:52]MH_SAM_APDU [18:33: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 35 FF 03 08 00 03 20 1C 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 78 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 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 78 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 93 C2 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 B7 E1 01 00 35 04 06 00 8B [18:33:52]Write to MH i2c: E2 02 01 73 3F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 1C 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 78 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 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 78 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 93 C2 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 B7 E1 01 00 35 04 06 00 8B 00 00 B8 [18:33:52]Write i2c OK [18:33:52]MH_I2C_Read... [18:33:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:33:52]Read from MH i2c: E2 [18:33:52]MH_I2C_Read... [18:33:52]Read from MH i2c: E2 03 00 [18:33:52]MH_I2C_Read... [18:33:52]Read from MH i2c: E2 03 00 73 3F 00 90 00 26 [18:33:52]RAPDU: 90 00 [18:33:52]wFMCommunicate OK [18:33:52]wFMCommunicate request_size=10 [18:33:52]MH_SAM_APDU [18:33:52]CAPDU: 80 0D 02 02 05 68 E5 7A 75 C0 [18:33:52]Write to MH i2c: E2 0D 00 74 3F 80 0D 02 02 05 00 68 E5 7A 75 C0 00 00 33 [18:33:52]Write i2c OK [18:33:52]MH_I2C_Read... [18:33:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:33:52]Read from MH i2c: E2 [18:33:52]MH_I2C_Read... [18:33:52]Read from MH i2c: E2 03 00 [18:33:52]MH_I2C_Read... [18:33:52]Read from MH i2c: E2 03 00 74 3F 00 90 00 27 [18:33:52]RAPDU: 90 00 [18:33:52]wFMCommunicate OK [18:33:52]wFMCommunicate request_size=4 [18:33:52]MH_SAM_APDU [18:33:52]CAPDU: 80 0D 03 02 [18:33:52]Write to MH i2c: E2 08 00 75 3F 80 0D 03 02 00 00 00 00 2F [18:33:52]Write i2c OK [18:33:52]MH_I2C_Read... [18:33:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:33:52]Read from MH i2c: E2 [18:33:52]MH_I2C_Read... [18:33:52]Read from MH i2c: E2 0B 00 [18:33:52]MH_I2C_Read... [18:33:52]Read from MH i2c: E2 0B 00 75 3F 00 6D F1 74 D7 75 2E AD 73 90 00 9C [18:33:52]RAPDU: 6D F1 74 D7 75 2E AD 73 90 00 [18:33:52]wFMCommunicate OK [18:33:52]SAM_PROTO_SignData done [18:33:52]FM_MakeSignedData done [18:33:52]CreateOFDProtocolMessage [18:33:52]wFMCommunicate request_size=4 [18:33:52]MH_SAM_APDU [18:33:52]CAPDU: 80 11 00 00 [18:33:52]Write to MH i2c: E2 08 00 76 3F 80 11 00 00 00 00 00 00 2F [18:33:52]Write i2c OK [18:33:52]MH_I2C_Read... [18:33:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:33:52]Read from MH i2c: E2 [18:33:52]MH_I2C_Read... [18:33:52]Read from MH i2c: E2 17 00 [18:33:52]MH_I2C_Read... [18:33:52]Read from MH i2c: E2 17 00 76 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 8D [18:33:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [18:33:52]wFMCommunicate OK [18:33:52]CreateOFDProtocolMessage done [18:33:52]OFDSenderStorePacket 123319 [18:33:52]StoreOFDPacket docnum=123319 [18:33:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 3A 15 07 01 9C A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 1C 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 78 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 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 78 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 93 C2 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 B7 E1 01 00 35 04 06 00 8B 68 E5 7A 75 C0 6D F1 74 D7 75 2E AD 73 [18:33:52]CheckFolder [18:33:52]dirname=/storage/ofd_packets [18:33:52]CheckFolder done [18:33:52]ProducePacketName [18:33:52]name=ofd_packets/00123319 [18:33:52]NVStorageSaveData ofd_packets/00123319 [18:33:52]File name is /storage/ofd_packets/00123319 [18:33:52]Write 301 bytes [18:33:52]NVStorageSaveData done [18:33:52]OFDSenderStorePacket done [18:33:52]KKMCreateOFDPacket done [18:33:52]NVStorageSaveData kkm_last_timestamp [18:33:52]File name is /storage/kkm_last_timestamp [18:33:52]Write 4 bytes [18:33:52]NVStorageSaveData done [18:33:52]ExternCall_PrintAddStr [18:33:52]wPrintStart [18:33:52]Write to MH i2c: 01 00 00 77 3F B6 [18:33:52]Write i2c OK [18:33:52]MH_I2C_Read... [18:33:52]Read from MH i2c: 01 [18:33:52]MH_I2C_Read... [18:33:52]Read from MH i2c: 01 07 00 [18:33:52]MH_I2C_Read... [18:33:52]Read from MH i2c: 01 07 00 77 3F 00 00 00 00 00 FF 0F CB [18:33:52]RasterBufferAndPrint [18:33:52]line Счет N : (1)1106266 [18:33:52]line ИНН: 02508201610067 [18:33:52]line Контрольно-Кассовый Чек [18:33:52]line ПРОДАЖА [18:33:52]line ТРК (МРК, ГНК) : 53 [18:33:52]line Товар: 2710124500 [18:33:52]line Аи-95-К-5 [18:33:52]line 7.200 * 69.50 [18:33:52]line = 500.40 [18:33:52]line НДС 12% НСП 1% [18:33:52]line > о реализуемом товаре [18:33:52]line ИТОГО: 500.40 [18:33:52]line НСП 1% : 4.43 [18:33:52]line НДС 12% : 53.14 [18:33:52]line Наличными: 0.00 [18:33:52]line Безнал.: 500.40 [18:33:52]line Место: АЗС № 25 "Партнер Нефть" [18:33:52]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [18:33:52]line СНО: Общий режим [18:33:52]line Чек 176 03.03.2024 18:33 [18:33:52]line Смена: 323 ФФД: 1.0 [18:33:52]line ЗНМ: 0300000019 [18:33:52]line РНМ: 0000000000090573 [18:33:52]line Версия ККМ: 001 [18:33:52]line Платежная система: О! деньги [18:33:52]line ФМ: 0000000000874798 [18:33:52]line ФД: 123319 [18:33:52]line ФПД: 153282642867648 [18:33:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T183355&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123319&fm=153282642867648&tin=02508201610067®Number=0000000000090573&sum=50040 [18:33:53]OFD Sender: Processing packet 123319 [packets to send 112, broken 111] [18:33:53]ProducePacketName [18:33:53]name=ofd_packets/00123319 [18:33:53]OFD Sender: To server: pG, [18:33:53]CommunicateWithHost lk.salyk.kg:30040 [18:33:53]ConnectInit lk.salyk.kg [18:33:53]written 0, free lines is 4095 [18:33:53]Connected sock=10 [18:33: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 37 39 38 0F 01 00 00 3A 15 07 01 9C A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 1C 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 78 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 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 78 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 93 C2 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 B7 E1 01 00 35 04 06 00 8B 68 E5 7A 75 C0 6D F1 74 D7 75 2E AD 73 [18:33:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 FA FD 47 00 F0 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 37 39 38 10 04 04 00 B7 E1 01 00 F4 03 04 00 BE 6E E4 65 B6 04 01 00 00 83 D5 B3 13 2B 5D 28 32 [18:33:53]CommunicateWithHost err = 0 [18:33:53]CheckOFDResponse [18:33:53]1017 (14) - 77093643461234 [18:33:53]1041 (16) - 0000000000874798 [18:33:53]1040 (4) - 123319 [18:33:53]1012 (4) - 03.03.2024 12:36 [18:33:53]1206 (1) - 0 [18:33:53]OFD Sender: Remove packet 123319 [18:33:53]ProducePacketName [18:33:53]name=ofd_packets/00123319 [18:33:53]NVStorageDeleteData [18:33:53]Write to MH i2c: 01 00 00 A1 3F E0 [18:33:53]Write i2c OK [18:33:53]MH_I2C_Read... [18:33:53]Read from MH i2c: 01 [18:33:53]MH_I2C_Read... [18:33:53]Read from MH i2c: 01 07 00 [18:33:53]MH_I2C_Read... [18:33:53]Read from MH i2c: 01 07 00 A1 3F 00 00 00 00 00 F6 0C E9 [18:33:53]RasterBufferAndPrint [18:33:53]line [18:33:53]line [18:33:53]line [18:33:53]line [18:33:53]line [18:33:53]written 0, free lines is 3327 [18:33:53]MH_Cut [18:33:53]Write to MH i2c: D1 01 00 A8 3F 01 B9 [18:33:53]Write i2c OK [18:33:53]MH_I2C_Read... [18:33:53]Read from MH i2c: D1 [18:33:53]MH_I2C_Read... [18:33:53]Read from MH i2c: D1 01 00 [18:33:53]MH_I2C_Read... [18:33:53]Read from MH i2c: D1 01 00 A8 3F 00 B8 [18:33:53]Write to MH i2c: 01 00 00 A9 3F E8 [18:33:53]Write i2c OK [18:33:53]MH_I2C_Read... [18:33:53]OFD Sender: No OFD packet to send [18:33:54]*** Cut start [18:33:54]*** Purtial cut [18:33:54]*** Stage 1: CUTSNS_PIN = 1 [18:33:56]Read from MH i2c: 01 [18:33:56]MH_I2C_Read... [18:33:56]*** Stop cut motor [18:33:56]*** Cut end [18:33:56]Read from MH i2c: 01 07 00 [18:33:56]MH_I2C_Read... [18:33:56]Read from MH i2c: 01 07 00 A9 3F 00 00 00 00 00 FF 0F FD [18:33:56]process_action close_receipt done [18:33:56]requested_data is exist [18:33:56]produce_requested_data [18:33:56]requested_item fm.sn is exist - process it [18:33:56]wFMCommunicate request_size=4 [18:33:56]MH_SAM_APDU [18:33:56]CAPDU: 80 11 00 00 [18:33:56]Write to MH i2c: E2 08 00 AA 3F 80 11 00 00 00 00 00 00 63 [18:33:56]Write i2c OK [18:33:56]MH_I2C_Read... [18:33:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:33:56]Read from MH i2c: E2 [18:33:56]MH_I2C_Read... [18:33:56]Read from MH i2c: E2 17 00 [18:33:56]MH_I2C_Read... [18:33:56]Read from MH i2c: E2 17 00 AA 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 C1 [18:33:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [18:33:56]wFMCommunicate OK [18:33:56]requested_item fd.num is exist - process it [18:33:56]SAM_PROTO_GetFieldsCounters [18:33:56]wFMCommunicate request_size=4 [18:33:56]MH_SAM_APDU [18:33:56]CAPDU: 80 13 00 00 [18:33:56]Write to MH i2c: E2 08 00 AB 3F 80 13 00 00 00 00 00 00 66 [18:33:56]Write i2c OK [18:33:56]MH_I2C_Read... [18:33:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:33:56]Read from MH i2c: E2 [18:33:56]MH_I2C_Read... [18:33:56]Read from MH i2c: E2 62 00 [18:33:56]MH_I2C_Read... [18:33:56]Read from MH i2c: E2 62 00 AB 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 B7 E1 01 00 0E 04 04 00 43 01 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 7E [18:33: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 B7 E1 01 00 0E 04 04 00 43 01 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 [18:33:56]wFMCommunicate OK [18:33:56]SAM_PROTO_GetFieldsCounters done [18:33:56]requested_item shift.num is exist - process it [18:33:56]requested_item shift.opened is exist - process it [18:33:56]req_shift_opened [18:33:56]FM_GetShiftState [18:33:56]SAM_PROTO_GetShiftState [18:33:56]wFMCommunicate request_size=4 [18:33:56]MH_SAM_APDU [18:33:56]CAPDU: 80 13 01 00 [18:33:56]Write to MH i2c: E2 08 00 AC 3F 80 13 01 00 00 00 00 00 68 [18:33:56]Write i2c OK [18:33:56]MH_I2C_Read... [18:33:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:33:56]Read from MH i2c: E2 [18:33:56]MH_I2C_Read... [18:33:56]Read from MH i2c: E2 0E 00 [18:33:56]MH_I2C_Read... [18:33:56]Read from MH i2c: E2 0E 00 AC 3F 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 2A [18:33:56]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [18:33:56]wFMCommunicate OK [18:33:56]SAM_PROTO_GetShiftState done [18:33:56]FM_GetShiftState done [18:33:56]req_shift_opened done [18:33:56]requested_item shift.open_date is exist - process it [18:33:56]req_shift_open_date [18:33:56]req_shift_open_date done [18:33:56]produce_requested_data done [18:33:56]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123319,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [18:33:56]process_action_free close_receipt [18:33:56]json_value_free [18:33:56]json_value_free done [18:33:56]process_json_proto returns [18:33:56]Send response to host [18:33:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123319,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [18:33:56]free response buf [18:33:56]execute_script done [18:33:56]execute_script returns [18:33:56]free content buf [18:33:56]Sock 9.Close socket [18:33:56]Sock 9.Thread stoped [18:33:57]accept exits with 7 [18:33:57]New connection [18:33:57]New thread 3067252068 created [18:33:57]Thread 3067395428 joined [18:33:57]Waiting for new connection... [18:33:57] Sock 7.Parse request [18:33:57]Sock 7.Check first char [18:33:57]Sock 7.First char is OK [18:33:57]request: POST /json_proto HTTP/1.0 [18:33:57]Method: POST [18:33:57]URL: /json_proto [18:33:57]Method is POST - this is cgi request [18:33:57]url: /json_proto [18:33:57]query_string will be loaded in cgi processing [18:33:57]execute_cgi json_proto POST (null) [18:33:57]execute_cgi path=json_proto method=POST [18:33:57]POST find Content-Length [18:33:57]Host: 172.17.48.197:8080 [18:33:57]Content-Length: 1215 [18:33:57]Content-Type: application/json [18:33:57] [18:33:57]POST finish read [18:33:57]Found Content-Length = 1215 [18:33:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106265\u000A03.03.2024 18:30\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 20.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 1418.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A00350\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:33:57]execute_script... [18:33:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106265\u000A03.03.2024 18:30\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 20.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 1418.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A00350\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:33:57]POST & json_proto [18:33:57]process_json_proto [18:33:57]json parsed OK: [18:33:57]protocol is kg_v1.0 [18:33:57]action value=print_text [18:33:57]process_action print_text [18:33:57]cmd_print_text [18:33:57]ExternCall_PrintAddStr [18:33:57]wPrintStart [18:33:57]Write to MH i2c: 01 00 00 AD 3F EC [18:33:57]Write i2c OK [18:33:57]MH_I2C_Read... [18:33:57]Read from MH i2c: 01 [18:33:57]MH_I2C_Read... [18:33:57]Read from MH i2c: 01 07 00 [18:33:57]MH_I2C_Read... [18:33:57]Read from MH i2c: 01 07 00 AD 3F 00 00 00 00 00 FF 0F 01 [18:33:57]RasterBufferAndPrint [18:33:57]line *****ТОВАРНЫЙ ЧЕК***** [18:33:57]line АЗС 25 [18:33:57]line Партнер нефть [18:33:57]line 02508201610067 [18:33:57]line Кассир : Турдумбек у. К. [18:33:57]line Счет N : (1)1106265 [18:33:57]line 03.03.2024 18:30 [18:33:57]line ПРОДАЖА [18:33:57]line ТРК (МРК, ГНК): 31 [18:33:57]line Вид ГСМ : 2710194210 [18:33:57]line ДТ(л)-К-5 [18:33:57]line 20.000 x 70.90 [18:33:57]line ИТОГ: 1418.00 [18:33:57]line Тип оплаты: Талоны: Топливная Карта [18:33:57]line 00350 [18:33:57]line ______________________ [18:33:57]line (подпись) [18:33:57]written 0, free lines is 4095 [18:33:57]Write to MH i2c: 01 00 00 C2 3F 01 [18:33:57]Write i2c OK [18:33:57]MH_I2C_Read... [18:33:57]Read from MH i2c: 01 [18:33:57]MH_I2C_Read... [18:33:57]Read from MH i2c: 01 07 00 [18:33:57]MH_I2C_Read... [18:33:57]Read from MH i2c: 01 07 00 C2 3F 00 00 00 00 00 F5 0D 0A [18:33:57]RasterBufferAndPrint [18:33:57]line [18:33:57]line [18:33:57]line [18:33:57]line [18:33:57]line [18:33:57]written 0, free lines is 3576 [18:33:57]MH_Cut [18:33:57]Write to MH i2c: D1 01 00 C9 3F 01 DA [18:33:57]Write i2c OK [18:33:57]MH_I2C_Read... [18:33:57]Read from MH i2c: D1 [18:33:57]MH_I2C_Read... [18:33:57]Read from MH i2c: D1 01 00 [18:33:57]MH_I2C_Read... [18:33:57]Read from MH i2c: D1 01 00 C9 3F 00 D9 [18:33:57]Write to MH i2c: 01 00 00 CA 3F 09 [18:33:57]Write i2c OK [18:33:57]MH_I2C_Read... [18:33:57]*** Cut start [18:33:57]*** Purtial cut [18:33:57]*** Stage 1: CUTSNS_PIN = 1 [18:33:58]OFD Sender: No OFD packet to send [18:33:59]Read from MH i2c: 01 [18:33:59]MH_I2C_Read... [18:33:59]*** Stop cut motor [18:33:59]*** Cut end [18:33:59]Read from MH i2c: 01 07 00 [18:33:59]MH_I2C_Read... [18:33:59]Read from MH i2c: 01 07 00 CA 3F 00 00 00 00 00 FF 0F 1E [18:33:59]process_action print_text done [18:33:59]requested_data is exist [18:33:59]produce_requested_data [18:33:59]requested_item fm.sn is exist - process it [18:33:59]wFMCommunicate request_size=4 [18:33:59]MH_SAM_APDU [18:33:59]CAPDU: 80 11 00 00 [18:33:59]Write to MH i2c: E2 08 00 CB 3F 80 11 00 00 00 00 00 00 84 [18:33:59]Write i2c OK [18:33:59]MH_I2C_Read... [18:33:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:33:59]Read from MH i2c: E2 [18:33:59]MH_I2C_Read... [18:33:59]Read from MH i2c: E2 17 00 [18:33:59]MH_I2C_Read... [18:33:59]Read from MH i2c: E2 17 00 CB 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 E2 [18:33:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [18:33:59]wFMCommunicate OK [18:33:59]requested_item fd.num is exist - process it [18:33:59]SAM_PROTO_GetFieldsCounters [18:33:59]wFMCommunicate request_size=4 [18:33:59]MH_SAM_APDU [18:33:59]CAPDU: 80 13 00 00 [18:33:59]Write to MH i2c: E2 08 00 CC 3F 80 13 00 00 00 00 00 00 87 [18:33:59]Write i2c OK [18:33:59]MH_I2C_Read... [18:34:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:34:00]Read from MH i2c: E2 [18:34:00]MH_I2C_Read... [18:34:00]Read from MH i2c: E2 62 00 [18:34:00]MH_I2C_Read... [18:34:00]Read from MH i2c: E2 62 00 CC 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 B7 E1 01 00 0E 04 04 00 43 01 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 9F [18:34:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 B7 E1 01 00 0E 04 04 00 43 01 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 [18:34:00]wFMCommunicate OK [18:34:00]SAM_PROTO_GetFieldsCounters done [18:34:00]requested_item shift.num is exist - process it [18:34:00]requested_item shift.opened is exist - process it [18:34:00]req_shift_opened [18:34:00]FM_GetShiftState [18:34:00]SAM_PROTO_GetShiftState [18:34:00]wFMCommunicate request_size=4 [18:34:00]MH_SAM_APDU [18:34:00]CAPDU: 80 13 01 00 [18:34:00]Write to MH i2c: E2 08 00 CD 3F 80 13 01 00 00 00 00 00 89 [18:34:00]Write i2c OK [18:34:00]MH_I2C_Read... [18:34:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:34:00]Read from MH i2c: E2 [18:34:00]MH_I2C_Read... [18:34:00]Read from MH i2c: E2 0E 00 [18:34:00]MH_I2C_Read... [18:34:00]Read from MH i2c: E2 0E 00 CD 3F 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 4B [18:34:00]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [18:34:00]wFMCommunicate OK [18:34:00]SAM_PROTO_GetShiftState done [18:34:00]FM_GetShiftState done [18:34:00]req_shift_opened done [18:34:00]requested_item shift.open_date is exist - process it [18:34:00]req_shift_open_date [18:34:00]req_shift_open_date done [18:34:00]produce_requested_data done [18:34:00]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123319,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [18:34:00]process_action_free print_text [18:34:00]json_value_free [18:34:00]json_value_free done [18:34:00]process_json_proto returns [18:34:00]Send response to host [18:34:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123319,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [18:34:00]free response buf [18:34:00]execute_script done [18:34:00]execute_script returns [18:34:00]free content buf [18:34:00]Sock 7.Close socket [18:34:00]Sock 7.Thread stoped [18:34:03]OFD Sender: No OFD packet to send [18:34:09]OFD Sender: No OFD packet to send [18:34:11]accept exits with 9 [18:34:11]New connection [18:34:11]New thread 3067395428 created [18:34:11]Thread 3067252068 joined [18:34:11]Waiting for new connection... [18:34:11] Sock 9.Parse request [18:34:11]Sock 9.Check first char [18:34:11]Sock 9.First char is OK [18:34:11]request: POST /json_proto HTTP/1.0 [18:34:11]Method: POST [18:34:11]URL: /json_proto [18:34:11]Method is POST - this is cgi request [18:34:11]url: /json_proto [18:34:11]query_string will be loaded in cgi processing [18:34:11]execute_cgi json_proto POST (null) [18:34:11]execute_cgi path=json_proto method=POST [18:34:11]POST find Content-Length [18:34:11]Host: 172.17.48.197:8080 [18:34:11]Content-Length: 806 [18:34:11]Content-Type: application/json [18:34:11] [18:34:11]POST finish read [18:34:11]Found Content-Length = 806 [18:34:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106267", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:34:11]execute_script... [18:34: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)1106267", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:34:11]POST & json_proto [18:34:11]process_json_proto [18:34:11]json parsed OK: [18:34:11]protocol is kg_v1.0 [18:34:11]action value=close_receipt [18:34:11]process_action close_receipt [18:34:11]cmd_close_receipt [18:34:11]MH_GetDate [18:34:11]Write to MH i2c: F0 00 00 CE 3F FC [18:34:11]Write i2c OK [18:34:11]MH_I2C_Read... [18:34:11]Read from MH i2c: F0 [18:34:11]MH_I2C_Read... [18:34:11]Read from MH i2c: F0 09 00 [18:34:11]MH_I2C_Read... [18:34:11]Read from MH i2c: F0 09 00 CE 3F 00 A8 C2 E4 65 6C AF E3 65 1B [18:34:11]GetLastDocTimeStamp 1709490835 [18:34:11]current date 1709490856 [18:34:11]FM_GetShiftState [18:34:11]SAM_PROTO_GetShiftState [18:34:11]wFMCommunicate request_size=4 [18:34:11]MH_SAM_APDU [18:34:11]CAPDU: 80 13 01 00 [18:34:11]Write to MH i2c: E2 08 00 CF 3F 80 13 01 00 00 00 00 00 8B [18:34:11]Write i2c OK [18:34:11]MH_I2C_Read... [18:34:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:34:11]Read from MH i2c: E2 [18:34:11]MH_I2C_Read... [18:34:11]Read from MH i2c: E2 0E 00 [18:34:11]MH_I2C_Read... [18:34:11]Read from MH i2c: E2 0E 00 CF 3F 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 4D [18:34:11]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [18:34:11]wFMCommunicate OK [18:34:11]SAM_PROTO_GetShiftState done [18:34:11]FM_GetShiftState done [18:34:11]opened in 1709425579 [18:34:11]opened+sec_in_day 1709511979 [18:34:11]quantity*price = 50015 [18:34:11]sum+1 = 50016 [18:34:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.15 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.15 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 177 03.03.2024 18:34 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874798 ФД: 123320 ФПД: 239337631265671 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T183416&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123320&fm=239337631265671&tin=02508201610067®Number=0000000000090573&sum=50015 [18:34:12]StoreToDocumentArchive [18:34:12]shift 323 fd 123320 [18:34:12]save to /storage/0323/doc_00123320 [18:34:12]save last doc name /storage/0323/doc_00123320 to /storage/kkm_last_doc_name [18:34:12]save OK [18:34:12]Clear old archive folders... [18:34:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:34:12]tlvbuf is 00DC0BD0 [18:34:12]SAM_PROTO_ClearQueue [18:34:12]wFMCommunicate request_size=4 [18:34:12]MH_SAM_APDU [18:34:12]CAPDU: 80 09 00 00 [18:34:12]Write to MH i2c: E2 08 00 DC 3F 80 09 00 00 00 00 00 00 8D [18:34:12]Write i2c OK [18:34:12]MH_I2C_Read... [18:34:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:34:12]Read from MH i2c: E2 [18:34:12]MH_I2C_Read... [18:34:12]Read from MH i2c: E2 03 00 [18:34:12]MH_I2C_Read... [18:34:12]Read from MH i2c: E2 03 00 DC 3F 00 90 00 8F [18:34:12]RAPDU: 90 00 [18:34:12]wFMCommunicate OK [18:34:12]SAM_PROTO_ClearQueue done [18:34:12]KKMCreateOFDPacket [18:34:12]OFDProtocolAddRootSTLVToBuf [18:34:12]FM_MakeSignedData [18:34:12]FM_MakeSignedData [18:34:12]SAM_PROTO_SignData [18:34:12]wFMCommunicate request_size=4 [18:34:12]MH_SAM_APDU [18:34:12]CAPDU: 80 0D 01 02 [18:34:12]Write to MH i2c: E2 08 00 DD 3F 80 0D 01 02 00 00 00 00 95 [18:34:12]Write i2c OK [18:34:12]MH_I2C_Read... [18:34:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:34:12]Read from MH i2c: E2 [18:34:12]MH_I2C_Read... [18:34:12]Read from MH i2c: E2 03 00 [18:34:12]MH_I2C_Read... [18:34:12]Read from MH i2c: E2 03 00 DD 3F 00 90 00 90 [18:34:12]RAPDU: 90 00 [18:34:12]wFMCommunicate OK [18:34:12]wFMCommunicate request_size=255 [18:34:12]MH_SAM_APDU [18:34:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 A8 C2 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 B8 E1 01 00 35 04 06 00 D9 [18:34:12]Write to MH i2c: E2 02 01 DE 3F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 A8 C2 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 B8 E1 01 00 35 04 06 00 D9 00 00 AE [18:34:12]Write i2c OK [18:34:12]MH_I2C_Read... [18:34:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:34:13]Read from MH i2c: E2 [18:34:13]MH_I2C_Read... [18:34:13]Read from MH i2c: E2 03 00 [18:34:13]MH_I2C_Read... [18:34:13]Read from MH i2c: E2 03 00 DE 3F 00 90 00 91 [18:34:13]RAPDU: 90 00 [18:34:13]wFMCommunicate OK [18:34:13]wFMCommunicate request_size=10 [18:34:13]MH_SAM_APDU [18:34:13]CAPDU: 80 0D 02 02 05 AD 22 7E 33 87 [18:34:13]Write to MH i2c: E2 0D 00 DF 3F 80 0D 02 02 05 00 AD 22 7E 33 87 00 00 A9 [18:34:13]Write i2c OK [18:34:13]MH_I2C_Read... [18:34:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:34:13]Read from MH i2c: E2 [18:34:13]MH_I2C_Read... [18:34:13]Read from MH i2c: E2 03 00 [18:34:13]MH_I2C_Read... [18:34:13]Read from MH i2c: E2 03 00 DF 3F 00 90 00 92 [18:34:13]RAPDU: 90 00 [18:34:13]wFMCommunicate OK [18:34:13]wFMCommunicate request_size=4 [18:34:13]MH_SAM_APDU [18:34:13]CAPDU: 80 0D 03 02 [18:34:13]Write to MH i2c: E2 08 00 E0 3F 80 0D 03 02 00 00 00 00 9A [18:34:13]Write i2c OK [18:34:13]MH_I2C_Read... [18:34:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:34:13]Read from MH i2c: E2 [18:34:13]MH_I2C_Read... [18:34:13]Read from MH i2c: E2 0B 00 [18:34:13]MH_I2C_Read... [18:34:13]Read from MH i2c: E2 0B 00 E0 3F 00 B6 03 16 C3 DA 23 76 62 90 00 02 [18:34:13]RAPDU: B6 03 16 C3 DA 23 76 62 90 00 [18:34:13]wFMCommunicate OK [18:34:13]SAM_PROTO_SignData done [18:34:13]FM_MakeSignedData done [18:34:13]CreateOFDProtocolMessage [18:34:13]wFMCommunicate request_size=4 [18:34:13]MH_SAM_APDU [18:34:13]CAPDU: 80 11 00 00 [18:34:13]Write to MH i2c: E2 08 00 E1 3F 80 11 00 00 00 00 00 00 9A [18:34:13]Write i2c OK [18:34:13]MH_I2C_Read... [18:34:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:34:13]Read from MH i2c: E2 [18:34:13]MH_I2C_Read... [18:34:13]Read from MH i2c: E2 17 00 [18:34:13]MH_I2C_Read... [18:34:13]Read from MH i2c: E2 17 00 E1 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 F8 [18:34:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [18:34:13]wFMCommunicate OK [18:34:13]CreateOFDProtocolMessage done [18:34:13]OFDSenderStorePacket 123320 [18:34:13]StoreOFDPacket docnum=123320 [18:34:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 CF 3E 07 01 CF 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 A8 C2 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 B8 E1 01 00 35 04 06 00 D9 AD 22 7E 33 87 B6 03 16 C3 DA 23 76 62 [18:34:13]CheckFolder [18:34:13]dirname=/storage/ofd_packets [18:34:13]CheckFolder done [18:34:13]ProducePacketName [18:34:13]name=ofd_packets/00123320 [18:34:13]NVStorageSaveData ofd_packets/00123320 [18:34:13]File name is /storage/ofd_packets/00123320 [18:34:13]Write 301 bytes [18:34:13]NVStorageSaveData done [18:34:13]OFDSenderStorePacket done [18:34:13]KKMCreateOFDPacket done [18:34:13]NVStorageSaveData kkm_last_timestamp [18:34:13]File name is /storage/kkm_last_timestamp [18:34:13]Write 4 bytes [18:34:13]NVStorageSaveData done [18:34:13]ExternCall_PrintAddStr [18:34:13]wPrintStart [18:34:13]Write to MH i2c: 01 00 00 E2 3F 21 [18:34:13]Write i2c OK [18:34:13]MH_I2C_Read... [18:34:13]Read from MH i2c: 01 [18:34:13]MH_I2C_Read... [18:34:13]Read from MH i2c: 01 07 00 [18:34:13]MH_I2C_Read... [18:34:13]Read from MH i2c: 01 07 00 E2 3F 00 00 00 00 00 FF 0F 36 [18:34:13]RasterBufferAndPrint [18:34:13]line Счет N : (1)1106267 [18:34:13]line ИНН: 02508201610067 [18:34:13]line Контрольно-Кассовый Чек [18:34:13]line ПРОДАЖА [18:34:13]line ТРК (МРК, ГНК) : 11 [18:34:13]line Товар: 2710124130 [18:34:13]line Аи-92-К-5 [18:34:13]line 8.080 * 61.90 [18:34:13]line = 500.15 [18:34:13]line НДС 12% НСП 1% [18:34:13]line > о реализуемом товаре [18:34:13]line ИТОГО: 500.15 [18:34:13]line НСП 1% : 4.43 [18:34:13]line НДС 12% : 53.11 [18:34:13]line Наличными: 0.00 [18:34:13]line Безнал.: 500.15 [18:34:13]line Место: АЗС № 25 "Партнер Нефть" [18:34:13]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [18:34:13]line СНО: Общий режим [18:34:13]line Чек 177 03.03.2024 18:34 [18:34:13]line Смена: 323 ФФД: 1.0 [18:34:13]line ЗНМ: 0300000019 [18:34:13]line РНМ: 0000000000090573 [18:34:13]line Версия ККМ: 001 [18:34:13]line Платежная система: О! деньги [18:34:13]line ФМ: 0000000000874798 [18:34:13]line ФД: 123320 [18:34:13]line ФПД: 239337631265671 [18:34:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T183416&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123320&fm=239337631265671&tin=02508201610067®Number=0000000000090573&sum=50015 [18:34:13]OFD Sender: Processing packet 123320 [packets to send 112, broken 111] [18:34:13]ProducePacketName [18:34:13]name=ofd_packets/00123320 [18:34:13]OFD Sender: To server: pG, [18:34:13]CommunicateWithHost lk.salyk.kg:30040 [18:34:13]ConnectInit lk.salyk.kg [18:34:13]written 0, free lines is 4095 [18:34:13]Connected sock=10 [18:34: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 37 39 38 0F 01 00 00 CF 3E 07 01 CF 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 A8 C2 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 B8 E1 01 00 35 04 06 00 D9 AD 22 7E 33 87 B6 03 16 C3 DA 23 76 62 [18:34:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 54 71 47 00 1D 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 37 39 38 10 04 04 00 B8 E1 01 00 F4 03 04 00 D3 6E E4 65 B6 04 01 00 00 24 0C 23 56 04 35 02 CC [18:34:13]CommunicateWithHost err = 0 [18:34:13]CheckOFDResponse [18:34:13]1017 (14) - 77093643461234 [18:34:13]1041 (16) - 0000000000874798 [18:34:13]1040 (4) - 123320 [18:34:13]1012 (4) - 03.03.2024 12:36 [18:34:13]1206 (1) - 0 [18:34:13]OFD Sender: Remove packet 123320 [18:34:13]ProducePacketName [18:34:13]name=ofd_packets/00123320 [18:34:13]NVStorageDeleteData [18:34:14]Write to MH i2c: 01 00 00 0C 40 4C [18:34:14]Write i2c OK [18:34:14]MH_I2C_Read... [18:34:14]Read from MH i2c: 01 [18:34:14]MH_I2C_Read... [18:34:14]Read from MH i2c: 01 07 00 [18:34:14]MH_I2C_Read... [18:34:14]Read from MH i2c: 01 07 00 0C 40 00 00 00 00 00 FF 0C 5E [18:34:14]RasterBufferAndPrint [18:34:14]line [18:34:14]line [18:34:14]line [18:34:14]line [18:34:14]line [18:34:14]written 0, free lines is 3336 [18:34:14]MH_Cut [18:34:14]Write to MH i2c: D1 01 00 13 40 01 25 [18:34:14]Write i2c OK [18:34:14]MH_I2C_Read... [18:34:14]Read from MH i2c: D1 [18:34:14]MH_I2C_Read... [18:34:14]Read from MH i2c: D1 01 00 [18:34:14]MH_I2C_Read... [18:34:14]Read from MH i2c: D1 01 00 13 40 00 24 [18:34:14]Write to MH i2c: 01 00 00 14 40 54 [18:34:14]Write i2c OK [18:34:14]MH_I2C_Read... [18:34:14]OFD Sender: No OFD packet to send [18:34:14]*** Cut start [18:34:14]*** Purtial cut [18:34:14]*** Stage 1: CUTSNS_PIN = 1 [18:34:16]Read from MH i2c: 01 [18:34:16]MH_I2C_Read... [18:34:16]*** Stop cut motor [18:34:16]*** Cut end [18:34:16]Read from MH i2c: 01 07 00 [18:34:16]MH_I2C_Read... [18:34:16]Read from MH i2c: 01 07 00 14 40 00 00 00 00 00 FF 0F 69 [18:34:16]process_action close_receipt done [18:34:16]requested_data is exist [18:34:16]produce_requested_data [18:34:16]requested_item fm.sn is exist - process it [18:34:16]wFMCommunicate request_size=4 [18:34:16]MH_SAM_APDU [18:34:16]CAPDU: 80 11 00 00 [18:34:16]Write to MH i2c: E2 08 00 15 40 80 11 00 00 00 00 00 00 CF [18:34:16]Write i2c OK [18:34:16]MH_I2C_Read... [18:34:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:34:16]Read from MH i2c: E2 [18:34:16]MH_I2C_Read... [18:34:16]Read from MH i2c: E2 17 00 [18:34:16]MH_I2C_Read... [18:34:16]Read from MH i2c: E2 17 00 15 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 2D [18:34:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [18:34:16]wFMCommunicate OK [18:34:16]requested_item fd.num is exist - process it [18:34:16]SAM_PROTO_GetFieldsCounters [18:34:16]wFMCommunicate request_size=4 [18:34:16]MH_SAM_APDU [18:34:16]CAPDU: 80 13 00 00 [18:34:16]Write to MH i2c: E2 08 00 16 40 80 13 00 00 00 00 00 00 D2 [18:34:16]Write i2c OK [18:34:16]MH_I2C_Read... [18:34:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:34:16]Read from MH i2c: E2 [18:34:16]MH_I2C_Read... [18:34:16]Read from MH i2c: E2 62 00 [18:34:16]MH_I2C_Read... [18:34:16]Read from MH i2c: E2 62 00 16 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 B8 E1 01 00 0E 04 04 00 43 01 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 EE [18:34: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 B8 E1 01 00 0E 04 04 00 43 01 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 [18:34:16]wFMCommunicate OK [18:34:16]SAM_PROTO_GetFieldsCounters done [18:34:16]requested_item shift.num is exist - process it [18:34:16]requested_item shift.opened is exist - process it [18:34:16]req_shift_opened [18:34:16]FM_GetShiftState [18:34:16]SAM_PROTO_GetShiftState [18:34:16]wFMCommunicate request_size=4 [18:34:16]MH_SAM_APDU [18:34:16]CAPDU: 80 13 01 00 [18:34:16]Write to MH i2c: E2 08 00 17 40 80 13 01 00 00 00 00 00 D4 [18:34:16]Write i2c OK [18:34:16]MH_I2C_Read... [18:34:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:34:16]Read from MH i2c: E2 [18:34:16]MH_I2C_Read... [18:34:16]Read from MH i2c: E2 0E 00 [18:34:16]MH_I2C_Read... [18:34:16]Read from MH i2c: E2 0E 00 17 40 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 96 [18:34:16]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [18:34:16]wFMCommunicate OK [18:34:16]SAM_PROTO_GetShiftState done [18:34:16]FM_GetShiftState done [18:34:16]req_shift_opened done [18:34:16]requested_item shift.open_date is exist - process it [18:34:16]req_shift_open_date [18:34:16]req_shift_open_date done [18:34:16]produce_requested_data done [18:34:16]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123320,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [18:34:16]process_action_free close_receipt [18:34:16]json_value_free [18:34:16]json_value_free done [18:34:16]process_json_proto returns [18:34:16]Send response to host [18:34:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123320,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [18:34:16]free response buf [18:34:16]execute_script done [18:34:16]execute_script returns [18:34:16]free content buf [18:34:16]Sock 9.Close socket [18:34:16]Sock 9.Thread stoped [18:34:19]OFD Sender: No OFD packet to send [18:34:24]OFD Sender: No OFD packet to send [18:34:29]OFD Sender: No OFD packet to send [18:34:34]OFD Sender: No OFD packet to send [18:34:39]OFD Sender: No OFD packet to send [18:34:44]OFD Sender: No OFD packet to send [18:34:49]OFD Sender: No OFD packet to send [18:34:54]OFD Sender: No OFD packet to send [18:34:59]OFD Sender: No OFD packet to send [18:35:04]OFD Sender: No OFD packet to send [18:35:09]OFD Sender: No OFD packet to send [18:35:14]OFD Sender: No OFD packet to send [18:35:19]OFD Sender: No OFD packet to send [18:35:24]OFD Sender: No OFD packet to send [18:35:29]OFD Sender: No OFD packet to send [18:35:34]OFD Sender: No OFD packet to send [18:35:39]OFD Sender: No OFD packet to send [18:35:44]OFD Sender: No OFD packet to send [18:35:49]OFD Sender: No OFD packet to send [18:35:54]OFD Sender: No OFD packet to send [18:35:59]OFD Sender: No OFD packet to send [18:36:04]OFD Sender: No OFD packet to send [18:36:09]OFD Sender: No OFD packet to send [18:36:14]OFD Sender: No OFD packet to send [18:36:18]accept exits with 7 [18:36:18]New connection [18:36:18]New thread 3067252068 created [18:36:18]Thread 3067395428 joined [18:36:18]Waiting for new connection... [18:36:18] Sock 7.Parse request [18:36:18]Sock 7.Check first char [18:36:18]Sock 7.First char is OK [18:36:18]request: POST /json_proto HTTP/1.0 [18:36:18]Method: POST [18:36:18]URL: /json_proto [18:36:18]Method is POST - this is cgi request [18:36:18]url: /json_proto [18:36:18]query_string will be loaded in cgi processing [18:36:18]execute_cgi json_proto POST (null) [18:36:18]execute_cgi path=json_proto method=POST [18:36:18]POST find Content-Length [18:36:18]Host: 172.17.48.197:8080 [18:36:18]Content-Length: 806 [18:36:18]Content-Type: application/json [18:36:18] [18:36:18]POST finish read [18:36:18]Found Content-Length = 806 [18:36:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106269", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 8.640, "sum" : 600.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.48 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:36:18]execute_script... [18:36:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106269", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 8.640, "sum" : 600.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.48 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:36:18]POST & json_proto [18:36:18]process_json_proto [18:36:18]json parsed OK: [18:36:18]protocol is kg_v1.0 [18:36:18]action value=close_receipt [18:36:18]process_action close_receipt [18:36:18]cmd_close_receipt [18:36:18]MH_GetDate [18:36:18]Write to MH i2c: F0 00 00 18 40 47 [18:36:18]Write i2c OK [18:36:18]MH_I2C_Read... [18:36:18]Read from MH i2c: F0 [18:36:18]MH_I2C_Read... [18:36:18]Read from MH i2c: F0 09 00 [18:36:18]MH_I2C_Read... [18:36:18]Read from MH i2c: F0 09 00 18 40 00 26 C3 E4 65 6C AF E3 65 E5 [18:36:18]GetLastDocTimeStamp 1709490856 [18:36:18]current date 1709490982 [18:36:18]FM_GetShiftState [18:36:18]SAM_PROTO_GetShiftState [18:36:18]wFMCommunicate request_size=4 [18:36:18]MH_SAM_APDU [18:36:18]CAPDU: 80 13 01 00 [18:36:18]Write to MH i2c: E2 08 00 19 40 80 13 01 00 00 00 00 00 D6 [18:36:18]Write i2c OK [18:36:18]MH_I2C_Read... [18:36:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:36:18]Read from MH i2c: E2 [18:36:18]MH_I2C_Read... [18:36:18]Read from MH i2c: E2 0E 00 [18:36:18]MH_I2C_Read... [18:36:18]Read from MH i2c: E2 0E 00 19 40 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 98 [18:36:18]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [18:36:18]wFMCommunicate OK [18:36:18]SAM_PROTO_GetShiftState done [18:36:18]FM_GetShiftState done [18:36:18]opened in 1709425579 [18:36:18]opened+sec_in_day 1709511979 [18:36:18]quantity*price = 60048 [18:36:18]sum+1 = 60049 [18:36:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.48 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 0.00 Безнал.: 600.48 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 178 03.03.2024 18:36 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874798 ФД: 123321 ФПД: 130278610114495 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T183622&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123321&fm=130278610114495&tin=02508201610067®Number=0000000000090573&sum=60048 [18:36:19]StoreToDocumentArchive [18:36:19]shift 323 fd 123321 [18:36:19]save to /storage/0323/doc_00123321 [18:36:19]save last doc name /storage/0323/doc_00123321 to /storage/kkm_last_doc_name [18:36:19]save OK [18:36:19]Clear old archive folders... [18:36:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:36:19]tlvbuf is 00E454F0 [18:36:19]SAM_PROTO_ClearQueue [18:36:19]wFMCommunicate request_size=4 [18:36:19]MH_SAM_APDU [18:36:19]CAPDU: 80 09 00 00 [18:36:19]Write to MH i2c: E2 08 00 26 40 80 09 00 00 00 00 00 00 D8 [18:36:19]Write i2c OK [18:36:19]MH_I2C_Read... [18:36:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:36:19]Read from MH i2c: E2 [18:36:19]MH_I2C_Read... [18:36:19]Read from MH i2c: E2 03 00 [18:36:19]MH_I2C_Read... [18:36:19]Read from MH i2c: E2 03 00 26 40 00 90 00 DA [18:36:19]RAPDU: 90 00 [18:36:19]wFMCommunicate OK [18:36:19]SAM_PROTO_ClearQueue done [18:36:19]KKMCreateOFDPacket [18:36:19]OFDProtocolAddRootSTLVToBuf [18:36:19]FM_MakeSignedData [18:36:19]FM_MakeSignedData [18:36:19]SAM_PROTO_SignData [18:36:19]wFMCommunicate request_size=4 [18:36:19]MH_SAM_APDU [18:36:19]CAPDU: 80 0D 01 02 [18:36:19]Write to MH i2c: E2 08 00 27 40 80 0D 01 02 00 00 00 00 E0 [18:36:19]Write i2c OK [18:36:19]MH_I2C_Read... [18:36:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:36:19]Read from MH i2c: E2 [18:36:19]MH_I2C_Read... [18:36:19]Read from MH i2c: E2 03 00 [18:36:19]MH_I2C_Read... [18:36:19]Read from MH i2c: E2 03 00 27 40 00 90 00 DB [18:36:19]RAPDU: 90 00 [18:36:19]wFMCommunicate OK [18:36:19]wFMCommunicate request_size=255 [18:36:19]MH_SAM_APDU [18:36:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C0 21 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 90 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 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 E9 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 26 C3 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 B9 E1 01 00 35 04 06 00 76 [18:36:19]Write to MH i2c: E2 02 01 28 40 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C0 21 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 90 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 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 E9 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 26 C3 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 B9 E1 01 00 35 04 06 00 76 00 00 D7 [18:36:19]Write i2c OK [18:36:19]MH_I2C_Read... [18:36:19]OFD Sender: No OFD packet to send [18:36:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:36:19]Read from MH i2c: E2 [18:36:19]MH_I2C_Read... [18:36:19]Read from MH i2c: E2 03 00 [18:36:19]MH_I2C_Read... [18:36:19]Read from MH i2c: E2 03 00 28 40 00 90 00 DC [18:36:19]RAPDU: 90 00 [18:36:19]wFMCommunicate OK [18:36:19]wFMCommunicate request_size=10 [18:36:19]MH_SAM_APDU [18:36:19]CAPDU: 80 0D 02 02 05 7C DA 47 17 BF [18:36:19]Write to MH i2c: E2 0D 00 29 40 80 0D 02 02 05 00 7C DA 47 17 BF 00 00 60 [18:36:19]Write i2c OK [18:36:19]MH_I2C_Read... [18:36:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:36:19]Read from MH i2c: E2 [18:36:19]MH_I2C_Read... [18:36:19]Read from MH i2c: E2 03 00 [18:36:19]MH_I2C_Read... [18:36:19]Read from MH i2c: E2 03 00 29 40 00 90 00 DD [18:36:19]RAPDU: 90 00 [18:36:19]wFMCommunicate OK [18:36:19]wFMCommunicate request_size=4 [18:36:19]MH_SAM_APDU [18:36:19]CAPDU: 80 0D 03 02 [18:36:19]Write to MH i2c: E2 08 00 2A 40 80 0D 03 02 00 00 00 00 E5 [18:36:19]Write i2c OK [18:36:19]MH_I2C_Read... [18:36:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:36:19]Read from MH i2c: E2 [18:36:19]MH_I2C_Read... [18:36:19]Read from MH i2c: E2 0B 00 [18:36:19]MH_I2C_Read... [18:36:19]Read from MH i2c: E2 0B 00 2A 40 00 D2 31 65 1F 78 5C A9 B2 90 00 9C [18:36:19]RAPDU: D2 31 65 1F 78 5C A9 B2 90 00 [18:36:19]wFMCommunicate OK [18:36:19]SAM_PROTO_SignData done [18:36:19]FM_MakeSignedData done [18:36:19]CreateOFDProtocolMessage [18:36:19]wFMCommunicate request_size=4 [18:36:19]MH_SAM_APDU [18:36:19]CAPDU: 80 11 00 00 [18:36:19]Write to MH i2c: E2 08 00 2B 40 80 11 00 00 00 00 00 00 E5 [18:36:19]Write i2c OK [18:36:19]MH_I2C_Read... [18:36:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:36:19]Read from MH i2c: E2 [18:36:19]MH_I2C_Read... [18:36:19]Read from MH i2c: E2 17 00 [18:36:19]MH_I2C_Read... [18:36:19]Read from MH i2c: E2 17 00 2B 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 43 [18:36:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [18:36:19]wFMCommunicate OK [18:36:19]CreateOFDProtocolMessage done [18:36:19]OFDSenderStorePacket 123321 [18:36:19]StoreOFDPacket docnum=123321 [18:36:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 DF 41 07 01 A6 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C0 21 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 90 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 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 E9 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 26 C3 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 B9 E1 01 00 35 04 06 00 76 7C DA 47 17 BF D2 31 65 1F 78 5C A9 B2 [18:36:19]CheckFolder [18:36:19]dirname=/storage/ofd_packets [18:36:19]CheckFolder done [18:36:19]ProducePacketName [18:36:19]name=ofd_packets/00123321 [18:36:19]NVStorageSaveData ofd_packets/00123321 [18:36:19]File name is /storage/ofd_packets/00123321 [18:36:19]Write 301 bytes [18:36:19]NVStorageSaveData done [18:36:19]OFDSenderStorePacket done [18:36:19]KKMCreateOFDPacket done [18:36:19]NVStorageSaveData kkm_last_timestamp [18:36:19]File name is /storage/kkm_last_timestamp [18:36:19]Write 4 bytes [18:36:19]NVStorageSaveData done [18:36:19]ExternCall_PrintAddStr [18:36:19]wPrintStart [18:36:19]Write to MH i2c: 01 00 00 2C 40 6C [18:36:19]Write i2c OK [18:36:19]MH_I2C_Read... [18:36:19]Read from MH i2c: 01 [18:36:19]MH_I2C_Read... [18:36:19]Read from MH i2c: 01 07 00 [18:36:19]MH_I2C_Read... [18:36:19]Read from MH i2c: 01 07 00 2C 40 00 00 00 00 00 FF 0F 81 [18:36:19]RasterBufferAndPrint [18:36:19]line Счет N : (1)1106269 [18:36:19]line ИНН: 02508201610067 [18:36:19]line Контрольно-Кассовый Чек [18:36:19]line ПРОДАЖА [18:36:19]line ТРК (МРК, ГНК) : 13 [18:36:19]line Товар: 2710124500 [18:36:19]line Аи-95-К-5 [18:36:19]line 8.640 * 69.50 [18:36:19]line = 600.48 [18:36:19]line НДС 12% НСП 1% [18:36:19]line > о реализуемом товаре [18:36:19]line ИТОГО: 600.48 [18:36:19]line НСП 1% : 5.31 [18:36:19]line НДС 12% : 63.77 [18:36:19]line Наличными: 0.00 [18:36:19]line Безнал.: 600.48 [18:36:19]line Место: АЗС № 25 "Партнер Нефть" [18:36:19]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [18:36:19]line СНО: Общий режим [18:36:19]line Чек 178 03.03.2024 18:36 [18:36:19]line Смена: 323 ФФД: 1.0 [18:36:19]line ЗНМ: 0300000019 [18:36:19]line РНМ: 0000000000090573 [18:36:19]line Версия ККМ: 001 [18:36:19]line Платежная система: О! деньги [18:36:19]line ФМ: 0000000000874798 [18:36:19]line ФД: 123321 [18:36:19]line ФПД: 130278610114495 [18:36:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T183622&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123321&fm=130278610114495&tin=02508201610067®Number=0000000000090573&sum=60048 [18:36:20]OFD Sender: Processing packet 123321 [packets to send 112, broken 111] [18:36:20]ProducePacketName [18:36:20]name=ofd_packets/00123321 [18:36:20]OFD Sender: To server: pG, [18:36:20]CommunicateWithHost lk.salyk.kg:30040 [18:36:20]ConnectInit lk.salyk.kg [18:36:20]written 0, free lines is 4095 [18:36:20]Connected sock=10 [18:36: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 37 39 38 0F 01 00 00 DF 41 07 01 A6 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C0 21 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 90 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 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 E9 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 26 C3 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 B9 E1 01 00 35 04 06 00 76 7C DA 47 17 BF D2 31 65 1F 78 5C A9 B2 [18:36:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 0E BB 47 00 22 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 B9 E1 01 00 F4 03 04 00 51 6F E4 65 B6 04 01 00 00 35 7F 6E 2D AE A5 B9 D3 [18:36:20]CommunicateWithHost err = 0 [18:36:20]CheckOFDResponse [18:36:20]1017 (14) - 77093643461234 [18:36:20]1041 (16) - 0000000000874798 [18:36:20]1040 (4) - 123321 [18:36:20]1012 (4) - 03.03.2024 12:38 [18:36:20]1206 (1) - 0 [18:36:20]OFD Sender: Remove packet 123321 [18:36:20]ProducePacketName [18:36:20]name=ofd_packets/00123321 [18:36:20]NVStorageDeleteData [18:36:20]Write to MH i2c: 01 00 00 56 40 96 [18:36:20]Write i2c OK [18:36:20]MH_I2C_Read... [18:36:20]Read from MH i2c: 01 [18:36:20]MH_I2C_Read... [18:36:20]Read from MH i2c: 01 07 00 [18:36:20]MH_I2C_Read... [18:36:20]Read from MH i2c: 01 07 00 56 40 00 00 00 00 00 01 0D AB [18:36:20]RasterBufferAndPrint [18:36:20]line [18:36:20]line [18:36:20]line [18:36:20]line [18:36:20]line [18:36:20]written 0, free lines is 3338 [18:36:20]MH_Cut [18:36:20]Write to MH i2c: D1 01 00 5D 40 01 6F [18:36:20]Write i2c OK [18:36:20]MH_I2C_Read... [18:36:20]Read from MH i2c: D1 [18:36:20]MH_I2C_Read... [18:36:20]Read from MH i2c: D1 01 00 [18:36:20]MH_I2C_Read... [18:36:20]Read from MH i2c: D1 01 00 5D 40 00 6E [18:36:20]Write to MH i2c: 01 00 00 5E 40 9E [18:36:20]Write i2c OK [18:36:20]MH_I2C_Read... [18:36:20]OFD Sender: No OFD packet to send [18:36:21]*** Cut start [18:36:21]*** Purtial cut [18:36:21]*** Stage 1: CUTSNS_PIN = 1 [18:36:23]Read from MH i2c: 01 [18:36:23]MH_I2C_Read... [18:36:23]*** Stop cut motor [18:36:23]*** Cut end [18:36:23]Read from MH i2c: 01 07 00 [18:36:23]MH_I2C_Read... [18:36:23]Read from MH i2c: 01 07 00 5E 40 00 00 00 00 00 FF 0F B3 [18:36:23]process_action close_receipt done [18:36:23]requested_data is exist [18:36:23]produce_requested_data [18:36:23]requested_item fm.sn is exist - process it [18:36:23]wFMCommunicate request_size=4 [18:36:23]MH_SAM_APDU [18:36:23]CAPDU: 80 11 00 00 [18:36:23]Write to MH i2c: E2 08 00 5F 40 80 11 00 00 00 00 00 00 19 [18:36:23]Write i2c OK [18:36:23]MH_I2C_Read... [18:36:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:36:23]Read from MH i2c: E2 [18:36:23]MH_I2C_Read... [18:36:23]Read from MH i2c: E2 17 00 [18:36:23]MH_I2C_Read... [18:36:23]Read from MH i2c: E2 17 00 5F 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 77 [18:36:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [18:36:23]wFMCommunicate OK [18:36:23]requested_item fd.num is exist - process it [18:36:23]SAM_PROTO_GetFieldsCounters [18:36:23]wFMCommunicate request_size=4 [18:36:23]MH_SAM_APDU [18:36:23]CAPDU: 80 13 00 00 [18:36:23]Write to MH i2c: E2 08 00 60 40 80 13 00 00 00 00 00 00 1C [18:36:23]Write i2c OK [18:36:23]MH_I2C_Read... [18:36:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:36:23]Read from MH i2c: E2 [18:36:23]MH_I2C_Read... [18:36:23]Read from MH i2c: E2 62 00 [18:36:23]MH_I2C_Read... [18:36:23]Read from MH i2c: E2 62 00 60 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 B9 E1 01 00 0E 04 04 00 43 01 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 3C [18:36:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 B9 E1 01 00 0E 04 04 00 43 01 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 [18:36:23]wFMCommunicate OK [18:36:23]SAM_PROTO_GetFieldsCounters done [18:36:23]requested_item shift.num is exist - process it [18:36:23]requested_item shift.opened is exist - process it [18:36:23]req_shift_opened [18:36:23]FM_GetShiftState [18:36:23]SAM_PROTO_GetShiftState [18:36:23]wFMCommunicate request_size=4 [18:36:23]MH_SAM_APDU [18:36:23]CAPDU: 80 13 01 00 [18:36:23]Write to MH i2c: E2 08 00 61 40 80 13 01 00 00 00 00 00 1E [18:36:23]Write i2c OK [18:36:23]MH_I2C_Read... [18:36:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:36:23]Read from MH i2c: E2 [18:36:23]MH_I2C_Read... [18:36:23]Read from MH i2c: E2 0E 00 [18:36:23]MH_I2C_Read... [18:36:23]Read from MH i2c: E2 0E 00 61 40 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 E0 [18:36:23]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [18:36:23]wFMCommunicate OK [18:36:23]SAM_PROTO_GetShiftState done [18:36:23]FM_GetShiftState done [18:36:23]req_shift_opened done [18:36:23]requested_item shift.open_date is exist - process it [18:36:23]req_shift_open_date [18:36:23]req_shift_open_date done [18:36:23]produce_requested_data done [18:36:23]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123321,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [18:36:23]process_action_free close_receipt [18:36:23]json_value_free [18:36:23]json_value_free done [18:36:23]process_json_proto returns [18:36:23]Send response to host [18:36:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123321,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [18:36:23]free response buf [18:36:23]execute_script done [18:36:23]execute_script returns [18:36:23]free content buf [18:36:23]Sock 7.Close socket [18:36:23]Sock 7.Thread stoped [18:36:25]accept exits with 9 [18:36:25]New connection [18:36:25]New thread 3067395428 created [18:36:25]Thread 3067252068 joined [18:36:25]Waiting for new connection... [18:36:25] Sock 9.Parse request [18:36:25]Sock 9.Check first char [18:36:25]Sock 9.First char is OK [18:36:25]request: POST /json_proto HTTP/1.0 [18:36:25]Method: POST [18:36:25]URL: /json_proto [18:36:25]Method is POST - this is cgi request [18:36:25]url: /json_proto [18:36:25]query_string will be loaded in cgi processing [18:36:25]execute_cgi json_proto POST (null) [18:36:25]execute_cgi path=json_proto method=POST [18:36:25]POST find Content-Length [18:36:25]Host: 172.17.48.197:8080 [18:36:25]Content-Length: 820 [18:36:25]Content-Type: application/json [18:36:25] [18:36:25]POST finish read [18:36:25]Found Content-Length = 820 [18:36:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106268", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.30 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:36:25]execute_script... [18:36:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106268", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.30 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:36:25]POST & json_proto [18:36:25]process_json_proto [18:36:25]json parsed OK: [18:36:25]protocol is kg_v1.0 [18:36:25]action value=close_receipt [18:36:25]process_action close_receipt [18:36:25]cmd_close_receipt [18:36:25]MH_GetDate [18:36:25]Write to MH i2c: F0 00 00 62 40 91 [18:36:25]Write i2c OK [18:36:25]MH_I2C_Read... [18:36:25]Read from MH i2c: F0 [18:36:25]MH_I2C_Read... [18:36:25]Read from MH i2c: F0 09 00 [18:36:25]MH_I2C_Read... [18:36:25]Read from MH i2c: F0 09 00 62 40 00 2E C3 E4 65 6C AF E3 65 37 [18:36:25]GetLastDocTimeStamp 1709490982 [18:36:25]current date 1709490990 [18:36:25]FM_GetShiftState [18:36:25]SAM_PROTO_GetShiftState [18:36:25]wFMCommunicate request_size=4 [18:36:25]MH_SAM_APDU [18:36:25]CAPDU: 80 13 01 00 [18:36:25]Write to MH i2c: E2 08 00 63 40 80 13 01 00 00 00 00 00 20 [18:36:25]Write i2c OK [18:36:25]MH_I2C_Read... [18:36:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:36:25]OFD Sender: No OFD packet to send [18:36:25]Read from MH i2c: E2 [18:36:25]MH_I2C_Read... [18:36:25]Read from MH i2c: E2 0E 00 [18:36:25]MH_I2C_Read... [18:36:25]Read from MH i2c: E2 0E 00 63 40 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 E2 [18:36:25]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [18:36:25]wFMCommunicate OK [18:36:25]SAM_PROTO_GetShiftState done [18:36:25]FM_GetShiftState done [18:36:25]opened in 1709425579 [18:36:25]opened+sec_in_day 1709511979 [18:36:26]quantity*price = 100030 [18:36:26]sum+1 = 100031 [18:36:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.30 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 0.00 Безнал.: 1000.30 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 179 03.03.2024 18:36 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874798 ФД: 123322 ФПД: 276327028147406 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T183630&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123322&fm=276327028147406&tin=02508201610067®Number=0000000000090573&sum=100030 [18:36:27]StoreToDocumentArchive [18:36:27]shift 323 fd 123322 [18:36:27]save to /storage/0323/doc_00123322 [18:36:27]save last doc name /storage/0323/doc_00123322 to /storage/kkm_last_doc_name [18:36:27]save OK [18:36:27]Clear old archive folders... [18:36:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:36:27]tlvbuf is 00F04B20 [18:36:27]SAM_PROTO_ClearQueue [18:36:27]wFMCommunicate request_size=4 [18:36:27]MH_SAM_APDU [18:36:27]CAPDU: 80 09 00 00 [18:36:27]Write to MH i2c: E2 08 00 70 40 80 09 00 00 00 00 00 00 22 [18:36:27]Write i2c OK [18:36:27]MH_I2C_Read... [18:36:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:36:27]Read from MH i2c: E2 [18:36:27]MH_I2C_Read... [18:36:27]Read from MH i2c: E2 03 00 [18:36:27]MH_I2C_Read... [18:36:27]Read from MH i2c: E2 03 00 70 40 00 90 00 24 [18:36:27]RAPDU: 90 00 [18:36:27]wFMCommunicate OK [18:36:27]SAM_PROTO_ClearQueue done [18:36:27]KKMCreateOFDPacket [18:36:27]OFDProtocolAddRootSTLVToBuf [18:36:27]FM_MakeSignedData [18:36:27]FM_MakeSignedData [18:36:27]SAM_PROTO_SignData [18:36:27]wFMCommunicate request_size=4 [18:36:27]MH_SAM_APDU [18:36:27]CAPDU: 80 0D 01 02 [18:36:27]Write to MH i2c: E2 08 00 71 40 80 0D 01 02 00 00 00 00 2A [18:36:27]Write i2c OK [18:36:27]MH_I2C_Read... [18:36:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:36:27]Read from MH i2c: E2 [18:36:27]MH_I2C_Read... [18:36:27]Read from MH i2c: E2 03 00 [18:36:27]MH_I2C_Read... [18:36:27]Read from MH i2c: E2 03 00 71 40 00 90 00 25 [18:36:27]RAPDU: 90 00 [18:36:27]wFMCommunicate OK [18:36:27]wFMCommunicate request_size=255 [18:36:27]MH_SAM_APDU [18:36:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 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 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 2E C3 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 BA E1 01 00 35 04 06 00 FB [18:36:27]Write to MH i2c: E2 02 01 72 40 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 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 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 2E C3 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 BA E1 01 00 35 04 06 00 FB 00 00 9A [18:36:27]Write i2c OK [18:36:27]MH_I2C_Read... [18:36:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:36:27]Read from MH i2c: E2 [18:36:27]MH_I2C_Read... [18:36:27]Read from MH i2c: E2 03 00 [18:36:27]MH_I2C_Read... [18:36:27]Read from MH i2c: E2 03 00 72 40 00 90 00 26 [18:36:27]RAPDU: 90 00 [18:36:27]wFMCommunicate OK [18:36:27]wFMCommunicate request_size=10 [18:36:27]MH_SAM_APDU [18:36:27]CAPDU: 80 0D 02 02 05 51 66 5A C4 CE [18:36:27]Write to MH i2c: E2 0D 00 73 40 80 0D 02 02 05 00 51 66 5A C4 CE 00 00 DA [18:36:27]Write i2c OK [18:36:27]MH_I2C_Read... [18:36:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:36:27]Read from MH i2c: E2 [18:36:27]MH_I2C_Read... [18:36:27]Read from MH i2c: E2 03 00 [18:36:27]MH_I2C_Read... [18:36:27]Read from MH i2c: E2 03 00 73 40 00 90 00 27 [18:36:27]RAPDU: 90 00 [18:36:27]wFMCommunicate OK [18:36:27]wFMCommunicate request_size=4 [18:36:27]MH_SAM_APDU [18:36:27]CAPDU: 80 0D 03 02 [18:36:27]Write to MH i2c: E2 08 00 74 40 80 0D 03 02 00 00 00 00 2F [18:36:27]Write i2c OK [18:36:27]MH_I2C_Read... [18:36:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:36:27]Read from MH i2c: E2 [18:36:27]MH_I2C_Read... [18:36:27]Read from MH i2c: E2 0B 00 [18:36:27]MH_I2C_Read... [18:36:27]Read from MH i2c: E2 0B 00 74 40 00 40 99 5D 2D E8 15 F9 A2 90 00 2B [18:36:27]RAPDU: 40 99 5D 2D E8 15 F9 A2 90 00 [18:36:27]wFMCommunicate OK [18:36:27]SAM_PROTO_SignData done [18:36:27]FM_MakeSignedData done [18:36:27]CreateOFDProtocolMessage [18:36:27]wFMCommunicate request_size=4 [18:36:27]MH_SAM_APDU [18:36:27]CAPDU: 80 11 00 00 [18:36:27]Write to MH i2c: E2 08 00 75 40 80 11 00 00 00 00 00 00 2F [18:36:27]Write i2c OK [18:36:27]MH_I2C_Read... [18:36:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:36:27]Read from MH i2c: E2 [18:36:27]MH_I2C_Read... [18:36:27]Read from MH i2c: E2 17 00 [18:36:27]MH_I2C_Read... [18:36:27]Read from MH i2c: E2 17 00 75 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 8D [18:36:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [18:36:27]wFMCommunicate OK [18:36:27]CreateOFDProtocolMessage done [18:36:27]OFDSenderStorePacket 123322 [18:36:27]StoreOFDPacket docnum=123322 [18:36:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 71 97 07 01 35 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 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 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 2E C3 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 BA E1 01 00 35 04 06 00 FB 51 66 5A C4 CE 40 99 5D 2D E8 15 F9 A2 [18:36:27]CheckFolder [18:36:27]dirname=/storage/ofd_packets [18:36:27]CheckFolder done [18:36:27]ProducePacketName [18:36:27]name=ofd_packets/00123322 [18:36:27]NVStorageSaveData ofd_packets/00123322 [18:36:27]File name is /storage/ofd_packets/00123322 [18:36:27]Write 301 bytes [18:36:27]NVStorageSaveData done [18:36:27]OFDSenderStorePacket done [18:36:27]KKMCreateOFDPacket done [18:36:27]NVStorageSaveData kkm_last_timestamp [18:36:27]File name is /storage/kkm_last_timestamp [18:36:27]Write 4 bytes [18:36:27]NVStorageSaveData done [18:36:27]ExternCall_PrintAddStr [18:36:27]wPrintStart [18:36:27]Write to MH i2c: 01 00 00 76 40 B6 [18:36:27]Write i2c OK [18:36:27]MH_I2C_Read... [18:36:27]Read from MH i2c: 01 [18:36:27]MH_I2C_Read... [18:36:27]Read from MH i2c: 01 07 00 [18:36:27]MH_I2C_Read... [18:36:27]Read from MH i2c: 01 07 00 76 40 00 00 00 00 00 FF 0F CB [18:36:27]RasterBufferAndPrint [18:36:27]line Счет N : (1)1106268 [18:36:27]line ИНН: 02508201610067 [18:36:27]line Контрольно-Кассовый Чек [18:36:27]line ПРОДАЖА [18:36:27]line ТРК (МРК, ГНК) : 62 [18:36:27]line Товар: 2710124130 [18:36:27]line Аи-92-К-5 [18:36:27]line 16.160 * 61.90 [18:36:27]line = 1000.30 [18:36:27]line НДС 12% НСП 1% [18:36:27]line > о реализуемом товаре [18:36:27]line ИТОГО: 1000.30 [18:36:27]line НСП 1% : 8.85 [18:36:27]line НДС 12% : 106.23 [18:36:27]line Наличными: 0.00 [18:36:27]line Безнал.: 1000.30 [18:36:27]line Место: АЗС № 25 "Партнер Нефть" [18:36:27]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [18:36:27]line СНО: Общий режим [18:36:27]line Чек 179 03.03.2024 18:36 [18:36:27]line Смена: 323 ФФД: 1.0 [18:36:27]line ЗНМ: 0300000019 [18:36:27]line РНМ: 0000000000090573 [18:36:27]line Версия ККМ: 001 [18:36:27]line Платежная система: Бакай Банк [18:36:27]line ФМ: 0000000000874798 [18:36:27]line ФД: 123322 [18:36:27]line ФПД: 276327028147406 [18:36:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T183630&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123322&fm=276327028147406&tin=02508201610067®Number=0000000000090573&sum=100030 [18:36:27]OFD Sender: Processing packet 123322 [packets to send 112, broken 111] [18:36:27]ProducePacketName [18:36:27]name=ofd_packets/00123322 [18:36:27]OFD Sender: To server: pG, [18:36:27]CommunicateWithHost lk.salyk.kg:30040 [18:36:27]ConnectInit lk.salyk.kg [18:36:27]written 0, free lines is 4095 [18:36:27]Connected sock=10 [18:36: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 37 39 38 0F 01 00 00 71 97 07 01 35 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 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 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 2E C3 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 BA E1 01 00 35 04 06 00 FB 51 66 5A C4 CE 40 99 5D 2D E8 15 F9 A2 [18:36:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 A7 B2 47 00 D8 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 37 39 38 10 04 04 00 BA E1 01 00 F4 03 04 00 59 6F E4 65 B6 04 01 00 00 DA 9C E0 8B 60 74 89 F0 [18:36:27]CommunicateWithHost err = 0 [18:36:27]CheckOFDResponse [18:36:27]1017 (14) - 77093643461234 [18:36:27]1041 (16) - 0000000000874798 [18:36:27]1040 (4) - 123322 [18:36:27]1012 (4) - 03.03.2024 12:38 [18:36:27]1206 (1) - 0 [18:36:27]OFD Sender: Remove packet 123322 [18:36:27]ProducePacketName [18:36:27]name=ofd_packets/00123322 [18:36:27]NVStorageDeleteData [18:36:28]Write to MH i2c: 01 00 00 A0 40 E0 [18:36:28]Write i2c OK [18:36:28]MH_I2C_Read... [18:36:28]Read from MH i2c: 01 [18:36:28]MH_I2C_Read... [18:36:28]Read from MH i2c: 01 07 00 [18:36:28]MH_I2C_Read... [18:36:28]Read from MH i2c: 01 07 00 A0 40 00 00 00 00 00 08 0D FC [18:36:28]RasterBufferAndPrint [18:36:28]line [18:36:28]line [18:36:28]line [18:36:28]line [18:36:28]line [18:36:28]written 0, free lines is 3344 [18:36:28]MH_Cut [18:36:28]Write to MH i2c: D1 01 00 A7 40 01 B9 [18:36:28]Write i2c OK [18:36:28]MH_I2C_Read... [18:36:28]Read from MH i2c: D1 [18:36:28]MH_I2C_Read... [18:36:28]Read from MH i2c: D1 01 00 [18:36:28]MH_I2C_Read... [18:36:28]Read from MH i2c: D1 01 00 A7 40 00 B8 [18:36:28]Write to MH i2c: 01 00 00 A8 40 E8 [18:36:28]Write i2c OK [18:36:28]MH_I2C_Read... [18:36:28]OFD Sender: No OFD packet to send [18:36:28]*** Cut start [18:36:28]*** Purtial cut [18:36:28]*** Stage 1: CUTSNS_PIN = 1 [18:36:30]Read from MH i2c: 01 [18:36:30]MH_I2C_Read... [18:36:30]*** Stop cut motor [18:36:30]*** Cut end [18:36:30]Read from MH i2c: 01 07 00 [18:36:30]MH_I2C_Read... [18:36:30]Read from MH i2c: 01 07 00 A8 40 00 00 00 00 00 FF 0F FD [18:36:30]process_action close_receipt done [18:36:30]requested_data is exist [18:36:30]produce_requested_data [18:36:30]requested_item fm.sn is exist - process it [18:36:30]wFMCommunicate request_size=4 [18:36:30]MH_SAM_APDU [18:36:30]CAPDU: 80 11 00 00 [18:36:30]Write to MH i2c: E2 08 00 A9 40 80 11 00 00 00 00 00 00 63 [18:36:30]Write i2c OK [18:36:30]MH_I2C_Read... [18:36:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:36:30]Read from MH i2c: E2 [18:36:30]MH_I2C_Read... [18:36:30]Read from MH i2c: E2 17 00 [18:36:30]MH_I2C_Read... [18:36:30]Read from MH i2c: E2 17 00 A9 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 C1 [18:36:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [18:36:30]wFMCommunicate OK [18:36:30]requested_item fd.num is exist - process it [18:36:30]SAM_PROTO_GetFieldsCounters [18:36:30]wFMCommunicate request_size=4 [18:36:30]MH_SAM_APDU [18:36:30]CAPDU: 80 13 00 00 [18:36:30]Write to MH i2c: E2 08 00 AA 40 80 13 00 00 00 00 00 00 66 [18:36:30]Write i2c OK [18:36:30]MH_I2C_Read... [18:36:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:36:31]Read from MH i2c: E2 [18:36:31]MH_I2C_Read... [18:36:31]Read from MH i2c: E2 62 00 [18:36:31]MH_I2C_Read... [18:36:31]Read from MH i2c: E2 62 00 AA 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 BA E1 01 00 0E 04 04 00 43 01 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 8A [18:36: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 BA E1 01 00 0E 04 04 00 43 01 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 [18:36:31]wFMCommunicate OK [18:36:31]SAM_PROTO_GetFieldsCounters done [18:36:31]requested_item shift.num is exist - process it [18:36:31]requested_item shift.opened is exist - process it [18:36:31]req_shift_opened [18:36:31]FM_GetShiftState [18:36:31]SAM_PROTO_GetShiftState [18:36:31]wFMCommunicate request_size=4 [18:36:31]MH_SAM_APDU [18:36:31]CAPDU: 80 13 01 00 [18:36:31]Write to MH i2c: E2 08 00 AB 40 80 13 01 00 00 00 00 00 68 [18:36:31]Write i2c OK [18:36:31]MH_I2C_Read... [18:36:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:36:31]Read from MH i2c: E2 [18:36:31]MH_I2C_Read... [18:36:31]Read from MH i2c: E2 0E 00 [18:36:31]MH_I2C_Read... [18:36:31]Read from MH i2c: E2 0E 00 AB 40 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 2A [18:36:31]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [18:36:31]wFMCommunicate OK [18:36:31]SAM_PROTO_GetShiftState done [18:36:31]FM_GetShiftState done [18:36:31]req_shift_opened done [18:36:31]requested_item shift.open_date is exist - process it [18:36:31]req_shift_open_date [18:36:31]req_shift_open_date done [18:36:31]produce_requested_data done [18:36:31]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123322,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [18:36:31]process_action_free close_receipt [18:36:31]json_value_free [18:36:31]json_value_free done [18:36:31]process_json_proto returns [18:36:31]Send response to host [18:36:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123322,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [18:36:31]free response buf [18:36:31]execute_script done [18:36:31]execute_script returns [18:36:31]free content buf [18:36:31]Sock 9.Close socket [18:36:31]Sock 9.Thread stoped [18:36:33]OFD Sender: No OFD packet to send [18:36:35]int [18:36:35]Write to MH i2c: 01 00 00 AC 40 EC [18:36:35]*** FLAG_PRN_PAP1 set [18:36:35]Write i2c OK [18:36:35]MH_I2C_Read... [18:36:35]Read from MH i2c: 01 [18:36:35]MH_I2C_Read... [18:36:35]Read from MH i2c: 01 07 00 [18:36:35]MH_I2C_Read... [18:36:35]Read from MH i2c: 01 07 00 AC 40 00 01 00 00 00 FF 0F 02 [18:36:35]state=0 [18:36:35]No paper [18:36:35]int [18:36:35]Write to MH i2c: 01 00 00 AD 40 ED [18:36:35]*** FLAG_PRN_PAP2 set [18:36:35]Write i2c OK [18:36:35]MH_I2C_Read... [18:36:35]Read from MH i2c: 01 [18:36:35]MH_I2C_Read... [18:36:35]Read from MH i2c: 01 07 00 [18:36:35]MH_I2C_Read... [18:36:35]Read from MH i2c: 01 07 00 AD 40 00 03 00 00 00 FF 0F 05 [18:36:35]state=0 [18:36:35]No paper [18:36:35]Cover opened [18:36:36]int [18:36:36]Write to MH i2c: 01 00 00 AE 40 EE [18:36:36]*** FLAG_PRN_PAP2 reset [18:36:36]Write i2c OK [18:36:36]MH_I2C_Read... [18:36:36]Read from MH i2c: 01 [18:36:36]MH_I2C_Read... [18:36:36]Read from MH i2c: 01 07 00 [18:36:36]MH_I2C_Read... [18:36:36]Read from MH i2c: 01 07 00 AE 40 00 01 00 00 00 FF 0F 04 [18:36:36]state=3 [18:36:36]No paper [18:36:36]Cover closed [18:36:36]int [18:36:36]Write to MH i2c: 01 00 00 AF 40 EF [18:36:36]*** FLAG_PRN_PAP2 set [18:36:36]Write i2c OK [18:36:36]MH_I2C_Read... [18:36:36]Read from MH i2c: 01 [18:36:36]MH_I2C_Read... [18:36:36]Read from MH i2c: 01 07 00 [18:36:36]MH_I2C_Read... [18:36:36]Read from MH i2c: 01 07 00 AF 40 00 03 00 00 00 FF 0F 07 [18:36:36]state=0 [18:36:36]No paper [18:36:36]Cover opened [18:36:38]OFD Sender: No OFD packet to send [18:36:41]Write to MH i2c: 01 00 00 B0 40 F0 [18:36:41]Write i2c OK [18:36:41]MH_I2C_Read... [18:36:41]Read from MH i2c: 01 [18:36:41]MH_I2C_Read... [18:36:41]Read from MH i2c: 01 07 00 [18:36:41]MH_I2C_Read... [18:36:41]Read from MH i2c: 01 07 00 B0 40 00 03 00 00 00 FF 0F 08 [18:36:41]state=3 [18:36:41]No paper [18:36:41]Cover opened [18:36:43]OFD Sender: No OFD packet to send [18:36:46]Write to MH i2c: 01 00 00 B1 40 F1 [18:36:46]Write i2c OK [18:36:46]MH_I2C_Read... [18:36:46]Read from MH i2c: 01 [18:36:46]MH_I2C_Read... [18:36:46]Read from MH i2c: 01 07 00 [18:36:46]MH_I2C_Read... [18:36:46]Read from MH i2c: 01 07 00 B1 40 00 03 00 00 00 FF 0F 09 [18:36:46]state=3 [18:36:46]No paper [18:36:46]Cover opened [18:36:48]int [18:36:48]Write to MH i2c: 01 00 00 B2 40 F2 [18:36:48]*** FLAG_PRN_PAP2 reset [18:36:48]Write i2c OK [18:36:48]MH_I2C_Read... [18:36:48]Read from MH i2c: 01 [18:36:48]MH_I2C_Read... [18:36:48]*** FLAG_PRN_PAP1 reset [18:36:48]Read from MH i2c: 01 07 00 [18:36:48]MH_I2C_Read... [18:36:48]Read from MH i2c: 01 07 00 B2 40 00 00 00 00 00 FF 0F 07 [18:36:48]state=3 [18:36:48]Cover closed [18:36:48]OFD Sender: No OFD packet to send [18:36:53]OFD Sender: No OFD packet to send [18:36:58]OFD Sender: No OFD packet to send [18:37:03]OFD Sender: No OFD packet to send [18:37:08]OFD Sender: No OFD packet to send [18:37:13]OFD Sender: No OFD packet to send [18:37:18]OFD Sender: No OFD packet to send [18:37:23]OFD Sender: No OFD packet to send [18:37:28]OFD Sender: No OFD packet to send [18:37:33]OFD Sender: No OFD packet to send [18:37:38]OFD Sender: No OFD packet to send [18:37:43]OFD Sender: No OFD packet to send [18:37:48]OFD Sender: No OFD packet to send [18:37:53]OFD Sender: No OFD packet to send [18:37:58]OFD Sender: No OFD packet to send [18:38:03]OFD Sender: No OFD packet to send [18:38:08]OFD Sender: No OFD packet to send [18:38:13]OFD Sender: No OFD packet to send [18:38:18]OFD Sender: No OFD packet to send [18:38:23]OFD Sender: No OFD packet to send [18:38:28]OFD Sender: No OFD packet to send [18:38:32]accept exits with 7 [18:38:32]New connection [18:38:32]New thread 3067252068 created [18:38:32]Thread 3067395428 joined [18:38:32]Waiting for new connection... [18:38:32] Sock 7.Parse request [18:38:32]Sock 7.Check first char [18:38:32]Sock 7.First char is OK [18:38:32]request: POST /json_proto HTTP/1.0 [18:38:32]Method: POST [18:38:32]URL: /json_proto [18:38:32]Method is POST - this is cgi request [18:38:32]url: /json_proto [18:38:32]query_string will be loaded in cgi processing [18:38:32]execute_cgi json_proto POST (null) [18:38:32]execute_cgi path=json_proto method=POST [18:38:32]POST find Content-Length [18:38:32]Host: 172.17.48.197:8080 [18:38:32]Content-Length: 1218 [18:38:32]Content-Type: application/json [18:38:32] [18:38:32]POST finish read [18:38:32]Found Content-Length = 1218 [18:38:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106270\u000A03.03.2024 18:34\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 16.160 x 61.90\u000A\u0418\u0422\u041E\u0413: 1000.30\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3578392\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:38:32]execute_script... [18:38:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106270\u000A03.03.2024 18:34\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 16.160 x 61.90\u000A\u0418\u0422\u041E\u0413: 1000.30\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3578392\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:38:32]POST & json_proto [18:38:32]process_json_proto [18:38:32]json parsed OK: [18:38:32]protocol is kg_v1.0 [18:38:32]action value=print_text [18:38:32]process_action print_text [18:38:32]cmd_print_text [18:38:32]ExternCall_PrintAddStr [18:38:32]wPrintStart [18:38:32]Write to MH i2c: 01 00 00 B3 40 F3 [18:38:32]Write i2c OK [18:38:32]MH_I2C_Read... [18:38:32]Read from MH i2c: 01 [18:38:32]MH_I2C_Read... [18:38:32]Read from MH i2c: 01 07 00 [18:38:32]MH_I2C_Read... [18:38:32]Read from MH i2c: 01 07 00 B3 40 00 00 00 00 00 FF 0F 08 [18:38:32]RasterBufferAndPrint [18:38:32]line *****ТОВАРНЫЙ ЧЕК***** [18:38:32]line АЗС 25 [18:38:32]line Партнер нефть [18:38:32]line 02508201610067 [18:38:32]line Кассир : Турдумбек у. К. [18:38:32]line Счет N : (1)1106270 [18:38:32]line 03.03.2024 18:34 [18:38:32]line ПРОДАЖА [18:38:32]line ТРК (МРК, ГНК): 11 [18:38:32]line Вид ГСМ : 2710124130 [18:38:32]line Аи-92-К-5 [18:38:32]line 16.160 x 61.90 [18:38:32]line ИТОГ: 1000.30 [18:38:32]line Тип оплаты: Талоны: Топливные Талоны [18:38:32]line 3578392 [18:38:32]line ______________________ [18:38:32]line (подпись) [18:38:32]written 0, free lines is 4095 [18:38:32]Write to MH i2c: 01 00 00 C8 40 08 [18:38:32]Write i2c OK [18:38:32]MH_I2C_Read... [18:38:32]Read from MH i2c: 01 [18:38:32]MH_I2C_Read... [18:38:32]Read from MH i2c: 01 07 00 [18:38:32]MH_I2C_Read... [18:38:32]Read from MH i2c: 01 07 00 C8 40 00 00 00 00 00 F5 0D 11 [18:38:32]RasterBufferAndPrint [18:38:32]line [18:38:32]line [18:38:32]line [18:38:32]line [18:38:32]line [18:38:32]written 0, free lines is 3575 [18:38:32]MH_Cut [18:38:32]Write to MH i2c: D1 01 00 CF 40 01 E1 [18:38:32]Write i2c OK [18:38:32]MH_I2C_Read... [18:38:32]Read from MH i2c: D1 [18:38:32]MH_I2C_Read... [18:38:32]Read from MH i2c: D1 01 00 [18:38:32]MH_I2C_Read... [18:38:32]Read from MH i2c: D1 01 00 CF 40 00 E0 [18:38:32]Write to MH i2c: 01 00 00 D0 40 10 [18:38:32]Write i2c OK [18:38:32]MH_I2C_Read... [18:38:33]*** Cut start [18:38:33]*** Purtial cut [18:38:33]*** Stage 1: CUTSNS_PIN = 1 [18:38:33]OFD Sender: No OFD packet to send [18:38:35]Read from MH i2c: 01 [18:38:35]MH_I2C_Read... [18:38:35]Read from MH i2c: 01 07 00 [18:38:35]MH_I2C_Read... [18:38:35]*** Stop cut motor [18:38:35]*** Cut end [18:38:35]Read from MH i2c: 01 07 00 D0 40 00 00 00 00 00 FF 0F 25 [18:38:35]process_action print_text done [18:38:35]requested_data is exist [18:38:35]produce_requested_data [18:38:35]requested_item fm.sn is exist - process it [18:38:35]wFMCommunicate request_size=4 [18:38:35]MH_SAM_APDU [18:38:35]CAPDU: 80 11 00 00 [18:38:35]Write to MH i2c: E2 08 00 D1 40 80 11 00 00 00 00 00 00 8B [18:38:35]Write i2c OK [18:38:35]MH_I2C_Read... [18:38:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:38:35]Read from MH i2c: E2 [18:38:35]MH_I2C_Read... [18:38:35]Read from MH i2c: E2 17 00 [18:38:35]MH_I2C_Read... [18:38:35]Read from MH i2c: E2 17 00 D1 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 E9 [18:38:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [18:38:35]wFMCommunicate OK [18:38:35]requested_item fd.num is exist - process it [18:38:35]SAM_PROTO_GetFieldsCounters [18:38:35]wFMCommunicate request_size=4 [18:38:35]MH_SAM_APDU [18:38:35]CAPDU: 80 13 00 00 [18:38:35]Write to MH i2c: E2 08 00 D2 40 80 13 00 00 00 00 00 00 8E [18:38:35]Write i2c OK [18:38:35]MH_I2C_Read... [18:38:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:38:35]Read from MH i2c: E2 [18:38:35]MH_I2C_Read... [18:38:35]Read from MH i2c: E2 62 00 [18:38:35]MH_I2C_Read... [18:38:35]Read from MH i2c: E2 62 00 D2 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 BA E1 01 00 0E 04 04 00 43 01 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 B2 [18:38: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 BA E1 01 00 0E 04 04 00 43 01 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 [18:38:35]wFMCommunicate OK [18:38:35]SAM_PROTO_GetFieldsCounters done [18:38:35]requested_item shift.num is exist - process it [18:38:35]requested_item shift.opened is exist - process it [18:38:35]req_shift_opened [18:38:35]FM_GetShiftState [18:38:35]SAM_PROTO_GetShiftState [18:38:35]wFMCommunicate request_size=4 [18:38:35]MH_SAM_APDU [18:38:35]CAPDU: 80 13 01 00 [18:38:35]Write to MH i2c: E2 08 00 D3 40 80 13 01 00 00 00 00 00 90 [18:38:35]Write i2c OK [18:38:35]MH_I2C_Read... [18:38:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:38:35]Read from MH i2c: E2 [18:38:35]MH_I2C_Read... [18:38:35]Read from MH i2c: E2 0E 00 [18:38:35]MH_I2C_Read... [18:38:35]Read from MH i2c: E2 0E 00 D3 40 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 52 [18:38:35]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [18:38:35]wFMCommunicate OK [18:38:35]SAM_PROTO_GetShiftState done [18:38:35]FM_GetShiftState done [18:38:35]req_shift_opened done [18:38:35]requested_item shift.open_date is exist - process it [18:38:35]req_shift_open_date [18:38:35]req_shift_open_date done [18:38:35]produce_requested_data done [18:38:35]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123322,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [18:38:35]process_action_free print_text [18:38:35]json_value_free [18:38:35]json_value_free done [18:38:35]process_json_proto returns [18:38:35]Send response to host [18:38:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123322,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [18:38:35]free response buf [18:38:35]execute_script done [18:38:35]execute_script returns [18:38:35]free content buf [18:38:35]Sock 7.Close socket [18:38:35]Sock 7.Thread stoped [18:38:38]OFD Sender: No OFD packet to send [18:38:43]OFD Sender: No OFD packet to send [18:38:48]OFD Sender: No OFD packet to send [18:38:53]OFD Sender: No OFD packet to send [18:38:58]OFD Sender: No OFD packet to send [18:39:02]accept exits with 9 [18:39:02]New connection [18:39:02]New thread 3067395428 created [18:39:02]Thread 3067252068 joined [18:39:02]Waiting for new connection... [18:39:02] Sock 9.Parse request [18:39:02]Sock 9.Check first char [18:39:02]Sock 9.First char is OK [18:39:02]request: POST /json_proto HTTP/1.0 [18:39:02]Method: POST [18:39:02]URL: /json_proto [18:39:02]Method is POST - this is cgi request [18:39:02]url: /json_proto [18:39:02]query_string will be loaded in cgi processing [18:39:02]execute_cgi json_proto POST (null) [18:39:02]execute_cgi path=json_proto method=POST [18:39:02]POST find Content-Length [18:39:02]Host: 172.17.48.197:8080 [18:39:02]Content-Length: 1218 [18:39:02]Content-Type: application/json [18:39:02] [18:39:02]POST finish read [18:39:02]Found Content-Length = 1218 [18:39:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106271\u000A03.03.2024 18:35\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 52\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 16.160 x 61.90\u000A\u0418\u0422\u041E\u0413: 1000.30\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3583475\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:39:02]execute_script... [18:39:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106271\u000A03.03.2024 18:35\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 52\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 16.160 x 61.90\u000A\u0418\u0422\u041E\u0413: 1000.30\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3583475\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:39:02]POST & json_proto [18:39:02]process_json_proto [18:39:02]json parsed OK: [18:39:02]protocol is kg_v1.0 [18:39:02]action value=print_text [18:39:02]process_action print_text [18:39:02]cmd_print_text [18:39:02]ExternCall_PrintAddStr [18:39:02]wPrintStart [18:39:02]Write to MH i2c: 01 00 00 D4 40 14 [18:39:02]Write i2c OK [18:39:02]MH_I2C_Read... [18:39:02]Read from MH i2c: 01 [18:39:02]MH_I2C_Read... [18:39:02]Read from MH i2c: 01 07 00 [18:39:02]MH_I2C_Read... [18:39:02]Read from MH i2c: 01 07 00 D4 40 00 00 00 00 00 FF 0F 29 [18:39:02]RasterBufferAndPrint [18:39:02]line *****ТОВАРНЫЙ ЧЕК***** [18:39:02]line АЗС 25 [18:39:02]line Партнер нефть [18:39:02]line 02508201610067 [18:39:02]line Кассир : Турдумбек у. К. [18:39:02]line Счет N : (1)1106271 [18:39:02]line 03.03.2024 18:35 [18:39:02]line ПРОДАЖА [18:39:02]line ТРК (МРК, ГНК): 52 [18:39:02]line Вид ГСМ : 2710124130 [18:39:02]line Аи-92-К-5 [18:39:02]line 16.160 x 61.90 [18:39:02]line ИТОГ: 1000.30 [18:39:02]line Тип оплаты: Талоны: Топливные Талоны [18:39:02]line 3583475 [18:39:02]line ______________________ [18:39:02]line (подпись) [18:39:02]written 0, free lines is 4095 [18:39:02]Write to MH i2c: 01 00 00 E9 40 29 [18:39:02]Write i2c OK [18:39:02]MH_I2C_Read... [18:39:02]Read from MH i2c: 01 [18:39:02]MH_I2C_Read... [18:39:02]Read from MH i2c: 01 07 00 [18:39:02]MH_I2C_Read... [18:39:02]Read from MH i2c: 01 07 00 E9 40 00 00 00 00 00 F5 0D 32 [18:39:02]RasterBufferAndPrint [18:39:02]line [18:39:02]line [18:39:02]line [18:39:02]line [18:39:02]line [18:39:02]written 0, free lines is 3574 [18:39:03]MH_Cut [18:39:03]Write to MH i2c: D1 01 00 F0 40 01 02 [18:39:03]Write i2c OK [18:39:03]MH_I2C_Read... [18:39:03]Read from MH i2c: D1 [18:39:03]MH_I2C_Read... [18:39:03]Read from MH i2c: D1 01 00 [18:39:03]MH_I2C_Read... [18:39:03]Read from MH i2c: D1 01 00 F0 40 00 01 [18:39:03]Write to MH i2c: 01 00 00 F1 40 31 [18:39:03]Write i2c OK [18:39:03]MH_I2C_Read... [18:39:03]*** Cut start [18:39:03]*** Purtial cut [18:39:03]*** Stage 1: CUTSNS_PIN = 1 [18:39:03]OFD Sender: No OFD packet to send [18:39:05]Read from MH i2c: 01 [18:39:05]MH_I2C_Read... [18:39:05]Read from MH i2c: 01 07 00 [18:39:05]MH_I2C_Read... [18:39:05]*** Stop cut motor [18:39:05]*** Cut end [18:39:05]Read from MH i2c: 01 07 00 F1 40 00 00 00 00 00 FF 0F 46 [18:39:05]process_action print_text done [18:39:05]requested_data is exist [18:39:05]produce_requested_data [18:39:05]requested_item fm.sn is exist - process it [18:39:05]wFMCommunicate request_size=4 [18:39:05]MH_SAM_APDU [18:39:05]CAPDU: 80 11 00 00 [18:39:05]Write to MH i2c: E2 08 00 F2 40 80 11 00 00 00 00 00 00 AC [18:39:05]Write i2c OK [18:39:05]MH_I2C_Read... [18:39:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:39:05]Read from MH i2c: E2 [18:39:05]MH_I2C_Read... [18:39:05]Read from MH i2c: E2 17 00 [18:39:05]MH_I2C_Read... [18:39:05]Read from MH i2c: E2 17 00 F2 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 0A [18:39:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [18:39:05]wFMCommunicate OK [18:39:05]requested_item fd.num is exist - process it [18:39:05]SAM_PROTO_GetFieldsCounters [18:39:05]wFMCommunicate request_size=4 [18:39:05]MH_SAM_APDU [18:39:05]CAPDU: 80 13 00 00 [18:39:05]Write to MH i2c: E2 08 00 F3 40 80 13 00 00 00 00 00 00 AF [18:39:05]Write i2c OK [18:39:05]MH_I2C_Read... [18:39:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:39:05]Read from MH i2c: E2 [18:39:05]MH_I2C_Read... [18:39:05]Read from MH i2c: E2 62 00 [18:39:05]MH_I2C_Read... [18:39:05]Read from MH i2c: E2 62 00 F3 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 BA E1 01 00 0E 04 04 00 43 01 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 D3 [18:39: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 BA E1 01 00 0E 04 04 00 43 01 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 [18:39:05]wFMCommunicate OK [18:39:05]SAM_PROTO_GetFieldsCounters done [18:39:05]requested_item shift.num is exist - process it [18:39:05]requested_item shift.opened is exist - process it [18:39:05]req_shift_opened [18:39:05]FM_GetShiftState [18:39:05]SAM_PROTO_GetShiftState [18:39:05]wFMCommunicate request_size=4 [18:39:05]MH_SAM_APDU [18:39:05]CAPDU: 80 13 01 00 [18:39:05]Write to MH i2c: E2 08 00 F4 40 80 13 01 00 00 00 00 00 B1 [18:39:05]Write i2c OK [18:39:05]MH_I2C_Read... [18:39:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:39:05]Read from MH i2c: E2 [18:39:05]MH_I2C_Read... [18:39:05]Read from MH i2c: E2 0E 00 [18:39:05]MH_I2C_Read... [18:39:05]Read from MH i2c: E2 0E 00 F4 40 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 73 [18:39:05]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [18:39:05]wFMCommunicate OK [18:39:05]SAM_PROTO_GetShiftState done [18:39:05]FM_GetShiftState done [18:39:05]req_shift_opened done [18:39:05]requested_item shift.open_date is exist - process it [18:39:05]req_shift_open_date [18:39:05]req_shift_open_date done [18:39:05]produce_requested_data done [18:39:05]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123322,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [18:39:05]process_action_free print_text [18:39:05]json_value_free [18:39:05]json_value_free done [18:39:05]process_json_proto returns [18:39:05]Send response to host [18:39:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123322,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [18:39:05]free response buf [18:39:05]execute_script done [18:39:05]execute_script returns [18:39:05]free content buf [18:39:05]Sock 9.Close socket [18:39:05]Sock 9.Thread stoped [18:39:08]OFD Sender: No OFD packet to send [18:39:13]OFD Sender: No OFD packet to send [18:39:18]OFD Sender: No OFD packet to send [18:39:23]OFD Sender: No OFD packet to send [18:39:28]OFD Sender: No OFD packet to send [18:39:33]OFD Sender: No OFD packet to send [18:39:38]OFD Sender: No OFD packet to send [18:39:43]OFD Sender: No OFD packet to send [18:39:48]OFD Sender: No OFD packet to send [18:39:53]OFD Sender: No OFD packet to send [18:39:58]OFD Sender: No OFD packet to send [18:40:03]OFD Sender: No OFD packet to send [18:40:08]OFD Sender: No OFD packet to send [18:40:13]OFD Sender: No OFD packet to send [18:40:18]OFD Sender: No OFD packet to send [18:40:23]OFD Sender: No OFD packet to send [18:40:28]OFD Sender: No OFD packet to send [18:40:33]OFD Sender: No OFD packet to send [18:40:38]OFD Sender: No OFD packet to send [18:40:43]OFD Sender: No OFD packet to send [18:40:48]OFD Sender: No OFD packet to send [18:40:53]OFD Sender: No OFD packet to send [18:40:58]OFD Sender: No OFD packet to send [18:40:59]accept exits with 7 [18:40:59]New connection [18:40:59]New thread 3067252068 created [18:40:59]Thread 3067395428 joined [18:40:59]Waiting for new connection... [18:40:59] Sock 7.Parse request [18:40:59]Sock 7.Check first char [18:40:59]Sock 7.First char is OK [18:40:59]request: POST /json_proto HTTP/1.0 [18:40:59]Method: POST [18:40:59]URL: /json_proto [18:40:59]Method is POST - this is cgi request [18:40:59]url: /json_proto [18:40:59]query_string will be loaded in cgi processing [18:40:59]execute_cgi json_proto POST (null) [18:40:59]execute_cgi path=json_proto method=POST [18:40:59]POST find Content-Length [18:40:59]Host: 172.17.48.197:8080 [18:40:59]Content-Length: 1218 [18:40:59]Content-Type: application/json [18:40:59] [18:40:59]POST finish read [18:40:59]Found Content-Length = 1218 [18:40:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106272\u000A03.03.2024 18:37\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 16.160 x 61.90\u000A\u0418\u0422\u041E\u0413: 1000.30\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3583474\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:40:59]execute_script... [18:40:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106272\u000A03.03.2024 18:37\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 16.160 x 61.90\u000A\u0418\u0422\u041E\u0413: 1000.30\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3583474\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:40:59]POST & json_proto [18:40:59]process_json_proto [18:40:59]json parsed OK: [18:40:59]protocol is kg_v1.0 [18:40:59]action value=print_text [18:40:59]process_action print_text [18:40:59]cmd_print_text [18:40:59]ExternCall_PrintAddStr [18:40:59]wPrintStart [18:40:59]Write to MH i2c: 01 00 00 F5 40 35 [18:40:59]Write i2c OK [18:40:59]MH_I2C_Read... [18:40:59]Read from MH i2c: 01 [18:40:59]MH_I2C_Read... [18:40:59]Read from MH i2c: 01 07 00 [18:40:59]MH_I2C_Read... [18:40:59]Read from MH i2c: 01 07 00 F5 40 00 00 00 00 00 FF 0F 4A [18:40:59]RasterBufferAndPrint [18:40:59]line *****ТОВАРНЫЙ ЧЕК***** [18:40:59]line АЗС 25 [18:40:59]line Партнер нефть [18:40:59]line 02508201610067 [18:40:59]line Кассир : Турдумбек у. К. [18:40:59]line Счет N : (1)1106272 [18:40:59]line 03.03.2024 18:37 [18:40:59]line ПРОДАЖА [18:40:59]line ТРК (МРК, ГНК): 42 [18:40:59]line Вид ГСМ : 2710124130 [18:40:59]line Аи-92-К-5 [18:40:59]line 16.160 x 61.90 [18:40:59]line ИТОГ: 1000.30 [18:40:59]line Тип оплаты: Талоны: Топливные Талоны [18:40:59]line 3583474 [18:40:59]line ______________________ [18:40:59]line (подпись) [18:40:59]written 0, free lines is 4095 [18:40:59]Write to MH i2c: 01 00 00 0A 41 4B [18:40:59]Write i2c OK [18:40:59]MH_I2C_Read... [18:40:59]Read from MH i2c: 01 [18:40:59]MH_I2C_Read... [18:40:59]Read from MH i2c: 01 07 00 [18:40:59]MH_I2C_Read... [18:40:59]Read from MH i2c: 01 07 00 0A 41 00 00 00 00 00 F5 0D 54 [18:40:59]RasterBufferAndPrint [18:40:59]line [18:40:59]line [18:40:59]line [18:40:59]line [18:40:59]line [18:40:59]written 0, free lines is 3575 [18:40:59]MH_Cut [18:40:59]Write to MH i2c: D1 01 00 11 41 01 24 [18:40:59]Write i2c OK [18:40:59]MH_I2C_Read... [18:40:59]Read from MH i2c: D1 [18:40:59]MH_I2C_Read... [18:40:59]Read from MH i2c: D1 01 00 [18:40:59]MH_I2C_Read... [18:40:59]Read from MH i2c: D1 01 00 11 41 00 23 [18:40:59]Write to MH i2c: 01 00 00 12 41 53 [18:40:59]Write i2c OK [18:40:59]MH_I2C_Read... [18:41:00]*** Cut start [18:41:00]*** Purtial cut [18:41:00]*** Stage 1: CUTSNS_PIN = 1 [18:41:02]Read from MH i2c: 01 [18:41:02]MH_I2C_Read... [18:41:02]Read from MH i2c: 01 07 00 [18:41:02]MH_I2C_Read... [18:41:02]*** Stop cut motor [18:41:02]*** Cut end [18:41:02]Read from MH i2c: 01 07 00 12 41 00 00 00 00 00 FF 0F 68 [18:41:02]process_action print_text done [18:41:02]requested_data is exist [18:41:02]produce_requested_data [18:41:02]requested_item fm.sn is exist - process it [18:41:02]wFMCommunicate request_size=4 [18:41:02]MH_SAM_APDU [18:41:02]CAPDU: 80 11 00 00 [18:41:02]Write to MH i2c: E2 08 00 13 41 80 11 00 00 00 00 00 00 CE [18:41:02]Write i2c OK [18:41:02]MH_I2C_Read... [18:41:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:41:02]Read from MH i2c: E2 [18:41:02]MH_I2C_Read... [18:41:02]Read from MH i2c: E2 17 00 [18:41:02]MH_I2C_Read... [18:41:02]Read from MH i2c: E2 17 00 13 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 2C [18:41:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [18:41:02]wFMCommunicate OK [18:41:02]requested_item fd.num is exist - process it [18:41:02]SAM_PROTO_GetFieldsCounters [18:41:02]wFMCommunicate request_size=4 [18:41:02]MH_SAM_APDU [18:41:02]CAPDU: 80 13 00 00 [18:41:02]Write to MH i2c: E2 08 00 14 41 80 13 00 00 00 00 00 00 D1 [18:41:02]Write i2c OK [18:41:02]MH_I2C_Read... [18:41:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:41:02]Read from MH i2c: E2 [18:41:02]MH_I2C_Read... [18:41:02]Read from MH i2c: E2 62 00 [18:41:02]MH_I2C_Read... [18:41:02]Read from MH i2c: E2 62 00 14 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 BA E1 01 00 0E 04 04 00 43 01 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 F5 [18:41: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 BA E1 01 00 0E 04 04 00 43 01 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 [18:41:02]wFMCommunicate OK [18:41:02]SAM_PROTO_GetFieldsCounters done [18:41:02]requested_item shift.num is exist - process it [18:41:02]requested_item shift.opened is exist - process it [18:41:02]req_shift_opened [18:41:02]FM_GetShiftState [18:41:02]SAM_PROTO_GetShiftState [18:41:02]wFMCommunicate request_size=4 [18:41:02]MH_SAM_APDU [18:41:02]CAPDU: 80 13 01 00 [18:41:02]Write to MH i2c: E2 08 00 15 41 80 13 01 00 00 00 00 00 D3 [18:41:02]Write i2c OK [18:41:02]MH_I2C_Read... [18:41:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:41:02]Read from MH i2c: E2 [18:41:02]MH_I2C_Read... [18:41:02]Read from MH i2c: E2 0E 00 [18:41:02]MH_I2C_Read... [18:41:02]Read from MH i2c: E2 0E 00 15 41 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 95 [18:41:02]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [18:41:02]wFMCommunicate OK [18:41:02]SAM_PROTO_GetShiftState done [18:41:02]FM_GetShiftState done [18:41:02]req_shift_opened done [18:41:02]requested_item shift.open_date is exist - process it [18:41:02]req_shift_open_date [18:41:02]req_shift_open_date done [18:41:02]produce_requested_data done [18:41:02]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123322,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [18:41:02]process_action_free print_text [18:41:02]json_value_free [18:41:02]json_value_free done [18:41:02]process_json_proto returns [18:41:02]Send response to host [18:41:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123322,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [18:41:02]free response buf [18:41:02]execute_script done [18:41:02]execute_script returns [18:41:02]free content buf [18:41:02]Sock 7.Close socket [18:41:02]Sock 7.Thread stoped [18:41:03]OFD Sender: No OFD packet to send [18:41:08]OFD Sender: No OFD packet to send [18:41:13]OFD Sender: No OFD packet to send [18:41:18]OFD Sender: No OFD packet to send [18:41:23]OFD Sender: No OFD packet to send [18:41:28]OFD Sender: No OFD packet to send [18:41:33]OFD Sender: No OFD packet to send [18:41:38]OFD Sender: No OFD packet to send [18:41:43]OFD Sender: No OFD packet to send [18:41:48]OFD Sender: No OFD packet to send [18:41:53]OFD Sender: No OFD packet to send [18:41:58]OFD Sender: No OFD packet to send [18:42:03]OFD Sender: No OFD packet to send [18:42:08]OFD Sender: No OFD packet to send [18:42:13]OFD Sender: No OFD packet to send [18:42:18]OFD Sender: No OFD packet to send [18:42:23]OFD Sender: No OFD packet to send [18:42:28]OFD Sender: No OFD packet to send [18:42:33]OFD Sender: No OFD packet to send [18:42:38]OFD Sender: No OFD packet to send [18:42:43]OFD Sender: No OFD packet to send [18:42:48]OFD Sender: No OFD packet to send [18:42:52]accept exits with 9 [18:42:52]New connection [18:42:52]New thread 3067395428 created [18:42:52] Sock 9.Parse request [18:42:52]Thread 3067252068 joined [18:42:52]Sock 9.Check first char [18:42:52]Waiting for new connection... [18:42:52]Sock 9.First char is OK [18:42:52]request: POST /json_proto HTTP/1.0 [18:42:52]Method: POST [18:42:52]URL: /json_proto [18:42:52]Method is POST - this is cgi request [18:42:52]url: /json_proto [18:42:52]query_string will be loaded in cgi processing [18:42:52]execute_cgi json_proto POST (null) [18:42:52]execute_cgi path=json_proto method=POST [18:42:52]POST find Content-Length [18:42:52]Host: 172.17.48.197:8080 [18:42:52]Content-Length: 1217 [18:42:52]Content-Type: application/json [18:42:52] [18:42:52]POST finish read [18:42:52]Found Content-Length = 1217 [18:42:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106273\u000A03.03.2024 18:39\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 52\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 619.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3860637\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:42:52]execute_script... [18:42:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106273\u000A03.03.2024 18:39\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 52\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 619.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3860637\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:42:52]POST & json_proto [18:42:52]process_json_proto [18:42:52]json parsed OK: [18:42:52]protocol is kg_v1.0 [18:42:52]action value=print_text [18:42:52]process_action print_text [18:42:52]cmd_print_text [18:42:52]ExternCall_PrintAddStr [18:42:52]wPrintStart [18:42:52]Write to MH i2c: 01 00 00 16 41 57 [18:42:52]Write i2c OK [18:42:52]MH_I2C_Read... [18:42:52]Read from MH i2c: 01 [18:42:52]MH_I2C_Read... [18:42:52]Read from MH i2c: 01 07 00 [18:42:52]MH_I2C_Read... [18:42:52]Read from MH i2c: 01 07 00 16 41 00 00 00 00 00 FF 0F 6C [18:42:52]RasterBufferAndPrint [18:42:52]line *****ТОВАРНЫЙ ЧЕК***** [18:42:52]line АЗС 25 [18:42:52]line Партнер нефть [18:42:52]line 02508201610067 [18:42:52]line Кассир : Турдумбек у. К. [18:42:52]line Счет N : (1)1106273 [18:42:52]line 03.03.2024 18:39 [18:42:52]line ПРОДАЖА [18:42:52]line ТРК (МРК, ГНК): 52 [18:42:52]line Вид ГСМ : 2710124130 [18:42:52]line Аи-92-К-5 [18:42:52]line 10.000 x 61.90 [18:42:52]line ИТОГ: 619.00 [18:42:52]line Тип оплаты: Талоны: Топливные Талоны [18:42:52]line 3860637 [18:42:52]line ______________________ [18:42:52]line (подпись) [18:42:52]written 0, free lines is 4095 [18:42:52]Write to MH i2c: 01 00 00 2B 41 6C [18:42:52]Write i2c OK [18:42:52]MH_I2C_Read... [18:42:52]Read from MH i2c: 01 [18:42:52]MH_I2C_Read... [18:42:52]Read from MH i2c: 01 07 00 [18:42:52]MH_I2C_Read... [18:42:52]Read from MH i2c: 01 07 00 2B 41 00 00 00 00 00 F9 0D 79 [18:42:52]RasterBufferAndPrint [18:42:52]line [18:42:52]line [18:42:52]line [18:42:52]line [18:42:52]line [18:42:52]written 0, free lines is 3579 [18:42:52]MH_Cut [18:42:52]Write to MH i2c: D1 01 00 32 41 01 45 [18:42:52]Write i2c OK [18:42:52]MH_I2C_Read... [18:42:52]Read from MH i2c: D1 [18:42:52]MH_I2C_Read... [18:42:52]Read from MH i2c: D1 01 00 [18:42:52]MH_I2C_Read... [18:42:52]Read from MH i2c: D1 01 00 32 41 00 44 [18:42:52]Write to MH i2c: 01 00 00 33 41 74 [18:42:52]Write i2c OK [18:42:52]MH_I2C_Read... [18:42:53]*** Cut start [18:42:53]*** Purtial cut [18:42:53]*** Stage 1: CUTSNS_PIN = 1 [18:42:53]OFD Sender: No OFD packet to send [18:42:55]Read from MH i2c: 01 [18:42:55]MH_I2C_Read... [18:42:55]*** Stop cut motor [18:42:55]*** Cut end [18:42:55]Read from MH i2c: 01 07 00 [18:42:55]MH_I2C_Read... [18:42:55]Read from MH i2c: 01 07 00 33 41 00 00 00 00 00 FF 0F 89 [18:42:55]process_action print_text done [18:42:55]requested_data is exist [18:42:55]produce_requested_data [18:42:55]requested_item fm.sn is exist - process it [18:42:55]wFMCommunicate request_size=4 [18:42:55]MH_SAM_APDU [18:42:55]CAPDU: 80 11 00 00 [18:42:55]Write to MH i2c: E2 08 00 34 41 80 11 00 00 00 00 00 00 EF [18:42:55]Write i2c OK [18:42:55]MH_I2C_Read... [18:42:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:42:55]Read from MH i2c: E2 [18:42:55]MH_I2C_Read... [18:42:55]Read from MH i2c: E2 17 00 [18:42:55]MH_I2C_Read... [18:42:55]Read from MH i2c: E2 17 00 34 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 4D [18:42:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [18:42:55]wFMCommunicate OK [18:42:55]requested_item fd.num is exist - process it [18:42:55]SAM_PROTO_GetFieldsCounters [18:42:55]wFMCommunicate request_size=4 [18:42:55]MH_SAM_APDU [18:42:55]CAPDU: 80 13 00 00 [18:42:55]Write to MH i2c: E2 08 00 35 41 80 13 00 00 00 00 00 00 F2 [18:42:55]Write i2c OK [18:42:55]MH_I2C_Read... [18:42:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:42:55]Read from MH i2c: E2 [18:42:55]MH_I2C_Read... [18:42:55]Read from MH i2c: E2 62 00 [18:42:55]MH_I2C_Read... [18:42:55]Read from MH i2c: E2 62 00 35 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 BA E1 01 00 0E 04 04 00 43 01 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 16 [18:42: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 BA E1 01 00 0E 04 04 00 43 01 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 [18:42:55]wFMCommunicate OK [18:42:55]SAM_PROTO_GetFieldsCounters done [18:42:55]requested_item shift.num is exist - process it [18:42:55]requested_item shift.opened is exist - process it [18:42:55]req_shift_opened [18:42:55]FM_GetShiftState [18:42:55]SAM_PROTO_GetShiftState [18:42:55]wFMCommunicate request_size=4 [18:42:55]MH_SAM_APDU [18:42:55]CAPDU: 80 13 01 00 [18:42:55]Write to MH i2c: E2 08 00 36 41 80 13 01 00 00 00 00 00 F4 [18:42:55]Write i2c OK [18:42:55]MH_I2C_Read... [18:42:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:42:55]Read from MH i2c: E2 [18:42:55]MH_I2C_Read... [18:42:55]Read from MH i2c: E2 0E 00 [18:42:55]MH_I2C_Read... [18:42:55]Read from MH i2c: E2 0E 00 36 41 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 B6 [18:42:55]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [18:42:55]wFMCommunicate OK [18:42:55]SAM_PROTO_GetShiftState done [18:42:55]FM_GetShiftState done [18:42:55]req_shift_opened done [18:42:55]requested_item shift.open_date is exist - process it [18:42:55]req_shift_open_date [18:42:55]req_shift_open_date done [18:42:55]produce_requested_data done [18:42:55]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123322,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [18:42:55]process_action_free print_text [18:42:55]json_value_free [18:42:55]json_value_free done [18:42:55]process_json_proto returns [18:42:55]Send response to host [18:42:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123322,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [18:42:55]free response buf [18:42:55]execute_script done [18:42:55]execute_script returns [18:42:55]free content buf [18:42:55]Sock 9.Close socket [18:42:55]Sock 9.Thread stoped [18:42:58]OFD Sender: No OFD packet to send [18:43:03]OFD Sender: No OFD packet to send [18:43:08]OFD Sender: No OFD packet to send [18:43:13]OFD Sender: No OFD packet to send [18:43:18]OFD Sender: No OFD packet to send [18:43:23]OFD Sender: No OFD packet to send [18:43:28]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:16]accept exits with 7 [18:47:16]New connection [18:47:16]New thread 3067252068 created [18:47:16]Thread 3067395428 joined [18:47:16]Waiting for new connection... [18:47:16] Sock 7.Parse request [18:47:16]Sock 7.Check first char [18:47:16]Sock 7.First char is OK [18:47:16]request: POST /json_proto HTTP/1.0 [18:47:16]Method: POST [18:47:16]URL: /json_proto [18:47:16]Method is POST - this is cgi request [18:47:16]url: /json_proto [18:47:16]query_string will be loaded in cgi processing [18:47:16]execute_cgi json_proto POST (null) [18:47:16]execute_cgi path=json_proto method=POST [18:47:16]POST find Content-Length [18:47:16]Host: 172.17.48.197:8080 [18:47:16]Content-Length: 806 [18:47:16]Content-Type: application/json [18:47:16] [18:47:16]POST finish read [18:47:16]Found Content-Length = 806 [18:47:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106274", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 7.200, "sum" : 500.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:47:16]execute_script... [18:47: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)1106274", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 7.200, "sum" : 500.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:47:16]POST & json_proto [18:47:16]process_json_proto [18:47:16]json parsed OK: [18:47:16]protocol is kg_v1.0 [18:47:16]action value=close_receipt [18:47:16]process_action close_receipt [18:47:16]cmd_close_receipt [18:47:16]MH_GetDate [18:47:16]Write to MH i2c: F0 00 00 37 41 67 [18:47:16]Write i2c OK [18:47:16]MH_I2C_Read... [18:47:16]Read from MH i2c: F0 [18:47:16]MH_I2C_Read... [18:47:16]Read from MH i2c: F0 09 00 [18:47:16]MH_I2C_Read... [18:47:16]Read from MH i2c: F0 09 00 37 41 00 B9 C5 E4 65 6C AF E3 65 9A [18:47:16]GetLastDocTimeStamp 1709490990 [18:47:16]current date 1709491641 [18:47:16]FM_GetShiftState [18:47:16]SAM_PROTO_GetShiftState [18:47:16]wFMCommunicate request_size=4 [18:47:16]MH_SAM_APDU [18:47:16]CAPDU: 80 13 01 00 [18:47:16]Write to MH i2c: E2 08 00 38 41 80 13 01 00 00 00 00 00 F6 [18:47:16]Write i2c OK [18:47:16]MH_I2C_Read... [18:47:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:47:16]Read from MH i2c: E2 [18:47:16]MH_I2C_Read... [18:47:16]Read from MH i2c: E2 0E 00 [18:47:16]MH_I2C_Read... [18:47:16]Read from MH i2c: E2 0E 00 38 41 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 B8 [18:47:16]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [18:47:16]wFMCommunicate OK [18:47:16]SAM_PROTO_GetShiftState done [18:47:16]FM_GetShiftState done [18:47:16]opened in 1709425579 [18:47:16]opened+sec_in_day 1709511979 [18:47:16]quantity*price = 50040 [18:47:16]sum+1 = 50041 [18:47:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.40 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.40 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 180 03.03.2024 18:47 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874798 ФД: 123323 ФПД: 157180751523152 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T184721&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123323&fm=157180751523152&tin=02508201610067®Number=0000000000090573&sum=50040 [18:47:18]StoreToDocumentArchive [18:47:18]shift 323 fd 123323 [18:47:18]save to /storage/0323/doc_00123323 [18:47:18]save last doc name /storage/0323/doc_00123323 to /storage/kkm_last_doc_name [18:47:18]save OK [18:47:18]Clear old archive folders... [18:47:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:47:18]tlvbuf is 00E0DA10 [18:47:18]SAM_PROTO_ClearQueue [18:47:18]wFMCommunicate request_size=4 [18:47:18]MH_SAM_APDU [18:47:18]CAPDU: 80 09 00 00 [18:47:18]Write to MH i2c: E2 08 00 45 41 80 09 00 00 00 00 00 00 F8 [18:47:18]Write i2c OK [18:47:18]MH_I2C_Read... [18:47:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:47:18]Read from MH i2c: E2 [18:47:18]MH_I2C_Read... [18:47:18]Read from MH i2c: E2 03 00 [18:47:18]MH_I2C_Read... [18:47:18]Read from MH i2c: E2 03 00 45 41 00 90 00 FA [18:47:18]RAPDU: 90 00 [18:47:18]wFMCommunicate OK [18:47:18]SAM_PROTO_ClearQueue done [18:47:18]KKMCreateOFDPacket [18:47:18]OFDProtocolAddRootSTLVToBuf [18:47:18]FM_MakeSignedData [18:47:18]FM_MakeSignedData [18:47:18]SAM_PROTO_SignData [18:47:18]wFMCommunicate request_size=4 [18:47:18]MH_SAM_APDU [18:47:18]CAPDU: 80 0D 01 02 [18:47:18]Write to MH i2c: E2 08 00 46 41 80 0D 01 02 00 00 00 00 00 [18:47:18]Write i2c OK [18:47:18]MH_I2C_Read... [18:47:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:47:18]Read from MH i2c: E2 [18:47:18]MH_I2C_Read... [18:47:18]Read from MH i2c: E2 03 00 [18:47:18]MH_I2C_Read... [18:47:18]Read from MH i2c: E2 03 00 46 41 00 90 00 FB [18:47:18]RAPDU: 90 00 [18:47:18]wFMCommunicate OK [18:47:18]wFMCommunicate request_size=255 [18:47:18]MH_SAM_APDU [18:47:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 1C 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 78 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 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 78 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 B9 C5 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 BB E1 01 00 35 04 06 00 8E [18:47:18]Write to MH i2c: E2 02 01 47 41 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 1C 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 78 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 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 78 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 B9 C5 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 BB E1 01 00 35 04 06 00 8E 00 00 C2 [18:47:18]Write i2c OK [18:47:18]MH_I2C_Read... [18:47:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:47:18]Read from MH i2c: E2 [18:47:18]MH_I2C_Read... [18:47:18]Read from MH i2c: E2 03 00 [18:47:18]MH_I2C_Read... [18:47:18]Read from MH i2c: E2 03 00 47 41 00 90 00 FC [18:47:18]RAPDU: 90 00 [18:47:18]wFMCommunicate OK [18:47:18]wFMCommunicate request_size=10 [18:47:18]MH_SAM_APDU [18:47:18]CAPDU: 80 0D 02 02 05 F4 7E DC 2D 50 [18:47:18]Write to MH i2c: E2 0D 00 48 41 80 0D 02 02 05 00 F4 7E DC 2D 50 00 00 D8 [18:47:18]Write i2c OK [18:47:18]MH_I2C_Read... [18:47:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:47:18]Read from MH i2c: E2 [18:47:18]MH_I2C_Read... [18:47:18]Read from MH i2c: E2 03 00 [18:47:18]MH_I2C_Read... [18:47:18]Read from MH i2c: E2 03 00 48 41 00 90 00 FD [18:47:18]RAPDU: 90 00 [18:47:18]wFMCommunicate OK [18:47:18]wFMCommunicate request_size=4 [18:47:18]MH_SAM_APDU [18:47:18]CAPDU: 80 0D 03 02 [18:47:18]Write to MH i2c: E2 08 00 49 41 80 0D 03 02 00 00 00 00 05 [18:47:18]Write i2c OK [18:47:18]MH_I2C_Read... [18:47:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:47:18]Read from MH i2c: E2 [18:47:18]MH_I2C_Read... [18:47:18]Read from MH i2c: E2 0B 00 [18:47:18]MH_I2C_Read... [18:47:18]Read from MH i2c: E2 0B 00 49 41 00 05 05 13 59 11 16 8A 0C 90 00 39 [18:47:18]RAPDU: 05 05 13 59 11 16 8A 0C 90 00 [18:47:18]wFMCommunicate OK [18:47:18]SAM_PROTO_SignData done [18:47:18]FM_MakeSignedData done [18:47:18]CreateOFDProtocolMessage [18:47:18]wFMCommunicate request_size=4 [18:47:18]MH_SAM_APDU [18:47:18]CAPDU: 80 11 00 00 [18:47:18]Write to MH i2c: E2 08 00 4A 41 80 11 00 00 00 00 00 00 05 [18:47:18]Write i2c OK [18:47:18]MH_I2C_Read... [18:47:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:47:18]Read from MH i2c: E2 [18:47:18]MH_I2C_Read... [18:47:18]Read from MH i2c: E2 17 00 [18:47:18]MH_I2C_Read... [18:47:18]Read from MH i2c: E2 17 00 4A 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 63 [18:47:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [18:47:18]wFMCommunicate OK [18:47:18]CreateOFDProtocolMessage done [18:47:18]OFDSenderStorePacket 123323 [18:47:18]StoreOFDPacket docnum=123323 [18:47:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 4B E9 07 01 A9 63 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 1C 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 78 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 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 78 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 B9 C5 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 BB E1 01 00 35 04 06 00 8E F4 7E DC 2D 50 05 05 13 59 11 16 8A 0C [18:47:18]CheckFolder [18:47:18]dirname=/storage/ofd_packets [18:47:18]CheckFolder done [18:47:18]ProducePacketName [18:47:18]name=ofd_packets/00123323 [18:47:18]NVStorageSaveData ofd_packets/00123323 [18:47:18]File name is /storage/ofd_packets/00123323 [18:47:18]Write 301 bytes [18:47:18]NVStorageSaveData done [18:47:18]OFDSenderStorePacket done [18:47:18]KKMCreateOFDPacket done [18:47:18]NVStorageSaveData kkm_last_timestamp [18:47:18]File name is /storage/kkm_last_timestamp [18:47:18]Write 4 bytes [18:47:18]NVStorageSaveData done [18:47:18]ExternCall_PrintAddStr [18:47:18]wPrintStart [18:47:18]Write to MH i2c: 01 00 00 4B 41 8C [18:47:18]Write i2c OK [18:47:18]MH_I2C_Read... [18:47:18]Read from MH i2c: 01 [18:47:18]MH_I2C_Read... [18:47:18]Read from MH i2c: 01 07 00 [18:47:18]MH_I2C_Read... [18:47:18]Read from MH i2c: 01 07 00 4B 41 00 00 00 00 00 FF 0F A1 [18:47:18]RasterBufferAndPrint [18:47:18]line Счет N : (1)1106274 [18:47:18]line ИНН: 02508201610067 [18:47:18]line Контрольно-Кассовый Чек [18:47:18]line ПРОДАЖА [18:47:18]line ТРК (МРК, ГНК) : 53 [18:47:18]line Товар: 2710124500 [18:47:18]line Аи-95-К-5 [18:47:18]line 7.200 * 69.50 [18:47:18]line = 500.40 [18:47:18]line НДС 12% НСП 1% [18:47:18]line > о реализуемом товаре [18:47:18]line ИТОГО: 500.40 [18:47:18]line НСП 1% : 4.43 [18:47:18]line НДС 12% : 53.14 [18:47:18]line Наличными: 0.00 [18:47:18]line Безнал.: 500.40 [18:47:18]line Место: АЗС № 25 "Партнер Нефть" [18:47:18]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [18:47:18]line СНО: Общий режим [18:47:18]line Чек 180 03.03.2024 18:47 [18:47:18]line Смена: 323 ФФД: 1.0 [18:47:18]line ЗНМ: 0300000019 [18:47:18]line РНМ: 0000000000090573 [18:47:18]line Версия ККМ: 001 [18:47:18]line Платежная система: О! деньги [18:47:18]line ФМ: 0000000000874798 [18:47:18]line ФД: 123323 [18:47:18]line ФПД: 157180751523152 [18:47:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T184721&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123323&fm=157180751523152&tin=02508201610067®Number=0000000000090573&sum=50040 [18:47:18]OFD Sender: Processing packet 123323 [packets to send 112, broken 111] [18:47:18]ProducePacketName [18:47:18]name=ofd_packets/00123323 [18:47:18]OFD Sender: To server: pG, [18:47:18]CommunicateWithHost lk.salyk.kg:30040 [18:47:18]ConnectInit lk.salyk.kg [18:47:18]written 0, free lines is 4095 [18:47:19]Connected sock=10 [18:47: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 37 39 38 0F 01 00 00 4B E9 07 01 A9 63 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 1C 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 78 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 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 78 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 B9 C5 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 BB E1 01 00 35 04 06 00 8E F4 7E DC 2D 50 05 05 13 59 11 16 8A 0C [18:47:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 76 60 47 00 61 48 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 BB E1 01 00 F4 03 04 00 E4 71 E4 65 B6 04 01 00 00 0E F6 D0 B7 7C C6 8F A4 [18:47:19]CommunicateWithHost err = 0 [18:47:19]CheckOFDResponse [18:47:19]1017 (14) - 77093643461234 [18:47:19]1041 (16) - 0000000000874798 [18:47:19]1040 (4) - 123323 [18:47:19]1012 (4) - 03.03.2024 12:49 [18:47:19]1206 (1) - 0 [18:47:19]OFD Sender: Remove packet 123323 [18:47:19]ProducePacketName [18:47:19]name=ofd_packets/00123323 [18:47:19]NVStorageDeleteData [18:47:19]Write to MH i2c: 01 00 00 75 41 B6 [18:47:19]Write i2c OK [18:47:19]MH_I2C_Read... [18:47:19]Read from MH i2c: 01 [18:47:19]MH_I2C_Read... [18:47:19]Read from MH i2c: 01 07 00 [18:47:19]MH_I2C_Read... [18:47:19]Read from MH i2c: 01 07 00 75 41 00 00 00 00 00 EF 0C B8 [18:47:19]RasterBufferAndPrint [18:47:19]line [18:47:19]line [18:47:19]line [18:47:19]line [18:47:19]line [18:47:19]written 0, free lines is 3317 [18:47:19]MH_Cut [18:47:19]Write to MH i2c: D1 01 00 7C 41 01 8F [18:47:19]Write i2c OK [18:47:19]MH_I2C_Read... [18:47:19]Read from MH i2c: D1 [18:47:19]MH_I2C_Read... [18:47:19]Read from MH i2c: D1 01 00 [18:47:19]MH_I2C_Read... [18:47:19]Read from MH i2c: D1 01 00 7C 41 00 8E [18:47:19]Write to MH i2c: 01 00 00 7D 41 BE [18:47:19]Write i2c OK [18:47:19]MH_I2C_Read... [18:47:19]OFD Sender: No OFD packet to send [18:47:20]*** Cut start [18:47:20]*** Purtial cut [18:47:20]*** Stage 1: CUTSNS_PIN = 1 [18:47:22]Read from MH i2c: 01 [18:47:22]MH_I2C_Read... [18:47:22]*** Stop cut motor [18:47:22]*** Cut end [18:47:22]Read from MH i2c: 01 07 00 [18:47:22]MH_I2C_Read... [18:47:22]Read from MH i2c: 01 07 00 7D 41 00 00 00 00 00 FF 0F D3 [18:47:22]process_action close_receipt done [18:47:22]requested_data is exist [18:47:22]produce_requested_data [18:47:22]requested_item fm.sn is exist - process it [18:47:22]wFMCommunicate request_size=4 [18:47:22]MH_SAM_APDU [18:47:22]CAPDU: 80 11 00 00 [18:47:22]Write to MH i2c: E2 08 00 7E 41 80 11 00 00 00 00 00 00 39 [18:47:22]Write i2c OK [18:47:22]MH_I2C_Read... [18:47:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:47:22]Read from MH i2c: E2 [18:47:22]MH_I2C_Read... [18:47:22]Read from MH i2c: E2 17 00 [18:47:22]MH_I2C_Read... [18:47:22]Read from MH i2c: E2 17 00 7E 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 97 [18:47:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [18:47:22]wFMCommunicate OK [18:47:22]requested_item fd.num is exist - process it [18:47:22]SAM_PROTO_GetFieldsCounters [18:47:22]wFMCommunicate request_size=4 [18:47:22]MH_SAM_APDU [18:47:22]CAPDU: 80 13 00 00 [18:47:22]Write to MH i2c: E2 08 00 7F 41 80 13 00 00 00 00 00 00 3C [18:47:22]Write i2c OK [18:47:22]MH_I2C_Read... [18:47:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:47:22]Read from MH i2c: E2 [18:47:22]MH_I2C_Read... [18:47:22]Read from MH i2c: E2 62 00 [18:47:22]MH_I2C_Read... [18:47:22]Read from MH i2c: E2 62 00 7F 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 BB E1 01 00 0E 04 04 00 43 01 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 64 [18:47: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 BB E1 01 00 0E 04 04 00 43 01 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 [18:47:22]wFMCommunicate OK [18:47:22]SAM_PROTO_GetFieldsCounters done [18:47:22]requested_item shift.num is exist - process it [18:47:22]requested_item shift.opened is exist - process it [18:47:22]req_shift_opened [18:47:22]FM_GetShiftState [18:47:22]SAM_PROTO_GetShiftState [18:47:22]wFMCommunicate request_size=4 [18:47:22]MH_SAM_APDU [18:47:22]CAPDU: 80 13 01 00 [18:47:22]Write to MH i2c: E2 08 00 80 41 80 13 01 00 00 00 00 00 3E [18:47:22]Write i2c OK [18:47:22]MH_I2C_Read... [18:47:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:47:22]Read from MH i2c: E2 [18:47:22]MH_I2C_Read... [18:47:22]Read from MH i2c: E2 0E 00 [18:47:22]MH_I2C_Read... [18:47:22]Read from MH i2c: E2 0E 00 80 41 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 00 [18:47:22]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [18:47:22]wFMCommunicate OK [18:47:22]SAM_PROTO_GetShiftState done [18:47:22]FM_GetShiftState done [18:47:22]req_shift_opened done [18:47:22]requested_item shift.open_date is exist - process it [18:47:22]req_shift_open_date [18:47:22]req_shift_open_date done [18:47:22]produce_requested_data done [18:47:22]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123323,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [18:47:22]process_action_free close_receipt [18:47:22]json_value_free [18:47:22]json_value_free done [18:47:22]process_json_proto returns [18:47:22]Send response to host [18:47:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123323,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [18:47:22]free response buf [18:47:22]execute_script done [18:47:22]execute_script returns [18:47:22]free content buf [18:47:22]Sock 7.Close socket [18:47:22]Sock 7.Thread stoped [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:13]accept exits with 9 [18:51:13]New connection [18:51:13]New thread 3067395428 created [18:51:13]Thread 3067252068 joined [18:51:13]Waiting for new connection... [18:51:13] Sock 9.Parse request [18:51:13]Sock 9.Check first char [18:51:13]Sock 9.First char is OK [18:51:13]request: POST /json_proto HTTP/1.0 [18:51:13]Method: POST [18:51:13]URL: /json_proto [18:51:13]Method is POST - this is cgi request [18:51:13]url: /json_proto [18:51:13]query_string will be loaded in cgi processing [18:51:13]execute_cgi json_proto POST (null) [18:51:13]execute_cgi path=json_proto method=POST [18:51:13]POST find Content-Length [18:51:13]Host: 172.17.48.197:8080 [18:51:13]Content-Length: 1210 [18:51:13]Content-Type: application/json [18:51:13] [18:51:13]POST finish read [18:51:13]Found Content-Length = 1210 [18:51:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106275\u000A03.03.2024 18:47\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 63\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 30.000 x 69.50\u000A\u0418\u0422\u041E\u0413: 2085.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53361\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:51:13]execute_script... [18:51:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106275\u000A03.03.2024 18:47\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 63\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 30.000 x 69.50\u000A\u0418\u0422\u041E\u0413: 2085.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53361\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:51:13]POST & json_proto [18:51:13]process_json_proto [18:51:13]json parsed OK: [18:51:13]protocol is kg_v1.0 [18:51:13]action value=print_text [18:51:13]process_action print_text [18:51:13]cmd_print_text [18:51:13]ExternCall_PrintAddStr [18:51:13]wPrintStart [18:51:13]Write to MH i2c: 01 00 00 81 41 C2 [18:51:13]Write i2c OK [18:51:13]MH_I2C_Read... [18:51:13]Read from MH i2c: 01 [18:51:13]MH_I2C_Read... [18:51:13]Read from MH i2c: 01 07 00 [18:51:13]MH_I2C_Read... [18:51:13]Read from MH i2c: 01 07 00 81 41 00 00 00 00 00 FF 0F D7 [18:51:13]RasterBufferAndPrint [18:51:13]line *****ТОВАРНЫЙ ЧЕК***** [18:51:13]line АЗС 25 [18:51:13]line Партнер нефть [18:51:13]line 02508201610067 [18:51:13]line Кассир : Турдумбек у. К. [18:51:13]line Счет N : (1)1106275 [18:51:13]line 03.03.2024 18:47 [18:51:13]line ПРОДАЖА [18:51:13]line ТРК (МРК, ГНК): 63 [18:51:13]line Вид ГСМ : 2710124500 [18:51:13]line Аи-95-К-5 [18:51:13]line 30.000 x 69.50 [18:51:13]line ИТОГ: 2085.00 [18:51:13]line Тип оплаты: Талоны: Топливная Карта [18:51:13]line 53361 [18:51:13]line ______________________ [18:51:13]line (подпись) [18:51:13]written 0, free lines is 4095 [18:51:13]Write to MH i2c: 01 00 00 96 41 D7 [18:51:13]Write i2c OK [18:51:13]MH_I2C_Read... [18:51:13]Read from MH i2c: 01 [18:51:13]MH_I2C_Read... [18:51:13]Read from MH i2c: 01 07 00 [18:51:13]MH_I2C_Read... [18:51:13]Read from MH i2c: 01 07 00 96 41 00 00 00 00 00 F6 0D E1 [18:51:13]RasterBufferAndPrint [18:51:13]line [18:51:13]line [18:51:13]line [18:51:13]line [18:51:13]line [18:51:13]written 0, free lines is 3575 [18:51:13]MH_Cut [18:51:13]Write to MH i2c: D1 01 00 9D 41 01 B0 [18:51:13]Write i2c OK [18:51:13]MH_I2C_Read... [18:51:13]Read from MH i2c: D1 [18:51:13]MH_I2C_Read... [18:51:13]Read from MH i2c: D1 01 00 [18:51:13]MH_I2C_Read... [18:51:13]Read from MH i2c: D1 01 00 9D 41 00 AF [18:51:13]Write to MH i2c: 01 00 00 9E 41 DF [18:51:13]Write i2c OK [18:51:13]MH_I2C_Read... [18:51:13]*** Cut start [18:51:13]*** Purtial cut [18:51:13]*** Stage 1: CUTSNS_PIN = 1 [18:51:14]OFD Sender: No OFD packet to send [18:51:15]Read from MH i2c: 01 [18:51:15]MH_I2C_Read... [18:51:15]*** Stop cut motor [18:51:15]*** Cut end [18:51:15]Read from MH i2c: 01 07 00 [18:51:15]MH_I2C_Read... [18:51:15]Read from MH i2c: 01 07 00 9E 41 00 00 00 00 00 FF 0F F4 [18:51:15]process_action print_text done [18:51:15]requested_data is exist [18:51:15]produce_requested_data [18:51:15]requested_item fm.sn is exist - process it [18:51:15]wFMCommunicate request_size=4 [18:51:15]MH_SAM_APDU [18:51:15]CAPDU: 80 11 00 00 [18:51:15]Write to MH i2c: E2 08 00 9F 41 80 11 00 00 00 00 00 00 5A [18:51:15]Write i2c OK [18:51:15]MH_I2C_Read... [18:51:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:51:15]Read from MH i2c: E2 [18:51:15]MH_I2C_Read... [18:51:15]Read from MH i2c: E2 17 00 [18:51:15]MH_I2C_Read... [18:51:15]Read from MH i2c: E2 17 00 9F 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 B8 [18:51:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [18:51:15]wFMCommunicate OK [18:51:15]requested_item fd.num is exist - process it [18:51:15]SAM_PROTO_GetFieldsCounters [18:51:15]wFMCommunicate request_size=4 [18:51:15]MH_SAM_APDU [18:51:15]CAPDU: 80 13 00 00 [18:51:15]Write to MH i2c: E2 08 00 A0 41 80 13 00 00 00 00 00 00 5D [18:51:15]Write i2c OK [18:51:15]MH_I2C_Read... [18:51:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:51:16]Read from MH i2c: E2 [18:51:16]MH_I2C_Read... [18:51:16]Read from MH i2c: E2 62 00 [18:51:16]MH_I2C_Read... [18:51:16]Read from MH i2c: E2 62 00 A0 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 BB E1 01 00 0E 04 04 00 43 01 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 85 [18:51: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 BB E1 01 00 0E 04 04 00 43 01 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 [18:51:16]wFMCommunicate OK [18:51:16]SAM_PROTO_GetFieldsCounters done [18:51:16]requested_item shift.num is exist - process it [18:51:16]requested_item shift.opened is exist - process it [18:51:16]req_shift_opened [18:51:16]FM_GetShiftState [18:51:16]SAM_PROTO_GetShiftState [18:51:16]wFMCommunicate request_size=4 [18:51:16]MH_SAM_APDU [18:51:16]CAPDU: 80 13 01 00 [18:51:16]Write to MH i2c: E2 08 00 A1 41 80 13 01 00 00 00 00 00 5F [18:51:16]Write i2c OK [18:51:16]MH_I2C_Read... [18:51:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:51:16]Read from MH i2c: E2 [18:51:16]MH_I2C_Read... [18:51:16]Read from MH i2c: E2 0E 00 [18:51:16]MH_I2C_Read... [18:51:16]Read from MH i2c: E2 0E 00 A1 41 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 21 [18:51:16]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [18:51:16]wFMCommunicate OK [18:51:16]SAM_PROTO_GetShiftState done [18:51:16]FM_GetShiftState done [18:51:16]req_shift_opened done [18:51:16]requested_item shift.open_date is exist - process it [18:51:16]req_shift_open_date [18:51:16]req_shift_open_date done [18:51:16]produce_requested_data done [18:51:16]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123323,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [18:51:16]process_action_free print_text [18:51:16]json_value_free [18:51:16]json_value_free done [18:51:16]process_json_proto returns [18:51:16]Send response to host [18:51:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123323,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [18:51:16]free response buf [18:51:16]execute_script done [18:51:16]execute_script returns [18:51:16]free content buf [18:51:16]Sock 9.Close socket [18:51:16]Sock 9.Thread stoped [18:51:19]OFD Sender: No OFD packet to send [18:51:25]OFD Sender: No OFD packet to send [18:51:30]OFD Sender: No OFD packet to send [18:51:35]OFD Sender: No OFD packet to send [18:51:40]OFD Sender: No OFD packet to send [18:51:45]OFD Sender: No OFD packet to send [18:51:50]OFD Sender: No OFD packet to send [18:51:55]OFD Sender: No OFD packet to send [18:52:00]OFD Sender: No OFD packet to send [18:52:05]OFD Sender: No OFD packet to send [18:52:10]OFD Sender: No OFD packet to send [18:52:15]OFD Sender: No OFD packet to send [18:52:20]OFD Sender: No OFD packet to send [18:52:25]OFD Sender: No OFD packet to send [18:52:30]OFD Sender: No OFD packet to send [18:52:35]OFD Sender: No OFD packet to send [18:52:40]OFD Sender: No OFD packet to send [18:52:45]OFD Sender: No OFD packet to send [18:52:46]accept exits with 7 [18:52:46]New connection [18:52:46]New thread 3067252068 created [18:52:46]Thread 3067395428 joined [18:52:46]Waiting for new connection... [18:52:46] Sock 7.Parse request [18:52:46]Sock 7.Check first char [18:52:46]Sock 7.First char is OK [18:52:46]request: POST /json_proto HTTP/1.0 [18:52:46]Method: POST [18:52:46]URL: /json_proto [18:52:46]Method is POST - this is cgi request [18:52:46]url: /json_proto [18:52:46]query_string will be loaded in cgi processing [18:52:46]execute_cgi json_proto POST (null) [18:52:46]execute_cgi path=json_proto method=POST [18:52:46]POST find Content-Length [18:52:46]Host: 172.17.48.197:8080 [18:52:46]Content-Length: 1215 [18:52:46]Content-Type: application/json [18:52:46] [18:52:46]POST finish read [18:52:46]Found Content-Length = 1215 [18:52:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106276\u000A03.03.2024 18:49\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 26.310 x 70.90\u000A\u0418\u0422\u041E\u0413: 1865.38\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A00350\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:52:46]execute_script... [18:52:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106276\u000A03.03.2024 18:49\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 26.310 x 70.90\u000A\u0418\u0422\u041E\u0413: 1865.38\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A00350\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:52:46]POST & json_proto [18:52:46]process_json_proto [18:52:46]json parsed OK: [18:52:46]protocol is kg_v1.0 [18:52:46]action value=print_text [18:52:46]process_action print_text [18:52:46]cmd_print_text [18:52:46]ExternCall_PrintAddStr [18:52:46]wPrintStart [18:52:46]Write to MH i2c: 01 00 00 A2 41 E3 [18:52:46]Write i2c OK [18:52:46]MH_I2C_Read... [18:52:46]Read from MH i2c: 01 [18:52:46]MH_I2C_Read... [18:52:46]Read from MH i2c: 01 07 00 [18:52:46]MH_I2C_Read... [18:52:46]Read from MH i2c: 01 07 00 A2 41 00 00 00 00 00 FF 0F F8 [18:52:46]RasterBufferAndPrint [18:52:46]line *****ТОВАРНЫЙ ЧЕК***** [18:52:46]line АЗС 25 [18:52:46]line Партнер нефть [18:52:46]line 02508201610067 [18:52:46]line Кассир : Турдумбек у. К. [18:52:46]line Счет N : (1)1106276 [18:52:46]line 03.03.2024 18:49 [18:52:46]line ПРОДАЖА [18:52:46]line ТРК (МРК, ГНК): 31 [18:52:46]line Вид ГСМ : 2710194210 [18:52:46]line ДТ(л)-К-5 [18:52:46]line 26.310 x 70.90 [18:52:46]line ИТОГ: 1865.38 [18:52:46]line Тип оплаты: Талоны: Топливная Карта [18:52:46]line 00350 [18:52:46]line ______________________ [18:52:46]line (подпись) [18:52:46]written 0, free lines is 4095 [18:52:46]Write to MH i2c: 01 00 00 B7 41 F8 [18:52:46]Write i2c OK [18:52:46]MH_I2C_Read... [18:52:46]Read from MH i2c: 01 [18:52:46]MH_I2C_Read... [18:52:46]Read from MH i2c: 01 07 00 [18:52:46]MH_I2C_Read... [18:52:46]Read from MH i2c: 01 07 00 B7 41 00 00 00 00 00 F5 0D 01 [18:52:46]RasterBufferAndPrint [18:52:46]line [18:52:46]line [18:52:46]line [18:52:46]line [18:52:46]line [18:52:46]written 0, free lines is 3575 [18:52:46]MH_Cut [18:52:46]Write to MH i2c: D1 01 00 BE 41 01 D1 [18:52:46]Write i2c OK [18:52:46]MH_I2C_Read... [18:52:46]Read from MH i2c: D1 [18:52:46]MH_I2C_Read... [18:52:46]Read from MH i2c: D1 01 00 [18:52:46]MH_I2C_Read... [18:52:46]Read from MH i2c: D1 01 00 BE 41 00 D0 [18:52:46]Write to MH i2c: 01 00 00 BF 41 00 [18:52:46]Write i2c OK [18:52:46]MH_I2C_Read... [18:52:47]*** Cut start [18:52:47]*** Purtial cut [18:52:47]*** Stage 1: CUTSNS_PIN = 1 [18:52:49]Read from MH i2c: 01 [18:52:49]MH_I2C_Read... [18:52:49]Read from MH i2c: 01 07 00 [18:52:49]MH_I2C_Read... [18:52:49]*** Stop cut motor [18:52:49]*** Cut end [18:52:49]Read from MH i2c: 01 07 00 BF 41 00 00 00 00 00 FF 0F 15 [18:52:49]process_action print_text done [18:52:49]requested_data is exist [18:52:49]produce_requested_data [18:52:49]requested_item fm.sn is exist - process it [18:52:49]wFMCommunicate request_size=4 [18:52:49]MH_SAM_APDU [18:52:49]CAPDU: 80 11 00 00 [18:52:49]Write to MH i2c: E2 08 00 C0 41 80 11 00 00 00 00 00 00 7B [18:52:49]Write i2c OK [18:52:49]MH_I2C_Read... [18:52:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:52:49]Read from MH i2c: E2 [18:52:49]MH_I2C_Read... [18:52:49]Read from MH i2c: E2 17 00 [18:52:49]MH_I2C_Read... [18:52:49]Read from MH i2c: E2 17 00 C0 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 D9 [18:52:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [18:52:49]wFMCommunicate OK [18:52:49]requested_item fd.num is exist - process it [18:52:49]SAM_PROTO_GetFieldsCounters [18:52:49]wFMCommunicate request_size=4 [18:52:49]MH_SAM_APDU [18:52:49]CAPDU: 80 13 00 00 [18:52:49]Write to MH i2c: E2 08 00 C1 41 80 13 00 00 00 00 00 00 7E [18:52:49]Write i2c OK [18:52:49]MH_I2C_Read... [18:52:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:52:49]Read from MH i2c: E2 [18:52:49]MH_I2C_Read... [18:52:49]Read from MH i2c: E2 62 00 [18:52:49]MH_I2C_Read... [18:52:49]Read from MH i2c: E2 62 00 C1 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 BB E1 01 00 0E 04 04 00 43 01 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 A6 [18:52: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 BB E1 01 00 0E 04 04 00 43 01 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 [18:52:49]wFMCommunicate OK [18:52:49]SAM_PROTO_GetFieldsCounters done [18:52:49]requested_item shift.num is exist - process it [18:52:49]requested_item shift.opened is exist - process it [18:52:49]req_shift_opened [18:52:49]FM_GetShiftState [18:52:49]SAM_PROTO_GetShiftState [18:52:49]wFMCommunicate request_size=4 [18:52:49]MH_SAM_APDU [18:52:49]CAPDU: 80 13 01 00 [18:52:49]Write to MH i2c: E2 08 00 C2 41 80 13 01 00 00 00 00 00 80 [18:52:49]Write i2c OK [18:52:49]MH_I2C_Read... [18:52:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:52:49]Read from MH i2c: E2 [18:52:49]MH_I2C_Read... [18:52:49]Read from MH i2c: E2 0E 00 [18:52:49]MH_I2C_Read... [18:52:49]Read from MH i2c: E2 0E 00 C2 41 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 42 [18:52:49]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [18:52:49]wFMCommunicate OK [18:52:49]SAM_PROTO_GetShiftState done [18:52:49]FM_GetShiftState done [18:52:49]req_shift_opened done [18:52:49]requested_item shift.open_date is exist - process it [18:52:49]req_shift_open_date [18:52:49]req_shift_open_date done [18:52:49]produce_requested_data done [18:52:49]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123323,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [18:52:49]process_action_free print_text [18:52:49]json_value_free [18:52:49]json_value_free done [18:52:49]process_json_proto returns [18:52:49]Send response to host [18:52:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123323,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [18:52:49]free response buf [18:52:49]execute_script done [18:52:49]execute_script returns [18:52:49]free content buf [18:52:49]Sock 7.Close socket [18:52:49]Sock 7.Thread stoped [18:52:50]OFD Sender: No OFD packet to send [18:52:55]OFD Sender: No OFD packet to send [18:53:00]OFD Sender: No OFD packet to send [18:53:05]OFD Sender: No OFD packet to send [18:53:10]OFD Sender: No OFD packet to send [18:53:15]OFD Sender: No OFD packet to send [18:53:20]OFD Sender: No OFD packet to send [18:53:25]OFD Sender: No OFD packet to send [18:53: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:50]OFD Sender: No OFD packet to send [18:53:55]OFD Sender: No OFD packet to send [18:54:00]OFD Sender: No OFD packet to send [18:54:05]OFD Sender: No OFD packet to send [18:54:10]OFD Sender: No OFD packet to send [18:54:15]OFD Sender: No OFD packet to send [18:54:20]OFD Sender: No OFD packet to send [18:54:25]OFD Sender: No OFD packet to send [18:54:30]OFD Sender: No OFD packet to send [18:54:35]OFD Sender: No OFD packet to send [18:54:40]OFD Sender: No OFD packet to send [18:54:45]OFD Sender: No OFD packet to send [18:54:50]OFD Sender: No OFD packet to send [18:54:55]OFD Sender: No OFD packet to send [18:55:00]OFD Sender: No OFD packet to send [18:55:05]OFD Sender: No OFD packet to send [18:55:10]OFD Sender: No OFD packet to send [18:55:14]accept exits with 9 [18:55:14]New connection [18:55:14]New thread 3067395428 created [18:55:14]Thread 3067252068 joined [18:55:14]Waiting for new connection... [18:55:14] Sock 9.Parse request [18:55:14]Sock 9.Check first char [18:55:14]Sock 9.First char is OK [18:55:14]request: POST /json_proto HTTP/1.0 [18:55:14]Method: POST [18:55:14]URL: /json_proto [18:55:14]Method is POST - this is cgi request [18:55:14]url: /json_proto [18:55:14]query_string will be loaded in cgi processing [18:55:14]execute_cgi json_proto POST (null) [18:55:14]execute_cgi path=json_proto method=POST [18:55:14]POST find Content-Length [18:55:14]Host: 172.17.48.197:8080 [18:55:14]Content-Length: 1234 [18:55:14]Content-Type: application/json [18:55:14] [18:55:14]POST finish read [18:55:14]Found Content-Length = 1234 [18:55:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106277\u000A03.03.2024 18:51\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 1857.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3847488/3847497/3847499\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:55:14]execute_script... [18:55:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106277\u000A03.03.2024 18:51\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 1857.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3847488/3847497/3847499\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:55:14]POST & json_proto [18:55:14]process_json_proto [18:55:14]json parsed OK: [18:55:14]protocol is kg_v1.0 [18:55:14]action value=print_text [18:55:14]process_action print_text [18:55:14]cmd_print_text [18:55:14]ExternCall_PrintAddStr [18:55:14]wPrintStart [18:55:14]Write to MH i2c: 01 00 00 C3 41 04 [18:55:14]Write i2c OK [18:55:14]MH_I2C_Read... [18:55:14]Read from MH i2c: 01 [18:55:14]MH_I2C_Read... [18:55:14]Read from MH i2c: 01 07 00 [18:55:14]MH_I2C_Read... [18:55:14]Read from MH i2c: 01 07 00 C3 41 00 00 00 00 00 FF 0F 19 [18:55:14]RasterBufferAndPrint [18:55:14]line *****ТОВАРНЫЙ ЧЕК***** [18:55:14]line АЗС 25 [18:55:14]line Партнер нефть [18:55:14]line 02508201610067 [18:55:14]line Кассир : Турдумбек у. К. [18:55:14]line Счет N : (1)1106277 [18:55:14]line 03.03.2024 18:51 [18:55:14]line ПРОДАЖА [18:55:14]line ТРК (МРК, ГНК): 11 [18:55:14]line Вид ГСМ : 2710124130 [18:55:14]line Аи-92-К-5 [18:55:14]line 30.000 x 61.90 [18:55:14]line ИТОГ: 1857.00 [18:55:14]line Тип оплаты: Талоны: Топливные Талоны [18:55:14]line 3847488/3847497/3847499 [18:55:14]line ______________________ [18:55:14]line (подпись) [18:55:14]written 0, free lines is 4095 [18:55:14]Write to MH i2c: 01 00 00 D8 41 19 [18:55:14]Write i2c OK [18:55:14]MH_I2C_Read... [18:55:14]Read from MH i2c: 01 [18:55:14]MH_I2C_Read... [18:55:14]Read from MH i2c: 01 07 00 [18:55:14]MH_I2C_Read... [18:55:14]Read from MH i2c: 01 07 00 D8 41 00 00 00 00 00 FE 0D 2B [18:55:14]RasterBufferAndPrint [18:55:14]line [18:55:14]line [18:55:14]line [18:55:14]line [18:55:14]line [18:55:14]written 0, free lines is 3584 [18:55:14]MH_Cut [18:55:14]Write to MH i2c: D1 01 00 DF 41 01 F2 [18:55:14]Write i2c OK [18:55:14]MH_I2C_Read... [18:55:14]Read from MH i2c: D1 [18:55:14]MH_I2C_Read... [18:55:14]Read from MH i2c: D1 01 00 [18:55:14]MH_I2C_Read... [18:55:14]Read from MH i2c: D1 01 00 DF 41 00 F1 [18:55:14]Write to MH i2c: 01 00 00 E0 41 21 [18:55:14]Write i2c OK [18:55:14]MH_I2C_Read... [18:55:15]OFD Sender: No OFD packet to send [18:55:15]*** Cut start [18:55:15]*** Purtial cut [18:55:15]*** Stage 1: CUTSNS_PIN = 1 [18:55:17]Read from MH i2c: 01 [18:55:17]MH_I2C_Read... [18:55:17]*** Stop cut motor [18:55:17]*** Cut end [18:55:17]Read from MH i2c: 01 07 00 [18:55:17]MH_I2C_Read... [18:55:17]Read from MH i2c: 01 07 00 E0 41 00 00 00 00 00 FF 0F 36 [18:55:17]process_action print_text done [18:55:17]requested_data is exist [18:55:17]produce_requested_data [18:55:17]requested_item fm.sn is exist - process it [18:55:17]wFMCommunicate request_size=4 [18:55:17]MH_SAM_APDU [18:55:17]CAPDU: 80 11 00 00 [18:55:17]Write to MH i2c: E2 08 00 E1 41 80 11 00 00 00 00 00 00 9C [18:55:17]Write i2c OK [18:55:17]MH_I2C_Read... [18:55:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:55:17]Read from MH i2c: E2 [18:55:17]MH_I2C_Read... [18:55:17]Read from MH i2c: E2 17 00 [18:55:17]MH_I2C_Read... [18:55:17]Read from MH i2c: E2 17 00 E1 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 FA [18:55:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [18:55:17]wFMCommunicate OK [18:55:17]requested_item fd.num is exist - process it [18:55:17]SAM_PROTO_GetFieldsCounters [18:55:17]wFMCommunicate request_size=4 [18:55:17]MH_SAM_APDU [18:55:17]CAPDU: 80 13 00 00 [18:55:17]Write to MH i2c: E2 08 00 E2 41 80 13 00 00 00 00 00 00 9F [18:55:17]Write i2c OK [18:55:17]MH_I2C_Read... [18:55:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:55:17]Read from MH i2c: E2 [18:55:17]MH_I2C_Read... [18:55:17]Read from MH i2c: E2 62 00 [18:55:17]MH_I2C_Read... [18:55:17]Read from MH i2c: E2 62 00 E2 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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 BB E1 01 00 0E 04 04 00 43 01 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 C7 [18:55: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 BB E1 01 00 0E 04 04 00 43 01 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 [18:55:17]wFMCommunicate OK [18:55:17]SAM_PROTO_GetFieldsCounters done [18:55:17]requested_item shift.num is exist - process it [18:55:17]requested_item shift.opened is exist - process it [18:55:17]req_shift_opened [18:55:17]FM_GetShiftState [18:55:17]SAM_PROTO_GetShiftState [18:55:17]wFMCommunicate request_size=4 [18:55:17]MH_SAM_APDU [18:55:17]CAPDU: 80 13 01 00 [18:55:17]Write to MH i2c: E2 08 00 E3 41 80 13 01 00 00 00 00 00 A1 [18:55:17]Write i2c OK [18:55:17]MH_I2C_Read... [18:55:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:55:17]Read from MH i2c: E2 [18:55:17]MH_I2C_Read... [18:55:17]Read from MH i2c: E2 0E 00 [18:55:17]MH_I2C_Read... [18:55:17]Read from MH i2c: E2 0E 00 E3 41 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 63 [18:55:17]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [18:55:17]wFMCommunicate OK [18:55:17]SAM_PROTO_GetShiftState done [18:55:17]FM_GetShiftState done [18:55:17]req_shift_opened done [18:55:17]requested_item shift.open_date is exist - process it [18:55:17]req_shift_open_date [18:55:17]req_shift_open_date done [18:55:17]produce_requested_data done [18:55:17]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123323,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [18:55:17]process_action_free print_text [18:55:17]json_value_free [18:55:17]json_value_free done [18:55:17]process_json_proto returns [18:55:17]Send response to host [18:55:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123323,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [18:55:17]free response buf [18:55:17]execute_script done [18:55:17]execute_script returns [18:55:17]free content buf [18:55:17]Sock 9.Close socket [18:55:17]Sock 9.Thread stoped [18:55:20]OFD Sender: No OFD packet to send [18:55:25]OFD Sender: No OFD packet to send [18:55:30]OFD Sender: No OFD packet to send [18:55:35]OFD Sender: No OFD packet to send [18:55:40]OFD Sender: No OFD packet to send [18:55:45]OFD Sender: No OFD packet to send [18:55:50]OFD Sender: No OFD packet to send [18:55:55]OFD Sender: No OFD packet to send [18:56:00]OFD Sender: No OFD packet to send [18:56:05]OFD Sender: No OFD packet to send [18:56:10]OFD Sender: No OFD packet to send [18:56:15]OFD Sender: No OFD packet to send [18:56:20]OFD Sender: No OFD packet to send [18:56:25]OFD Sender: No OFD packet to send [18:56:30]OFD Sender: No OFD packet to send [18:56:35]OFD Sender: No OFD packet to send [18:56:40]OFD Sender: No OFD packet to send [18:56:45]OFD Sender: No OFD packet to send [18:56:50]OFD Sender: No OFD packet to send [18:56:55]OFD Sender: No OFD packet to send [18:57:00]OFD Sender: No OFD packet to send [18:57:05]OFD Sender: No OFD packet to send [18:57:10]OFD Sender: No OFD packet to send [18:57:15]OFD Sender: No OFD packet to send [18:57:20]OFD Sender: No OFD packet to send [18:57:25]OFD Sender: No OFD packet to send [18:57:30]OFD Sender: No OFD packet to send [18:57:35]OFD Sender: No OFD packet to send [18:57:40]OFD Sender: No OFD packet to send [18:57:45]OFD Sender: No OFD packet to send [18:57:50]OFD Sender: No OFD packet to send [18:57:55]OFD Sender: No OFD packet to send [18:58:00]OFD Sender: No OFD packet to send [18:58:05]OFD Sender: No OFD packet to send [18:58:10]OFD Sender: No OFD packet to send [18:58:15]OFD Sender: No OFD packet to send [18:58:20]OFD Sender: No OFD packet to send [18:58:25]OFD Sender: No OFD packet to send [18:58:30]OFD Sender: No OFD packet to send [18:58:35]OFD Sender: No OFD packet to send [18:58:40]OFD Sender: No OFD packet to send [18:58:45]OFD Sender: No OFD packet to send [18:58:50]OFD Sender: No OFD packet to send [18:58:55]OFD Sender: No OFD packet to send [18:59:00]OFD Sender: No OFD packet to send [18:59:04]accept exits with 10 [18:59:04]New connection [18:59:04]New thread 3067252068 created [18:59:04]Thread 3067395428 joined [18:59:04]Waiting for new connection... [18:59:04] Sock 10.Parse request [18:59:04]Sock 10.Check first char [18:59:04]Sock 10.First char is OK [18:59:04]request: POST /json_proto HTTP/1.0 [18:59:04]Method: POST [18:59:04]URL: /json_proto [18:59:04]Method is POST - this is cgi request [18:59:04]url: /json_proto [18:59:04]query_string will be loaded in cgi processing [18:59:04]execute_cgi json_proto POST (null) [18:59:04]execute_cgi path=json_proto method=POST [18:59:04]POST find Content-Length [18:59:04]Host: 172.17.48.197:8080 [18:59:04]Content-Length: 806 [18:59:04]Content-Type: application/json [18:59:04] [18:59:04]POST finish read [18:59:04]Found Content-Length = 806 [18:59:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106278", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 9.700, "sum" : 600.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:59:04]execute_script... [18:59: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)1106278", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 9.700, "sum" : 600.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:59:04]POST & json_proto [18:59:04]process_json_proto [18:59:04]json parsed OK: [18:59:04]protocol is kg_v1.0 [18:59:04]action value=close_receipt [18:59:04]process_action close_receipt [18:59:04]cmd_close_receipt [18:59:04]MH_GetDate [18:59:04]Write to MH i2c: F0 00 00 E4 41 14 [18:59:04]Write i2c OK [18:59:04]MH_I2C_Read... [18:59:04]Read from MH i2c: F0 [18:59:04]MH_I2C_Read... [18:59:04]Read from MH i2c: F0 09 00 [18:59:04]MH_I2C_Read... [18:59:04]Read from MH i2c: F0 09 00 E4 41 00 7D C8 E4 65 6C AF E3 65 0E [18:59:04]GetLastDocTimeStamp 1709491641 [18:59:04]current date 1709492349 [18:59:04]FM_GetShiftState [18:59:04]SAM_PROTO_GetShiftState [18:59:04]wFMCommunicate request_size=4 [18:59:04]MH_SAM_APDU [18:59:04]CAPDU: 80 13 01 00 [18:59:04]Write to MH i2c: E2 08 00 E5 41 80 13 01 00 00 00 00 00 A3 [18:59:04]Write i2c OK [18:59:04]MH_I2C_Read... [18:59:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:59:04]Read from MH i2c: E2 [18:59:04]MH_I2C_Read... [18:59:04]Read from MH i2c: E2 0E 00 [18:59:04]MH_I2C_Read... [18:59:04]Read from MH i2c: E2 0E 00 E5 41 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 65 [18:59:04]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [18:59:04]wFMCommunicate OK [18:59:04]SAM_PROTO_GetShiftState done [18:59:04]FM_GetShiftState done [18:59:04]opened in 1709425579 [18:59:04]opened+sec_in_day 1709511979 [18:59:04]quantity*price = 60043 [18:59:04]sum+1 = 60044 [18:59:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.43 НСП 1% : 5.31 НДС 12% : 63.76 Наличными: 0.00 Безнал.: 600.43 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 181 03.03.2024 18:59 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874798 ФД: 123324 ФПД: 233944441160740 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T185909&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123324&fm=233944441160740&tin=02508201610067®Number=0000000000090573&sum=60043 [18:59:06]StoreToDocumentArchive [18:59:06]shift 323 fd 123324 [18:59:06]save to /storage/0323/doc_00123324 [18:59:06]save last doc name /storage/0323/doc_00123324 to /storage/kkm_last_doc_name [18:59:06]save OK [18:59:06]Clear old archive folders... [18:59:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:59:06]tlvbuf is 00DA8FC0 [18:59:06]SAM_PROTO_ClearQueue [18:59:06]wFMCommunicate request_size=4 [18:59:06]MH_SAM_APDU [18:59:06]CAPDU: 80 09 00 00 [18:59:06]Write to MH i2c: E2 08 00 F2 41 80 09 00 00 00 00 00 00 A5 [18:59:06]Write i2c OK [18:59:06]MH_I2C_Read... [18:59:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:59:06]Read from MH i2c: E2 [18:59:06]MH_I2C_Read... [18:59:06]Read from MH i2c: E2 03 00 [18:59:06]MH_I2C_Read... [18:59:06]Read from MH i2c: E2 03 00 F2 41 00 90 00 A7 [18:59:06]RAPDU: 90 00 [18:59:06]wFMCommunicate OK [18:59:06]SAM_PROTO_ClearQueue done [18:59:06]KKMCreateOFDPacket [18:59:06]OFDProtocolAddRootSTLVToBuf [18:59:06]FM_MakeSignedData [18:59:06]FM_MakeSignedData [18:59:06]SAM_PROTO_SignData [18:59:06]wFMCommunicate request_size=4 [18:59:06]MH_SAM_APDU [18:59:06]CAPDU: 80 0D 01 02 [18:59:06]Write to MH i2c: E2 08 00 F3 41 80 0D 01 02 00 00 00 00 AD [18:59:06]Write i2c OK [18:59:06]MH_I2C_Read... [18:59:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:59:06]Read from MH i2c: E2 [18:59:06]MH_I2C_Read... [18:59:06]Read from MH i2c: E2 03 00 [18:59:06]MH_I2C_Read... [18:59:06]Read from MH i2c: E2 03 00 F3 41 00 90 00 A8 [18:59:06]RAPDU: 90 00 [18:59:06]wFMCommunicate OK [18:59:06]wFMCommunicate request_size=255 [18:59:06]MH_SAM_APDU [18:59: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 35 FF 03 08 00 03 E4 25 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 8B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8B 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 E8 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8B EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 7D C8 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 BC E1 01 00 35 04 06 00 D4 [18:59:06]Write to MH i2c: E2 02 01 F4 41 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 25 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 8B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8B 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 E8 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8B EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 7D C8 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 BC E1 01 00 35 04 06 00 D4 00 00 7D [18:59:06]Write i2c OK [18:59:06]MH_I2C_Read... [18:59:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:59:06]Read from MH i2c: E2 [18:59:06]MH_I2C_Read... [18:59:06]Read from MH i2c: E2 03 00 [18:59:06]MH_I2C_Read... [18:59:06]Read from MH i2c: E2 03 00 F4 41 00 90 00 A9 [18:59:06]RAPDU: 90 00 [18:59:06]wFMCommunicate OK [18:59:06]wFMCommunicate request_size=10 [18:59:06]MH_SAM_APDU [18:59:06]CAPDU: 80 0D 02 02 05 C5 6F 50 04 24 [18:59:06]Write to MH i2c: E2 0D 00 F5 41 80 0D 02 02 05 00 C5 6F 50 04 24 00 00 66 [18:59:06]Write i2c OK [18:59:06]MH_I2C_Read... [18:59:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:59:06]Read from MH i2c: E2 [18:59:06]MH_I2C_Read... [18:59:06]Read from MH i2c: E2 03 00 [18:59:06]MH_I2C_Read... [18:59:06]Read from MH i2c: E2 03 00 F5 41 00 90 00 AA [18:59:06]RAPDU: 90 00 [18:59:06]wFMCommunicate OK [18:59:06]wFMCommunicate request_size=4 [18:59:06]MH_SAM_APDU [18:59:06]CAPDU: 80 0D 03 02 [18:59:06]Write to MH i2c: E2 08 00 F6 41 80 0D 03 02 00 00 00 00 B2 [18:59:06]Write i2c OK [18:59:06]MH_I2C_Read... [18:59:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:59:06]Read from MH i2c: E2 [18:59:06]MH_I2C_Read... [18:59:06]Read from MH i2c: E2 0B 00 [18:59:06]MH_I2C_Read... [18:59:06]Read from MH i2c: E2 0B 00 F6 41 00 E1 50 81 D4 30 5C AD DE 90 00 50 [18:59:06]RAPDU: E1 50 81 D4 30 5C AD DE 90 00 [18:59:06]wFMCommunicate OK [18:59:06]SAM_PROTO_SignData done [18:59:06]FM_MakeSignedData done [18:59:06]CreateOFDProtocolMessage [18:59:06]wFMCommunicate request_size=4 [18:59:06]MH_SAM_APDU [18:59:06]CAPDU: 80 11 00 00 [18:59:06]Write to MH i2c: E2 08 00 F7 41 80 11 00 00 00 00 00 00 B2 [18:59:06]Write i2c OK [18:59:06]MH_I2C_Read... [18:59:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:59:06]Read from MH i2c: E2 [18:59:06]MH_I2C_Read... [18:59:06]Read from MH i2c: E2 17 00 [18:59:06]MH_I2C_Read... [18:59:06]Read from MH i2c: E2 17 00 F7 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 10 [18:59:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [18:59:06]wFMCommunicate OK [18:59:06]CreateOFDProtocolMessage done [18:59:06]OFDSenderStorePacket 123324 [18:59:06]StoreOFDPacket docnum=123324 [18:59:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 8E DC 07 01 2F FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 25 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 8B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8B 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 E8 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8B EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 7D C8 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 BC E1 01 00 35 04 06 00 D4 C5 6F 50 04 24 E1 50 81 D4 30 5C AD DE [18:59:06]CheckFolder [18:59:06]dirname=/storage/ofd_packets [18:59:06]CheckFolder done [18:59:06]ProducePacketName [18:59:06]name=ofd_packets/00123324 [18:59:06]NVStorageSaveData ofd_packets/00123324 [18:59:06]File name is /storage/ofd_packets/00123324 [18:59:06]Write 301 bytes [18:59:06]NVStorageSaveData done [18:59:06]OFDSenderStorePacket done [18:59:06]KKMCreateOFDPacket done [18:59:06]NVStorageSaveData kkm_last_timestamp [18:59:06]File name is /storage/kkm_last_timestamp [18:59:06]Write 4 bytes [18:59:06]NVStorageSaveData done [18:59:06]ExternCall_PrintAddStr [18:59:06]wPrintStart [18:59:06]Write to MH i2c: 01 00 00 F8 41 39 [18:59:06]Write i2c OK [18:59:06]MH_I2C_Read... [18:59:06]Read from MH i2c: 01 [18:59:06]MH_I2C_Read... [18:59:06]Read from MH i2c: 01 07 00 [18:59:06]MH_I2C_Read... [18:59:06]Read from MH i2c: 01 07 00 F8 41 00 00 00 00 00 FF 0F 4E [18:59:06]RasterBufferAndPrint [18:59:06]line Счет N : (1)1106278 [18:59:06]line ИНН: 02508201610067 [18:59:06]line Контрольно-Кассовый Чек [18:59:06]line ПРОДАЖА [18:59:06]line ТРК (МРК, ГНК) : 32 [18:59:06]line Товар: 2710124130 [18:59:06]line Аи-92-К-5 [18:59:06]line 9.700 * 61.90 [18:59:06]line = 600.43 [18:59:06]line НДС 12% НСП 1% [18:59:06]line > о реализуемом товаре [18:59:06]line ИТОГО: 600.43 [18:59:06]line НСП 1% : 5.31 [18:59:06]line НДС 12% : 63.76 [18:59:06]line Наличными: 0.00 [18:59:06]line Безнал.: 600.43 [18:59:06]line Место: АЗС № 25 "Партнер Нефть" [18:59:06]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [18:59:06]line СНО: Общий режим [18:59:06]line Чек 181 03.03.2024 18:59 [18:59:06]line Смена: 323 ФФД: 1.0 [18:59:06]line ЗНМ: 0300000019 [18:59:06]line РНМ: 0000000000090573 [18:59:06]line Версия ККМ: 001 [18:59:06]line Платежная система: О! деньги [18:59:06]line ФМ: 0000000000874798 [18:59:06]line ФД: 123324 [18:59:06]line ФПД: 233944441160740 [18:59:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T185909&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123324&fm=233944441160740&tin=02508201610067®Number=0000000000090573&sum=60043 [18:59:06]OFD Sender: Processing packet 123324 [packets to send 112, broken 111] [18:59:06]ProducePacketName [18:59:06]name=ofd_packets/00123324 [18:59:06]OFD Sender: To server: pG, [18:59:06]CommunicateWithHost lk.salyk.kg:30040 [18:59:06]ConnectInit lk.salyk.kg [18:59:06]written 0, free lines is 4095 [18:59:07]Connected sock=7 [18:59: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 37 39 38 0F 01 00 00 8E DC 07 01 2F FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 25 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 8B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8B 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 E8 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8B EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 7D C8 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 BC E1 01 00 35 04 06 00 D4 C5 6F 50 04 24 E1 50 81 D4 30 5C AD DE [18:59:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 A1 A0 47 00 13 A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 BC E1 01 00 F4 03 04 00 A8 74 E4 65 B6 04 01 00 00 3A 96 A7 20 81 15 FA DD [18:59:07]CommunicateWithHost err = 0 [18:59:07]CheckOFDResponse [18:59:07]1017 (14) - 77093643461234 [18:59:07]1041 (16) - 0000000000874798 [18:59:07]1040 (4) - 123324 [18:59:07]1012 (4) - 03.03.2024 13:01 [18:59:07]1206 (1) - 0 [18:59:07]OFD Sender: Remove packet 123324 [18:59:07]ProducePacketName [18:59:07]name=ofd_packets/00123324 [18:59:07]NVStorageDeleteData [18:59:07]Write to MH i2c: 01 00 00 22 42 64 [18:59:07]Write i2c OK [18:59:07]MH_I2C_Read... [18:59:07]Read from MH i2c: 01 [18:59:07]MH_I2C_Read... [18:59:07]Read from MH i2c: 01 07 00 [18:59:07]MH_I2C_Read... [18:59:07]Read from MH i2c: 01 07 00 22 42 00 00 00 00 00 F3 0C 6A [18:59:07]RasterBufferAndPrint [18:59:07]line [18:59:07]line [18:59:07]line [18:59:07]line [18:59:07]line [18:59:07]written 0, free lines is 3324 [18:59:07]MH_Cut [18:59:07]Write to MH i2c: D1 01 00 29 42 01 3D [18:59:07]Write i2c OK [18:59:07]MH_I2C_Read... [18:59:07]Read from MH i2c: D1 [18:59:07]MH_I2C_Read... [18:59:07]Read from MH i2c: D1 01 00 [18:59:07]MH_I2C_Read... [18:59:07]Read from MH i2c: D1 01 00 29 42 00 3C [18:59:07]Write to MH i2c: 01 00 00 2A 42 6C [18:59:07]Write i2c OK [18:59:07]MH_I2C_Read... [18:59:07]OFD Sender: No OFD packet to send [18:59:08]*** Cut start [18:59:08]*** Purtial cut [18:59:08]*** Stage 1: CUTSNS_PIN = 1 [18:59:10]Read from MH i2c: 01 [18:59:10]MH_I2C_Read... [18:59:10]*** Stop cut motor [18:59:10]*** Cut end [18:59:10]Read from MH i2c: 01 07 00 [18:59:10]MH_I2C_Read... [18:59:10]Read from MH i2c: 01 07 00 2A 42 00 00 00 00 00 FF 0F 81 [18:59:10]process_action close_receipt done [18:59:10]requested_data is exist [18:59:10]produce_requested_data [18:59:10]requested_item fm.sn is exist - process it [18:59:10]wFMCommunicate request_size=4 [18:59:10]MH_SAM_APDU [18:59:10]CAPDU: 80 11 00 00 [18:59:10]Write to MH i2c: E2 08 00 2B 42 80 11 00 00 00 00 00 00 E7 [18:59:10]Write i2c OK [18:59:10]MH_I2C_Read... [18:59:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:59:10]Read from MH i2c: E2 [18:59:10]MH_I2C_Read... [18:59:10]Read from MH i2c: E2 17 00 [18:59:10]MH_I2C_Read... [18:59:10]Read from MH i2c: E2 17 00 2B 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 45 [18:59:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [18:59:10]wFMCommunicate OK [18:59:10]requested_item fd.num is exist - process it [18:59:10]SAM_PROTO_GetFieldsCounters [18:59:10]wFMCommunicate request_size=4 [18:59:10]MH_SAM_APDU [18:59:10]CAPDU: 80 13 00 00 [18:59:10]Write to MH i2c: E2 08 00 2C 42 80 13 00 00 00 00 00 00 EA [18:59:10]Write i2c OK [18:59:10]MH_I2C_Read... [18:59:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:59:10]Read from MH i2c: E2 [18:59:10]MH_I2C_Read... [18:59:10]Read from MH i2c: E2 62 00 [18:59:10]MH_I2C_Read... [18:59:10]Read from MH i2c: E2 62 00 2C 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 BC E1 01 00 0E 04 04 00 43 01 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 [18:59: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 BC E1 01 00 0E 04 04 00 43 01 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 [18:59:10]wFMCommunicate OK [18:59:10]SAM_PROTO_GetFieldsCounters done [18:59:10]requested_item shift.num is exist - process it [18:59:10]requested_item shift.opened is exist - process it [18:59:10]req_shift_opened [18:59:10]FM_GetShiftState [18:59:10]SAM_PROTO_GetShiftState [18:59:10]wFMCommunicate request_size=4 [18:59:10]MH_SAM_APDU [18:59:10]CAPDU: 80 13 01 00 [18:59:10]Write to MH i2c: E2 08 00 2D 42 80 13 01 00 00 00 00 00 EC [18:59:10]Write i2c OK [18:59:10]MH_I2C_Read... [18:59:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:59:10]Read from MH i2c: E2 [18:59:10]MH_I2C_Read... [18:59:10]Read from MH i2c: E2 0E 00 [18:59:10]MH_I2C_Read... [18:59:10]Read from MH i2c: E2 0E 00 2D 42 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 AE [18:59:10]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [18:59:10]wFMCommunicate OK [18:59:10]SAM_PROTO_GetShiftState done [18:59:10]FM_GetShiftState done [18:59:10]req_shift_opened done [18:59:10]requested_item shift.open_date is exist - process it [18:59:10]req_shift_open_date [18:59:10]req_shift_open_date done [18:59:10]produce_requested_data done [18:59:10]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123324,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [18:59:10]process_action_free close_receipt [18:59:10]json_value_free [18:59:10]json_value_free done [18:59:10]process_json_proto returns [18:59:10]Send response to host [18:59:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123324,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [18:59:10]free response buf [18:59:10]execute_script done [18:59:10]execute_script returns [18:59:10]free content buf [18:59:10]Sock 10.Close socket [18:59:10]Sock 10.Thread stoped [18:59:12]OFD Sender: No OFD packet to send [18:59:17]OFD Sender: No OFD packet to send [18:59:22]OFD Sender: No OFD packet to send [18:59:27]OFD Sender: No OFD packet to send [18:59:32]OFD Sender: No OFD packet to send [18:59:37]OFD Sender: No OFD packet to send [18:59:42]OFD Sender: No OFD packet to send [18:59:47]OFD Sender: No OFD packet to send [18:59:52]OFD Sender: No OFD packet to send [18:59:57]OFD Sender: No OFD packet to send [19:00:02]OFD Sender: No OFD packet to send [19:00:07]OFD Sender: No OFD packet to send [19:00:12]OFD Sender: No OFD packet to send [19:00:17]OFD Sender: No OFD packet to send [19:00:22]OFD Sender: No OFD packet to send [19:00:27]OFD Sender: No OFD packet to send [19:00:32]OFD Sender: No OFD packet to send [19:00:37]OFD Sender: No OFD packet to send [19:00:42]OFD Sender: No OFD packet to send [19:00:47]OFD Sender: No OFD packet to send [19:00:52]OFD Sender: No OFD packet to send [19:00:57]OFD Sender: No OFD packet to send [19:01:02]OFD Sender: No OFD packet to send [19:01:07]OFD Sender: No OFD packet to send [19:01:12]OFD Sender: No OFD packet to send [19:01:17]OFD Sender: No OFD packet to send [19:01:22]OFD Sender: No OFD packet to send [19:01:27]OFD Sender: No OFD packet to send [19:01:32]OFD Sender: No OFD packet to send [19:01:37]OFD Sender: No OFD packet to send [19:01:42]OFD Sender: No OFD packet to send [19:01:47]OFD Sender: No OFD packet to send [19:01:52]OFD Sender: No OFD packet to send [19:01:57]OFD Sender: No OFD packet to send [19:02:02]OFD Sender: No OFD packet to send [19:02:07]OFD Sender: No OFD packet to send [19:02:12]OFD Sender: No OFD packet to send [19:02:17]OFD Sender: No OFD packet to send [19:02:22]OFD Sender: No OFD packet to send [19:02:27]OFD Sender: No OFD packet to send [19:02:32]OFD Sender: No OFD packet to send [19:02:37]OFD Sender: No OFD packet to send [19:02:42]OFD Sender: No OFD packet to send [19:02:47]OFD Sender: No OFD packet to send [19:02:52]OFD Sender: No OFD packet to send [19:02:57]OFD Sender: No OFD packet to send [19:03:02]OFD Sender: No OFD packet to send [19:03:08]OFD Sender: No OFD packet to send [19:03:13]OFD Sender: No OFD packet to send [19:03:18]OFD Sender: No OFD packet to send [19:03:23]OFD Sender: No OFD packet to send [19:03:28]OFD Sender: No OFD packet to send [19:03:33]OFD Sender: No OFD packet to send [19:03:33]accept exits with 9 [19:03:33]New connection [19:03:33]New thread 3067395428 created [19:03:33]Thread 3067252068 joined [19:03:33]Waiting for new connection... [19:03:33] Sock 9.Parse request [19:03:33]Sock 9.Check first char [19:03:33]Sock 9.First char is OK [19:03:33]request: POST /json_proto HTTP/1.0 [19:03:33]Method: POST [19:03:33]URL: /json_proto [19:03:33]Method is POST - this is cgi request [19:03:33]url: /json_proto [19:03:33]query_string will be loaded in cgi processing [19:03:33]execute_cgi json_proto POST (null) [19:03:33]execute_cgi path=json_proto method=POST [19:03:33]POST find Content-Length [19:03:33]Host: 172.17.48.197:8080 [19:03:33]Content-Length: 678 [19:03:33]Content-Type: application/json [19:03:33] [19:03:33]POST finish read [19:03:33]Found Content-Length = 678 [19:03:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106279", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 4.850, "sum" : 300.22, "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:03:33]execute_script... [19:03: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)1106279", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 4.850, "sum" : 300.22, "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:03:33]POST & json_proto [19:03:33]process_json_proto [19:03:33]json parsed OK: [19:03:33]protocol is kg_v1.0 [19:03:33]action value=close_receipt [19:03:33]process_action close_receipt [19:03:33]cmd_close_receipt [19:03:33]MH_GetDate [19:03:33]Write to MH i2c: F0 00 00 2E 42 5F [19:03:33]Write i2c OK [19:03:33]MH_I2C_Read... [19:03:33]Read from MH i2c: F0 [19:03:33]MH_I2C_Read... [19:03:33]Read from MH i2c: F0 09 00 [19:03:33]MH_I2C_Read... [19:03:33]Read from MH i2c: F0 09 00 2E 42 00 89 C9 E4 65 6C AF E3 65 66 [19:03:33]GetLastDocTimeStamp 1709492349 [19:03:33]current date 1709492617 [19:03:33]FM_GetShiftState [19:03:33]SAM_PROTO_GetShiftState [19:03:33]wFMCommunicate request_size=4 [19:03:33]MH_SAM_APDU [19:03:33]CAPDU: 80 13 01 00 [19:03:33]Write to MH i2c: E2 08 00 2F 42 80 13 01 00 00 00 00 00 EE [19:03:33]Write i2c OK [19:03:33]MH_I2C_Read... [19:03:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:03:33]Read from MH i2c: E2 [19:03:33]MH_I2C_Read... [19:03:33]Read from MH i2c: E2 0E 00 [19:03:33]MH_I2C_Read... [19:03:33]Read from MH i2c: E2 0E 00 2F 42 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 B0 [19:03:33]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [19:03:33]wFMCommunicate OK [19:03:33]SAM_PROTO_GetShiftState done [19:03:33]FM_GetShiftState done [19:03:33]opened in 1709425579 [19:03:33]opened+sec_in_day 1709511979 [19:03:33]quantity*price = 30021 [19:03:33]sum+1 = 30023 [19:03:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.88 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 182 03.03.2024 19:03 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123325 ФПД: 152476360488120 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T190337&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123325&fm=152476360488120&tin=02508201610067®Number=0000000000090573&sum=30000 [19:03:34]StoreToDocumentArchive [19:03:34]shift 323 fd 123325 [19:03:34]save to /storage/0323/doc_00123325 [19:03:34]save last doc name /storage/0323/doc_00123325 to /storage/kkm_last_doc_name [19:03:34]save OK [19:03:34]Clear old archive folders... [19:03:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:03:34]tlvbuf is 00EF83C0 [19:03:34]SAM_PROTO_ClearQueue [19:03:34]wFMCommunicate request_size=4 [19:03:34]MH_SAM_APDU [19:03:34]CAPDU: 80 09 00 00 [19:03:34]Write to MH i2c: E2 08 00 3C 42 80 09 00 00 00 00 00 00 F0 [19:03:34]Write i2c OK [19:03:34]MH_I2C_Read... [19:03:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:03:34]Read from MH i2c: E2 [19:03:34]MH_I2C_Read... [19:03:34]Read from MH i2c: E2 03 00 [19:03:34]MH_I2C_Read... [19:03:34]Read from MH i2c: E2 03 00 3C 42 00 90 00 F2 [19:03:34]RAPDU: 90 00 [19:03:34]wFMCommunicate OK [19:03:34]SAM_PROTO_ClearQueue done [19:03:34]KKMCreateOFDPacket [19:03:34]OFDProtocolAddRootSTLVToBuf [19:03:34]FM_MakeSignedData [19:03:34]FM_MakeSignedData [19:03:34]SAM_PROTO_SignData [19:03:34]wFMCommunicate request_size=4 [19:03:34]MH_SAM_APDU [19:03:34]CAPDU: 80 0D 01 02 [19:03:34]Write to MH i2c: E2 08 00 3D 42 80 0D 01 02 00 00 00 00 F8 [19:03:34]Write i2c OK [19:03:34]MH_I2C_Read... [19:03:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:03:34]Read from MH i2c: E2 [19:03:34]MH_I2C_Read... [19:03:34]Read from MH i2c: E2 03 00 [19:03:34]MH_I2C_Read... [19:03:34]Read from MH i2c: E2 03 00 3D 42 00 90 00 F3 [19:03:34]RAPDU: 90 00 [19:03:34]wFMCommunicate OK [19:03:34]wFMCommunicate request_size=255 [19:03:34]MH_SAM_APDU [19:03: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 35 FF 03 08 00 03 F2 12 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 46 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 74 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 B6 00 00 00 F4 03 04 00 89 C9 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 BD E1 01 00 35 04 06 00 8A [19:03:34]Write to MH i2c: E2 02 01 3E 42 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 12 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 46 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 74 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 B6 00 00 00 F4 03 04 00 89 C9 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 BD E1 01 00 35 04 06 00 8A 00 00 A4 [19:03:34]Write i2c OK [19:03:34]MH_I2C_Read... [19:03:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:03:34]Read from MH i2c: E2 [19:03:34]MH_I2C_Read... [19:03:34]Read from MH i2c: E2 03 00 [19:03:34]MH_I2C_Read... [19:03:34]Read from MH i2c: E2 03 00 3E 42 00 90 00 F4 [19:03:34]RAPDU: 90 00 [19:03:34]wFMCommunicate OK [19:03:34]wFMCommunicate request_size=10 [19:03:34]MH_SAM_APDU [19:03:34]CAPDU: 80 0D 02 02 05 AD 2B 4D B4 B8 [19:03:34]Write to MH i2c: E2 0D 00 3F 42 80 0D 02 02 05 00 AD 2B 4D B4 B8 00 00 96 [19:03:34]Write i2c OK [19:03:34]MH_I2C_Read... [19:03:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:03:34]Read from MH i2c: E2 [19:03:34]MH_I2C_Read... [19:03:34]Read from MH i2c: E2 03 00 [19:03:34]MH_I2C_Read... [19:03:34]Read from MH i2c: E2 03 00 3F 42 00 90 00 F5 [19:03:34]RAPDU: 90 00 [19:03:34]wFMCommunicate OK [19:03:34]wFMCommunicate request_size=4 [19:03:34]MH_SAM_APDU [19:03:34]CAPDU: 80 0D 03 02 [19:03:34]Write to MH i2c: E2 08 00 40 42 80 0D 03 02 00 00 00 00 FD [19:03:34]Write i2c OK [19:03:34]MH_I2C_Read... [19:03:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:03:34]Read from MH i2c: E2 [19:03:34]MH_I2C_Read... [19:03:34]Read from MH i2c: E2 0B 00 [19:03:34]MH_I2C_Read... [19:03:34]Read from MH i2c: E2 0B 00 40 42 00 FD 47 86 C9 98 CF 20 4B 90 00 63 [19:03:34]RAPDU: FD 47 86 C9 98 CF 20 4B 90 00 [19:03:34]wFMCommunicate OK [19:03:34]SAM_PROTO_SignData done [19:03:34]FM_MakeSignedData done [19:03:34]CreateOFDProtocolMessage [19:03:34]wFMCommunicate request_size=4 [19:03:34]MH_SAM_APDU [19:03:34]CAPDU: 80 11 00 00 [19:03:34]Write to MH i2c: E2 08 00 41 42 80 11 00 00 00 00 00 00 FD [19:03:34]Write i2c OK [19:03:34]MH_I2C_Read... [19:03:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:03:34]Read from MH i2c: E2 [19:03:34]MH_I2C_Read... [19:03:34]Read from MH i2c: E2 17 00 [19:03:34]MH_I2C_Read... [19:03:34]Read from MH i2c: E2 17 00 41 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 5B [19:03:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [19:03:34]wFMCommunicate OK [19:03:34]CreateOFDProtocolMessage done [19:03:34]OFDSenderStorePacket 123325 [19:03:34]StoreOFDPacket docnum=123325 [19:03:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 C0 AE 07 01 C2 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 12 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 46 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 74 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 B6 00 00 00 F4 03 04 00 89 C9 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 BD E1 01 00 35 04 06 00 8A AD 2B 4D B4 B8 FD 47 86 C9 98 CF 20 4B [19:03:34]CheckFolder [19:03:34]dirname=/storage/ofd_packets [19:03:34]CheckFolder done [19:03:34]ProducePacketName [19:03:34]name=ofd_packets/00123325 [19:03:34]NVStorageSaveData ofd_packets/00123325 [19:03:34]File name is /storage/ofd_packets/00123325 [19:03:34]Write 301 bytes [19:03:34]NVStorageSaveData done [19:03:34]OFDSenderStorePacket done [19:03:34]KKMCreateOFDPacket done [19:03:34]NVStorageSaveData kkm_last_timestamp [19:03:34]File name is /storage/kkm_last_timestamp [19:03:34]Write 4 bytes [19:03:34]NVStorageSaveData done [19:03:34]ExternCall_PrintAddStr [19:03:34]wPrintStart [19:03:34]Write to MH i2c: 01 00 00 42 42 84 [19:03:34]Write i2c OK [19:03:34]MH_I2C_Read... [19:03:34]Read from MH i2c: 01 [19:03:34]MH_I2C_Read... [19:03:34]Read from MH i2c: 01 07 00 [19:03:34]MH_I2C_Read... [19:03:34]Read from MH i2c: 01 07 00 42 42 00 00 00 00 00 FF 0F 99 [19:03:34]RasterBufferAndPrint [19:03:34]line Счет N : (1)1106279 [19:03:34]line ИНН: 02508201610067 [19:03:34]line Контрольно-Кассовый Чек [19:03:34]line ПРОДАЖА [19:03:34]line ТРК (МРК, ГНК) : 62 [19:03:34]line Товар: 2710124130 [19:03:34]line Аи-92-К-5 [19:03:34]line 4.850 * 61.90 [19:03:34]line = 300.22 [19:03:34]line НДС 12% НСП 1% [19:03:34]line > о реализуемом товаре [19:03:34]line ОКРУГЛЕНИЕ: -0.22 [19:03:34]line ИТОГО: 300.00 [19:03:34]line Внесено: 300.00 [19:03:34]line СДАЧА: 0.00 [19:03:34]line НСП 1% : 2.66 [19:03:34]line НДС 12% : 31.88 [19:03:34]line Наличными: 300.00 [19:03:34]line Безнал.: 0.00 [19:03:34]line Место: АЗС № 25 "Партнер Нефть" [19:03:34]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [19:03:34]line СНО: Общий режим [19:03:34]line Чек 182 03.03.2024 19:03 [19:03:34]line Смена: 323 ФФД: 1.0 [19:03:34]line ЗНМ: 0300000019 [19:03:34]line РНМ: 0000000000090573 [19:03:34]line Версия ККМ: 001 [19:03:34]line ФМ: 0000000000874798 [19:03:34]line ФД: 123325 [19:03:34]line ФПД: 152476360488120 [19:03:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T190337&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123325&fm=152476360488120&tin=02508201610067®Number=0000000000090573&sum=30000 [19:03:35]OFD Sender: Processing packet 123325 [packets to send 112, broken 111] [19:03:35]ProducePacketName [19:03:35]name=ofd_packets/00123325 [19:03:35]OFD Sender: To server: pG, [19:03:35]CommunicateWithHost lk.salyk.kg:30040 [19:03:35]ConnectInit lk.salyk.kg [19:03:35]written 0, free lines is 4095 [19:03:35]Connected sock=10 [19:03: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 37 39 38 0F 01 00 00 C0 AE 07 01 C2 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 12 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 46 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 74 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 B6 00 00 00 F4 03 04 00 89 C9 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 BD E1 01 00 35 04 06 00 8A AD 2B 4D B4 B8 FD 47 86 C9 98 CF 20 4B [19:03:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 5D 66 47 00 DC 21 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 BD E1 01 00 F4 03 04 00 B4 75 E4 65 B6 04 01 00 00 F4 E3 44 2F 86 18 96 C6 [19:03:35]CommunicateWithHost err = 0 [19:03:35]CheckOFDResponse [19:03:35]1017 (14) - 77093643461234 [19:03:35]1041 (16) - 0000000000874798 [19:03:35]1040 (4) - 123325 [19:03:35]1012 (4) - 03.03.2024 13:05 [19:03:35]1206 (1) - 0 [19:03:35]OFD Sender: Remove packet 123325 [19:03:35]ProducePacketName [19:03:35]name=ofd_packets/00123325 [19:03:35]NVStorageDeleteData [19:03:35]Write to MH i2c: 01 00 00 6D 42 AF [19:03:35]Write i2c OK [19:03:35]MH_I2C_Read... [19:03:35]Read from MH i2c: 01 [19:03:35]MH_I2C_Read... [19:03:35]Read from MH i2c: 01 07 00 [19:03:35]MH_I2C_Read... [19:03:35]Read from MH i2c: 01 07 00 6D 42 00 00 00 00 00 EC 0C AE [19:03:35]RasterBufferAndPrint [19:03:35]line [19:03:35]line [19:03:35]line [19:03:35]line [19:03:35]line [19:03:35]written 0, free lines is 3317 [19:03:35]MH_Cut [19:03:35]Write to MH i2c: D1 01 00 74 42 01 88 [19:03:35]Write i2c OK [19:03:35]MH_I2C_Read... [19:03:35]Read from MH i2c: D1 [19:03:35]MH_I2C_Read... [19:03:35]Read from MH i2c: D1 01 00 [19:03:35]MH_I2C_Read... [19:03:35]Read from MH i2c: D1 01 00 74 42 00 87 [19:03:35]Write to MH i2c: 01 00 00 75 42 B7 [19:03:35]Write i2c OK [19:03:35]MH_I2C_Read... [19:03:35]OFD Sender: No OFD packet to send [19:03:36]*** Cut start [19:03:36]*** Purtial cut [19:03:36]*** Stage 1: CUTSNS_PIN = 1 [19:03:38]Read from MH i2c: 01 [19:03:38]MH_I2C_Read... [19:03:38]*** Stop cut motor [19:03:38]*** Cut end [19:03:38]Read from MH i2c: 01 07 00 [19:03:38]MH_I2C_Read... [19:03:38]Read from MH i2c: 01 07 00 75 42 00 00 00 00 00 FF 0F CC [19:03:38]process_action close_receipt done [19:03:38]requested_data is exist [19:03:38]produce_requested_data [19:03:38]requested_item fm.sn is exist - process it [19:03:38]wFMCommunicate request_size=4 [19:03:38]MH_SAM_APDU [19:03:38]CAPDU: 80 11 00 00 [19:03:38]Write to MH i2c: E2 08 00 76 42 80 11 00 00 00 00 00 00 32 [19:03:38]Write i2c OK [19:03:38]MH_I2C_Read... [19:03:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:03:38]Read from MH i2c: E2 [19:03:38]MH_I2C_Read... [19:03:38]Read from MH i2c: E2 17 00 [19:03:38]MH_I2C_Read... [19:03:38]Read from MH i2c: E2 17 00 76 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 90 [19:03:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [19:03:38]wFMCommunicate OK [19:03:38]requested_item fd.num is exist - process it [19:03:38]SAM_PROTO_GetFieldsCounters [19:03:38]wFMCommunicate request_size=4 [19:03:38]MH_SAM_APDU [19:03:38]CAPDU: 80 13 00 00 [19:03:38]Write to MH i2c: E2 08 00 77 42 80 13 00 00 00 00 00 00 35 [19:03:38]Write i2c OK [19:03:38]MH_I2C_Read... [19:03:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:03:38]Read from MH i2c: E2 [19:03:38]MH_I2C_Read... [19:03:38]Read from MH i2c: E2 62 00 [19:03:38]MH_I2C_Read... [19:03:38]Read from MH i2c: E2 62 00 77 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 BD E1 01 00 0E 04 04 00 43 01 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 65 [19:03:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 BD E1 01 00 0E 04 04 00 43 01 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 [19:03:38]wFMCommunicate OK [19:03:38]SAM_PROTO_GetFieldsCounters done [19:03:38]requested_item shift.num is exist - process it [19:03:38]requested_item shift.opened is exist - process it [19:03:38]req_shift_opened [19:03:38]FM_GetShiftState [19:03:38]SAM_PROTO_GetShiftState [19:03:38]wFMCommunicate request_size=4 [19:03:38]MH_SAM_APDU [19:03:38]CAPDU: 80 13 01 00 [19:03:38]Write to MH i2c: E2 08 00 78 42 80 13 01 00 00 00 00 00 37 [19:03:38]Write i2c OK [19:03:38]MH_I2C_Read... [19:03:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:03:38]Read from MH i2c: E2 [19:03:38]MH_I2C_Read... [19:03:38]Read from MH i2c: E2 0E 00 [19:03:38]MH_I2C_Read... [19:03:38]Read from MH i2c: E2 0E 00 78 42 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 F9 [19:03:38]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [19:03:38]wFMCommunicate OK [19:03:38]SAM_PROTO_GetShiftState done [19:03:38]FM_GetShiftState done [19:03:38]req_shift_opened done [19:03:38]requested_item shift.open_date is exist - process it [19:03:38]req_shift_open_date [19:03:38]req_shift_open_date done [19:03:38]produce_requested_data done [19:03:38]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123325,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [19:03:38]process_action_free close_receipt [19:03:38]json_value_free [19:03:38]json_value_free done [19:03:38]process_json_proto returns [19:03:38]Send response to host [19:03:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123325,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [19:03:38]free response buf [19:03:38]execute_script done [19:03:38]execute_script returns [19:03:38]free content buf [19:03:38]Sock 9.Close socket [19:03:38]Sock 9.Thread stoped [19:03:40]OFD Sender: No OFD packet to send [19:03:45]OFD Sender: No OFD packet to send [19:03:50]OFD Sender: No OFD packet to send [19:03:55]OFD Sender: No OFD packet to send [19:04:00]OFD Sender: No OFD packet to send [19:04:05]OFD Sender: No OFD packet to send [19:04:10]OFD Sender: No OFD packet to send [19:04:15]OFD Sender: No OFD packet to send [19:04:20]OFD Sender: No OFD packet to send [19:04:25]OFD Sender: No OFD packet to send [19:04:30]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [19:05:00]OFD Sender: No OFD packet to send [19:05:05]OFD Sender: No OFD packet to send [19:05:10]OFD Sender: No OFD packet to send [19:05:15]OFD Sender: No OFD packet to send [19:05:20]OFD Sender: No OFD packet to send [19:05:25]OFD Sender: No OFD packet to send [19:05:31]OFD Sender: No OFD packet to send [19:05:36]OFD Sender: No OFD packet to send [19:05:41]OFD Sender: No OFD packet to send [19:05:46]OFD Sender: No OFD packet to send [19:05:51]OFD Sender: No OFD packet to send [19:05:56]OFD Sender: No OFD packet to send [19:06:01]OFD Sender: No OFD packet to send [19:06:06]OFD Sender: No OFD packet to send [19:06:11]OFD Sender: No OFD packet to send [19:06:12]accept exits with 7 [19:06:12]New connection [19:06:12]New thread 3067252068 created [19:06:12]Thread 3067395428 joined [19:06:12]Waiting for new connection... [19:06:12] Sock 7.Parse request [19:06:12]Sock 7.Check first char [19:06:12]Sock 7.First char is OK [19:06:12]request: POST /json_proto HTTP/1.0 [19:06:12]Method: POST [19:06:12]URL: /json_proto [19:06:12]Method is POST - this is cgi request [19:06:12]url: /json_proto [19:06:12]query_string will be loaded in cgi processing [19:06:12]execute_cgi json_proto POST (null) [19:06:12]execute_cgi path=json_proto method=POST [19:06:12]POST find Content-Length [19:06:12]Host: 172.17.48.197:8080 [19:06:12]Content-Length: 683 [19:06:12]Content-Type: application/json [19:06:12] [19:06:12]POST finish read [19:06:12]Found Content-Length = 683 [19:06:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106280", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "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" ] } } [19:06:12]execute_script... [19:06:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106280", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "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" ] } } [19:06:12]POST & json_proto [19:06:12]process_json_proto [19:06:12]json parsed OK: [19:06:12]protocol is kg_v1.0 [19:06:12]action value=close_receipt [19:06:12]process_action close_receipt [19:06:12]cmd_close_receipt [19:06:12]MH_GetDate [19:06:12]Write to MH i2c: F0 00 00 79 42 AA [19:06:12]Write i2c OK [19:06:12]MH_I2C_Read... [19:06:12]Read from MH i2c: F0 [19:06:12]MH_I2C_Read... [19:06:12]Read from MH i2c: F0 09 00 [19:06:12]MH_I2C_Read... [19:06:12]Read from MH i2c: F0 09 00 79 42 00 28 CA E4 65 6C AF E3 65 51 [19:06:12]GetLastDocTimeStamp 1709492617 [19:06:12]current date 1709492776 [19:06:12]FM_GetShiftState [19:06:12]SAM_PROTO_GetShiftState [19:06:12]wFMCommunicate request_size=4 [19:06:12]MH_SAM_APDU [19:06:12]CAPDU: 80 13 01 00 [19:06:12]Write to MH i2c: E2 08 00 7A 42 80 13 01 00 00 00 00 00 39 [19:06:12]Write i2c OK [19:06:12]MH_I2C_Read... [19:06:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:06:12]Read from MH i2c: E2 [19:06:12]MH_I2C_Read... [19:06:12]Read from MH i2c: E2 0E 00 [19:06:12]MH_I2C_Read... [19:06:12]Read from MH i2c: E2 0E 00 7A 42 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 FB [19:06:12]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [19:06:12]wFMCommunicate OK [19:06:12]SAM_PROTO_GetShiftState done [19:06:12]FM_GetShiftState done [19:06:12]opened in 1709425579 [19:06:12]opened+sec_in_day 1709511979 [19:06:12]quantity*price = 100030 [19:06:12]sum+1 = 100031 [19:06:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 183 03.03.2024 19:06 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123326 ФПД: 182181021873386 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T190616&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123326&fm=182181021873386&tin=02508201610067®Number=0000000000090573&sum=100000 [19:06:13]StoreToDocumentArchive [19:06:13]shift 323 fd 123326 [19:06:13]save to /storage/0323/doc_00123326 [19:06:13]save last doc name /storage/0323/doc_00123326 to /storage/kkm_last_doc_name [19:06:13]save OK [19:06:13]Clear old archive folders... [19:06:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:06:13]tlvbuf is 00DC5310 [19:06:13]SAM_PROTO_ClearQueue [19:06:13]wFMCommunicate request_size=4 [19:06:13]MH_SAM_APDU [19:06:13]CAPDU: 80 09 00 00 [19:06:13]Write to MH i2c: E2 08 00 87 42 80 09 00 00 00 00 00 00 3B [19:06:13]Write i2c OK [19:06:13]MH_I2C_Read... [19:06:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:06:13]Read from MH i2c: E2 [19:06:13]MH_I2C_Read... [19:06:13]Read from MH i2c: E2 03 00 [19:06:13]MH_I2C_Read... [19:06:13]Read from MH i2c: E2 03 00 87 42 00 90 00 3D [19:06:13]RAPDU: 90 00 [19:06:13]wFMCommunicate OK [19:06:13]SAM_PROTO_ClearQueue done [19:06:13]KKMCreateOFDPacket [19:06:13]OFDProtocolAddRootSTLVToBuf [19:06:13]FM_MakeSignedData [19:06:13]FM_MakeSignedData [19:06:13]SAM_PROTO_SignData [19:06:13]wFMCommunicate request_size=4 [19:06:13]MH_SAM_APDU [19:06:13]CAPDU: 80 0D 01 02 [19:06:13]Write to MH i2c: E2 08 00 88 42 80 0D 01 02 00 00 00 00 43 [19:06:13]Write i2c OK [19:06:13]MH_I2C_Read... [19:06:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:06:13]Read from MH i2c: E2 [19:06:13]MH_I2C_Read... [19:06:13]Read from MH i2c: E2 03 00 [19:06:13]MH_I2C_Read... [19:06:13]Read from MH i2c: E2 03 00 88 42 00 90 00 3E [19:06:13]RAPDU: 90 00 [19:06:13]wFMCommunicate OK [19:06:13]wFMCommunicate request_size=255 [19:06:13]MH_SAM_APDU [19:06:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 B7 00 00 00 F4 03 04 00 28 CA E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 BE E1 01 00 35 04 06 00 A5 [19:06:13]Write to MH i2c: E2 02 01 89 42 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 B7 00 00 00 F4 03 04 00 28 CA E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 BE E1 01 00 35 04 06 00 A5 00 00 2A [19:06:13]Write i2c OK [19:06:13]MH_I2C_Read... [19:06:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:06:13]Read from MH i2c: E2 [19:06:13]MH_I2C_Read... [19:06:13]Read from MH i2c: E2 03 00 [19:06:13]MH_I2C_Read... [19:06:13]Read from MH i2c: E2 03 00 89 42 00 90 00 3F [19:06:13]RAPDU: 90 00 [19:06:13]wFMCommunicate OK [19:06:13]wFMCommunicate request_size=10 [19:06:13]MH_SAM_APDU [19:06:13]CAPDU: 80 0D 02 02 05 B1 53 17 F4 EA [19:06:13]Write to MH i2c: E2 0D 00 8A 42 80 0D 02 02 05 00 B1 53 17 F4 EA 00 00 49 [19:06:13]Write i2c OK [19:06:13]MH_I2C_Read... [19:06:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:06:13]Read from MH i2c: E2 [19:06:13]MH_I2C_Read... [19:06:13]Read from MH i2c: E2 03 00 [19:06:13]MH_I2C_Read... [19:06:13]Read from MH i2c: E2 03 00 8A 42 00 90 00 40 [19:06:13]RAPDU: 90 00 [19:06:13]wFMCommunicate OK [19:06:13]wFMCommunicate request_size=4 [19:06:13]MH_SAM_APDU [19:06:13]CAPDU: 80 0D 03 02 [19:06:13]Write to MH i2c: E2 08 00 8B 42 80 0D 03 02 00 00 00 00 48 [19:06:13]Write i2c OK [19:06:13]MH_I2C_Read... [19:06:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:06:13]Read from MH i2c: E2 [19:06:13]MH_I2C_Read... [19:06:13]Read from MH i2c: E2 0B 00 [19:06:13]MH_I2C_Read... [19:06:13]Read from MH i2c: E2 0B 00 8B 42 00 12 54 AB 96 B2 F2 2A 4D 90 00 0B [19:06:13]RAPDU: 12 54 AB 96 B2 F2 2A 4D 90 00 [19:06:13]wFMCommunicate OK [19:06:13]SAM_PROTO_SignData done [19:06:13]FM_MakeSignedData done [19:06:13]CreateOFDProtocolMessage [19:06:13]wFMCommunicate request_size=4 [19:06:13]MH_SAM_APDU [19:06:13]CAPDU: 80 11 00 00 [19:06:13]Write to MH i2c: E2 08 00 8C 42 80 11 00 00 00 00 00 00 48 [19:06:13]Write i2c OK [19:06:13]MH_I2C_Read... [19:06:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:06:13]Read from MH i2c: E2 [19:06:13]MH_I2C_Read... [19:06:13]Read from MH i2c: E2 17 00 [19:06:13]MH_I2C_Read... [19:06:13]Read from MH i2c: E2 17 00 8C 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 A6 [19:06:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [19:06:13]wFMCommunicate OK [19:06:13]CreateOFDProtocolMessage done [19:06:13]OFDSenderStorePacket 123326 [19:06:13]StoreOFDPacket docnum=123326 [19:06:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 7D 91 07 01 70 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 B7 00 00 00 F4 03 04 00 28 CA E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 BE E1 01 00 35 04 06 00 A5 B1 53 17 F4 EA 12 54 AB 96 B2 F2 2A 4D [19:06:13]CheckFolder [19:06:13]dirname=/storage/ofd_packets [19:06:13]CheckFolder done [19:06:13]ProducePacketName [19:06:13]name=ofd_packets/00123326 [19:06:13]NVStorageSaveData ofd_packets/00123326 [19:06:13]File name is /storage/ofd_packets/00123326 [19:06:13]Write 301 bytes [19:06:13]NVStorageSaveData done [19:06:13]OFDSenderStorePacket done [19:06:13]KKMCreateOFDPacket done [19:06:13]NVStorageSaveData kkm_last_timestamp [19:06:13]File name is /storage/kkm_last_timestamp [19:06:13]Write 4 bytes [19:06:13]NVStorageSaveData done [19:06:13]ExternCall_PrintAddStr [19:06:13]wPrintStart [19:06:13]Write to MH i2c: 01 00 00 8D 42 CF [19:06:13]Write i2c OK [19:06:13]MH_I2C_Read... [19:06:13]Read from MH i2c: 01 [19:06:13]MH_I2C_Read... [19:06:13]Read from MH i2c: 01 07 00 [19:06:13]MH_I2C_Read... [19:06:13]Read from MH i2c: 01 07 00 8D 42 00 00 00 00 00 FF 0F E4 [19:06:13]RasterBufferAndPrint [19:06:13]line Счет N : (1)1106280 [19:06:13]line ИНН: 02508201610067 [19:06:13]line Контрольно-Кассовый Чек [19:06:13]line ПРОДАЖА [19:06:13]line ТРК (МРК, ГНК) : 21 [19:06:13]line Товар: 2710124130 [19:06:13]line Аи-92-К-5 [19:06:13]line 16.160 * 61.90 [19:06:13]line = 1000.30 [19:06:13]line НДС 12% НСП 1% [19:06:13]line > о реализуемом товаре [19:06:13]line ОКРУГЛЕНИЕ: -0.30 [19:06:13]line ИТОГО: 1000.00 [19:06:13]line Внесено: 1000.00 [19:06:13]line СДАЧА: 0.00 [19:06:13]line НСП 1% : 8.85 [19:06:13]line НДС 12% : 106.23 [19:06:13]line Наличными: 1000.00 [19:06:13]line Безнал.: 0.00 [19:06:13]line Место: АЗС № 25 "Партнер Нефть" [19:06:13]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [19:06:13]line СНО: Общий режим [19:06:13]line Чек 183 03.03.2024 19:06 [19:06:13]line Смена: 323 ФФД: 1.0 [19:06:13]line ЗНМ: 0300000019 [19:06:13]line РНМ: 0000000000090573 [19:06:13]line Версия ККМ: 001 [19:06:13]line ФМ: 0000000000874798 [19:06:13]line ФД: 123326 [19:06:13]line ФПД: 182181021873386 [19:06:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T190616&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123326&fm=182181021873386&tin=02508201610067®Number=0000000000090573&sum=100000 [19:06:14]OFD Sender: Processing packet 123326 [packets to send 112, broken 111] [19:06:14]ProducePacketName [19:06:14]name=ofd_packets/00123326 [19:06:14]OFD Sender: To server: pG, [19:06:14]CommunicateWithHost lk.salyk.kg:30040 [19:06:14]ConnectInit lk.salyk.kg [19:06:14]written 0, free lines is 4095 [19:06:14]Connected sock=10 [19:06: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 37 39 38 0F 01 00 00 7D 91 07 01 70 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 B7 00 00 00 F4 03 04 00 28 CA E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 BE E1 01 00 35 04 06 00 A5 B1 53 17 F4 EA 12 54 AB 96 B2 F2 2A 4D [19:06:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 2B 54 47 00 53 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 37 39 38 10 04 04 00 BE E1 01 00 F4 03 04 00 53 76 E4 65 B6 04 01 00 00 B2 C0 18 F1 DA D3 19 2D [19:06:14]CommunicateWithHost err = 0 [19:06:14]CheckOFDResponse [19:06:14]1017 (14) - 77093643461234 [19:06:14]1041 (16) - 0000000000874798 [19:06:14]1040 (4) - 123326 [19:06:14]1012 (4) - 03.03.2024 13:08 [19:06:14]1206 (1) - 0 [19:06:14]OFD Sender: Remove packet 123326 [19:06:14]ProducePacketName [19:06:14]name=ofd_packets/00123326 [19:06:14]NVStorageDeleteData [19:06:14]Write to MH i2c: 01 00 00 B8 42 FA [19:06:14]Write i2c OK [19:06:14]MH_I2C_Read... [19:06:14]Read from MH i2c: 01 [19:06:14]MH_I2C_Read... [19:06:14]Read from MH i2c: 01 07 00 [19:06:14]MH_I2C_Read... [19:06:14]Read from MH i2c: 01 07 00 B8 42 00 00 00 00 00 EA 0C F7 [19:06:14]RasterBufferAndPrint [19:06:14]line [19:06:14]line [19:06:14]line [19:06:14]line [19:06:14]line [19:06:14]written 0, free lines is 3312 [19:06:14]MH_Cut [19:06:14]Write to MH i2c: D1 01 00 BF 42 01 D3 [19:06:14]Write i2c OK [19:06:14]MH_I2C_Read... [19:06:14]Read from MH i2c: D1 [19:06:14]MH_I2C_Read... [19:06:14]Read from MH i2c: D1 01 00 [19:06:14]MH_I2C_Read... [19:06:14]Read from MH i2c: D1 01 00 BF 42 00 D2 [19:06:14]Write to MH i2c: 01 00 00 C0 42 02 [19:06:14]Write i2c OK [19:06:14]MH_I2C_Read... [19:06:15]OFD Sender: No OFD packet to send [19:06:15]*** Cut start [19:06:15]*** Purtial cut [19:06:15]*** Stage 1: CUTSNS_PIN = 1 [19:06:17]Read from MH i2c: 01 [19:06:17]MH_I2C_Read... [19:06:17]*** Stop cut motor [19:06:17]*** Cut end [19:06:17]Read from MH i2c: 01 07 00 [19:06:17]MH_I2C_Read... [19:06:17]Read from MH i2c: 01 07 00 C0 42 00 00 00 00 00 FF 0F 17 [19:06:17]process_action close_receipt done [19:06:17]requested_data is exist [19:06:17]produce_requested_data [19:06:17]requested_item fm.sn is exist - process it [19:06:17]wFMCommunicate request_size=4 [19:06:17]MH_SAM_APDU [19:06:17]CAPDU: 80 11 00 00 [19:06:17]Write to MH i2c: E2 08 00 C1 42 80 11 00 00 00 00 00 00 7D [19:06:17]Write i2c OK [19:06:17]MH_I2C_Read... [19:06:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:06:17]Read from MH i2c: E2 [19:06:17]MH_I2C_Read... [19:06:17]Read from MH i2c: E2 17 00 [19:06:17]MH_I2C_Read... [19:06:17]Read from MH i2c: E2 17 00 C1 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 DB [19:06:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [19:06:17]wFMCommunicate OK [19:06:17]requested_item fd.num is exist - process it [19:06:17]SAM_PROTO_GetFieldsCounters [19:06:17]wFMCommunicate request_size=4 [19:06:17]MH_SAM_APDU [19:06:17]CAPDU: 80 13 00 00 [19:06:17]Write to MH i2c: E2 08 00 C2 42 80 13 00 00 00 00 00 00 80 [19:06:17]Write i2c OK [19:06:17]MH_I2C_Read... [19:06:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:06:17]Read from MH i2c: E2 [19:06:17]MH_I2C_Read... [19:06:17]Read from MH i2c: E2 62 00 [19:06:17]MH_I2C_Read... [19:06:17]Read from MH i2c: E2 62 00 C2 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 BE E1 01 00 0E 04 04 00 43 01 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 B4 [19:06: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 BE E1 01 00 0E 04 04 00 43 01 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 [19:06:17]wFMCommunicate OK [19:06:17]SAM_PROTO_GetFieldsCounters done [19:06:17]requested_item shift.num is exist - process it [19:06:17]requested_item shift.opened is exist - process it [19:06:17]req_shift_opened [19:06:17]FM_GetShiftState [19:06:17]SAM_PROTO_GetShiftState [19:06:17]wFMCommunicate request_size=4 [19:06:17]MH_SAM_APDU [19:06:17]CAPDU: 80 13 01 00 [19:06:17]Write to MH i2c: E2 08 00 C3 42 80 13 01 00 00 00 00 00 82 [19:06:17]Write i2c OK [19:06:17]MH_I2C_Read... [19:06:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:06:17]Read from MH i2c: E2 [19:06:17]MH_I2C_Read... [19:06:17]Read from MH i2c: E2 0E 00 [19:06:17]MH_I2C_Read... [19:06:17]Read from MH i2c: E2 0E 00 C3 42 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 44 [19:06:17]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [19:06:17]wFMCommunicate OK [19:06:17]SAM_PROTO_GetShiftState done [19:06:17]FM_GetShiftState done [19:06:17]req_shift_opened done [19:06:17]requested_item shift.open_date is exist - process it [19:06:17]req_shift_open_date [19:06:17]req_shift_open_date done [19:06:17]produce_requested_data done [19:06:17]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123326,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [19:06:17]process_action_free close_receipt [19:06:17]json_value_free [19:06:17]json_value_free done [19:06:17]process_json_proto returns [19:06:17]Send response to host [19:06:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123326,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [19:06:17]free response buf [19:06:17]execute_script done [19:06:17]execute_script returns [19:06:17]free content buf [19:06:17]Sock 7.Close socket [19:06:17]Sock 7.Thread stoped [19:06:20]OFD Sender: No OFD packet to send [19:06:25]OFD Sender: No OFD packet to send [19:06:30]OFD Sender: No OFD packet to send [19:06:35]OFD Sender: No OFD packet to send [19:06:40]OFD Sender: No OFD packet to send [19:06:45]OFD Sender: No OFD packet to send [19:06:50]OFD Sender: No OFD packet to send [19:06:55]OFD Sender: No OFD packet to send [19:07:00]OFD Sender: No OFD packet to send [19:07:05]OFD Sender: No OFD packet to send [19:07:10]OFD Sender: No OFD packet to send [19:07:15]OFD Sender: No OFD packet to send [19:07:20]OFD Sender: No OFD packet to send [19:07:25]OFD Sender: No OFD packet to send [19:07:30]OFD Sender: No OFD packet to send [19:07:35]OFD Sender: No OFD packet to send [19:07:40]OFD Sender: No OFD packet to send [19:07:45]OFD Sender: No OFD packet to send [19:07:50]OFD Sender: No OFD packet to send [19:07:55]OFD Sender: No OFD packet to send [19:08:00]OFD Sender: No OFD packet to send [19:08:05]OFD Sender: No OFD packet to send [19:08:10]OFD Sender: No OFD packet to send [19:08:15]OFD Sender: No OFD packet to send [19:08:15]accept exits with 9 [19:08:15]New connection [19:08:15]New thread 3067395428 created [19:08:15]Thread 3067252068 joined [19:08:15]Waiting for new connection... [19:08:15] Sock 9.Parse request [19:08:15]Sock 9.Check first char [19:08:15]Sock 9.First char is OK [19:08:15]request: POST /json_proto HTTP/1.0 [19:08:15]Method: POST [19:08:15]URL: /json_proto [19:08:15]Method is POST - this is cgi request [19:08:15]url: /json_proto [19:08:15]query_string will be loaded in cgi processing [19:08:15]execute_cgi json_proto POST (null) [19:08:15]execute_cgi path=json_proto method=POST [19:08:15]POST find Content-Length [19:08:15]Host: 172.17.48.197:8080 [19:08:15]Content-Length: 683 [19:08:15]Content-Type: application/json [19:08:15] [19:08:15]POST finish read [19:08:15]Found Content-Length = 683 [19:08:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106281", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "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" ] } } [19:08:15]execute_script... [19:08: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)1106281", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "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" ] } } [19:08:15]POST & json_proto [19:08:15]process_json_proto [19:08:15]json parsed OK: [19:08:15]protocol is kg_v1.0 [19:08:15]action value=close_receipt [19:08:15]process_action close_receipt [19:08:15]cmd_close_receipt [19:08:15]MH_GetDate [19:08:15]Write to MH i2c: F0 00 00 C4 42 F5 [19:08:15]Write i2c OK [19:08:15]MH_I2C_Read... [19:08:15]Read from MH i2c: F0 [19:08:15]MH_I2C_Read... [19:08:15]Read from MH i2c: F0 09 00 [19:08:15]MH_I2C_Read... [19:08:15]Read from MH i2c: F0 09 00 C4 42 00 A3 CA E4 65 6C AF E3 65 17 [19:08:15]GetLastDocTimeStamp 1709492776 [19:08:15]current date 1709492899 [19:08:15]FM_GetShiftState [19:08:15]SAM_PROTO_GetShiftState [19:08:15]wFMCommunicate request_size=4 [19:08:15]MH_SAM_APDU [19:08:15]CAPDU: 80 13 01 00 [19:08:15]Write to MH i2c: E2 08 00 C5 42 80 13 01 00 00 00 00 00 84 [19:08:15]Write i2c OK [19:08:15]MH_I2C_Read... [19:08:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:08:15]Read from MH i2c: E2 [19:08:15]MH_I2C_Read... [19:08:15]Read from MH i2c: E2 0E 00 [19:08:15]MH_I2C_Read... [19:08:15]Read from MH i2c: E2 0E 00 C5 42 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 46 [19:08:15]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [19:08:15]wFMCommunicate OK [19:08:15]SAM_PROTO_GetShiftState done [19:08:15]FM_GetShiftState done [19:08:15]opened in 1709425579 [19:08:15]opened+sec_in_day 1709511979 [19:08:15]quantity*price = 100030 [19:08:15]sum+1 = 100031 [19:08:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 184 03.03.2024 19:08 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123327 ФПД: 207237585684922 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T190819&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123327&fm=207237585684922&tin=02508201610067®Number=0000000000090573&sum=100000 [19:08:16]StoreToDocumentArchive [19:08:16]shift 323 fd 123327 [19:08:16]save to /storage/0323/doc_00123327 [19:08:16]save last doc name /storage/0323/doc_00123327 to /storage/kkm_last_doc_name [19:08:16]save OK [19:08:16]Clear old archive folders... [19:08:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:08:16]tlvbuf is 00E456A0 [19:08:16]SAM_PROTO_ClearQueue [19:08:16]wFMCommunicate request_size=4 [19:08:16]MH_SAM_APDU [19:08:16]CAPDU: 80 09 00 00 [19:08:16]Write to MH i2c: E2 08 00 D2 42 80 09 00 00 00 00 00 00 86 [19:08:16]Write i2c OK [19:08:16]MH_I2C_Read... [19:08:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:08:16]Read from MH i2c: E2 [19:08:16]MH_I2C_Read... [19:08:16]Read from MH i2c: E2 03 00 [19:08:16]MH_I2C_Read... [19:08:16]Read from MH i2c: E2 03 00 D2 42 00 90 00 88 [19:08:16]RAPDU: 90 00 [19:08:16]wFMCommunicate OK [19:08:16]SAM_PROTO_ClearQueue done [19:08:16]KKMCreateOFDPacket [19:08:16]OFDProtocolAddRootSTLVToBuf [19:08:16]FM_MakeSignedData [19:08:16]FM_MakeSignedData [19:08:16]SAM_PROTO_SignData [19:08:16]wFMCommunicate request_size=4 [19:08:16]MH_SAM_APDU [19:08:16]CAPDU: 80 0D 01 02 [19:08:16]Write to MH i2c: E2 08 00 D3 42 80 0D 01 02 00 00 00 00 8E [19:08:16]Write i2c OK [19:08:16]MH_I2C_Read... [19:08:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:08:16]Read from MH i2c: E2 [19:08:16]MH_I2C_Read... [19:08:16]Read from MH i2c: E2 03 00 [19:08:16]MH_I2C_Read... [19:08:16]Read from MH i2c: E2 03 00 D3 42 00 90 00 89 [19:08:16]RAPDU: 90 00 [19:08:16]wFMCommunicate OK [19:08:16]wFMCommunicate request_size=255 [19:08:16]MH_SAM_APDU [19:08:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 B8 00 00 00 F4 03 04 00 A3 CA E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 BF E1 01 00 35 04 06 00 BC [19:08:16]Write to MH i2c: E2 02 01 D4 42 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 B8 00 00 00 F4 03 04 00 A3 CA E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 BF E1 01 00 35 04 06 00 BC 00 00 09 [19:08:16]Write i2c OK [19:08:16]MH_I2C_Read... [19:08:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:08:16]Read from MH i2c: E2 [19:08:16]MH_I2C_Read... [19:08:16]Read from MH i2c: E2 03 00 [19:08:16]MH_I2C_Read... [19:08:16]Read from MH i2c: E2 03 00 D4 42 00 90 00 8A [19:08:16]RAPDU: 90 00 [19:08:16]wFMCommunicate OK [19:08:16]wFMCommunicate request_size=10 [19:08:16]MH_SAM_APDU [19:08:16]CAPDU: 80 0D 02 02 05 7B 42 AD C9 BA [19:08:16]Write to MH i2c: E2 0D 00 D5 42 80 0D 02 02 05 00 7B 42 AD C9 BA 00 00 88 [19:08:16]Write i2c OK [19:08:16]MH_I2C_Read... [19:08:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:08:16]Read from MH i2c: E2 [19:08:16]MH_I2C_Read... [19:08:16]Read from MH i2c: E2 03 00 [19:08:16]MH_I2C_Read... [19:08:16]Read from MH i2c: E2 03 00 D5 42 00 90 00 8B [19:08:16]RAPDU: 90 00 [19:08:16]wFMCommunicate OK [19:08:16]wFMCommunicate request_size=4 [19:08:16]MH_SAM_APDU [19:08:16]CAPDU: 80 0D 03 02 [19:08:16]Write to MH i2c: E2 08 00 D6 42 80 0D 03 02 00 00 00 00 93 [19:08:16]Write i2c OK [19:08:16]MH_I2C_Read... [19:08:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:08:16]Read from MH i2c: E2 [19:08:16]MH_I2C_Read... [19:08:16]Read from MH i2c: E2 0B 00 [19:08:16]MH_I2C_Read... [19:08:16]Read from MH i2c: E2 0B 00 D6 42 00 2B 34 51 5F ED 35 35 EF 90 00 E9 [19:08:16]RAPDU: 2B 34 51 5F ED 35 35 EF 90 00 [19:08:16]wFMCommunicate OK [19:08:16]SAM_PROTO_SignData done [19:08:16]FM_MakeSignedData done [19:08:16]CreateOFDProtocolMessage [19:08:16]wFMCommunicate request_size=4 [19:08:16]MH_SAM_APDU [19:08:16]CAPDU: 80 11 00 00 [19:08:16]Write to MH i2c: E2 08 00 D7 42 80 11 00 00 00 00 00 00 93 [19:08:16]Write i2c OK [19:08:16]MH_I2C_Read... [19:08:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:08:16]Read from MH i2c: E2 [19:08:16]MH_I2C_Read... [19:08:16]Read from MH i2c: E2 17 00 [19:08:16]MH_I2C_Read... [19:08:16]Read from MH i2c: E2 17 00 D7 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 F1 [19:08:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [19:08:16]wFMCommunicate OK [19:08:16]CreateOFDProtocolMessage done [19:08:16]OFDSenderStorePacket 123327 [19:08:16]StoreOFDPacket docnum=123327 [19:08:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 B6 1B 07 01 27 A6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 B8 00 00 00 F4 03 04 00 A3 CA E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 BF E1 01 00 35 04 06 00 BC 7B 42 AD C9 BA 2B 34 51 5F ED 35 35 EF [19:08:16]CheckFolder [19:08:16]dirname=/storage/ofd_packets [19:08:16]CheckFolder done [19:08:16]ProducePacketName [19:08:16]name=ofd_packets/00123327 [19:08:16]NVStorageSaveData ofd_packets/00123327 [19:08:16]File name is /storage/ofd_packets/00123327 [19:08:16]Write 301 bytes [19:08:16]NVStorageSaveData done [19:08:16]OFDSenderStorePacket done [19:08:16]KKMCreateOFDPacket done [19:08:16]NVStorageSaveData kkm_last_timestamp [19:08:16]File name is /storage/kkm_last_timestamp [19:08:16]Write 4 bytes [19:08:16]NVStorageSaveData done [19:08:16]ExternCall_PrintAddStr [19:08:16]wPrintStart [19:08:16]Write to MH i2c: 01 00 00 D8 42 1A [19:08:16]Write i2c OK [19:08:16]MH_I2C_Read... [19:08:16]Read from MH i2c: 01 [19:08:16]MH_I2C_Read... [19:08:16]Read from MH i2c: 01 07 00 [19:08:16]MH_I2C_Read... [19:08:16]Read from MH i2c: 01 07 00 D8 42 00 00 00 00 00 FF 0F 2F [19:08:16]RasterBufferAndPrint [19:08:16]line Счет N : (1)1106281 [19:08:16]line ИНН: 02508201610067 [19:08:16]line Контрольно-Кассовый Чек [19:08:16]line ПРОДАЖА [19:08:16]line ТРК (МРК, ГНК) : 52 [19:08:16]line Товар: 2710124130 [19:08:16]line Аи-92-К-5 [19:08:16]line 16.160 * 61.90 [19:08:16]line = 1000.30 [19:08:16]line НДС 12% НСП 1% [19:08:16]line > о реализуемом товаре [19:08:16]line ОКРУГЛЕНИЕ: -0.30 [19:08:16]line ИТОГО: 1000.00 [19:08:16]line Внесено: 1000.00 [19:08:16]line СДАЧА: 0.00 [19:08:16]line НСП 1% : 8.85 [19:08:16]line НДС 12% : 106.23 [19:08:16]line Наличными: 1000.00 [19:08:16]line Безнал.: 0.00 [19:08:16]line Место: АЗС № 25 "Партнер Нефть" [19:08:16]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [19:08:16]line СНО: Общий режим [19:08:16]line Чек 184 03.03.2024 19:08 [19:08:16]line Смена: 323 ФФД: 1.0 [19:08:16]line ЗНМ: 0300000019 [19:08:16]line РНМ: 0000000000090573 [19:08:16]line Версия ККМ: 001 [19:08:16]line ФМ: 0000000000874798 [19:08:16]line ФД: 123327 [19:08:16]line ФПД: 207237585684922 [19:08:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T190819&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123327&fm=207237585684922&tin=02508201610067®Number=0000000000090573&sum=100000 [19:08:17]OFD Sender: Processing packet 123327 [packets to send 112, broken 111] [19:08:17]ProducePacketName [19:08:17]name=ofd_packets/00123327 [19:08:17]OFD Sender: To server: pG, [19:08:17]CommunicateWithHost lk.salyk.kg:30040 [19:08:17]ConnectInit lk.salyk.kg [19:08:17]written 0, free lines is 4095 [19:08:17]Connected sock=7 [19:08: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 37 39 38 0F 01 00 00 B6 1B 07 01 27 A6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 B8 00 00 00 F4 03 04 00 A3 CA E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 BF E1 01 00 35 04 06 00 BC 7B 42 AD C9 BA 2B 34 51 5F ED 35 35 EF [19:08:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 2F 82 47 00 E6 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 37 39 38 10 04 04 00 BF E1 01 00 F4 03 04 00 CE 76 E4 65 B6 04 01 00 00 57 2D 19 27 72 20 86 BD [19:08:17]CommunicateWithHost err = 0 [19:08:17]CheckOFDResponse [19:08:17]1017 (14) - 77093643461234 [19:08:17]1041 (16) - 0000000000874798 [19:08:17]1040 (4) - 123327 [19:08:17]1012 (4) - 03.03.2024 13:10 [19:08:17]1206 (1) - 0 [19:08:17]OFD Sender: Remove packet 123327 [19:08:17]ProducePacketName [19:08:17]name=ofd_packets/00123327 [19:08:17]NVStorageDeleteData [19:08:17]Write to MH i2c: 01 00 00 03 43 46 [19:08:17]Write i2c OK [19:08:17]MH_I2C_Read... [19:08:17]Read from MH i2c: 01 [19:08:17]MH_I2C_Read... [19:08:17]Read from MH i2c: 01 07 00 [19:08:17]MH_I2C_Read... [19:08:17]Read from MH i2c: 01 07 00 03 43 00 00 00 00 00 ED 0C 46 [19:08:17]RasterBufferAndPrint [19:08:17]line [19:08:17]line [19:08:17]line [19:08:17]line [19:08:17]line [19:08:17]written 0, free lines is 3318 [19:08:17]MH_Cut [19:08:17]Write to MH i2c: D1 01 00 0A 43 01 1F [19:08:17]Write i2c OK [19:08:17]MH_I2C_Read... [19:08:17]Read from MH i2c: D1 [19:08:17]MH_I2C_Read... [19:08:17]Read from MH i2c: D1 01 00 [19:08:17]MH_I2C_Read... [19:08:17]Read from MH i2c: D1 01 00 0A 43 00 1E [19:08:17]Write to MH i2c: 01 00 00 0B 43 4E [19:08:17]Write i2c OK [19:08:17]MH_I2C_Read... [19:08:18]OFD Sender: No OFD packet to send [19:08:18]*** Cut start [19:08:18]*** Purtial cut [19:08:18]*** Stage 1: CUTSNS_PIN = 1 [19:08:20]Read from MH i2c: 01 [19:08:20]MH_I2C_Read... [19:08:20]*** Stop cut motor [19:08:20]*** Cut end [19:08:20]Read from MH i2c: 01 07 00 [19:08:20]MH_I2C_Read... [19:08:20]Read from MH i2c: 01 07 00 0B 43 00 00 00 00 00 FF 0F 63 [19:08:20]process_action close_receipt done [19:08:20]requested_data is exist [19:08:20]produce_requested_data [19:08:20]requested_item fm.sn is exist - process it [19:08:20]wFMCommunicate request_size=4 [19:08:20]MH_SAM_APDU [19:08:20]CAPDU: 80 11 00 00 [19:08:20]Write to MH i2c: E2 08 00 0C 43 80 11 00 00 00 00 00 00 C9 [19:08:20]Write i2c OK [19:08:20]MH_I2C_Read... [19:08:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:08:20]Read from MH i2c: E2 [19:08:20]MH_I2C_Read... [19:08:20]Read from MH i2c: E2 17 00 [19:08:20]MH_I2C_Read... [19:08:20]Read from MH i2c: E2 17 00 0C 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 27 [19:08:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [19:08:20]wFMCommunicate OK [19:08:20]requested_item fd.num is exist - process it [19:08:20]SAM_PROTO_GetFieldsCounters [19:08:20]wFMCommunicate request_size=4 [19:08:20]MH_SAM_APDU [19:08:20]CAPDU: 80 13 00 00 [19:08:20]Write to MH i2c: E2 08 00 0D 43 80 13 00 00 00 00 00 00 CC [19:08:20]Write i2c OK [19:08:20]MH_I2C_Read... [19:08:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:08:20]Read from MH i2c: E2 [19:08:20]MH_I2C_Read... [19:08:20]Read from MH i2c: E2 62 00 [19:08:20]MH_I2C_Read... [19:08:20]Read from MH i2c: E2 62 00 0D 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 BF E1 01 00 0E 04 04 00 43 01 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 04 [19:08: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 BF E1 01 00 0E 04 04 00 43 01 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 [19:08:20]wFMCommunicate OK [19:08:20]SAM_PROTO_GetFieldsCounters done [19:08:20]requested_item shift.num is exist - process it [19:08:20]requested_item shift.opened is exist - process it [19:08:20]req_shift_opened [19:08:20]FM_GetShiftState [19:08:20]SAM_PROTO_GetShiftState [19:08:20]wFMCommunicate request_size=4 [19:08:20]MH_SAM_APDU [19:08:20]CAPDU: 80 13 01 00 [19:08:20]Write to MH i2c: E2 08 00 0E 43 80 13 01 00 00 00 00 00 CE [19:08:20]Write i2c OK [19:08:20]MH_I2C_Read... [19:08:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:08:20]Read from MH i2c: E2 [19:08:20]MH_I2C_Read... [19:08:20]Read from MH i2c: E2 0E 00 [19:08:20]MH_I2C_Read... [19:08:20]Read from MH i2c: E2 0E 00 0E 43 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 90 [19:08:20]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [19:08:20]wFMCommunicate OK [19:08:20]SAM_PROTO_GetShiftState done [19:08:20]FM_GetShiftState done [19:08:20]req_shift_opened done [19:08:20]requested_item shift.open_date is exist - process it [19:08:20]req_shift_open_date [19:08:20]req_shift_open_date done [19:08:20]produce_requested_data done [19:08:20]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123327,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [19:08:20]process_action_free close_receipt [19:08:20]json_value_free [19:08:20]json_value_free done [19:08:20]process_json_proto returns [19:08:20]Send response to host [19:08:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123327,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [19:08:20]free response buf [19:08:20]execute_script done [19:08:20]execute_script returns [19:08:20]free content buf [19:08:20]Sock 9.Close socket [19:08:20]Sock 9.Thread stoped [19:08:23]OFD Sender: No OFD packet to send [19:08:28]OFD Sender: No OFD packet to send [19:08:33]OFD Sender: No OFD packet to send [19:08:38]OFD Sender: No OFD packet to send [19:08:43]OFD Sender: No OFD packet to send [19:08:48]OFD Sender: No OFD packet to send [19:08:53]OFD Sender: No OFD packet to send [19:08:58]OFD Sender: No OFD packet to send [19:09:03]OFD Sender: No OFD packet to send [19:09:08]OFD Sender: No OFD packet to send [19:09:13]OFD Sender: No OFD packet to send [19:09:18]OFD Sender: No OFD packet to send [19:09:23]OFD Sender: No OFD packet to send [19:09:28]OFD Sender: No OFD packet to send [19:09:33]OFD Sender: No OFD packet to send [19:09:38]OFD Sender: No OFD packet to send [19:09:43]OFD Sender: No OFD packet to send [19:09:48]OFD Sender: No OFD packet to send [19:09:53]OFD Sender: No OFD packet to send [19:09:58]OFD Sender: No OFD packet to send [19:10:03]OFD Sender: No OFD packet to send [19:10:08]OFD Sender: No OFD packet to send [19:10:13]OFD Sender: No OFD packet to send [19:10:18]OFD Sender: No OFD packet to send [19:10:23]OFD Sender: No OFD packet to send [19:10:28]OFD Sender: No OFD packet to send [19:10:33]OFD Sender: No OFD packet to send [19:10:38]OFD Sender: No OFD packet to send [19:10:43]OFD Sender: No OFD packet to send [19:10:48]OFD Sender: No OFD packet to send [19:10:53]OFD Sender: No OFD packet to send [19:10:58]OFD Sender: No OFD packet to send [19:11:03]OFD Sender: No OFD packet to send [19:11:08]OFD Sender: No OFD packet to send [19:11:13]OFD Sender: No OFD packet to send [19:11:18]OFD Sender: No OFD packet to send [19:11:23]OFD Sender: No OFD packet to send [19:11:26]accept exits with 10 [19:11:26]New connection [19:11:26]New thread 3067252068 created [19:11:26]Thread 3067395428 joined [19:11:26]Waiting for new connection... [19:11:26] Sock 10.Parse request [19:11:26]Sock 10.Check first char [19:11:26]Sock 10.First char is OK [19:11:26]request: POST /json_proto HTTP/1.0 [19:11:26]Method: POST [19:11:26]URL: /json_proto [19:11:26]Method is POST - this is cgi request [19:11:26]url: /json_proto [19:11:26]query_string will be loaded in cgi processing [19:11:26]execute_cgi json_proto POST (null) [19:11:26]execute_cgi path=json_proto method=POST [19:11:26]POST find Content-Length [19:11:26]Host: 172.17.48.197:8080 [19:11:26]Content-Length: 809 [19:11:26]Content-Type: application/json [19:11:26] [19:11:26]POST finish read [19:11:26]Found Content-Length = 809 [19:11:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106282", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 35.980, "sum" : 2500.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2500.61 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:11:26]execute_script... [19:11:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106282", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 35.980, "sum" : 2500.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2500.61 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:11:26]POST & json_proto [19:11:26]process_json_proto [19:11:26]json parsed OK: [19:11:26]protocol is kg_v1.0 [19:11:26]action value=close_receipt [19:11:26]process_action close_receipt [19:11:26]cmd_close_receipt [19:11:26]MH_GetDate [19:11:26]Write to MH i2c: F0 00 00 0F 43 41 [19:11:26]Write i2c OK [19:11:26]MH_I2C_Read... [19:11:26]Read from MH i2c: F0 [19:11:26]MH_I2C_Read... [19:11:26]Read from MH i2c: F0 09 00 [19:11:26]MH_I2C_Read... [19:11:26]Read from MH i2c: F0 09 00 0F 43 00 63 CB E4 65 6C AF E3 65 24 [19:11:26]GetLastDocTimeStamp 1709492899 [19:11:26]current date 1709493091 [19:11:26]FM_GetShiftState [19:11:26]SAM_PROTO_GetShiftState [19:11:26]wFMCommunicate request_size=4 [19:11:26]MH_SAM_APDU [19:11:26]CAPDU: 80 13 01 00 [19:11:26]Write to MH i2c: E2 08 00 10 43 80 13 01 00 00 00 00 00 D0 [19:11:26]Write i2c OK [19:11:26]MH_I2C_Read... [19:11:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:11:26]Read from MH i2c: E2 [19:11:26]MH_I2C_Read... [19:11:26]Read from MH i2c: E2 0E 00 [19:11:26]MH_I2C_Read... [19:11:26]Read from MH i2c: E2 0E 00 10 43 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 92 [19:11:26]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [19:11:26]wFMCommunicate OK [19:11:26]SAM_PROTO_GetShiftState done [19:11:26]FM_GetShiftState done [19:11:26]opened in 1709425579 [19:11:26]opened+sec_in_day 1709511979 [19:11:26]quantity*price = 250061 [19:11:26]sum+1 = 250062 [19:11:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2500.61 НСП 1% : 22.13 НДС 12% : 265.55 Наличными: 0.00 Безнал.: 2500.61 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 185 03.03.2024 19:11 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874798 ФД: 123328 ФПД: 90536739705763 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T191131&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123328&fm=90536739705763&tin=02508201610067®Number=0000000000090573&sum=250061 [19:11:27]StoreToDocumentArchive [19:11:27]shift 323 fd 123328 [19:11:27]save to /storage/0323/doc_00123328 [19:11:27]save last doc name /storage/0323/doc_00123328 to /storage/kkm_last_doc_name [19:11:27]save OK [19:11:27]Clear old archive folders... [19:11:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:11:27]tlvbuf is 00DDEBC0 [19:11:27]SAM_PROTO_ClearQueue [19:11:27]wFMCommunicate request_size=4 [19:11:27]MH_SAM_APDU [19:11:27]CAPDU: 80 09 00 00 [19:11:27]Write to MH i2c: E2 08 00 1D 43 80 09 00 00 00 00 00 00 D2 [19:11:27]Write i2c OK [19:11:27]MH_I2C_Read... [19:11:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:11:27]Read from MH i2c: E2 [19:11:27]MH_I2C_Read... [19:11:27]Read from MH i2c: E2 03 00 [19:11:27]MH_I2C_Read... [19:11:27]Read from MH i2c: E2 03 00 1D 43 00 90 00 D4 [19:11:27]RAPDU: 90 00 [19:11:27]wFMCommunicate OK [19:11:27]SAM_PROTO_ClearQueue done [19:11:27]KKMCreateOFDPacket [19:11:27]OFDProtocolAddRootSTLVToBuf [19:11:27]FM_MakeSignedData [19:11:27]FM_MakeSignedData [19:11:27]SAM_PROTO_SignData [19:11:27]wFMCommunicate request_size=4 [19:11:27]MH_SAM_APDU [19:11:27]CAPDU: 80 0D 01 02 [19:11:27]Write to MH i2c: E2 08 00 1E 43 80 0D 01 02 00 00 00 00 DA [19:11:27]Write i2c OK [19:11:27]MH_I2C_Read... [19:11:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:11:27]Read from MH i2c: E2 [19:11:27]MH_I2C_Read... [19:11:27]Read from MH i2c: E2 03 00 [19:11:27]MH_I2C_Read... [19:11:27]Read from MH i2c: E2 03 00 1E 43 00 90 00 D5 [19:11:27]RAPDU: 90 00 [19:11:27]wFMCommunicate OK [19:11:27]wFMCommunicate request_size=255 [19:11:27]MH_SAM_APDU [19:11:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8C 8C 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 CD D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CD D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CD D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 63 CB E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 C0 E1 01 00 35 04 06 00 52 [19:11:27]Write to MH i2c: E2 02 01 1F 43 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8C 8C 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 CD D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CD D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CD D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 63 CB E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 C0 E1 01 00 35 04 06 00 52 00 00 62 [19:11:27]Write i2c OK [19:11:27]MH_I2C_Read... [19:11:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:11:28]Read from MH i2c: E2 [19:11:28]MH_I2C_Read... [19:11:28]Read from MH i2c: E2 03 00 [19:11:28]MH_I2C_Read... [19:11:28]Read from MH i2c: E2 03 00 1F 43 00 90 00 D6 [19:11:28]RAPDU: 90 00 [19:11:28]wFMCommunicate OK [19:11:28]wFMCommunicate request_size=10 [19:11:28]MH_SAM_APDU [19:11:28]CAPDU: 80 0D 02 02 05 57 BA 35 93 A3 [19:11:28]Write to MH i2c: E2 0D 00 20 43 80 0D 02 02 05 00 57 BA 35 93 A3 00 00 63 [19:11:28]Write i2c OK [19:11:28]MH_I2C_Read... [19:11:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:11:28]Read from MH i2c: E2 [19:11:28]MH_I2C_Read... [19:11:28]Read from MH i2c: E2 03 00 [19:11:28]MH_I2C_Read... [19:11:28]Read from MH i2c: E2 03 00 20 43 00 90 00 D7 [19:11:28]RAPDU: 90 00 [19:11:28]wFMCommunicate OK [19:11:28]wFMCommunicate request_size=4 [19:11:28]MH_SAM_APDU [19:11:28]CAPDU: 80 0D 03 02 [19:11:28]Write to MH i2c: E2 08 00 21 43 80 0D 03 02 00 00 00 00 DF [19:11:28]Write i2c OK [19:11:28]MH_I2C_Read... [19:11:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:11:28]OFD Sender: No OFD packet to send [19:11:28]Read from MH i2c: E2 [19:11:28]MH_I2C_Read... [19:11:28]Read from MH i2c: E2 0B 00 [19:11:28]MH_I2C_Read... [19:11:28]Read from MH i2c: E2 0B 00 21 43 00 87 03 5C 43 08 70 0D 0E 90 00 9C [19:11:28]RAPDU: 87 03 5C 43 08 70 0D 0E 90 00 [19:11:28]wFMCommunicate OK [19:11:28]SAM_PROTO_SignData done [19:11:28]FM_MakeSignedData done [19:11:28]CreateOFDProtocolMessage [19:11:28]wFMCommunicate request_size=4 [19:11:28]MH_SAM_APDU [19:11:28]CAPDU: 80 11 00 00 [19:11:28]Write to MH i2c: E2 08 00 22 43 80 11 00 00 00 00 00 00 DF [19:11:28]Write i2c OK [19:11:28]MH_I2C_Read... [19:11:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:11:28]Read from MH i2c: E2 [19:11:28]MH_I2C_Read... [19:11:28]Read from MH i2c: E2 17 00 [19:11:28]MH_I2C_Read... [19:11:28]Read from MH i2c: E2 17 00 22 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 3D [19:11:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [19:11:28]wFMCommunicate OK [19:11:28]CreateOFDProtocolMessage done [19:11:28]OFDSenderStorePacket 123328 [19:11:28]StoreOFDPacket docnum=123328 [19:11:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 68 C5 07 01 DE 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8C 8C 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 CD D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CD D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CD D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 63 CB E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 C0 E1 01 00 35 04 06 00 52 57 BA 35 93 A3 87 03 5C 43 08 70 0D 0E [19:11:28]CheckFolder [19:11:28]dirname=/storage/ofd_packets [19:11:28]CheckFolder done [19:11:28]ProducePacketName [19:11:28]name=ofd_packets/00123328 [19:11:28]NVStorageSaveData ofd_packets/00123328 [19:11:28]File name is /storage/ofd_packets/00123328 [19:11:28]Write 301 bytes [19:11:28]NVStorageSaveData done [19:11:28]OFDSenderStorePacket done [19:11:28]KKMCreateOFDPacket done [19:11:28]NVStorageSaveData kkm_last_timestamp [19:11:28]File name is /storage/kkm_last_timestamp [19:11:28]Write 4 bytes [19:11:28]NVStorageSaveData done [19:11:28]ExternCall_PrintAddStr [19:11:28]wPrintStart [19:11:28]Write to MH i2c: 01 00 00 23 43 66 [19:11:28]Write i2c OK [19:11:28]MH_I2C_Read... [19:11:28]Read from MH i2c: 01 [19:11:28]MH_I2C_Read... [19:11:28]Read from MH i2c: 01 07 00 [19:11:28]MH_I2C_Read... [19:11:28]Read from MH i2c: 01 07 00 23 43 00 00 00 00 00 FF 0F 7B [19:11:28]RasterBufferAndPrint [19:11:28]line Счет N : (1)1106282 [19:11:28]line ИНН: 02508201610067 [19:11:28]line Контрольно-Кассовый Чек [19:11:28]line ПРОДАЖА [19:11:28]line ТРК (МРК, ГНК) : 23 [19:11:28]line Товар: 2710124500 [19:11:28]line Аи-95-К-5 [19:11:28]line 35.980 * 69.50 [19:11:28]line = 2500.61 [19:11:28]line НДС 12% НСП 1% [19:11:28]line > о реализуемом товаре [19:11:28]line ИТОГО: 2500.61 [19:11:28]line НСП 1% : 22.13 [19:11:28]line НДС 12% : 265.55 [19:11:28]line Наличными: 0.00 [19:11:28]line Безнал.: 2500.61 [19:11:28]line Место: АЗС № 25 "Партнер Нефть" [19:11:28]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [19:11:28]line СНО: Общий режим [19:11:28]line Чек 185 03.03.2024 19:11 [19:11:28]line Смена: 323 ФФД: 1.0 [19:11:28]line ЗНМ: 0300000019 [19:11:28]line РНМ: 0000000000090573 [19:11:28]line Версия ККМ: 001 [19:11:28]line Платежная система: О! деньги [19:11:28]line ФМ: 0000000000874798 [19:11:28]line ФД: 123328 [19:11:28]line ФПД: 90536739705763 [19:11:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T191131&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123328&fm=90536739705763&tin=02508201610067®Number=0000000000090573&sum=250061 [19:11:28]OFD Sender: Processing packet 123328 [packets to send 112, broken 111] [19:11:28]ProducePacketName [19:11:28]name=ofd_packets/00123328 [19:11:28]OFD Sender: To server: pG, [19:11:28]CommunicateWithHost lk.salyk.kg:30040 [19:11:28]ConnectInit lk.salyk.kg [19:11:28]written 0, free lines is 4095 [19:11:28]Connected sock=9 [19:11: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 37 39 38 0F 01 00 00 68 C5 07 01 DE 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8C 8C 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 CD D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CD D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CD D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 63 CB E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 C0 E1 01 00 35 04 06 00 52 57 BA 35 93 A3 87 03 5C 43 08 70 0D 0E [19:11:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 5F A1 47 00 75 54 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 C0 E1 01 00 F4 03 04 00 8E 77 E4 65 B6 04 01 00 00 FD 9C 4F A0 C0 E3 02 41 [19:11:29]CommunicateWithHost err = 0 [19:11:29]CheckOFDResponse [19:11:29]1017 (14) - 77093643461234 [19:11:29]1041 (16) - 0000000000874798 [19:11:29]1040 (4) - 123328 [19:11:29]1012 (4) - 03.03.2024 13:13 [19:11:29]1206 (1) - 0 [19:11:29]OFD Sender: Remove packet 123328 [19:11:29]ProducePacketName [19:11:29]name=ofd_packets/00123328 [19:11:29]NVStorageDeleteData [19:11:29]Write to MH i2c: 01 00 00 4D 43 90 [19:11:29]Write i2c OK [19:11:29]MH_I2C_Read... [19:11:29]Read from MH i2c: 01 [19:11:29]MH_I2C_Read... [19:11:29]Read from MH i2c: 01 07 00 [19:11:29]MH_I2C_Read... [19:11:29]Read from MH i2c: 01 07 00 4D 43 00 00 00 00 00 FA 0C 9D [19:11:29]RasterBufferAndPrint [19:11:29]line [19:11:29]line [19:11:29]line [19:11:29]line [19:11:29]line [19:11:29]written 0, free lines is 3331 [19:11:29]MH_Cut [19:11:29]Write to MH i2c: D1 01 00 54 43 01 69 [19:11:29]Write i2c OK [19:11:29]MH_I2C_Read... [19:11:29]Read from MH i2c: D1 [19:11:29]MH_I2C_Read... [19:11:29]Read from MH i2c: D1 01 00 [19:11:29]MH_I2C_Read... [19:11:29]Read from MH i2c: D1 01 00 54 43 00 68 [19:11:29]Write to MH i2c: 01 00 00 55 43 98 [19:11:29]Write i2c OK [19:11:29]MH_I2C_Read... [19:11:29]OFD Sender: No OFD packet to send [19:11:29]*** Cut start [19:11:29]*** Purtial cut [19:11:29]*** Stage 1: CUTSNS_PIN = 1 [19:11:31]Read from MH i2c: 01 [19:11:31]MH_I2C_Read... [19:11:31]*** Stop cut motor [19:11:31]*** Cut end [19:11:31]Read from MH i2c: 01 07 00 [19:11:31]MH_I2C_Read... [19:11:31]Read from MH i2c: 01 07 00 55 43 00 00 00 00 00 FF 0F AD [19:11:31]process_action close_receipt done [19:11:31]requested_data is exist [19:11:31]produce_requested_data [19:11:31]requested_item fm.sn is exist - process it [19:11:31]wFMCommunicate request_size=4 [19:11:31]MH_SAM_APDU [19:11:31]CAPDU: 80 11 00 00 [19:11:31]Write to MH i2c: E2 08 00 56 43 80 11 00 00 00 00 00 00 13 [19:11:31]Write i2c OK [19:11:31]MH_I2C_Read... [19:11:31]Read from MH i2c: E2 [19:11:31]MH_I2C_Read... [19:11:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:11:31]Read from MH i2c: E2 17 00 [19:11:31]MH_I2C_Read... [19:11:31]Read from MH i2c: E2 17 00 56 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 71 [19:11:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [19:11:31]wFMCommunicate OK [19:11:31]requested_item fd.num is exist - process it [19:11:31]SAM_PROTO_GetFieldsCounters [19:11:31]wFMCommunicate request_size=4 [19:11:31]MH_SAM_APDU [19:11:31]CAPDU: 80 13 00 00 [19:11:31]Write to MH i2c: E2 08 00 57 43 80 13 00 00 00 00 00 00 16 [19:11:31]Write i2c OK [19:11:31]MH_I2C_Read... [19:11:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:11:32]Read from MH i2c: E2 [19:11:32]MH_I2C_Read... [19:11:32]Read from MH i2c: E2 62 00 [19:11:32]MH_I2C_Read... [19:11:32]Read from MH i2c: E2 62 00 57 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 C0 E1 01 00 0E 04 04 00 43 01 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 52 [19:11: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 C0 E1 01 00 0E 04 04 00 43 01 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 [19:11:32]wFMCommunicate OK [19:11:32]SAM_PROTO_GetFieldsCounters done [19:11:32]requested_item shift.num is exist - process it [19:11:32]requested_item shift.opened is exist - process it [19:11:32]req_shift_opened [19:11:32]FM_GetShiftState [19:11:32]SAM_PROTO_GetShiftState [19:11:32]wFMCommunicate request_size=4 [19:11:32]MH_SAM_APDU [19:11:32]CAPDU: 80 13 01 00 [19:11:32]Write to MH i2c: E2 08 00 58 43 80 13 01 00 00 00 00 00 18 [19:11:32]Write i2c OK [19:11:32]MH_I2C_Read... [19:11:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:11:32]Read from MH i2c: E2 [19:11:32]MH_I2C_Read... [19:11:32]Read from MH i2c: E2 0E 00 [19:11:32]MH_I2C_Read... [19:11:32]Read from MH i2c: E2 0E 00 58 43 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 DA [19:11:32]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [19:11:32]wFMCommunicate OK [19:11:32]SAM_PROTO_GetShiftState done [19:11:32]FM_GetShiftState done [19:11:32]req_shift_opened done [19:11:32]requested_item shift.open_date is exist - process it [19:11:32]req_shift_open_date [19:11:32]req_shift_open_date done [19:11:32]produce_requested_data done [19:11:32]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123328,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [19:11:32]process_action_free close_receipt [19:11:32]json_value_free [19:11:32]json_value_free done [19:11:32]process_json_proto returns [19:11:32]Send response to host [19:11:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123328,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [19:11:32]free response buf [19:11:32]execute_script done [19:11:32]execute_script returns [19:11:32]free content buf [19:11:32]Sock 10.Close socket [19:11:32]Sock 10.Thread stoped [19:11:34]OFD Sender: No OFD packet to send [19:11:39]OFD Sender: No OFD packet to send [19:11:44]OFD Sender: No OFD packet to send [19:11:49]OFD Sender: No OFD packet to send [19:11:54]OFD Sender: No OFD packet to send [19:11:59]OFD Sender: No OFD packet to send [19:12:04]OFD Sender: No OFD packet to send [19:12:09]OFD Sender: No OFD packet to send [19:12:14]OFD Sender: No OFD packet to send [19:12:16]accept exits with 7 [19:12:16]New connection [19:12:16]New thread 3067395428 created [19:12:16]Thread 3067252068 joined [19:12:16]Waiting for new connection... [19:12:16] Sock 7.Parse request [19:12:16]Sock 7.Check first char [19:12:16]Sock 7.First char is OK [19:12:16]request: POST /json_proto HTTP/1.0 [19:12:16]Method: POST [19:12:16]URL: /json_proto [19:12:16]Method is POST - this is cgi request [19:12:16]url: /json_proto [19:12:16]query_string will be loaded in cgi processing [19:12:16]execute_cgi json_proto POST (null) [19:12:16]execute_cgi path=json_proto method=POST [19:12:16]POST find Content-Length [19:12:16]Host: 172.17.48.197:8080 [19:12:16]Content-Length: 809 [19:12:16]Content-Type: application/json [19:12:16] [19:12:16]POST finish read [19:12:16]Found Content-Length = 809 [19:12:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106283", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 24.470, "sum" : 1700.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1700.67 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:12:16]execute_script... [19:12: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)1106283", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 24.470, "sum" : 1700.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1700.67 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:12:16]POST & json_proto [19:12:16]process_json_proto [19:12:16]json parsed OK: [19:12:16]protocol is kg_v1.0 [19:12:16]action value=close_receipt [19:12:16]process_action close_receipt [19:12:16]cmd_close_receipt [19:12:16]MH_GetDate [19:12:16]Write to MH i2c: F0 00 00 59 43 8B [19:12:16]Write i2c OK [19:12:16]MH_I2C_Read... [19:12:16]Read from MH i2c: F0 [19:12:16]MH_I2C_Read... [19:12:16]Read from MH i2c: F0 09 00 [19:12:16]MH_I2C_Read... [19:12:16]Read from MH i2c: F0 09 00 59 43 00 95 CB E4 65 6C AF E3 65 A0 [19:12:16]GetLastDocTimeStamp 1709493091 [19:12:16]current date 1709493141 [19:12:16]FM_GetShiftState [19:12:16]SAM_PROTO_GetShiftState [19:12:16]wFMCommunicate request_size=4 [19:12:16]MH_SAM_APDU [19:12:16]CAPDU: 80 13 01 00 [19:12:16]Write to MH i2c: E2 08 00 5A 43 80 13 01 00 00 00 00 00 1A [19:12:16]Write i2c OK [19:12:16]MH_I2C_Read... [19:12:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:12:16]Read from MH i2c: E2 [19:12:16]MH_I2C_Read... [19:12:16]Read from MH i2c: E2 0E 00 [19:12:16]MH_I2C_Read... [19:12:16]Read from MH i2c: E2 0E 00 5A 43 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 DC [19:12:16]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [19:12:16]wFMCommunicate OK [19:12:16]SAM_PROTO_GetShiftState done [19:12:16]FM_GetShiftState done [19:12:16]opened in 1709425579 [19:12:16]opened+sec_in_day 1709511979 [19:12:16]quantity*price = 170066 [19:12:16]sum+1 = 170068 [19:12:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1700.67 НСП 1% : 15.05 НДС 12% : 180.60 Наличными: 0.00 Безнал.: 1700.67 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 186 03.03.2024 19:12 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874798 ФД: 123329 ФПД: 119887612324376 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T191221&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123329&fm=119887612324376&tin=02508201610067®Number=0000000000090573&sum=170067 [19:12:18]StoreToDocumentArchive [19:12:18]shift 323 fd 123329 [19:12:18]save to /storage/0323/doc_00123329 [19:12:18]save last doc name /storage/0323/doc_00123329 to /storage/kkm_last_doc_name [19:12:18]save OK [19:12:18]Clear old archive folders... [19:12:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:12:18]tlvbuf is 00DFCB80 [19:12:18]SAM_PROTO_ClearQueue [19:12:18]wFMCommunicate request_size=4 [19:12:18]MH_SAM_APDU [19:12:18]CAPDU: 80 09 00 00 [19:12:18]Write to MH i2c: E2 08 00 67 43 80 09 00 00 00 00 00 00 1C [19:12:18]Write i2c OK [19:12:18]MH_I2C_Read... [19:12:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:12:18]Read from MH i2c: E2 [19:12:18]MH_I2C_Read... [19:12:18]Read from MH i2c: E2 03 00 [19:12:18]MH_I2C_Read... [19:12:18]Read from MH i2c: E2 03 00 67 43 00 90 00 1E [19:12:18]RAPDU: 90 00 [19:12:18]wFMCommunicate OK [19:12:18]SAM_PROTO_ClearQueue done [19:12:18]KKMCreateOFDPacket [19:12:18]OFDProtocolAddRootSTLVToBuf [19:12:18]FM_MakeSignedData [19:12:18]FM_MakeSignedData [19:12:18]SAM_PROTO_SignData [19:12:18]wFMCommunicate request_size=4 [19:12:18]MH_SAM_APDU [19:12:18]CAPDU: 80 0D 01 02 [19:12:18]Write to MH i2c: E2 08 00 68 43 80 0D 01 02 00 00 00 00 24 [19:12:18]Write i2c OK [19:12:18]MH_I2C_Read... [19:12:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:12:18]Read from MH i2c: E2 [19:12:18]MH_I2C_Read... [19:12:18]Read from MH i2c: E2 03 00 [19:12:18]MH_I2C_Read... [19:12:18]Read from MH i2c: E2 03 00 68 43 00 90 00 1F [19:12:18]RAPDU: 90 00 [19:12:18]wFMCommunicate OK [19:12:18]wFMCommunicate request_size=255 [19:12:18]MH_SAM_APDU [19:12:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 96 5F 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 53 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 53 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 46 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 53 98 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 95 CB E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 C1 E1 01 00 35 04 06 00 6D [19:12:18]Write to MH i2c: E2 02 01 69 43 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 96 5F 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 53 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 53 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 46 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 53 98 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 95 CB E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 C1 E1 01 00 35 04 06 00 6D 00 00 A8 [19:12:18]Write i2c OK [19:12:18]MH_I2C_Read... [19:12:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:12:18]Read from MH i2c: E2 [19:12:18]MH_I2C_Read... [19:12:18]Read from MH i2c: E2 03 00 [19:12:18]MH_I2C_Read... [19:12:18]Read from MH i2c: E2 03 00 69 43 00 90 00 20 [19:12:18]RAPDU: 90 00 [19:12:18]wFMCommunicate OK [19:12:18]wFMCommunicate request_size=10 [19:12:18]MH_SAM_APDU [19:12:18]CAPDU: 80 0D 02 02 05 09 82 8B AA 18 [19:12:18]Write to MH i2c: E2 0D 00 6A 43 80 0D 02 02 05 00 09 82 8B AA 18 00 00 09 [19:12:18]Write i2c OK [19:12:18]MH_I2C_Read... [19:12:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:12:18]Read from MH i2c: E2 [19:12:18]MH_I2C_Read... [19:12:18]Read from MH i2c: E2 03 00 [19:12:18]MH_I2C_Read... [19:12:18]Read from MH i2c: E2 03 00 6A 43 00 90 00 21 [19:12:18]RAPDU: 90 00 [19:12:18]wFMCommunicate OK [19:12:18]wFMCommunicate request_size=4 [19:12:18]MH_SAM_APDU [19:12:18]CAPDU: 80 0D 03 02 [19:12:18]Write to MH i2c: E2 08 00 6B 43 80 0D 03 02 00 00 00 00 29 [19:12:18]Write i2c OK [19:12:18]MH_I2C_Read... [19:12:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:12:18]Read from MH i2c: E2 [19:12:18]MH_I2C_Read... [19:12:18]Read from MH i2c: E2 0B 00 [19:12:18]MH_I2C_Read... [19:12:18]Read from MH i2c: E2 0B 00 6B 43 00 FF 16 2A 6E C2 B9 29 26 90 00 A1 [19:12:18]RAPDU: FF 16 2A 6E C2 B9 29 26 90 00 [19:12:18]wFMCommunicate OK [19:12:18]SAM_PROTO_SignData done [19:12:18]FM_MakeSignedData done [19:12:18]CreateOFDProtocolMessage [19:12:18]wFMCommunicate request_size=4 [19:12:18]MH_SAM_APDU [19:12:18]CAPDU: 80 11 00 00 [19:12:18]Write to MH i2c: E2 08 00 6C 43 80 11 00 00 00 00 00 00 29 [19:12:18]Write i2c OK [19:12:18]MH_I2C_Read... [19:12:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:12:18]Read from MH i2c: E2 [19:12:18]MH_I2C_Read... [19:12:18]Read from MH i2c: E2 17 00 [19:12:18]MH_I2C_Read... [19:12:18]Read from MH i2c: E2 17 00 6C 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 87 [19:12:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [19:12:18]wFMCommunicate OK [19:12:18]CreateOFDProtocolMessage done [19:12:18]OFDSenderStorePacket 123329 [19:12:18]StoreOFDPacket docnum=123329 [19:12:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 A2 A9 07 01 91 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 96 5F 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 53 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 53 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 46 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 53 98 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 95 CB E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 C1 E1 01 00 35 04 06 00 6D 09 82 8B AA 18 FF 16 2A 6E C2 B9 29 26 [19:12:18]CheckFolder [19:12:18]dirname=/storage/ofd_packets [19:12:18]CheckFolder done [19:12:18]ProducePacketName [19:12:18]name=ofd_packets/00123329 [19:12:18]NVStorageSaveData ofd_packets/00123329 [19:12:18]File name is /storage/ofd_packets/00123329 [19:12:18]Write 301 bytes [19:12:18]NVStorageSaveData done [19:12:18]OFDSenderStorePacket done [19:12:18]KKMCreateOFDPacket done [19:12:18]NVStorageSaveData kkm_last_timestamp [19:12:18]File name is /storage/kkm_last_timestamp [19:12:18]Write 4 bytes [19:12:18]NVStorageSaveData done [19:12:18]ExternCall_PrintAddStr [19:12:18]wPrintStart [19:12:18]Write to MH i2c: 01 00 00 6D 43 B0 [19:12:18]Write i2c OK [19:12:18]MH_I2C_Read... [19:12:18]Read from MH i2c: 01 [19:12:18]MH_I2C_Read... [19:12:18]Read from MH i2c: 01 07 00 [19:12:18]MH_I2C_Read... [19:12:18]Read from MH i2c: 01 07 00 6D 43 00 00 00 00 00 FF 0F C5 [19:12:18]RasterBufferAndPrint [19:12:18]line Счет N : (1)1106283 [19:12:18]line ИНН: 02508201610067 [19:12:18]line Контрольно-Кассовый Чек [19:12:18]line ПРОДАЖА [19:12:18]line ТРК (МРК, ГНК) : 53 [19:12:18]line Товар: 2710124500 [19:12:18]line Аи-95-К-5 [19:12:18]line 24.470 * 69.50 [19:12:18]line = 1700.67 [19:12:18]line НДС 12% НСП 1% [19:12:18]line > о реализуемом товаре [19:12:18]line ИТОГО: 1700.67 [19:12:18]line НСП 1% : 15.05 [19:12:18]line НДС 12% : 180.60 [19:12:18]line Наличными: 0.00 [19:12:18]line Безнал.: 1700.67 [19:12:18]line Место: АЗС № 25 "Партнер Нефть" [19:12:18]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [19:12:18]line СНО: Общий режим [19:12:18]line Чек 186 03.03.2024 19:12 [19:12:18]line Смена: 323 ФФД: 1.0 [19:12:18]line ЗНМ: 0300000019 [19:12:18]line РНМ: 0000000000090573 [19:12:18]line Версия ККМ: 001 [19:12:18]line Платежная система: О! деньги [19:12:18]line ФМ: 0000000000874798 [19:12:18]line ФД: 123329 [19:12:18]line ФПД: 119887612324376 [19:12:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T191221&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123329&fm=119887612324376&tin=02508201610067®Number=0000000000090573&sum=170067 [19:12:18]OFD Sender: Processing packet 123329 [packets to send 112, broken 111] [19:12:18]ProducePacketName [19:12:18]name=ofd_packets/00123329 [19:12:18]OFD Sender: To server: pG, [19:12:18]CommunicateWithHost lk.salyk.kg:30040 [19:12:18]ConnectInit lk.salyk.kg [19:12:18]written 0, free lines is 4095 [19:12:18]Connected sock=10 [19:12: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 37 39 38 0F 01 00 00 A2 A9 07 01 91 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 96 5F 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 53 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 53 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 46 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 53 98 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 95 CB E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 C1 E1 01 00 35 04 06 00 6D 09 82 8B AA 18 FF 16 2A 6E C2 B9 29 26 [19:12:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 B5 00 47 00 03 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 C1 E1 01 00 F4 03 04 00 C0 77 E4 65 B6 04 01 00 00 3E 79 C3 AA EA 07 59 47 [19:12:19]CommunicateWithHost err = 0 [19:12:19]CheckOFDResponse [19:12:19]1017 (14) - 77093643461234 [19:12:19]1041 (16) - 0000000000874798 [19:12:19]1040 (4) - 123329 [19:12:19]1012 (4) - 03.03.2024 13:14 [19:12:19]1206 (1) - 0 [19:12:19]OFD Sender: Remove packet 123329 [19:12:19]ProducePacketName [19:12:19]name=ofd_packets/00123329 [19:12:19]NVStorageDeleteData [19:12:19]Write to MH i2c: 01 00 00 97 43 DA [19:12:19]Write i2c OK [19:12:19]MH_I2C_Read... [19:12:19]Read from MH i2c: 01 [19:12:19]MH_I2C_Read... [19:12:19]Read from MH i2c: 01 07 00 [19:12:19]MH_I2C_Read... [19:12:19]Read from MH i2c: 01 07 00 97 43 00 00 00 00 00 F8 0C E5 [19:12:19]RasterBufferAndPrint [19:12:19]line [19:12:19]line [19:12:19]line [19:12:19]line [19:12:19]line [19:12:19]written 0, free lines is 3327 [19:12:19]MH_Cut [19:12:19]Write to MH i2c: D1 01 00 9E 43 01 B3 [19:12:19]Write i2c OK [19:12:19]MH_I2C_Read... [19:12:19]Read from MH i2c: D1 [19:12:19]MH_I2C_Read... [19:12:19]Read from MH i2c: D1 01 00 [19:12:19]MH_I2C_Read... [19:12:19]Read from MH i2c: D1 01 00 9E 43 00 B2 [19:12:19]Write to MH i2c: 01 00 00 9F 43 E2 [19:12:19]Write i2c OK [19:12:19]MH_I2C_Read... [19:12:19]OFD Sender: No OFD packet to send [19:12:20]*** Cut start [19:12:20]*** Purtial cut [19:12:20]*** Stage 1: CUTSNS_PIN = 1 [19:12:22]Read from MH i2c: 01 [19:12:22]MH_I2C_Read... [19:12:22]*** Stop cut motor [19:12:22]*** Cut end [19:12:22]Read from MH i2c: 01 07 00 [19:12:22]MH_I2C_Read... [19:12:22]Read from MH i2c: 01 07 00 9F 43 00 00 00 00 00 FF 0F F7 [19:12:22]process_action close_receipt done [19:12:22]requested_data is exist [19:12:22]produce_requested_data [19:12:22]requested_item fm.sn is exist - process it [19:12:22]wFMCommunicate request_size=4 [19:12:22]MH_SAM_APDU [19:12:22]CAPDU: 80 11 00 00 [19:12:22]Write to MH i2c: E2 08 00 A0 43 80 11 00 00 00 00 00 00 5D [19:12:22]Write i2c OK [19:12:22]MH_I2C_Read... [19:12:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:12:22]Read from MH i2c: E2 [19:12:22]MH_I2C_Read... [19:12:22]Read from MH i2c: E2 17 00 [19:12:22]MH_I2C_Read... [19:12:22]Read from MH i2c: E2 17 00 A0 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 BB [19:12:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [19:12:22]wFMCommunicate OK [19:12:22]requested_item fd.num is exist - process it [19:12:22]SAM_PROTO_GetFieldsCounters [19:12:22]wFMCommunicate request_size=4 [19:12:22]MH_SAM_APDU [19:12:22]CAPDU: 80 13 00 00 [19:12:22]Write to MH i2c: E2 08 00 A1 43 80 13 00 00 00 00 00 00 60 [19:12:22]Write i2c OK [19:12:22]MH_I2C_Read... [19:12:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:12:22]Read from MH i2c: E2 [19:12:22]MH_I2C_Read... [19:12:22]Read from MH i2c: E2 62 00 [19:12:22]MH_I2C_Read... [19:12:22]Read from MH i2c: E2 62 00 A1 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 C1 E1 01 00 0E 04 04 00 43 01 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 A0 [19:12: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 C1 E1 01 00 0E 04 04 00 43 01 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 [19:12:22]wFMCommunicate OK [19:12:22]SAM_PROTO_GetFieldsCounters done [19:12:22]requested_item shift.num is exist - process it [19:12:22]requested_item shift.opened is exist - process it [19:12:22]req_shift_opened [19:12:22]FM_GetShiftState [19:12:22]SAM_PROTO_GetShiftState [19:12:22]wFMCommunicate request_size=4 [19:12:22]MH_SAM_APDU [19:12:22]CAPDU: 80 13 01 00 [19:12:22]Write to MH i2c: E2 08 00 A2 43 80 13 01 00 00 00 00 00 62 [19:12:22]Write i2c OK [19:12:22]MH_I2C_Read... [19:12:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:12:22]Read from MH i2c: E2 [19:12:22]MH_I2C_Read... [19:12:22]Read from MH i2c: E2 0E 00 [19:12:22]MH_I2C_Read... [19:12:22]Read from MH i2c: E2 0E 00 A2 43 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 24 [19:12:22]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [19:12:22]wFMCommunicate OK [19:12:22]SAM_PROTO_GetShiftState done [19:12:22]FM_GetShiftState done [19:12:22]req_shift_opened done [19:12:22]requested_item shift.open_date is exist - process it [19:12:22]req_shift_open_date [19:12:22]req_shift_open_date done [19:12:22]produce_requested_data done [19:12:22]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123329,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [19:12:22]process_action_free close_receipt [19:12:22]json_value_free [19:12:22]json_value_free done [19:12:22]process_json_proto returns [19:12:22]Send response to host [19:12:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123329,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [19:12:22]free response buf [19:12:22]execute_script done [19:12:22]execute_script returns [19:12:22]free content buf [19:12:22]Sock 7.Close socket [19:12:22]Sock 7.Thread stoped [19:12:24]OFD Sender: No OFD packet to send [19:12:29]OFD Sender: No OFD packet to send [19:12:34]OFD Sender: No OFD packet to send [19:12:39]OFD Sender: No OFD packet to send [19:12:44]OFD Sender: No OFD packet to send [19:12:49]OFD Sender: No OFD packet to send [19:12:54]OFD Sender: No OFD packet to send [19:12:59]OFD Sender: No OFD packet to send [19:13:04]OFD Sender: No OFD packet to send [19:13:09]OFD Sender: No OFD packet to send [19:13:14]OFD Sender: No OFD packet to send [19:13:19]OFD Sender: No OFD packet to send [19:13:24]OFD Sender: No OFD packet to send [19:13:29]OFD Sender: No OFD packet to send [19:13:34]OFD Sender: No OFD packet to send [19:13:39]OFD Sender: No OFD packet to send [19:13:44]OFD Sender: No OFD packet to send [19:13:49]OFD Sender: No OFD packet to send [19:13:54]OFD Sender: No OFD packet to send [19:13:59]OFD Sender: No OFD packet to send [19:14:04]OFD Sender: No OFD packet to send [19:14:09]OFD Sender: No OFD packet to send [19:14:14]OFD Sender: No OFD packet to send [19:14:19]OFD Sender: No OFD packet to send [19:14:24]OFD Sender: No OFD packet to send [19:14:29]OFD Sender: No OFD packet to send [19:14:34]OFD Sender: No OFD packet to send [19:14:39]OFD Sender: No OFD packet to send [19:14:44]OFD Sender: No OFD packet to send [19:14:49]OFD Sender: No OFD packet to send [19:14:54]OFD Sender: No OFD packet to send [19:14:59]OFD Sender: No OFD packet to send [19:15:04]OFD Sender: No OFD packet to send [19:15:09]OFD Sender: No OFD packet to send [19:15:14]OFD Sender: No OFD packet to send [19:15:19]OFD Sender: No OFD packet to send [19:15:24]OFD Sender: No OFD packet to send [19:15:29]OFD Sender: No OFD packet to send [19:15:34]OFD Sender: No OFD packet to send [19:15:39]OFD Sender: No OFD packet to send [19:15:44]OFD Sender: No OFD packet to send [19:15:49]OFD Sender: No OFD packet to send [19:15:54]OFD Sender: No OFD packet to send [19:15:59]OFD Sender: No OFD packet to send [19:16:04]OFD Sender: No OFD packet to send [19:16:09]OFD Sender: No OFD packet to send [19:16:14]OFD Sender: No OFD packet to send [19:16:19]OFD Sender: No OFD packet to send [19:16:24]OFD Sender: No OFD packet to send [19:16:29]OFD Sender: No OFD packet to send [19:16:34]OFD Sender: No OFD packet to send [19:16:39]OFD Sender: No OFD packet to send [19:16:44]OFD Sender: No OFD packet to send [19:16:49]OFD Sender: No OFD packet to send [19:16:55]OFD Sender: No OFD packet to send [19:16:55]accept exits with 9 [19:16:55]New connection [19:16:55]New thread 3067252068 created [19:16:55]Thread 3067395428 joined [19:16:55]Waiting for new connection... [19:16:55] Sock 9.Parse request [19:16:55]Sock 9.Check first char [19:16:55]Sock 9.First char is OK [19:16:55]request: POST /json_proto HTTP/1.0 [19:16:55]Method: POST [19:16:55]URL: /json_proto [19:16:55]Method is POST - this is cgi request [19:16:55]url: /json_proto [19:16:55]query_string will be loaded in cgi processing [19:16:55]execute_cgi json_proto POST (null) [19:16:55]execute_cgi path=json_proto method=POST [19:16:55]POST find Content-Length [19:16:55]Host: 172.17.48.197:8080 [19:16:55]Content-Length: 806 [19:16:55]Content-Type: application/json [19:16:55] [19:16:55]POST finish read [19:16:55]Found Content-Length = 806 [19:16:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106285", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 3.240, "sum" : 200.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 200.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:16:55]execute_script... [19:16: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)1106285", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 3.240, "sum" : 200.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 200.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:16:55]POST & json_proto [19:16:55]process_json_proto [19:16:55]json parsed OK: [19:16:55]protocol is kg_v1.0 [19:16:55]action value=close_receipt [19:16:55]process_action close_receipt [19:16:55]cmd_close_receipt [19:16:55]MH_GetDate [19:16:55]Write to MH i2c: F0 00 00 A3 43 D5 [19:16:55]Write i2c OK [19:16:55]MH_I2C_Read... [19:16:55]Read from MH i2c: F0 [19:16:55]MH_I2C_Read... [19:16:55]Read from MH i2c: F0 09 00 [19:16:55]MH_I2C_Read... [19:16:55]Read from MH i2c: F0 09 00 A3 43 00 AB CC E4 65 6C AF E3 65 01 [19:16:55]GetLastDocTimeStamp 1709493141 [19:16:55]current date 1709493419 [19:16:55]FM_GetShiftState [19:16:55]SAM_PROTO_GetShiftState [19:16:55]wFMCommunicate request_size=4 [19:16:55]MH_SAM_APDU [19:16:55]CAPDU: 80 13 01 00 [19:16:55]Write to MH i2c: E2 08 00 A4 43 80 13 01 00 00 00 00 00 64 [19:16:55]Write i2c OK [19:16:55]MH_I2C_Read... [19:16:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:16:55]Read from MH i2c: E2 [19:16:55]MH_I2C_Read... [19:16:55]Read from MH i2c: E2 0E 00 [19:16:55]MH_I2C_Read... [19:16:55]Read from MH i2c: E2 0E 00 A4 43 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 26 [19:16:55]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [19:16:55]wFMCommunicate OK [19:16:55]SAM_PROTO_GetShiftState done [19:16:55]FM_GetShiftState done [19:16:55]opened in 1709425579 [19:16:55]opened+sec_in_day 1709511979 [19:16:55]quantity*price = 20055 [19:16:55]sum+1 = 20057 [19:16:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.56 НСП 1% : 1.77 НДС 12% : 21.30 Наличными: 0.00 Безнал.: 200.56 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 187 03.03.2024 19:17 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874798 ФД: 123330 ФПД: 47405079123478 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T191700&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123330&fm=47405079123478&tin=02508201610067®Number=0000000000090573&sum=20056 [19:16:56]StoreToDocumentArchive [19:16:56]shift 323 fd 123330 [19:16:56]save to /storage/0323/doc_00123330 [19:16:56]save last doc name /storage/0323/doc_00123330 to /storage/kkm_last_doc_name [19:16:56]save OK [19:16:56]Clear old archive folders... [19:16:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:16:56]tlvbuf is B6FC4230 [19:16:56]SAM_PROTO_ClearQueue [19:16:56]wFMCommunicate request_size=4 [19:16:56]MH_SAM_APDU [19:16:56]CAPDU: 80 09 00 00 [19:16:56]Write to MH i2c: E2 08 00 B1 43 80 09 00 00 00 00 00 00 66 [19:16:56]Write i2c OK [19:16:56]MH_I2C_Read... [19:16:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:16:56]Read from MH i2c: E2 [19:16:56]MH_I2C_Read... [19:16:56]Read from MH i2c: E2 03 00 [19:16:56]MH_I2C_Read... [19:16:56]Read from MH i2c: E2 03 00 B1 43 00 90 00 68 [19:16:56]RAPDU: 90 00 [19:16:56]wFMCommunicate OK [19:16:56]SAM_PROTO_ClearQueue done [19:16:56]KKMCreateOFDPacket [19:16:56]OFDProtocolAddRootSTLVToBuf [19:16:56]FM_MakeSignedData [19:16:56]FM_MakeSignedData [19:16:56]SAM_PROTO_SignData [19:16:56]wFMCommunicate request_size=4 [19:16:56]MH_SAM_APDU [19:16:56]CAPDU: 80 0D 01 02 [19:16:56]Write to MH i2c: E2 08 00 B2 43 80 0D 01 02 00 00 00 00 6E [19:16:56]Write i2c OK [19:16:56]MH_I2C_Read... [19:16:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:16:56]Read from MH i2c: E2 [19:16:56]MH_I2C_Read... [19:16:56]Read from MH i2c: E2 03 00 [19:16:56]MH_I2C_Read... [19:16:56]Read from MH i2c: E2 03 00 B2 43 00 90 00 69 [19:16:56]RAPDU: 90 00 [19:16:56]wFMCommunicate OK [19:16:56]wFMCommunicate request_size=255 [19:16:56]MH_SAM_APDU [19:16: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 35 FF 03 08 00 03 A8 0C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 58 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 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 52 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 AC CC E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 C2 E1 01 00 35 04 06 00 2B [19:16:56]Write to MH i2c: E2 02 01 B3 43 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 0C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 58 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 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 52 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 AC CC E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 C2 E1 01 00 35 04 06 00 2B 00 00 08 [19:16:56]Write i2c OK [19:16:56]MH_I2C_Read... [19:16:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:16:56]Read from MH i2c: E2 [19:16:56]MH_I2C_Read... [19:16:56]Read from MH i2c: E2 03 00 [19:16:56]MH_I2C_Read... [19:16:56]Read from MH i2c: E2 03 00 B3 43 00 90 00 6A [19:16:56]RAPDU: 90 00 [19:16:56]wFMCommunicate OK [19:16:56]wFMCommunicate request_size=10 [19:16:56]MH_SAM_APDU [19:16:56]CAPDU: 80 0D 02 02 05 1D 5A E6 D6 16 [19:16:56]Write to MH i2c: E2 0D 00 B4 43 80 0D 02 02 05 00 1D 5A E6 D6 16 00 00 C4 [19:16:56]Write i2c OK [19:16:56]MH_I2C_Read... [19:16:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:16:56]Read from MH i2c: E2 [19:16:56]MH_I2C_Read... [19:16:56]Read from MH i2c: E2 03 00 [19:16:56]MH_I2C_Read... [19:16:56]Read from MH i2c: E2 03 00 B4 43 00 90 00 6B [19:16:56]RAPDU: 90 00 [19:16:56]wFMCommunicate OK [19:16:56]wFMCommunicate request_size=4 [19:16:56]MH_SAM_APDU [19:16:56]CAPDU: 80 0D 03 02 [19:16:56]Write to MH i2c: E2 08 00 B5 43 80 0D 03 02 00 00 00 00 73 [19:16:56]Write i2c OK [19:16:56]MH_I2C_Read... [19:16:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:16:56]Read from MH i2c: E2 [19:16:56]MH_I2C_Read... [19:16:56]Read from MH i2c: E2 0B 00 [19:16:56]MH_I2C_Read... [19:16:56]Read from MH i2c: E2 0B 00 B5 43 00 8D CF 1F 1F 44 71 28 36 90 00 21 [19:16:56]RAPDU: 8D CF 1F 1F 44 71 28 36 90 00 [19:16:56]wFMCommunicate OK [19:16:56]SAM_PROTO_SignData done [19:16:56]FM_MakeSignedData done [19:16:56]CreateOFDProtocolMessage [19:16:56]wFMCommunicate request_size=4 [19:16:56]MH_SAM_APDU [19:16:56]CAPDU: 80 11 00 00 [19:16:56]Write to MH i2c: E2 08 00 B6 43 80 11 00 00 00 00 00 00 73 [19:16:56]Write i2c OK [19:16:56]MH_I2C_Read... [19:16:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:16:57]Read from MH i2c: E2 [19:16:57]MH_I2C_Read... [19:16:57]Read from MH i2c: E2 17 00 [19:16:57]MH_I2C_Read... [19:16:57]Read from MH i2c: E2 17 00 B6 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 D1 [19:16:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [19:16:57]wFMCommunicate OK [19:16:57]CreateOFDProtocolMessage done [19:16:57]OFDSenderStorePacket 123330 [19:16:57]StoreOFDPacket docnum=123330 [19:16:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 3E 90 07 01 51 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 0C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 58 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 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 52 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 AC CC E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 C2 E1 01 00 35 04 06 00 2B 1D 5A E6 D6 16 8D CF 1F 1F 44 71 28 36 [19:16:57]CheckFolder [19:16:57]dirname=/storage/ofd_packets [19:16:57]CheckFolder done [19:16:57]ProducePacketName [19:16:57]name=ofd_packets/00123330 [19:16:57]NVStorageSaveData ofd_packets/00123330 [19:16:57]File name is /storage/ofd_packets/00123330 [19:16:57]Write 301 bytes [19:16:57]NVStorageSaveData done [19:16:57]OFDSenderStorePacket done [19:16:57]KKMCreateOFDPacket done [19:16:57]NVStorageSaveData kkm_last_timestamp [19:16:57]File name is /storage/kkm_last_timestamp [19:16:57]Write 4 bytes [19:16:57]NVStorageSaveData done [19:16:57]ExternCall_PrintAddStr [19:16:57]wPrintStart [19:16:57]Write to MH i2c: 01 00 00 B7 43 FA [19:16:57]Write i2c OK [19:16:57]MH_I2C_Read... [19:16:57]Read from MH i2c: 01 [19:16:57]MH_I2C_Read... [19:16:57]Read from MH i2c: 01 07 00 [19:16:57]MH_I2C_Read... [19:16:57]Read from MH i2c: 01 07 00 B7 43 00 00 00 00 00 FF 0F 0F [19:16:57]RasterBufferAndPrint [19:16:57]line Счет N : (1)1106285 [19:16:57]line ИНН: 02508201610067 [19:16:57]line Контрольно-Кассовый Чек [19:16:57]line ПРОДАЖА [19:16:57]line ТРК (МРК, ГНК) : 11 [19:16:57]line Товар: 2710124130 [19:16:57]line Аи-92-К-5 [19:16:57]line 3.240 * 61.90 [19:16:57]line = 200.56 [19:16:57]line НДС 12% НСП 1% [19:16:57]line > о реализуемом товаре [19:16:57]line ИТОГО: 200.56 [19:16:57]line НСП 1% : 1.77 [19:16:57]line НДС 12% : 21.30 [19:16:57]line Наличными: 0.00 [19:16:57]line Безнал.: 200.56 [19:16:57]line Место: АЗС № 25 "Партнер Нефть" [19:16:57]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [19:16:57]line СНО: Общий режим [19:16:57]line Чек 187 03.03.2024 19:17 [19:16:57]line Смена: 323 ФФД: 1.0 [19:16:57]line ЗНМ: 0300000019 [19:16:57]line РНМ: 0000000000090573 [19:16:57]line Версия ККМ: 001 [19:16:57]line Платежная система: О! деньги [19:16:57]line ФМ: 0000000000874798 [19:16:57]line ФД: 123330 [19:16:57]line ФПД: 47405079123478 [19:16:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T191700&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123330&fm=47405079123478&tin=02508201610067®Number=0000000000090573&sum=20056 [19:16:57]OFD Sender: Processing packet 123330 [packets to send 112, broken 111] [19:16:57]ProducePacketName [19:16:57]name=ofd_packets/00123330 [19:16:57]OFD Sender: To server: pG, [19:16:57]CommunicateWithHost lk.salyk.kg:30040 [19:16:57]ConnectInit lk.salyk.kg [19:16:57]written 0, free lines is 4095 [19:16:57]Connected sock=10 [19:16: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 37 39 38 0F 01 00 00 3E 90 07 01 51 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 0C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 58 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 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 52 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 AC CC E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 C2 E1 01 00 35 04 06 00 2B 1D 5A E6 D6 16 8D CF 1F 1F 44 71 28 36 [19:16:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 60 2F 47 00 A1 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 37 39 38 10 04 04 00 C2 E1 01 00 F4 03 04 00 D6 78 E4 65 B6 04 01 00 00 D9 AE F8 88 2E 43 D1 32 [19:16:57]CommunicateWithHost err = 0 [19:16:57]CheckOFDResponse [19:16:57]1017 (14) - 77093643461234 [19:16:57]1041 (16) - 0000000000874798 [19:16:57]1040 (4) - 123330 [19:16:57]1012 (4) - 03.03.2024 13:19 [19:16:57]1206 (1) - 0 [19:16:57]OFD Sender: Remove packet 123330 [19:16:57]ProducePacketName [19:16:57]name=ofd_packets/00123330 [19:16:57]NVStorageDeleteData [19:16:57]Write to MH i2c: 01 00 00 E1 43 24 [19:16:57]Write i2c OK [19:16:57]MH_I2C_Read... [19:16:57]Read from MH i2c: 01 [19:16:57]MH_I2C_Read... [19:16:57]Read from MH i2c: 01 07 00 [19:16:57]MH_I2C_Read... [19:16:57]Read from MH i2c: 01 07 00 E1 43 00 00 00 00 00 01 0D 39 [19:16:57]RasterBufferAndPrint [19:16:57]line [19:16:57]line [19:16:57]line [19:16:57]line [19:16:57]line [19:16:57]written 0, free lines is 3338 [19:16:57]MH_Cut [19:16:57]Write to MH i2c: D1 01 00 E8 43 01 FD [19:16:57]Write i2c OK [19:16:57]MH_I2C_Read... [19:16:57]Read from MH i2c: D1 [19:16:57]MH_I2C_Read... [19:16:57]Read from MH i2c: D1 01 00 [19:16:57]MH_I2C_Read... [19:16:57]Read from MH i2c: D1 01 00 E8 43 00 FC [19:16:57]Write to MH i2c: 01 00 00 E9 43 2C [19:16:57]Write i2c OK [19:16:57]MH_I2C_Read... [19:16:58]OFD Sender: No OFD packet to send [19:16:58]*** Cut start [19:16:58]*** Purtial cut [19:16:58]*** Stage 1: CUTSNS_PIN = 1 [19:17:00]Read from MH i2c: 01 [19:17:00]MH_I2C_Read... [19:17:00]*** Stop cut motor [19:17:00]*** Cut end [19:17:00]Read from MH i2c: 01 07 00 [19:17:00]MH_I2C_Read... [19:17:00]Read from MH i2c: 01 07 00 E9 43 00 00 00 00 00 FF 0F 41 [19:17:00]process_action close_receipt done [19:17:00]requested_data is exist [19:17:00]produce_requested_data [19:17:00]requested_item fm.sn is exist - process it [19:17:00]wFMCommunicate request_size=4 [19:17:00]MH_SAM_APDU [19:17:00]CAPDU: 80 11 00 00 [19:17:00]Write to MH i2c: E2 08 00 EA 43 80 11 00 00 00 00 00 00 A7 [19:17:00]Write i2c OK [19:17:00]MH_I2C_Read... [19:17:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:17:00]Read from MH i2c: E2 [19:17:00]MH_I2C_Read... [19:17:00]Read from MH i2c: E2 17 00 [19:17:00]MH_I2C_Read... [19:17:00]Read from MH i2c: E2 17 00 EA 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 05 [19:17:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [19:17:00]wFMCommunicate OK [19:17:00]requested_item fd.num is exist - process it [19:17:00]SAM_PROTO_GetFieldsCounters [19:17:00]wFMCommunicate request_size=4 [19:17:00]MH_SAM_APDU [19:17:00]CAPDU: 80 13 00 00 [19:17:00]Write to MH i2c: E2 08 00 EB 43 80 13 00 00 00 00 00 00 AA [19:17:00]Write i2c OK [19:17:00]MH_I2C_Read... [19:17:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:17:00]Read from MH i2c: E2 [19:17:00]MH_I2C_Read... [19:17:00]Read from MH i2c: E2 62 00 [19:17:00]MH_I2C_Read... [19:17:00]Read from MH i2c: E2 62 00 EB 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 C2 E1 01 00 0E 04 04 00 43 01 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 EE [19: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 C2 E1 01 00 0E 04 04 00 43 01 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 [19:17:00]wFMCommunicate OK [19:17:00]SAM_PROTO_GetFieldsCounters done [19:17:00]requested_item shift.num is exist - process it [19:17:00]requested_item shift.opened is exist - process it [19:17:00]req_shift_opened [19:17:00]FM_GetShiftState [19:17:00]SAM_PROTO_GetShiftState [19:17:00]wFMCommunicate request_size=4 [19:17:00]MH_SAM_APDU [19:17:00]CAPDU: 80 13 01 00 [19:17:00]Write to MH i2c: E2 08 00 EC 43 80 13 01 00 00 00 00 00 AC [19:17:00]Write i2c OK [19:17:00]MH_I2C_Read... [19:17:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:17:00]Read from MH i2c: E2 [19:17:00]MH_I2C_Read... [19:17:00]Read from MH i2c: E2 0E 00 [19:17:00]MH_I2C_Read... [19:17:00]Read from MH i2c: E2 0E 00 EC 43 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 6E [19:17:00]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [19:17:00]wFMCommunicate OK [19:17:00]SAM_PROTO_GetShiftState done [19:17:00]FM_GetShiftState done [19:17:00]req_shift_opened done [19:17:00]requested_item shift.open_date is exist - process it [19:17:00]req_shift_open_date [19:17:00]req_shift_open_date done [19:17:00]produce_requested_data done [19:17:00]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123330,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [19:17:00]process_action_free close_receipt [19:17:00]json_value_free [19:17:00]json_value_free done [19:17:00]process_json_proto returns [19:17:00]Send response to host [19:17:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123330,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [19:17:00]free response buf [19:17:00]execute_script done [19:17:00]execute_script returns [19:17:00]free content buf [19:17:00]Sock 9.Close socket [19:17:00]Sock 9.Thread stoped [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:14]accept exits with 7 [19:17:14]New connection [19:17:14]New thread 3067395428 created [19:17:14]Thread 3067252068 joined [19:17:14]Waiting for new connection... [19:17:14] Sock 7.Parse request [19:17:14]Sock 7.Check first char [19:17:14]Sock 7.First char is OK [19:17:14]request: POST /json_proto HTTP/1.0 [19:17:14]Method: POST [19:17:14]URL: /json_proto [19:17:14]Method is POST - this is cgi request [19:17:14]url: /json_proto [19:17:14]query_string will be loaded in cgi processing [19:17:14]execute_cgi json_proto POST (null) [19:17:14]execute_cgi path=json_proto method=POST [19:17:14]POST find Content-Length [19:17:14]Host: 172.17.48.197:8080 [19:17:14]Content-Length: 806 [19:17:14]Content-Type: application/json [19:17:14] [19:17:14]POST finish read [19:17:14]Found Content-Length = 806 [19:17:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106284", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:17:14]execute_script... [19:17: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)1106284", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:17:14]POST & json_proto [19:17:14]process_json_proto [19:17:14]json parsed OK: [19:17:14]protocol is kg_v1.0 [19:17:14]action value=close_receipt [19:17:14]process_action close_receipt [19:17:14]cmd_close_receipt [19:17:14]MH_GetDate [19:17:14]Write to MH i2c: F0 00 00 ED 43 1F [19:17:14]Write i2c OK [19:17:14]MH_I2C_Read... [19:17:14]Read from MH i2c: F0 [19:17:14]MH_I2C_Read... [19:17:14]Read from MH i2c: F0 09 00 [19:17:14]MH_I2C_Read... [19:17:14]Read from MH i2c: F0 09 00 ED 43 00 BF CC E4 65 6C AF E3 65 5F [19:17:14]GetLastDocTimeStamp 1709493420 [19:17:14]current date 1709493439 [19:17:14]FM_GetShiftState [19:17:14]SAM_PROTO_GetShiftState [19:17:14]wFMCommunicate request_size=4 [19:17:14]MH_SAM_APDU [19:17:14]CAPDU: 80 13 01 00 [19:17:14]Write to MH i2c: E2 08 00 EE 43 80 13 01 00 00 00 00 00 AE [19:17:14]Write i2c OK [19:17:14]MH_I2C_Read... [19:17:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:17:14]Read from MH i2c: E2 [19:17:14]MH_I2C_Read... [19:17:14]Read from MH i2c: E2 0E 00 [19:17:14]MH_I2C_Read... [19:17:14]Read from MH i2c: E2 0E 00 EE 43 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 70 [19:17:14]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [19:17:14]wFMCommunicate OK [19:17:14]SAM_PROTO_GetShiftState done [19:17:14]FM_GetShiftState done [19:17:14]opened in 1709425579 [19:17:14]opened+sec_in_day 1709511979 [19:17:14]quantity*price = 50015 [19:17:14]sum+1 = 50016 [19:17:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.15 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.15 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 188 03.03.2024 19:17 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874798 ФД: 123331 ФПД: 266339228789213 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T191719&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123331&fm=266339228789213&tin=02508201610067®Number=0000000000090573&sum=50015 [19:17:16]StoreToDocumentArchive [19:17:16]shift 323 fd 123331 [19:17:16]save to /storage/0323/doc_00123331 [19:17:16]save last doc name /storage/0323/doc_00123331 to /storage/kkm_last_doc_name [19:17:16]save OK [19:17:16]Clear old archive folders... [19:17:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:17:16]tlvbuf is 00DC3180 [19:17:16]SAM_PROTO_ClearQueue [19:17:16]wFMCommunicate request_size=4 [19:17:16]MH_SAM_APDU [19:17:16]CAPDU: 80 09 00 00 [19:17:16]Write to MH i2c: E2 08 00 FB 43 80 09 00 00 00 00 00 00 B0 [19:17:16]Write i2c OK [19:17:16]MH_I2C_Read... [19:17:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:17:16]Read from MH i2c: E2 [19:17:16]MH_I2C_Read... [19:17:16]Read from MH i2c: E2 03 00 [19:17:16]MH_I2C_Read... [19:17:16]Read from MH i2c: E2 03 00 FB 43 00 90 00 B2 [19:17:16]RAPDU: 90 00 [19:17:16]wFMCommunicate OK [19:17:16]SAM_PROTO_ClearQueue done [19:17:16]KKMCreateOFDPacket [19:17:16]OFDProtocolAddRootSTLVToBuf [19:17:16]FM_MakeSignedData [19:17:16]FM_MakeSignedData [19:17:16]SAM_PROTO_SignData [19:17:16]wFMCommunicate request_size=4 [19:17:16]MH_SAM_APDU [19:17:16]CAPDU: 80 0D 01 02 [19:17:16]Write to MH i2c: E2 08 00 FC 43 80 0D 01 02 00 00 00 00 B8 [19:17:16]Write i2c OK [19:17:16]MH_I2C_Read... [19:17:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:17:16]Read from MH i2c: E2 [19:17:16]MH_I2C_Read... [19:17:16]Read from MH i2c: E2 03 00 [19:17:16]MH_I2C_Read... [19:17:16]Read from MH i2c: E2 03 00 FC 43 00 90 00 B3 [19:17:16]RAPDU: 90 00 [19:17:16]wFMCommunicate OK [19:17:16]wFMCommunicate request_size=255 [19:17:16]MH_SAM_APDU [19:17:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 BF CC E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 C3 E1 01 00 35 04 06 00 F2 [19:17:16]Write to MH i2c: E2 02 01 FD 43 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 BF CC E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 C3 E1 01 00 35 04 06 00 F2 00 00 21 [19:17:16]Write i2c OK [19:17:16]MH_I2C_Read... [19:17:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:17:16]Read from MH i2c: E2 [19:17:16]MH_I2C_Read... [19:17:16]Read from MH i2c: E2 03 00 [19:17:16]MH_I2C_Read... [19:17:16]Read from MH i2c: E2 03 00 FD 43 00 90 00 B4 [19:17:16]RAPDU: 90 00 [19:17:16]wFMCommunicate OK [19:17:16]wFMCommunicate request_size=10 [19:17:16]MH_SAM_APDU [19:17:16]CAPDU: 80 0D 02 02 05 3B EF 1F 29 DD [19:17:16]Write to MH i2c: E2 0D 00 FE 43 80 0D 02 02 05 00 3B EF 1F 29 DD 00 00 14 [19:17:16]Write i2c OK [19:17:16]MH_I2C_Read... [19:17:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:17:16]Read from MH i2c: E2 [19:17:16]MH_I2C_Read... [19:17:16]Read from MH i2c: E2 03 00 [19:17:16]MH_I2C_Read... [19:17:16]Read from MH i2c: E2 03 00 FE 43 00 90 00 B5 [19:17:16]RAPDU: 90 00 [19:17:16]wFMCommunicate OK [19:17:16]wFMCommunicate request_size=4 [19:17:16]MH_SAM_APDU [19:17:16]CAPDU: 80 0D 03 02 [19:17:16]Write to MH i2c: E2 08 00 FF 43 80 0D 03 02 00 00 00 00 BD [19:17:16]Write i2c OK [19:17:16]MH_I2C_Read... [19:17:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:17:16]Read from MH i2c: E2 [19:17:16]MH_I2C_Read... [19:17:16]Read from MH i2c: E2 0B 00 [19:17:16]MH_I2C_Read... [19:17:16]Read from MH i2c: E2 0B 00 FF 43 00 A2 B6 CA 60 72 FE 50 DE 90 00 DE [19:17:16]RAPDU: A2 B6 CA 60 72 FE 50 DE 90 00 [19:17:16]wFMCommunicate OK [19:17:16]SAM_PROTO_SignData done [19:17:16]FM_MakeSignedData done [19:17:16]CreateOFDProtocolMessage [19:17:16]wFMCommunicate request_size=4 [19:17:16]MH_SAM_APDU [19:17:16]CAPDU: 80 11 00 00 [19:17:16]Write to MH i2c: E2 08 00 00 44 80 11 00 00 00 00 00 00 BE [19:17:16]Write i2c OK [19:17:16]MH_I2C_Read... [19:17:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:17:16]Read from MH i2c: E2 [19:17:16]MH_I2C_Read... [19:17:16]Read from MH i2c: E2 17 00 [19:17:16]MH_I2C_Read... [19:17:16]Read from MH i2c: E2 17 00 00 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 1C [19:17:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [19:17:16]wFMCommunicate OK [19:17:16]CreateOFDProtocolMessage done [19:17:16]OFDSenderStorePacket 123331 [19:17:16]StoreOFDPacket docnum=123331 [19:17:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 1B 5E 07 01 DE 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 BF CC E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 C3 E1 01 00 35 04 06 00 F2 3B EF 1F 29 DD A2 B6 CA 60 72 FE 50 DE [19:17:16]CheckFolder [19:17:16]dirname=/storage/ofd_packets [19:17:16]CheckFolder done [19:17:16]ProducePacketName [19:17:16]name=ofd_packets/00123331 [19:17:16]NVStorageSaveData ofd_packets/00123331 [19:17:16]File name is /storage/ofd_packets/00123331 [19:17:16]Write 301 bytes [19:17:16]NVStorageSaveData done [19:17:16]OFDSenderStorePacket done [19:17:16]KKMCreateOFDPacket done [19:17:16]NVStorageSaveData kkm_last_timestamp [19:17:16]File name is /storage/kkm_last_timestamp [19:17:16]Write 4 bytes [19:17:16]NVStorageSaveData done [19:17:16]ExternCall_PrintAddStr [19:17:16]wPrintStart [19:17:16]Write to MH i2c: 01 00 00 01 44 45 [19:17:16]Write i2c OK [19:17:16]MH_I2C_Read... [19:17:16]Read from MH i2c: 01 [19:17:16]MH_I2C_Read... [19:17:16]Read from MH i2c: 01 07 00 [19:17:16]MH_I2C_Read... [19:17:16]Read from MH i2c: 01 07 00 01 44 00 00 00 00 00 FF 0F 5A [19:17:16]RasterBufferAndPrint [19:17:16]line Счет N : (1)1106284 [19:17:16]line ИНН: 02508201610067 [19:17:16]line Контрольно-Кассовый Чек [19:17:16]line ПРОДАЖА [19:17:16]line ТРК (МРК, ГНК) : 52 [19:17:16]line Товар: 2710124130 [19:17:16]line Аи-92-К-5 [19:17:16]line 8.080 * 61.90 [19:17:16]line = 500.15 [19:17:16]line НДС 12% НСП 1% [19:17:16]line > о реализуемом товаре [19:17:16]line ИТОГО: 500.15 [19:17:16]line НСП 1% : 4.43 [19:17:16]line НДС 12% : 53.11 [19:17:16]line Наличными: 0.00 [19:17:16]line Безнал.: 500.15 [19:17:16]line Место: АЗС № 25 "Партнер Нефть" [19:17:16]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [19:17:16]line СНО: Общий режим [19:17:16]line Чек 188 03.03.2024 19:17 [19:17:16]line Смена: 323 ФФД: 1.0 [19:17:16]line ЗНМ: 0300000019 [19:17:16]line РНМ: 0000000000090573 [19:17:16]line Версия ККМ: 001 [19:17:16]line Платежная система: О! деньги [19:17:16]line ФМ: 0000000000874798 [19:17:16]line ФД: 123331 [19:17:16]line ФПД: 266339228789213 [19:17:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T191719&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123331&fm=266339228789213&tin=02508201610067®Number=0000000000090573&sum=50015 [19:17:16]OFD Sender: Processing packet 123331 [packets to send 112, broken 111] [19:17:16]ProducePacketName [19:17:16]name=ofd_packets/00123331 [19:17:16]OFD Sender: To server: pG, [19:17:16]CommunicateWithHost lk.salyk.kg:30040 [19:17:16]ConnectInit lk.salyk.kg [19:17:16]written 0, free lines is 4095 [19:17:16]Connected sock=10 [19:17: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 37 39 38 0F 01 00 00 1B 5E 07 01 DE 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 BF CC E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 C3 E1 01 00 35 04 06 00 F2 3B EF 1F 29 DD A2 B6 CA 60 72 FE 50 DE [19:17:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 71 FD 47 00 06 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 37 39 38 10 04 04 00 C3 E1 01 00 F4 03 04 00 EA 78 E4 65 B6 04 01 00 00 AB 59 78 CA FC 01 E0 E8 [19:17:17]CommunicateWithHost err = 0 [19:17:17]CheckOFDResponse [19:17:17]1017 (14) - 77093643461234 [19:17:17]1041 (16) - 0000000000874798 [19:17:17]1040 (4) - 123331 [19:17:17]1012 (4) - 03.03.2024 13:19 [19:17:17]1206 (1) - 0 [19:17:17]OFD Sender: Remove packet 123331 [19:17:17]ProducePacketName [19:17:17]name=ofd_packets/00123331 [19:17:17]NVStorageDeleteData [19:17:17]Write to MH i2c: 01 00 00 2B 44 6F [19:17:17]Write i2c OK [19:17:17]MH_I2C_Read... [19:17:17]Read from MH i2c: 01 [19:17:17]MH_I2C_Read... [19:17:17]Read from MH i2c: 01 07 00 [19:17:17]MH_I2C_Read... [19:17:17]Read from MH i2c: 01 07 00 2B 44 00 00 00 00 00 01 0D 84 [19:17:17]RasterBufferAndPrint [19:17:17]line [19:17:17]line [19:17:17]line [19:17:17]line [19:17:17]line [19:17:17]written 0, free lines is 3335 [19:17:17]MH_Cut [19:17:17]Write to MH i2c: D1 01 00 32 44 01 48 [19:17:17]Write i2c OK [19:17:17]MH_I2C_Read... [19:17:17]Read from MH i2c: D1 [19:17:17]MH_I2C_Read... [19:17:17]Read from MH i2c: D1 01 00 [19:17:17]MH_I2C_Read... [19:17:17]Read from MH i2c: D1 01 00 32 44 00 47 [19:17:17]Write to MH i2c: 01 00 00 33 44 77 [19:17:17]Write i2c OK [19:17:17]MH_I2C_Read... [19:17:17]OFD Sender: No OFD packet to send [19:17:17]*** Cut start [19:17:17]*** Purtial cut [19:17:17]*** Stage 1: CUTSNS_PIN = 1 [19:17:20]Read from MH i2c: 01 [19:17:20]MH_I2C_Read... [19:17:20]*** Stop cut motor [19:17:20]*** Cut end [19:17:20]Read from MH i2c: 01 07 00 [19:17:20]MH_I2C_Read... [19:17:20]Read from MH i2c: 01 07 00 33 44 00 00 00 00 00 FF 0F 8C [19:17:20]process_action close_receipt done [19:17:20]requested_data is exist [19:17:20]produce_requested_data [19:17:20]requested_item fm.sn is exist - process it [19:17:20]wFMCommunicate request_size=4 [19:17:20]MH_SAM_APDU [19:17:20]CAPDU: 80 11 00 00 [19:17:20]Write to MH i2c: E2 08 00 34 44 80 11 00 00 00 00 00 00 F2 [19:17:20]Write i2c OK [19:17:20]MH_I2C_Read... [19:17:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:17:20]Read from MH i2c: E2 [19:17:20]MH_I2C_Read... [19:17:20]Read from MH i2c: E2 17 00 [19:17:20]MH_I2C_Read... [19:17:20]Read from MH i2c: E2 17 00 34 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 50 [19:17:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [19:17:20]wFMCommunicate OK [19:17:20]requested_item fd.num is exist - process it [19:17:20]SAM_PROTO_GetFieldsCounters [19:17:20]wFMCommunicate request_size=4 [19:17:20]MH_SAM_APDU [19:17:20]CAPDU: 80 13 00 00 [19:17:20]Write to MH i2c: E2 08 00 35 44 80 13 00 00 00 00 00 00 F5 [19:17:20]Write i2c OK [19:17:20]MH_I2C_Read... [19:17:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:17:20]Read from MH i2c: E2 [19:17:20]MH_I2C_Read... [19:17:20]Read from MH i2c: E2 62 00 [19:17:20]MH_I2C_Read... [19:17:20]Read from MH i2c: E2 62 00 35 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 C3 E1 01 00 0E 04 04 00 43 01 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 3D [19:17: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 C3 E1 01 00 0E 04 04 00 43 01 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 [19:17:20]wFMCommunicate OK [19:17:20]SAM_PROTO_GetFieldsCounters done [19:17:20]requested_item shift.num is exist - process it [19:17:20]requested_item shift.opened is exist - process it [19:17:20]req_shift_opened [19:17:20]FM_GetShiftState [19:17:20]SAM_PROTO_GetShiftState [19:17:20]wFMCommunicate request_size=4 [19:17:20]MH_SAM_APDU [19:17:20]CAPDU: 80 13 01 00 [19:17:20]Write to MH i2c: E2 08 00 36 44 80 13 01 00 00 00 00 00 F7 [19:17:20]Write i2c OK [19:17:20]MH_I2C_Read... [19:17:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:17:20]Read from MH i2c: E2 [19:17:20]MH_I2C_Read... [19:17:20]Read from MH i2c: E2 0E 00 [19:17:20]MH_I2C_Read... [19:17:20]Read from MH i2c: E2 0E 00 36 44 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 B9 [19:17:20]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [19:17:20]wFMCommunicate OK [19:17:20]SAM_PROTO_GetShiftState done [19:17:20]FM_GetShiftState done [19:17:20]req_shift_opened done [19:17:20]requested_item shift.open_date is exist - process it [19:17:20]req_shift_open_date [19:17:20]req_shift_open_date done [19:17:20]produce_requested_data done [19:17:20]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123331,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [19:17:20]process_action_free close_receipt [19:17:20]json_value_free [19:17:20]json_value_free done [19:17:20]process_json_proto returns [19:17:20]Send response to host [19:17:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123331,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [19:17:20]free response buf [19:17:20]execute_script done [19:17:20]execute_script returns [19:17:20]free content buf [19:17:20]Sock 7.Close socket [19:17:20]Sock 7.Thread stoped [19:17:22]OFD Sender: No OFD packet to send [19:17:27]OFD Sender: No OFD packet to send [19:17:32]OFD Sender: No OFD packet to send [19:17:37]OFD Sender: No OFD packet to send [19:17:42]OFD Sender: No OFD packet to send [19:17:47]OFD Sender: No OFD packet to send [19:17:52]OFD Sender: No OFD packet to send [19:17:57]OFD Sender: No OFD packet to send [19:18:02]OFD Sender: No OFD packet to send [19:18:07]OFD Sender: No OFD packet to send [19:18:12]OFD Sender: No OFD packet to send [19:18:17]OFD Sender: No OFD packet to send [19:18:22]OFD Sender: No OFD packet to send [19:18:27]OFD Sender: No OFD packet to send [19:18:32]OFD Sender: No OFD packet to send [19:18:37]OFD Sender: No OFD packet to send [19:18:42]OFD Sender: No OFD packet to send [19:18:47]OFD Sender: No OFD packet to send [19:18:52]OFD Sender: No OFD packet to send [19:18:57]OFD Sender: No OFD packet to send [19:19:02]OFD Sender: No OFD packet to send [19:19:07]OFD Sender: No OFD packet to send [19:19:12]OFD Sender: No OFD packet to send [19:19:17]OFD Sender: No OFD packet to send [19:19:22]OFD Sender: No OFD packet to send [19:19:27]OFD Sender: No OFD packet to send [19:19:32]OFD Sender: No OFD packet to send [19:19:37]OFD Sender: No OFD packet to send [19:19:42]OFD Sender: No OFD packet to send [19:19:47]OFD Sender: No OFD packet to send [19:19:52]OFD Sender: No OFD packet to send [19:19:57]OFD Sender: No OFD packet to send [19:20:02]OFD Sender: No OFD packet to send [19:20:07]OFD Sender: No OFD packet to send [19:20:12]OFD Sender: No OFD packet to send [19:20:17]OFD Sender: No OFD packet to send [19:20:22]OFD Sender: No OFD packet to send [19:20:27]OFD Sender: No OFD packet to send [19:20:32]OFD Sender: No OFD packet to send [19:20:37]OFD Sender: No OFD packet to send [19:20:42]OFD Sender: No OFD packet to send [19:20:47]OFD Sender: No OFD packet to send [19:20:52]OFD Sender: No OFD packet to send [19:20:57]OFD Sender: No OFD packet to send [19:21:02]OFD Sender: No OFD packet to send [19:21:07]OFD Sender: No OFD packet to send [19:21:12]OFD Sender: No OFD packet to send [19:21:17]OFD Sender: No OFD packet to send [19:21:22]OFD Sender: No OFD packet to send [19:21:27]OFD Sender: No OFD packet to send [19:21:32]OFD Sender: No OFD packet to send [19:21:37]OFD Sender: No OFD packet to send [19:21:42]OFD Sender: No OFD packet to send [19:21:47]OFD Sender: No OFD packet to send [19:21:52]OFD Sender: No OFD packet to send [19:21:57]OFD Sender: No OFD packet to send [19:22:02]OFD Sender: No OFD packet to send [19:22:07]OFD Sender: No OFD packet to send [19:22:12]OFD Sender: No OFD packet to send [19:22:17]OFD Sender: No OFD packet to send [19:22:22]OFD Sender: No OFD packet to send [19:22:27]OFD Sender: No OFD packet to send [19:22:32]OFD Sender: No OFD packet to send [19:22:37]OFD Sender: No OFD packet to send [19:22:42]OFD Sender: No OFD packet to send [19:22:47]OFD Sender: No OFD packet to send [19:22:53]OFD Sender: No OFD packet to send [19:22:58]OFD Sender: No OFD packet to send [19:23:03]OFD Sender: No OFD packet to send [19:23:08]OFD Sender: No OFD packet to send [19:23:13]OFD Sender: No OFD packet to send [19:23:18]OFD Sender: No OFD packet to send [19:23:21]accept exits with 9 [19:23:21]New connection [19:23:21]New thread 3067252068 created [19:23:21]Thread 3067395428 joined [19:23:21]Waiting for new connection... [19:23:21] Sock 9.Parse request [19:23:21]Sock 9.Check first char [19:23:21]Sock 9.First char is OK [19:23:21]request: POST /json_proto HTTP/1.0 [19:23:21]Method: POST [19:23:21]URL: /json_proto [19:23:21]Method is POST - this is cgi request [19:23:21]url: /json_proto [19:23:21]query_string will be loaded in cgi processing [19:23:21]execute_cgi json_proto POST (null) [19:23:21]execute_cgi path=json_proto method=POST [19:23:21]POST find Content-Length [19:23:21]Host: 172.17.48.197:8080 [19:23:21]Content-Length: 1210 [19:23:21]Content-Type: application/json [19:23:21] [19:23:21]POST finish read [19:23:21]Found Content-Length = 1210 [19:23:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106286\u000A03.03.2024 19:19\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 16.160 x 61.90\u000A\u0418\u0422\u041E\u0413: 1000.30\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A01137\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:23:21]execute_script... [19:23:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106286\u000A03.03.2024 19:19\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 16.160 x 61.90\u000A\u0418\u0422\u041E\u0413: 1000.30\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A01137\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:23:21]POST & json_proto [19:23:21]process_json_proto [19:23:21]json parsed OK: [19:23:21]protocol is kg_v1.0 [19:23:21]action value=print_text [19:23:21]process_action print_text [19:23:21]cmd_print_text [19:23:21]ExternCall_PrintAddStr [19:23:21]wPrintStart [19:23:21]Write to MH i2c: 01 00 00 37 44 7B [19:23:21]Write i2c OK [19:23:21]MH_I2C_Read... [19:23:21]Read from MH i2c: 01 [19:23:21]MH_I2C_Read... [19:23:21]Read from MH i2c: 01 07 00 [19:23:21]MH_I2C_Read... [19:23:21]Read from MH i2c: 01 07 00 37 44 00 00 00 00 00 FF 0F 90 [19:23:21]RasterBufferAndPrint [19:23:21]line *****ТОВАРНЫЙ ЧЕК***** [19:23:21]line АЗС 25 [19:23:21]line Партнер нефть [19:23:21]line 02508201610067 [19:23:21]line Кассир : Турдумбек у. К. [19:23:21]line Счет N : (1)1106286 [19:23:21]line 03.03.2024 19:19 [19:23:21]line ПРОДАЖА [19:23:21]line ТРК (МРК, ГНК): 21 [19:23:21]line Вид ГСМ : 2710124130 [19:23:21]line Аи-92-К-5 [19:23:21]line 16.160 x 61.90 [19:23:21]line ИТОГ: 1000.30 [19:23:21]line Тип оплаты: Талоны: Топливная Карта [19:23:21]line 01137 [19:23:21]line ______________________ [19:23:21]line (подпись) [19:23:21]written 0, free lines is 4095 [19:23:21]Write to MH i2c: 01 00 00 4C 44 90 [19:23:21]Write i2c OK [19:23:21]MH_I2C_Read... [19:23:21]Read from MH i2c: 01 [19:23:21]MH_I2C_Read... [19:23:21]Read from MH i2c: 01 07 00 [19:23:21]MH_I2C_Read... [19:23:21]Read from MH i2c: 01 07 00 4C 44 00 00 00 00 00 F6 0D 9A [19:23:21]RasterBufferAndPrint [19:23:21]line [19:23:21]line [19:23:21]line [19:23:21]line [19:23:21]line [19:23:21]written 0, free lines is 3576 [19:23:21]MH_Cut [19:23:21]Write to MH i2c: D1 01 00 53 44 01 69 [19:23:21]Write i2c OK [19:23:21]MH_I2C_Read... [19:23:21]Read from MH i2c: D1 [19:23:21]MH_I2C_Read... [19:23:21]Read from MH i2c: D1 01 00 [19:23:21]MH_I2C_Read... [19:23:21]Read from MH i2c: D1 01 00 53 44 00 68 [19:23:21]Write to MH i2c: 01 00 00 54 44 98 [19:23:21]Write i2c OK [19:23:21]MH_I2C_Read... [19:23:21]*** Cut start [19:23:21]*** Purtial cut [19:23:21]*** Stage 1: CUTSNS_PIN = 1 [19:23:23]OFD Sender: No OFD packet to send [19:23:23]Read from MH i2c: 01 [19:23:23]MH_I2C_Read... [19:23:23]*** Stop cut motor [19:23:23]*** Cut end [19:23:23]Read from MH i2c: 01 07 00 [19:23:23]MH_I2C_Read... [19:23:23]Read from MH i2c: 01 07 00 54 44 00 00 00 00 00 FF 0F AD [19:23:23]process_action print_text done [19:23:23]requested_data is exist [19:23:23]produce_requested_data [19:23:23]requested_item fm.sn is exist - process it [19:23:23]wFMCommunicate request_size=4 [19:23:23]MH_SAM_APDU [19:23:23]CAPDU: 80 11 00 00 [19:23:23]Write to MH i2c: E2 08 00 55 44 80 11 00 00 00 00 00 00 13 [19:23:23]Write i2c OK [19:23:23]MH_I2C_Read... [19:23:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:23:23]Read from MH i2c: E2 [19:23:23]MH_I2C_Read... [19:23:23]Read from MH i2c: E2 17 00 [19:23:23]MH_I2C_Read... [19:23:23]Read from MH i2c: E2 17 00 55 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 71 [19:23:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [19:23:23]wFMCommunicate OK [19:23:23]requested_item fd.num is exist - process it [19:23:23]SAM_PROTO_GetFieldsCounters [19:23:23]wFMCommunicate request_size=4 [19:23:23]MH_SAM_APDU [19:23:23]CAPDU: 80 13 00 00 [19:23:23]Write to MH i2c: E2 08 00 56 44 80 13 00 00 00 00 00 00 16 [19:23:23]Write i2c OK [19:23:23]MH_I2C_Read... [19:23:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:23:24]Read from MH i2c: E2 [19:23:24]MH_I2C_Read... [19:23:24]Read from MH i2c: E2 62 00 [19:23:24]MH_I2C_Read... [19:23:24]Read from MH i2c: E2 62 00 56 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 C3 E1 01 00 0E 04 04 00 43 01 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 5E [19:23: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 C3 E1 01 00 0E 04 04 00 43 01 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 [19:23:24]wFMCommunicate OK [19:23:24]SAM_PROTO_GetFieldsCounters done [19:23:24]requested_item shift.num is exist - process it [19:23:24]requested_item shift.opened is exist - process it [19:23:24]req_shift_opened [19:23:24]FM_GetShiftState [19:23:24]SAM_PROTO_GetShiftState [19:23:24]wFMCommunicate request_size=4 [19:23:24]MH_SAM_APDU [19:23:24]CAPDU: 80 13 01 00 [19:23:24]Write to MH i2c: E2 08 00 57 44 80 13 01 00 00 00 00 00 18 [19:23:24]Write i2c OK [19:23:24]MH_I2C_Read... [19:23:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:23:24]Read from MH i2c: E2 [19:23:24]MH_I2C_Read... [19:23:24]Read from MH i2c: E2 0E 00 [19:23:24]MH_I2C_Read... [19:23:24]Read from MH i2c: E2 0E 00 57 44 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 DA [19:23:24]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [19:23:24]wFMCommunicate OK [19:23:24]SAM_PROTO_GetShiftState done [19:23:24]FM_GetShiftState done [19:23:24]req_shift_opened done [19:23:24]requested_item shift.open_date is exist - process it [19:23:24]req_shift_open_date [19:23:24]req_shift_open_date done [19:23:24]produce_requested_data done [19:23:24]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123331,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [19:23:24]process_action_free print_text [19:23:24]json_value_free [19:23:24]json_value_free done [19:23:24]process_json_proto returns [19:23:24]Send response to host [19:23:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123331,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [19:23:24]free response buf [19:23:24]execute_script done [19:23:24]execute_script returns [19:23:24]free content buf [19:23:24]Sock 9.Close socket [19:23:24]Sock 9.Thread stoped [19:23:28]OFD Sender: No OFD packet to send [19:23:33]OFD Sender: No OFD packet to send [19:23:38]OFD Sender: No OFD packet to send [19:23:43]OFD Sender: No OFD packet to send [19:23:43]accept exits with 7 [19:23:43]New connection [19:23:43]New thread 3067395428 created [19:23:43]Thread 3067252068 joined [19:23:43]Waiting for new connection... [19:23:43] Sock 7.Parse request [19:23:43]Sock 7.Check first char [19:23:43]Sock 7.First char is OK [19:23:43]request: POST /json_proto HTTP/1.0 [19:23:43]Method: POST [19:23:43]URL: /json_proto [19:23:43]Method is POST - this is cgi request [19:23:43]url: /json_proto [19:23:43]query_string will be loaded in cgi processing [19:23:43]execute_cgi json_proto POST (null) [19:23:43]execute_cgi path=json_proto method=POST [19:23:43]POST find Content-Length [19:23:43]Host: 172.17.48.197:8080 [19:23:43]Content-Length: 806 [19:23:43]Content-Type: application/json [19:23:43] [19:23:43]POST finish read [19:23:43]Found Content-Length = 806 [19:23:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106288", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:23:43]execute_script... [19: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 : (1)1106288", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:23:43]POST & json_proto [19:23:43]process_json_proto [19:23:43]json parsed OK: [19:23:43]protocol is kg_v1.0 [19:23:43]action value=close_receipt [19:23:43]process_action close_receipt [19:23:43]cmd_close_receipt [19:23:43]MH_GetDate [19:23:43]Write to MH i2c: F0 00 00 58 44 8B [19:23:43]Write i2c OK [19:23:43]MH_I2C_Read... [19:23:43]Read from MH i2c: F0 [19:23:43]MH_I2C_Read... [19:23:43]Read from MH i2c: F0 09 00 [19:23:43]MH_I2C_Read... [19:23:43]Read from MH i2c: F0 09 00 58 44 00 44 CE E4 65 6C AF E3 65 52 [19:23:43]GetLastDocTimeStamp 1709493439 [19:23:43]current date 1709493828 [19:23:43]FM_GetShiftState [19:23:43]SAM_PROTO_GetShiftState [19:23:43]wFMCommunicate request_size=4 [19:23:43]MH_SAM_APDU [19:23:43]CAPDU: 80 13 01 00 [19:23:43]Write to MH i2c: E2 08 00 59 44 80 13 01 00 00 00 00 00 1A [19:23:43]Write i2c OK [19:23:43]MH_I2C_Read... [19:23:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:23:43]Read from MH i2c: E2 [19:23:43]MH_I2C_Read... [19:23:43]Read from MH i2c: E2 0E 00 [19:23:43]MH_I2C_Read... [19:23:43]Read from MH i2c: E2 0E 00 59 44 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 DC [19:23:43]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [19:23:43]wFMCommunicate OK [19:23:43]SAM_PROTO_GetShiftState done [19:23:43]FM_GetShiftState done [19:23:43]opened in 1709425579 [19:23:43]opened+sec_in_day 1709511979 [19:23:43]quantity*price = 50015 [19:23:43]sum+1 = 50016 [19:23:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.15 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.15 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 189 03.03.2024 19:23 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874798 ФД: 123332 ФПД: 168149454003953 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T192348&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123332&fm=168149454003953&tin=02508201610067®Number=0000000000090573&sum=50015 [19:23:45]StoreToDocumentArchive [19:23:45]shift 323 fd 123332 [19:23:45]save to /storage/0323/doc_00123332 [19:23:45]save last doc name /storage/0323/doc_00123332 to /storage/kkm_last_doc_name [19:23:45]save OK [19:23:45]Clear old archive folders... [19:23:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:23:45]tlvbuf is 00E1B390 [19:23:45]SAM_PROTO_ClearQueue [19:23:45]wFMCommunicate request_size=4 [19:23:45]MH_SAM_APDU [19:23:45]CAPDU: 80 09 00 00 [19:23:45]Write to MH i2c: E2 08 00 66 44 80 09 00 00 00 00 00 00 1C [19:23:45]Write i2c OK [19:23:45]MH_I2C_Read... [19:23:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:23:45]Read from MH i2c: E2 [19:23:45]MH_I2C_Read... [19:23:45]Read from MH i2c: E2 03 00 [19:23:45]MH_I2C_Read... [19:23:45]Read from MH i2c: E2 03 00 66 44 00 90 00 1E [19:23:45]RAPDU: 90 00 [19:23:45]wFMCommunicate OK [19:23:45]SAM_PROTO_ClearQueue done [19:23:45]KKMCreateOFDPacket [19:23:45]OFDProtocolAddRootSTLVToBuf [19:23:45]FM_MakeSignedData [19:23:45]FM_MakeSignedData [19:23:45]SAM_PROTO_SignData [19:23:45]wFMCommunicate request_size=4 [19:23:45]MH_SAM_APDU [19:23:45]CAPDU: 80 0D 01 02 [19:23:45]Write to MH i2c: E2 08 00 67 44 80 0D 01 02 00 00 00 00 24 [19:23:45]Write i2c OK [19:23:45]MH_I2C_Read... [19:23:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:23:45]Read from MH i2c: E2 [19:23:45]MH_I2C_Read... [19:23:45]Read from MH i2c: E2 03 00 [19:23:45]MH_I2C_Read... [19:23:45]Read from MH i2c: E2 03 00 67 44 00 90 00 1F [19:23:45]RAPDU: 90 00 [19:23:45]wFMCommunicate OK [19:23:45]wFMCommunicate request_size=255 [19:23:45]MH_SAM_APDU [19:23: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 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 44 CE E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 C4 E1 01 00 35 04 06 00 98 [19:23:45]Write to MH i2c: E2 02 01 68 44 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 44 CE E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 C4 E1 01 00 35 04 06 00 98 00 00 BC [19:23:45]Write i2c OK [19:23:45]MH_I2C_Read... [19:23:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:23:45]Read from MH i2c: E2 [19:23:45]MH_I2C_Read... [19:23:45]Read from MH i2c: E2 03 00 [19:23:45]MH_I2C_Read... [19:23:45]Read from MH i2c: E2 03 00 68 44 00 90 00 20 [19:23:45]RAPDU: 90 00 [19:23:45]wFMCommunicate OK [19:23:45]wFMCommunicate request_size=10 [19:23:45]MH_SAM_APDU [19:23:45]CAPDU: 80 0D 02 02 05 EE 58 79 9E F1 [19:23:45]Write to MH i2c: E2 0D 00 69 44 80 0D 02 02 05 00 EE 58 79 9E F1 00 00 7F [19:23:45]Write i2c OK [19:23:45]MH_I2C_Read... [19:23:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:23:45]Read from MH i2c: E2 [19:23:45]MH_I2C_Read... [19:23:45]Read from MH i2c: E2 03 00 [19:23:45]MH_I2C_Read... [19:23:45]Read from MH i2c: E2 03 00 69 44 00 90 00 21 [19:23:45]RAPDU: 90 00 [19:23:45]wFMCommunicate OK [19:23:45]wFMCommunicate request_size=4 [19:23:45]MH_SAM_APDU [19:23:45]CAPDU: 80 0D 03 02 [19:23:45]Write to MH i2c: E2 08 00 6A 44 80 0D 03 02 00 00 00 00 29 [19:23:45]Write i2c OK [19:23:45]MH_I2C_Read... [19:23:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:23:45]Read from MH i2c: E2 [19:23:45]MH_I2C_Read... [19:23:45]Read from MH i2c: E2 0B 00 [19:23:45]MH_I2C_Read... [19:23:45]Read from MH i2c: E2 0B 00 6A 44 00 F2 14 7D 83 92 47 71 34 90 00 AE [19:23:45]RAPDU: F2 14 7D 83 92 47 71 34 90 00 [19:23:45]wFMCommunicate OK [19:23:45]SAM_PROTO_SignData done [19:23:45]FM_MakeSignedData done [19:23:45]CreateOFDProtocolMessage [19:23:45]wFMCommunicate request_size=4 [19:23:45]MH_SAM_APDU [19:23:45]CAPDU: 80 11 00 00 [19:23:45]Write to MH i2c: E2 08 00 6B 44 80 11 00 00 00 00 00 00 29 [19:23:45]Write i2c OK [19:23:45]MH_I2C_Read... [19:23:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:23:45]Read from MH i2c: E2 [19:23:45]MH_I2C_Read... [19:23:45]Read from MH i2c: E2 17 00 [19:23:45]MH_I2C_Read... [19:23:45]Read from MH i2c: E2 17 00 6B 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 87 [19:23:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [19:23:45]wFMCommunicate OK [19:23:45]CreateOFDProtocolMessage done [19:23:45]OFDSenderStorePacket 123332 [19:23:45]StoreOFDPacket docnum=123332 [19:23:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 D2 6E 07 01 03 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 44 CE E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 C4 E1 01 00 35 04 06 00 98 EE 58 79 9E F1 F2 14 7D 83 92 47 71 34 [19:23:45]CheckFolder [19:23:45]dirname=/storage/ofd_packets [19:23:45]CheckFolder done [19:23:45]ProducePacketName [19:23:45]name=ofd_packets/00123332 [19:23:45]NVStorageSaveData ofd_packets/00123332 [19:23:45]File name is /storage/ofd_packets/00123332 [19:23:45]Write 301 bytes [19:23:45]NVStorageSaveData done [19:23:45]OFDSenderStorePacket done [19:23:45]KKMCreateOFDPacket done [19:23:45]NVStorageSaveData kkm_last_timestamp [19:23:45]File name is /storage/kkm_last_timestamp [19:23:45]Write 4 bytes [19:23:45]NVStorageSaveData done [19:23:45]ExternCall_PrintAddStr [19:23:45]wPrintStart [19:23:45]Write to MH i2c: 01 00 00 6C 44 B0 [19:23:45]Write i2c OK [19:23:45]MH_I2C_Read... [19:23:45]Read from MH i2c: 01 [19:23:45]MH_I2C_Read... [19:23:45]Read from MH i2c: 01 07 00 [19:23:45]MH_I2C_Read... [19:23:45]Read from MH i2c: 01 07 00 6C 44 00 00 00 00 00 FF 0F C5 [19:23:45]RasterBufferAndPrint [19:23:45]line Счет N : (1)1106288 [19:23:45]line ИНН: 02508201610067 [19:23:45]line Контрольно-Кассовый Чек [19:23:45]line ПРОДАЖА [19:23:45]line ТРК (МРК, ГНК) : 52 [19:23:45]line Товар: 2710124130 [19:23:45]line Аи-92-К-5 [19:23:45]line 8.080 * 61.90 [19:23:45]line = 500.15 [19:23:45]line НДС 12% НСП 1% [19:23:45]line > о реализуемом товаре [19:23:45]line ИТОГО: 500.15 [19:23:45]line НСП 1% : 4.43 [19:23:45]line НДС 12% : 53.11 [19:23:45]line Наличными: 0.00 [19:23:45]line Безнал.: 500.15 [19:23:45]line Место: АЗС № 25 "Партнер Нефть" [19:23:45]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [19:23:45]line СНО: Общий режим [19:23:45]line Чек 189 03.03.2024 19:23 [19:23:45]line Смена: 323 ФФД: 1.0 [19:23:45]line ЗНМ: 0300000019 [19:23:45]line РНМ: 0000000000090573 [19:23:45]line Версия ККМ: 001 [19:23:45]line Платежная система: О! деньги [19:23:45]line ФМ: 0000000000874798 [19:23:45]line ФД: 123332 [19:23:45]line ФПД: 168149454003953 [19:23:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T192348&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123332&fm=168149454003953&tin=02508201610067®Number=0000000000090573&sum=50015 [19:23:45]OFD Sender: Processing packet 123332 [packets to send 112, broken 111] [19:23:45]ProducePacketName [19:23:45]name=ofd_packets/00123332 [19:23:45]OFD Sender: To server: pG, [19:23:45]CommunicateWithHost lk.salyk.kg:30040 [19:23:46]ConnectInit lk.salyk.kg [19:23:46]written 0, free lines is 4095 [19:23:46]Connected sock=10 [19:23:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 D2 6E 07 01 03 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 44 CE E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 C4 E1 01 00 35 04 06 00 98 EE 58 79 9E F1 F2 14 7D 83 92 47 71 34 [19:23:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 02 5C 47 00 F0 C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 C4 E1 01 00 F4 03 04 00 6F 7A E4 65 B6 04 01 00 00 77 91 66 11 2A FA C7 A4 [19:23:46]CommunicateWithHost err = 0 [19:23:46]CheckOFDResponse [19:23:46]1017 (14) - 77093643461234 [19:23:46]1041 (16) - 0000000000874798 [19:23:46]1040 (4) - 123332 [19:23:46]1012 (4) - 03.03.2024 13:26 [19:23:46]1206 (1) - 0 [19:23:46]OFD Sender: Remove packet 123332 [19:23:46]ProducePacketName [19:23:46]name=ofd_packets/00123332 [19:23:46]NVStorageDeleteData [19:23:46]Write to MH i2c: 01 00 00 96 44 DA [19:23:46]Write i2c OK [19:23:46]MH_I2C_Read... [19:23:46]Read from MH i2c: 01 [19:23:46]MH_I2C_Read... [19:23:46]Read from MH i2c: 01 07 00 [19:23:46]MH_I2C_Read... [19:23:46]Read from MH i2c: 01 07 00 96 44 00 00 00 00 00 FF 0C EC [19:23:46]RasterBufferAndPrint [19:23:46]line [19:23:46]line [19:23:46]line [19:23:46]line [19:23:46]line [19:23:46]written 0, free lines is 3333 [19:23:46]MH_Cut [19:23:46]Write to MH i2c: D1 01 00 9D 44 01 B3 [19:23:46]Write i2c OK [19:23:46]MH_I2C_Read... [19:23:46]Read from MH i2c: D1 [19:23:46]MH_I2C_Read... [19:23:46]Read from MH i2c: D1 01 00 [19:23:46]MH_I2C_Read... [19:23:46]Read from MH i2c: D1 01 00 9D 44 00 B2 [19:23:46]Write to MH i2c: 01 00 00 9E 44 E2 [19:23:46]Write i2c OK [19:23:46]MH_I2C_Read... [19:23:46]OFD Sender: No OFD packet to send [19:23:47]*** Cut start [19:23:47]*** Purtial cut [19:23:47]*** Stage 1: CUTSNS_PIN = 1 [19:23:49]Read from MH i2c: 01 [19:23:49]MH_I2C_Read... [19:23:49]*** Stop cut motor [19:23:49]*** Cut end [19:23:49]Read from MH i2c: 01 07 00 [19:23:49]MH_I2C_Read... [19:23:49]Read from MH i2c: 01 07 00 9E 44 00 00 00 00 00 FF 0F F7 [19:23:49]process_action close_receipt done [19:23:49]requested_data is exist [19:23:49]produce_requested_data [19:23:49]requested_item fm.sn is exist - process it [19:23:49]wFMCommunicate request_size=4 [19:23:49]MH_SAM_APDU [19:23:49]CAPDU: 80 11 00 00 [19:23:49]Write to MH i2c: E2 08 00 9F 44 80 11 00 00 00 00 00 00 5D [19:23:49]Write i2c OK [19:23:49]MH_I2C_Read... [19:23:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:23:49]Read from MH i2c: E2 [19:23:49]MH_I2C_Read... [19:23:49]Read from MH i2c: E2 17 00 [19:23:49]MH_I2C_Read... [19:23:49]Read from MH i2c: E2 17 00 9F 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 BB [19:23:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [19:23:49]wFMCommunicate OK [19:23:49]requested_item fd.num is exist - process it [19:23:49]SAM_PROTO_GetFieldsCounters [19:23:49]wFMCommunicate request_size=4 [19:23:49]MH_SAM_APDU [19:23:49]CAPDU: 80 13 00 00 [19:23:49]Write to MH i2c: E2 08 00 A0 44 80 13 00 00 00 00 00 00 60 [19:23:49]Write i2c OK [19:23:49]MH_I2C_Read... [19:23:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:23:49]Read from MH i2c: E2 [19:23:49]MH_I2C_Read... [19:23:49]Read from MH i2c: E2 62 00 [19:23:49]MH_I2C_Read... [19:23:49]Read from MH i2c: E2 62 00 A0 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 C4 E1 01 00 0E 04 04 00 43 01 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 AC [19:23:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 C4 E1 01 00 0E 04 04 00 43 01 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 [19:23:49]wFMCommunicate OK [19:23:49]SAM_PROTO_GetFieldsCounters done [19:23:49]requested_item shift.num is exist - process it [19:23:49]requested_item shift.opened is exist - process it [19:23:49]req_shift_opened [19:23:49]FM_GetShiftState [19:23:49]SAM_PROTO_GetShiftState [19:23:49]wFMCommunicate request_size=4 [19:23:49]MH_SAM_APDU [19:23:49]CAPDU: 80 13 01 00 [19:23:49]Write to MH i2c: E2 08 00 A1 44 80 13 01 00 00 00 00 00 62 [19:23:49]Write i2c OK [19:23:49]MH_I2C_Read... [19:23:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:23:49]Read from MH i2c: E2 [19:23:49]MH_I2C_Read... [19:23:49]Read from MH i2c: E2 0E 00 [19:23:49]MH_I2C_Read... [19:23:49]Read from MH i2c: E2 0E 00 A1 44 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 24 [19:23:49]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [19:23:49]wFMCommunicate OK [19:23:49]SAM_PROTO_GetShiftState done [19:23:49]FM_GetShiftState done [19:23:49]req_shift_opened done [19:23:49]requested_item shift.open_date is exist - process it [19:23:49]req_shift_open_date [19:23:49]req_shift_open_date done [19:23:49]produce_requested_data done [19:23:49]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123332,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [19:23:49]process_action_free close_receipt [19:23:49]json_value_free [19:23:49]json_value_free done [19:23:49]process_json_proto returns [19:23:49]Send response to host [19:23:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123332,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [19:23:49]free response buf [19:23:49]execute_script done [19:23:49]execute_script returns [19:23:49]free content buf [19:23:49]Sock 7.Close socket [19:23:49]Sock 7.Thread stoped [19:23:51]OFD Sender: No OFD packet to send [19:23:56]OFD Sender: No OFD packet to send [19:24:01]OFD Sender: No OFD packet to send [19:24:02]accept exits with 9 [19:24:02]New connection [19:24:02]New thread 3067252068 created [19:24:02]Thread 3067395428 joined [19:24:02]Waiting for new connection... [19:24:02] Sock 9.Parse request [19:24:02]Sock 9.Check first char [19:24:02]Sock 9.First char is OK [19:24:02]request: POST /json_proto HTTP/1.0 [19:24:02]Method: POST [19:24:02]URL: /json_proto [19:24:02]Method is POST - this is cgi request [19:24:02]url: /json_proto [19:24:02]query_string will be loaded in cgi processing [19:24:02]execute_cgi json_proto POST (null) [19:24:02]execute_cgi path=json_proto method=POST [19:24:02]POST find Content-Length [19:24:02]Host: 172.17.48.197:8080 [19:24:02]Content-Length: 817 [19:24:02]Content-Type: application/json [19:24:02] [19:24:02]POST finish read [19:24:02]Found Content-Length = 817 [19:24:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106287", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:24:02]execute_script... [19:24: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)1106287", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:24:02]POST & json_proto [19:24:02]process_json_proto [19:24:02]json parsed OK: [19:24:02]protocol is kg_v1.0 [19:24:02]action value=close_receipt [19:24:02]process_action close_receipt [19:24:02]cmd_close_receipt [19:24:02]MH_GetDate [19:24:02]Write to MH i2c: F0 00 00 A2 44 D5 [19:24:02]Write i2c OK [19:24:02]MH_I2C_Read... [19:24:02]Read from MH i2c: F0 [19:24:02]MH_I2C_Read... [19:24:02]Read from MH i2c: F0 09 00 [19:24:02]MH_I2C_Read... [19:24:02]Read from MH i2c: F0 09 00 A2 44 00 57 CE E4 65 6C AF E3 65 AF [19:24:02]GetLastDocTimeStamp 1709493828 [19:24:02]current date 1709493847 [19:24:02]FM_GetShiftState [19:24:02]SAM_PROTO_GetShiftState [19:24:02]wFMCommunicate request_size=4 [19:24:02]MH_SAM_APDU [19:24:02]CAPDU: 80 13 01 00 [19:24:02]Write to MH i2c: E2 08 00 A3 44 80 13 01 00 00 00 00 00 64 [19:24:02]Write i2c OK [19:24:02]MH_I2C_Read... [19:24:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:24:02]Read from MH i2c: E2 [19:24:02]MH_I2C_Read... [19:24:02]Read from MH i2c: E2 0E 00 [19:24:02]MH_I2C_Read... [19:24:02]Read from MH i2c: E2 0E 00 A3 44 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 26 [19:24:02]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [19:24:02]wFMCommunicate OK [19:24:02]SAM_PROTO_GetShiftState done [19:24:02]FM_GetShiftState done [19:24:02]opened in 1709425579 [19:24:02]opened+sec_in_day 1709511979 [19:24:02]quantity*price = 50015 [19:24:02]sum+1 = 50016 [19:24:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.15 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.15 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 190 03.03.2024 19:24 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874798 ФД: 123333 ФПД: 105433714330586 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T192407&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123333&fm=105433714330586&tin=02508201610067®Number=0000000000090573&sum=50015 [19:24:03]StoreToDocumentArchive [19:24:03]shift 323 fd 123333 [19:24:03]save to /storage/0323/doc_00123333 [19:24:03]save last doc name /storage/0323/doc_00123333 to /storage/kkm_last_doc_name [19:24:03]save OK [19:24:03]Clear old archive folders... [19:24:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:24:03]tlvbuf is 00D9E720 [19:24:03]SAM_PROTO_ClearQueue [19:24:03]wFMCommunicate request_size=4 [19:24:03]MH_SAM_APDU [19:24:03]CAPDU: 80 09 00 00 [19:24:03]Write to MH i2c: E2 08 00 B0 44 80 09 00 00 00 00 00 00 66 [19:24:03]Write i2c OK [19:24:03]MH_I2C_Read... [19:24:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:24:03]Read from MH i2c: E2 [19:24:03]MH_I2C_Read... [19:24:03]Read from MH i2c: E2 03 00 [19:24:03]MH_I2C_Read... [19:24:03]Read from MH i2c: E2 03 00 B0 44 00 90 00 68 [19:24:03]RAPDU: 90 00 [19:24:03]wFMCommunicate OK [19:24:03]SAM_PROTO_ClearQueue done [19:24:03]KKMCreateOFDPacket [19:24:03]OFDProtocolAddRootSTLVToBuf [19:24:03]FM_MakeSignedData [19:24:03]FM_MakeSignedData [19:24:03]SAM_PROTO_SignData [19:24:03]wFMCommunicate request_size=4 [19:24:03]MH_SAM_APDU [19:24:03]CAPDU: 80 0D 01 02 [19:24:03]Write to MH i2c: E2 08 00 B1 44 80 0D 01 02 00 00 00 00 6E [19:24:03]Write i2c OK [19:24:03]MH_I2C_Read... [19:24:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:24:03]Read from MH i2c: E2 [19:24:03]MH_I2C_Read... [19:24:03]Read from MH i2c: E2 03 00 [19:24:03]MH_I2C_Read... [19:24:03]Read from MH i2c: E2 03 00 B1 44 00 90 00 69 [19:24:03]RAPDU: 90 00 [19:24:03]wFMCommunicate OK [19:24:03]wFMCommunicate request_size=255 [19:24:03]MH_SAM_APDU [19:24: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 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 57 CE E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 C5 E1 01 00 35 04 06 00 5F [19:24:03]Write to MH i2c: E2 02 01 B2 44 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 57 CE E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 C5 E1 01 00 35 04 06 00 5F 00 00 E2 [19:24:03]Write i2c OK [19:24:03]MH_I2C_Read... [19:24:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:24:03]Read from MH i2c: E2 [19:24:03]MH_I2C_Read... [19:24:03]Read from MH i2c: E2 03 00 [19:24:03]MH_I2C_Read... [19:24:03]Read from MH i2c: E2 03 00 B2 44 00 90 00 6A [19:24:03]RAPDU: 90 00 [19:24:03]wFMCommunicate OK [19:24:03]wFMCommunicate request_size=10 [19:24:03]MH_SAM_APDU [19:24:03]CAPDU: 80 0D 02 02 05 E4 33 17 0B DA [19:24:03]Write to MH i2c: E2 0D 00 B3 44 80 0D 02 02 05 00 E4 33 17 0B DA 00 00 8E [19:24:03]Write i2c OK [19:24:03]MH_I2C_Read... [19:24:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:24:04]Read from MH i2c: E2 [19:24:04]MH_I2C_Read... [19:24:04]Read from MH i2c: E2 03 00 [19:24:04]MH_I2C_Read... [19:24:04]Read from MH i2c: E2 03 00 B3 44 00 90 00 6B [19:24:04]RAPDU: 90 00 [19:24:04]wFMCommunicate OK [19:24:04]wFMCommunicate request_size=4 [19:24:04]MH_SAM_APDU [19:24:04]CAPDU: 80 0D 03 02 [19:24:04]Write to MH i2c: E2 08 00 B4 44 80 0D 03 02 00 00 00 00 73 [19:24:04]Write i2c OK [19:24:04]MH_I2C_Read... [19:24:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:24:04]Read from MH i2c: E2 [19:24:04]MH_I2C_Read... [19:24:04]Read from MH i2c: E2 0B 00 [19:24:04]MH_I2C_Read... [19:24:04]Read from MH i2c: E2 0B 00 B4 44 00 68 FE EB 5B 9B 21 A4 34 90 00 B4 [19:24:04]RAPDU: 68 FE EB 5B 9B 21 A4 34 90 00 [19:24:04]wFMCommunicate OK [19:24:04]SAM_PROTO_SignData done [19:24:04]FM_MakeSignedData done [19:24:04]CreateOFDProtocolMessage [19:24:04]wFMCommunicate request_size=4 [19:24:04]MH_SAM_APDU [19:24:04]CAPDU: 80 11 00 00 [19:24:04]Write to MH i2c: E2 08 00 B5 44 80 11 00 00 00 00 00 00 73 [19:24:04]Write i2c OK [19:24:04]MH_I2C_Read... [19:24:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:24:04]Read from MH i2c: E2 [19:24:04]MH_I2C_Read... [19:24:04]Read from MH i2c: E2 17 00 [19:24:04]MH_I2C_Read... [19:24:04]Read from MH i2c: E2 17 00 B5 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 D1 [19:24:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [19:24:04]wFMCommunicate OK [19:24:04]CreateOFDProtocolMessage done [19:24:04]OFDSenderStorePacket 123333 [19:24:04]StoreOFDPacket docnum=123333 [19:24:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 E8 89 07 01 E1 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 57 CE E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 C5 E1 01 00 35 04 06 00 5F E4 33 17 0B DA 68 FE EB 5B 9B 21 A4 34 [19:24:04]CheckFolder [19:24:04]dirname=/storage/ofd_packets [19:24:04]CheckFolder done [19:24:04]ProducePacketName [19:24:04]name=ofd_packets/00123333 [19:24:04]NVStorageSaveData ofd_packets/00123333 [19:24:04]File name is /storage/ofd_packets/00123333 [19:24:04]Write 301 bytes [19:24:04]NVStorageSaveData done [19:24:04]OFDSenderStorePacket done [19:24:04]KKMCreateOFDPacket done [19:24:04]NVStorageSaveData kkm_last_timestamp [19:24:04]File name is /storage/kkm_last_timestamp [19:24:04]Write 4 bytes [19:24:04]NVStorageSaveData done [19:24:04]ExternCall_PrintAddStr [19:24:04]wPrintStart [19:24:04]Write to MH i2c: 01 00 00 B6 44 FA [19:24:04]Write i2c OK [19:24:04]MH_I2C_Read... [19:24:04]Read from MH i2c: 01 [19:24:04]MH_I2C_Read... [19:24:04]Read from MH i2c: 01 07 00 [19:24:04]MH_I2C_Read... [19:24:04]Read from MH i2c: 01 07 00 B6 44 00 00 00 00 00 FF 0F 0F [19:24:04]RasterBufferAndPrint [19:24:04]line Счет N : (1)1106287 [19:24:04]line ИНН: 02508201610067 [19:24:04]line Контрольно-Кассовый Чек [19:24:04]line ПРОДАЖА [19:24:04]line ТРК (МРК, ГНК) : 62 [19:24:04]line Товар: 2710124130 [19:24:04]line Аи-92-К-5 [19:24:04]line 8.080 * 61.90 [19:24:04]line = 500.15 [19:24:04]line НДС 12% НСП 1% [19:24:04]line > о реализуемом товаре [19:24:04]line ИТОГО: 500.15 [19:24:04]line НСП 1% : 4.43 [19:24:04]line НДС 12% : 53.11 [19:24:04]line Наличными: 0.00 [19:24:04]line Безнал.: 500.15 [19:24:04]line Место: АЗС № 25 "Партнер Нефть" [19:24:04]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [19:24:04]line СНО: Общий режим [19:24:04]line Чек 190 03.03.2024 19:24 [19:24:04]line Смена: 323 ФФД: 1.0 [19:24:04]line ЗНМ: 0300000019 [19:24:04]line РНМ: 0000000000090573 [19:24:04]line Версия ККМ: 001 [19:24:04]line Платежная система: Бакай Банк [19:24:04]line ФМ: 0000000000874798 [19:24:04]line ФД: 123333 [19:24:04]line ФПД: 105433714330586 [19:24:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T192407&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123333&fm=105433714330586&tin=02508201610067®Number=0000000000090573&sum=50015 [19:24:04]OFD Sender: Processing packet 123333 [packets to send 112, broken 111] [19:24:04]ProducePacketName [19:24:04]name=ofd_packets/00123333 [19:24:04]OFD Sender: To server: pG, [19:24:04]CommunicateWithHost lk.salyk.kg:30040 [19:24:04]ConnectInit lk.salyk.kg [19:24:04]written 0, free lines is 4095 [19:24:04]Connected sock=10 [19:24: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 37 39 38 0F 01 00 00 E8 89 07 01 E1 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 57 CE E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 C5 E1 01 00 35 04 06 00 5F E4 33 17 0B DA 68 FE EB 5B 9B 21 A4 34 [19:24:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 42 9B 47 00 CC 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 37 39 38 10 04 04 00 C5 E1 01 00 F4 03 04 00 82 7A E4 65 B6 04 01 00 00 81 EC 57 F5 E3 C7 C1 19 [19:24:04]CommunicateWithHost err = 0 [19:24:04]CheckOFDResponse [19:24:04]1017 (14) - 77093643461234 [19:24:04]1041 (16) - 0000000000874798 [19:24:04]1040 (4) - 123333 [19:24:04]1012 (4) - 03.03.2024 13:26 [19:24:04]1206 (1) - 0 [19:24:04]OFD Sender: Remove packet 123333 [19:24:04]ProducePacketName [19:24:04]name=ofd_packets/00123333 [19:24:04]NVStorageDeleteData [19:24:04]Write to MH i2c: 01 00 00 E0 44 24 [19:24:04]Write i2c OK [19:24:04]MH_I2C_Read... [19:24:04]Read from MH i2c: 01 [19:24:04]MH_I2C_Read... [19:24:04]Read from MH i2c: 01 07 00 [19:24:04]MH_I2C_Read... [19:24:04]Read from MH i2c: 01 07 00 E0 44 00 00 00 00 00 0F 0D 47 [19:24:04]RasterBufferAndPrint [19:24:04]line [19:24:04]line [19:24:04]line [19:24:04]line [19:24:04]line [19:24:04]written 0, free lines is 3353 [19:24:04]MH_Cut [19:24:04]Write to MH i2c: D1 01 00 E7 44 01 FD [19:24:04]Write i2c OK [19:24:04]MH_I2C_Read... [19:24:04]Read from MH i2c: D1 [19:24:04]MH_I2C_Read... [19:24:04]Read from MH i2c: D1 01 00 [19:24:04]MH_I2C_Read... [19:24:04]Read from MH i2c: D1 01 00 E7 44 00 FC [19:24:04]Write to MH i2c: 01 00 00 E8 44 2C [19:24:04]Write i2c OK [19:24:04]MH_I2C_Read... [19:24:05]OFD Sender: No OFD packet to send [19:24:05]*** Cut start [19:24:05]*** Purtial cut [19:24:05]*** Stage 1: CUTSNS_PIN = 1 [19:24:07]Read from MH i2c: 01 [19:24:07]MH_I2C_Read... [19:24:07]*** Stop cut motor [19:24:07]*** Cut end [19:24:07]Read from MH i2c: 01 07 00 [19:24:07]MH_I2C_Read... [19:24:07]Read from MH i2c: 01 07 00 E8 44 00 00 00 00 00 FF 0F 41 [19:24:07]process_action close_receipt done [19:24:07]requested_data is exist [19:24:07]produce_requested_data [19:24:07]requested_item fm.sn is exist - process it [19:24:07]wFMCommunicate request_size=4 [19:24:07]MH_SAM_APDU [19:24:07]CAPDU: 80 11 00 00 [19:24:07]Write to MH i2c: E2 08 00 E9 44 80 11 00 00 00 00 00 00 A7 [19:24:07]Write i2c OK [19:24:07]MH_I2C_Read... [19:24:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:24:07]Read from MH i2c: E2 [19:24:07]MH_I2C_Read... [19:24:07]Read from MH i2c: E2 17 00 [19:24:07]MH_I2C_Read... [19:24:07]Read from MH i2c: E2 17 00 E9 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 05 [19:24:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [19:24:07]wFMCommunicate OK [19:24:07]requested_item fd.num is exist - process it [19:24:07]SAM_PROTO_GetFieldsCounters [19:24:07]wFMCommunicate request_size=4 [19:24:07]MH_SAM_APDU [19:24:07]CAPDU: 80 13 00 00 [19:24:07]Write to MH i2c: E2 08 00 EA 44 80 13 00 00 00 00 00 00 AA [19:24:07]Write i2c OK [19:24:07]MH_I2C_Read... [19:24:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:24:07]Read from MH i2c: E2 [19:24:07]MH_I2C_Read... [19:24:07]Read from MH i2c: E2 62 00 [19:24:07]MH_I2C_Read... [19:24:07]Read from MH i2c: E2 62 00 EA 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 C5 E1 01 00 0E 04 04 00 43 01 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 FA [19:24: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 C5 E1 01 00 0E 04 04 00 43 01 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 [19:24:07]wFMCommunicate OK [19:24:07]SAM_PROTO_GetFieldsCounters done [19:24:07]requested_item shift.num is exist - process it [19:24:07]requested_item shift.opened is exist - process it [19:24:07]req_shift_opened [19:24:07]FM_GetShiftState [19:24:07]SAM_PROTO_GetShiftState [19:24:07]wFMCommunicate request_size=4 [19:24:07]MH_SAM_APDU [19:24:07]CAPDU: 80 13 01 00 [19:24:07]Write to MH i2c: E2 08 00 EB 44 80 13 01 00 00 00 00 00 AC [19:24:07]Write i2c OK [19:24:07]MH_I2C_Read... [19:24:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:24:07]Read from MH i2c: E2 [19:24:07]MH_I2C_Read... [19:24:07]Read from MH i2c: E2 0E 00 [19:24:07]MH_I2C_Read... [19:24:07]Read from MH i2c: E2 0E 00 EB 44 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 6E [19:24:07]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [19:24:07]wFMCommunicate OK [19:24:07]SAM_PROTO_GetShiftState done [19:24:07]FM_GetShiftState done [19:24:07]req_shift_opened done [19:24:07]requested_item shift.open_date is exist - process it [19:24:07]req_shift_open_date [19:24:07]req_shift_open_date done [19:24:07]produce_requested_data done [19:24:07]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123333,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [19:24:07]process_action_free close_receipt [19:24:07]json_value_free [19:24:07]json_value_free done [19:24:07]process_json_proto returns [19:24:07]Send response to host [19:24:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123333,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [19:24:07]free response buf [19:24:07]execute_script done [19:24:07]execute_script returns [19:24:07]free content buf [19:24:07]Sock 9.Close socket [19:24:07]Sock 9.Thread stoped [19:24:10]OFD Sender: No OFD packet to send [19:24:15]OFD Sender: No OFD packet to send [19:24:20]OFD Sender: No OFD packet to send [19:24:25]OFD Sender: No OFD packet to send [19:24:30]OFD Sender: No OFD packet to send [19:24:35]OFD Sender: No OFD packet to send [19:24:40]OFD Sender: No OFD packet to send [19:24:45]OFD Sender: No OFD packet to send [19:24:50]OFD Sender: No OFD packet to send [19:24:55]OFD Sender: No OFD packet to send [19:25:00]OFD Sender: No OFD packet to send [19:25:05]OFD Sender: No OFD packet to send [19:25:10]OFD Sender: No OFD packet to send [19:25:15]OFD Sender: No OFD packet to send [19:25:20]OFD Sender: No OFD packet to send [19:25:25]OFD Sender: No OFD packet to send [19:25:30]OFD Sender: No OFD packet to send [19:25:35]OFD Sender: No OFD packet to send [19:25:40]OFD Sender: No OFD packet to send [19:25:45]OFD Sender: No OFD packet to send [19:25:50]OFD Sender: No OFD packet to send [19:25:55]OFD Sender: No OFD packet to send [19:26:00]OFD Sender: No OFD packet to send [19:26:05]OFD Sender: No OFD packet to send [19:26:10]OFD Sender: No OFD packet to send [19:26:15]OFD Sender: No OFD packet to send [19:26:20]OFD Sender: No OFD packet to send [19:26:25]OFD Sender: No OFD packet to send [19:26:30]OFD Sender: No OFD packet to send [19:26:35]OFD Sender: No OFD packet to send [19:26:40]OFD Sender: No OFD packet to send [19:26:45]OFD Sender: No OFD packet to send [19:26:50]OFD Sender: No OFD packet to send [19:26:55]OFD Sender: No OFD packet to send [19:27:00]OFD Sender: No OFD packet to send [19:27:05]OFD Sender: No OFD packet to send [19:27:10]OFD Sender: No OFD packet to send [19:27:15]OFD Sender: No OFD packet to send [19:27:20]OFD Sender: No OFD packet to send [19:27:25]OFD Sender: No OFD packet to send [19:27:30]OFD Sender: No OFD packet to send [19:27:35]OFD Sender: No OFD packet to send [19:27:40]OFD Sender: No OFD packet to send [19:27:45]OFD Sender: No OFD packet to send [19:27:50]OFD Sender: No OFD packet to send [19:27:55]OFD Sender: No OFD packet to send [19:28:00]OFD Sender: No OFD packet to send [19:28:05]OFD Sender: No OFD packet to send [19:28:10]OFD Sender: No OFD packet to send [19:28:15]OFD Sender: No OFD packet to send [19:28:20]OFD Sender: No OFD packet to send [19:28:25]OFD Sender: No OFD packet to send [19:28:30]OFD Sender: No OFD packet to send [19:28:35]OFD Sender: No OFD packet to send [19:28:40]OFD Sender: No OFD packet to send [19:28:45]OFD Sender: No OFD packet to send [19:28:50]OFD Sender: No OFD packet to send [19:28:55]OFD Sender: No OFD packet to send [19:29:00]OFD Sender: No OFD packet to send [19:29:05]OFD Sender: No OFD packet to send [19:29:10]OFD Sender: No OFD packet to send [19:29:15]OFD Sender: No OFD packet to send [19:29:20]OFD Sender: No OFD packet to send [19:29:25]OFD Sender: No OFD packet to send [19:29:30]OFD Sender: No OFD packet to send [19:29:35]OFD Sender: No OFD packet to send [19:29:40]OFD Sender: No OFD packet to send [19:29:45]OFD Sender: No OFD packet to send [19:29:50]OFD Sender: No OFD packet to send [19:29:55]OFD Sender: No OFD packet to send [19:30:00]OFD Sender: No OFD packet to send [19:30:05]OFD Sender: No OFD packet to send [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:30]OFD Sender: No OFD packet to send [19:30:35]OFD Sender: No OFD packet to send [19:30:40]OFD Sender: No OFD packet to send [19:30:45]OFD Sender: No OFD packet to send [19:30:50]OFD Sender: No OFD packet to send [19:30:55]OFD Sender: No OFD packet to send [19:31:00]OFD Sender: No OFD packet to send [19:31:05]OFD Sender: No OFD packet to send [19:31:10]OFD Sender: No OFD packet to send [19:31:15]OFD Sender: No OFD packet to send [19:31:20]OFD Sender: No OFD packet to send [19:31:25]OFD Sender: No OFD packet to send [19:31:30]OFD Sender: No OFD packet to send [19:31:35]OFD Sender: No OFD packet to send [19:31:40]OFD Sender: No OFD packet to send [19:31:45]OFD Sender: No OFD packet to send [19:31:47]accept exits with 7 [19:31:47]New connection [19:31:47]New thread 3067395428 created [19:31:47]Thread 3067252068 joined [19:31:47]Waiting for new connection... [19:31:47] Sock 7.Parse request [19:31:47]Sock 7.Check first char [19:31:47]Sock 7.First char is OK [19:31:47]request: POST /json_proto HTTP/1.0 [19:31:47]Method: POST [19:31:47]URL: /json_proto [19:31:47]Method is POST - this is cgi request [19:31:47]url: /json_proto [19:31:47]query_string will be loaded in cgi processing [19:31:47]execute_cgi json_proto POST (null) [19:31:47]execute_cgi path=json_proto method=POST [19:31:47]POST find Content-Length [19:31:47]Host: 172.17.48.197:8080 [19:31:47]Content-Length: 809 [19:31:47]Content-Type: application/json [19:31:47] [19:31:47]POST finish read [19:31:47]Found Content-Length = 809 [19:31:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106289", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:31:47]execute_script... [19:31: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)1106289", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:31:47]POST & json_proto [19:31:47]process_json_proto [19:31:47]json parsed OK: [19:31:47]protocol is kg_v1.0 [19:31:47]action value=close_receipt [19:31:47]process_action close_receipt [19:31:47]cmd_close_receipt [19:31:47]MH_GetDate [19:31:47]Write to MH i2c: F0 00 00 EC 44 1F [19:31:47]Write i2c OK [19:31:47]MH_I2C_Read... [19:31:47]Read from MH i2c: F0 [19:31:47]MH_I2C_Read... [19:31:47]Read from MH i2c: F0 09 00 [19:31:47]MH_I2C_Read... [19:31:47]Read from MH i2c: F0 09 00 EC 44 00 28 D0 E4 65 6C AF E3 65 CC [19:31:47]GetLastDocTimeStamp 1709493847 [19:31:47]current date 1709494312 [19:31:47]FM_GetShiftState [19:31:47]SAM_PROTO_GetShiftState [19:31:47]wFMCommunicate request_size=4 [19:31:47]MH_SAM_APDU [19:31:47]CAPDU: 80 13 01 00 [19:31:47]Write to MH i2c: E2 08 00 ED 44 80 13 01 00 00 00 00 00 AE [19:31:47]Write i2c OK [19:31:47]MH_I2C_Read... [19:31:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:31:47]Read from MH i2c: E2 [19:31:47]MH_I2C_Read... [19:31:47]Read from MH i2c: E2 0E 00 [19:31:47]MH_I2C_Read... [19:31:47]Read from MH i2c: E2 0E 00 ED 44 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 70 [19:31:47]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [19:31:47]wFMCommunicate OK [19:31:47]SAM_PROTO_GetShiftState done [19:31:47]FM_GetShiftState done [19:31:47]opened in 1709425579 [19:31:47]opened+sec_in_day 1709511979 [19:31:47]quantity*price = 100010 [19:31:47]sum+1 = 100012 [19:31:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.11 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.11 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 191 03.03.2024 19:31 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874798 ФД: 123334 ФПД: 158291798903992 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T193152&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123334&fm=158291798903992&tin=02508201610067®Number=0000000000090573&sum=100011 [19:31:48]StoreToDocumentArchive [19:31:48]shift 323 fd 123334 [19:31:48]save to /storage/0323/doc_00123334 [19:31:48]save last doc name /storage/0323/doc_00123334 to /storage/kkm_last_doc_name [19:31:48]save OK [19:31:48]Clear old archive folders... [19:31:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:31:48]tlvbuf is 00E3FA00 [19:31:48]SAM_PROTO_ClearQueue [19:31:48]wFMCommunicate request_size=4 [19:31:48]MH_SAM_APDU [19:31:48]CAPDU: 80 09 00 00 [19:31:48]Write to MH i2c: E2 08 00 FA 44 80 09 00 00 00 00 00 00 B0 [19:31:48]Write i2c OK [19:31:48]MH_I2C_Read... [19:31:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:31:49]Read from MH i2c: E2 [19:31:49]MH_I2C_Read... [19:31:49]Read from MH i2c: E2 03 00 [19:31:49]MH_I2C_Read... [19:31:49]Read from MH i2c: E2 03 00 FA 44 00 90 00 B2 [19:31:49]RAPDU: 90 00 [19:31:49]wFMCommunicate OK [19:31:49]SAM_PROTO_ClearQueue done [19:31:49]KKMCreateOFDPacket [19:31:49]OFDProtocolAddRootSTLVToBuf [19:31:49]FM_MakeSignedData [19:31:49]FM_MakeSignedData [19:31:49]SAM_PROTO_SignData [19:31:49]wFMCommunicate request_size=4 [19:31:49]MH_SAM_APDU [19:31:49]CAPDU: 80 0D 01 02 [19:31:49]Write to MH i2c: E2 08 00 FB 44 80 0D 01 02 00 00 00 00 B8 [19:31:49]Write i2c OK [19:31:49]MH_I2C_Read... [19:31:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:31:49]Read from MH i2c: E2 [19:31:49]MH_I2C_Read... [19:31:49]Read from MH i2c: E2 03 00 [19:31:49]MH_I2C_Read... [19:31:49]Read from MH i2c: E2 03 00 FB 44 00 90 00 B3 [19:31:49]RAPDU: 90 00 [19:31:49]wFMCommunicate OK [19:31:49]wFMCommunicate request_size=255 [19:31:49]MH_SAM_APDU [19:31:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 28 D0 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 C6 E1 01 00 35 04 06 00 8F [19:31:49]Write to MH i2c: E2 02 01 FC 44 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 28 D0 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 C6 E1 01 00 35 04 06 00 8F 00 00 AE [19:31:49]Write i2c OK [19:31:49]MH_I2C_Read... [19:31:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:31:49]Read from MH i2c: E2 [19:31:49]MH_I2C_Read... [19:31:49]Read from MH i2c: E2 03 00 [19:31:49]MH_I2C_Read... [19:31:49]Read from MH i2c: E2 03 00 FC 44 00 90 00 B4 [19:31:49]RAPDU: 90 00 [19:31:49]wFMCommunicate OK [19:31:49]wFMCommunicate request_size=10 [19:31:49]MH_SAM_APDU [19:31:49]CAPDU: 80 0D 02 02 05 F7 2E 71 CC B8 [19:31:49]Write to MH i2c: E2 0D 00 FD 44 80 0D 02 02 05 00 F7 2E 71 CC B8 00 00 DF [19:31:49]Write i2c OK [19:31:49]MH_I2C_Read... [19:31:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:31:49]Read from MH i2c: E2 [19:31:49]MH_I2C_Read... [19:31:49]Read from MH i2c: E2 03 00 [19:31:49]MH_I2C_Read... [19:31:49]Read from MH i2c: E2 03 00 FD 44 00 90 00 B5 [19:31:49]RAPDU: 90 00 [19:31:49]wFMCommunicate OK [19:31:49]wFMCommunicate request_size=4 [19:31:49]MH_SAM_APDU [19:31:49]CAPDU: 80 0D 03 02 [19:31:49]Write to MH i2c: E2 08 00 FE 44 80 0D 03 02 00 00 00 00 BD [19:31:49]Write i2c OK [19:31:49]MH_I2C_Read... [19:31:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:31:49]Read from MH i2c: E2 [19:31:49]MH_I2C_Read... [19:31:49]Read from MH i2c: E2 0B 00 [19:31:49]MH_I2C_Read... [19:31:49]Read from MH i2c: E2 0B 00 FE 44 00 28 B3 59 0C FB 26 DD 48 90 00 44 [19:31:49]RAPDU: 28 B3 59 0C FB 26 DD 48 90 00 [19:31:49]wFMCommunicate OK [19:31:49]SAM_PROTO_SignData done [19:31:49]FM_MakeSignedData done [19:31:49]CreateOFDProtocolMessage [19:31:49]wFMCommunicate request_size=4 [19:31:49]MH_SAM_APDU [19:31:49]CAPDU: 80 11 00 00 [19:31:49]Write to MH i2c: E2 08 00 FF 44 80 11 00 00 00 00 00 00 BD [19:31:49]Write i2c OK [19:31:49]MH_I2C_Read... [19:31:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:31:49]Read from MH i2c: E2 [19:31:49]MH_I2C_Read... [19:31:49]Read from MH i2c: E2 17 00 [19:31:49]MH_I2C_Read... [19:31:49]Read from MH i2c: E2 17 00 FF 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 1B [19:31:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [19:31:49]wFMCommunicate OK [19:31:49]CreateOFDProtocolMessage done [19:31:49]OFDSenderStorePacket 123334 [19:31:49]StoreOFDPacket docnum=123334 [19:31:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 2E C7 07 01 65 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 28 D0 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 C6 E1 01 00 35 04 06 00 8F F7 2E 71 CC B8 28 B3 59 0C FB 26 DD 48 [19:31:49]CheckFolder [19:31:49]dirname=/storage/ofd_packets [19:31:49]CheckFolder done [19:31:49]ProducePacketName [19:31:49]name=ofd_packets/00123334 [19:31:49]NVStorageSaveData ofd_packets/00123334 [19:31:49]File name is /storage/ofd_packets/00123334 [19:31:49]Write 301 bytes [19:31:49]NVStorageSaveData done [19:31:49]OFDSenderStorePacket done [19:31:49]KKMCreateOFDPacket done [19:31:49]NVStorageSaveData kkm_last_timestamp [19:31:49]File name is /storage/kkm_last_timestamp [19:31:49]Write 4 bytes [19:31:49]NVStorageSaveData done [19:31:49]ExternCall_PrintAddStr [19:31:49]wPrintStart [19:31:49]Write to MH i2c: 01 00 00 00 45 45 [19:31:49]Write i2c OK [19:31:49]MH_I2C_Read... [19:31:49]Read from MH i2c: 01 [19:31:49]MH_I2C_Read... [19:31:49]Read from MH i2c: 01 07 00 [19:31:49]MH_I2C_Read... [19:31:49]Read from MH i2c: 01 07 00 00 45 00 00 00 00 00 FF 0F 5A [19:31:49]RasterBufferAndPrint [19:31:49]line Счет N : (1)1106289 [19:31:49]line ИНН: 02508201610067 [19:31:49]line Контрольно-Кассовый Чек [19:31:49]line ПРОДАЖА [19:31:49]line ТРК (МРК, ГНК) : 23 [19:31:49]line Товар: 2710124500 [19:31:49]line Аи-95-К-5 [19:31:49]line 14.390 * 69.50 [19:31:49]line = 1000.11 [19:31:49]line НДС 12% НСП 1% [19:31:49]line > о реализуемом товаре [19:31:49]line ИТОГО: 1000.11 [19:31:49]line НСП 1% : 8.85 [19:31:49]line НДС 12% : 106.21 [19:31:49]line Наличными: 0.00 [19:31:49]line Безнал.: 1000.11 [19:31:49]line Место: АЗС № 25 "Партнер Нефть" [19:31:49]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [19:31:49]line СНО: Общий режим [19:31:49]line Чек 191 03.03.2024 19:31 [19:31:49]line Смена: 323 ФФД: 1.0 [19:31:49]line ЗНМ: 0300000019 [19:31:49]line РНМ: 0000000000090573 [19:31:49]line Версия ККМ: 001 [19:31:49]line Платежная система: О! деньги [19:31:49]line ФМ: 0000000000874798 [19:31:49]line ФД: 123334 [19:31:49]line ФПД: 158291798903992 [19:31:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T193152&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123334&fm=158291798903992&tin=02508201610067®Number=0000000000090573&sum=100011 [19:31:49]OFD Sender: Processing packet 123334 [packets to send 112, broken 111] [19:31:49]ProducePacketName [19:31:49]name=ofd_packets/00123334 [19:31:49]OFD Sender: To server: pG, [19:31:49]CommunicateWithHost lk.salyk.kg:30040 [19:31:49]ConnectInit lk.salyk.kg [19:31:49]written 0, free lines is 4095 [19:31:49]Connected sock=10 [19:31: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 37 39 38 0F 01 00 00 2E C7 07 01 65 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 28 D0 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 C6 E1 01 00 35 04 06 00 8F F7 2E 71 CC B8 28 B3 59 0C FB 26 DD 48 [19:31:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 90 61 47 00 CD B5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 C6 E1 01 00 F4 03 04 00 53 7C E4 65 B6 04 01 00 00 89 80 F6 FF A8 55 4C 46 [19:31:50]CommunicateWithHost err = 0 [19:31:50]CheckOFDResponse [19:31:50]1017 (14) - 77093643461234 [19:31:50]1041 (16) - 0000000000874798 [19:31:50]1040 (4) - 123334 [19:31:50]1012 (4) - 03.03.2024 13:34 [19:31:50]1206 (1) - 0 [19:31:50]OFD Sender: Remove packet 123334 [19:31:50]ProducePacketName [19:31:50]name=ofd_packets/00123334 [19:31:50]NVStorageDeleteData [19:31:50]Write to MH i2c: 01 00 00 2A 45 6F [19:31:50]Write i2c OK [19:31:50]MH_I2C_Read... [19:31:50]Read from MH i2c: 01 [19:31:50]MH_I2C_Read... [19:31:50]Read from MH i2c: 01 07 00 [19:31:50]MH_I2C_Read... [19:31:50]Read from MH i2c: 01 07 00 2A 45 00 00 00 00 00 0D 0D 90 [19:31:50]RasterBufferAndPrint [19:31:50]line [19:31:50]line [19:31:50]line [19:31:50]line [19:31:50]line [19:31:50]written 0, free lines is 3349 [19:31:50]MH_Cut [19:31:50]Write to MH i2c: D1 01 00 31 45 01 48 [19:31:50]Write i2c OK [19:31:50]MH_I2C_Read... [19:31:50]Read from MH i2c: D1 [19:31:50]MH_I2C_Read... [19:31:50]Read from MH i2c: D1 01 00 [19:31:50]MH_I2C_Read... [19:31:50]Read from MH i2c: D1 01 00 31 45 00 47 [19:31:50]Write to MH i2c: 01 00 00 32 45 77 [19:31:50]Write i2c OK [19:31:50]MH_I2C_Read... [19:31:50]OFD Sender: No OFD packet to send [19:31:50]*** Cut start [19:31:50]*** Purtial cut [19:31:50]*** Stage 1: CUTSNS_PIN = 1 [19:31:53]Read from MH i2c: 01 [19:31:53]MH_I2C_Read... [19:31:53]*** Stop cut motor [19:31:53]Read from MH i2c: 01 *** Cut end [19:31:53]07 00 [19:31:53]MH_I2C_Read... [19:31:53]Read from MH i2c: 01 07 00 32 45 00 00 00 00 00 FF 0F 8C [19:31:53]process_action close_receipt done [19:31:53]requested_data is exist [19:31:53]produce_requested_data [19:31:53]requested_item fm.sn is exist - process it [19:31:53]wFMCommunicate request_size=4 [19:31:53]MH_SAM_APDU [19:31:53]CAPDU: 80 11 00 00 [19:31:53]Write to MH i2c: E2 08 00 33 45 80 11 00 00 00 00 00 00 F2 [19:31:53]Write i2c OK [19:31:53]MH_I2C_Read... [19:31:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:31:53]Read from MH i2c: E2 [19:31:53]MH_I2C_Read... [19:31:53]Read from MH i2c: E2 17 00 [19:31:53]MH_I2C_Read... [19:31:53]Read from MH i2c: E2 17 00 33 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 50 [19:31:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [19:31:53]wFMCommunicate OK [19:31:53]requested_item fd.num is exist - process it [19:31:53]SAM_PROTO_GetFieldsCounters [19:31:53]wFMCommunicate request_size=4 [19:31:53]MH_SAM_APDU [19:31:53]CAPDU: 80 13 00 00 [19:31:53]Write to MH i2c: E2 08 00 34 45 80 13 00 00 00 00 00 00 F5 [19:31:53]Write i2c OK [19:31:53]MH_I2C_Read... [19:31:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:31:53]Read from MH i2c: E2 [19:31:53]MH_I2C_Read... [19:31:53]Read from MH i2c: E2 62 00 [19:31:53]MH_I2C_Read... [19:31:53]Read from MH i2c: E2 62 00 34 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 C6 E1 01 00 0E 04 04 00 43 01 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 49 [19:31: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 C6 E1 01 00 0E 04 04 00 43 01 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 [19:31:53]wFMCommunicate OK [19:31:53]SAM_PROTO_GetFieldsCounters done [19:31:53]requested_item shift.num is exist - process it [19:31:53]requested_item shift.opened is exist - process it [19:31:53]req_shift_opened [19:31:53]FM_GetShiftState [19:31:53]SAM_PROTO_GetShiftState [19:31:53]wFMCommunicate request_size=4 [19:31:53]MH_SAM_APDU [19:31:53]CAPDU: 80 13 01 00 [19:31:53]Write to MH i2c: E2 08 00 35 45 80 13 01 00 00 00 00 00 F7 [19:31:53]Write i2c OK [19:31:53]MH_I2C_Read... [19:31:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:31:53]Read from MH i2c: E2 [19:31:53]MH_I2C_Read... [19:31:53]Read from MH i2c: E2 0E 00 [19:31:53]MH_I2C_Read... [19:31:53]Read from MH i2c: E2 0E 00 35 45 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 B9 [19:31:53]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [19:31:53]wFMCommunicate OK [19:31:53]SAM_PROTO_GetShiftState done [19:31:53]FM_GetShiftState done [19:31:53]req_shift_opened done [19:31:53]requested_item shift.open_date is exist - process it [19:31:53]req_shift_open_date [19:31:53]req_shift_open_date done [19:31:53]produce_requested_data done [19:31:53]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123334,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [19:31:53]process_action_free close_receipt [19:31:53]json_value_free [19:31:53]json_value_free done [19:31:53]process_json_proto returns [19:31:53]Send response to host [19:31:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123334,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [19:31:53]free response buf [19:31:53]execute_script done [19:31:53]execute_script returns [19:31:53]free content buf [19:31:53]Sock 7.Close socket [19:31:53]Sock 7.Thread stoped [19:31:55]OFD Sender: No OFD packet to send [19:32:00]OFD Sender: No OFD packet to send [19:32:05]OFD Sender: No OFD packet to send [19:32:10]int [19:32:10]Write to MH i2c: 01 00 00 36 45 7B [19:32:10]*** FLAG_PRN_KEY set [19:32:10]Write i2c OK [19:32:10]MH_I2C_Read... [19:32:10]Read from MH i2c: 01 [19:32:10]MH_I2C_Read... [19:32:10]Read from MH i2c: 01 07 00 [19:32:10]MH_I2C_Read... [19:32:10]Read from MH i2c: 01 07 00 36 45 00 08 00 00 00 FF 0F 98 [19:32:10]state=0 [19:32:10]Key pressed [19:32:10]Feed [19:32:10]Write to MH i2c: D8 00 00 37 45 53 [19:32:10]Write i2c OK [19:32:10]MH_I2C_Read... [19:32:10]Read from MH i2c: D8 [19:32:10]MH_I2C_Read... [19:32:10]Read from MH i2c: D8 01 00 [19:32:10]MH_I2C_Read... [19:32:10]Read from MH i2c: D8 01 00 37 45 00 54 [19:32:10]int [19:32:10]Write to MH i2c: 01 00 00 38 45 7D [19:32:10]Write i2c OK [19:32:10]MH_I2C_Read... [19:32:10]Read from MH i2c: 01 [19:32:10]MH_I2C_Read... [19:32:10]Read from MH i2c: 01 07 00 [19:32:10]MH_I2C_Read... [19:32:10]Read from MH i2c: 01 07 00 38 45 00 48 00 00 00 3C 00 08 [19:32:10]state=2 [19:32:10]Key pressed [19:32:10]int [19:32:10]Write to MH i2c: 01 00 00 39 45 7E [19:32:10]*** FLAG_PRN_KEY reset [19:32:10]Write i2c OK [19:32:10]MH_I2C_Read... [19:32:10]Read from MH i2c: 01 [19:32:10]MH_I2C_Read... [19:32:10]Read from MH i2c: 01 07 00 [19:32:10]MH_I2C_Read... [19:32:10]Read from MH i2c: 01 07 00 39 45 00 00 00 00 00 F6 0F 8A [19:32:10]state=2 [19:32:10]Stop feed [19:32:10]OFD Sender: No OFD packet to send [19:32:10]int [19:32:10]Write to MH i2c: 01 00 00 3A 45 7F [19:32:10]*** FLAG_PRN_KEY set [19:32:10]Write i2c OK [19:32:10]MH_I2C_Read... [19:32:10]Read from MH i2c: 01 [19:32:10]MH_I2C_Read... [19:32:10]Read from MH i2c: 01 07 00 [19:32:10]MH_I2C_Read... [19:32:10]Read from MH i2c: 01 07 00 3A 45 00 08 00 00 00 FF 0F 9C [19:32:10]state=0 [19:32:10]Key pressed [19:32:10]Feed [19:32:10]Write to MH i2c: D8 00 00 3B 45 57 [19:32:10]Write i2c OK [19:32:10]MH_I2C_Read... [19:32:10]Read from MH i2c: D8 [19:32:10]MH_I2C_Read... [19:32:10]Read from MH i2c: D8 01 00 [19:32:10]MH_I2C_Read... [19:32:10]Read from MH i2c: D8 01 00 3B 45 00 58 [19:32:10]int [19:32:10]Write to MH i2c: 01 00 00 3C 45 81 [19:32:10]Write i2c OK [19:32:10]MH_I2C_Read... [19:32:10]Read from MH i2c: 01 [19:32:10]MH_I2C_Read... [19:32:10]Read from MH i2c: 01 07 00 [19:32:10]MH_I2C_Read... [19:32:10]Read from MH i2c: 01 07 00 3C 45 00 48 00 00 00 3C 00 0C [19:32:10]state=2 [19:32:10]Key pressed [19:32:10]int [19:32:10]Write to MH i2c: 01 00 00 3D 45 82 [19:32:10]*** FLAG_PRN_KEY reset [19:32:10]Write i2c OK [19:32:10]MH_I2C_Read... [19:32:10]Read from MH i2c: 01 [19:32:10]MH_I2C_Read... [19:32:10]Read from MH i2c: 01 07 00 [19:32:10]MH_I2C_Read... [19:32:10]Read from MH i2c: 01 07 00 3D 45 00 00 00 00 00 F5 0F 8D [19:32:10]state=2 [19:32:10]Stop feed [19:32:10]int [19:32:10]Write to MH i2c: 01 00 00 3E 45 83 [19:32:10]*** FLAG_PRN_KEY set [19:32:10]Write i2c OK [19:32:10]MH_I2C_Read... [19:32:10]Read from MH i2c: 01 [19:32:10]MH_I2C_Read... [19:32:10]Read from MH i2c: 01 07 00 [19:32:10]MH_I2C_Read... [19:32:10]Read from MH i2c: 01 07 00 3E 45 00 08 00 00 00 FF 0F A0 [19:32:10]state=0 [19:32:10]Key pressed [19:32:10]Feed [19:32:10]Write to MH i2c: D8 00 00 3F 45 5B [19:32:10]Write i2c OK [19:32:10]MH_I2C_Read... [19:32:10]Read from MH i2c: D8 [19:32:10]MH_I2C_Read... [19:32:10]Read from MH i2c: D8 01 00 [19:32:10]MH_I2C_Read... [19:32:10]Read from MH i2c: D8 01 00 3F 45 00 5C [19:32:10]int [19:32:10]Write to MH i2c: 01 00 00 40 45 85 [19:32:10]Write i2c OK [19:32:10]MH_I2C_Read... [19:32:10]Read from MH i2c: 01 [19:32:10]MH_I2C_Read... [19:32:10]Read from MH i2c: 01 07 00 [19:32:10]MH_I2C_Read... [19:32:10]Read from MH i2c: 01 07 00 40 45 00 48 00 00 00 3C 00 10 [19:32:10]state=2 [19:32:10]Key pressed [19:32:11]int [19:32:11]Write to MH i2c: 01 00 00 41 45 86 [19:32:11]*** FLAG_PRN_KEY reset [19:32:11]Write i2c OK [19:32:11]MH_I2C_Read... [19:32:11]Read from MH i2c: 01 [19:32:11]MH_I2C_Read... [19:32:11]Read from MH i2c: 01 07 00 [19:32:11]MH_I2C_Read... [19:32:11]Read from MH i2c: 01 07 00 41 45 00 00 00 00 00 F5 0F 91 [19:32:11]state=2 [19:32:11]Stop feed [19:32:11]int [19:32:11]Write to MH i2c: 01 00 00 42 45 87 [19:32:11]*** FLAG_PRN_KEY set [19:32:11]Write i2c OK [19:32:11]MH_I2C_Read... [19:32:11]Read from MH i2c: 01 [19:32:11]MH_I2C_Read... [19:32:11]Read from MH i2c: 01 07 00 [19:32:11]MH_I2C_Read... [19:32:11]Read from MH i2c: 01 07 00 42 45 00 08 00 00 00 FF 0F A4 [19:32:11]state=0 [19:32:11]Key pressed [19:32:11]Feed [19:32:11]Write to MH i2c: D8 00 00 43 45 5F [19:32:11]Write i2c OK [19:32:11]MH_I2C_Read... [19:32:11]Read from MH i2c: D8 [19:32:11]MH_I2C_Read... [19:32:11]Read from MH i2c: D8 01 00 [19:32:11]MH_I2C_Read... [19:32:11]Read from MH i2c: D8 01 00 43 45 00 60 [19:32:11]int [19:32:11]Write to MH i2c: 01 00 00 44 45 89 [19:32:11]Write i2c OK [19:32:11]MH_I2C_Read... [19:32:11]Read from MH i2c: 01 [19:32:11]MH_I2C_Read... [19:32:11]Read from MH i2c: 01 07 00 [19:32:11]MH_I2C_Read... [19:32:11]Read from MH i2c: 01 07 00 44 45 00 48 00 00 00 3C 00 14 [19:32:11]state=2 [19:32:11]Key pressed [19:32:11]int [19:32:11]Write to MH i2c: 01 00 00 45 45 8A [19:32:11]*** FLAG_PRN_KEY reset [19:32:11]Write i2c OK [19:32:11]MH_I2C_Read... [19:32:11]Read from MH i2c: 01 [19:32:11]MH_I2C_Read... [19:32:11]Read from MH i2c: 01 07 00 [19:32:11]MH_I2C_Read... [19:32:11]Read from MH i2c: 01 07 00 45 45 00 00 00 00 00 F5 0F 95 [19:32:11]state=2 [19:32:11]Stop feed [19:32:15]OFD Sender: No OFD packet to send [19:32:20]OFD Sender: No OFD packet to send [19:32:25]OFD Sender: No OFD packet to send [19:32:30]OFD Sender: No OFD packet to send [19:32:35]OFD Sender: No OFD packet to send [19:32:40]OFD Sender: No OFD packet to send [19:32:45]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:05]OFD Sender: No OFD packet to send [19:33:10]OFD Sender: No OFD packet to send [19:33:15]OFD Sender: No OFD packet to send [19:33:20]OFD Sender: No OFD packet to send [19:33:25]OFD Sender: No OFD packet to send [19:33:30]OFD Sender: No OFD packet to send [19:33:35]OFD Sender: No OFD packet to send [19:33:40]OFD Sender: No OFD packet to send [19:33:45]OFD Sender: No OFD packet to send [19:33:50]OFD Sender: No OFD packet to send [19:33:55]OFD Sender: No OFD packet to send [19:34:00]OFD Sender: No OFD packet to send [19:34:05]OFD Sender: No OFD packet to send [19:34:10]OFD Sender: No OFD packet to send [19:34:15]OFD Sender: No OFD packet to send [19:34:20]OFD Sender: No OFD packet to send [19:34:25]OFD Sender: No OFD packet to send [19:34:30]OFD Sender: No OFD packet to send [19:34:35]OFD Sender: No OFD packet to send [19:34:40]OFD Sender: No OFD packet to send [19:34:45]OFD Sender: No OFD packet to send [19:34:50]OFD Sender: No OFD packet to send [19:34:55]OFD Sender: No OFD packet to send [19:34:57]accept exits with 9 [19:34:57]New connection [19:34:57]New thread 3067252068 created [19:34:57]Thread 3067395428 joined [19:34:57]Waiting for new connection... [19:34:57] Sock 9.Parse request [19:34:57]Sock 9.Check first char [19:34:57]Sock 9.First char is OK [19:34:57]request: POST /json_proto HTTP/1.0 [19:34:57]Method: POST [19:34:57]URL: /json_proto [19:34:57]Method is POST - this is cgi request [19:34:57]url: /json_proto [19:34:57]query_string will be loaded in cgi processing [19:34:57]execute_cgi json_proto POST (null) [19:34:57]execute_cgi path=json_proto method=POST [19:34:57]POST find Content-Length [19:34:57]Host: 172.17.48.197:8080 [19:34:57]Content-Length: 1210 [19:34:57]Content-Type: application/json [19:34:57] [19:34:57]POST finish read [19:34:57]Found Content-Length = 1210 [19:34:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106290\u000A03.03.2024 19:31\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 52\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 24.240 x 61.90\u000A\u0418\u0422\u041E\u0413: 1500.46\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A01137\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:34:57]execute_script... [19:34:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106290\u000A03.03.2024 19:31\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 52\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 24.240 x 61.90\u000A\u0418\u0422\u041E\u0413: 1500.46\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A01137\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:34:57]POST & json_proto [19:34:57]process_json_proto [19:34:57]json parsed OK: [19:34:57]protocol is kg_v1.0 [19:34:57]action value=print_text [19:34:57]process_action print_text [19:34:57]cmd_print_text [19:34:57]ExternCall_PrintAddStr [19:34:57]wPrintStart [19:34:57]Write to MH i2c: 01 00 00 46 45 8B [19:34:57]Write i2c OK [19:34:57]MH_I2C_Read... [19:34:57]Read from MH i2c: 01 [19:34:57]MH_I2C_Read... [19:34:57]Read from MH i2c: 01 07 00 [19:34:57]MH_I2C_Read... [19:34:57]Read from MH i2c: 01 07 00 46 45 00 00 00 00 00 FF 0F A0 [19:34:57]RasterBufferAndPrint [19:34:57]line *****ТОВАРНЫЙ ЧЕК***** [19:34:57]line АЗС 25 [19:34:57]line Партнер нефть [19:34:57]line 02508201610067 [19:34:57]line Кассир : Турдумбек у. К. [19:34:57]line Счет N : (1)1106290 [19:34:57]line 03.03.2024 19:31 [19:34:57]line ПРОДАЖА [19:34:57]line ТРК (МРК, ГНК): 52 [19:34:57]line Вид ГСМ : 2710124130 [19:34:57]line Аи-92-К-5 [19:34:57]line 24.240 x 61.90 [19:34:57]line ИТОГ: 1500.46 [19:34:57]line Тип оплаты: Талоны: Топливная Карта [19:34:57]line 01137 [19:34:57]line ______________________ [19:34:57]line (подпись) [19:34:57]written 0, free lines is 4095 [19:34:57]Write to MH i2c: 01 00 00 5B 45 A0 [19:34:57]Write i2c OK [19:34:57]MH_I2C_Read... [19:34:57]Read from MH i2c: 01 [19:34:57]MH_I2C_Read... [19:34:57]Read from MH i2c: 01 07 00 [19:34:57]MH_I2C_Read... [19:34:57]Read from MH i2c: 01 07 00 5B 45 00 00 00 00 00 F8 0D AC [19:34:57]RasterBufferAndPrint [19:34:57]line [19:34:57]line [19:34:57]line [19:34:57]line [19:34:57]line [19:34:57]written 0, free lines is 3578 [19:34:57]MH_Cut [19:34:57]Write to MH i2c: D1 01 00 62 45 01 79 [19:34:57]Write i2c OK [19:34:57]MH_I2C_Read... [19:34:57]Read from MH i2c: D1 [19:34:57]MH_I2C_Read... [19:34:57]Read from MH i2c: D1 01 00 [19:34:57]MH_I2C_Read... [19:34:57]Read from MH i2c: D1 01 00 62 45 00 78 [19:34:57]Write to MH i2c: 01 00 00 63 45 A8 [19:34:57]Write i2c OK [19:34:57]MH_I2C_Read... [19:34:58]*** Cut start [19:34:58]*** Purtial cut [19:34:58]*** Stage 1: CUTSNS_PIN = 1 [19:35:00]Read from MH i2c: 01 [19:35:00]MH_I2C_Read... [19:35:00]*** Stop cut motor [19:35:00]*** Cut end [19:35:00]Read from MH i2c: 01 07 00 [19:35:00]MH_I2C_Read... [19:35:00]Read from MH i2c: 01 07 00 63 45 00 00 00 00 00 FF 0F BD [19:35:00]process_action print_text done [19:35:00]requested_data is exist [19:35:00]produce_requested_data [19:35:00]requested_item fm.sn is exist - process it [19:35:00]wFMCommunicate request_size=4 [19:35:00]MH_SAM_APDU [19:35:00]CAPDU: 80 11 00 00 [19:35:00]Write to MH i2c: E2 08 00 64 45 80 11 00 00 00 00 00 00 23 [19:35:00]Write i2c OK [19:35:00]MH_I2C_Read... [19:35:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:35:00]Read from MH i2c: E2 [19:35:00]MH_I2C_Read... [19:35:00]Read from MH i2c: E2 17 00 [19:35:00]MH_I2C_Read... [19:35:00]Read from MH i2c: E2 17 00 64 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 81 [19:35:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [19:35:00]wFMCommunicate OK [19:35:00]requested_item fd.num is exist - process it [19:35:00]SAM_PROTO_GetFieldsCounters [19:35:00]wFMCommunicate request_size=4 [19:35:00]MH_SAM_APDU [19:35:00]CAPDU: 80 13 00 00 [19:35:00]Write to MH i2c: E2 08 00 65 45 80 13 00 00 00 00 00 00 26 [19:35:00]Write i2c OK [19:35:00]MH_I2C_Read... [19:35:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:35:00]Read from MH i2c: E2 [19:35:00]MH_I2C_Read... [19:35:00]Read from MH i2c: E2 62 00 [19:35:00]MH_I2C_Read... [19:35:00]Read from MH i2c: E2 62 00 65 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 C6 E1 01 00 0E 04 04 00 43 01 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 7A [19:35: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 C6 E1 01 00 0E 04 04 00 43 01 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 [19:35:00]wFMCommunicate OK [19:35:00]SAM_PROTO_GetFieldsCounters done [19:35:00]requested_item shift.num is exist - process it [19:35:00]requested_item shift.opened is exist - process it [19:35:00]req_shift_opened [19:35:00]FM_GetShiftState [19:35:00]SAM_PROTO_GetShiftState [19:35:00]wFMCommunicate request_size=4 [19:35:00]MH_SAM_APDU [19:35:00]CAPDU: 80 13 01 00 [19:35:00]Write to MH i2c: E2 08 00 66 45 80 13 01 00 00 00 00 00 28 [19:35:00]Write i2c OK [19:35:00]MH_I2C_Read... [19:35:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:35:00]Read from MH i2c: E2 [19:35:00]MH_I2C_Read... [19:35:00]Read from MH i2c: E2 0E 00 [19:35:00]MH_I2C_Read... [19:35:00]Read from MH i2c: E2 0E 00 66 45 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 EA [19:35:00]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [19:35:00]wFMCommunicate OK [19:35:00]SAM_PROTO_GetShiftState done [19:35:00]FM_GetShiftState done [19:35:00]req_shift_opened done [19:35:00]requested_item shift.open_date is exist - process it [19:35:00]req_shift_open_date [19:35:00]req_shift_open_date done [19:35:00]produce_requested_data done [19:35:00]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123334,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [19:35:00]process_action_free print_text [19:35:00]json_value_free [19:35:00]json_value_free done [19:35:00]process_json_proto returns [19:35:00]Send response to host [19:35:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123334,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [19:35:00]free response buf [19:35:00]execute_script done [19:35:00]execute_script returns [19:35:00]free content buf [19:35:00]Sock 9.Close socket [19:35:00]Sock 9.Thread stoped [19:35:00]OFD Sender: No OFD packet to send [19:35:05]OFD Sender: No OFD packet to send [19:35:08]accept exits with 7 [19:35:08]New connection [19:35:08]New thread 3067395428 created [19:35:08]Thread 3067252068 joined [19:35:08]Waiting for new connection... [19:35:08] Sock 7.Parse request [19:35:08]Sock 7.Check first char [19:35:08]Sock 7.First char is OK [19:35:08]request: POST /json_proto HTTP/1.0 [19:35:08]Method: POST [19:35:08]URL: /json_proto [19:35:08]Method is POST - this is cgi request [19:35:08]url: /json_proto [19:35:08]query_string will be loaded in cgi processing [19:35:08]execute_cgi json_proto POST (null) [19:35:08]execute_cgi path=json_proto method=POST [19:35:08]POST find Content-Length [19:35:08]Host: 172.17.48.197:8080 [19:35:08]Content-Length: 1208 [19:35:08]Content-Type: application/json [19:35:08] [19:35:08]POST finish read [19:35:08]Found Content-Length = 1208 [19:35:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106291\u000A03.03.2024 19:31\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 62\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 5.360 x 61.90\u000A\u0418\u0422\u041E\u0413: 331.78\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A00350\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:35:08]execute_script... [19:35:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106291\u000A03.03.2024 19:31\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 62\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 5.360 x 61.90\u000A\u0418\u0422\u041E\u0413: 331.78\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A00350\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:35:08]POST & json_proto [19:35:08]process_json_proto [19:35:08]json parsed OK: [19:35:08]protocol is kg_v1.0 [19:35:08]action value=print_text [19:35:08]process_action print_text [19:35:08]cmd_print_text [19:35:08]ExternCall_PrintAddStr [19:35:08]wPrintStart [19:35:08]Write to MH i2c: 01 00 00 67 45 AC [19:35:08]Write i2c OK [19:35:08]MH_I2C_Read... [19:35:08]Read from MH i2c: 01 [19:35:08]MH_I2C_Read... [19:35:08]Read from MH i2c: 01 07 00 [19:35:08]MH_I2C_Read... [19:35:08]Read from MH i2c: 01 07 00 67 45 00 00 00 00 00 FF 0F C1 [19:35:08]RasterBufferAndPrint [19:35:08]line *****ТОВАРНЫЙ ЧЕК***** [19:35:08]line АЗС 25 [19:35:08]line Партнер нефть [19:35:08]line 02508201610067 [19:35:08]line Кассир : Турдумбек у. К. [19:35:08]line Счет N : (1)1106291 [19:35:08]line 03.03.2024 19:31 [19:35:08]line ПРОДАЖА [19:35:08]line ТРК (МРК, ГНК): 62 [19:35:08]line Вид ГСМ : 2710124130 [19:35:08]line Аи-92-К-5 [19:35:08]line 5.360 x 61.90 [19:35:08]line ИТОГ: 331.78 [19:35:08]line Тип оплаты: Талоны: Топливная Карта [19:35:08]line 00350 [19:35:08]line ______________________ [19:35:08]line (подпись) [19:35:08]written 0, free lines is 4095 [19:35:08]Write to MH i2c: 01 00 00 7C 45 C1 [19:35:08]Write i2c OK [19:35:08]MH_I2C_Read... [19:35:08]Read from MH i2c: 01 [19:35:08]MH_I2C_Read... [19:35:08]Read from MH i2c: 01 07 00 [19:35:08]MH_I2C_Read... [19:35:08]Read from MH i2c: 01 07 00 7C 45 00 00 00 00 00 F4 0D C9 [19:35:08]RasterBufferAndPrint [19:35:08]line [19:35:08]line [19:35:08]line [19:35:08]line [19:35:08]line [19:35:08]written 0, free lines is 3573 [19:35:08]MH_Cut [19:35:08]Write to MH i2c: D1 01 00 83 45 01 9A [19:35:08]Write i2c OK [19:35:08]MH_I2C_Read... [19:35:08]Read from MH i2c: D1 [19:35:08]MH_I2C_Read... [19:35:08]Read from MH i2c: D1 01 00 [19:35:08]MH_I2C_Read... [19:35:08]Read from MH i2c: D1 01 00 83 45 00 99 [19:35:08]Write to MH i2c: 01 00 00 84 45 C9 [19:35:08]Write i2c OK [19:35:08]MH_I2C_Read... [19:35:09]*** Cut start [19:35:09]*** Purtial cut [19:35:09]*** Stage 1: CUTSNS_PIN = 1 [19:35:10]OFD Sender: No OFD packet to send [19:35:11]Read from MH i2c: 01 [19:35:11]MH_I2C_Read... [19:35:11]Read from MH i2c: 01 07 00 [19:35:11]MH_I2C_Read... [19:35:11]*** Stop cut motor [19:35:11]*** Cut end [19:35:11]Read from MH i2c: 01 07 00 84 45 00 00 00 00 00 FF 0F DE [19:35:11]process_action print_text done [19:35:11]requested_data is exist [19:35:11]produce_requested_data [19:35:11]requested_item fm.sn is exist - process it [19:35:11]wFMCommunicate request_size=4 [19:35:11]MH_SAM_APDU [19:35:11]CAPDU: 80 11 00 00 [19:35:11]Write to MH i2c: E2 08 00 85 45 80 11 00 00 00 00 00 00 44 [19:35:11]Write i2c OK [19:35:11]MH_I2C_Read... [19:35:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:35:11]Read from MH i2c: E2 [19:35:11]MH_I2C_Read... [19:35:11]Read from MH i2c: E2 17 00 [19:35:11]MH_I2C_Read... [19:35:11]Read from MH i2c: E2 17 00 85 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 A2 [19:35:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [19:35:11]wFMCommunicate OK [19:35:11]requested_item fd.num is exist - process it [19:35:11]SAM_PROTO_GetFieldsCounters [19:35:11]wFMCommunicate request_size=4 [19:35:11]MH_SAM_APDU [19:35:11]CAPDU: 80 13 00 00 [19:35:11]Write to MH i2c: E2 08 00 86 45 80 13 00 00 00 00 00 00 47 [19:35:11]Write i2c OK [19:35:11]MH_I2C_Read... [19:35:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:35:11]Read from MH i2c: E2 [19:35:11]MH_I2C_Read... [19:35:11]Read from MH i2c: E2 62 00 [19:35:11]MH_I2C_Read... [19:35:11]Read from MH i2c: E2 62 00 86 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 C6 E1 01 00 0E 04 04 00 43 01 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 9B [19:35: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 C6 E1 01 00 0E 04 04 00 43 01 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 [19:35:11]wFMCommunicate OK [19:35:11]SAM_PROTO_GetFieldsCounters done [19:35:11]requested_item shift.num is exist - process it [19:35:11]requested_item shift.opened is exist - process it [19:35:11]req_shift_opened [19:35:11]FM_GetShiftState [19:35:11]SAM_PROTO_GetShiftState [19:35:11]wFMCommunicate request_size=4 [19:35:11]MH_SAM_APDU [19:35:11]CAPDU: 80 13 01 00 [19:35:11]Write to MH i2c: E2 08 00 87 45 80 13 01 00 00 00 00 00 49 [19:35:11]Write i2c OK [19:35:11]MH_I2C_Read... [19:35:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:35:11]Read from MH i2c: E2 [19:35:11]MH_I2C_Read... [19:35:11]Read from MH i2c: E2 0E 00 [19:35:11]MH_I2C_Read... [19:35:11]Read from MH i2c: E2 0E 00 87 45 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 0B [19:35:11]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [19:35:11]wFMCommunicate OK [19:35:11]SAM_PROTO_GetShiftState done [19:35:11]FM_GetShiftState done [19:35:11]req_shift_opened done [19:35:11]requested_item shift.open_date is exist - process it [19:35:11]req_shift_open_date [19:35:11]req_shift_open_date done [19:35:11]produce_requested_data done [19:35:11]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123334,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [19:35:11]process_action_free print_text [19:35:11]json_value_free [19:35:11]json_value_free done [19:35:11]process_json_proto returns [19:35:11]Send response to host [19:35:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123334,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [19:35:11]free response buf [19:35:11]execute_script done [19:35:11]execute_script returns [19:35:11]free content buf [19:35:11]Sock 7.Close socket [19:35:11]Sock 7.Thread stoped [19:35:15]OFD Sender: No OFD packet to send [19:35:20]OFD Sender: No OFD packet to send [19:35:25]OFD Sender: No OFD packet to send [19:35:30]OFD Sender: No OFD packet to send [19:35:35]OFD Sender: No OFD packet to send [19:35:40]OFD Sender: No OFD packet to send [19:35:45]OFD Sender: No OFD packet to send [19:35:50]OFD Sender: No OFD packet to send [19:35:55]OFD Sender: No OFD packet to send [19:36:00]OFD Sender: No OFD packet to send [19:36:05]OFD Sender: No OFD packet to send [19:36:10]OFD Sender: No OFD packet to send [19:36:15]OFD Sender: No OFD packet to send [19:36:20]OFD Sender: No OFD packet to send [19:36:25]OFD Sender: No OFD packet to send [19:36:30]OFD Sender: No OFD packet to send [19:36:35]OFD Sender: No OFD packet to send [19:36:40]OFD Sender: No OFD packet to send [19:36:45]OFD Sender: No OFD packet to send [19:36:50]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:46]OFD Sender: No OFD packet to send [19:37:51]OFD Sender: No OFD packet to send [19:37:56]OFD Sender: No OFD packet to send [19:38:01]OFD Sender: No OFD packet to send [19:38:06]OFD Sender: No OFD packet to send [19:38:11]OFD Sender: No OFD packet to send [19:38:16]OFD Sender: No OFD packet to send [19:38:21]OFD Sender: No OFD packet to send [19:38:26]OFD Sender: No OFD packet to send [19:38:31]OFD Sender: No OFD packet to send [19:38:36]OFD Sender: No OFD packet to send [19:38:41]OFD Sender: No OFD packet to send [19:38:46]OFD Sender: No OFD packet to send [19:38:51]OFD Sender: No OFD packet to send [19:38:56]OFD Sender: No OFD packet to send [19:39:01]OFD Sender: No OFD packet to send [19:39:06]OFD Sender: No OFD packet to send [19:39:11]OFD Sender: No OFD packet to send [19:39:16]OFD Sender: No OFD packet to send [19:39:21]OFD Sender: No OFD packet to send [19:39:25]int [19:39:25]Write to MH i2c: 01 00 00 88 45 CD [19:39:25]*** FLAG_PRN_PAP1 set [19:39:25]Write i2c OK [19:39:25]MH_I2C_Read... [19:39:25]Read from MH i2c: 01 [19:39:25]MH_I2C_Read... [19:39:25]Read from MH i2c: 01 07 00 [19:39:25]MH_I2C_Read... [19:39:25]Read from MH i2c: 01 07 00 88 45 00 01 00 00 00 FF 0F E3 [19:39:25]state=0 [19:39:25]No paper [19:39:25]int [19:39:25]Write to MH i2c: 01 00 00 89 45 CE [19:39:25]*** FLAG_PRN_PAP2 set [19:39:25]Write i2c OK [19:39:25]MH_I2C_Read... [19:39:25]Read from MH i2c: 01 [19:39:25]MH_I2C_Read... [19:39:25]Read from MH i2c: 01 07 00 [19:39:25]MH_I2C_Read... [19:39:25]Read from MH i2c: 01 07 00 89 45 00 03 00 00 00 FF 0F E6 [19:39:25]state=0 [19:39:25]No paper [19:39:25]Cover opened [19:39:26]OFD Sender: No OFD packet to send [19:39:29]int [19:39:29]Write to MH i2c: 01 00 00 8A 45 CF [19:39:29]*** FLAG_PRN_PAP2 reset [19:39:29]Write i2c OK [19:39:29]MH_I2C_Read... [19:39:29]Read from MH i2c: 01 [19:39:29]MH_I2C_Read... [19:39:29]Read from MH i2c: 01 07 00 [19:39:29]MH_I2C_Read... [19:39:29]Read from MH i2c: 01 07 00 8A 45 00 01 00 00 00 FF 0F E5 [19:39:29]state=3 [19:39:29]No paper [19:39:29]Cover closed [19:39:29]int [19:39:29]Write to MH i2c: 01 00 00 8B 45 D0 [19:39:29]*** FLAG_PRN_PAP1 reset [19:39:29]Write i2c OK [19:39:29]MH_I2C_Read... [19:39:29]Read from MH i2c: 01 [19:39:29]MH_I2C_Read... [19:39:29]Read from MH i2c: 01 07 00 [19:39:29]MH_I2C_Read... [19:39:29]Read from MH i2c: 01 07 00 8B 45 00 00 00 00 00 FF 0F E5 [19:39:29]state=0 [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:04]accept exits with 9 [19:40:04]New connection [19:40:04]New thread 3067252068 created [19:40:04]Thread 3067395428 joined [19:40:04]Waiting for new connection... [19:40:04] Sock 9.Parse request [19:40:04]Sock 9.Check first char [19:40:04]Sock 9.First char is OK [19:40:04]request: POST /json_proto HTTP/1.0 [19:40:04]Method: POST [19:40:04]URL: /json_proto [19:40:04]Method is POST - this is cgi request [19:40:04]url: /json_proto [19:40:04]query_string will be loaded in cgi processing [19:40:04]execute_cgi json_proto POST (null) [19:40:04]execute_cgi path=json_proto method=POST [19:40:04]POST find Content-Length [19:40:04]Host: 172.17.48.197:8080 [19:40:04]Content-Length: 1210 [19:40:04]Content-Type: application/json [19:40:04] [19:40:04]POST finish read [19:40:04]Found Content-Length = 1210 [19:40:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106292\u000A03.03.2024 19:36\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 16.160 x 61.90\u000A\u0418\u0422\u041E\u0413: 1000.30\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A00350\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:40:04]execute_script... [19:40:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106292\u000A03.03.2024 19:36\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 16.160 x 61.90\u000A\u0418\u0422\u041E\u0413: 1000.30\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A00350\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:40:04]POST & json_proto [19:40:04]process_json_proto [19:40:04]json parsed OK: [19:40:04]protocol is kg_v1.0 [19:40:04]action value=print_text [19:40:04]process_action print_text [19:40:04]cmd_print_text [19:40:04]ExternCall_PrintAddStr [19:40:04]wPrintStart [19:40:04]Write to MH i2c: 01 00 00 8C 45 D1 [19:40:04]Write i2c OK [19:40:04]MH_I2C_Read... [19:40:04]Read from MH i2c: 01 [19:40:04]MH_I2C_Read... [19:40:04]Read from MH i2c: 01 07 00 [19:40:04]MH_I2C_Read... [19:40:04]Read from MH i2c: 01 07 00 8C 45 00 00 00 00 00 FF 0F E6 [19:40:04]RasterBufferAndPrint [19:40:04]line *****ТОВАРНЫЙ ЧЕК***** [19:40:04]line АЗС 25 [19:40:04]line Партнер нефть [19:40:04]line 02508201610067 [19:40:04]line Кассир : Турдумбек у. К. [19:40:04]line Счет N : (1)1106292 [19:40:04]line 03.03.2024 19:36 [19:40:04]line ПРОДАЖА [19:40:04]line ТРК (МРК, ГНК): 11 [19:40:04]line Вид ГСМ : 2710124130 [19:40:04]line Аи-92-К-5 [19:40:04]line 16.160 x 61.90 [19:40:04]line ИТОГ: 1000.30 [19:40:04]line Тип оплаты: Талоны: Топливная Карта [19:40:04]line 00350 [19:40:04]line ______________________ [19:40:04]line (подпись) [19:40:04]written 0, free lines is 4095 [19:40:04]Write to MH i2c: 01 00 00 A1 45 E6 [19:40:04]Write i2c OK [19:40:04]MH_I2C_Read... [19:40:04]Read from MH i2c: 01 [19:40:04]MH_I2C_Read... [19:40:04]Read from MH i2c: 01 07 00 [19:40:04]MH_I2C_Read... [19:40:04]Read from MH i2c: 01 07 00 A1 45 00 00 00 00 00 F5 0D EF [19:40:04]RasterBufferAndPrint [19:40:04]line [19:40:04]line [19:40:04]line [19:40:04]line [19:40:04]line [19:40:04]written 0, free lines is 3574 [19:40:04]MH_Cut [19:40:04]Write to MH i2c: D1 01 00 A8 45 01 BF [19:40:04]Write i2c OK [19:40:04]MH_I2C_Read... [19:40:04]Read from MH i2c: D1 [19:40:04]MH_I2C_Read... [19:40:04]Read from MH i2c: D1 01 00 [19:40:04]MH_I2C_Read... [19:40:04]Read from MH i2c: D1 01 00 A8 45 00 BE [19:40:04]Write to MH i2c: 01 00 00 A9 45 EE [19:40:04]Write i2c OK [19:40:04]MH_I2C_Read... [19:40:05]*** Cut start [19:40:05]*** Purtial cut [19:40:05]*** Stage 1: CUTSNS_PIN = 1 [19:40:06]OFD Sender: No OFD packet to send [19:40:07]Read from MH i2c: 01 [19:40:07]MH_I2C_Read... [19:40:07]*** Stop cut motor [19:40:07]*** Cut end [19:40:07]Read from MH i2c: 01 07 00 [19:40:07]MH_I2C_Read... [19:40:07]Read from MH i2c: 01 07 00 A9 45 00 00 00 00 00 FF 0F 03 [19:40:07]process_action print_text done [19:40:07]requested_data is exist [19:40:07]produce_requested_data [19:40:07]requested_item fm.sn is exist - process it [19:40:07]wFMCommunicate request_size=4 [19:40:07]MH_SAM_APDU [19:40:07]CAPDU: 80 11 00 00 [19:40:07]Write to MH i2c: E2 08 00 AA 45 80 11 00 00 00 00 00 00 69 [19:40:07]Write i2c OK [19:40:07]MH_I2C_Read... [19:40:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:40:07]Read from MH i2c: E2 [19:40:07]MH_I2C_Read... [19:40:07]Read from MH i2c: E2 17 00 [19:40:07]MH_I2C_Read... [19:40:07]Read from MH i2c: E2 17 00 AA 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 C7 [19:40:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [19:40:07]wFMCommunicate OK [19:40:07]requested_item fd.num is exist - process it [19:40:07]SAM_PROTO_GetFieldsCounters [19:40:07]wFMCommunicate request_size=4 [19:40:07]MH_SAM_APDU [19:40:07]CAPDU: 80 13 00 00 [19:40:07]Write to MH i2c: E2 08 00 AB 45 80 13 00 00 00 00 00 00 6C [19:40:07]Write i2c OK [19:40:07]MH_I2C_Read... [19:40:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:40:07]Read from MH i2c: E2 [19:40:07]MH_I2C_Read... [19:40:07]Read from MH i2c: E2 62 00 [19:40:07]MH_I2C_Read... [19:40:07]Read from MH i2c: E2 62 00 AB 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 C6 E1 01 00 0E 04 04 00 43 01 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 C0 [19:40: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 C6 E1 01 00 0E 04 04 00 43 01 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 [19:40:07]wFMCommunicate OK [19:40:07]SAM_PROTO_GetFieldsCounters done [19:40:07]requested_item shift.num is exist - process it [19:40:07]requested_item shift.opened is exist - process it [19:40:07]req_shift_opened [19:40:07]FM_GetShiftState [19:40:07]SAM_PROTO_GetShiftState [19:40:07]wFMCommunicate request_size=4 [19:40:07]MH_SAM_APDU [19:40:07]CAPDU: 80 13 01 00 [19:40:07]Write to MH i2c: E2 08 00 AC 45 80 13 01 00 00 00 00 00 6E [19:40:07]Write i2c OK [19:40:07]MH_I2C_Read... [19:40:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:40:07]Read from MH i2c: E2 [19:40:07]MH_I2C_Read... [19:40:07]Read from MH i2c: E2 0E 00 [19:40:07]MH_I2C_Read... [19:40:07]Read from MH i2c: E2 0E 00 AC 45 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 30 [19:40:07]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [19:40:07]wFMCommunicate OK [19:40:07]SAM_PROTO_GetShiftState done [19:40:07]FM_GetShiftState done [19:40:07]req_shift_opened done [19:40:07]requested_item shift.open_date is exist - process it [19:40:07]req_shift_open_date [19:40:07]req_shift_open_date done [19:40:07]produce_requested_data done [19:40:07]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123334,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [19:40:07]process_action_free print_text [19:40:07]json_value_free [19:40:07]json_value_free done [19:40:07]process_json_proto returns [19:40:07]Send response to host [19:40:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123334,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [19:40:07]free response buf [19:40:07]execute_script done [19:40:07]execute_script returns [19:40:07]free content buf [19:40:07]Sock 9.Close socket [19:40:07]Sock 9.Thread stoped [19:40:11]OFD Sender: No OFD packet to send [19:40:16]OFD Sender: No OFD packet to send [19:40:16]int [19:40:16]Write to MH i2c: 01 00 00 AD 45 F2 [19:40:16]*** FLAG_PRN_KEY set [19:40:16]Write i2c OK [19:40:16]MH_I2C_Read... [19:40:16]Read from MH i2c: 01 [19:40:16]MH_I2C_Read... [19:40:16]Read from MH i2c: 01 07 00 [19:40:16]MH_I2C_Read... [19:40:16]Read from MH i2c: 01 07 00 AD 45 00 08 00 00 00 FF 0F 0F [19:40:16]state=0 [19:40:16]Key pressed [19:40:16]Feed [19:40:16]Write to MH i2c: D8 00 00 AE 45 CA [19:40:16]Write i2c OK [19:40:16]MH_I2C_Read... [19:40:16]Read from MH i2c: D8 [19:40:16]MH_I2C_Read... [19:40:16]Read from MH i2c: D8 01 00 [19:40:16]MH_I2C_Read... [19:40:16]Read from MH i2c: D8 01 00 AE 45 00 CB [19:40:16]int [19:40:16]Write to MH i2c: 01 00 00 AF 45 F4 [19:40:16]Write i2c OK [19:40:16]MH_I2C_Read... [19:40:16]Read from MH i2c: 01 [19:40:16]MH_I2C_Read... [19:40:16]Read from MH i2c: 01 07 00 [19:40:16]MH_I2C_Read... [19:40:16]Read from MH i2c: 01 07 00 AF 45 00 48 00 00 00 3C 00 7F [19:40:16]state=2 [19:40:16]Key pressed [19:40:16]int [19:40:16]Write to MH i2c: 01 00 00 B0 45 F5 [19:40:16]*** FLAG_PRN_KEY reset [19:40:16]Write i2c OK [19:40:16]MH_I2C_Read... [19:40:16]Read from MH i2c: 01 [19:40:16]MH_I2C_Read... [19:40:16]Read from MH i2c: 01 07 00 [19:40:16]MH_I2C_Read... [19:40:16]Read from MH i2c: 01 07 00 B0 45 00 00 00 00 00 F6 0F 01 [19:40:16]state=2 [19:40:16]Stop feed [19:40:16]int [19:40:16]Write to MH i2c: 01 00 00 B1 45 F6 [19:40:16]*** FLAG_PRN_KEY set [19:40:16]Write i2c OK [19:40:16]MH_I2C_Read... [19:40:16]Read from MH i2c: 01 [19:40:16]MH_I2C_Read... [19:40:16]Read from MH i2c: 01 07 00 [19:40:16]MH_I2C_Read... [19:40:16]Read from MH i2c: 01 07 00 B1 45 00 08 00 00 00 FF 0F 13 [19:40:16]state=0 [19:40:16]Key pressed [19:40:16]Feed [19:40:16]Write to MH i2c: D8 00 00 B2 45 CE [19:40:16]Write i2c OK [19:40:16]MH_I2C_Read... [19:40:16]Read from MH i2c: D8 [19:40:16]MH_I2C_Read... [19:40:16]Read from MH i2c: D8 01 00 [19:40:16]MH_I2C_Read... [19:40:16]Read from MH i2c: D8 01 00 B2 45 00 CF [19:40:16]int [19:40:16]Write to MH i2c: 01 00 00 B3 45 F8 [19:40:16]Write i2c OK [19:40:16]MH_I2C_Read... [19:40:16]Read from MH i2c: 01 [19:40:16]MH_I2C_Read... [19:40:16]Read from MH i2c: 01 07 00 [19:40:16]MH_I2C_Read... [19:40:16]Read from MH i2c: 01 07 00 B3 45 00 48 00 00 00 3C 00 83 [19:40:16]state=2 [19:40:16]Key pressed [19:40:16]int [19:40:16]Write to MH i2c: 01 00 00 B4 45 F9 [19:40:16]*** FLAG_PRN_KEY reset [19:40:16]Write i2c OK [19:40:16]MH_I2C_Read... [19:40:16]Read from MH i2c: 01 [19:40:16]MH_I2C_Read... [19:40:16]Read from MH i2c: 01 07 00 [19:40:16]MH_I2C_Read... [19:40:16]Read from MH i2c: 01 07 00 B4 45 00 00 00 00 00 F5 0F 04 [19:40:16]state=2 [19:40:16]Stop feed [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:06]OFD Sender: No OFD packet to send [19:41:11]OFD Sender: No OFD packet to send [19:41:16]OFD Sender: No OFD packet to send [19:41:21]OFD Sender: No OFD packet to send [19:41:26]OFD Sender: No OFD packet to send [19:41:31]OFD Sender: No OFD packet to send [19:41:36]OFD Sender: No OFD packet to send [19:41:41]OFD Sender: No OFD packet to send [19:41:46]OFD Sender: No OFD packet to send [19:41:51]OFD Sender: No OFD packet to send [19:41:56]OFD Sender: No OFD packet to send [19:42:01]OFD Sender: No OFD packet to send [19:42:06]OFD Sender: No OFD packet to send [19:42:11]OFD Sender: No OFD packet to send [19:42:16]OFD Sender: No OFD packet to send [19:42:21]OFD Sender: No OFD packet to send [19:42:26]OFD Sender: No OFD packet to send [19:42:31]OFD Sender: No OFD packet to send [19:42:36]OFD Sender: No OFD packet to send [19:42:41]OFD Sender: No OFD packet to send [19:42:46]OFD Sender: No OFD packet to send [19:42:51]OFD Sender: No OFD packet to send [19:42:56]OFD Sender: No OFD packet to send [19:43:01]OFD Sender: No OFD packet to send [19:43:06]OFD Sender: No OFD packet to send [19:43:11]OFD Sender: No OFD packet to send [19:43:16]OFD Sender: No OFD packet to send [19:43:21]OFD Sender: No OFD packet to send [19:43:26]OFD Sender: No OFD packet to send [19:43:31]OFD Sender: No OFD packet to send [19:43:36]OFD Sender: No OFD packet to send [19:43:41]OFD Sender: No OFD packet to send [19:43:46]OFD Sender: No OFD packet to send [19:43:51]OFD Sender: No OFD packet to send [19:43:56]OFD Sender: No OFD packet to send [19:44:01]OFD Sender: No OFD packet to send [19:44:06]OFD Sender: No OFD packet to send [19:44:11]OFD Sender: No OFD packet to send [19:44:16]OFD Sender: No OFD packet to send [19:44:21]OFD Sender: No OFD packet to send [19:44:26]OFD Sender: No OFD packet to send [19:44:31]OFD Sender: No OFD packet to send [19:44:36]OFD Sender: No OFD packet to send [19:44:41]OFD Sender: No OFD packet to send [19:44:46]OFD Sender: No OFD packet to send [19:44:51]OFD Sender: No OFD packet to send [19:44:56]OFD Sender: No OFD packet to send [19:45:01]OFD Sender: No OFD packet to send [19:45:06]OFD Sender: No OFD packet to send [19:45:11]OFD Sender: No OFD packet to send [19:45:16]OFD Sender: No OFD packet to send [19:45:21]OFD Sender: No OFD packet to send [19:45:26]OFD Sender: No OFD packet to send [19:45:31]OFD Sender: No OFD packet to send [19:45:36]OFD Sender: No OFD packet to send [19:45:41]OFD Sender: No OFD packet to send [19:45:46]OFD Sender: No OFD packet to send [19:45:51]OFD Sender: No OFD packet to send [19:45:56]OFD Sender: No OFD packet to send [19:46:01]OFD Sender: No OFD packet to send [19:46:06]OFD Sender: No OFD packet to send [19:46:11]OFD Sender: No OFD packet to send [19:46:16]OFD Sender: No OFD packet to send [19:46:21]OFD Sender: No OFD packet to send [19:46:26]OFD Sender: No OFD packet to send [19:46:31]OFD Sender: No OFD packet to send [19:46:36]OFD Sender: No OFD packet to send [19:46:38]accept exits with 7 [19:46:38]New connection [19:46:38]New thread 3067395428 created [19:46:38]Thread 3067252068 joined [19:46:38]Waiting for new connection... [19:46:38] Sock 7.Parse request [19:46:38]Sock 7.Check first char [19:46:38]Sock 7.First char is OK [19:46:38]request: POST /json_proto HTTP/1.0 [19:46:38]Method: POST [19:46:38]URL: /json_proto [19:46:38]Method is POST - this is cgi request [19:46:38]url: /json_proto [19:46:38]query_string will be loaded in cgi processing [19:46:38]execute_cgi json_proto POST (null) [19:46:38]execute_cgi path=json_proto method=POST [19:46:38]POST find Content-Length [19:46:38]Host: 172.17.48.197:8080 [19:46:38]Content-Length: 809 [19:46:38]Content-Type: application/json [19:46:38] [19:46:38]POST finish read [19:46:38]Found Content-Length = 809 [19:46:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106295", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:46:38]execute_script... [19:46: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)1106295", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:46:38]POST & json_proto [19:46:38]process_json_proto [19:46:38]json parsed OK: [19:46:38]protocol is kg_v1.0 [19:46:38]action value=close_receipt [19:46:38]process_action close_receipt [19:46:38]cmd_close_receipt [19:46:38]MH_GetDate [19:46:38]Write to MH i2c: F0 00 00 B5 45 E9 [19:46:38]Write i2c OK [19:46:38]MH_I2C_Read... [19:46:38]Read from MH i2c: F0 [19:46:38]MH_I2C_Read... [19:46:38]Read from MH i2c: F0 09 00 [19:46:38]MH_I2C_Read... [19:46:38]Read from MH i2c: F0 09 00 B5 45 00 A3 D3 E4 65 6C AF E3 65 14 [19:46:38]GetLastDocTimeStamp 1709494312 [19:46:38]current date 1709495203 [19:46:38]FM_GetShiftState [19:46:38]SAM_PROTO_GetShiftState [19:46:38]wFMCommunicate request_size=4 [19:46:38]MH_SAM_APDU [19:46:38]CAPDU: 80 13 01 00 [19:46:38]Write to MH i2c: E2 08 00 B6 45 80 13 01 00 00 00 00 00 78 [19:46:38]Write i2c OK [19:46:38]MH_I2C_Read... [19:46:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:46:38]Read from MH i2c: E2 [19:46:38]MH_I2C_Read... [19:46:38]Read from MH i2c: E2 0E 00 [19:46:38]MH_I2C_Read... [19:46:38]Read from MH i2c: E2 0E 00 B6 45 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 3A [19:46:38]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [19:46:38]wFMCommunicate OK [19:46:38]SAM_PROTO_GetShiftState done [19:46:38]FM_GetShiftState done [19:46:38]opened in 1709425579 [19:46:38]opened+sec_in_day 1709511979 [19:46:38]quantity*price = 100010 [19:46:38]sum+1 = 100012 [19:46:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.11 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.11 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 192 03.03.2024 19:46 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874798 ФД: 123335 ФПД: 3562781232233 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T194643&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123335&fm=3562781232233&tin=02508201610067®Number=0000000000090573&sum=100011 [19:46:39]StoreToDocumentArchive [19:46:39]shift 323 fd 123335 [19:46:39]save to /storage/0323/doc_00123335 [19:46:39]save last doc name /storage/0323/doc_00123335 to /storage/kkm_last_doc_name [19:46:39]save OK [19:46:39]Clear old archive folders... [19:46:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:46:39]tlvbuf is 00E0D930 [19:46:39]SAM_PROTO_ClearQueue [19:46:39]wFMCommunicate request_size=4 [19:46:39]MH_SAM_APDU [19:46:39]CAPDU: 80 09 00 00 [19:46:39]Write to MH i2c: E2 08 00 C3 45 80 09 00 00 00 00 00 00 7A [19:46:39]Write i2c OK [19:46:39]MH_I2C_Read... [19:46:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:46:39]Read from MH i2c: E2 [19:46:39]MH_I2C_Read... [19:46:39]Read from MH i2c: E2 03 00 [19:46:39]MH_I2C_Read... [19:46:39]Read from MH i2c: E2 03 00 C3 45 00 90 00 7C [19:46:39]RAPDU: 90 00 [19:46:39]wFMCommunicate OK [19:46:39]SAM_PROTO_ClearQueue done [19:46:39]KKMCreateOFDPacket [19:46:39]OFDProtocolAddRootSTLVToBuf [19:46:39]FM_MakeSignedData [19:46:39]FM_MakeSignedData [19:46:39]SAM_PROTO_SignData [19:46:39]wFMCommunicate request_size=4 [19:46:39]MH_SAM_APDU [19:46:39]CAPDU: 80 0D 01 02 [19:46:39]Write to MH i2c: E2 08 00 C4 45 80 0D 01 02 00 00 00 00 82 [19:46:39]Write i2c OK [19:46:39]MH_I2C_Read... [19:46:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:46:40]Read from MH i2c: E2 [19:46:40]MH_I2C_Read... [19:46:40]Read from MH i2c: E2 03 00 [19:46:40]MH_I2C_Read... [19:46:40]Read from MH i2c: E2 03 00 C4 45 00 90 00 7D [19:46:40]RAPDU: 90 00 [19:46:40]wFMCommunicate OK [19:46:40]wFMCommunicate request_size=255 [19:46:40]MH_SAM_APDU [19:46: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 A3 D3 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 C7 E1 01 00 35 04 06 00 03 [19:46:40]Write to MH i2c: E2 02 01 C5 45 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 A3 D3 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 C7 E1 01 00 35 04 06 00 03 00 00 6C [19:46:40]Write i2c OK [19:46:40]MH_I2C_Read... [19:46:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:46:40]Read from MH i2c: E2 [19:46:40]MH_I2C_Read... [19:46:40]Read from MH i2c: E2 03 00 [19:46:40]MH_I2C_Read... [19:46:40]Read from MH i2c: E2 03 00 C5 45 00 90 00 7E [19:46:40]RAPDU: 90 00 [19:46:40]wFMCommunicate OK [19:46:40]wFMCommunicate request_size=10 [19:46:40]MH_SAM_APDU [19:46:40]CAPDU: 80 0D 02 02 05 3D 86 4F 4C 69 [19:46:40]Write to MH i2c: E2 0D 00 C6 45 80 0D 02 02 05 00 3D 86 4F 4C 69 00 00 56 [19:46:40]Write i2c OK [19:46:40]MH_I2C_Read... [19:46:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:46:40]Read from MH i2c: E2 [19:46:40]MH_I2C_Read... [19:46:40]Read from MH i2c: E2 03 00 [19:46:40]MH_I2C_Read... [19:46:40]Read from MH i2c: E2 03 00 C6 45 00 90 00 7F [19:46:40]RAPDU: 90 00 [19:46:40]wFMCommunicate OK [19:46:40]wFMCommunicate request_size=4 [19:46:40]MH_SAM_APDU [19:46:40]CAPDU: 80 0D 03 02 [19:46:40]Write to MH i2c: E2 08 00 C7 45 80 0D 03 02 00 00 00 00 87 [19:46:40]Write i2c OK [19:46:40]MH_I2C_Read... [19:46:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:46:40]Read from MH i2c: E2 [19:46:40]MH_I2C_Read... [19:46:40]Read from MH i2c: E2 0B 00 [19:46:40]MH_I2C_Read... [19:46:40]Read from MH i2c: E2 0B 00 C7 45 00 B8 E2 8D 82 FB D8 E1 44 90 00 29 [19:46:40]RAPDU: B8 E2 8D 82 FB D8 E1 44 90 00 [19:46:40]wFMCommunicate OK [19:46:40]SAM_PROTO_SignData done [19:46:40]FM_MakeSignedData done [19:46:40]CreateOFDProtocolMessage [19:46:40]wFMCommunicate request_size=4 [19:46:40]MH_SAM_APDU [19:46:40]CAPDU: 80 11 00 00 [19:46:40]Write to MH i2c: E2 08 00 C8 45 80 11 00 00 00 00 00 00 87 [19:46:40]Write i2c OK [19:46:40]MH_I2C_Read... [19:46:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:46:40]Read from MH i2c: E2 [19:46:40]MH_I2C_Read... [19:46:40]Read from MH i2c: E2 17 00 [19:46:40]MH_I2C_Read... [19:46:40]Read from MH i2c: E2 17 00 C8 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 E5 [19:46:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [19:46:40]wFMCommunicate OK [19:46:40]CreateOFDProtocolMessage done [19:46:40]OFDSenderStorePacket 123335 [19:46:40]StoreOFDPacket docnum=123335 [19:46:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 73 05 07 01 E2 79 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 A3 D3 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 C7 E1 01 00 35 04 06 00 03 3D 86 4F 4C 69 B8 E2 8D 82 FB D8 E1 44 [19:46:40]CheckFolder [19:46:40]dirname=/storage/ofd_packets [19:46:40]CheckFolder done [19:46:40]ProducePacketName [19:46:40]name=ofd_packets/00123335 [19:46:40]NVStorageSaveData ofd_packets/00123335 [19:46:40]File name is /storage/ofd_packets/00123335 [19:46:40]Write 301 bytes [19:46:40]NVStorageSaveData done [19:46:40]OFDSenderStorePacket done [19:46:40]KKMCreateOFDPacket done [19:46:40]NVStorageSaveData kkm_last_timestamp [19:46:40]File name is /storage/kkm_last_timestamp [19:46:40]Write 4 bytes [19:46:40]NVStorageSaveData done [19:46:40]ExternCall_PrintAddStr [19:46:40]wPrintStart [19:46:40]Write to MH i2c: 01 00 00 C9 45 0E [19:46:40]Write i2c OK [19:46:40]MH_I2C_Read... [19:46:40]Read from MH i2c: 01 [19:46:40]MH_I2C_Read... [19:46:40]Read from MH i2c: 01 07 00 [19:46:40]MH_I2C_Read... [19:46:40]Read from MH i2c: 01 07 00 C9 45 00 00 00 00 00 FF 0F 23 [19:46:40]RasterBufferAndPrint [19:46:40]line Счет N : (1)1106295 [19:46:40]line ИНН: 02508201610067 [19:46:40]line Контрольно-Кассовый Чек [19:46:40]line ПРОДАЖА [19:46:40]line ТРК (МРК, ГНК) : 13 [19:46:40]line Товар: 2710124500 [19:46:40]line Аи-95-К-5 [19:46:40]line 14.390 * 69.50 [19:46:40]line = 1000.11 [19:46:40]line НДС 12% НСП 1% [19:46:40]line > о реализуемом товаре [19:46:40]line ИТОГО: 1000.11 [19:46:40]line НСП 1% : 8.85 [19:46:40]line НДС 12% : 106.21 [19:46:40]line Наличными: 0.00 [19:46:40]line Безнал.: 1000.11 [19:46:40]line Место: АЗС № 25 "Партнер Нефть" [19:46:40]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [19:46:40]line СНО: Общий режим [19:46:40]line Чек 192 03.03.2024 19:46 [19:46:40]line Смена: 323 ФФД: 1.0 [19:46:40]line ЗНМ: 0300000019 [19:46:40]line РНМ: 0000000000090573 [19:46:40]line Версия ККМ: 001 [19:46:40]line Платежная система: О! деньги [19:46:40]line ФМ: 0000000000874798 [19:46:40]line ФД: 123335 [19:46:40]line ФПД: 3562781232233 [19:46:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T194643&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123335&fm=3562781232233&tin=02508201610067®Number=0000000000090573&sum=100011 [19:46:40]OFD Sender: Processing packet 123335 [packets to send 112, broken 111] [19:46:40]ProducePacketName [19:46:40]name=ofd_packets/00123335 [19:46:40]OFD Sender: To server: pG, [19:46:40]CommunicateWithHost lk.salyk.kg:30040 [19:46:40]ConnectInit lk.salyk.kg [19:46:40]written 0, free lines is 4095 [19:46:40]Connected sock=10 [19:46: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 37 39 38 0F 01 00 00 73 05 07 01 E2 79 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 A3 D3 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 C7 E1 01 00 35 04 06 00 03 3D 86 4F 4C 69 B8 E2 8D 82 FB D8 E1 44 [19:46:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 28 1F 47 00 81 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 37 39 38 10 04 04 00 C7 E1 01 00 F4 03 04 00 CE 7F E4 65 B6 04 01 00 00 6F 85 DB D1 03 78 57 98 [19:46:41]CommunicateWithHost err = 0 [19:46:41]CheckOFDResponse [19:46:41]1017 (14) - 77093643461234 [19:46:41]1041 (16) - 0000000000874798 [19:46:41]1040 (4) - 123335 [19:46:41]1012 (4) - 03.03.2024 13:49 [19:46:41]1206 (1) - 0 [19:46:41]OFD Sender: Remove packet 123335 [19:46:41]ProducePacketName [19:46:41]name=ofd_packets/00123335 [19:46:41]NVStorageDeleteData [19:46:41]Write to MH i2c: 01 00 00 F3 45 38 [19:46:41]Write i2c OK [19:46:41]MH_I2C_Read... [19:46:41]Read from MH i2c: 01 [19:46:41]MH_I2C_Read... [19:46:41]Read from MH i2c: 01 07 00 [19:46:41]MH_I2C_Read... [19:46:41]Read from MH i2c: 01 07 00 F3 45 00 00 00 00 00 FB 0C 46 [19:46:41]RasterBufferAndPrint [19:46:41]line [19:46:41]line [19:46:41]line [19:46:41]line [19:46:41]line [19:46:41]written 0, free lines is 3332 [19:46:41]MH_Cut [19:46:41]Write to MH i2c: D1 01 00 FA 45 01 11 [19:46:41]Write i2c OK [19:46:41]MH_I2C_Read... [19:46:41]Read from MH i2c: D1 [19:46:41]MH_I2C_Read... [19:46:41]Read from MH i2c: D1 01 00 [19:46:41]MH_I2C_Read... [19:46:41]Read from MH i2c: D1 01 00 FA 45 00 10 [19:46:41]Write to MH i2c: 01 00 00 FB 45 40 [19:46:41]Write i2c OK [19:46:41]MH_I2C_Read... [19:46:41]OFD Sender: No OFD packet to send [19:46:41]*** Cut start [19:46:41]*** Purtial cut [19:46:41]*** Stage 1: CUTSNS_PIN = 1 [19:46:43]Read from MH i2c: 01 [19:46:43]MH_I2C_Read... [19:46:43]*** Stop cut motor [19:46:43]*** Cut end [19:46:43]Read from MH i2c: 01 07 00 [19:46:43]MH_I2C_Read... [19:46:43]Read from MH i2c: 01 07 00 FB 45 00 00 00 00 00 FF 0F 55 [19:46:43]process_action close_receipt done [19:46:43]requested_data is exist [19:46:43]produce_requested_data [19:46:43]requested_item fm.sn is exist - process it [19:46:43]wFMCommunicate request_size=4 [19:46:43]MH_SAM_APDU [19:46:43]CAPDU: 80 11 00 00 [19:46:43]Write to MH i2c: E2 08 00 FC 45 80 11 00 00 00 00 00 00 BB [19:46:43]Write i2c OK [19:46:43]MH_I2C_Read... [19:46:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:46:43]Read from MH i2c: E2 [19:46:43]MH_I2C_Read... [19:46:43]Read from MH i2c: E2 17 00 [19:46:43]MH_I2C_Read... [19:46:43]Read from MH i2c: E2 17 00 FC 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 19 [19:46:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [19:46:43]wFMCommunicate OK [19:46:43]requested_item fd.num is exist - process it [19:46:43]SAM_PROTO_GetFieldsCounters [19:46:43]wFMCommunicate request_size=4 [19:46:43]MH_SAM_APDU [19:46:43]CAPDU: 80 13 00 00 [19:46:43]Write to MH i2c: E2 08 00 FD 45 80 13 00 00 00 00 00 00 BE [19:46:43]Write i2c OK [19:46:43]MH_I2C_Read... [19:46:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:46:44]Read from MH i2c: E2 [19:46:44]MH_I2C_Read... [19:46:44]Read from MH i2c: E2 62 00 [19:46:44]MH_I2C_Read... [19:46:44]Read from MH i2c: E2 62 00 FD 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 C7 E1 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 16 [19:46: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 C7 E1 01 00 0E 04 04 00 43 01 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 [19:46:44]wFMCommunicate OK [19:46:44]SAM_PROTO_GetFieldsCounters done [19:46:44]requested_item shift.num is exist - process it [19:46:44]requested_item shift.opened is exist - process it [19:46:44]req_shift_opened [19:46:44]FM_GetShiftState [19:46:44]SAM_PROTO_GetShiftState [19:46:44]wFMCommunicate request_size=4 [19:46:44]MH_SAM_APDU [19:46:44]CAPDU: 80 13 01 00 [19:46:44]Write to MH i2c: E2 08 00 FE 45 80 13 01 00 00 00 00 00 C0 [19:46:44]Write i2c OK [19:46:44]MH_I2C_Read... [19:46:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:46:44]Read from MH i2c: E2 [19:46:44]MH_I2C_Read... [19:46:44]Read from MH i2c: E2 0E 00 [19:46:44]MH_I2C_Read... [19:46:44]Read from MH i2c: E2 0E 00 FE 45 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 82 [19:46:44]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [19:46:44]wFMCommunicate OK [19:46:44]SAM_PROTO_GetShiftState done [19:46:44]FM_GetShiftState done [19:46:44]req_shift_opened done [19:46:44]requested_item shift.open_date is exist - process it [19:46:44]req_shift_open_date [19:46:44]req_shift_open_date done [19:46:44]produce_requested_data done [19:46:44]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123335,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [19:46:44]process_action_free close_receipt [19:46:44]json_value_free [19:46:44]json_value_free done [19:46:44]process_json_proto returns [19:46:44]Send response to host [19:46:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123335,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [19:46:44]free response buf [19:46:44]execute_script done [19:46:44]execute_script returns [19:46:44]free content buf [19:46:44]Sock 7.Close socket [19:46:44]Sock 7.Thread stoped [19:46:46]OFD Sender: No OFD packet to send [19:46:51]OFD Sender: No OFD packet to send [19:46:53]accept exits with 9 [19:46:53]New connection [19:46:53]New thread 3067252068 created [19:46:53]Thread 3067395428 joined [19:46:53]Waiting for new connection... [19:46:53] Sock 9.Parse request [19:46:53]Sock 9.Check first char [19:46:53]Sock 9.First char is OK [19:46:53]request: POST /json_proto HTTP/1.0 [19:46:53]Method: POST [19:46:53]URL: /json_proto [19:46:53]Method is POST - this is cgi request [19:46:53]url: /json_proto [19:46:53]query_string will be loaded in cgi processing [19:46:53]execute_cgi json_proto POST (null) [19:46:53]execute_cgi path=json_proto method=POST [19:46:53]POST find Content-Length [19:46:53]Host: 172.17.48.197:8080 [19:46:53]Content-Length: 820 [19:46:53]Content-Type: application/json [19:46:53] [19:46:53]POST finish read [19:46:53]Found Content-Length = 820 [19:46:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106294", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.30 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:46:53]execute_script... [19:46: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)1106294", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.30 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:46:53]POST & json_proto [19:46:53]process_json_proto [19:46:53]json parsed OK: [19:46:53]protocol is kg_v1.0 [19:46:53]action value=close_receipt [19:46:53]process_action close_receipt [19:46:53]cmd_close_receipt [19:46:53]MH_GetDate [19:46:53]Write to MH i2c: F0 00 00 FF 45 33 [19:46:53]Write i2c OK [19:46:53]MH_I2C_Read... [19:46:53]Read from MH i2c: F0 [19:46:53]MH_I2C_Read... [19:46:53]Read from MH i2c: F0 09 00 [19:46:53]MH_I2C_Read... [19:46:53]Read from MH i2c: F0 09 00 FF 45 00 B1 D3 E4 65 6C AF E3 65 6C [19:46:53]GetLastDocTimeStamp 1709495203 [19:46:53]current date 1709495217 [19:46:53]FM_GetShiftState [19:46:53]SAM_PROTO_GetShiftState [19:46:53]wFMCommunicate request_size=4 [19:46:53]MH_SAM_APDU [19:46:53]CAPDU: 80 13 01 00 [19:46:53]Write to MH i2c: E2 08 00 00 46 80 13 01 00 00 00 00 00 C3 [19:46:53]Write i2c OK [19:46:53]MH_I2C_Read... [19:46:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:46:53]Read from MH i2c: E2 [19:46:53]MH_I2C_Read... [19:46:53]Read from MH i2c: E2 0E 00 [19:46:53]MH_I2C_Read... [19:46:53]Read from MH i2c: E2 0E 00 00 46 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 85 [19:46:53]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [19:46:53]wFMCommunicate OK [19:46:53]SAM_PROTO_GetShiftState done [19:46:53]FM_GetShiftState done [19:46:53]opened in 1709425579 [19:46:53]opened+sec_in_day 1709511979 [19:46:53]quantity*price = 100030 [19:46:53]sum+1 = 100031 [19:46:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.30 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 0.00 Безнал.: 1000.30 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 193 03.03.2024 19:46 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874798 ФД: 123336 ФПД: 7262281024671 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T194657&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123336&fm=7262281024671&tin=02508201610067®Number=0000000000090573&sum=100030 [19:46:54]StoreToDocumentArchive [19:46:54]shift 323 fd 123336 [19:46:54]save to /storage/0323/doc_00123336 [19:46:54]save last doc name /storage/0323/doc_00123336 to /storage/kkm_last_doc_name [19:46:54]save OK [19:46:54]Clear old archive folders... [19:46:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:46:54]tlvbuf is 00F05090 [19:46:54]SAM_PROTO_ClearQueue [19:46:54]wFMCommunicate request_size=4 [19:46:54]MH_SAM_APDU [19:46:54]CAPDU: 80 09 00 00 [19:46:54]Write to MH i2c: E2 08 00 0D 46 80 09 00 00 00 00 00 00 C5 [19:46:54]Write i2c OK [19:46:54]MH_I2C_Read... [19:46:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:46:54]Read from MH i2c: E2 [19:46:54]MH_I2C_Read... [19:46:54]Read from MH i2c: E2 03 00 [19:46:54]MH_I2C_Read... [19:46:54]Read from MH i2c: E2 03 00 0D 46 00 90 00 C7 [19:46:54]RAPDU: 90 00 [19:46:54]wFMCommunicate OK [19:46:54]SAM_PROTO_ClearQueue done [19:46:54]KKMCreateOFDPacket [19:46:54]OFDProtocolAddRootSTLVToBuf [19:46:54]FM_MakeSignedData [19:46:54]FM_MakeSignedData [19:46:54]SAM_PROTO_SignData [19:46:54]wFMCommunicate request_size=4 [19:46:54]MH_SAM_APDU [19:46:54]CAPDU: 80 0D 01 02 [19:46:54]Write to MH i2c: E2 08 00 0E 46 80 0D 01 02 00 00 00 00 CD [19:46:54]Write i2c OK [19:46:54]MH_I2C_Read... [19:46:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:46:54]Read from MH i2c: E2 [19:46:54]MH_I2C_Read... [19:46:54]Read from MH i2c: E2 03 00 [19:46:54]MH_I2C_Read... [19:46:54]Read from MH i2c: E2 03 00 0E 46 00 90 00 C8 [19:46:54]RAPDU: 90 00 [19:46:54]wFMCommunicate OK [19:46:54]wFMCommunicate request_size=255 [19:46:54]MH_SAM_APDU [19:46:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 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 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 B1 D3 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 C8 E1 01 00 35 04 06 00 06 [19:46:54]Write to MH i2c: E2 02 01 0F 46 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 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 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 B1 D3 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 C8 E1 01 00 35 04 06 00 06 00 00 F7 [19:46:54]Write i2c OK [19:46:54]MH_I2C_Read... [19:46:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:46:54]Read from MH i2c: E2 [19:46:54]MH_I2C_Read... [19:46:54]Read from MH i2c: E2 03 00 [19:46:54]MH_I2C_Read... [19:46:54]Read from MH i2c: E2 03 00 0F 46 00 90 00 C9 [19:46:54]RAPDU: 90 00 [19:46:54]wFMCommunicate OK [19:46:54]wFMCommunicate request_size=10 [19:46:54]MH_SAM_APDU [19:46:54]CAPDU: 80 0D 02 02 05 9A E1 AE 44 9F [19:46:54]Write to MH i2c: E2 0D 00 10 46 80 0D 02 02 05 00 9A E1 AE 44 9F 00 00 E6 [19:46:54]Write i2c OK [19:46:54]MH_I2C_Read... [19:46:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:46:54]Read from MH i2c: E2 [19:46:54]MH_I2C_Read... [19:46:54]Read from MH i2c: E2 03 00 [19:46:54]MH_I2C_Read... [19:46:54]Read from MH i2c: E2 03 00 10 46 00 90 00 CA [19:46:54]RAPDU: 90 00 [19:46:54]wFMCommunicate OK [19:46:54]wFMCommunicate request_size=4 [19:46:54]MH_SAM_APDU [19:46:54]CAPDU: 80 0D 03 02 [19:46:54]Write to MH i2c: E2 08 00 11 46 80 0D 03 02 00 00 00 00 D2 [19:46:54]Write i2c OK [19:46:54]MH_I2C_Read... [19:46:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:46:54]Read from MH i2c: E2 [19:46:54]MH_I2C_Read... [19:46:54]Read from MH i2c: E2 0B 00 [19:46:54]MH_I2C_Read... [19:46:54]Read from MH i2c: E2 0B 00 11 46 00 1B A9 CC FE 6A 70 A1 1E 90 00 FA [19:46:54]RAPDU: 1B A9 CC FE 6A 70 A1 1E 90 00 [19:46:54]wFMCommunicate OK [19:46:54]SAM_PROTO_SignData done [19:46:54]FM_MakeSignedData done [19:46:54]CreateOFDProtocolMessage [19:46:54]wFMCommunicate request_size=4 [19:46:54]MH_SAM_APDU [19:46:54]CAPDU: 80 11 00 00 [19:46:54]Write to MH i2c: E2 08 00 12 46 80 11 00 00 00 00 00 00 D2 [19:46:54]Write i2c OK [19:46:54]MH_I2C_Read... [19:46:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:46:54]Read from MH i2c: E2 [19:46:54]MH_I2C_Read... [19:46:54]Read from MH i2c: E2 17 00 [19:46:54]MH_I2C_Read... [19:46:54]Read from MH i2c: E2 17 00 12 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 30 [19:46:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [19:46:54]wFMCommunicate OK [19:46:54]CreateOFDProtocolMessage done [19:46:54]OFDSenderStorePacket 123336 [19:46:54]StoreOFDPacket docnum=123336 [19:46:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 00 4A 07 01 AC 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 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 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 B1 D3 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 C8 E1 01 00 35 04 06 00 06 9A E1 AE 44 9F 1B A9 CC FE 6A 70 A1 1E [19:46:54]CheckFolder [19:46:54]dirname=/storage/ofd_packets [19:46:54]CheckFolder done [19:46:54]ProducePacketName [19:46:54]name=ofd_packets/00123336 [19:46:54]NVStorageSaveData ofd_packets/00123336 [19:46:54]File name is /storage/ofd_packets/00123336 [19:46:54]Write 301 bytes [19:46:54]NVStorageSaveData done [19:46:54]OFDSenderStorePacket done [19:46:54]KKMCreateOFDPacket done [19:46:54]NVStorageSaveData kkm_last_timestamp [19:46:54]File name is /storage/kkm_last_timestamp [19:46:54]Write 4 bytes [19:46:54]NVStorageSaveData done [19:46:54]ExternCall_PrintAddStr [19:46:54]wPrintStart [19:46:54]Write to MH i2c: 01 00 00 13 46 59 [19:46:54]Write i2c OK [19:46:54]MH_I2C_Read... [19:46:54]Read from MH i2c: 01 [19:46:54]MH_I2C_Read... [19:46:54]Read from MH i2c: 01 07 00 [19:46:54]MH_I2C_Read... [19:46:54]Read from MH i2c: 01 07 00 13 46 00 00 00 00 00 FF 0F 6E [19:46:54]RasterBufferAndPrint [19:46:54]line Счет N : (1)1106294 [19:46:54]line ИНН: 02508201610067 [19:46:54]line Контрольно-Кассовый Чек [19:46:54]line ПРОДАЖА [19:46:54]line ТРК (МРК, ГНК) : 52 [19:46:54]line Товар: 2710124130 [19:46:54]line Аи-92-К-5 [19:46:54]line 16.160 * 61.90 [19:46:54]line = 1000.30 [19:46:54]line НДС 12% НСП 1% [19:46:54]line > о реализуемом товаре [19:46:54]line ИТОГО: 1000.30 [19:46:54]line НСП 1% : 8.85 [19:46:54]line НДС 12% : 106.23 [19:46:54]line Наличными: 0.00 [19:46:54]line Безнал.: 1000.30 [19:46:54]line Место: АЗС № 25 "Партнер Нефть" [19:46:54]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [19:46:54]line СНО: Общий режим [19:46:54]line Чек 193 03.03.2024 19:46 [19:46:54]line Смена: 323 ФФД: 1.0 [19:46:54]line ЗНМ: 0300000019 [19:46:54]line РНМ: 0000000000090573 [19:46:54]line Версия ККМ: 001 [19:46:54]line Платежная система: Бакай Банк [19:46:54]line ФМ: 0000000000874798 [19:46:54]line ФД: 123336 [19:46:54]line ФПД: 7262281024671 [19:46:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T194657&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123336&fm=7262281024671&tin=02508201610067®Number=0000000000090573&sum=100030 [19:46:55]OFD Sender: Processing packet 123336 [packets to send 112, broken 111] [19:46:55]ProducePacketName [19:46:55]name=ofd_packets/00123336 [19:46:55]OFD Sender: To server: pG, [19:46:55]CommunicateWithHost lk.salyk.kg:30040 [19:46:55]ConnectInit lk.salyk.kg [19:46:55]written 0, free lines is 4095 [19:46:55]Connected sock=10 [19:46: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 37 39 38 0F 01 00 00 00 4A 07 01 AC 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 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 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 B1 D3 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 C8 E1 01 00 35 04 06 00 06 9A E1 AE 44 9F 1B A9 CC FE 6A 70 A1 1E [19:46:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 79 56 47 00 96 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 37 39 38 10 04 04 00 C8 E1 01 00 F4 03 04 00 DC 7F E4 65 B6 04 01 00 00 4C 20 1A 6A E1 30 C4 B5 [19:46:55]CommunicateWithHost err = 0 [19:46:55]CheckOFDResponse [19:46:55]1017 (14) - 77093643461234 [19:46:55]1041 (16) - 0000000000874798 [19:46:55]1040 (4) - 123336 [19:46:55]1012 (4) - 03.03.2024 13:49 [19:46:55]1206 (1) - 0 [19:46:55]OFD Sender: Remove packet 123336 [19:46:55]ProducePacketName [19:46:55]name=ofd_packets/00123336 [19:46:55]NVStorageDeleteData [19:46:55]Write to MH i2c: 01 00 00 3D 46 83 [19:46:55]Write i2c OK [19:46:55]MH_I2C_Read... [19:46:55]Read from MH i2c: 01 [19:46:55]MH_I2C_Read... [19:46:55]Read from MH i2c: 01 07 00 [19:46:55]MH_I2C_Read... [19:46:55]Read from MH i2c: 01 07 00 3D 46 00 00 00 00 00 FA 0C 90 [19:46:55]RasterBufferAndPrint [19:46:55]line [19:46:55]line [19:46:55]line [19:46:55]line [19:46:55]line [19:46:55]written 0, free lines is 3329 [19:46:55]MH_Cut [19:46:55]Write to MH i2c: D1 01 00 44 46 01 5C [19:46:55]Write i2c OK [19:46:55]MH_I2C_Read... [19:46:55]Read from MH i2c: D1 [19:46:55]MH_I2C_Read... [19:46:55]Read from MH i2c: D1 01 00 [19:46:55]MH_I2C_Read... [19:46:55]Read from MH i2c: D1 01 00 44 46 00 5B [19:46:55]Write to MH i2c: 01 00 00 45 46 8B [19:46:55]Write i2c OK [19:46:55]MH_I2C_Read... [19:46:55]OFD Sender: No OFD packet to send [19:46:56]*** Cut start [19:46:56]*** Purtial cut [19:46:56]*** Stage 1: CUTSNS_PIN = 1 [19:46:58]Read from MH i2c: 01 [19:46:58]MH_I2C_Read... [19:46:58]*** Stop cut motor [19:46:58]*** Cut end [19:46:58]Read from MH i2c: 01 07 00 [19:46:58]MH_I2C_Read... [19:46:58]Read from MH i2c: 01 07 00 45 46 00 00 00 00 00 FF 0F A0 [19:46:58]process_action close_receipt done [19:46:58]requested_data is exist [19:46:58]produce_requested_data [19:46:58]requested_item fm.sn is exist - process it [19:46:58]wFMCommunicate request_size=4 [19:46:58]MH_SAM_APDU [19:46:58]CAPDU: 80 11 00 00 [19:46:58]Write to MH i2c: E2 08 00 46 46 80 11 00 00 00 00 00 00 06 [19:46:58]Write i2c OK [19:46:58]MH_I2C_Read... [19:46:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:46:58]Read from MH i2c: E2 [19:46:58]MH_I2C_Read... [19:46:58]Read from MH i2c: E2 17 00 [19:46:58]MH_I2C_Read... [19:46:58]Read from MH i2c: E2 17 00 46 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 64 [19:46:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [19:46:58]wFMCommunicate OK [19:46:58]requested_item fd.num is exist - process it [19:46:58]SAM_PROTO_GetFieldsCounters [19:46:58]wFMCommunicate request_size=4 [19:46:58]MH_SAM_APDU [19:46:58]CAPDU: 80 13 00 00 [19:46:58]Write to MH i2c: E2 08 00 47 46 80 13 00 00 00 00 00 00 09 [19:46:58]Write i2c OK [19:46:58]MH_I2C_Read... [19:46:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:46:58]Read from MH i2c: E2 [19:46:58]MH_I2C_Read... [19:46:58]Read from MH i2c: E2 62 00 [19:46:58]MH_I2C_Read... [19:46:58]Read from MH i2c: E2 62 00 47 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 C8 E1 01 00 0E 04 04 00 43 01 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 65 [19:46: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 C8 E1 01 00 0E 04 04 00 43 01 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 [19:46:58]wFMCommunicate OK [19:46:58]SAM_PROTO_GetFieldsCounters done [19:46:58]requested_item shift.num is exist - process it [19:46:58]requested_item shift.opened is exist - process it [19:46:58]req_shift_opened [19:46:58]FM_GetShiftState [19:46:58]SAM_PROTO_GetShiftState [19:46:58]wFMCommunicate request_size=4 [19:46:58]MH_SAM_APDU [19:46:58]CAPDU: 80 13 01 00 [19:46:58]Write to MH i2c: E2 08 00 48 46 80 13 01 00 00 00 00 00 0B [19:46:58]Write i2c OK [19:46:58]MH_I2C_Read... [19:46:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:46:58]Read from MH i2c: E2 [19:46:58]MH_I2C_Read... [19:46:58]Read from MH i2c: E2 0E 00 [19:46:58]MH_I2C_Read... [19:46:58]Read from MH i2c: E2 0E 00 48 46 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 CD [19:46:58]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [19:46:58]wFMCommunicate OK [19:46:58]SAM_PROTO_GetShiftState done [19:46:58]FM_GetShiftState done [19:46:58]req_shift_opened done [19:46:58]requested_item shift.open_date is exist - process it [19:46:58]req_shift_open_date [19:46:58]req_shift_open_date done [19:46:58]produce_requested_data done [19:46:58]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123336,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [19:46:58]process_action_free close_receipt [19:46:58]json_value_free [19:46:58]json_value_free done [19:46:58]process_json_proto returns [19:46:58]Send response to host [19:46:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123336,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [19:46:58]free response buf [19:46:58]execute_script done [19:46:58]execute_script returns [19:46:58]free content buf [19:46:58]Sock 9.Close socket [19:46:58]Sock 9.Thread stoped [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]accept exits with 7 [19:47:30]New connection [19:47:30]New thread 3067395428 created [19:47:30]Thread 3067252068 joined [19:47:30]Waiting for new connection... [19:47:30] Sock 7.Parse request [19:47:30]Sock 7.Check first char [19:47:30]Sock 7.First char is OK [19:47:30]request: POST /json_proto HTTP/1.0 [19:47:30]Method: POST [19:47:30]URL: /json_proto [19:47:30]Method is POST - this is cgi request [19:47:30]url: /json_proto [19:47:30]query_string will be loaded in cgi processing [19:47:30]execute_cgi json_proto POST (null) [19:47:30]execute_cgi path=json_proto method=POST [19:47:30]POST find Content-Length [19:47:30]Host: 172.17.48.197:8080 [19:47:30]Content-Length: 678 [19:47:30]Content-Type: application/json [19:47:30] [19:47:30]POST finish read [19:47:30]Found Content-Length = 678 [19:47:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106296", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 2.430, "sum" : 150.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:47:30]execute_script... [19:47: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)1106296", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 2.430, "sum" : 150.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:47:30]POST & json_proto [19:47:30]process_json_proto [19:47:30]json parsed OK: [19:47:30]protocol is kg_v1.0 [19:47:30]action value=close_receipt [19:47:30]process_action close_receipt [19:47:30]cmd_close_receipt [19:47:30]MH_GetDate [19:47:30]Write to MH i2c: F0 00 00 49 46 7E [19:47:30]Write i2c OK [19:47:30]MH_I2C_Read... [19:47:30]Read from MH i2c: F0 [19:47:30]MH_I2C_Read... [19:47:30]Read from MH i2c: F0 09 00 [19:47:30]MH_I2C_Read... [19:47:30]Read from MH i2c: F0 09 00 49 46 00 D7 D3 E4 65 6C AF E3 65 DD [19:47:30]GetLastDocTimeStamp 1709495217 [19:47:30]current date 1709495255 [19:47:30]FM_GetShiftState [19:47:30]SAM_PROTO_GetShiftState [19:47:30]wFMCommunicate request_size=4 [19:47:30]MH_SAM_APDU [19:47:30]CAPDU: 80 13 01 00 [19:47:30]Write to MH i2c: E2 08 00 4A 46 80 13 01 00 00 00 00 00 0D [19:47:30]Write i2c OK [19:47:30]MH_I2C_Read... [19:47:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:47:30]Read from MH i2c: E2 [19:47:30]MH_I2C_Read... [19:47:30]Read from MH i2c: E2 0E 00 [19:47:30]MH_I2C_Read... [19:47:30]Read from MH i2c: E2 0E 00 4A 46 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 CF [19:47:30]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [19:47:30]wFMCommunicate OK [19:47:30]SAM_PROTO_GetShiftState done [19:47:30]FM_GetShiftState done [19:47:30]opened in 1709425579 [19:47:30]opened+sec_in_day 1709511979 [19:47:30]quantity*price = 15041 [19:47:30]sum+1 = 15043 [19:47:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 150.00 Внесено: 150.00 СДАЧА: 0.00 НСП 1% : 1.33 НДС 12% : 15.97 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 194 03.03.2024 19:47 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123337 ФПД: 184273061336926 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T194735&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123337&fm=184273061336926&tin=02508201610067®Number=0000000000090573&sum=15000 [19:47:31]StoreToDocumentArchive [19:47:31]shift 323 fd 123337 [19:47:31]save to /storage/0323/doc_00123337 [19:47:31]save last doc name /storage/0323/doc_00123337 to /storage/kkm_last_doc_name [19:47:32]save OK [19:47:32]Clear old archive folders... [19:47:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:47:32]tlvbuf is 00E29CB0 [19:47:32]SAM_PROTO_ClearQueue [19:47:32]wFMCommunicate request_size=4 [19:47:32]MH_SAM_APDU [19:47:32]CAPDU: 80 09 00 00 [19:47:32]Write to MH i2c: E2 08 00 57 46 80 09 00 00 00 00 00 00 0F [19:47:32]Write i2c OK [19:47:32]MH_I2C_Read... [19:47:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:47:32]Read from MH i2c: E2 [19:47:32]MH_I2C_Read... [19:47:32]Read from MH i2c: E2 03 00 [19:47:32]MH_I2C_Read... [19:47:32]Read from MH i2c: E2 03 00 57 46 00 90 00 11 [19:47:32]RAPDU: 90 00 [19:47:32]wFMCommunicate OK [19:47:32]SAM_PROTO_ClearQueue done [19:47:32]KKMCreateOFDPacket [19:47:32]OFDProtocolAddRootSTLVToBuf [19:47:32]FM_MakeSignedData [19:47:32]FM_MakeSignedData [19:47:32]SAM_PROTO_SignData [19:47:32]wFMCommunicate request_size=4 [19:47:32]MH_SAM_APDU [19:47:32]CAPDU: 80 0D 01 02 [19:47:32]Write to MH i2c: E2 08 00 58 46 80 0D 01 02 00 00 00 00 17 [19:47:32]Write i2c OK [19:47:32]MH_I2C_Read... [19:47:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:47:32]Read from MH i2c: E2 [19:47:32]MH_I2C_Read... [19:47:32]Read from MH i2c: E2 03 00 [19:47:32]MH_I2C_Read... [19:47:32]Read from MH i2c: E2 03 00 58 46 00 90 00 12 [19:47:32]RAPDU: 90 00 [19:47:32]wFMCommunicate OK [19:47:32]wFMCommunicate request_size=255 [19:47:32]MH_SAM_APDU [19:47:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 09 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 C2 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 3D 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 C2 00 00 00 F4 03 04 00 D7 D3 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 C9 E1 01 00 35 04 06 00 A7 [19:47:32]Write to MH i2c: E2 02 01 59 46 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 09 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 C2 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 3D 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 C2 00 00 00 F4 03 04 00 D7 D3 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 C9 E1 01 00 35 04 06 00 A7 00 00 AB [19:47:32]Write i2c OK [19:47:32]MH_I2C_Read... [19:47:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:47:32]Read from MH i2c: E2 [19:47:32]MH_I2C_Read... [19:47:32]Read from MH i2c: E2 03 00 [19:47:32]MH_I2C_Read... [19:47:32]Read from MH i2c: E2 03 00 59 46 00 90 00 13 [19:47:32]RAPDU: 90 00 [19:47:32]wFMCommunicate OK [19:47:32]wFMCommunicate request_size=10 [19:47:32]MH_SAM_APDU [19:47:32]CAPDU: 80 0D 02 02 05 98 6A 5C D7 5E [19:47:32]Write to MH i2c: E2 0D 00 5A 46 80 0D 02 02 05 00 98 6A 5C D7 5E 00 00 B7 [19:47:32]Write i2c OK [19:47:32]MH_I2C_Read... [19:47:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:47:32]Read from MH i2c: E2 [19:47:32]MH_I2C_Read... [19:47:32]Read from MH i2c: E2 03 00 [19:47:32]MH_I2C_Read... [19:47:32]Read from MH i2c: E2 03 00 5A 46 00 90 00 14 [19:47:32]RAPDU: 90 00 [19:47:32]wFMCommunicate OK [19:47:32]wFMCommunicate request_size=4 [19:47:32]MH_SAM_APDU [19:47:32]CAPDU: 80 0D 03 02 [19:47:32]Write to MH i2c: E2 08 00 5B 46 80 0D 03 02 00 00 00 00 1C [19:47:32]Write i2c OK [19:47:32]MH_I2C_Read... [19:47:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:47:32]Read from MH i2c: E2 [19:47:32]MH_I2C_Read... [19:47:32]Read from MH i2c: E2 0B 00 [19:47:32]MH_I2C_Read... [19:47:32]Read from MH i2c: E2 0B 00 5B 46 00 7E 82 4D 15 70 7A AC A0 90 00 B5 [19:47:32]RAPDU: 7E 82 4D 15 70 7A AC A0 90 00 [19:47:32]wFMCommunicate OK [19:47:32]SAM_PROTO_SignData done [19:47:32]FM_MakeSignedData done [19:47:32]CreateOFDProtocolMessage [19:47:32]wFMCommunicate request_size=4 [19:47:32]MH_SAM_APDU [19:47:32]CAPDU: 80 11 00 00 [19:47:32]Write to MH i2c: E2 08 00 5C 46 80 11 00 00 00 00 00 00 1C [19:47:32]Write i2c OK [19:47:32]MH_I2C_Read... [19:47:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:47:32]Read from MH i2c: E2 [19:47:32]MH_I2C_Read... [19:47:32]Read from MH i2c: E2 17 00 [19:47:32]MH_I2C_Read... [19:47:32]Read from MH i2c: E2 17 00 5C 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 7A [19:47:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [19:47:32]wFMCommunicate OK [19:47:32]CreateOFDProtocolMessage done [19:47:32]OFDSenderStorePacket 123337 [19:47:32]StoreOFDPacket docnum=123337 [19:47:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 C4 AA 07 01 D9 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 09 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 C2 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 3D 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 C2 00 00 00 F4 03 04 00 D7 D3 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 C9 E1 01 00 35 04 06 00 A7 98 6A 5C D7 5E 7E 82 4D 15 70 7A AC A0 [19:47:32]CheckFolder [19:47:32]dirname=/storage/ofd_packets [19:47:32]CheckFolder done [19:47:32]ProducePacketName [19:47:32]name=ofd_packets/00123337 [19:47:32]NVStorageSaveData ofd_packets/00123337 [19:47:32]File name is /storage/ofd_packets/00123337 [19:47:32]Write 301 bytes [19:47:32]NVStorageSaveData done [19:47:32]OFDSenderStorePacket done [19:47:32]KKMCreateOFDPacket done [19:47:32]NVStorageSaveData kkm_last_timestamp [19:47:32]File name is /storage/kkm_last_timestamp [19:47:32]Write 4 bytes [19:47:32]NVStorageSaveData done [19:47:32]ExternCall_PrintAddStr [19:47:32]wPrintStart [19:47:32]Write to MH i2c: 01 00 00 5D 46 A3 [19:47:32]Write i2c OK [19:47:32]MH_I2C_Read... [19:47:32]Read from MH i2c: 01 [19:47:32]MH_I2C_Read... [19:47:32]Read from MH i2c: 01 07 00 [19:47:32]MH_I2C_Read... [19:47:32]Read from MH i2c: 01 07 00 5D 46 00 00 00 00 00 FF 0F B8 [19:47:32]RasterBufferAndPrint [19:47:32]line Счет N : (1)1106296 [19:47:32]line ИНН: 02508201610067 [19:47:32]line Контрольно-Кассовый Чек [19:47:32]line ПРОДАЖА [19:47:32]line ТРК (МРК, ГНК) : 42 [19:47:32]line Товар: 2710124130 [19:47:32]line Аи-92-К-5 [19:47:32]line 2.430 * 61.90 [19:47:32]line = 150.42 [19:47:32]line НДС 12% НСП 1% [19:47:32]line > о реализуемом товаре [19:47:32]line ОКРУГЛЕНИЕ: -0.42 [19:47:32]line ИТОГО: 150.00 [19:47:32]line Внесено: 150.00 [19:47:32]line СДАЧА: 0.00 [19:47:32]line НСП 1% : 1.33 [19:47:32]line НДС 12% : 15.97 [19:47:32]line Наличными: 150.00 [19:47:32]line Безнал.: 0.00 [19:47:32]line Место: АЗС № 25 "Партнер Нефть" [19:47:32]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [19:47:32]line СНО: Общий режим [19:47:32]line Чек 194 03.03.2024 19:47 [19:47:32]line Смена: 323 ФФД: 1.0 [19:47:32]line ЗНМ: 0300000019 [19:47:32]line РНМ: 0000000000090573 [19:47:32]line Версия ККМ: 001 [19:47:32]line ФМ: 0000000000874798 [19:47:32]line ФД: 123337 [19:47:32]line ФПД: 184273061336926 [19:47:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T194735&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123337&fm=184273061336926&tin=02508201610067®Number=0000000000090573&sum=15000 [19:47:32]OFD Sender: Processing packet 123337 [packets to send 112, broken 111] [19:47:32]ProducePacketName [19:47:32]name=ofd_packets/00123337 [19:47:32]OFD Sender: To server: pG, [19:47:32]CommunicateWithHost lk.salyk.kg:30040 [19:47:32]ConnectInit lk.salyk.kg [19:47:32]written 0, free lines is 4095 [19:47:32]Connected sock=10 [19:47: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 37 39 38 0F 01 00 00 C4 AA 07 01 D9 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 09 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 C2 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 3D 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 C2 00 00 00 F4 03 04 00 D7 D3 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 C9 E1 01 00 35 04 06 00 A7 98 6A 5C D7 5E 7E 82 4D 15 70 7A AC A0 [19:47:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 78 92 47 00 29 EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 C9 E1 01 00 F4 03 04 00 02 80 E4 65 B6 04 01 00 00 65 15 AB 82 A6 FF 3B 70 [19:47:33]CommunicateWithHost err = 0 [19:47:33]CheckOFDResponse [19:47:33]1017 (14) - 77093643461234 [19:47:33]1041 (16) - 0000000000874798 [19:47:33]1040 (4) - 123337 [19:47:33]1012 (4) - 03.03.2024 13:49 [19:47:33]1206 (1) - 0 [19:47:33]OFD Sender: Remove packet 123337 [19:47:33]ProducePacketName [19:47:33]name=ofd_packets/00123337 [19:47:33]NVStorageDeleteData [19:47:33]Write to MH i2c: 01 00 00 88 46 CE [19:47:33]Write i2c OK [19:47:33]MH_I2C_Read... [19:47:33]Read from MH i2c: 01 [19:47:33]MH_I2C_Read... [19:47:33]Read from MH i2c: 01 07 00 [19:47:33]MH_I2C_Read... [19:47:33]Read from MH i2c: 01 07 00 88 46 00 00 00 00 00 E3 0C C4 [19:47:33]RasterBufferAndPrint [19:47:33]line [19:47:33]line [19:47:33]line [19:47:33]line [19:47:33]line [19:47:33]written 0, free lines is 3305 [19:47:33]MH_Cut [19:47:33]Write to MH i2c: D1 01 00 8F 46 01 A7 [19:47:33]Write i2c OK [19:47:33]MH_I2C_Read... [19:47:33]Read from MH i2c: D1 [19:47:33]MH_I2C_Read... [19:47:33]Read from MH i2c: D1 01 00 [19:47:33]MH_I2C_Read... [19:47:33]Read from MH i2c: D1 01 00 8F 46 00 A6 [19:47:33]Write to MH i2c: 01 00 00 90 46 D6 [19:47:33]Write i2c OK [19:47:33]MH_I2C_Read... [19:47:33]OFD Sender: No OFD packet to send [19:47:34]*** Cut start [19:47:34]*** Purtial cut [19:47:34]*** Stage 1: CUTSNS_PIN = 1 [19:47:36]Read from MH i2c: 01 [19:47:36]MH_I2C_Read... [19:47:36]*** Stop cut motor [19:47:36]*** Cut end [19:47:36]Read from MH i2c: 01 07 00 [19:47:36]MH_I2C_Read... [19:47:36]Read from MH i2c: 01 07 00 90 46 00 00 00 00 00 FF 0F EB [19:47:36]process_action close_receipt done [19:47:36]requested_data is exist [19:47:36]produce_requested_data [19:47:36]requested_item fm.sn is exist - process it [19:47:36]wFMCommunicate request_size=4 [19:47:36]MH_SAM_APDU [19:47:36]CAPDU: 80 11 00 00 [19:47:36]Write to MH i2c: E2 08 00 91 46 80 11 00 00 00 00 00 00 51 [19:47:36]Write i2c OK [19:47:36]MH_I2C_Read... [19:47:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:47:36]Read from MH i2c: E2 [19:47:36]MH_I2C_Read... [19:47:36]Read from MH i2c: E2 17 00 [19:47:36]MH_I2C_Read... [19:47:36]Read from MH i2c: E2 17 00 91 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 AF [19:47:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [19:47:36]wFMCommunicate OK [19:47:36]requested_item fd.num is exist - process it [19:47:36]SAM_PROTO_GetFieldsCounters [19:47:36]wFMCommunicate request_size=4 [19:47:36]MH_SAM_APDU [19:47:36]CAPDU: 80 13 00 00 [19:47:36]Write to MH i2c: E2 08 00 92 46 80 13 00 00 00 00 00 00 54 [19:47:36]Write i2c OK [19:47:36]MH_I2C_Read... [19:47:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:47:36]Read from MH i2c: E2 [19:47:36]MH_I2C_Read... [19:47:36]Read from MH i2c: E2 62 00 [19:47:36]MH_I2C_Read... [19:47:36]Read from MH i2c: E2 62 00 92 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 C9 E1 01 00 0E 04 04 00 43 01 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 B4 [19:47: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 C9 E1 01 00 0E 04 04 00 43 01 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 [19:47:36]wFMCommunicate OK [19:47:36]SAM_PROTO_GetFieldsCounters done [19:47:36]requested_item shift.num is exist - process it [19:47:36]requested_item shift.opened is exist - process it [19:47:36]req_shift_opened [19:47:36]FM_GetShiftState [19:47:36]SAM_PROTO_GetShiftState [19:47:36]wFMCommunicate request_size=4 [19:47:36]MH_SAM_APDU [19:47:36]CAPDU: 80 13 01 00 [19:47:36]Write to MH i2c: E2 08 00 93 46 80 13 01 00 00 00 00 00 56 [19:47:36]Write i2c OK [19:47:36]MH_I2C_Read... [19:47:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:47:36]Read from MH i2c: E2 [19:47:36]MH_I2C_Read... [19:47:36]Read from MH i2c: E2 0E 00 [19:47:36]MH_I2C_Read... [19:47:36]Read from MH i2c: E2 0E 00 93 46 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 18 [19:47:36]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [19:47:36]wFMCommunicate OK [19:47:36]SAM_PROTO_GetShiftState done [19:47:36]FM_GetShiftState done [19:47:36]req_shift_opened done [19:47:36]requested_item shift.open_date is exist - process it [19:47:36]req_shift_open_date [19:47:36]req_shift_open_date done [19:47:36]produce_requested_data done [19:47:36]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123337,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [19:47:36]process_action_free close_receipt [19:47:36]json_value_free [19:47:36]json_value_free done [19:47:36]process_json_proto returns [19:47:36]Send response to host [19:47:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123337,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [19:47:36]free response buf [19:47:36]execute_script done [19:47:36]execute_script returns [19:47:36]free content buf [19:47:36]Sock 7.Close socket [19:47:36]Sock 7.Thread stoped [19:47:38]OFD Sender: No OFD packet to send [19:47:43]OFD Sender: No OFD packet to send [19:47:48]OFD Sender: No OFD packet to send [19:47:53]OFD Sender: No OFD packet to send [19:47:58]OFD Sender: No OFD packet to send [19:48:03]OFD Sender: No OFD packet to send [19:48:08]OFD Sender: No OFD packet to send [19:48:13]OFD Sender: No OFD packet to send [19:48:18]OFD Sender: No OFD packet to send [19:48:23]OFD Sender: No OFD packet to send [19:48:28]OFD Sender: No OFD packet to send [19:48:33]OFD Sender: No OFD packet to send [19:48:38]OFD Sender: No OFD packet to send [19:48:43]OFD Sender: No OFD packet to send [19:48:48]OFD Sender: No OFD packet to send [19:48:53]OFD Sender: No OFD packet to send [19:48:58]OFD Sender: No OFD packet to send [19:49:03]OFD Sender: No OFD packet to send [19:49:08]OFD Sender: No OFD packet to send [19:49:13]OFD Sender: No OFD packet to send [19:49:17]accept exits with 9 [19:49:17]New connection [19:49:17]New thread 3067252068 created [19:49:17]Thread 3067395428 joined [19:49:17]Waiting for new connection... [19:49:17] Sock 9.Parse request [19:49:17]Sock 9.Check first char [19:49:17]Sock 9.First char is OK [19:49:17]request: POST /json_proto HTTP/1.0 [19:49:17]Method: POST [19:49:17]URL: /json_proto [19:49:17]Method is POST - this is cgi request [19:49:17]url: /json_proto [19:49:17]query_string will be loaded in cgi processing [19:49:17]execute_cgi json_proto POST (null) [19:49:17]execute_cgi path=json_proto method=POST [19:49:17]POST find Content-Length [19:49:17]Host: 172.17.48.197:8080 [19:49:17]Content-Length: 817 [19:49:17]Content-Type: application/json [19:49:17] [19:49:17]POST finish read [19:49:17]Found Content-Length = 817 [19:49:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106293", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:49:17]execute_script... [19:49:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106293", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:49:17]POST & json_proto [19:49:17]process_json_proto [19:49:17]json parsed OK: [19:49:17]protocol is kg_v1.0 [19:49:17]action value=close_receipt [19:49:17]process_action close_receipt [19:49:17]cmd_close_receipt [19:49:17]MH_GetDate [19:49:17]Write to MH i2c: F0 00 00 94 46 C9 [19:49:17]Write i2c OK [19:49:17]MH_I2C_Read... [19:49:17]Read from MH i2c: F0 [19:49:17]MH_I2C_Read... [19:49:17]Read from MH i2c: F0 09 00 [19:49:17]MH_I2C_Read... [19:49:17]Read from MH i2c: F0 09 00 94 46 00 42 D4 E4 65 6C AF E3 65 94 [19:49:17]GetLastDocTimeStamp 1709495255 [19:49:17]current date 1709495362 [19:49:17]FM_GetShiftState [19:49:17]SAM_PROTO_GetShiftState [19:49:17]wFMCommunicate request_size=4 [19:49:17]MH_SAM_APDU [19:49:17]CAPDU: 80 13 01 00 [19:49:17]Write to MH i2c: E2 08 00 95 46 80 13 01 00 00 00 00 00 58 [19:49:17]Write i2c OK [19:49:17]MH_I2C_Read... [19:49:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:49:17]Read from MH i2c: E2 [19:49:17]MH_I2C_Read... [19:49:17]Read from MH i2c: E2 0E 00 [19:49:17]MH_I2C_Read... [19:49:17]Read from MH i2c: E2 0E 00 95 46 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 1A [19:49:17]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [19:49:17]wFMCommunicate OK [19:49:17]SAM_PROTO_GetShiftState done [19:49:17]FM_GetShiftState done [19:49:17]opened in 1709425579 [19:49:17]opened+sec_in_day 1709511979 [19:49:17]quantity*price = 50015 [19:49:17]sum+1 = 50016 [19:49:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.15 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.15 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 195 03.03.2024 19:49 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874798 ФД: 123338 ФПД: 37344908704341 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T194922&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123338&fm=37344908704341&tin=02508201610067®Number=0000000000090573&sum=50015 [19:49:18]StoreToDocumentArchive [19:49:18]shift 323 fd 123338 [19:49:18]save to /storage/0323/doc_00123338 [19:49:18]save last doc name /storage/0323/doc_00123338 to /storage/kkm_last_doc_name [19:49:18]save OK [19:49:18]Clear old archive folders... [19:49:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:49:18]tlvbuf is 00F04AC0 [19:49:18]SAM_PROTO_ClearQueue [19:49:18]wFMCommunicate request_size=4 [19:49:18]MH_SAM_APDU [19:49:18]CAPDU: 80 09 00 00 [19:49:18]Write to MH i2c: E2 08 00 A2 46 80 09 00 00 00 00 00 00 5A [19:49:18]Write i2c OK [19:49:18]MH_I2C_Read... [19:49:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:49:18]Read from MH i2c: E2 [19:49:18]MH_I2C_Read... [19:49:18]Read from MH i2c: E2 03 00 [19:49:18]MH_I2C_Read... [19:49:18]Read from MH i2c: E2 03 00 A2 46 00 90 00 5C [19:49:18]RAPDU: 90 00 [19:49:18]wFMCommunicate OK [19:49:18]SAM_PROTO_ClearQueue done [19:49:18]KKMCreateOFDPacket [19:49:18]OFDProtocolAddRootSTLVToBuf [19:49:18]FM_MakeSignedData [19:49:18]FM_MakeSignedData [19:49:18]SAM_PROTO_SignData [19:49:18]wFMCommunicate request_size=4 [19:49:18]MH_SAM_APDU [19:49:18]CAPDU: 80 0D 01 02 [19:49:18]Write to MH i2c: E2 08 00 A3 46 80 0D 01 02 00 00 00 00 62 [19:49:18]Write i2c OK [19:49:18]MH_I2C_Read... [19:49:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:49:18]Read from MH i2c: E2 [19:49:18]MH_I2C_Read... [19:49:18]Read from MH i2c: E2 03 00 [19:49:18]MH_I2C_Read... [19:49:18]Read from MH i2c: E2 03 00 A3 46 00 90 00 5D [19:49:18]RAPDU: 90 00 [19:49:18]wFMCommunicate OK [19:49:18]wFMCommunicate request_size=255 [19:49:18]MH_SAM_APDU [19:49:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 42 D4 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 CA E1 01 00 35 04 06 00 21 [19:49:18]Write to MH i2c: E2 02 01 A4 46 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 42 D4 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 OFD Sender: No OFD packet to send [19:49:18]10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 CA E1 01 00 35 04 06 00 21 00 00 93 [19:49:18]Write i2c OK [19:49:18]MH_I2C_Read... [19:49:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:49:19]Read from MH i2c: E2 [19:49:19]MH_I2C_Read... [19:49:19]Read from MH i2c: E2 03 00 [19:49:19]MH_I2C_Read... [19:49:19]Read from MH i2c: E2 03 00 A4 46 00 90 00 5E [19:49:19]RAPDU: 90 00 [19:49:19]wFMCommunicate OK [19:49:19]wFMCommunicate request_size=10 [19:49:19]MH_SAM_APDU [19:49:19]CAPDU: 80 0D 02 02 05 F7 0A 04 7A 55 [19:49:19]Write to MH i2c: E2 0D 00 A5 46 80 0D 02 02 05 00 F7 0A 04 7A 55 00 00 43 [19:49:19]Write i2c OK [19:49:19]MH_I2C_Read... [19:49:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:49:19]Read from MH i2c: E2 [19:49:19]MH_I2C_Read... [19:49:19]Read from MH i2c: E2 03 00 [19:49:19]MH_I2C_Read... [19:49:19]Read from MH i2c: E2 03 00 A5 46 00 90 00 5F [19:49:19]RAPDU: 90 00 [19:49:19]wFMCommunicate OK [19:49:19]wFMCommunicate request_size=4 [19:49:19]MH_SAM_APDU [19:49:19]CAPDU: 80 0D 03 02 [19:49:19]Write to MH i2c: E2 08 00 A6 46 80 0D 03 02 00 00 00 00 67 [19:49:19]Write i2c OK [19:49:19]MH_I2C_Read... [19:49:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:49:19]Read from MH i2c: E2 [19:49:19]MH_I2C_Read... [19:49:19]Read from MH i2c: E2 0B 00 [19:49:19]MH_I2C_Read... [19:49:19]Read from MH i2c: E2 0B 00 A6 46 00 41 72 5B 49 FC EE 0A E2 90 00 95 [19:49:19]RAPDU: 41 72 5B 49 FC EE 0A E2 90 00 [19:49:19]wFMCommunicate OK [19:49:19]SAM_PROTO_SignData done [19:49:19]FM_MakeSignedData done [19:49:19]CreateOFDProtocolMessage [19:49:19]wFMCommunicate request_size=4 [19:49:19]MH_SAM_APDU [19:49:19]CAPDU: 80 11 00 00 [19:49:19]Write to MH i2c: E2 08 00 A7 46 80 11 00 00 00 00 00 00 67 [19:49:19]Write i2c OK [19:49:19]MH_I2C_Read... [19:49:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:49:19]Read from MH i2c: E2 [19:49:19]MH_I2C_Read... [19:49:19]Read from MH i2c: E2 17 00 [19:49:19]MH_I2C_Read... [19:49:19]Read from MH i2c: E2 17 00 A7 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 C5 [19:49:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [19:49:19]wFMCommunicate OK [19:49:19]CreateOFDProtocolMessage done [19:49:19]OFDSenderStorePacket 123338 [19:49:19]StoreOFDPacket docnum=123338 [19:49:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 4D D9 07 01 23 B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 42 D4 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 CA E1 01 00 35 04 06 00 21 F7 0A 04 7A 55 41 72 5B 49 FC EE 0A E2 [19:49:19]CheckFolder [19:49:19]dirname=/storage/ofd_packets [19:49:19]CheckFolder done [19:49:19]ProducePacketName [19:49:19]name=ofd_packets/00123338 [19:49:19]NVStorageSaveData ofd_packets/00123338 [19:49:19]File name is /storage/ofd_packets/00123338 [19:49:19]Write 301 bytes [19:49:19]NVStorageSaveData done [19:49:19]OFDSenderStorePacket done [19:49:19]KKMCreateOFDPacket done [19:49:19]NVStorageSaveData kkm_last_timestamp [19:49:19]File name is /storage/kkm_last_timestamp [19:49:19]Write 4 bytes [19:49:19]NVStorageSaveData done [19:49:19]ExternCall_PrintAddStr [19:49:19]wPrintStart [19:49:19]Write to MH i2c: 01 00 00 A8 46 EE [19:49:19]Write i2c OK [19:49:19]MH_I2C_Read... [19:49:19]Read from MH i2c: 01 [19:49:19]MH_I2C_Read... [19:49:19]Read from MH i2c: 01 07 00 [19:49:19]MH_I2C_Read... [19:49:19]Read from MH i2c: 01 07 00 A8 46 00 00 00 00 00 FF 0F 03 [19:49:19]RasterBufferAndPrint [19:49:19]line Счет N : (1)1106293 [19:49:19]line ИНН: 02508201610067 [19:49:19]line Контрольно-Кассовый Чек [19:49:19]line ПРОДАЖА [19:49:19]line ТРК (МРК, ГНК) : 32 [19:49:19]line Товар: 2710124130 [19:49:19]line Аи-92-К-5 [19:49:19]line 8.080 * 61.90 [19:49:19]line = 500.15 [19:49:19]line НДС 12% НСП 1% [19:49:19]line > о реализуемом товаре [19:49:19]line ИТОГО: 500.15 [19:49:19]line НСП 1% : 4.43 [19:49:19]line НДС 12% : 53.11 [19:49:19]line Наличными: 0.00 [19:49:19]line Безнал.: 500.15 [19:49:19]line Место: АЗС № 25 "Партнер Нефть" [19:49:19]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [19:49:19]line СНО: Общий режим [19:49:19]line Чек 195 03.03.2024 19:49 [19:49:19]line Смена: 323 ФФД: 1.0 [19:49:19]line ЗНМ: 0300000019 [19:49:19]line РНМ: 0000000000090573 [19:49:19]line Версия ККМ: 001 [19:49:19]line Платежная система: Бакай Банк [19:49:19]line ФМ: 0000000000874798 [19:49:19]line ФД: 123338 [19:49:19]line ФПД: 37344908704341 [19:49:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T194922&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123338&fm=37344908704341&tin=02508201610067®Number=0000000000090573&sum=50015 [19:49:19]OFD Sender: Processing packet 123338 [packets to send 112, broken 111] [19:49:19]ProducePacketName [19:49:19]name=ofd_packets/00123338 [19:49:19]OFD Sender: To server: pG, [19:49:19]CommunicateWithHost lk.salyk.kg:30040 [19:49:19]ConnectInit lk.salyk.kg [19:49:19]written 0, free lines is 4095 [19:49:19]Connected sock=11 [19:49: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 37 39 38 0F 01 00 00 4D D9 07 01 23 B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 42 D4 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 CA E1 01 00 35 04 06 00 21 F7 0A 04 7A 55 41 72 5B 49 FC EE 0A E2 [19:49:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 23 B8 47 00 8D 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 37 39 38 10 04 04 00 CA E1 01 00 F4 03 04 00 6D 80 E4 65 B6 04 01 00 00 2C ED 45 E5 B8 92 90 0B [19:49:19]CommunicateWithHost err = 0 [19:49:19]CheckOFDResponse [19:49:19]1017 (14) - 77093643461234 [19:49:19]1041 (16) - 0000000000874798 [19:49:19]1040 (4) - 123338 [19:49:19]1012 (4) - 03.03.2024 13:51 [19:49:19]1206 (1) - 0 [19:49:19]OFD Sender: Remove packet 123338 [19:49:19]ProducePacketName [19:49:19]name=ofd_packets/00123338 [19:49:19]NVStorageDeleteData [19:49:19]Write to MH i2c: 01 00 00 D2 46 18 [19:49:19]Write i2c OK [19:49:19]MH_I2C_Read... [19:49:19]Read from MH i2c: 01 [19:49:19]MH_I2C_Read... [19:49:19]Read from MH i2c: 01 07 00 [19:49:19]MH_I2C_Read... [19:49:19]Read from MH i2c: 01 07 00 D2 46 00 00 00 00 00 F7 0C 22 [19:49:19]RasterBufferAndPrint [19:49:19]line [19:49:19]line [19:49:19]line [19:49:19]line [19:49:19]line [19:49:19]written 0, free lines is 3326 [19:49:20]MH_Cut [19:49:20]Write to MH i2c: D1 01 00 D9 46 01 F1 [19:49:20]Write i2c OK [19:49:20]MH_I2C_Read... [19:49:20]Read from MH i2c: D1 [19:49:20]MH_I2C_Read... [19:49:20]Read from MH i2c: D1 01 00 [19:49:20]MH_I2C_Read... [19:49:20]Read from MH i2c: D1 01 00 D9 46 00 F0 [19:49:20]Write to MH i2c: 01 00 00 DA 46 20 [19:49:20]Write i2c OK [19:49:20]MH_I2C_Read... [19:49:20]OFD Sender: No OFD packet to send [19:49:20]*** Cut start [19:49:20]*** Purtial cut [19:49:20]*** Stage 1: CUTSNS_PIN = 1 [19:49:22]Read from MH i2c: 01 [19:49:22]MH_I2C_Read... [19:49:22]*** Stop cut motor [19:49:22]*** Cut end [19:49:22]Read from MH i2c: 01 07 00 [19:49:22]MH_I2C_Read... [19:49:22]Read from MH i2c: 01 07 00 DA 46 00 00 00 00 00 FF 0F 35 [19:49:22]process_action close_receipt done [19:49:22]requested_data is exist [19:49:22]produce_requested_data [19:49:22]requested_item fm.sn is exist - process it [19:49:22]wFMCommunicate request_size=4 [19:49:22]MH_SAM_APDU [19:49:22]CAPDU: 80 11 00 00 [19:49:22]Write to MH i2c: E2 08 00 DB 46 80 11 00 00 00 00 00 00 9B [19:49:22]Write i2c OK [19:49:22]MH_I2C_Read... [19:49:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:49:22]Read from MH i2c: E2 [19:49:22]MH_I2C_Read... [19:49:22]Read from MH i2c: E2 17 00 [19:49:22]MH_I2C_Read... [19:49:22]Read from MH i2c: E2 17 00 DB 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 F9 [19:49:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [19:49:22]wFMCommunicate OK [19:49:22]requested_item fd.num is exist - process it [19:49:22]SAM_PROTO_GetFieldsCounters [19:49:22]wFMCommunicate request_size=4 [19:49:22]MH_SAM_APDU [19:49:22]CAPDU: 80 13 00 00 [19:49:22]Write to MH i2c: E2 08 00 DC 46 80 13 00 00 00 00 00 00 9E [19:49:22]Write i2c OK [19:49:22]MH_I2C_Read... [19:49:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:49:22]Read from MH i2c: E2 [19:49:22]MH_I2C_Read... [19:49:22]Read from MH i2c: E2 62 00 [19:49:22]MH_I2C_Read... [19:49:22]Read from MH i2c: E2 62 00 DC 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 CA E1 01 00 0E 04 04 00 43 01 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 02 [19:49: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 CA E1 01 00 0E 04 04 00 43 01 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 [19:49:22]wFMCommunicate OK [19:49:22]SAM_PROTO_GetFieldsCounters done [19:49:22]requested_item shift.num is exist - process it [19:49:22]requested_item shift.opened is exist - process it [19:49:22]req_shift_opened [19:49:22]FM_GetShiftState [19:49:22]SAM_PROTO_GetShiftState [19:49:22]wFMCommunicate request_size=4 [19:49:22]MH_SAM_APDU [19:49:22]CAPDU: 80 13 01 00 [19:49:22]Write to MH i2c: E2 08 00 DD 46 80 13 01 00 00 00 00 00 A0 [19:49:22]Write i2c OK [19:49:22]MH_I2C_Read... [19:49:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:49:22]Read from MH i2c: E2 [19:49:22]MH_I2C_Read... [19:49:22]Read from MH i2c: E2 0E 00 [19:49:22]MH_I2C_Read... [19:49:22]Read from MH i2c: E2 0E 00 DD 46 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 62 [19:49:22]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [19:49:22]wFMCommunicate OK [19:49:22]SAM_PROTO_GetShiftState done [19:49:22]FM_GetShiftState done [19:49:22]req_shift_opened done [19:49:22]requested_item shift.open_date is exist - process it [19:49:22]req_shift_open_date [19:49:22]req_shift_open_date done [19:49:22]produce_requested_data done [19:49:22]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123338,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [19:49:22]process_action_free close_receipt [19:49:22]json_value_free [19:49:22]json_value_free done [19:49:22]process_json_proto returns [19:49:22]Send response to host [19:49:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123338,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [19:49:22]free response buf [19:49:22]execute_script done [19:49:22]execute_script returns [19:49:22]free content buf [19:49:22]Sock 9.Close socket [19:49:22]Sock 9.Thread stoped [19:49:25]OFD Sender: No OFD packet to send [19:49:30]OFD Sender: No OFD packet to send [19:49:31]accept exits with 7 [19:49:31]New connection [19:49:31]New thread 3067395428 created [19:49:31]Thread 3067252068 joined [19:49:31]Waiting for new connection... [19:49:31] Sock 7.Parse request [19:49:31]Sock 7.Check first char [19:49:31]Sock 7.First char is OK [19:49:31]request: POST /json_proto HTTP/1.0 [19:49:31]Method: POST [19:49:31]URL: /json_proto [19:49:31]Method is POST - this is cgi request [19:49:31]url: /json_proto [19:49:31]query_string will be loaded in cgi processing [19:49:31]execute_cgi json_proto POST (null) [19:49:31]execute_cgi path=json_proto method=POST [19:49:31]POST find Content-Length [19:49:31]Host: 172.17.48.197:8080 [19:49:31]Content-Length: 809 [19:49:31]Content-Type: application/json [19:49:31] [19:49:31]POST finish read [19:49:31]Found Content-Length = 809 [19:49:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106297", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:49:31]execute_script... [19:49:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106297", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:49:31]POST & json_proto [19:49:31]process_json_proto [19:49:31]json parsed OK: [19:49:31]protocol is kg_v1.0 [19:49:31]action value=close_receipt [19:49:31]process_action close_receipt [19:49:31]cmd_close_receipt [19:49:31]MH_GetDate [19:49:31]Write to MH i2c: F0 00 00 DE 46 13 [19:49:31]Write i2c OK [19:49:31]MH_I2C_Read... [19:49:31]Read from MH i2c: F0 [19:49:31]MH_I2C_Read... [19:49:31]Read from MH i2c: F0 09 00 [19:49:31]MH_I2C_Read... [19:49:31]Read from MH i2c: F0 09 00 DE 46 00 4F D4 E4 65 6C AF E3 65 EB [19:49:31]GetLastDocTimeStamp 1709495362 [19:49:31]current date 1709495375 [19:49:31]FM_GetShiftState [19:49:31]SAM_PROTO_GetShiftState [19:49:31]wFMCommunicate request_size=4 [19:49:31]MH_SAM_APDU [19:49:31]CAPDU: 80 13 01 00 [19:49:31]Write to MH i2c: E2 08 00 DF 46 80 13 01 00 00 00 00 00 A2 [19:49:31]Write i2c OK [19:49:31]MH_I2C_Read... [19:49:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:49:31]Read from MH i2c: E2 [19:49:31]MH_I2C_Read... [19:49:31]Read from MH i2c: E2 0E 00 [19:49:31]MH_I2C_Read... [19:49:31]Read from MH i2c: E2 0E 00 DF 46 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 64 [19:49:31]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [19:49:31]wFMCommunicate OK [19:49:31]SAM_PROTO_GetShiftState done [19:49:31]FM_GetShiftState done [19:49:31]opened in 1709425579 [19:49:31]opened+sec_in_day 1709511979 [19:49:31]quantity*price = 100010 [19:49:31]sum+1 = 100012 [19:49:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.11 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.11 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 196 03.03.2024 19:49 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874798 ФД: 123339 ФПД: 149495359203606 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T194935&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123339&fm=149495359203606&tin=02508201610067®Number=0000000000090573&sum=100011 [19:49:32]StoreToDocumentArchive [19:49:32]shift 323 fd 123339 [19:49:32]save to /storage/0323/doc_00123339 [19:49:32]save last doc name /storage/0323/doc_00123339 to /storage/kkm_last_doc_name [19:49:32]save OK [19:49:32]Clear old archive folders... [19:49:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:49:32]tlvbuf is 00DDEE20 [19:49:32]SAM_PROTO_ClearQueue [19:49:32]wFMCommunicate request_size=4 [19:49:32]MH_SAM_APDU [19:49:32]CAPDU: 80 09 00 00 [19:49:32]Write to MH i2c: E2 08 00 EC 46 80 09 00 00 00 00 00 00 A4 [19:49:32]Write i2c OK [19:49:32]MH_I2C_Read... [19:49:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:49:32]Read from MH i2c: E2 [19:49:32]MH_I2C_Read... [19:49:32]Read from MH i2c: E2 03 00 [19:49:32]MH_I2C_Read... [19:49:32]Read from MH i2c: E2 03 00 EC 46 00 90 00 A6 [19:49:32]RAPDU: 90 00 [19:49:32]wFMCommunicate OK [19:49:32]SAM_PROTO_ClearQueue done [19:49:32]KKMCreateOFDPacket [19:49:32]OFDProtocolAddRootSTLVToBuf [19:49:32]FM_MakeSignedData [19:49:32]FM_MakeSignedData [19:49:32]SAM_PROTO_SignData [19:49:32]wFMCommunicate request_size=4 [19:49:32]MH_SAM_APDU [19:49:32]CAPDU: 80 0D 01 02 [19:49:32]Write to MH i2c: E2 08 00 ED 46 80 0D 01 02 00 00 00 00 AC [19:49:32]Write i2c OK [19:49:32]MH_I2C_Read... [19:49:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:49:32]Read from MH i2c: E2 [19:49:32]MH_I2C_Read... [19:49:32]Read from MH i2c: E2 03 00 [19:49:32]MH_I2C_Read... [19:49:32]Read from MH i2c: E2 03 00 ED 46 00 90 00 A7 [19:49:32]RAPDU: 90 00 [19:49:32]wFMCommunicate OK [19:49:32]wFMCommunicate request_size=255 [19:49:32]MH_SAM_APDU [19:49:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 4F D4 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 CB E1 01 00 35 04 06 00 87 [19:49:32]Write to MH i2c: E2 02 01 EE 46 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 4F D4 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 CB E1 01 00 35 04 06 00 87 00 00 CF [19:49:32]Write i2c OK [19:49:32]MH_I2C_Read... [19:49:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:49:32]Read from MH i2c: E2 [19:49:32]MH_I2C_Read... [19:49:32]Read from MH i2c: E2 03 00 [19:49:32]MH_I2C_Read... [19:49:32]Read from MH i2c: E2 03 00 EE 46 00 90 00 A8 [19:49:32]RAPDU: 90 00 [19:49:32]wFMCommunicate OK [19:49:32]wFMCommunicate request_size=10 [19:49:32]MH_SAM_APDU [19:49:32]CAPDU: 80 0D 02 02 05 F7 19 C7 E9 16 [19:49:32]Write to MH i2c: E2 0D 00 EF 46 80 0D 02 02 05 00 F7 19 C7 E9 16 00 00 8F [19:49:32]Write i2c OK [19:49:32]MH_I2C_Read... [19:49:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:49:32]Read from MH i2c: E2 [19:49:32]MH_I2C_Read... [19:49:32]Read from MH i2c: E2 03 00 [19:49:32]MH_I2C_Read... [19:49:32]Read from MH i2c: E2 03 00 EF 46 00 90 00 A9 [19:49:32]RAPDU: 90 00 [19:49:32]wFMCommunicate OK [19:49:32]wFMCommunicate request_size=4 [19:49:32]MH_SAM_APDU [19:49:32]CAPDU: 80 0D 03 02 [19:49:32]Write to MH i2c: E2 08 00 F0 46 80 0D 03 02 00 00 00 00 B1 [19:49:32]Write i2c OK [19:49:32]MH_I2C_Read... [19:49:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:49:32]Read from MH i2c: E2 [19:49:32]MH_I2C_Read... [19:49:32]Read from MH i2c: E2 0B 00 [19:49:32]MH_I2C_Read... [19:49:32]Read from MH i2c: E2 0B 00 F0 46 00 55 90 E6 40 EB 08 C3 4F 90 00 C2 [19:49:32]RAPDU: 55 90 E6 40 EB 08 C3 4F 90 00 [19:49:32]wFMCommunicate OK [19:49:32]SAM_PROTO_SignData done [19:49:32]FM_MakeSignedData done [19:49:32]CreateOFDProtocolMessage [19:49:32]wFMCommunicate request_size=4 [19:49:32]MH_SAM_APDU [19:49:32]CAPDU: 80 11 00 00 [19:49:32]Write to MH i2c: E2 08 00 F1 46 80 11 00 00 00 00 00 00 B1 [19:49:32]Write i2c OK [19:49:32]MH_I2C_Read... [19:49:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:49:32]Read from MH i2c: E2 [19:49:32]MH_I2C_Read... [19:49:32]Read from MH i2c: E2 17 00 [19:49:32]MH_I2C_Read... [19:49:32]Read from MH i2c: E2 17 00 F1 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 0F [19:49:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [19:49:32]wFMCommunicate OK [19:49:32]CreateOFDProtocolMessage done [19:49:32]OFDSenderStorePacket 123339 [19:49:32]StoreOFDPacket docnum=123339 [19:49:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 9A AE 07 01 2B A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 4F D4 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 CB E1 01 00 35 04 06 00 87 F7 19 C7 E9 16 55 90 E6 40 EB 08 C3 4F [19:49:32]CheckFolder [19:49:32]dirname=/storage/ofd_packets [19:49:32]CheckFolder done [19:49:32]ProducePacketName [19:49:32]name=ofd_packets/00123339 [19:49:32]NVStorageSaveData ofd_packets/00123339 [19:49:32]File name is /storage/ofd_packets/00123339 [19:49:32]Write 301 bytes [19:49:32]NVStorageSaveData done [19:49:32]OFDSenderStorePacket done [19:49:32]KKMCreateOFDPacket done [19:49:32]NVStorageSaveData kkm_last_timestamp [19:49:32]File name is /storage/kkm_last_timestamp [19:49:32]Write 4 bytes [19:49:32]NVStorageSaveData done [19:49:32]ExternCall_PrintAddStr [19:49:32]wPrintStart [19:49:32]Write to MH i2c: 01 00 00 F2 46 38 [19:49:32]Write i2c OK [19:49:32]MH_I2C_Read... [19:49:32]Read from MH i2c: 01 [19:49:32]MH_I2C_Read... [19:49:32]Read from MH i2c: 01 07 00 [19:49:32]MH_I2C_Read... [19:49:32]Read from MH i2c: 01 07 00 F2 46 00 00 00 00 00 FF 0F 4D [19:49:32]RasterBufferAndPrint [19:49:32]line Счет N : (1)1106297 [19:49:32]line ИНН: 02508201610067 [19:49:32]line Контрольно-Кассовый Чек [19:49:32]line ПРОДАЖА [19:49:32]line ТРК (МРК, ГНК) : 13 [19:49:32]line Товар: 2710124500 [19:49:32]line Аи-95-К-5 [19:49:32]line 14.390 * 69.50 [19:49:32]line = 1000.11 [19:49:32]line НДС 12% НСП 1% [19:49:32]line > о реализуемом товаре [19:49:32]line ИТОГО: 1000.11 [19:49:32]line НСП 1% : 8.85 [19:49:32]line НДС 12% : 106.21 [19:49:32]line Наличными: 0.00 [19:49:32]line Безнал.: 1000.11 [19:49:32]line Место: АЗС № 25 "Партнер Нефть" [19:49:32]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [19:49:32]line СНО: Общий режим [19:49:32]line Чек 196 03.03.2024 19:49 [19:49:32]line Смена: 323 ФФД: 1.0 [19:49:32]line ЗНМ: 0300000019 [19:49:32]line РНМ: 0000000000090573 [19:49:32]line Версия ККМ: 001 [19:49:32]line Платежная система: О! деньги [19:49:32]line ФМ: 0000000000874798 [19:49:32]line ФД: 123339 [19:49:32]line ФПД: 149495359203606 [19:49:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T194935&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123339&fm=149495359203606&tin=02508201610067®Number=0000000000090573&sum=100011 [19:49:33]OFD Sender: Processing packet 123339 [packets to send 112, broken 111] [19:49:33]ProducePacketName [19:49:33]name=ofd_packets/00123339 [19:49:33]OFD Sender: To server: pG, [19:49:33]CommunicateWithHost lk.salyk.kg:30040 [19:49:33]ConnectInit lk.salyk.kg [19:49:33]written 0, free lines is 4095 [19:49:33]Connected sock=10 [19:49: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 37 39 38 0F 01 00 00 9A AE 07 01 2B A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 4F D4 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 CB E1 01 00 35 04 06 00 87 F7 19 C7 E9 16 55 90 E6 40 EB 08 C3 4F [19:49:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 24 19 47 00 F8 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 37 39 38 10 04 04 00 CB E1 01 00 F4 03 04 00 7A 80 E4 65 B6 04 01 00 00 C3 6E 74 81 9A 6C 47 71 [19:49:33]CommunicateWithHost err = 0 [19:49:33]CheckOFDResponse [19:49:33]1017 (14) - 77093643461234 [19:49:33]1041 (16) - 0000000000874798 [19:49:33]1040 (4) - 123339 [19:49:33]1012 (4) - 03.03.2024 13:51 [19:49:33]1206 (1) - 0 [19:49:33]OFD Sender: Remove packet 123339 [19:49:33]ProducePacketName [19:49:33]name=ofd_packets/00123339 [19:49:33]NVStorageDeleteData [19:49:33]Write to MH i2c: 01 00 00 1C 47 63 [19:49:33]Write i2c OK [19:49:33]MH_I2C_Read... [19:49:33]Read from MH i2c: 01 [19:49:33]MH_I2C_Read... [19:49:33]Read from MH i2c: 01 07 00 [19:49:33]MH_I2C_Read... [19:49:33]Read from MH i2c: 01 07 00 1C 47 00 00 00 00 00 02 0D 79 [19:49:33]RasterBufferAndPrint [19:49:33]line [19:49:33]line [19:49:33]line [19:49:33]line [19:49:33]line [19:49:33]written 0, free lines is 3339 [19:49:33]MH_Cut [19:49:33]Write to MH i2c: D1 01 00 23 47 01 3C [19:49:33]Write i2c OK [19:49:33]MH_I2C_Read... [19:49:33]Read from MH i2c: D1 [19:49:33]MH_I2C_Read... [19:49:33]Read from MH i2c: D1 01 00 [19:49:33]MH_I2C_Read... [19:49:33]Read from MH i2c: D1 01 00 23 47 00 3B [19:49:33]Write to MH i2c: 01 00 00 24 47 6B [19:49:33]Write i2c OK [19:49:33]MH_I2C_Read... [19:49:33]OFD Sender: No OFD packet to send [19:49:34]*** Cut start [19:49:34]*** Purtial cut [19:49:34]*** Stage 1: CUTSNS_PIN = 1 [19:49:36]Read from MH i2c: 01 [19:49:36]MH_I2C_Read... [19:49:36]*** Stop cut motor [19:49:36]*** Cut end [19:49:36]Read from MH i2c: 01 07 00 [19:49:36]MH_I2C_Read... [19:49:36]Read from MH i2c: 01 07 00 24 47 00 00 00 00 00 FF 0F 80 [19:49:36]process_action close_receipt done [19:49:36]requested_data is exist [19:49:36]produce_requested_data [19:49:36]requested_item fm.sn is exist - process it [19:49:36]wFMCommunicate request_size=4 [19:49:36]MH_SAM_APDU [19:49:36]CAPDU: 80 11 00 00 [19:49:36]Write to MH i2c: E2 08 00 25 47 80 11 00 00 00 00 00 00 E6 [19:49:36]Write i2c OK [19:49:36]MH_I2C_Read... [19:49:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:49:36]Read from MH i2c: E2 [19:49:36]MH_I2C_Read... [19:49:36]Read from MH i2c: E2 17 00 [19:49:36]MH_I2C_Read... [19:49:36]Read from MH i2c: E2 17 00 25 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 44 [19:49:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [19:49:36]wFMCommunicate OK [19:49:36]requested_item fd.num is exist - process it [19:49:36]SAM_PROTO_GetFieldsCounters [19:49:36]wFMCommunicate request_size=4 [19:49:36]MH_SAM_APDU [19:49:36]CAPDU: 80 13 00 00 [19:49:36]Write to MH i2c: E2 08 00 26 47 80 13 00 00 00 00 00 00 E9 [19:49:36]Write i2c OK [19:49:36]MH_I2C_Read... [19:49:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:49:36]Read from MH i2c: E2 [19:49:36]MH_I2C_Read... [19:49:36]Read from MH i2c: E2 62 00 [19:49:36]MH_I2C_Read... [19:49:36]Read from MH i2c: E2 62 00 26 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 CB E1 01 00 0E 04 04 00 43 01 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 51 [19:49:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 CB E1 01 00 0E 04 04 00 43 01 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 [19:49:36]wFMCommunicate OK [19:49:36]SAM_PROTO_GetFieldsCounters done [19:49:36]requested_item shift.num is exist - process it [19:49:36]requested_item shift.opened is exist - process it [19:49:36]req_shift_opened [19:49:36]FM_GetShiftState [19:49:36]SAM_PROTO_GetShiftState [19:49:36]wFMCommunicate request_size=4 [19:49:36]MH_SAM_APDU [19:49:36]CAPDU: 80 13 01 00 [19:49:36]Write to MH i2c: E2 08 00 27 47 80 13 01 00 00 00 00 00 EB [19:49:36]Write i2c OK [19:49:36]MH_I2C_Read... [19:49:36]Read from MH i2c: E2 [19:49:36]MH_I2C_Read... [19:49:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:49:36]Read from MH i2c: E2 0E 00 [19:49:36]MH_I2C_Read... [19:49:36]Read from MH i2c: E2 0E 00 27 47 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 AD [19:49:36]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [19:49:36]wFMCommunicate OK [19:49:36]SAM_PROTO_GetShiftState done [19:49:36]FM_GetShiftState done [19:49:36]req_shift_opened done [19:49:36]requested_item shift.open_date is exist - process it [19:49:36]req_shift_open_date [19:49:36]req_shift_open_date done [19:49:36]produce_requested_data done [19:49:36]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123339,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [19:49:36]process_action_free close_receipt [19:49:36]json_value_free [19:49:36]json_value_free done [19:49:36]process_json_proto returns [19:49:36]Send response to host [19:49:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123339,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [19:49:36]free response buf [19:49:36]execute_script done [19:49:36]execute_script returns [19:49:36]free content buf [19:49:36]Sock 7.Close socket [19:49:36]Sock 7.Thread stoped [19:49:38]OFD Sender: No OFD packet to send [19:49:43]OFD Sender: No OFD packet to send [19:49:48]accept exits with 9 [19:49:48]New connection [19:49:48]New thread 3067252068 created [19:49:48]Thread 3067395428 joined [19:49:48]Waiting for new connection... [19:49:48] Sock 9.Parse request [19:49:48]Sock 9.Check first char [19:49:48]Sock 9.First char is OK [19:49:48]request: POST /json_proto HTTP/1.0 [19:49:48]Method: POST [19:49:48]URL: /json_proto [19:49:48]Method is POST - this is cgi request [19:49:48]url: /json_proto [19:49:48]query_string will be loaded in cgi processing [19:49:48]execute_cgi json_proto POST (null) [19:49:48]execute_cgi path=json_proto method=POST [19:49:48]POST find Content-Length [19:49:48]Host: 172.17.48.197:8080 [19:49:48]Content-Length: 735 [19:49:48]Content-Type: application/json [19:49:48] [19:49:48]POST finish read [19:49:48]Found Content-Length = 735 [19:49:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 123337, "base_FM": "0000000000874798", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106296", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 2.430, "sum" : 150.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:49:48]execute_script... [19:49:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 123337, "base_FM": "0000000000874798", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106296", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 2.430, "sum" : 150.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:49:48]POST & json_proto [19:49:48]process_json_proto [19:49:48]json parsed OK: [19:49:48]protocol is kg_v1.0 [19:49:48]action value=close_receipt [19:49:48]process_action close_receipt [19:49:48]cmd_close_receipt [19:49:48]MH_GetDate [19:49:48]Write to MH i2c: F0 00 00 28 47 5E [19:49:48]Write i2c OK [19:49:48]MH_I2C_Read... [19:49:48]Read from MH i2c: F0 [19:49:48]MH_I2C_Read... [19:49:48]Read from MH i2c: F0 09 00 [19:49:48]MH_I2C_Read... [19:49:48]Read from MH i2c: F0 09 00 28 47 00 60 D4 E4 65 6C AF E3 65 47 [19:49:48]GetLastDocTimeStamp 1709495375 [19:49:48]current date 1709495392 [19:49:48]FM_GetShiftState [19:49:48]SAM_PROTO_GetShiftState [19:49:48]wFMCommunicate request_size=4 [19:49:48]MH_SAM_APDU [19:49:48]CAPDU: 80 13 01 00 [19:49:48]Write to MH i2c: E2 08 00 29 47 80 13 01 00 00 00 00 00 ED [19:49:48]Write i2c OK [19:49:48]MH_I2C_Read... [19:49:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:49:48]Read from MH i2c: E2 [19:49:48]MH_I2C_Read... [19:49:48]Read from MH i2c: E2 0E 00 [19:49:48]MH_I2C_Read... [19:49:48]Read from MH i2c: E2 0E 00 29 47 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 AF [19:49:48]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [19:49:48]wFMCommunicate OK [19:49:48]SAM_PROTO_GetShiftState done [19:49:48]FM_GetShiftState done [19:49:48]opened in 1709425579 [19:49:48]opened+sec_in_day 1709511979 [19:49:48]quantity*price = 15041 [19:49:48]sum+1 = 15043 [19:49:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.97 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 197 03.03.2024 19:49 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФД осн.: 123337 ФМ осн.: 0000000000874798 ФМ: 0000000000874798 ФД: 123340 ФПД: 110723303972912 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T194952&type=2&operation_type=1&fn_number=0000000000874798&fd_number=123340&fm=110723303972912&tin=02508201610067®Number=0000000000090573&sum=15000 [19:49:49]StoreToDocumentArchive [19:49:49]shift 323 fd 123340 [19:49:49]save to /storage/0323/doc_00123340 [19:49:49]save last doc name /storage/0323/doc_00123340 to /storage/kkm_last_doc_name [19:49:49]save OK [19:49:49]Clear old archive folders... [19:49:49]ProcessDocumentItem done err = 0, tmpTLVsize=279 [19:49:49]tlvbuf is 00E1B4B0 [19:49:49]SAM_PROTO_ClearQueue [19:49:49]wFMCommunicate request_size=4 [19:49:49]MH_SAM_APDU [19:49:49]CAPDU: 80 09 00 00 [19:49:49]Write to MH i2c: E2 08 00 38 47 80 09 00 00 00 00 00 00 F1 [19:49:49]Write i2c OK [19:49:49]MH_I2C_Read... [19:49:49]Read from MH i2c: E2 [19:49:49]MH_I2C_Read... [19:49:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:49:49]Read from MH i2c: E2 03 00 [19:49:49]MH_I2C_Read... [19:49:49]Read from MH i2c: E2 03 00 38 47 00 90 00 F3 [19:49:49]RAPDU: 90 00 [19:49:49]wFMCommunicate OK [19:49:49]SAM_PROTO_ClearQueue done [19:49:49]KKMCreateOFDPacket [19:49:49]OFDProtocolAddRootSTLVToBuf [19:49:49]FM_MakeSignedData [19:49:49]FM_MakeSignedData [19:49:49]SAM_PROTO_SignData [19:49:49]wFMCommunicate request_size=4 [19:49:49]MH_SAM_APDU [19:49:49]CAPDU: 80 0D 01 02 [19:49:49]Write to MH i2c: E2 08 00 39 47 80 0D 01 02 00 00 00 00 F9 [19:49:49]Write i2c OK [19:49:49]MH_I2C_Read... [19:49:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:49:49]Read from MH i2c: E2 [19:49:49]MH_I2C_Read... [19:49:49]Read from MH i2c: E2 03 00 [19:49:49]MH_I2C_Read... [19:49:49]Read from MH i2c: E2 03 00 39 47 00 90 00 F4 [19:49:49]RAPDU: 90 00 [19:49:49]wFMCommunicate OK [19:49:49]wFMCommunicate request_size=255 [19:49:49]MH_SAM_APDU [19:49:49]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 35 FF 03 08 00 03 7E 09 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 C2 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 3D 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 C5 00 00 00 F4 03 04 00 60 D4 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 27 04 04 00 C9 E1 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 11 04 10 00 30 [19:49:49]Write to MH i2c: E2 02 01 3A 47 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 35 FF 03 08 00 03 7E 09 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 C2 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 3D 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 C5 00 00 00 F4 03 04 00 60 D4 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 27 04 04 00 C9 E1 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 11 04 10 00 30 00 00 D5 [19:49:49]Write i2c OK [19:49:49]MH_I2C_Read... [19:49:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:49:49]Read from MH i2c: E2 [19:49:49]MH_I2C_Read... [19:49:49]Read from MH i2c: E2 03 00 [19:49:49]MH_I2C_Read... [19:49:49]Read from MH i2c: E2 03 00 3A 47 00 90 00 F5 [19:49:49]RAPDU: 90 00 [19:49:49]wFMCommunicate OK [19:49:49]wFMCommunicate request_size=38 [19:49:49]MH_SAM_APDU [19:49:49]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 CC E1 01 00 35 04 06 00 64 B3 C7 33 A0 30 [19:49:49]Write to MH i2c: E2 29 00 3B 47 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 CC E1 01 00 35 04 06 00 64 B3 C7 33 A0 30 00 00 1F [19:49:49]Write i2c OK [19:49:49]MH_I2C_Read... [19:49:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:49:49]Read from MH i2c: E2 [19:49:49]MH_I2C_Read... [19:49:49]Read from MH i2c: E2 03 00 [19:49:49]MH_I2C_Read... [19:49:49]Read from MH i2c: E2 03 00 3B 47 00 90 00 F6 [19:49:49]RAPDU: 90 00 [19:49:49]wFMCommunicate OK [19:49:49]wFMCommunicate request_size=4 [19:49:49]MH_SAM_APDU [19:49:49]CAPDU: 80 0D 03 02 [19:49:49]Write to MH i2c: E2 08 00 3C 47 80 0D 03 02 00 00 00 00 FE [19:49:49]Write i2c OK [19:49:49]MH_I2C_Read... [19:49:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:49:49]Read from MH i2c: E2 [19:49:49]MH_I2C_Read... [19:49:49]Read from MH i2c: E2 0B 00 [19:49:49]MH_I2C_Read... [19:49:49]Read from MH i2c: E2 0B 00 3C 47 00 27 A3 C8 EB 07 7D C8 31 90 00 F9 [19:49:49]RAPDU: 27 A3 C8 EB 07 7D C8 31 90 00 [19:49:49]wFMCommunicate OK [19:49:49]SAM_PROTO_SignData done [19:49:49]FM_MakeSignedData done [19:49:49]CreateOFDProtocolMessage [19:49:49]wFMCommunicate request_size=4 [19:49:49]MH_SAM_APDU [19:49:49]CAPDU: 80 11 00 00 [19:49:49]Write to MH i2c: E2 08 00 3D 47 80 11 00 00 00 00 00 00 FE [19:49:49]Write i2c OK [19:49:49]MH_I2C_Read... [19:49:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:49:49]Read from MH i2c: E2 [19:49:49]MH_I2C_Read... [19:49:49]Read from MH i2c: E2 17 00 [19:49:49]MH_I2C_Read... [19:49:49]Read from MH i2c: E2 17 00 3D 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 5C [19:49:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [19:49:49]wFMCommunicate OK [19:49:49]CreateOFDProtocolMessage done [19:49:49]OFDSenderStorePacket 123340 [19:49:49]StoreOFDPacket docnum=123340 [19:49:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 2B 01 00 00 87 9D 23 01 0B 22 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 35 FF 03 08 00 03 7E 09 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 C2 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 3D 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 C5 00 00 00 F4 03 04 00 60 D4 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 27 04 04 00 C9 E1 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 CC E1 01 00 35 04 06 00 64 B3 C7 33 A0 30 27 A3 C8 EB 07 7D C8 31 [19:49:49]CheckFolder [19:49:49]dirname=/storage/ofd_packets [19:49:49]CheckFolder done [19:49:49]ProducePacketName [19:49:49]name=ofd_packets/00123340 [19:49:49]NVStorageSaveData ofd_packets/00123340 [19:49:49]File name is /storage/ofd_packets/00123340 [19:49:49]Write 329 bytes [19:49:49]NVStorageSaveData done [19:49:49]OFDSenderStorePacket done [19:49:49]KKMCreateOFDPacket done [19:49:49]NVStorageSaveData kkm_last_timestamp [19:49:49]File name is /storage/kkm_last_timestamp [19:49:49]Write 4 bytes [19:49:49]NVStorageSaveData done [19:49:49]ExternCall_PrintAddStr [19:49:49]wPrintStart [19:49:49]Write to MH i2c: 01 00 00 3E 47 85 [19:49:49]Write i2c OK [19:49:49]MH_I2C_Read... [19:49:49]Read from MH i2c: 01 [19:49:49]MH_I2C_Read... [19:49:49]Read from MH i2c: 01 07 00 [19:49:50]MH_I2C_Read... [19:49:50]Read from MH i2c: 01 07 00 3E 47 00 00 00 00 00 FF 0F 9A [19:49:50]RasterBufferAndPrint [19:49:50]line Счет N : (1)1106296 [19:49:50]line ИНН: 02508201610067 [19:49:50]line Контрольно-Кассовый Чек [19:49:50]line ВОЗВРАТ ПРОДАЖИ [19:49:50]line ТРК (МРК, ГНК) : 42 [19:49:50]line Товар: 2710124130 [19:49:50]line Аи-92-К-5 [19:49:50]line 2.430 * 61.90 [19:49:50]line = 150.42 [19:49:50]line НДС 12% НСП 1% [19:49:50]line > о реализуемом товаре [19:49:50]line ОКРУГЛЕНИЕ: -0.42 [19:49:50]line ИТОГО: 150.00 [19:49:50]line НСП 1% : 1.33 [19:49:50]line НДС 12% : 15.97 [19:49:50]line Наличными: 150.00 [19:49:50]line Безнал.: 0.00 [19:49:50]line Место: АЗС № 25 "Партнер Нефть" [19:49:50]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [19:49:50]line СНО: Общий режим [19:49:50]line Чек 197 03.03.2024 19:49 [19:49:50]line Смена: 323 ФФД: 1.0 [19:49:50]line ЗНМ: 0300000019 [19:49:50]line РНМ: 0000000000090573 [19:49:50]line Версия ККМ: 001 [19:49:50]line ФД осн.: 123337 [19:49:50]line ФМ осн.: 0000000000874798 [19:49:50]line ФМ: 0000000000874798 [19:49:50]line ФД: 123340 [19:49:50]line ФПД: 110723303972912 [19:49:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T194952&type=2&operation_type=1&fn_number=0000000000874798&fd_number=123340&fm=110723303972912&tin=02508201610067®Number=0000000000090573&sum=15000 [19:49:50]OFD Sender: Processing packet 123340 [packets to send 112, broken 111] [19:49:50]ProducePacketName [19:49:50]name=ofd_packets/00123340 [19:49:50]OFD Sender: To server: pG, [19:49:50]CommunicateWithHost lk.salyk.kg:30040 [19:49:50]ConnectInit lk.salyk.kg [19:49:50]written 0, free lines is 4095 [19:49:50]Connected sock=10 [19:49:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 2B 01 00 00 87 9D 23 01 0B 22 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 35 FF 03 08 00 03 7E 09 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 C2 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 3D 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 C5 00 00 00 F4 03 04 00 60 D4 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 27 04 04 00 C9 E1 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 CC E1 01 00 35 04 06 00 64 B3 C7 33 A0 30 27 A3 C8 EB 07 7D C8 31 [19:49:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 3F 19 47 00 D0 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 37 39 38 10 04 04 00 CC E1 01 00 F4 03 04 00 8B 80 E4 65 B6 04 01 00 00 F2 E5 69 5A 9D 94 E0 28 [19:49:50]CommunicateWithHost err = 0 [19:49:50]CheckOFDResponse [19:49:50]1017 (14) - 77093643461234 [19:49:50]1041 (16) - 0000000000874798 [19:49:50]1040 (4) - 123340 [19:49:50]1012 (4) - 03.03.2024 13:52 [19:49:50]1206 (1) - 0 [19:49:50]OFD Sender: Remove packet 123340 [19:49:50]ProducePacketName [19:49:50]name=ofd_packets/00123340 [19:49:50]NVStorageDeleteData [19:49:50]Write to MH i2c: 01 00 00 69 47 B0 [19:49:50]Write i2c OK [19:49:50]MH_I2C_Read... [19:49:50]Read from MH i2c: 01 [19:49:50]MH_I2C_Read... [19:49:50]Read from MH i2c: 01 07 00 [19:49:50]MH_I2C_Read... [19:49:50]Read from MH i2c: 01 07 00 69 47 00 00 00 00 00 EF 0C B2 [19:49:50]RasterBufferAndPrint [19:49:50]line [19:49:50]line [19:49:50]line [19:49:50]line [19:49:50]line [19:49:50]written 0, free lines is 3319 [19:49:50]MH_Cut [19:49:50]Write to MH i2c: D1 01 00 70 47 01 89 [19:49:50]Write i2c OK [19:49:50]MH_I2C_Read... [19:49:50]Read from MH i2c: D1 [19:49:50]MH_I2C_Read... [19:49:50]Read from MH i2c: D1 01 00 [19:49:50]MH_I2C_Read... [19:49:50]Read from MH i2c: D1 01 00 70 47 00 88 [19:49:50]Write to MH i2c: 01 00 00 71 47 B8 [19:49:50]Write i2c OK [19:49:50]MH_I2C_Read... [19:49:51]OFD Sender: No OFD packet to send [19:49:51]*** Cut start [19:49:51]*** Purtial cut [19:49:51]*** Stage 1: CUTSNS_PIN = 1 [19:49:53]Read from MH i2c: 01 [19:49:53]MH_I2C_Read... [19:49:53]*** Stop cut motor [19:49:53]*** Cut end [19:49:53]Read from MH i2c: 01 07 00 [19:49:53]MH_I2C_Read... [19:49:53]Read from MH i2c: 01 07 00 71 47 00 00 00 00 00 FF 0F CD [19:49:53]process_action close_receipt done [19:49:53]requested_data is exist [19:49:53]produce_requested_data [19:49:53]requested_item fm.sn is exist - process it [19:49:53]wFMCommunicate request_size=4 [19:49:53]MH_SAM_APDU [19:49:53]CAPDU: 80 11 00 00 [19:49:53]Write to MH i2c: E2 08 00 72 47 80 11 00 00 00 00 00 00 33 [19:49:53]Write i2c OK [19:49:53]MH_I2C_Read... [19:49:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:49:53]Read from MH i2c: E2 [19:49:53]MH_I2C_Read... [19:49:53]Read from MH i2c: E2 17 00 [19:49:53]MH_I2C_Read... [19:49:53]Read from MH i2c: E2 17 00 72 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 91 [19:49:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [19:49:53]wFMCommunicate OK [19:49:53]requested_item fd.num is exist - process it [19:49:53]SAM_PROTO_GetFieldsCounters [19:49:53]wFMCommunicate request_size=4 [19:49:53]MH_SAM_APDU [19:49:53]CAPDU: 80 13 00 00 [19:49:53]Write to MH i2c: E2 08 00 73 47 80 13 00 00 00 00 00 00 36 [19:49:53]Write i2c OK [19:49:53]MH_I2C_Read... [19:49:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:49:53]Read from MH i2c: E2 [19:49:53]MH_I2C_Read... [19:49:53]Read from MH i2c: E2 62 00 [19:49:53]MH_I2C_Read... [19:49:53]Read from MH i2c: E2 62 00 73 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 CC E1 01 00 0E 04 04 00 43 01 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 A2 [19:49: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 CC E1 01 00 0E 04 04 00 43 01 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 [19:49:53]wFMCommunicate OK [19:49:53]SAM_PROTO_GetFieldsCounters done [19:49:53]requested_item shift.num is exist - process it [19:49:53]requested_item shift.opened is exist - process it [19:49:53]req_shift_opened [19:49:53]FM_GetShiftState [19:49:53]SAM_PROTO_GetShiftState [19:49:53]wFMCommunicate request_size=4 [19:49:53]MH_SAM_APDU [19:49:53]CAPDU: 80 13 01 00 [19:49:53]Write to MH i2c: E2 08 00 74 47 80 13 01 00 00 00 00 00 38 [19:49:53]Write i2c OK [19:49:53]MH_I2C_Read... [19:49:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:49:53]Read from MH i2c: E2 [19:49:53]MH_I2C_Read... [19:49:53]Read from MH i2c: E2 0E 00 [19:49:53]MH_I2C_Read... [19:49:53]Read from MH i2c: E2 0E 00 74 47 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 FA [19:49:53]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [19:49:53]wFMCommunicate OK [19:49:53]SAM_PROTO_GetShiftState done [19:49:53]FM_GetShiftState done [19:49:53]req_shift_opened done [19:49:53]requested_item shift.open_date is exist - process it [19:49:53]req_shift_open_date [19:49:53]req_shift_open_date done [19:49:53]produce_requested_data done [19:49:53]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123340,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [19:49:53]process_action_free close_receipt [19:49:53]json_value_free [19:49:53]json_value_free done [19:49:53]process_json_proto returns [19:49:53]Send response to host [19:49:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123340,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [19:49:53]free response buf [19:49:53]execute_script done [19:49:53]execute_script returns [19:49:53]free content buf [19:49:53]Sock 9.Close socket [19:49:53]Sock 9.Thread stoped [19:49:56]OFD Sender: No OFD packet to send [19:50:01]OFD Sender: No OFD packet to send [19:50:06]OFD Sender: No OFD packet to send [19:50:11]OFD Sender: No OFD packet to send [19:50:16]OFD Sender: No OFD packet to send [19:50:21]OFD Sender: No OFD packet to send [19:50:26]OFD Sender: No OFD packet to send [19:50:31]OFD Sender: No OFD packet to send [19:50:36]OFD Sender: No OFD packet to send [19:50:41]OFD Sender: No OFD packet to send [19:50:46]OFD Sender: No OFD packet to send [19:50:51]OFD Sender: No OFD packet to send [19:50:56]OFD Sender: No OFD packet to send [19:51:01]OFD Sender: No OFD packet to send [19:51:06]OFD Sender: No OFD packet to send [19:51:11]OFD Sender: No OFD packet to send [19:51:16]OFD Sender: No OFD packet to send [19:51:18]accept exits with 7 [19:51:18]New connection [19:51:18]New thread 3067395428 created [19:51:18]Thread 3067252068 joined [19:51:18]Waiting for new connection... [19:51:18] Sock 7.Parse request [19:51:18]Sock 7.Check first char [19:51:18]Sock 7.First char is OK [19:51:18]request: POST /json_proto HTTP/1.0 [19:51:18]Method: POST [19:51:18]URL: /json_proto [19:51:18]Method is POST - this is cgi request [19:51:18]url: /json_proto [19:51:18]query_string will be loaded in cgi processing [19:51:18]execute_cgi json_proto POST (null) [19:51:18]execute_cgi path=json_proto method=POST [19:51:18]POST find Content-Length [19:51:18]Host: 172.17.48.197:8080 [19:51:18]Content-Length: 820 [19:51:18]Content-Type: application/json [19:51:18] [19:51:18]POST finish read [19:51:18]Found Content-Length = 820 [19:51:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106299", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:51:18]execute_script... [19:51:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106299", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:51:18]POST & json_proto [19:51:18]process_json_proto [19:51:18]json parsed OK: [19:51:18]protocol is kg_v1.0 [19:51:18]action value=close_receipt [19:51:18]process_action close_receipt [19:51:18]cmd_close_receipt [19:51:18]MH_GetDate [19:51:18]Write to MH i2c: F0 00 00 75 47 AB [19:51:18]Write i2c OK [19:51:18]MH_I2C_Read... [19:51:18]Read from MH i2c: F0 [19:51:18]MH_I2C_Read... [19:51:18]Read from MH i2c: F0 09 00 [19:51:18]MH_I2C_Read... [19:51:18]Read from MH i2c: F0 09 00 75 47 00 BB D4 E4 65 6C AF E3 65 EF [19:51:18]GetLastDocTimeStamp 1709495392 [19:51:18]current date 1709495483 [19:51:18]FM_GetShiftState [19:51:18]SAM_PROTO_GetShiftState [19:51:18]wFMCommunicate request_size=4 [19:51:18]MH_SAM_APDU [19:51:18]CAPDU: 80 13 01 00 [19:51:18]Write to MH i2c: E2 08 00 76 47 80 13 01 00 00 00 00 00 3A [19:51:18]Write i2c OK [19:51:18]MH_I2C_Read... [19:51:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:51:18]Read from MH i2c: E2 [19:51:18]MH_I2C_Read... [19:51:18]Read from MH i2c: E2 0E 00 [19:51:18]MH_I2C_Read... [19:51:18]Read from MH i2c: E2 0E 00 76 47 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 FC [19:51:18]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [19:51:18]wFMCommunicate OK [19:51:18]SAM_PROTO_GetShiftState done [19:51:18]FM_GetShiftState done [19:51:18]opened in 1709425579 [19:51:18]opened+sec_in_day 1709511979 [19:51:18]quantity*price = 100010 [19:51:18]sum+1 = 100012 [19:51:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.11 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.11 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 198 03.03.2024 19:51 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874798 ФД: 123341 ФПД: 103264571229608 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T195123&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123341&fm=103264571229608&tin=02508201610067®Number=0000000000090573&sum=100011 [19:51:19]StoreToDocumentArchive [19:51:19]shift 323 fd 123341 [19:51:19]save to /storage/0323/doc_00123341 [19:51:19]save last doc name /storage/0323/doc_00123341 to /storage/kkm_last_doc_name [19:51:19]save OK [19:51:19]Clear old archive folders... [19:51:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:51:19]tlvbuf is 00E29BD0 [19:51:19]SAM_PROTO_ClearQueue [19:51:19]wFMCommunicate request_size=4 [19:51:19]MH_SAM_APDU [19:51:19]CAPDU: 80 09 00 00 [19:51:19]Write to MH i2c: E2 08 00 83 47 80 09 00 00 00 00 00 00 3C [19:51:19]Write i2c OK [19:51:19]MH_I2C_Read... [19:51:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:51:19]Read from MH i2c: E2 [19:51:19]MH_I2C_Read... [19:51:19]Read from MH i2c: E2 03 00 [19:51:19]MH_I2C_Read... [19:51:19]Read from MH i2c: E2 03 00 83 47 00 90 00 3E [19:51:19]RAPDU: 90 00 [19:51:19]wFMCommunicate OK [19:51:19]SAM_PROTO_ClearQueue done [19:51:19]KKMCreateOFDPacket [19:51:19]OFDProtocolAddRootSTLVToBuf [19:51:19]FM_MakeSignedData [19:51:19]FM_MakeSignedData [19:51:19]SAM_PROTO_SignData [19:51:19]wFMCommunicate request_size=4 [19:51:19]MH_SAM_APDU [19:51:19]CAPDU: 80 0D 01 02 [19:51:19]Write to MH i2c: E2 08 00 84 47 80 0D 01 02 00 00 00 00 44 [19:51:19]Write i2c OK [19:51:19]MH_I2C_Read... [19:51:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:51:19]Read from MH i2c: E2 [19:51:19]MH_I2C_Read... [19:51:19]Read from MH i2c: E2 03 00 [19:51:19]MH_I2C_Read... [19:51:19]Read from MH i2c: E2 03 00 84 47 00 90 00 3F [19:51:19]RAPDU: 90 00 [19:51:19]wFMCommunicate OK [19:51:19]wFMCommunicate request_size=255 [19:51:19]MH_SAM_APDU [19:51:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 BB D4 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 CD E1 01 00 35 04 06 00 5D [19:51:19]Write to MH i2c: E2 02 01 85 47 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 BB D4 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 CD E1 01 00 35 04 06 00 5D 00 00 AD [19:51:19]Write i2c OK [19:51:19]MH_I2C_Read... [19:51:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:51:20]Read from MH i2c: E2 [19:51:20]MH_I2C_Read... [19:51:20]Read from MH i2c: E2 03 00 [19:51:20]MH_I2C_Read... [19:51:20]Read from MH i2c: E2 03 00 85 47 00 90 00 40 [19:51:20]RAPDU: 90 00 [19:51:20]wFMCommunicate OK [19:51:20]wFMCommunicate request_size=10 [19:51:20]MH_SAM_APDU [19:51:20]CAPDU: 80 0D 02 02 05 EB 28 16 05 A8 [19:51:20]Write to MH i2c: E2 0D 00 86 47 80 0D 02 02 05 00 EB 28 16 05 A8 00 00 27 [19:51:20]Write i2c OK [19:51:20]MH_I2C_Read... [19:51:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:51:20]Read from MH i2c: E2 [19:51:20]MH_I2C_Read... [19:51:20]Read from MH i2c: E2 03 00 [19:51:20]MH_I2C_Read... [19:51:20]Read from MH i2c: E2 03 00 86 47 00 90 00 41 [19:51:20]RAPDU: 90 00 [19:51:20]wFMCommunicate OK [19:51:20]wFMCommunicate request_size=4 [19:51:20]MH_SAM_APDU [19:51:20]CAPDU: 80 0D 03 02 [19:51:20]Write to MH i2c: E2 08 00 87 47 80 0D 03 02 00 00 00 00 49 [19:51:20]Write i2c OK [19:51:20]MH_I2C_Read... [19:51:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:51:20]Read from MH i2c: E2 [19:51:20]MH_I2C_Read... [19:51:20]Read from MH i2c: E2 0B 00 [19:51:20]MH_I2C_Read... [19:51:20]Read from MH i2c: E2 0B 00 87 47 00 7C A6 D6 A6 12 E9 5C 1C 90 00 5B [19:51:20]RAPDU: 7C A6 D6 A6 12 E9 5C 1C 90 00 [19:51:20]wFMCommunicate OK [19:51:20]SAM_PROTO_SignData done [19:51:20]FM_MakeSignedData done [19:51:20]CreateOFDProtocolMessage [19:51:20]wFMCommunicate request_size=4 [19:51:20]MH_SAM_APDU [19:51:20]CAPDU: 80 11 00 00 [19:51:20]Write to MH i2c: E2 08 00 88 47 80 11 00 00 00 00 00 00 49 [19:51:20]Write i2c OK [19:51:20]MH_I2C_Read... [19:51:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:51:20]Read from MH i2c: E2 [19:51:20]MH_I2C_Read... [19:51:20]Read from MH i2c: E2 17 00 [19:51:20]MH_I2C_Read... [19:51:20]Read from MH i2c: E2 17 00 88 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 A7 [19:51:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [19:51:20]wFMCommunicate OK [19:51:20]CreateOFDProtocolMessage done [19:51:20]OFDSenderStorePacket 123341 [19:51:20]StoreOFDPacket docnum=123341 [19:51:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 4D 62 07 01 EF 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 BB D4 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 CD E1 01 00 35 04 06 00 5D EB 28 16 05 A8 7C A6 D6 A6 12 E9 5C 1C [19:51:20]CheckFolder [19:51:20]dirname=/storage/ofd_packets [19:51:20]CheckFolder done [19:51:20]ProducePacketName [19:51:20]name=ofd_packets/00123341 [19:51:20]NVStorageSaveData ofd_packets/00123341 [19:51:20]File name is /storage/ofd_packets/00123341 [19:51:20]Write 301 bytes [19:51:20]NVStorageSaveData done [19:51:20]OFDSenderStorePacket done [19:51:20]KKMCreateOFDPacket done [19:51:20]NVStorageSaveData kkm_last_timestamp [19:51:20]File name is /storage/kkm_last_timestamp [19:51:20]Write 4 bytes [19:51:20]NVStorageSaveData done [19:51:20]ExternCall_PrintAddStr [19:51:20]wPrintStart [19:51:20]Write to MH i2c: 01 00 00 89 47 D0 [19:51:20]Write i2c OK [19:51:20]MH_I2C_Read... [19:51:20]Read from MH i2c: 01 [19:51:20]MH_I2C_Read... [19:51:20]Read from MH i2c: 01 07 00 [19:51:20]MH_I2C_Read... [19:51:20]Read from MH i2c: 01 07 00 89 47 00 00 00 00 00 FF 0F E5 [19:51:20]RasterBufferAndPrint [19:51:20]line Счет N : (1)1106299 [19:51:20]line ИНН: 02508201610067 [19:51:20]line Контрольно-Кассовый Чек [19:51:20]line ПРОДАЖА [19:51:20]line ТРК (МРК, ГНК) : 63 [19:51:20]line Товар: 2710124500 [19:51:20]line Аи-95-К-5 [19:51:20]line 14.390 * 69.50 [19:51:20]line = 1000.11 [19:51:20]line НДС 12% НСП 1% [19:51:20]line > о реализуемом товаре [19:51:20]line ИТОГО: 1000.11 [19:51:20]line НСП 1% : 8.85 [19:51:20]line НДС 12% : 106.21 [19:51:20]line Наличными: 0.00 [19:51:20]line Безнал.: 1000.11 [19:51:20]line Место: АЗС № 25 "Партнер Нефть" [19:51:20]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [19:51:20]line СНО: Общий режим [19:51:20]line Чек 198 03.03.2024 19:51 [19:51:20]line Смена: 323 ФФД: 1.0 [19:51:20]line ЗНМ: 0300000019 [19:51:20]line РНМ: 0000000000090573 [19:51:20]line Версия ККМ: 001 [19:51:20]line Платежная система: Бакай Банк [19:51:20]line ФМ: 0000000000874798 [19:51:20]line ФД: 123341 [19:51:20]line ФПД: 103264571229608 [19:51:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T195123&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123341&fm=103264571229608&tin=02508201610067®Number=0000000000090573&sum=100011 [19:51:20]OFD Sender: Processing packet 123341 [packets to send 112, broken 111] [19:51:20]ProducePacketName [19:51:20]name=ofd_packets/00123341 [19:51:20]OFD Sender: To server: pG, [19:51:20]CommunicateWithHost lk.salyk.kg:30040 [19:51:20]ConnectInit lk.salyk.kg [19:51:20]written 0, free lines is 4095 [19:51:20]Connected sock=10 [19:51: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 37 39 38 0F 01 00 00 4D 62 07 01 EF 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 BB D4 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 CD E1 01 00 35 04 06 00 5D EB 28 16 05 A8 7C A6 D6 A6 12 E9 5C 1C [19:51:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 7C 95 47 00 1D 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 CD E1 01 00 F4 03 04 00 E6 80 E4 65 B6 04 01 00 00 7A B7 72 4F 37 22 E3 F5 [19:51:20]CommunicateWithHost err = 0 [19:51:20]CheckOFDResponse [19:51:20]1017 (14) - 77093643461234 [19:51:20]1041 (16) - 0000000000874798 [19:51:20]1040 (4) - 123341 [19:51:20]1012 (4) - 03.03.2024 13:53 [19:51:20]1206 (1) - 0 [19:51:20]OFD Sender: Remove packet 123341 [19:51:20]ProducePacketName [19:51:20]name=ofd_packets/00123341 [19:51:20]NVStorageDeleteData [19:51:21]Write to MH i2c: 01 00 00 B3 47 FA [19:51:21]Write i2c OK [19:51:21]MH_I2C_Read... [19:51:21]Read from MH i2c: 01 [19:51:21]MH_I2C_Read... [19:51:21]Read from MH i2c: 01 07 00 [19:51:21]MH_I2C_Read... [19:51:21]Read from MH i2c: 01 07 00 B3 47 00 00 00 00 00 FA 0C 07 [19:51:21]RasterBufferAndPrint [19:51:21]line [19:51:21]line [19:51:21]line [19:51:21]line [19:51:21]line [19:51:21]written 0, free lines is 3329 [19:51:21]MH_Cut [19:51:21]Write to MH i2c: D1 01 00 BA 47 01 D3 [19:51:21]Write i2c OK [19:51:21]MH_I2C_Read... [19:51:21]Read from MH i2c: D1 [19:51:21]MH_I2C_Read... [19:51:21]Read from MH i2c: D1 01 00 [19:51:21]MH_I2C_Read... [19:51:21]Read from MH i2c: D1 01 00 BA 47 00 D2 [19:51:21]Write to MH i2c: 01 00 00 BB 47 02 [19:51:21]Write i2c OK [19:51:21]MH_I2C_Read... [19:51:21]OFD Sender: No OFD packet to send [19:51:21]*** Cut start [19:51:21]*** Purtial cut [19:51:21]*** Stage 1: CUTSNS_PIN = 1 [19:51:23]Read from MH i2c: 01 [19:51:23]MH_I2C_Read... [19:51:23]*** Stop cut motor [19:51:23]*** Cut end [19:51:23]Read from MH i2c: 01 07 00 [19:51:23]MH_I2C_Read... [19:51:23]Read from MH i2c: 01 07 00 BB 47 00 00 00 00 00 FF 0F 17 [19:51:23]process_action close_receipt done [19:51:23]requested_data is exist [19:51:23]produce_requested_data [19:51:23]requested_item fm.sn is exist - process it [19:51:23]wFMCommunicate request_size=4 [19:51:23]MH_SAM_APDU [19:51:23]CAPDU: 80 11 00 00 [19:51:23]Write to MH i2c: E2 08 00 BC 47 80 11 00 00 00 00 00 00 7D [19:51:23]Write i2c OK [19:51:23]MH_I2C_Read... [19:51:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:51:23]Read from MH i2c: E2 [19:51:23]MH_I2C_Read... [19:51:23]Read from MH i2c: E2 17 00 [19:51:23]MH_I2C_Read... [19:51:23]Read from MH i2c: E2 17 00 BC 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 DB [19:51:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [19:51:23]wFMCommunicate OK [19:51:23]requested_item fd.num is exist - process it [19:51:23]SAM_PROTO_GetFieldsCounters [19:51:23]wFMCommunicate request_size=4 [19:51:23]MH_SAM_APDU [19:51:23]CAPDU: 80 13 00 00 [19:51:23]Write to MH i2c: E2 08 00 BD 47 80 13 00 00 00 00 00 00 80 [19:51:23]Write i2c OK [19:51:23]MH_I2C_Read... [19:51:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:51:24]Read from MH i2c: E2 [19:51:24]MH_I2C_Read... [19:51:24]Read from MH i2c: E2 62 00 [19:51:24]MH_I2C_Read... [19:51:24]Read from MH i2c: E2 62 00 BD 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 CD E1 01 00 0E 04 04 00 43 01 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 F0 [19:51:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 CD E1 01 00 0E 04 04 00 43 01 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 [19:51:24]wFMCommunicate OK [19:51:24]SAM_PROTO_GetFieldsCounters done [19:51:24]requested_item shift.num is exist - process it [19:51:24]requested_item shift.opened is exist - process it [19:51:24]req_shift_opened [19:51:24]FM_GetShiftState [19:51:24]SAM_PROTO_GetShiftState [19:51:24]wFMCommunicate request_size=4 [19:51:24]MH_SAM_APDU [19:51:24]CAPDU: 80 13 01 00 [19:51:24]Write to MH i2c: E2 08 00 BE 47 80 13 01 00 00 00 00 00 82 [19:51:24]Write i2c OK [19:51:24]MH_I2C_Read... [19:51:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:51:24]Read from MH i2c: E2 [19:51:24]MH_I2C_Read... [19:51:24]Read from MH i2c: E2 0E 00 [19:51:24]MH_I2C_Read... [19:51:24]Read from MH i2c: E2 0E 00 BE 47 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 44 [19:51:24]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [19:51:24]wFMCommunicate OK [19:51:24]SAM_PROTO_GetShiftState done [19:51:24]FM_GetShiftState done [19:51:24]req_shift_opened done [19:51:24]requested_item shift.open_date is exist - process it [19:51:24]req_shift_open_date [19:51:24]req_shift_open_date done [19:51:24]produce_requested_data done [19:51:24]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123341,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [19:51:24]process_action_free close_receipt [19:51:24]json_value_free [19:51:24]json_value_free done [19:51:24]process_json_proto returns [19:51:24]Send response to host [19:51:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123341,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [19:51:24]free response buf [19:51:24]execute_script done [19:51:24]execute_script returns [19:51:24]free content buf [19:51:24]Sock 7.Close socket [19:51:24]Sock 7.Thread stoped [19:51:26]OFD Sender: No OFD packet to send [19:51:31]OFD Sender: No OFD packet to send [19:51:34]accept exits with 9 [19:51:34]New connection [19:51:34]New thread 3067252068 created [19:51:34]Thread 3067395428 joined [19:51:34]Waiting for new connection... [19:51:34] Sock 9.Parse request [19:51:34]Sock 9.Check first char [19:51:34]Sock 9.First char is OK [19:51:34]request: POST /json_proto HTTP/1.0 [19:51:34]Method: POST [19:51:34]URL: /json_proto [19:51:34]Method is POST - this is cgi request [19:51:34]url: /json_proto [19:51:34]query_string will be loaded in cgi processing [19:51:34]execute_cgi json_proto POST (null) [19:51:34]execute_cgi path=json_proto method=POST [19:51:34]POST find Content-Length [19:51:34]Host: 172.17.48.197:8080 [19:51:34]Content-Length: 678 [19:51:34]Content-Type: application/json [19:51:34] [19:51:34]POST finish read [19:51:34]Found Content-Length = 678 [19:51:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106298", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 2.430, "sum" : 150.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:51:34]execute_script... [19:51:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106298", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 2.430, "sum" : 150.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:51:34]POST & json_proto [19:51:34]process_json_proto [19:51:34]json parsed OK: [19:51:34]protocol is kg_v1.0 [19:51:34]action value=close_receipt [19:51:34]process_action close_receipt [19:51:34]cmd_close_receipt [19:51:34]MH_GetDate [19:51:34]Write to MH i2c: F0 00 00 BF 47 F5 [19:51:34]Write i2c OK [19:51:34]MH_I2C_Read... [19:51:34]Read from MH i2c: F0 [19:51:34]MH_I2C_Read... [19:51:34]Read from MH i2c: F0 09 00 [19:51:34]MH_I2C_Read... [19:51:34]Read from MH i2c: F0 09 00 BF 47 00 CA D4 E4 65 6C AF E3 65 48 [19:51:34]GetLastDocTimeStamp 1709495483 [19:51:34]current date 1709495498 [19:51:34]FM_GetShiftState [19:51:34]SAM_PROTO_GetShiftState [19:51:34]wFMCommunicate request_size=4 [19:51:34]MH_SAM_APDU [19:51:34]CAPDU: 80 13 01 00 [19:51:34]Write to MH i2c: E2 08 00 C0 47 80 13 01 00 00 00 00 00 84 [19:51:34]Write i2c OK [19:51:34]MH_I2C_Read... [19:51:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:51:34]Read from MH i2c: E2 [19:51:34]MH_I2C_Read... [19:51:34]Read from MH i2c: E2 0E 00 [19:51:34]MH_I2C_Read... [19:51:34]Read from MH i2c: E2 0E 00 C0 47 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 46 [19:51:34]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [19:51:34]wFMCommunicate OK [19:51:34]SAM_PROTO_GetShiftState done [19:51:34]FM_GetShiftState done [19:51:34]opened in 1709425579 [19:51:34]opened+sec_in_day 1709511979 [19:51:34]quantity*price = 15041 [19:51:34]sum+1 = 15043 [19:51:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 150.00 Внесено: 150.00 СДАЧА: 0.00 НСП 1% : 1.33 НДС 12% : 15.97 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 199 03.03.2024 19:51 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123342 ФПД: 2047897657048 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T195139&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123342&fm=2047897657048&tin=02508201610067®Number=0000000000090573&sum=15000 [19:51:35]StoreToDocumentArchive [19:51:35]shift 323 fd 123342 [19:51:35]save to /storage/0323/doc_00123342 [19:51:35]save last doc name /storage/0323/doc_00123342 to /storage/kkm_last_doc_name [19:51:35]save OK [19:51:35]Clear old archive folders... [19:51:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:51:35]tlvbuf is 00DA9440 [19:51:35]SAM_PROTO_ClearQueue [19:51:35]wFMCommunicate request_size=4 [19:51:35]MH_SAM_APDU [19:51:35]CAPDU: 80 09 00 00 [19:51:35]Write to MH i2c: E2 08 00 CD 47 80 09 00 00 00 00 00 00 86 [19:51:35]Write i2c OK [19:51:35]MH_I2C_Read... [19:51:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:51:35]Read from MH i2c: E2 [19:51:35]MH_I2C_Read... [19:51:35]Read from MH i2c: E2 03 00 [19:51:35]MH_I2C_Read... [19:51:35]Read from MH i2c: E2 03 00 CD 47 00 90 00 88 [19:51:35]RAPDU: 90 00 [19:51:35]wFMCommunicate OK [19:51:35]SAM_PROTO_ClearQueue done [19:51:35]KKMCreateOFDPacket [19:51:35]OFDProtocolAddRootSTLVToBuf [19:51:35]FM_MakeSignedData [19:51:35]FM_MakeSignedData [19:51:35]SAM_PROTO_SignData [19:51:35]wFMCommunicate request_size=4 [19:51:35]MH_SAM_APDU [19:51:35]CAPDU: 80 0D 01 02 [19:51:35]Write to MH i2c: E2 08 00 CE 47 80 0D 01 02 00 00 00 00 8E [19:51:35]Write i2c OK [19:51:35]MH_I2C_Read... [19:51:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:51:35]Read from MH i2c: E2 [19:51:35]MH_I2C_Read... [19:51:35]Read from MH i2c: E2 03 00 [19:51:35]MH_I2C_Read... [19:51:35]Read from MH i2c: E2 03 00 CE 47 00 90 00 89 [19:51:35]RAPDU: 90 00 [19:51:35]wFMCommunicate OK [19:51:35]wFMCommunicate request_size=255 [19:51:35]MH_SAM_APDU [19:51: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 35 FF 03 08 00 03 7E 09 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 C2 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 3D 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 C7 00 00 00 F4 03 04 00 CB D4 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 CE E1 01 00 35 04 06 00 01 [19:51:35]Write to MH i2c: E2 02 01 CF 47 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 09 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 C2 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 3D 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 C7 00 00 00 F4 03 04 00 CB D4 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 CE E1 01 00 35 04 06 00 01 00 00 7B [19:51:35]Write i2c OK [19:51:35]MH_I2C_Read... [19:51:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:51:35]Read from MH i2c: E2 [19:51:35]MH_I2C_Read... [19:51:35]Read from MH i2c: E2 03 00 [19:51:35]MH_I2C_Read... [19:51:35]Read from MH i2c: E2 03 00 CF 47 00 90 00 8A [19:51:35]RAPDU: 90 00 [19:51:35]wFMCommunicate OK [19:51:35]wFMCommunicate request_size=10 [19:51:35]MH_SAM_APDU [19:51:35]CAPDU: 80 0D 02 02 05 DC D0 36 5E D8 [19:51:35]Write to MH i2c: E2 0D 00 D0 47 80 0D 02 02 05 00 DC D0 36 5E D8 00 00 B3 [19:51:35]Write i2c OK [19:51:35]MH_I2C_Read... [19:51:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:51:35]Read from MH i2c: E2 [19:51:35]MH_I2C_Read... [19:51:35]Read from MH i2c: E2 03 00 [19:51:35]MH_I2C_Read... [19:51:35]Read from MH i2c: E2 03 00 D0 47 00 90 00 8B [19:51:35]RAPDU: 90 00 [19:51:35]wFMCommunicate OK [19:51:35]wFMCommunicate request_size=4 [19:51:35]MH_SAM_APDU [19:51:35]CAPDU: 80 0D 03 02 [19:51:35]Write to MH i2c: E2 08 00 D1 47 80 0D 03 02 00 00 00 00 93 [19:51:35]Write i2c OK [19:51:35]MH_I2C_Read... [19:51:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:51:35]Read from MH i2c: E2 [19:51:35]MH_I2C_Read... [19:51:35]Read from MH i2c: E2 0B 00 [19:51:35]MH_I2C_Read... [19:51:35]Read from MH i2c: E2 0B 00 D1 47 00 56 47 57 C7 41 DF F0 00 90 00 5F [19:51:35]RAPDU: 56 47 57 C7 41 DF F0 00 90 00 [19:51:35]wFMCommunicate OK [19:51:35]SAM_PROTO_SignData done [19:51:35]FM_MakeSignedData done [19:51:35]CreateOFDProtocolMessage [19:51:35]wFMCommunicate request_size=4 [19:51:35]MH_SAM_APDU [19:51:35]CAPDU: 80 11 00 00 [19:51:35]Write to MH i2c: E2 08 00 D2 47 80 11 00 00 00 00 00 00 93 [19:51:35]Write i2c OK [19:51:35]MH_I2C_Read... [19:51:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:51:35]Read from MH i2c: E2 [19:51:35]MH_I2C_Read... [19:51:35]Read from MH i2c: E2 17 00 [19:51:35]MH_I2C_Read... [19:51:35]Read from MH i2c: E2 17 00 D2 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 F1 [19:51:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [19:51:35]wFMCommunicate OK [19:51:35]CreateOFDProtocolMessage done [19:51:35]OFDSenderStorePacket 123342 [19:51:35]StoreOFDPacket docnum=123342 [19:51:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 F6 57 07 01 4A 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 09 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 C2 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 3D 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 C7 00 00 00 F4 03 04 00 CB D4 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 CE E1 01 00 35 04 06 00 01 DC D0 36 5E D8 56 47 57 C7 41 DF F0 00 [19:51:35]CheckFolder [19:51:35]dirname=/storage/ofd_packets [19:51:35]CheckFolder done [19:51:35]ProducePacketName [19:51:35]name=ofd_packets/00123342 [19:51:35]NVStorageSaveData ofd_packets/00123342 [19:51:35]File name is /storage/ofd_packets/00123342 [19:51:35]Write 301 bytes [19:51:35]NVStorageSaveData done [19:51:35]OFDSenderStorePacket done [19:51:35]KKMCreateOFDPacket done [19:51:35]NVStorageSaveData kkm_last_timestamp [19:51:35]File name is /storage/kkm_last_timestamp [19:51:35]Write 4 bytes [19:51:35]NVStorageSaveData done [19:51:35]ExternCall_PrintAddStr [19:51:35]wPrintStart [19:51:35]Write to MH i2c: 01 00 00 D3 47 1A [19:51:35]Write i2c OK [19:51:35]MH_I2C_Read... [19:51:35]Read from MH i2c: 01 [19:51:35]MH_I2C_Read... [19:51:35]Read from MH i2c: 01 07 00 [19:51:35]MH_I2C_Read... [19:51:35]Read from MH i2c: 01 07 00 D3 47 00 00 00 00 00 FF 0F 2F [19:51:35]RasterBufferAndPrint [19:51:35]line Счет N : (1)1106298 [19:51:35]line ИНН: 02508201610067 [19:51:35]line Контрольно-Кассовый Чек [19:51:35]line ПРОДАЖА [19:51:35]line ТРК (МРК, ГНК) : 21 [19:51:35]line Товар: 2710124130 [19:51:35]line Аи-92-К-5 [19:51:35]line 2.430 * 61.90 [19:51:35]line = 150.42 [19:51:35]line НДС 12% НСП 1% [19:51:35]line > о реализуемом товаре [19:51:35]line ОКРУГЛЕНИЕ: -0.42 [19:51:35]line ИТОГО: 150.00 [19:51:35]line Внесено: 150.00 [19:51:35]line СДАЧА: 0.00 [19:51:35]line НСП 1% : 1.33 [19:51:35]line НДС 12% : 15.97 [19:51:35]line Наличными: 150.00 [19:51:35]line Безнал.: 0.00 [19:51:35]line Место: АЗС № 25 "Партнер Нефть" [19:51:35]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [19:51:35]line СНО: Общий режим [19:51:35]line Чек 199 03.03.2024 19:51 [19:51:35]line Смена: 323 ФФД: 1.0 [19:51:35]line ЗНМ: 0300000019 [19:51:35]line РНМ: 0000000000090573 [19:51:35]line Версия ККМ: 001 [19:51:35]line ФМ: 0000000000874798 [19:51:35]line ФД: 123342 [19:51:35]line ФПД: 2047897657048 [19:51:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T195139&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123342&fm=2047897657048&tin=02508201610067®Number=0000000000090573&sum=15000 [19:51:35]written 0, free lines is 4095 [19:51:35]OFD Sender: Processing packet 123342 [packets to send 112, broken 111] [19:51:35]ProducePacketName [19:51:35]name=ofd_packets/00123342 [19:51:35]OFD Sender: To server: pG, [19:51:35]CommunicateWithHost lk.salyk.kg:30040 [19:51:35]ConnectInit lk.salyk.kg [19:51:36]Connected sock=11 [19:51: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 37 39 38 0F 01 00 00 F6 57 07 01 4A 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 09 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 C2 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 3D 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 C7 00 00 00 F4 03 04 00 CB D4 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 CE E1 01 00 35 04 06 00 01 DC D0 36 5E D8 56 47 57 C7 41 DF F0 00 [19:51:36]Write to MH i2c: 01 00 00 FE 47 45 [19:51:36]Write i2c OK [19:51:36]MH_I2C_Read... [19:51:36]Read from MH i2c: 01 [19:51:36]MH_I2C_Read... [19:51:36]Read from MH i2c: 01 07 00 [19:51:36]MH_I2C_Read... [19:51:36]Read from MH i2c: 01 07 00 FE 47 00 00 00 00 00 E1 0C 39 [19:51:36]RasterBufferAndPrint [19:51:36]line [19:51:36]line [19:51:36]line [19:51:36]line [19:51:36]line [19:51:36]written 0, free lines is 3303 [19:51:36]MH_Cut [19:51:36]Write to MH i2c: D1 01 00 05 48 01 1F [19:51:36]Write i2c OK [19:51:36]MH_I2C_Read... [19:51:36]Read from MH i2c: D1 [19:51:36]MH_I2C_Read... [19:51:36]Read from MH i2c: D1 01 00 [19:51:36]MH_I2C_Read... [19:51:36]Read from MH i2c: D1 01 00 05 48 00 1E [19:51:36]Write to MH i2c: 01 00 00 06 48 4E [19:51:36]Write i2c OK [19:51:36]MH_I2C_Read... [19:51:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 8E CE 47 00 8E 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 CE E1 01 00 F4 03 04 00 F5 80 E4 65 B6 04 01 00 00 5E FA 85 75 C8 15 80 03 [19:51:36]CommunicateWithHost err = 0 [19:51:36]CheckOFDResponse [19:51:36]1017 (14) - 77093643461234 [19:51:36]1041 (16) - 0000000000874798 [19:51:36]1040 (4) - 123342 [19:51:36]1012 (4) - 03.03.2024 13:53 [19:51:36]1206 (1) - 0 [19:51:36]OFD Sender: Remove packet 123342 [19:51:36]ProducePacketName [19:51:36]name=ofd_packets/00123342 [19:51:36]NVStorageDeleteData [19:51:37]OFD Sender: No OFD packet to send [19:51:37]*** Cut start [19:51:37]*** Purtial cut [19:51:37]*** Stage 1: CUTSNS_PIN = 1 [19:51:39]Read from MH i2c: 01 [19:51:39]MH_I2C_Read... [19:51:39]*** Stop cut motor [19:51:39]*** Cut end [19:51:39]Read from MH i2c: 01 07 00 [19:51:39]MH_I2C_Read... [19:51:39]Read from MH i2c: 01 07 00 06 48 00 00 00 00 00 FF 0F 63 [19:51:39]process_action close_receipt done [19:51:39]requested_data is exist [19:51:39]produce_requested_data [19:51:39]requested_item fm.sn is exist - process it [19:51:39]wFMCommunicate request_size=4 [19:51:39]MH_SAM_APDU [19:51:39]CAPDU: 80 11 00 00 [19:51:39]Write to MH i2c: E2 08 00 07 48 80 11 00 00 00 00 00 00 C9 [19:51:39]Write i2c OK [19:51:39]MH_I2C_Read... [19:51:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:51:39]Read from MH i2c: E2 [19:51:39]MH_I2C_Read... [19:51:39]Read from MH i2c: E2 17 00 [19:51:39]MH_I2C_Read... [19:51:39]Read from MH i2c: E2 17 00 07 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 27 [19:51:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [19:51:39]wFMCommunicate OK [19:51:39]requested_item fd.num is exist - process it [19:51:39]SAM_PROTO_GetFieldsCounters [19:51:39]wFMCommunicate request_size=4 [19:51:39]MH_SAM_APDU [19:51:39]CAPDU: 80 13 00 00 [19:51:39]Write to MH i2c: E2 08 00 08 48 80 13 00 00 00 00 00 00 CC [19:51:39]Write i2c OK [19:51:39]MH_I2C_Read... [19:51:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:51:39]Read from MH i2c: E2 [19:51:39]MH_I2C_Read... [19:51:39]Read from MH i2c: E2 62 00 [19:51:39]MH_I2C_Read... [19:51:39]Read from MH i2c: E2 62 00 08 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 CE E1 01 00 0E 04 04 00 43 01 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 40 [19:51: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 CE E1 01 00 0E 04 04 00 43 01 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 [19:51:39]wFMCommunicate OK [19:51:39]SAM_PROTO_GetFieldsCounters done [19:51:39]requested_item shift.num is exist - process it [19:51:39]requested_item shift.opened is exist - process it [19:51:39]req_shift_opened [19:51:39]FM_GetShiftState [19:51:39]SAM_PROTO_GetShiftState [19:51:39]wFMCommunicate request_size=4 [19:51:39]MH_SAM_APDU [19:51:39]CAPDU: 80 13 01 00 [19:51:39]Write to MH i2c: E2 08 00 09 48 80 13 01 00 00 00 00 00 CE [19:51:39]Write i2c OK [19:51:39]MH_I2C_Read... [19:51:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:51:39]Read from MH i2c: E2 [19:51:39]MH_I2C_Read... [19:51:39]Read from MH i2c: E2 0E 00 [19:51:39]MH_I2C_Read... [19:51:39]Read from MH i2c: E2 0E 00 09 48 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 90 [19:51:39]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [19:51:39]wFMCommunicate OK [19:51:39]SAM_PROTO_GetShiftState done [19:51:39]FM_GetShiftState done [19:51:39]req_shift_opened done [19:51:39]requested_item shift.open_date is exist - process it [19:51:39]req_shift_open_date [19:51:39]req_shift_open_date done [19:51:39]produce_requested_data done [19:51:39]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123342,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [19:51:39]process_action_free close_receipt [19:51:39]json_value_free [19:51:39]json_value_free done [19:51:39]process_json_proto returns [19:51:39]Send response to host [19:51:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123342,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [19:51:39]free response buf [19:51:39]execute_script done [19:51:39]execute_script returns [19:51:39]free content buf [19:51:39]Sock 9.Close socket [19:51:39]Sock 9.Thread stoped [19:51:42]OFD Sender: No OFD packet to send [19:51:47]OFD Sender: No OFD packet to send [19:51:52]OFD Sender: No OFD packet to send [19:51:57]OFD Sender: No OFD packet to send [19:52:02]OFD Sender: No OFD packet to send [19:52:07]OFD Sender: No OFD packet to send [19:52:12]OFD Sender: No OFD packet to send [19:52:17]OFD Sender: No OFD packet to send [19:52:22]OFD Sender: No OFD packet to send [19:52:27]OFD Sender: No OFD packet to send [19:52:32]OFD Sender: No OFD packet to send [19:52:37]OFD Sender: No OFD packet to send [19:52:42]OFD Sender: No OFD packet to send [19:52:47]OFD Sender: No OFD packet to send [19:52:52]OFD Sender: No OFD packet to send [19:52:57]OFD Sender: No OFD packet to send [19:53:02]OFD Sender: No OFD packet to send [19:53:07]OFD Sender: No OFD packet to send [19:53:12]OFD Sender: No OFD packet to send [19:53:16]accept exits with 7 [19:53:16]New connection [19:53:16]New thread 3067395428 created [19:53:16]Thread 3067252068 joined [19:53:16]Waiting for new connection... [19:53:16] Sock 7.Parse request [19:53:16]Sock 7.Check first char [19:53:16]Sock 7.First char is OK [19:53:16]request: POST /json_proto HTTP/1.0 [19:53:16]Method: POST [19:53:16]URL: /json_proto [19:53:16]Method is POST - this is cgi request [19:53:16]url: /json_proto [19:53:16]query_string will be loaded in cgi processing [19:53:16]execute_cgi json_proto POST (null) [19:53:16]execute_cgi path=json_proto method=POST [19:53:16]POST find Content-Length [19:53:16]Host: 172.17.48.197:8080 [19:53:16]Content-Length: 1216 [19:53:16]Content-Type: application/json [19:53:16] [19:53:16]POST finish read [19:53:16]Found Content-Length = 1216 [19:53:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106300\u000A03.03.2024 19:49\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 52\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 8.080 x 61.90\u000A\u0418\u0422\u041E\u0413: 500.15\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3860635\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:53:16]execute_script... [19:53:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106300\u000A03.03.2024 19:49\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 52\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 8.080 x 61.90\u000A\u0418\u0422\u041E\u0413: 500.15\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3860635\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:53:16]POST & json_proto [19:53:16]process_json_proto [19:53:16]json parsed OK: [19:53:16]protocol is kg_v1.0 [19:53:16]action value=print_text [19:53:16]process_action print_text [19:53:16]cmd_print_text [19:53:16]ExternCall_PrintAddStr [19:53:16]wPrintStart [19:53:16]Write to MH i2c: 01 00 00 0A 48 52 [19:53:16]Write i2c OK [19:53:16]MH_I2C_Read... [19:53:16]Read from MH i2c: 01 [19:53:16]MH_I2C_Read... [19:53:16]Read from MH i2c: 01 07 00 [19:53:16]MH_I2C_Read... [19:53:16]Read from MH i2c: 01 07 00 0A 48 00 00 00 00 00 FF 0F 67 [19:53:16]RasterBufferAndPrint [19:53:16]line *****ТОВАРНЫЙ ЧЕК***** [19:53:16]line АЗС 25 [19:53:16]line Партнер нефть [19:53:16]line 02508201610067 [19:53:16]line Кассир : Турдумбек у. К. [19:53:16]line Счет N : (1)1106300 [19:53:16]line 03.03.2024 19:49 [19:53:16]line ПРОДАЖА [19:53:16]line ТРК (МРК, ГНК): 52 [19:53:16]line Вид ГСМ : 2710124130 [19:53:16]line Аи-92-К-5 [19:53:16]line 8.080 x 61.90 [19:53:16]line ИТОГ: 500.15 [19:53:16]line Тип оплаты: Талоны: Топливные Талоны [19:53:16]line 3860635 [19:53:16]line ______________________ [19:53:16]line (подпись) [19:53:16]written 0, free lines is 4095 [19:53:16]Write to MH i2c: 01 00 00 1F 48 67 [19:53:16]Write i2c OK [19:53:16]MH_I2C_Read... [19:53:16]Read from MH i2c: 01 [19:53:16]MH_I2C_Read... [19:53:16]Read from MH i2c: 01 07 00 [19:53:16]MH_I2C_Read... [19:53:16]Read from MH i2c: 01 07 00 1F 48 00 00 00 00 00 F4 0D 6F [19:53:16]RasterBufferAndPrint [19:53:16]line [19:53:16]line [19:53:16]line [19:53:16]line [19:53:16]line [19:53:16]written 0, free lines is 3574 [19:53:16]MH_Cut [19:53:16]Write to MH i2c: D1 01 00 26 48 01 40 [19:53:16]Write i2c OK [19:53:16]MH_I2C_Read... [19:53:16]Read from MH i2c: D1 [19:53:16]MH_I2C_Read... [19:53:16]Read from MH i2c: D1 01 00 [19:53:16]MH_I2C_Read... [19:53:16]Read from MH i2c: D1 01 00 26 48 00 3F [19:53:16]Write to MH i2c: 01 00 00 27 48 6F [19:53:16]Write i2c OK [19:53:16]MH_I2C_Read... [19:53:17]OFD Sender: No OFD packet to send [19:53:17]*** Cut start [19:53:17]*** Purtial cut [19:53:17]*** Stage 1: CUTSNS_PIN = 1 [19:53:19]Read from MH i2c: 01 [19:53:19]MH_I2C_Read... [19:53:19]*** Stop cut motor [19:53:19]*** Cut end [19:53:19]Read from MH i2c: 01 07 00 [19:53:19]MH_I2C_Read... [19:53:19]Read from MH i2c: 01 07 00 27 48 00 00 00 00 00 FF 0F 84 [19:53:19]process_action print_text done [19:53:19]requested_data is exist [19:53:19]produce_requested_data [19:53:19]requested_item fm.sn is exist - process it [19:53:19]wFMCommunicate request_size=4 [19:53:19]MH_SAM_APDU [19:53:19]CAPDU: 80 11 00 00 [19:53:19]Write to MH i2c: E2 08 00 28 48 80 11 00 00 00 00 00 00 EA [19:53:19]Write i2c OK [19:53:19]MH_I2C_Read... [19:53:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:53:19]Read from MH i2c: E2 [19:53:19]MH_I2C_Read... [19:53:19]Read from MH i2c: E2 17 00 [19:53:19]MH_I2C_Read... [19:53:19]Read from MH i2c: E2 17 00 28 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 48 [19:53:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [19:53:19]wFMCommunicate OK [19:53:19]requested_item fd.num is exist - process it [19:53:19]SAM_PROTO_GetFieldsCounters [19:53:19]wFMCommunicate request_size=4 [19:53:19]MH_SAM_APDU [19:53:19]CAPDU: 80 13 00 00 [19:53:19]Write to MH i2c: E2 08 00 29 48 80 13 00 00 00 00 00 00 ED [19:53:19]Write i2c OK [19:53:19]MH_I2C_Read... [19:53:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:53:19]Read from MH i2c: E2 [19:53:19]MH_I2C_Read... [19:53:19]Read from MH i2c: E2 62 00 [19:53:19]MH_I2C_Read... [19:53:19]Read from MH i2c: E2 62 00 29 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 CE E1 01 00 0E 04 04 00 43 01 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 61 [19: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 CE E1 01 00 0E 04 04 00 43 01 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 [19:53:19]wFMCommunicate OK [19:53:19]SAM_PROTO_GetFieldsCounters done [19:53:19]requested_item shift.num is exist - process it [19:53:19]requested_item shift.opened is exist - process it [19:53:19]req_shift_opened [19:53:19]FM_GetShiftState [19:53:19]SAM_PROTO_GetShiftState [19:53:19]wFMCommunicate request_size=4 [19:53:19]MH_SAM_APDU [19:53:19]CAPDU: 80 13 01 00 [19:53:19]Write to MH i2c: E2 08 00 2A 48 80 13 01 00 00 00 00 00 EF [19:53:19]Write i2c OK [19:53:19]MH_I2C_Read... [19:53:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:53:19]Read from MH i2c: E2 [19:53:19]MH_I2C_Read... [19:53:19]Read from MH i2c: E2 0E 00 [19:53:19]MH_I2C_Read... [19:53:19]Read from MH i2c: E2 0E 00 2A 48 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 B1 [19:53:19]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [19:53:19]wFMCommunicate OK [19:53:19]SAM_PROTO_GetShiftState done [19:53:19]FM_GetShiftState done [19:53:19]req_shift_opened done [19:53:19]requested_item shift.open_date is exist - process it [19:53:19]req_shift_open_date [19:53:19]req_shift_open_date done [19:53:19]produce_requested_data done [19:53:19]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123342,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [19:53:19]process_action_free print_text [19:53:19]json_value_free [19:53:19]json_value_free done [19:53:19]process_json_proto returns [19:53:19]Send response to host [19:53:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123342,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [19:53:19]free response buf [19:53:19]execute_script done [19:53:19]execute_script returns [19:53:19]free content buf [19:53:19]Sock 7.Close socket [19:53:19]Sock 7.Thread stoped [19:53:22]OFD Sender: No OFD packet to send [19:53:27]OFD Sender: No OFD packet to send [19:53:31]accept exits with 9 [19:53:31]New connection [19:53:31]New thread 3067252068 created [19:53:31]Thread 3067395428 joined [19:53:31]Waiting for new connection... [19:53:31] Sock 9.Parse request [19:53:31]Sock 9.Check first char [19:53:31]Sock 9.First char is OK [19:53:31]request: POST /json_proto HTTP/1.0 [19:53:31]Method: POST [19:53:31]URL: /json_proto [19:53:31]Method is POST - this is cgi request [19:53:31]url: /json_proto [19:53:31]query_string will be loaded in cgi processing [19:53:31]execute_cgi json_proto POST (null) [19:53:31]execute_cgi path=json_proto method=POST [19:53:31]POST find Content-Length [19:53:31]Host: 172.17.48.197:8080 [19:53:31]Content-Length: 1217 [19:53:31]Content-Type: application/json [19:53:31] [19:53:31]POST finish read [19:53:31]Found Content-Length = 1217 [19:53:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106301\u000A03.03.2024 19:49\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 619.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3860636\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:53:31]execute_script... [19:53:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106301\u000A03.03.2024 19:49\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 619.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3860636\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:53:31]POST & json_proto [19:53:31]process_json_proto [19:53:31]json parsed OK: [19:53:31]protocol is kg_v1.0 [19:53:31]action value=print_text [19:53:31]process_action print_text [19:53:31]cmd_print_text [19:53:31]ExternCall_PrintAddStr [19:53:31]wPrintStart [19:53:31]Write to MH i2c: 01 00 00 2B 48 73 [19:53:31]Write i2c OK [19:53:31]MH_I2C_Read... [19:53:31]Read from MH i2c: 01 [19:53:31]MH_I2C_Read... [19:53:31]Read from MH i2c: 01 07 00 [19:53:31]MH_I2C_Read... [19:53:31]Read from MH i2c: 01 07 00 2B 48 00 00 00 00 00 FF 0F 88 [19:53:31]RasterBufferAndPrint [19:53:31]line *****ТОВАРНЫЙ ЧЕК***** [19:53:31]line АЗС 25 [19:53:31]line Партнер нефть [19:53:31]line 02508201610067 [19:53:31]line Кассир : Турдумбек у. К. [19:53:31]line Счет N : (1)1106301 [19:53:31]line 03.03.2024 19:49 [19:53:31]line ПРОДАЖА [19:53:31]line ТРК (МРК, ГНК): 42 [19:53:31]line Вид ГСМ : 2710124130 [19:53:31]line Аи-92-К-5 [19:53:31]line 10.000 x 61.90 [19:53:31]line ИТОГ: 619.00 [19:53:31]line Тип оплаты: Талоны: Топливные Талоны [19:53:31]line 3860636 [19:53:31]line ______________________ [19:53:31]line (подпись) [19:53:31]written 0, free lines is 4095 [19:53:31]Write to MH i2c: 01 00 00 40 48 88 [19:53:31]Write i2c OK [19:53:31]MH_I2C_Read... [19:53:31]Read from MH i2c: 01 [19:53:31]MH_I2C_Read... [19:53:31]Read from MH i2c: 01 07 00 [19:53:31]MH_I2C_Read... [19:53:31]Read from MH i2c: 01 07 00 40 48 00 00 00 00 00 F5 0D 91 [19:53:31]RasterBufferAndPrint [19:53:31]line [19:53:31]line [19:53:31]line [19:53:31]line [19:53:31]line [19:53:31]written 0, free lines is 3575 [19:53:31]MH_Cut [19:53:31]Write to MH i2c: D1 01 00 47 48 01 61 [19:53:31]Write i2c OK [19:53:31]MH_I2C_Read... [19:53:31]Read from MH i2c: D1 [19:53:31]MH_I2C_Read... [19:53:31]Read from MH i2c: D1 01 00 [19:53:31]MH_I2C_Read... [19:53:31]Read from MH i2c: D1 01 00 47 48 00 60 [19:53:31]Write to MH i2c: 01 00 00 48 48 90 [19:53:31]Write i2c OK [19:53:31]MH_I2C_Read... [19:53:32]OFD Sender: No OFD packet to send [19:53:32]*** Cut start [19:53:32]*** Purtial cut [19:53:32]*** Stage 1: CUTSNS_PIN = 1 [19:53:34]Read from MH i2c: 01 [19:53:34]MH_I2C_Read... [19:53:34]*** Stop cut motor [19:53:34]*** Cut end [19:53:34]Read from MH i2c: 01 07 00 [19:53:34]MH_I2C_Read... [19:53:34]Read from MH i2c: 01 07 00 48 48 00 00 00 00 00 FF 0F A5 [19:53:34]process_action print_text done [19:53:34]requested_data is exist [19:53:34]produce_requested_data [19:53:34]requested_item fm.sn is exist - process it [19:53:34]wFMCommunicate request_size=4 [19:53:34]MH_SAM_APDU [19:53:34]CAPDU: 80 11 00 00 [19:53:34]Write to MH i2c: E2 08 00 49 48 80 11 00 00 00 00 00 00 0B [19:53:34]Write i2c OK [19:53:34]MH_I2C_Read... [19:53:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:53:34]Read from MH i2c: E2 [19:53:34]MH_I2C_Read... [19:53:34]Read from MH i2c: E2 17 00 [19:53:34]MH_I2C_Read... [19:53:34]Read from MH i2c: E2 17 00 49 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 69 [19:53:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [19:53:34]wFMCommunicate OK [19:53:34]requested_item fd.num is exist - process it [19:53:34]SAM_PROTO_GetFieldsCounters [19:53:34]wFMCommunicate request_size=4 [19:53:34]MH_SAM_APDU [19:53:34]CAPDU: 80 13 00 00 [19:53:34]Write to MH i2c: E2 08 00 4A 48 80 13 00 00 00 00 00 00 0E [19:53:34]Write i2c OK [19:53:34]MH_I2C_Read... [19:53:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:53:34]Read from MH i2c: E2 [19:53:34]MH_I2C_Read... [19:53:34]Read from MH i2c: E2 62 00 [19:53:34]MH_I2C_Read... [19:53:34]Read from MH i2c: E2 62 00 4A 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 CE E1 01 00 0E 04 04 00 43 01 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 82 [19: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 CE E1 01 00 0E 04 04 00 43 01 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 [19:53:34]wFMCommunicate OK [19:53:34]SAM_PROTO_GetFieldsCounters done [19:53:34]requested_item shift.num is exist - process it [19:53:34]requested_item shift.opened is exist - process it [19:53:34]req_shift_opened [19:53:34]FM_GetShiftState [19:53:34]SAM_PROTO_GetShiftState [19:53:34]wFMCommunicate request_size=4 [19:53:34]MH_SAM_APDU [19:53:34]CAPDU: 80 13 01 00 [19:53:34]Write to MH i2c: E2 08 00 4B 48 80 13 01 00 00 00 00 00 10 [19:53:34]Write i2c OK [19:53:34]MH_I2C_Read... [19:53:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:53:34]Read from MH i2c: E2 [19:53:34]MH_I2C_Read... [19:53:34]Read from MH i2c: E2 0E 00 [19:53:34]MH_I2C_Read... [19:53:34]Read from MH i2c: E2 0E 00 4B 48 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 D2 [19:53:34]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [19:53:34]wFMCommunicate OK [19:53:34]SAM_PROTO_GetShiftState done [19:53:34]FM_GetShiftState done [19:53:34]req_shift_opened done [19:53:34]requested_item shift.open_date is exist - process it [19:53:34]req_shift_open_date [19:53:34]req_shift_open_date done [19:53:34]produce_requested_data done [19:53:34]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123342,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [19:53:34]process_action_free print_text [19:53:34]json_value_free [19:53:34]json_value_free done [19:53:34]process_json_proto returns [19:53:34]Send response to host [19:53:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123342,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [19:53:34]free response buf [19:53:34]execute_script done [19:53:34]execute_script returns [19:53:34]free content buf [19:53:34]Sock 9.Close socket [19:53:34]Sock 9.Thread stoped [19:53:37]OFD Sender: No OFD packet to send [19:53:42]OFD Sender: No OFD packet to send [19:53:47]OFD Sender: No OFD packet to send [19:53:52]OFD Sender: No OFD packet to send [19:53:57]OFD Sender: No OFD packet to send [19:54:02]OFD Sender: No OFD packet to send [19:54:07]OFD Sender: No OFD packet to send [19:54:12]OFD Sender: No OFD packet to send [19:54:17]OFD Sender: No OFD packet to send [19:54:22]OFD Sender: No OFD packet to send [19:54:27]OFD Sender: No OFD packet to send [19:54:32]OFD Sender: No OFD packet to send [19:54:37]OFD Sender: No OFD packet to send [19:54:42]OFD Sender: No OFD packet to send [19:54:47]OFD Sender: No OFD packet to send [19:54:52]OFD Sender: No OFD packet to send [19:54:57]OFD Sender: No OFD packet to send [19:55:02]OFD Sender: No OFD packet to send [19:55:07]OFD Sender: No OFD packet to send [19:55:12]OFD Sender: No OFD packet to send [19:55:17]OFD Sender: No OFD packet to send [19:55:22]OFD Sender: No OFD packet to send [19:55:27]OFD Sender: No OFD packet to send [19:55:32]OFD Sender: No OFD packet to send [19:55:37]OFD Sender: No OFD packet to send [19:55:42]OFD Sender: No OFD packet to send [19:55:47]OFD Sender: No OFD packet to send [19:55:52]OFD Sender: No OFD packet to send [19:55:57]OFD Sender: No OFD packet to send [19:56:02]OFD Sender: No OFD packet to send [19:56:07]OFD Sender: No OFD packet to send [19:56:12]OFD Sender: No OFD packet to send [19:56:17]OFD Sender: No OFD packet to send [19:56:22]OFD Sender: No OFD packet to send [19:56:27]OFD Sender: No OFD packet to send [19:56:32]OFD Sender: No OFD packet to send [19:56:37]OFD Sender: No OFD packet to send [19:56:42]OFD Sender: No OFD packet to send [19:56:47]OFD Sender: No OFD packet to send [19:56:52]OFD Sender: No OFD packet to send [19:56:57]OFD Sender: No OFD packet to send [19:57:02]OFD Sender: No OFD packet to send [19:57:07]OFD Sender: No OFD packet to send [19:57:12]OFD Sender: No OFD packet to send [19:57:17]OFD Sender: No OFD packet to send [19:57:22]OFD Sender: No OFD packet to send [19:57:27]OFD Sender: No OFD packet to send [19:57:32]OFD Sender: No OFD packet to send [19:57:33]accept exits with 7 [19:57:33]New connection [19:57:33]New thread 3067395428 created [19:57:33]Thread 3067252068 joined [19:57:33]Waiting for new connection... [19:57:33] Sock 7.Parse request [19:57:33]Sock 7.Check first char [19:57:33]Sock 7.First char is OK [19:57:33]request: POST /json_proto HTTP/1.0 [19:57:33]Method: POST [19:57:33]URL: /json_proto [19:57:33]Method is POST - this is cgi request [19:57:33]url: /json_proto [19:57:33]query_string will be loaded in cgi processing [19:57:33]execute_cgi json_proto POST (null) [19:57:33]execute_cgi path=json_proto method=POST [19:57:33]POST find Content-Length [19:57:33]Host: 172.17.48.197:8080 [19:57:33]Content-Length: 1218 [19:57:33]Content-Type: application/json [19:57:33] [19:57:33]POST finish read [19:57:33]Found Content-Length = 1218 [19:57:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106303\u000A03.03.2024 19:53\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 52\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 32.320 x 61.90\u000A\u0418\u0422\u041E\u0413: 2000.61\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3583473\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:57:33]execute_script... [19:57:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106303\u000A03.03.2024 19:53\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 52\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 32.320 x 61.90\u000A\u0418\u0422\u041E\u0413: 2000.61\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3583473\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:57:33]POST & json_proto [19:57:33]process_json_proto [19:57:33]json parsed OK: [19:57:33]protocol is kg_v1.0 [19:57:33]action value=print_text [19:57:33]process_action print_text [19:57:33]cmd_print_text [19:57:33]ExternCall_PrintAddStr [19:57:33]wPrintStart [19:57:33]Write to MH i2c: 01 00 00 4C 48 94 [19:57:33]Write i2c OK [19:57:33]MH_I2C_Read... [19:57:33]Read from MH i2c: 01 [19:57:33]MH_I2C_Read... [19:57:33]Read from MH i2c: 01 07 00 [19:57:33]MH_I2C_Read... [19:57:33]Read from MH i2c: 01 07 00 4C 48 00 00 00 00 00 FF 0F A9 [19:57:33]RasterBufferAndPrint [19:57:33]line *****ТОВАРНЫЙ ЧЕК***** [19:57:33]line АЗС 25 [19:57:33]line Партнер нефть [19:57:33]line 02508201610067 [19:57:33]line Кассир : Турдумбек у. К. [19:57:33]line Счет N : (1)1106303 [19:57:33]line 03.03.2024 19:53 [19:57:33]line ПРОДАЖА [19:57:33]line ТРК (МРК, ГНК): 52 [19:57:33]line Вид ГСМ : 2710124130 [19:57:33]line Аи-92-К-5 [19:57:33]line 32.320 x 61.90 [19:57:33]line ИТОГ: 2000.61 [19:57:33]line Тип оплаты: Талоны: Топливные Талоны [19:57:33]line 3583473 [19:57:33]line ______________________ [19:57:33]line (подпись) [19:57:33]written 0, free lines is 4095 [19:57:33]Write to MH i2c: 01 00 00 61 48 A9 [19:57:33]Write i2c OK [19:57:33]MH_I2C_Read... [19:57:33]Read from MH i2c: 01 [19:57:33]MH_I2C_Read... [19:57:33]Read from MH i2c: 01 07 00 [19:57:33]MH_I2C_Read... [19:57:33]Read from MH i2c: 01 07 00 61 48 00 00 00 00 00 F6 0D B3 [19:57:33]RasterBufferAndPrint [19:57:33]line [19:57:33]line [19:57:33]line [19:57:33]line [19:57:33]line [19:57:33]written 0, free lines is 3575 [19:57:33]MH_Cut [19:57:33]Write to MH i2c: D1 01 00 68 48 01 82 [19:57:33]Write i2c OK [19:57:33]MH_I2C_Read... [19:57:33]Read from MH i2c: D1 [19:57:33]MH_I2C_Read... [19:57:33]Read from MH i2c: D1 01 00 [19:57:33]MH_I2C_Read... [19:57:33]Read from MH i2c: D1 01 00 68 48 00 81 [19:57:33]Write to MH i2c: 01 00 00 69 48 B1 [19:57:33]Write i2c OK [19:57:33]MH_I2C_Read... [19:57:34]*** Cut start [19:57:34]*** Purtial cut [19:57:34]*** Stage 1: CUTSNS_PIN = 1 [19:57:36]Read from MH i2c: 01 [19:57:36]MH_I2C_Read... [19:57:36]Read from MH i2c: 01 07 00 [19:57:36]MH_I2C_Read... [19:57:36]*** Stop cut motor [19:57:36]*** Cut end [19:57:36]Read from MH i2c: 01 07 00 69 48 00 00 00 00 00 FF 0F C6 [19:57:36]process_action print_text done [19:57:36]requested_data is exist [19:57:36]produce_requested_data [19:57:36]requested_item fm.sn is exist - process it [19:57:36]wFMCommunicate request_size=4 [19:57:36]MH_SAM_APDU [19:57:36]CAPDU: 80 11 00 00 [19:57:36]Write to MH i2c: E2 08 00 6A 48 80 11 00 00 00 00 00 00 2C [19:57:36]Write i2c OK [19:57:36]MH_I2C_Read... [19:57:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:57:36]Read from MH i2c: E2 [19:57:36]MH_I2C_Read... [19:57:36]Read from MH i2c: E2 17 00 [19:57:36]MH_I2C_Read... [19:57:36]Read from MH i2c: E2 17 00 6A 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 8A [19:57:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [19:57:36]wFMCommunicate OK [19:57:36]requested_item fd.num is exist - process it [19:57:36]SAM_PROTO_GetFieldsCounters [19:57:36]wFMCommunicate request_size=4 [19:57:36]MH_SAM_APDU [19:57:36]CAPDU: 80 13 00 00 [19:57:36]Write to MH i2c: E2 08 00 6B 48 80 13 00 00 00 00 00 00 2F [19:57:36]Write i2c OK [19:57:36]MH_I2C_Read... [19:57:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:57:36]Read from MH i2c: E2 [19:57:36]MH_I2C_Read... [19:57:36]Read from MH i2c: E2 62 00 [19:57:36]MH_I2C_Read... [19:57:36]Read from MH i2c: E2 62 00 6B 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 CE E1 01 00 0E 04 04 00 43 01 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 A3 [19:57: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 CE E1 01 00 0E 04 04 00 43 01 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 [19:57:36]wFMCommunicate OK [19:57:36]SAM_PROTO_GetFieldsCounters done [19:57:36]requested_item shift.num is exist - process it [19:57:36]requested_item shift.opened is exist - process it [19:57:36]req_shift_opened [19:57:36]FM_GetShiftState [19:57:36]SAM_PROTO_GetShiftState [19:57:36]wFMCommunicate request_size=4 [19:57:36]MH_SAM_APDU [19:57:36]CAPDU: 80 13 01 00 [19:57:36]Write to MH i2c: E2 08 00 6C 48 80 13 01 00 00 00 00 00 31 [19:57:36]Write i2c OK [19:57:36]MH_I2C_Read... [19:57:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:57:36]Read from MH i2c: E2 [19:57:36]MH_I2C_Read... [19:57:36]Read from MH i2c: E2 0E 00 [19:57:36]MH_I2C_Read... [19:57:36]Read from MH i2c: E2 0E 00 6C 48 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 F3 [19:57:36]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [19:57:36]wFMCommunicate OK [19:57:36]SAM_PROTO_GetShiftState done [19:57:36]FM_GetShiftState done [19:57:36]req_shift_opened done [19:57:36]requested_item shift.open_date is exist - process it [19:57:36]req_shift_open_date [19:57:36]req_shift_open_date done [19:57:36]produce_requested_data done [19:57:36]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123342,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [19:57:36]process_action_free print_text [19:57:36]json_value_free [19:57:36]json_value_free done [19:57:36]process_json_proto returns [19:57:36]Send response to host [19:57:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123342,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [19:57:36]free response buf [19:57:36]execute_script done [19:57:36]execute_script returns [19:57:36]free content buf [19:57:36]Sock 7.Close socket [19:57:36]Sock 7.Thread stoped [19:57:37]OFD Sender: No OFD packet to send [19:57:42]OFD Sender: No OFD packet to send [19:57:43]accept exits with 9 [19:57:43]New connection [19:57:43]New thread 3067252068 created [19:57:43]Thread 3067395428 joined [19:57:43]Waiting for new connection... [19:57:43] Sock 9.Parse request [19:57:43]Sock 9.Check first char [19:57:43]Sock 9.First char is OK [19:57:43]request: POST /json_proto HTTP/1.0 [19:57:43]Method: POST [19:57:43]URL: /json_proto [19:57:43]Method is POST - this is cgi request [19:57:43]url: /json_proto [19:57:43]query_string will be loaded in cgi processing [19:57:43]execute_cgi json_proto POST (null) [19:57:43]execute_cgi path=json_proto method=POST [19:57:43]POST find Content-Length [19:57:43]Host: 172.17.48.197:8080 [19:57:43]Content-Length: 1217 [19:57:43]Content-Type: application/json [19:57:43] [19:57:43]POST finish read [19:57:43]Found Content-Length = 1217 [19:57:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106302\u000A03.03.2024 19:54\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 619.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3860618\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:57:43]execute_script... [19:57:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106302\u000A03.03.2024 19:54\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 619.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3860618\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:57:43]POST & json_proto [19:57:43]process_json_proto [19:57:43]json parsed OK: [19:57:43]protocol is kg_v1.0 [19:57:43]action value=print_text [19:57:43]process_action print_text [19:57:43]cmd_print_text [19:57:43]ExternCall_PrintAddStr [19:57:43]wPrintStart [19:57:43]Write to MH i2c: 01 00 00 6D 48 B5 [19:57:43]Write i2c OK [19:57:43]MH_I2C_Read... [19:57:43]Read from MH i2c: 01 [19:57:43]MH_I2C_Read... [19:57:43]Read from MH i2c: 01 07 00 [19:57:43]MH_I2C_Read... [19:57:43]Read from MH i2c: 01 07 00 6D 48 00 00 00 00 00 FF 0F CA [19:57:43]RasterBufferAndPrint [19:57:43]line *****ТОВАРНЫЙ ЧЕК***** [19:57:43]line АЗС 25 [19:57:43]line Партнер нефть [19:57:43]line 02508201610067 [19:57:43]line Кассир : Турдумбек у. К. [19:57:43]line Счет N : (1)1106302 [19:57:43]line 03.03.2024 19:54 [19:57:43]line ПРОДАЖА [19:57:43]line ТРК (МРК, ГНК): 11 [19:57:43]line Вид ГСМ : 2710124130 [19:57:43]line Аи-92-К-5 [19:57:43]line 10.000 x 61.90 [19:57:43]line ИТОГ: 619.00 [19:57:43]line Тип оплаты: Талоны: Топливные Талоны [19:57:43]line 3860618 [19:57:43]line ______________________ [19:57:43]line (подпись) [19:57:43]written 0, free lines is 4095 [19:57:43]Write to MH i2c: 01 00 00 82 48 CA [19:57:43]Write i2c OK [19:57:43]MH_I2C_Read... [19:57:43]Read from MH i2c: 01 [19:57:43]MH_I2C_Read... [19:57:43]Read from MH i2c: 01 07 00 [19:57:43]MH_I2C_Read... [19:57:43]Read from MH i2c: 01 07 00 82 48 00 00 00 00 00 F4 0D D2 [19:57:43]RasterBufferAndPrint [19:57:43]line [19:57:43]line [19:57:43]line [19:57:43]line [19:57:43]line [19:57:43]written 0, free lines is 3574 [19:57:43]MH_Cut [19:57:43]Write to MH i2c: D1 01 00 89 48 01 A3 [19:57:43]Write i2c OK [19:57:43]MH_I2C_Read... [19:57:43]Read from MH i2c: D1 [19:57:43]MH_I2C_Read... [19:57:43]Read from MH i2c: D1 01 00 [19:57:43]MH_I2C_Read... [19:57:43]Read from MH i2c: D1 01 00 89 48 00 A2 [19:57:43]Write to MH i2c: 01 00 00 8A 48 D2 [19:57:43]Write i2c OK [19:57:43]MH_I2C_Read... [19:57:44]*** Cut start [19:57:44]*** Purtial cut [19:57:44]*** Stage 1: CUTSNS_PIN = 1 [19:57:46]Read from MH i2c: 01 [19:57:46]MH_I2C_Read... [19:57:46]Read from MH i2c: 01 07 00 [19:57:46]MH_I2C_Read... [19:57:46]*** Stop cut motor [19:57:46]*** Cut end [19:57:46]Read from MH i2c: 01 07 00 8A 48 00 00 00 00 00 FF 0F E7 [19:57:46]process_action print_text done [19:57:46]requested_data is exist [19:57:46]produce_requested_data [19:57:46]requested_item fm.sn is exist - process it [19:57:46]wFMCommunicate request_size=4 [19:57:46]MH_SAM_APDU [19:57:46]CAPDU: 80 11 00 00 [19:57:46]Write to MH i2c: E2 08 00 8B 48 80 11 00 00 00 00 00 00 4D [19:57:46]Write i2c OK [19:57:46]MH_I2C_Read... [19:57:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:57:46]Read from MH i2c: E2 [19:57:46]MH_I2C_Read... [19:57:46]Read from MH i2c: E2 17 00 [19:57:46]MH_I2C_Read... [19:57:46]Read from MH i2c: E2 17 00 8B 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 AB [19:57:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [19:57:46]wFMCommunicate OK [19:57:46]requested_item fd.num is exist - process it [19:57:46]SAM_PROTO_GetFieldsCounters [19:57:46]wFMCommunicate request_size=4 [19:57:46]MH_SAM_APDU [19:57:46]CAPDU: 80 13 00 00 [19:57:46]Write to MH i2c: E2 08 00 8C 48 80 13 00 00 00 00 00 00 50 [19:57:46]Write i2c OK [19:57:46]MH_I2C_Read... [19:57:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:57:46]Read from MH i2c: E2 [19:57:46]MH_I2C_Read... [19:57:46]Read from MH i2c: E2 62 00 [19:57:46]MH_I2C_Read... [19:57:46]Read from MH i2c: E2 62 00 8C 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 CE E1 01 00 0E 04 04 00 43 01 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 C4 [19:57: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 CE E1 01 00 0E 04 04 00 43 01 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 [19:57:46]wFMCommunicate OK [19:57:46]SAM_PROTO_GetFieldsCounters done [19:57:46]requested_item shift.num is exist - process it [19:57:46]requested_item shift.opened is exist - process it [19:57:46]req_shift_opened [19:57:46]FM_GetShiftState [19:57:46]SAM_PROTO_GetShiftState [19:57:46]wFMCommunicate request_size=4 [19:57:46]MH_SAM_APDU [19:57:46]CAPDU: 80 13 01 00 [19:57:46]Write to MH i2c: E2 08 00 8D 48 80 13 01 00 00 00 00 00 52 [19:57:46]Write i2c OK [19:57:46]MH_I2C_Read... [19:57:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:57:46]Read from MH i2c: E2 [19:57:46]MH_I2C_Read... [19:57:46]Read from MH i2c: E2 0E 00 [19:57:46]MH_I2C_Read... [19:57:46]Read from MH i2c: E2 0E 00 8D 48 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 14 [19:57:46]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [19:57:46]wFMCommunicate OK [19:57:46]SAM_PROTO_GetShiftState done [19:57:46]FM_GetShiftState done [19:57:46]req_shift_opened done [19:57:46]requested_item shift.open_date is exist - process it [19:57:46]req_shift_open_date [19:57:46]req_shift_open_date done [19:57:46]produce_requested_data done [19:57:46]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123342,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [19:57:46]process_action_free print_text [19:57:46]json_value_free [19:57:46]json_value_free done [19:57:46]process_json_proto returns [19:57:46]Send response to host [19:57:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123342,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [19:57:46]free response buf [19:57:46]execute_script done [19:57:46]execute_script returns [19:57:46]free content buf [19:57:46]Sock 9.Close socket [19:57:46]Sock 9.Thread stoped [19:57:46]accept exits with 7 [19:57:46]New connection [19:57:46]New thread 3067395428 created [19:57:46]Thread 3067252068 joined [19:57:46]Waiting for new connection... [19:57:46] Sock 7.Parse request [19:57:46]Sock 7.Check first char [19:57:46]Sock 7.First char is OK [19:57:46]request: POST /json_proto HTTP/1.0 [19:57:46]Method: POST [19:57:46]URL: /json_proto [19:57:46]Method is POST - this is cgi request [19:57:46]url: /json_proto [19:57:46]query_string will be loaded in cgi processing [19:57:46]execute_cgi json_proto POST (null) [19:57:46]execute_cgi path=json_proto method=POST [19:57:46]POST find Content-Length [19:57:46]Host: 172.17.48.197:8080 [19:57:46]Content-Length: 1218 [19:57:46]Content-Type: application/json [19:57:46] [19:57:46]POST finish read [19:57:46]Found Content-Length = 1218 [19:57:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106304\u000A03.03.2024 19:54\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 1238.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3583664\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:57:46]execute_script... [19:57:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106304\u000A03.03.2024 19:54\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 1238.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3583664\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:57:46]POST & json_proto [19:57:46]process_json_proto [19:57:46]json parsed OK: [19:57:46]protocol is kg_v1.0 [19:57:46]action value=print_text [19:57:46]process_action print_text [19:57:46]cmd_print_text [19:57:46]ExternCall_PrintAddStr [19:57:46]wPrintStart [19:57:46]Write to MH i2c: 01 00 00 8E 48 D6 [19:57:46]Write i2c OK [19:57:46]MH_I2C_Read... [19:57:46]Read from MH i2c: 01 [19:57:46]MH_I2C_Read... [19:57:46]Read from MH i2c: 01 07 00 [19:57:46]MH_I2C_Read... [19:57:46]Read from MH i2c: 01 07 00 8E 48 00 00 00 00 00 FF 0F EB [19:57:46]RasterBufferAndPrint [19:57:46]line *****ТОВАРНЫЙ ЧЕК***** [19:57:46]line АЗС 25 [19:57:46]line Партнер нефть [19:57:46]line 02508201610067 [19:57:46]line Кассир : Турдумбек у. К. [19:57:46]line Счет N : (1)1106304 [19:57:46]line 03.03.2024 19:54 [19:57:46]line ПРОДАЖА [19:57:46]line ТРК (МРК, ГНК): 32 [19:57:46]line Вид ГСМ : 2710124130 [19:57:46]line Аи-92-К-5 [19:57:46]line 20.000 x 61.90 [19:57:46]line ИТОГ: 1238.00 [19:57:46]line Тип оплаты: Талоны: Топливные Талоны [19:57:46]line 3583664 [19:57:46]line ______________________ [19:57:46]line (подпись) [19:57:46]written 0, free lines is 4095 [19:57:46]Write to MH i2c: 01 00 00 A3 48 EB [19:57:46]Write i2c OK [19:57:46]MH_I2C_Read... [19:57:46]Read from MH i2c: 01 [19:57:46]MH_I2C_Read... [19:57:46]Read from MH i2c: 01 07 00 [19:57:46]MH_I2C_Read... [19:57:46]Read from MH i2c: 01 07 00 A3 48 00 00 00 00 00 F6 0D F5 [19:57:46]RasterBufferAndPrint [19:57:46]line [19:57:46]line [19:57:46]line [19:57:46]line [19:57:46]line [19:57:46]written 0, free lines is 3576 [19:57:46]MH_Cut [19:57:46]Write to MH i2c: D1 01 00 AA 48 01 C4 [19:57:46]Write i2c OK [19:57:46]MH_I2C_Read... [19:57:46]Read from MH i2c: D1 [19:57:46]MH_I2C_Read... [19:57:46]Read from MH i2c: D1 01 00 [19:57:46]MH_I2C_Read... [19:57:46]Read from MH i2c: D1 01 00 AA 48 00 C3 [19:57:46]Write to MH i2c: 01 00 00 AB 48 F3 [19:57:46]Write i2c OK [19:57:46]MH_I2C_Read... [19:57:47]OFD Sender: No OFD packet to send [19:57:47]*** Cut start [19:57:47]*** Purtial cut [19:57:47]*** Stage 1: CUTSNS_PIN = 1 [19:57:49]Read from MH i2c: 01 [19:57:49]MH_I2C_Read... [19:57:49]*** Stop cut motor [19:57:49]*** Cut end [19:57:49]Read from MH i2c: 01 07 00 [19:57:49]MH_I2C_Read... [19:57:49]Read from MH i2c: 01 07 00 AB 48 00 00 00 00 00 FF 0F 08 [19:57:49]process_action print_text done [19:57:49]requested_data is exist [19:57:49]produce_requested_data [19:57:49]requested_item fm.sn is exist - process it [19:57:49]wFMCommunicate request_size=4 [19:57:49]MH_SAM_APDU [19:57:49]CAPDU: 80 11 00 00 [19:57:49]Write to MH i2c: E2 08 00 AC 48 80 11 00 00 00 00 00 00 6E [19:57:49]Write i2c OK [19:57:49]MH_I2C_Read... [19:57:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:57:49]Read from MH i2c: E2 [19:57:49]MH_I2C_Read... [19:57:49]Read from MH i2c: E2 17 00 [19:57:49]MH_I2C_Read... [19:57:49]Read from MH i2c: E2 17 00 AC 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 CC [19:57:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [19:57:49]wFMCommunicate OK [19:57:49]requested_item fd.num is exist - process it [19:57:49]SAM_PROTO_GetFieldsCounters [19:57:49]wFMCommunicate request_size=4 [19:57:49]MH_SAM_APDU [19:57:49]CAPDU: 80 13 00 00 [19:57:49]Write to MH i2c: E2 08 00 AD 48 80 13 00 00 00 00 00 00 71 [19:57:49]Write i2c OK [19:57:49]MH_I2C_Read... [19:57:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:57:49]Read from MH i2c: E2 [19:57:49]MH_I2C_Read... [19:57:49]Read from MH i2c: E2 62 00 [19:57:49]MH_I2C_Read... [19:57:49]Read from MH i2c: E2 62 00 AD 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 CE E1 01 00 0E 04 04 00 43 01 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 E5 [19:57: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 CE E1 01 00 0E 04 04 00 43 01 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 [19:57:49]wFMCommunicate OK [19:57:49]SAM_PROTO_GetFieldsCounters done [19:57:49]requested_item shift.num is exist - process it [19:57:49]requested_item shift.opened is exist - process it [19:57:49]req_shift_opened [19:57:49]FM_GetShiftState [19:57:49]SAM_PROTO_GetShiftState [19:57:49]wFMCommunicate request_size=4 [19:57:49]MH_SAM_APDU [19:57:49]CAPDU: 80 13 01 00 [19:57:49]Write to MH i2c: E2 08 00 AE 48 80 13 01 00 00 00 00 00 73 [19:57:49]Write i2c OK [19:57:49]MH_I2C_Read... [19:57:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:57:49]Read from MH i2c: E2 [19:57:49]MH_I2C_Read... [19:57:49]Read from MH i2c: E2 0E 00 [19:57:49]MH_I2C_Read... [19:57:49]Read from MH i2c: E2 0E 00 AE 48 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 35 [19:57:49]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [19:57:49]wFMCommunicate OK [19:57:49]SAM_PROTO_GetShiftState done [19:57:49]FM_GetShiftState done [19:57:49]req_shift_opened done [19:57:49]requested_item shift.open_date is exist - process it [19:57:49]req_shift_open_date [19:57:49]req_shift_open_date done [19:57:49]produce_requested_data done [19:57:49]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123342,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [19:57:49]process_action_free print_text [19:57:49]json_value_free [19:57:49]json_value_free done [19:57:49]process_json_proto returns [19:57:49]Send response to host [19:57:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123342,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [19:57:49]free response buf [19:57:49]execute_script done [19:57:49]execute_script returns [19:57:49]free content buf [19:57:49]Sock 7.Close socket [19:57:49]Sock 7.Thread stoped [19:57:52]OFD Sender: No OFD packet to send [19:57:57]OFD Sender: No OFD packet to send [19:57:58]int [19:57:58]Write to MH i2c: 01 00 00 AF 48 F7 [19:57:58]*** FLAG_PRN_KEY set [19:57:58]Write i2c OK [19:57:58]MH_I2C_Read... [19:57:58]Read from MH i2c: 01 [19:57:58]MH_I2C_Read... [19:57:58]Read from MH i2c: 01 07 00 [19:57:58]MH_I2C_Read... [19:57:58]Read from MH i2c: 01 07 00 AF 48 00 08 00 00 00 FF 0F 14 [19:57:58]state=0 [19:57:58]Key pressed [19:57:58]Feed [19:57:58]Write to MH i2c: D8 00 00 B0 48 CF [19:57:58]Write i2c OK [19:57:58]MH_I2C_Read... [19:57:58]Read from MH i2c: D8 [19:57:58]MH_I2C_Read... [19:57:58]Read from MH i2c: D8 01 00 [19:57:58]MH_I2C_Read... [19:57:58]Read from MH i2c: D8 01 00 B0 48 00 D0 [19:57:58]int [19:57:58]Write to MH i2c: 01 00 00 B1 48 F9 [19:57:58]Write i2c OK [19:57:58]MH_I2C_Read... [19:57:58]Read from MH i2c: 01 [19:57:58]MH_I2C_Read... [19:57:58]Read from MH i2c: 01 07 00 [19:57:58]MH_I2C_Read... [19:57:58]Read from MH i2c: 01 07 00 B1 48 00 48 00 00 00 3C 00 84 [19:57:58]state=2 [19:57:58]Key pressed [19:57:58]int [19:57:58]Write to MH i2c: 01 00 00 B2 48 FA [19:57:58]*** FLAG_PRN_KEY reset [19:57:58]Write i2c OK [19:57:58]MH_I2C_Read... [19:57:58]Read from MH i2c: 01 [19:57:58]MH_I2C_Read... [19:57:58]Read from MH i2c: 01 07 00 [19:57:58]MH_I2C_Read... [19:57:58]Read from MH i2c: 01 07 00 B2 48 00 00 00 00 00 F5 0F 05 [19:57:58]state=2 [19:57:58]Stop feed [19:57:58]int [19:57:58]Write to MH i2c: 01 00 00 B3 48 FB [19:57:58]*** FLAG_PRN_KEY set [19:57:58]Write i2c OK [19:57:58]MH_I2C_Read... [19:57:58]Read from MH i2c: 01 [19:57:58]MH_I2C_Read... [19:57:58]Read from MH i2c: 01 07 00 [19:57:58]MH_I2C_Read... [19:57:58]Read from MH i2c: 01 07 00 B3 48 00 08 00 00 00 FF 0F 18 [19:57:58]state=0 [19:57:58]Key pressed [19:57:58]Feed [19:57:58]Write to MH i2c: D8 00 00 B4 48 D3 [19:57:58]Write i2c OK [19:57:58]MH_I2C_Read... [19:57:58]Read from MH i2c: D8 [19:57:58]MH_I2C_Read... [19:57:58]Read from MH i2c: D8 01 00 [19:57:58]MH_I2C_Read... [19:57:58]Read from MH i2c: D8 01 00 B4 48 00 D4 [19:57:58]int [19:57:58]Write to MH i2c: 01 00 00 B5 48 FD [19:57:58]Write i2c OK [19:57:58]MH_I2C_Read... [19:57:58]Read from MH i2c: 01 [19:57:58]MH_I2C_Read... [19:57:58]Read from MH i2c: 01 07 00 [19:57:58]MH_I2C_Read... [19:57:58]Read from MH i2c: 01 07 00 B5 48 00 48 00 00 00 3C 00 88 [19:57:58]state=2 [19:57:58]Key pressed [19:57:58]int [19:57:58]Write to MH i2c: 01 00 00 B6 48 FE [19:57:58]*** FLAG_PRN_KEY reset [19:57:58]Write i2c OK [19:57:58]MH_I2C_Read... [19:57:58]Read from MH i2c: 01 [19:57:58]MH_I2C_Read... [19:57:58]Read from MH i2c: 01 07 00 [19:57:58]MH_I2C_Read... [19:57:58]Read from MH i2c: 01 07 00 B6 48 00 00 00 00 00 F5 0F 09 [19:57:58]state=2 [19:57:58]Stop feed [19:57:58]int [19:57:58]Write to MH i2c: 01 00 00 B7 48 FF [19:57:58]*** FLAG_PRN_KEY set [19:57:58]Write i2c OK [19:57:58]MH_I2C_Read... [19:57:58]Read from MH i2c: 01 [19:57:58]MH_I2C_Read... [19:57:58]Read from MH i2c: 01 07 00 [19:57:58]MH_I2C_Read... [19:57:58]Read from MH i2c: 01 07 00 B7 48 00 08 00 00 00 FF 0F 1C [19:57:58]state=0 [19:57:58]Key pressed [19:57:58]Feed [19:57:58]Write to MH i2c: D8 00 00 B8 48 D7 [19:57:58]Write i2c OK [19:57:58]MH_I2C_Read... [19:57:58]Read from MH i2c: D8 [19:57:58]MH_I2C_Read... [19:57:58]Read from MH i2c: D8 01 00 [19:57:58]MH_I2C_Read... [19:57:58]Read from MH i2c: D8 01 00 B8 48 00 D8 [19:57:58]int [19:57:58]Write to MH i2c: 01 00 00 B9 48 01 [19:57:58]Write i2c OK [19:57:58]MH_I2C_Read... [19:57:58]Read from MH i2c: 01 [19:57:58]MH_I2C_Read... [19:57:58]Read from MH i2c: 01 07 00 [19:57:58]MH_I2C_Read... [19:57:58]Read from MH i2c: 01 07 00 B9 48 00 48 00 00 00 3C 00 8C [19:57:58]state=2 [19:57:58]Key pressed [19:57:59]int [19:57:59]Write to MH i2c: 01 00 00 BA 48 02 [19:57:59]*** FLAG_PRN_KEY reset [19:57:59]Write i2c OK [19:57:59]MH_I2C_Read... [19:57:59]Read from MH i2c: 01 [19:57:59]MH_I2C_Read... [19:57:59]Read from MH i2c: 01 07 00 [19:57:59]MH_I2C_Read... [19:57:59]Read from MH i2c: 01 07 00 BA 48 00 00 00 00 00 F5 0F 0D [19:57:59]state=2 [19:57:59]Stop feed [19:57:59]int [19:57:59]Write to MH i2c: 01 00 00 BB 48 03 [19:57:59]*** FLAG_PRN_KEY set [19:57:59]Write i2c OK [19:57:59]MH_I2C_Read... [19:57:59]Read from MH i2c: 01 [19:57:59]MH_I2C_Read... [19:57:59]Read from MH i2c: 01 07 00 [19:57:59]MH_I2C_Read... [19:57:59]Read from MH i2c: 01 07 00 BB 48 00 08 00 00 00 FF 0F 20 [19:57:59]state=0 [19:57:59]Key pressed [19:57:59]Feed [19:57:59]Write to MH i2c: D8 00 00 BC 48 DB [19:57:59]Write i2c OK [19:57:59]MH_I2C_Read... [19:57:59]Read from MH i2c: D8 [19:57:59]MH_I2C_Read... [19:57:59]Read from MH i2c: D8 01 00 [19:57:59]MH_I2C_Read... [19:57:59]Read from MH i2c: D8 01 00 BC 48 00 DC [19:57:59]int [19:57:59]Write to MH i2c: 01 00 00 BD 48 05 [19:57:59]Write i2c OK [19:57:59]MH_I2C_Read... [19:57:59]Read from MH i2c: 01 [19:57:59]MH_I2C_Read... [19:57:59]Read from MH i2c: 01 07 00 [19:57:59]MH_I2C_Read... [19:57:59]Read from MH i2c: 01 07 00 BD 48 00 48 00 00 00 3C 00 90 [19:57:59]state=2 [19:57:59]Key pressed [19:57:59]int [19:57:59]Write to MH i2c: 01 00 00 BE 48 06 [19:57:59]*** FLAG_PRN_KEY reset [19:57:59]Write i2c OK [19:57:59]MH_I2C_Read... [19:57:59]Read from MH i2c: 01 [19:57:59]MH_I2C_Read... [19:57:59]Read from MH i2c: 01 07 00 [19:57:59]MH_I2C_Read... [19:57:59]Read from MH i2c: 01 07 00 BE 48 00 00 00 00 00 F5 0F 11 [19:57:59]state=2 [19:57:59]Stop feed [19:57:59]int [19:57:59]Write to MH i2c: 01 00 00 BF 48 07 [19:57:59]*** FLAG_PRN_KEY set [19:57:59]Write i2c OK [19:57:59]MH_I2C_Read... [19:57:59]Read from MH i2c: 01 [19:57:59]MH_I2C_Read... [19:57:59]Read from MH i2c: 01 07 00 [19:57:59]MH_I2C_Read... [19:57:59]Read from MH i2c: 01 07 00 BF 48 00 08 00 00 00 FF 0F 24 [19:57:59]state=0 [19:57:59]Key pressed [19:57:59]Feed [19:57:59]Write to MH i2c: D8 00 00 C0 48 DF [19:57:59]Write i2c OK [19:57:59]MH_I2C_Read... [19:57:59]Read from MH i2c: D8 [19:57:59]MH_I2C_Read... [19:57:59]Read from MH i2c: D8 01 00 [19:57:59]MH_I2C_Read... [19:57:59]Read from MH i2c: D8 01 00 C0 48 00 E0 [19:57:59]int [19:57:59]Write to MH i2c: 01 00 00 C1 48 09 [19:57:59]Write i2c OK [19:57:59]MH_I2C_Read... [19:57:59]Read from MH i2c: 01 [19:57:59]MH_I2C_Read... [19:57:59]Read from MH i2c: 01 07 00 [19:57:59]MH_I2C_Read... [19:57:59]Read from MH i2c: 01 07 00 C1 48 00 48 00 00 00 3C 00 94 [19:57:59]state=2 [19:57:59]Key pressed [19:57:59]int [19:57:59]Write to MH i2c: 01 00 00 C2 48 0A [19:57:59]*** FLAG_PRN_KEY reset [19:57:59]Write i2c OK [19:57:59]MH_I2C_Read... [19:57:59]Read from MH i2c: 01 [19:57:59]MH_I2C_Read... [19:57:59]Read from MH i2c: 01 07 00 [19:57:59]MH_I2C_Read... [19:57:59]Read from MH i2c: 01 07 00 C2 48 00 00 00 00 00 F5 0F 15 [19:57:59]state=2 [19:57:59]Stop feed [19:58:02]OFD Sender: No OFD packet to send [19:58:07]OFD Sender: No OFD packet to send [19:58:12]OFD Sender: No OFD packet to send [19:58:17]OFD Sender: No OFD packet to send [19:58:22]OFD Sender: No OFD packet to send [19:58:27]OFD Sender: No OFD packet to send [19:58:32]OFD Sender: No OFD packet to send [19:58:37]OFD Sender: No OFD packet to send [19:58:42]OFD Sender: No OFD packet to send [19:58:47]OFD Sender: No OFD packet to send [19:58:52]OFD Sender: No OFD packet to send [19:58:57]OFD Sender: No OFD packet to send [19:59:02]OFD Sender: No OFD packet to send [19:59:07]OFD Sender: No OFD packet to send [19:59:12]OFD Sender: No OFD packet to send [19:59:17]OFD Sender: No OFD packet to send [19:59:22]OFD Sender: No OFD packet to send [19:59:27]OFD Sender: No OFD packet to send [19:59:32]OFD Sender: No OFD packet to send [19:59:37]OFD Sender: No OFD packet to send [19:59:42]OFD Sender: No OFD packet to send [19:59:47]OFD Sender: No OFD packet to send [19:59:52]OFD Sender: No OFD packet to send [19:59:57]OFD Sender: No OFD packet to send [20:00:02]OFD Sender: No OFD packet to send [20:00:07]OFD Sender: No OFD packet to send [20:00:12]OFD Sender: No OFD packet to send [20:00:17]OFD Sender: No OFD packet to send [20:00:22]OFD Sender: No OFD packet to send [20:00:27]OFD Sender: No OFD packet to send [20:00:32]OFD Sender: No OFD packet to send [20:00:37]OFD Sender: No OFD packet to send [20:00:40]accept exits with 9 [20:00:40]New connection [20:00:40]New thread 3067252068 created [20:00:40]Thread 3067395428 joined [20:00:40]Waiting for new connection... [20:00:40] Sock 9.Parse request [20:00:40]Sock 9.Check first char [20:00:40]Sock 9.First char is OK [20:00:40]request: POST /json_proto HTTP/1.0 [20:00:40]Method: POST [20:00:40]URL: /json_proto [20:00:40]Method is POST - this is cgi request [20:00:40]url: /json_proto [20:00:40]query_string will be loaded in cgi processing [20:00:40]execute_cgi json_proto POST (null) [20:00:40]execute_cgi path=json_proto method=POST [20:00:40]POST find Content-Length [20:00:40]Host: 172.17.48.197:8080 [20:00:40]Content-Length: 817 [20:00:40]Content-Type: application/json [20:00:40] [20:00:40]POST finish read [20:00:40]Found Content-Length = 817 [20:00:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106305", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 9.700, "sum" : 600.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 600.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:00:40]execute_script... [20:00: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)1106305", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 9.700, "sum" : 600.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 600.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:00:40]POST & json_proto [20:00:40]process_json_proto [20:00:40]json parsed OK: [20:00:40]protocol is kg_v1.0 [20:00:40]action value=close_receipt [20:00:40]process_action close_receipt [20:00:40]cmd_close_receipt [20:00:40]MH_GetDate [20:00:40]Write to MH i2c: F0 00 00 C3 48 FA [20:00:40]Write i2c OK [20:00:40]MH_I2C_Read... [20:00:40]Read from MH i2c: F0 [20:00:40]MH_I2C_Read... [20:00:40]Read from MH i2c: F0 09 00 [20:00:40]MH_I2C_Read... [20:00:40]Read from MH i2c: F0 09 00 C3 48 00 ED D6 E4 65 6C AF E3 65 72 [20:00:40]GetLastDocTimeStamp 1709495499 [20:00:40]current date 1709496045 [20:00:40]FM_GetShiftState [20:00:40]SAM_PROTO_GetShiftState [20:00:40]wFMCommunicate request_size=4 [20:00:40]MH_SAM_APDU [20:00:40]CAPDU: 80 13 01 00 [20:00:40]Write to MH i2c: E2 08 00 C4 48 80 13 01 00 00 00 00 00 89 [20:00:40]Write i2c OK [20:00:40]MH_I2C_Read... [20:00:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:00:40]Read from MH i2c: E2 [20:00:40]MH_I2C_Read... [20:00:40]Read from MH i2c: E2 0E 00 [20:00:40]MH_I2C_Read... [20:00:40]Read from MH i2c: E2 0E 00 C4 48 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 4B [20:00:40]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [20:00:40]wFMCommunicate OK [20:00:40]SAM_PROTO_GetShiftState done [20:00:40]FM_GetShiftState done [20:00:40]opened in 1709425579 [20:00:40]opened+sec_in_day 1709511979 [20:00:40]quantity*price = 60043 [20:00:40]sum+1 = 60044 [20:00:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.43 НСП 1% : 5.31 НДС 12% : 63.76 Наличными: 0.00 Безнал.: 600.43 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 200 03.03.2024 20:00 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874798 ФД: 123343 ФПД: 218723051536390 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T200045&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123343&fm=218723051536390&tin=02508201610067®Number=0000000000090573&sum=60043 [20:00:41]StoreToDocumentArchive [20:00:41]shift 323 fd 123343 [20:00:41]save to /storage/0323/doc_00123343 [20:00:41]save last doc name /storage/0323/doc_00123343 to /storage/kkm_last_doc_name [20:00:41]save OK [20:00:41]Clear old archive folders... [20:00:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:00:41]tlvbuf is 00E3F6D0 [20:00:41]SAM_PROTO_ClearQueue [20:00:41]wFMCommunicate request_size=4 [20:00:41]MH_SAM_APDU [20:00:41]CAPDU: 80 09 00 00 [20:00:41]Write to MH i2c: E2 08 00 D1 48 80 09 00 00 00 00 00 00 8B [20:00:41]Write i2c OK [20:00:41]MH_I2C_Read... [20:00:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:00:41]Read from MH i2c: E2 [20:00:41]MH_I2C_Read... [20:00:41]Read from MH i2c: E2 03 00 [20:00:41]MH_I2C_Read... [20:00:41]Read from MH i2c: E2 03 00 D1 48 00 90 00 8D [20:00:41]RAPDU: 90 00 [20:00:41]wFMCommunicate OK [20:00:41]SAM_PROTO_ClearQueue done [20:00:41]KKMCreateOFDPacket [20:00:41]OFDProtocolAddRootSTLVToBuf [20:00:41]FM_MakeSignedData [20:00:41]FM_MakeSignedData [20:00:41]SAM_PROTO_SignData [20:00:41]wFMCommunicate request_size=4 [20:00:41]MH_SAM_APDU [20:00:41]CAPDU: 80 0D 01 02 [20:00:41]Write to MH i2c: E2 08 00 D2 48 80 0D 01 02 00 00 00 00 93 [20:00:41]Write i2c OK [20:00:41]MH_I2C_Read... [20:00:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:00:42]Read from MH i2c: E2 [20:00:42]MH_I2C_Read... [20:00:42]Read from MH i2c: E2 03 00 [20:00:42]MH_I2C_Read... [20:00:42]Read from MH i2c: E2 03 00 D2 48 00 90 00 8E [20:00:42]RAPDU: 90 00 [20:00:42]wFMCommunicate OK [20:00:42]wFMCommunicate request_size=255 [20:00:42]MH_SAM_APDU [20:00:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 25 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 8B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8B 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 E8 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8B EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 ED D6 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 CF E1 01 00 35 04 06 00 C6 [20:00:42]Write to MH i2c: E2 02 01 D3 48 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 25 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 8B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8B 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 E8 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8B EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 ED D6 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 CF E1 01 00 35 04 06 00 C6 00 00 F9 [20:00:42]Write i2c OK [20:00:42]MH_I2C_Read... [20:00:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:00:42]Read from MH i2c: E2 [20:00:42]MH_I2C_Read... [20:00:42]Read from MH i2c: E2 03 00 [20:00:42]MH_I2C_Read... [20:00:42]Read from MH i2c: E2 03 00 D3 48 00 90 00 8F [20:00:42]RAPDU: 90 00 [20:00:42]wFMCommunicate OK [20:00:42]wFMCommunicate request_size=10 [20:00:42]MH_SAM_APDU [20:00:42]CAPDU: 80 0D 02 02 05 ED 6D CA 80 06 [20:00:42]Write to MH i2c: E2 0D 00 D4 48 80 0D 02 02 05 00 ED 6D CA 80 06 00 00 4A [20:00:42]Write i2c OK [20:00:42]MH_I2C_Read... [20:00:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:00:42]Read from MH i2c: E2 [20:00:42]MH_I2C_Read... [20:00:42]Read from MH i2c: E2 03 00 [20:00:42]MH_I2C_Read... [20:00:42]Read from MH i2c: E2 03 00 D4 48 00 90 00 90 [20:00:42]RAPDU: 90 00 [20:00:42]wFMCommunicate OK [20:00:42]wFMCommunicate request_size=4 [20:00:42]MH_SAM_APDU [20:00:42]CAPDU: 80 0D 03 02 [20:00:42]Write to MH i2c: E2 08 00 D5 48 80 0D 03 02 00 00 00 00 98 [20:00:42]Write i2c OK [20:00:42]MH_I2C_Read... [20:00:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:00:42]Read from MH i2c: E2 [20:00:42]MH_I2C_Read... [20:00:42]Read from MH i2c: E2 0B 00 [20:00:42]MH_I2C_Read... [20:00:42]Read from MH i2c: E2 0B 00 D5 48 00 C3 93 21 F1 5A 25 A4 0A 90 00 2E [20:00:42]RAPDU: C3 93 21 F1 5A 25 A4 0A 90 00 [20:00:42]wFMCommunicate OK [20:00:42]SAM_PROTO_SignData done [20:00:42]FM_MakeSignedData done [20:00:42]CreateOFDProtocolMessage [20:00:42]wFMCommunicate request_size=4 [20:00:42]MH_SAM_APDU [20:00:42]CAPDU: 80 11 00 00 [20:00:42]Write to MH i2c: E2 08 00 D6 48 80 11 00 00 00 00 00 00 98 [20:00:42]Write i2c OK [20:00:42]MH_I2C_Read... [20:00:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:00:42]Read from MH i2c: E2 [20:00:42]MH_I2C_Read... [20:00:42]Read from MH i2c: E2 17 00 [20:00:42]MH_I2C_Read... [20:00:42]Read from MH i2c: E2 17 00 D6 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 F6 [20:00:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [20:00:42]wFMCommunicate OK [20:00:42]CreateOFDProtocolMessage done [20:00:42]OFDSenderStorePacket 123343 [20:00:42]StoreOFDPacket docnum=123343 [20:00:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 F6 67 07 01 38 CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 25 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 8B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8B 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 E8 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8B EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 ED D6 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 CF E1 01 00 35 04 06 00 C6 ED 6D CA 80 06 C3 93 21 F1 5A 25 A4 0A [20:00:42]CheckFolder [20:00:42]dirname=/storage/ofd_packets [20:00:42]CheckFolder done [20:00:42]ProducePacketName [20:00:42]name=ofd_packets/00123343 [20:00:42]NVStorageSaveData ofd_packets/00123343 [20:00:42]File name is /storage/ofd_packets/00123343 [20:00:42]Write 301 bytes [20:00:42]NVStorageSaveData done [20:00:42]OFDSenderStorePacket done [20:00:42]KKMCreateOFDPacket done [20:00:42]NVStorageSaveData kkm_last_timestamp [20:00:42]File name is /storage/kkm_last_timestamp [20:00:42]Write 4 bytes [20:00:42]NVStorageSaveData done [20:00:42]ExternCall_PrintAddStr [20:00:42]wPrintStart [20:00:42]Write to MH i2c: 01 00 00 D7 48 1F [20:00:42]Write i2c OK [20:00:42]MH_I2C_Read... [20:00:42]Read from MH i2c: 01 [20:00:42]MH_I2C_Read... [20:00:42]Read from MH i2c: 01 07 00 [20:00:42]MH_I2C_Read... [20:00:42]Read from MH i2c: 01 07 00 D7 48 00 00 00 00 00 FF 0F 34 [20:00:42]RasterBufferAndPrint [20:00:42]line Счет N : (1)1106305 [20:00:42]line ИНН: 02508201610067 [20:00:42]line Контрольно-Кассовый Чек [20:00:42]line ПРОДАЖА [20:00:42]line ТРК (МРК, ГНК) : 52 [20:00:42]line Товар: 2710124130 [20:00:42]line Аи-92-К-5 [20:00:42]line 9.700 * 61.90 [20:00:42]line = 600.43 [20:00:42]line НДС 12% НСП 1% [20:00:42]line > о реализуемом товаре [20:00:42]line ИТОГО: 600.43 [20:00:42]line НСП 1% : 5.31 [20:00:42]line НДС 12% : 63.76 [20:00:42]line Наличными: 0.00 [20:00:42]line Безнал.: 600.43 [20:00:42]line Место: АЗС № 25 "Партнер Нефть" [20:00:42]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [20:00:42]line СНО: Общий режим [20:00:42]line Чек 200 03.03.2024 20:00 [20:00:42]line Смена: 323 ФФД: 1.0 [20:00:42]line ЗНМ: 0300000019 [20:00:42]line РНМ: 0000000000090573 [20:00:42]line Версия ККМ: 001 [20:00:42]line Платежная система: Бакай Банк [20:00:42]line ФМ: 0000000000874798 [20:00:42]line ФД: 123343 [20:00:42]line ФПД: 218723051536390 [20:00:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T200045&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123343&fm=218723051536390&tin=02508201610067®Number=0000000000090573&sum=60043 [20:00:42]OFD Sender: Processing packet 123343 [packets to send 112, broken 111] [20:00:42]ProducePacketName [20:00:42]name=ofd_packets/00123343 [20:00:42]OFD Sender: To server: pG, [20:00:42]CommunicateWithHost lk.salyk.kg:30040 [20:00:42]ConnectInit lk.salyk.kg [20:00:42]written 0, free lines is 4095 [20:00:42]Connected sock=10 [20:00: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 37 39 38 0F 01 00 00 F6 67 07 01 38 CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 25 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 8B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8B 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 E8 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8B EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 ED D6 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 CF E1 01 00 35 04 06 00 C6 ED 6D CA 80 06 C3 93 21 F1 5A 25 A4 0A [20:00:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 5C 2F 47 00 28 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 37 39 38 10 04 04 00 CF E1 01 00 F4 03 04 00 18 83 E4 65 B6 04 01 00 00 E3 98 70 69 33 FE 70 F8 [20:00:43]CommunicateWithHost err = 0 [20:00:43]CheckOFDResponse [20:00:43]1017 (14) - 77093643461234 [20:00:43]1041 (16) - 0000000000874798 [20:00:43]1040 (4) - 123343 [20:00:43]1012 (4) - 03.03.2024 14:03 [20:00:43]1206 (1) - 0 [20:00:43]OFD Sender: Remove packet 123343 [20:00:43]ProducePacketName [20:00:43]name=ofd_packets/00123343 [20:00:43]NVStorageDeleteData [20:00:43]Write to MH i2c: 01 00 00 01 49 4A [20:00:43]Write i2c OK [20:00:43]MH_I2C_Read... [20:00:43]Read from MH i2c: 01 [20:00:43]MH_I2C_Read... [20:00:43]Read from MH i2c: 01 07 00 [20:00:43]MH_I2C_Read... [20:00:43]Read from MH i2c: 01 07 00 01 49 00 00 00 00 00 05 0D 63 [20:00:43]RasterBufferAndPrint [20:00:43]line [20:00:43]line [20:00:43]line [20:00:43]line [20:00:43]line [20:00:43]written 0, free lines is 3339 [20:00:43]MH_Cut [20:00:43]Write to MH i2c: D1 01 00 08 49 01 23 [20:00:43]Write i2c OK [20:00:43]MH_I2C_Read... [20:00:43]Read from MH i2c: D1 [20:00:43]MH_I2C_Read... [20:00:43]Read from MH i2c: D1 01 00 [20:00:43]MH_I2C_Read... [20:00:43]Read from MH i2c: D1 01 00 08 49 00 22 [20:00:43]Write to MH i2c: 01 00 00 09 49 52 [20:00:43]Write i2c OK [20:00:43]MH_I2C_Read... [20:00:43]OFD Sender: No OFD packet to send [20:00:43]*** Cut start [20:00:43]*** Purtial cut [20:00:43]*** Stage 1: CUTSNS_PIN = 1 [20:00:45]Read from MH i2c: 01 [20:00:45]MH_I2C_Read... [20:00:45]*** Stop cut motor [20:00:45]*** Cut end [20:00:45]Read from MH i2c: 01 07 00 [20:00:45]MH_I2C_Read... [20:00:45]Read from MH i2c: 01 07 00 09 49 00 00 00 00 00 FF 0F 67 [20:00:45]process_action close_receipt done [20:00:45]requested_data is exist [20:00:45]produce_requested_data [20:00:45]requested_item fm.sn is exist - process it [20:00:45]wFMCommunicate request_size=4 [20:00:45]MH_SAM_APDU [20:00:45]CAPDU: 80 11 00 00 [20:00:45]Write to MH i2c: E2 08 00 0A 49 80 11 00 00 00 00 00 00 CD [20:00:45]Write i2c OK [20:00:45]MH_I2C_Read... [20:00:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:00:46]Read from MH i2c: E2 [20:00:46]MH_I2C_Read... [20:00:46]Read from MH i2c: E2 17 00 [20:00:46]MH_I2C_Read... [20:00:46]Read from MH i2c: E2 17 00 0A 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 2B [20:00:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [20:00:46]wFMCommunicate OK [20:00:46]requested_item fd.num is exist - process it [20:00:46]SAM_PROTO_GetFieldsCounters [20:00:46]wFMCommunicate request_size=4 [20:00:46]MH_SAM_APDU [20:00:46]CAPDU: 80 13 00 00 [20:00:46]Write to MH i2c: E2 08 00 0B 49 80 13 00 00 00 00 00 00 D0 [20:00:46]Write i2c OK [20:00:46]MH_I2C_Read... [20:00:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:00:46]Read from MH i2c: E2 [20:00:46]MH_I2C_Read... [20:00:46]Read from MH i2c: E2 62 00 [20:00:46]MH_I2C_Read... [20:00:46]Read from MH i2c: E2 62 00 0B 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 CF E1 01 00 0E 04 04 00 43 01 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 48 [20:00: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 CF E1 01 00 0E 04 04 00 43 01 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 [20:00:46]wFMCommunicate OK [20:00:46]SAM_PROTO_GetFieldsCounters done [20:00:46]requested_item shift.num is exist - process it [20:00:46]requested_item shift.opened is exist - process it [20:00:46]req_shift_opened [20:00:46]FM_GetShiftState [20:00:46]SAM_PROTO_GetShiftState [20:00:46]wFMCommunicate request_size=4 [20:00:46]MH_SAM_APDU [20:00:46]CAPDU: 80 13 01 00 [20:00:46]Write to MH i2c: E2 08 00 0C 49 80 13 01 00 00 00 00 00 D2 [20:00:46]Write i2c OK [20:00:46]MH_I2C_Read... [20:00:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:00:46]Read from MH i2c: E2 [20:00:46]MH_I2C_Read... [20:00:46]Read from MH i2c: E2 0E 00 [20:00:46]MH_I2C_Read... [20:00:46]Read from MH i2c: E2 0E 00 0C 49 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 94 [20:00:46]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [20:00:46]wFMCommunicate OK [20:00:46]SAM_PROTO_GetShiftState done [20:00:46]FM_GetShiftState done [20:00:46]req_shift_opened done [20:00:46]requested_item shift.open_date is exist - process it [20:00:46]req_shift_open_date [20:00:46]req_shift_open_date done [20:00:46]produce_requested_data done [20:00:46]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123343,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [20:00:46]process_action_free close_receipt [20:00:46]json_value_free [20:00:46]json_value_free done [20:00:46]process_json_proto returns [20:00:46]Send response to host [20:00:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123343,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [20:00:46]free response buf [20:00:46]execute_script done [20:00:46]execute_script returns [20:00:46]free content buf [20:00:46]Sock 9.Close socket [20:00:46]Sock 9.Thread stoped [20:00:48]OFD Sender: No OFD packet to send [20:00:53]OFD Sender: No OFD packet to send [20:00:58]OFD Sender: No OFD packet to send [20:01:03]OFD Sender: No OFD packet to send [20:01:08]OFD Sender: No OFD packet to send [20:01:13]OFD Sender: No OFD packet to send [20:01:18]OFD Sender: No OFD packet to send [20:01:23]OFD Sender: No OFD packet to send [20:01:28]OFD Sender: No OFD packet to send [20:01:33]OFD Sender: No OFD packet to send [20:01:38]OFD Sender: No OFD packet to send [20:01:43]OFD Sender: No OFD packet to send [20:01:48]OFD Sender: No OFD packet to send [20:01:53]OFD Sender: No OFD packet to send [20:01:58]OFD Sender: No OFD packet to send [20:02:03]OFD Sender: No OFD packet to send [20:02:08]OFD Sender: No OFD packet to send [20:02:13]OFD Sender: No OFD packet to send [20:02:18]OFD Sender: No OFD packet to send [20:02:23]OFD Sender: No OFD packet to send [20:02:28]OFD Sender: No OFD packet to send [20:02:33]OFD Sender: No OFD packet to send [20:02:38]OFD Sender: No OFD packet to send [20:02:43]OFD Sender: No OFD packet to send [20:02:48]OFD Sender: No OFD packet to send [20:02:53]OFD Sender: No OFD packet to send [20:02:58]OFD Sender: No OFD packet to send [20:03:03]OFD Sender: No OFD packet to send [20:03:08]OFD Sender: No OFD packet to send [20:03:13]OFD Sender: No OFD packet to send [20:03:18]OFD Sender: No OFD packet to send [20:03:23]OFD Sender: No OFD packet to send [20:03:28]OFD Sender: No OFD packet to send [20:03:33]OFD Sender: No OFD packet to send [20:03:38]OFD Sender: No OFD packet to send [20:03:43]OFD Sender: No OFD packet to send [20:03:48]OFD Sender: No OFD packet to send [20:03:53]OFD Sender: No OFD packet to send [20:03:58]OFD Sender: No OFD packet to send [20:04:03]OFD Sender: No OFD packet to send [20:04:08]OFD Sender: No OFD packet to send [20:04:13]OFD Sender: No OFD packet to send [20:04:18]OFD Sender: No OFD packet to send [20:04:23]OFD Sender: No OFD packet to send [20:04:28]OFD Sender: No OFD packet to send [20:04:33]OFD Sender: No OFD packet to send [20:04:38]OFD Sender: No OFD packet to send [20:04:43]OFD Sender: No OFD packet to send [20:04:48]OFD Sender: No OFD packet to send [20:04:53]OFD Sender: No OFD packet to send [20:04:58]OFD Sender: No OFD packet to send [20:05:03]OFD Sender: No OFD packet to send [20:05:08]OFD Sender: No OFD packet to send [20:05:13]OFD Sender: No OFD packet to send [20:05:18]OFD Sender: No OFD packet to send [20:05:23]OFD Sender: No OFD packet to send [20:05:28]OFD Sender: No OFD packet to send [20:05:33]OFD Sender: No OFD packet to send [20:05:38]OFD Sender: No OFD packet to send [20:05:43]OFD Sender: No OFD packet to send [20:05:48]OFD Sender: No OFD packet to send [20:05:53]OFD Sender: No OFD packet to send [20:05:58]OFD Sender: No OFD packet to send [20:06:03]OFD Sender: No OFD packet to send [20:06:08]OFD Sender: No OFD packet to send [20:06:13]OFD Sender: No OFD packet to send [20:06:18]OFD Sender: No OFD packet to send [20:06:23]OFD Sender: No OFD packet to send [20:06:28]OFD Sender: No OFD packet to send [20:06:33]OFD Sender: No OFD packet to send [20:06:38]OFD Sender: No OFD packet to send [20:06:43]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:19]OFD Sender: No OFD packet to send [20:09:24]OFD Sender: No OFD packet to send [20:09:29]OFD Sender: No OFD packet to send [20:09:34]OFD Sender: No OFD packet to send [20:09:39]OFD Sender: No OFD packet to send [20:09:44]OFD Sender: No OFD packet to send [20:09:49]OFD Sender: No OFD packet to send [20:09:54]OFD Sender: No OFD packet to send [20:09:59]OFD Sender: No OFD packet to send [20:10:04]OFD Sender: No OFD packet to send [20:10:09]OFD Sender: No OFD packet to send [20:10:14]OFD Sender: No OFD packet to send [20:10:19]OFD Sender: No OFD packet to send [20:10:24]OFD Sender: No OFD packet to send [20:10:29]OFD Sender: No OFD packet to send [20:10:34]OFD Sender: No OFD packet to send [20:10:39]OFD Sender: No OFD packet to send [20:10:44]OFD Sender: No OFD packet to send [20:10:49]OFD Sender: No OFD packet to send [20:10:54]OFD Sender: No OFD packet to send [20:10:59]OFD Sender: No OFD packet to send [20:11:04]OFD Sender: No OFD packet to send [20:11:09]OFD Sender: No OFD packet to send [20:11:14]OFD Sender: No OFD packet to send [20:11:19]OFD Sender: No OFD packet to send [20:11:24]OFD Sender: No OFD packet to send [20:11:29]OFD Sender: No OFD packet to send [20:11:34]OFD Sender: No OFD packet to send [20:11:39]OFD Sender: No OFD packet to send [20:11:44]OFD Sender: No OFD packet to send [20:11:49]OFD Sender: No OFD packet to send [20:11:54]OFD Sender: No OFD packet to send [20:11:59]OFD Sender: No OFD packet to send [20:12:04]OFD Sender: No OFD packet to send [20:12:09]OFD Sender: No OFD packet to send [20:12:14]OFD Sender: No OFD packet to send [20:12:19]OFD Sender: No OFD packet to send [20:12:24]OFD Sender: No OFD packet to send [20:12:29]OFD Sender: No OFD packet to send [20:12:34]OFD Sender: No OFD packet to send [20:12:39]OFD Sender: No OFD packet to send [20:12:44]OFD Sender: No OFD packet to send [20:12:49]OFD Sender: No OFD packet to send [20:12:54]OFD Sender: No OFD packet to send [20:12:59]OFD Sender: No OFD packet to send [20:13:04]OFD Sender: No OFD packet to send [20:13:09]OFD Sender: No OFD packet to send [20:13:14]OFD Sender: No OFD packet to send [20:13:19]OFD Sender: No OFD packet to send [20:13:24]OFD Sender: No OFD packet to send [20:13:29]OFD Sender: No OFD packet to send [20:13:34]OFD Sender: No OFD packet to send [20:13:39]OFD Sender: No OFD packet to send [20:13:44]OFD Sender: No OFD packet to send [20:13:49]OFD Sender: No OFD packet to send [20:13:54]OFD Sender: No OFD packet to send [20:13:59]OFD Sender: No OFD packet to send [20:14:04]OFD Sender: No OFD packet to send [20:14:09]OFD Sender: No OFD packet to send [20:14:14]OFD Sender: No OFD packet to send [20:14:19]OFD Sender: No OFD packet to send [20:14:24]OFD Sender: No OFD packet to send [20:14:29]OFD Sender: No OFD packet to send [20:14:34]OFD Sender: No OFD packet to send [20:14:39]OFD Sender: No OFD packet to send [20:14:44]OFD Sender: No OFD packet to send [20:14:49]OFD Sender: No OFD packet to send [20:14:54]OFD Sender: No OFD packet to send [20:14:59]OFD Sender: No OFD packet to send [20:15:04]OFD Sender: No OFD packet to send [20:15:09]OFD Sender: No OFD packet to send [20:15:14]OFD Sender: No OFD packet to send [20:15:19]OFD Sender: No OFD packet to send [20:15:24]OFD Sender: No OFD packet to send [20:15:29]OFD Sender: No OFD packet to send [20:15:34]OFD Sender: No OFD packet to send [20:15:39]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:39]OFD Sender: No OFD packet to send [20:16:44]OFD Sender: No OFD packet to send [20:16:49]OFD Sender: No OFD packet to send [20:16:54]OFD Sender: No OFD packet to send [20:16:59]OFD Sender: No OFD packet to send [20:17:04]OFD Sender: No OFD packet to send [20:17:09]OFD Sender: No OFD packet to send [20:17:14]OFD Sender: No OFD packet to send [20:17:19]OFD Sender: No OFD packet to send [20:17:24]OFD Sender: No OFD packet to send [20:17:29]OFD Sender: No OFD packet to send [20:17:34]OFD Sender: No OFD packet to send [20:17:39]OFD Sender: No OFD packet to send [20:17:44]OFD Sender: No OFD packet to send [20:17:49]OFD Sender: No OFD packet to send [20:17:54]OFD Sender: No OFD packet to send [20:17:59]OFD Sender: No OFD packet to send [20:18:04]OFD Sender: No OFD packet to send [20:18:09]OFD Sender: No OFD packet to send [20:18:14]OFD Sender: No OFD packet to send [20:18:19]OFD Sender: No OFD packet to send [20:18:24]OFD Sender: No OFD packet to send [20:18:29]OFD Sender: No OFD packet to send [20:18:34]OFD Sender: No OFD packet to send [20:18:39]OFD Sender: No OFD packet to send [20:18:44]OFD Sender: No OFD packet to send [20:18:48]accept exits with 7 [20:18:48]New connection [20:18:48]New thread 3067395428 created [20:18:48]Thread 3067252068 joined [20:18:48]Waiting for new connection... [20:18:48] Sock 7.Parse request [20:18:48]Sock 7.Check first char [20:18:48]Sock 7.First char is OK [20:18:48]request: POST /json_proto HTTP/1.0 [20:18:48]Method: POST [20:18:48]URL: /json_proto [20:18:48]Method is POST - this is cgi request [20:18:48]url: /json_proto [20:18:48]query_string will be loaded in cgi processing [20:18:48]execute_cgi json_proto POST (null) [20:18:48]execute_cgi path=json_proto method=POST [20:18:48]POST find Content-Length [20:18:48]Host: 172.17.48.197:8080 [20:18:48]Content-Length: 1218 [20:18:48]Content-Type: application/json [20:18:48] [20:18:48]POST finish read [20:18:48]Found Content-Length = 1218 [20:18:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106306\u000A03.03.2024 20:15\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 32.320 x 61.90\u000A\u0418\u0422\u041E\u0413: 2000.61\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3860776\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:18:48]execute_script... [20:18:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106306\u000A03.03.2024 20:15\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 32.320 x 61.90\u000A\u0418\u0422\u041E\u0413: 2000.61\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3860776\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:18:48]POST & json_proto [20:18:48]process_json_proto [20:18:48]json parsed OK: [20:18:48]protocol is kg_v1.0 [20:18:48]action value=print_text [20:18:48]process_action print_text [20:18:48]cmd_print_text [20:18:48]ExternCall_PrintAddStr [20:18:48]wPrintStart [20:18:48]Write to MH i2c: 01 00 00 0D 49 56 [20:18:48]Write i2c OK [20:18:48]MH_I2C_Read... [20:18:48]Read from MH i2c: 01 [20:18:48]MH_I2C_Read... [20:18:48]Read from MH i2c: 01 07 00 [20:18:48]MH_I2C_Read... [20:18:48]Read from MH i2c: 01 07 00 0D 49 00 00 00 00 00 FF 0F 6B [20:18:48]RasterBufferAndPrint [20:18:48]line *****ТОВАРНЫЙ ЧЕК***** [20:18:48]line АЗС 25 [20:18:48]line Партнер нефть [20:18:48]line 02508201610067 [20:18:48]line Кассир : Турдумбек у. К. [20:18:48]line Счет N : (1)1106306 [20:18:48]line 03.03.2024 20:15 [20:18:48]line ПРОДАЖА [20:18:48]line ТРК (МРК, ГНК): 11 [20:18:48]line Вид ГСМ : 2710124130 [20:18:48]line Аи-92-К-5 [20:18:48]line 32.320 x 61.90 [20:18:48]line ИТОГ: 2000.61 [20:18:48]line Тип оплаты: Талоны: Топливные Талоны [20:18:48]line 3860776 [20:18:48]line ______________________ [20:18:48]line (подпись) [20:18:48]written 0, free lines is 4095 [20:18:48]Write to MH i2c: 01 00 00 22 49 6B [20:18:48]Write i2c OK [20:18:48]MH_I2C_Read... [20:18:48]Read from MH i2c: 01 [20:18:48]MH_I2C_Read... [20:18:48]Read from MH i2c: 01 07 00 [20:18:48]MH_I2C_Read... [20:18:48]Read from MH i2c: 01 07 00 22 49 00 00 00 00 00 F5 0D 74 [20:18:48]RasterBufferAndPrint [20:18:48]line [20:18:48]line [20:18:48]line [20:18:48]line [20:18:48]line [20:18:48]written 0, free lines is 3575 [20:18:48]MH_Cut [20:18:48]Write to MH i2c: D1 01 00 29 49 01 44 [20:18:48]Write i2c OK [20:18:48]MH_I2C_Read... [20:18:48]Read from MH i2c: D1 [20:18:48]MH_I2C_Read... [20:18:48]Read from MH i2c: D1 01 00 [20:18:48]MH_I2C_Read... [20:18:48]Read from MH i2c: D1 01 00 29 49 00 43 [20:18:48]Write to MH i2c: 01 00 00 2A 49 73 [20:18:48]Write i2c OK [20:18:48]MH_I2C_Read... [20:18:49]*** Cut start [20:18:49]*** Purtial cut [20:18:49]*** Stage 1: CUTSNS_PIN = 1 [20:18:49]OFD Sender: No OFD packet to send [20:18:51]Read from MH i2c: 01 [20:18:51]MH_I2C_Read... [20:18:51]Read from MH i2c: 01 07 00 [20:18:51]MH_I2C_Read... [20:18:51]*** Stop cut motor [20:18:51]*** Cut end [20:18:51]Read from MH i2c: 01 07 00 2A 49 00 00 00 00 00 FF 0F 88 [20:18:51]process_action print_text done [20:18:51]requested_data is exist [20:18:51]produce_requested_data [20:18:51]requested_item fm.sn is exist - process it [20:18:51]wFMCommunicate request_size=4 [20:18:51]MH_SAM_APDU [20:18:51]CAPDU: 80 11 00 00 [20:18:51]Write to MH i2c: E2 08 00 2B 49 80 11 00 00 00 00 00 00 EE [20:18:51]Write i2c OK [20:18:51]MH_I2C_Read... [20:18:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:18:51]Read from MH i2c: E2 [20:18:51]MH_I2C_Read... [20:18:51]Read from MH i2c: E2 17 00 [20:18:51]MH_I2C_Read... [20:18:51]Read from MH i2c: E2 17 00 2B 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 4C [20:18:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [20:18:51]wFMCommunicate OK [20:18:51]requested_item fd.num is exist - process it [20:18:51]SAM_PROTO_GetFieldsCounters [20:18:51]wFMCommunicate request_size=4 [20:18:51]MH_SAM_APDU [20:18:51]CAPDU: 80 13 00 00 [20:18:51]Write to MH i2c: E2 08 00 2C 49 80 13 00 00 00 00 00 00 F1 [20:18:51]Write i2c OK [20:18:51]MH_I2C_Read... [20:18:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:18:51]Read from MH i2c: E2 [20:18:51]MH_I2C_Read... [20:18:51]Read from MH i2c: E2 62 00 [20:18:51]MH_I2C_Read... [20:18:51]Read from MH i2c: E2 62 00 2C 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 CF E1 01 00 0E 04 04 00 43 01 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 69 [20: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 CF E1 01 00 0E 04 04 00 43 01 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 [20:18:51]wFMCommunicate OK [20:18:51]SAM_PROTO_GetFieldsCounters done [20:18:51]requested_item shift.num is exist - process it [20:18:51]requested_item shift.opened is exist - process it [20:18:51]req_shift_opened [20:18:51]FM_GetShiftState [20:18:51]SAM_PROTO_GetShiftState [20:18:51]wFMCommunicate request_size=4 [20:18:51]MH_SAM_APDU [20:18:51]CAPDU: 80 13 01 00 [20:18:51]Write to MH i2c: E2 08 00 2D 49 80 13 01 00 00 00 00 00 F3 [20:18:51]Write i2c OK [20:18:51]MH_I2C_Read... [20:18:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:18:51]Read from MH i2c: E2 [20:18:51]MH_I2C_Read... [20:18:51]Read from MH i2c: E2 0E 00 [20:18:51]MH_I2C_Read... [20:18:51]Read from MH i2c: E2 0E 00 2D 49 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 B5 [20:18:51]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [20:18:51]wFMCommunicate OK [20:18:51]SAM_PROTO_GetShiftState done [20:18:51]FM_GetShiftState done [20:18:51]req_shift_opened done [20:18:51]requested_item shift.open_date is exist - process it [20:18:51]req_shift_open_date [20:18:51]req_shift_open_date done [20:18:51]produce_requested_data done [20:18:51]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123343,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [20:18:51]process_action_free print_text [20:18:51]json_value_free [20:18:51]json_value_free done [20:18:51]process_json_proto returns [20:18:51]Send response to host [20:18:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123343,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [20:18:51]free response buf [20:18:51]execute_script done [20:18:51]execute_script returns [20:18:51]free content buf [20:18:51]Sock 7.Close socket [20:18:51]Sock 7.Thread stoped [20:18:54]OFD Sender: No OFD packet to send [20:18:59]OFD Sender: No OFD packet to send [20:19:04]OFD Sender: No OFD packet to send [20:19:09]OFD Sender: No OFD packet to send [20:19:14]OFD Sender: No OFD packet to send [20:19:19]OFD Sender: No OFD packet to send [20:19:24]OFD Sender: No OFD packet to send [20:19:29]OFD Sender: No OFD packet to send [20:19:34]OFD Sender: No OFD packet to send [20:19:39]OFD Sender: No OFD packet to send [20:19:41]accept exits with 9 [20:19:41]New connection [20:19:41]New thread 3067252068 created [20:19:41]Thread 3067395428 joined [20:19:41]Waiting for new connection... [20:19:41] Sock 9.Parse request [20:19:41]Sock 9.Check first char [20:19:41]Sock 9.First char is OK [20:19:41]request: POST /json_proto HTTP/1.0 [20:19:41]Method: POST [20:19:41]URL: /json_proto [20:19:41]Method is POST - this is cgi request [20:19:41]url: /json_proto [20:19:41]query_string will be loaded in cgi processing [20:19:41]execute_cgi json_proto POST (null) [20:19:41]execute_cgi path=json_proto method=POST [20:19:41]POST find Content-Length [20:19:41]Host: 172.17.48.197:8080 [20:19:41]Content-Length: 1213 [20:19:41]Content-Type: application/json [20:19:41] [20:19:41]POST finish read [20:19:41]Found Content-Length = 1213 [20:19:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106307\u000A03.03.2024 20:16\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 9.950 x 70.90\u000A\u0418\u0422\u041E\u0413: 705.46\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A00350\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:19:41]execute_script... [20:19:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106307\u000A03.03.2024 20:16\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 9.950 x 70.90\u000A\u0418\u0422\u041E\u0413: 705.46\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A00350\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:19:41]POST & json_proto [20:19:41]process_json_proto [20:19:41]json parsed OK: [20:19:41]protocol is kg_v1.0 [20:19:41]action value=print_text [20:19:41]process_action print_text [20:19:41]cmd_print_text [20:19:41]ExternCall_PrintAddStr [20:19:41]wPrintStart [20:19:41]Write to MH i2c: 01 00 00 2E 49 77 [20:19:41]Write i2c OK [20:19:41]MH_I2C_Read... [20:19:41]Read from MH i2c: 01 [20:19:41]MH_I2C_Read... [20:19:41]Read from MH i2c: 01 07 00 [20:19:41]MH_I2C_Read... [20:19:41]Read from MH i2c: 01 07 00 2E 49 00 00 00 00 00 FF 0F 8C [20:19:41]RasterBufferAndPrint [20:19:41]line *****ТОВАРНЫЙ ЧЕК***** [20:19:41]line АЗС 25 [20:19:41]line Партнер нефть [20:19:41]line 02508201610067 [20:19:41]line Кассир : Турдумбек у. К. [20:19:41]line Счет N : (1)1106307 [20:19:41]line 03.03.2024 20:16 [20:19:41]line ПРОДАЖА [20:19:41]line ТРК (МРК, ГНК): 41 [20:19:41]line Вид ГСМ : 2710194210 [20:19:41]line ДТ(л)-К-5 [20:19:41]line 9.950 x 70.90 [20:19:41]line ИТОГ: 705.46 [20:19:41]line Тип оплаты: Талоны: Топливная Карта [20:19:41]line 00350 [20:19:41]line ______________________ [20:19:41]line (подпись) [20:19:41]written 0, free lines is 4095 [20:19:41]Write to MH i2c: 01 00 00 43 49 8C [20:19:41]Write i2c OK [20:19:41]MH_I2C_Read... [20:19:41]Read from MH i2c: 01 [20:19:41]MH_I2C_Read... [20:19:41]Read from MH i2c: 01 07 00 [20:19:41]MH_I2C_Read... [20:19:41]Read from MH i2c: 01 07 00 43 49 00 00 00 00 00 F3 0D 93 [20:19:41]RasterBufferAndPrint [20:19:41]line [20:19:41]line [20:19:41]line [20:19:41]line [20:19:41]line [20:19:41]written 0, free lines is 3573 [20:19:41]MH_Cut [20:19:41]Write to MH i2c: D1 01 00 4A 49 01 65 [20:19:41]Write i2c OK [20:19:41]MH_I2C_Read... [20:19:41]Read from MH i2c: D1 [20:19:41]MH_I2C_Read... [20:19:41]Read from MH i2c: D1 01 00 [20:19:41]MH_I2C_Read... [20:19:41]Read from MH i2c: D1 01 00 4A 49 00 64 [20:19:41]Write to MH i2c: 01 00 00 4B 49 94 [20:19:41]Write i2c OK [20:19:41]MH_I2C_Read... [20:19:42]*** Cut start [20:19:42]*** Purtial cut [20:19:42]*** Stage 1: CUTSNS_PIN = 1 [20:19:44]Read from MH i2c: 01 [20:19:44]MH_I2C_Read... [20:19:44]Read from MH i2c: 01 07 00 [20:19:44]MH_I2C_Read... [20:19:44]*** Stop cut motor [20:19:44]*** Cut end [20:19:44]Read from MH i2c: 01 07 00 4B 49 00 00 00 00 00 FF 0F A9 [20:19:44]process_action print_text done [20:19:44]requested_data is exist [20:19:44]produce_requested_data [20:19:44]requested_item fm.sn is exist - process it [20:19:44]wFMCommunicate request_size=4 [20:19:44]MH_SAM_APDU [20:19:44]CAPDU: 80 11 00 00 [20:19:44]Write to MH i2c: E2 08 00 4C 49 80 11 00 00 00 00 00 00 0F [20:19:44]Write i2c OK [20:19:44]MH_I2C_Read... [20:19:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:19:44]Read from MH i2c: E2 [20:19:44]MH_I2C_Read... [20:19:44]Read from MH i2c: E2 17 00 [20:19:44]MH_I2C_Read... [20:19:44]Read from MH i2c: E2 17 00 4C 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 6D [20:19:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [20:19:44]wFMCommunicate OK [20:19:44]requested_item fd.num is exist - process it [20:19:44]SAM_PROTO_GetFieldsCounters [20:19:44]wFMCommunicate request_size=4 [20:19:44]MH_SAM_APDU [20:19:44]CAPDU: 80 13 00 00 [20:19:44]Write to MH i2c: E2 08 00 4D 49 80 13 00 00 00 00 00 00 12 [20:19:44]Write i2c OK [20:19:44]MH_I2C_Read... [20:19:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:19:44]Read from MH i2c: E2 [20:19:44]MH_I2C_Read... [20:19:44]Read from MH i2c: E2 62 00 [20:19:44]MH_I2C_Read... [20:19:44]Read from MH i2c: E2 62 00 4D 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 CF E1 01 00 0E 04 04 00 43 01 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 8A [20:19: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 CF E1 01 00 0E 04 04 00 43 01 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 [20:19:44]wFMCommunicate OK [20:19:44]SAM_PROTO_GetFieldsCounters done [20:19:44]requested_item shift.num is exist - process it [20:19:44]requested_item shift.opened is exist - process it [20:19:44]req_shift_opened [20:19:44]FM_GetShiftState [20:19:44]SAM_PROTO_GetShiftState [20:19:44]wFMCommunicate request_size=4 [20:19:44]MH_SAM_APDU [20:19:44]CAPDU: 80 13 01 00 [20:19:44]Write to MH i2c: E2 08 00 4E 49 80 13 01 00 00 00 00 00 14 [20:19:44]Write i2c OK [20:19:44]MH_I2C_Read... [20:19:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:19:44]Read from MH i2c: E2 [20:19:44]MH_I2C_Read... [20:19:44]Read from MH i2c: E2 0E 00 [20:19:44]MH_I2C_Read... [20:19:44]Read from MH i2c: E2 0E 00 4E 49 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 D6 [20:19:44]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [20:19:44]wFMCommunicate OK [20:19:44]SAM_PROTO_GetShiftState done [20:19:44]FM_GetShiftState done [20:19:44]req_shift_opened done [20:19:44]requested_item shift.open_date is exist - process it [20:19:44]req_shift_open_date [20:19:44]req_shift_open_date done [20:19:44]produce_requested_data done [20:19:44]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123343,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [20:19:44]process_action_free print_text [20:19:44]json_value_free [20:19:44]json_value_free done [20:19:44]process_json_proto returns [20:19:44]Send response to host [20:19:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123343,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [20:19:44]free response buf [20:19:44]execute_script done [20:19:44]execute_script returns [20:19:44]free content buf [20:19:44]Sock 9.Close socket [20:19:44]Sock 9.Thread stoped [20:19:44]OFD Sender: No OFD packet to send [20:19:49]OFD Sender: No OFD packet to send [20:19:54]OFD Sender: No OFD packet to send [20:19:59]OFD Sender: No OFD packet to send [20:20:04]OFD Sender: No OFD packet to send [20:20:09]OFD Sender: No OFD packet to send [20:20:14]OFD Sender: No OFD packet to send [20:20:19]OFD Sender: No OFD packet to send [20:20:24]OFD Sender: No OFD packet to send [20:20:29]OFD Sender: No OFD packet to send [20:20:34]OFD Sender: No OFD packet to send [20:20:39]OFD Sender: No OFD packet to send [20:20:44]OFD Sender: No OFD packet to send [20:20:49]OFD Sender: No OFD packet to send [20:20:54]OFD Sender: No OFD packet to send [20:20:59]OFD Sender: No OFD packet to send [20:21:04]OFD Sender: No OFD packet to send [20:21:09]OFD Sender: No OFD packet to send [20:21:13]accept exits with 7 [20:21:13]New connection [20:21:13]New thread 3067395428 created [20:21:13]Thread 3067252068 joined [20:21:13]Waiting for new connection... [20:21:13] Sock 7.Parse request [20:21:13]Sock 7.Check first char [20:21:13]Sock 7.First char is OK [20:21:13]request: POST /json_proto HTTP/1.0 [20:21:13]Method: POST [20:21:13]URL: /json_proto [20:21:13]Method is POST - this is cgi request [20:21:13]url: /json_proto [20:21:13]query_string will be loaded in cgi processing [20:21:13]execute_cgi json_proto POST (null) [20:21:13]execute_cgi path=json_proto method=POST [20:21:13]POST find Content-Length [20:21:13]Host: 172.17.48.197:8080 [20:21:13]Content-Length: 1223 [20:21:13]Content-Type: application/json [20:21:13] [20:21:13]POST finish read [20:21:13]Found Content-Length = 1223 [20:21:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106309\u000A03.03.2024 20:17\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 28.210 x 70.90\u000A\u0418\u0422\u041E\u0413: 2000.09\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3860776\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:21:13]execute_script... [20:21:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106309\u000A03.03.2024 20:17\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 28.210 x 70.90\u000A\u0418\u0422\u041E\u0413: 2000.09\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3860776\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:21:13]POST & json_proto [20:21:13]process_json_proto [20:21:13]json parsed OK: [20:21:13]protocol is kg_v1.0 [20:21:13]action value=print_text [20:21:13]process_action print_text [20:21:13]cmd_print_text [20:21:13]ExternCall_PrintAddStr [20:21:13]wPrintStart [20:21:13]Write to MH i2c: 01 00 00 4F 49 98 [20:21:13]Write i2c OK [20:21:13]MH_I2C_Read... [20:21:13]Read from MH i2c: 01 [20:21:13]MH_I2C_Read... [20:21:13]Read from MH i2c: 01 07 00 [20:21:13]MH_I2C_Read... [20:21:13]Read from MH i2c: 01 07 00 4F 49 00 00 00 00 00 FF 0F AD [20:21:13]RasterBufferAndPrint [20:21:13]line *****ТОВАРНЫЙ ЧЕК***** [20:21:13]line АЗС 25 [20:21:13]line Партнер нефть [20:21:13]line 02508201610067 [20:21:13]line Кассир : Турдумбек у. К. [20:21:13]line Счет N : (1)1106309 [20:21:13]line 03.03.2024 20:17 [20:21:13]line ПРОДАЖА [20:21:13]line ТРК (МРК, ГНК): 51 [20:21:13]line Вид ГСМ : 2710194210 [20:21:13]line ДТ(л)-К-5 [20:21:13]line 28.210 x 70.90 [20:21:13]line ИТОГ: 2000.09 [20:21:13]line Тип оплаты: Талоны: Топливные Талоны [20:21:13]line 3860776 [20:21:13]line ______________________ [20:21:13]line (подпись) [20:21:13]written 0, free lines is 4095 [20:21:13]Write to MH i2c: 01 00 00 64 49 AD [20:21:13]Write i2c OK [20:21:13]MH_I2C_Read... [20:21:13]Read from MH i2c: 01 [20:21:13]MH_I2C_Read... [20:21:13]Read from MH i2c: 01 07 00 [20:21:13]MH_I2C_Read... [20:21:13]Read from MH i2c: 01 07 00 64 49 00 00 00 00 00 F5 0D B6 [20:21:13]RasterBufferAndPrint [20:21:13]line [20:21:13]line [20:21:13]line [20:21:13]line [20:21:13]line [20:21:13]written 0, free lines is 3575 [20:21:13]MH_Cut [20:21:13]Write to MH i2c: D1 01 00 6B 49 01 86 [20:21:13]Write i2c OK [20:21:13]MH_I2C_Read... [20:21:13]Read from MH i2c: D1 [20:21:13]MH_I2C_Read... [20:21:13]Read from MH i2c: D1 01 00 [20:21:13]MH_I2C_Read... [20:21:13]Read from MH i2c: D1 01 00 6B 49 00 85 [20:21:13]Write to MH i2c: 01 00 00 6C 49 B5 [20:21:13]Write i2c OK [20:21:13]MH_I2C_Read... [20:21:14]*** Cut start [20:21:14]*** Purtial cut [20:21:14]*** Stage 1: CUTSNS_PIN = 1 [20:21:14]OFD Sender: No OFD packet to send [20:21:16]Read from MH i2c: 01 [20:21:16]MH_I2C_Read... [20:21:16]Read from MH i2c: 01 07 00 [20:21:16]MH_I2C_Read... [20:21:16]*** Stop cut motor [20:21:16]*** Cut end [20:21:16]Read from MH i2c: 01 07 00 6C 49 00 00 00 00 00 FF 0F CA [20:21:16]process_action print_text done [20:21:16]requested_data is exist [20:21:16]produce_requested_data [20:21:16]requested_item fm.sn is exist - process it [20:21:16]wFMCommunicate request_size=4 [20:21:16]MH_SAM_APDU [20:21:16]CAPDU: 80 11 00 00 [20:21:16]Write to MH i2c: E2 08 00 6D 49 80 11 00 00 00 00 00 00 30 [20:21:16]Write i2c OK [20:21:16]MH_I2C_Read... [20:21:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:21:16]Read from MH i2c: E2 [20:21:16]MH_I2C_Read... [20:21:16]Read from MH i2c: E2 17 00 [20:21:16]MH_I2C_Read... [20:21:16]Read from MH i2c: E2 17 00 6D 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 8E [20:21:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [20:21:16]wFMCommunicate OK [20:21:16]requested_item fd.num is exist - process it [20:21:16]SAM_PROTO_GetFieldsCounters [20:21:16]wFMCommunicate request_size=4 [20:21:16]MH_SAM_APDU [20:21:16]CAPDU: 80 13 00 00 [20:21:16]Write to MH i2c: E2 08 00 6E 49 80 13 00 00 00 00 00 00 33 [20:21:16]Write i2c OK [20:21:16]MH_I2C_Read... [20:21:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:21:16]Read from MH i2c: E2 [20:21:16]MH_I2C_Read... [20:21:16]Read from MH i2c: E2 62 00 [20:21:16]MH_I2C_Read... [20:21:16]Read from MH i2c: E2 62 00 6E 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 CF E1 01 00 0E 04 04 00 43 01 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 AB [20:21: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 CF E1 01 00 0E 04 04 00 43 01 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 [20:21:16]wFMCommunicate OK [20:21:16]SAM_PROTO_GetFieldsCounters done [20:21:16]requested_item shift.num is exist - process it [20:21:16]requested_item shift.opened is exist - process it [20:21:16]req_shift_opened [20:21:16]FM_GetShiftState [20:21:16]SAM_PROTO_GetShiftState [20:21:16]wFMCommunicate request_size=4 [20:21:16]MH_SAM_APDU [20:21:16]CAPDU: 80 13 01 00 [20:21:16]Write to MH i2c: E2 08 00 6F 49 80 13 01 00 00 00 00 00 35 [20:21:16]Write i2c OK [20:21:16]MH_I2C_Read... [20:21:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:21:16]Read from MH i2c: E2 [20:21:16]MH_I2C_Read... [20:21:16]Read from MH i2c: E2 0E 00 [20:21:16]MH_I2C_Read... [20:21:16]Read from MH i2c: E2 0E 00 6F 49 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 F7 [20:21:16]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [20:21:16]wFMCommunicate OK [20:21:16]SAM_PROTO_GetShiftState done [20:21:16]FM_GetShiftState done [20:21:16]req_shift_opened done [20:21:16]requested_item shift.open_date is exist - process it [20:21:16]req_shift_open_date [20:21:16]req_shift_open_date done [20:21:16]produce_requested_data done [20:21:16]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123343,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [20:21:16]process_action_free print_text [20:21:16]json_value_free [20:21:16]json_value_free done [20:21:16]process_json_proto returns [20:21:16]Send response to host [20:21:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123343,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [20:21:16]free response buf [20:21:16]execute_script done [20:21:16]execute_script returns [20:21:16]free content buf [20:21:16]Sock 7.Close socket [20:21:16]Sock 7.Thread stoped [20:21:19]OFD Sender: No OFD packet to send [20:21:25]OFD Sender: No OFD packet to send [20:21:30]OFD Sender: No OFD packet to send [20:21:35]OFD Sender: No OFD packet to send [20:21:40]OFD Sender: No OFD packet to send [20:21:45]OFD Sender: No OFD packet to send [20:21:50]OFD Sender: No OFD packet to send [20:21:55]OFD Sender: No OFD packet to send [20:22:00]OFD Sender: No OFD packet to send [20:22:05]OFD Sender: No OFD packet to send [20:22:10]OFD Sender: No OFD packet to send [20:22:15]OFD Sender: No OFD packet to send [20:22:20]OFD Sender: No OFD packet to send [20:22:25]OFD Sender: No OFD packet to send [20:22:30]OFD Sender: No OFD packet to send [20:22:35]OFD Sender: No OFD packet to send [20:22:40]OFD Sender: No OFD packet to send [20:22:45]OFD Sender: No OFD packet to send [20:22:50]OFD Sender: No OFD packet to send [20:22:55]OFD Sender: No OFD packet to send [20:23:00]OFD Sender: No OFD packet to send [20:23:00]accept exits with 9 [20:23:00]New connection [20:23:00]New thread 3067252068 created [20:23:00]Thread 3067395428 joined [20:23:00]Waiting for new connection... [20:23:00] Sock 9.Parse request [20:23:00]Sock 9.Check first char [20:23:00]Sock 9.First char is OK [20:23:00]request: POST /json_proto HTTP/1.0 [20:23:00]Method: POST [20:23:00]URL: /json_proto [20:23:00]Method is POST - this is cgi request [20:23:00]url: /json_proto [20:23:00]query_string will be loaded in cgi processing [20:23:00]execute_cgi json_proto POST (null) [20:23:00]execute_cgi path=json_proto method=POST [20:23:00]POST find Content-Length [20:23:00]Host: 172.17.48.197:8080 [20:23:00]Content-Length: 1223 [20:23:00]Content-Type: application/json [20:23:00] [20:23:00]POST finish read [20:23:00]Found Content-Length = 1223 [20:23:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106310\u000A03.03.2024 20:19\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 14.110 x 70.90\u000A\u0418\u0422\u041E\u0413: 1000.40\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3693365\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:23:00]execute_script... [20:23:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106310\u000A03.03.2024 20:19\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 14.110 x 70.90\u000A\u0418\u0422\u041E\u0413: 1000.40\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3693365\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:23:00]POST & json_proto [20:23:00]process_json_proto [20:23:00]json parsed OK: [20:23:00]protocol is kg_v1.0 [20:23:00]action value=print_text [20:23:00]process_action print_text [20:23:00]cmd_print_text [20:23:00]ExternCall_PrintAddStr [20:23:00]wPrintStart [20:23:00]Write to MH i2c: 01 00 00 70 49 B9 [20:23:00]Write i2c OK [20:23:00]MH_I2C_Read... [20:23:00]Read from MH i2c: 01 [20:23:00]MH_I2C_Read... [20:23:00]Read from MH i2c: 01 07 00 [20:23:00]MH_I2C_Read... [20:23:00]Read from MH i2c: 01 07 00 70 49 00 00 00 00 00 FF 0F CE [20:23:00]RasterBufferAndPrint [20:23:00]line *****ТОВАРНЫЙ ЧЕК***** [20:23:00]line АЗС 25 [20:23:00]line Партнер нефть [20:23:00]line 02508201610067 [20:23:00]line Кассир : Турдумбек у. К. [20:23:00]line Счет N : (1)1106310 [20:23:00]line 03.03.2024 20:19 [20:23:00]line ПРОДАЖА [20:23:00]line ТРК (МРК, ГНК): 51 [20:23:00]line Вид ГСМ : 2710194210 [20:23:00]line ДТ(л)-К-5 [20:23:00]line 14.110 x 70.90 [20:23:00]line ИТОГ: 1000.40 [20:23:00]line Тип оплаты: Талоны: Топливные Талоны [20:23:00]line 3693365 [20:23:00]line ______________________ [20:23:00]line (подпись) [20:23:00]written 0, free lines is 4095 [20:23:00]Write to MH i2c: 01 00 00 85 49 CE [20:23:00]Write i2c OK [20:23:00]MH_I2C_Read... [20:23:00]Read from MH i2c: 01 [20:23:00]MH_I2C_Read... [20:23:00]Read from MH i2c: 01 07 00 [20:23:00]MH_I2C_Read... [20:23:00]Read from MH i2c: 01 07 00 85 49 00 00 00 00 00 F5 0D D7 [20:23:00]RasterBufferAndPrint [20:23:00]line [20:23:00]line [20:23:00]line [20:23:00]line [20:23:00]line [20:23:00]written 0, free lines is 3575 [20:23:00]MH_Cut [20:23:00]Write to MH i2c: D1 01 00 8C 49 01 A7 [20:23:00]Write i2c OK [20:23:00]MH_I2C_Read... [20:23:00]Read from MH i2c: D1 [20:23:00]MH_I2C_Read... [20:23:00]Read from MH i2c: D1 01 00 [20:23:00]MH_I2C_Read... [20:23:00]Read from MH i2c: D1 01 00 8C 49 00 A6 [20:23:00]Write to MH i2c: 01 00 00 8D 49 D6 [20:23:00]Write i2c OK [20:23:00]MH_I2C_Read... [20:23:01]*** Cut start [20:23:01]*** Purtial cut [20:23:01]*** Stage 1: CUTSNS_PIN = 1 [20:23:03]Read from MH i2c: 01 [20:23:03]MH_I2C_Read... [20:23:03]*** Stop cut motor [20:23:03]*** Cut end [20:23:03]Read from MH i2c: 01 07 00 [20:23:03]MH_I2C_Read... [20:23:03]Read from MH i2c: 01 07 00 8D 49 00 00 00 00 00 FF 0F EB [20:23:03]process_action print_text done [20:23:03]requested_data is exist [20:23:03]produce_requested_data [20:23:03]requested_item fm.sn is exist - process it [20:23:03]wFMCommunicate request_size=4 [20:23:03]MH_SAM_APDU [20:23:03]CAPDU: 80 11 00 00 [20:23:03]Write to MH i2c: E2 08 00 8E 49 80 11 00 00 00 00 00 00 51 [20:23:03]Write i2c OK [20:23:03]MH_I2C_Read... [20:23:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:23:03]Read from MH i2c: E2 [20:23:03]MH_I2C_Read... [20:23:03]Read from MH i2c: E2 17 00 [20:23:03]MH_I2C_Read... [20:23:03]Read from MH i2c: E2 17 00 8E 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 AF [20:23:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [20:23:03]wFMCommunicate OK [20:23:03]requested_item fd.num is exist - process it [20:23:03]SAM_PROTO_GetFieldsCounters [20:23:03]wFMCommunicate request_size=4 [20:23:03]MH_SAM_APDU [20:23:03]CAPDU: 80 13 00 00 [20:23:03]Write to MH i2c: E2 08 00 8F 49 80 13 00 00 00 00 00 00 54 [20:23:03]Write i2c OK [20:23:03]MH_I2C_Read... [20:23:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:23:03]Read from MH i2c: E2 [20:23:03]MH_I2C_Read... [20:23:03]Read from MH i2c: E2 62 00 [20:23:03]MH_I2C_Read... [20:23:03]Read from MH i2c: E2 62 00 8F 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 CF E1 01 00 0E 04 04 00 43 01 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 CC [20:23: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 CF E1 01 00 0E 04 04 00 43 01 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 [20:23:03]wFMCommunicate OK [20:23:03]SAM_PROTO_GetFieldsCounters done [20:23:03]requested_item shift.num is exist - process it [20:23:03]requested_item shift.opened is exist - process it [20:23:03]req_shift_opened [20:23:03]FM_GetShiftState [20:23:03]SAM_PROTO_GetShiftState [20:23:03]wFMCommunicate request_size=4 [20:23:03]MH_SAM_APDU [20:23:03]CAPDU: 80 13 01 00 [20:23:03]Write to MH i2c: E2 08 00 90 49 80 13 01 00 00 00 00 00 56 [20:23:03]Write i2c OK [20:23:03]MH_I2C_Read... [20:23:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:23:03]Read from MH i2c: E2 [20:23:03]MH_I2C_Read... [20:23:03]Read from MH i2c: E2 0E 00 [20:23:03]MH_I2C_Read... [20:23:03]Read from MH i2c: E2 0E 00 90 49 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 18 [20:23:03]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [20:23:03]wFMCommunicate OK [20:23:03]SAM_PROTO_GetShiftState done [20:23:03]FM_GetShiftState done [20:23:03]req_shift_opened done [20:23:03]requested_item shift.open_date is exist - process it [20:23:03]req_shift_open_date [20:23:03]req_shift_open_date done [20:23:03]produce_requested_data done [20:23:03]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123343,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [20:23:03]process_action_free print_text [20:23:03]json_value_free [20:23:03]json_value_free done [20:23:03]process_json_proto returns [20:23:03]Send response to host [20:23:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123343,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [20:23:03]free response buf [20:23:03]execute_script done [20:23:03]execute_script returns [20:23:03]free content buf [20:23:03]Sock 9.Close socket [20:23:03]Sock 9.Thread stoped [20:23:05]OFD Sender: No OFD packet to send [20:23:10]OFD Sender: No OFD packet to send [20:23:15]OFD Sender: No OFD packet to send [20:23:20]OFD Sender: No OFD packet to send [20:23:25]OFD Sender: No OFD packet to send [20:23:30]OFD Sender: No OFD packet to send [20:23:34]accept exits with 7 [20:23:34]New connection [20:23:34]New thread 3067395428 created [20:23:34]Thread 3067252068 joined [20:23:34]Waiting for new connection... [20:23:34] Sock 7.Parse request [20:23:34]Sock 7.Check first char [20:23:34]Sock 7.First char is OK [20:23:34]request: POST /json_proto HTTP/1.0 [20:23:34]Method: POST [20:23:34]URL: /json_proto [20:23:34]Method is POST - this is cgi request [20:23:34]url: /json_proto [20:23:34]query_string will be loaded in cgi processing [20:23:34]execute_cgi json_proto POST (null) [20:23:34]execute_cgi path=json_proto method=POST [20:23:34]POST find Content-Length [20:23:34]Host: 172.17.48.197:8080 [20:23:34]Content-Length: 820 [20:23:34]Content-Type: application/json [20:23:34] [20:23:34]POST finish read [20:23:34]Found Content-Length = 820 [20:23:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106311", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:23:34]execute_script... [20:23:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106311", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:23:34]POST & json_proto [20:23:34]process_json_proto [20:23:34]json parsed OK: [20:23:34]protocol is kg_v1.0 [20:23:34]action value=close_receipt [20:23:34]process_action close_receipt [20:23:34]cmd_close_receipt [20:23:34]MH_GetDate [20:23:34]Write to MH i2c: F0 00 00 91 49 C9 [20:23:34]Write i2c OK [20:23:34]MH_I2C_Read... [20:23:34]Read from MH i2c: F0 [20:23:34]MH_I2C_Read... [20:23:34]Read from MH i2c: F0 09 00 [20:23:34]MH_I2C_Read... [20:23:34]Read from MH i2c: F0 09 00 91 49 00 4A DC E4 65 6C AF E3 65 A4 [20:23:34]GetLastDocTimeStamp 1709496045 [20:23:34]current date 1709497418 [20:23:34]FM_GetShiftState [20:23:34]SAM_PROTO_GetShiftState [20:23:34]wFMCommunicate request_size=4 [20:23:34]MH_SAM_APDU [20:23:34]CAPDU: 80 13 01 00 [20:23:34]Write to MH i2c: E2 08 00 92 49 80 13 01 00 00 00 00 00 58 [20:23:34]Write i2c OK [20:23:34]MH_I2C_Read... [20:23:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:23:34]Read from MH i2c: E2 [20:23:34]MH_I2C_Read... [20:23:34]Read from MH i2c: E2 0E 00 [20:23:34]MH_I2C_Read... [20:23:34]Read from MH i2c: E2 0E 00 92 49 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 1A [20:23:34]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [20:23:34]wFMCommunicate OK [20:23:34]SAM_PROTO_GetShiftState done [20:23:34]FM_GetShiftState done [20:23:34]opened in 1709425579 [20:23:34]opened+sec_in_day 1709511979 [20:23:34]quantity*price = 100010 [20:23:34]sum+1 = 100012 [20:23:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.11 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.11 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 201 03.03.2024 20:23 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874798 ФД: 123344 ФПД: 135019572400493 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T202338&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123344&fm=135019572400493&tin=02508201610067®Number=0000000000090573&sum=100011 [20:23:35]StoreToDocumentArchive [20:23:35]shift 323 fd 123344 [20:23:35]save to /storage/0323/doc_00123344 [20:23:35]save last doc name /storage/0323/doc_00123344 to /storage/kkm_last_doc_name [20:23:35]save OK [20:23:35]Clear old archive folders... [20:23:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:23:35]tlvbuf is 00DCAFF0 [20:23:35]SAM_PROTO_ClearQueue [20:23:35]wFMCommunicate request_size=4 [20:23:35]MH_SAM_APDU [20:23:35]CAPDU: 80 09 00 00 [20:23:35]Write to MH i2c: E2 08 00 9F 49 80 09 00 00 00 00 00 00 5A [20:23:35]Write i2c OK [20:23:35]MH_I2C_Read... [20:23:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:23:35]Read from MH i2c: E2 [20:23:35]MH_I2C_Read... [20:23:35]Read from MH i2c: E2 03 00 [20:23:35]MH_I2C_Read... [20:23:35]Read from MH i2c: E2 03 00 9F 49 00 90 00 5C [20:23:35]RAPDU: 90 00 [20:23:35]wFMCommunicate OK [20:23:35]SAM_PROTO_ClearQueue done [20:23:35]KKMCreateOFDPacket [20:23:35]OFDProtocolAddRootSTLVToBuf [20:23:35]FM_MakeSignedData [20:23:35]FM_MakeSignedData [20:23:35]SAM_PROTO_SignData [20:23:35]wFMCommunicate request_size=4 [20:23:35]MH_SAM_APDU [20:23:35]CAPDU: 80 0D 01 02 [20:23:35]Write to MH i2c: E2 08 00 A0 49 80 0D 01 02 00 00 00 00 62 [20:23:35]Write i2c OK [20:23:35]MH_I2C_Read... [20:23:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:23:35]Read from MH i2c: E2 [20:23:35]MH_I2C_Read... [20:23:35]Read from MH i2c: E2 03 00 [20:23:35]MH_I2C_Read... [20:23:35]Read from MH i2c: E2 03 00 A0 49 00 90 00 5D [20:23:35]RAPDU: 90 00 [20:23:35]wFMCommunicate OK [20:23:35]wFMCommunicate request_size=255 [20:23:35]MH_SAM_APDU [20:23:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 4A DC E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 D0 E1 01 00 35 04 06 00 7A [20:23:35]Write to MH i2c: E2 02 01 A1 49 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 4A DC E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 D0 E1 01 00 35 04 06 00 7A 00 00 85 [20:23:35]Write i2c OK [20:23:35]MH_I2C_Read... [20:23:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:23:35]Read from MH i2c: E2 [20:23:35]MH_I2C_Read... [20:23:35]Read from MH i2c: E2 03 00 [20:23:35]MH_I2C_Read... [20:23:35]Read from MH i2c: E2 03 00 A1 49 00 90 00 5E [20:23:35]RAPDU: 90 00 [20:23:35]wFMCommunicate OK [20:23:35]wFMCommunicate request_size=10 [20:23:35]MH_SAM_APDU [20:23:35]CAPDU: 80 0D 02 02 05 CC B1 A6 91 6D [20:23:35]Write to MH i2c: E2 0D 00 A2 49 80 0D 02 02 05 00 CC B1 A6 91 6D 00 00 90 [20:23:35]Write i2c OK [20:23:35]MH_I2C_Read... [20:23:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:23:35]Read from MH i2c: E2 [20:23:35]MH_I2C_Read... [20:23:35]Read from MH i2c: E2 03 00 [20:23:35]MH_I2C_Read... [20:23:35]Read from MH i2c: E2 03 00 A2 49 00 90 00 5F [20:23:35]RAPDU: 90 00 [20:23:35]wFMCommunicate OK [20:23:35]wFMCommunicate request_size=4 [20:23:35]MH_SAM_APDU [20:23:35]CAPDU: 80 0D 03 02 [20:23:35]Write to MH i2c: E2 08 00 A3 49 80 0D 03 02 00 00 00 00 67 [20:23:35]Write i2c OK [20:23:35]MH_I2C_Read... [20:23:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:23:35]Read from MH i2c: E2 [20:23:35]MH_I2C_Read... [20:23:35]Read from MH i2c: E2 0B 00 [20:23:35]MH_I2C_Read... [20:23:35]Read from MH i2c: E2 0B 00 A3 49 00 DF F3 35 AC 3D A1 DA B1 90 00 84 [20:23:35]RAPDU: DF F3 35 AC 3D A1 DA B1 90 00 [20:23:35]wFMCommunicate OK [20:23:35]SAM_PROTO_SignData done [20:23:35]FM_MakeSignedData done [20:23:35]CreateOFDProtocolMessage [20:23:35]wFMCommunicate request_size=4 [20:23:35]MH_SAM_APDU [20:23:35]CAPDU: 80 11 00 00 [20:23:35]Write to MH i2c: E2 08 00 A4 49 80 11 00 00 00 00 00 00 67 [20:23:35]Write i2c OK [20:23:35]MH_I2C_Read... [20:23:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:23:35]Read from MH i2c: E2 [20:23:35]MH_I2C_Read... [20:23:35]Read from MH i2c: E2 17 00 [20:23:35]MH_I2C_Read... [20:23:35]Read from MH i2c: E2 17 00 A4 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 C5 [20:23:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [20:23:35]wFMCommunicate OK [20:23:35]CreateOFDProtocolMessage done [20:23:35]OFDSenderStorePacket 123344 [20:23:35]StoreOFDPacket docnum=123344 [20:23:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 3D A9 07 01 AE 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 4A DC E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 D0 E1 01 00 35 04 06 00 7A CC B1 A6 91 6D DF F3 35 AC 3D A1 DA B1 [20:23:35]CheckFolder [20:23:35]dirname=/storage/ofd_packets [20:23:35]CheckFolder done [20:23:35]ProducePacketName [20:23:35]name=ofd_packets/00123344 [20:23:35]NVStorageSaveData ofd_packets/00123344 [20:23:35]File name is /storage/ofd_packets/00123344 [20:23:35]Write 301 bytes [20:23:35]NVStorageSaveData done [20:23:35]OFDSenderStorePacket done [20:23:35]KKMCreateOFDPacket done [20:23:35]NVStorageSaveData kkm_last_timestamp [20:23:35]File name is /storage/kkm_last_timestamp [20:23:35]Write 4 bytes [20:23:35]NVStorageSaveData done [20:23:35]ExternCall_PrintAddStr [20:23:35]wPrintStart [20:23:35]Write to MH i2c: 01 00 00 A5 49 EE [20:23:35]Write i2c OK [20:23:35]MH_I2C_Read... [20:23:35]Read from MH i2c: 01 [20:23:35]MH_I2C_Read... [20:23:35]Read from MH i2c: 01 07 00 [20:23:35]MH_I2C_Read... [20:23:35]Read from MH i2c: 01 07 00 A5 49 00 00 00 00 00 FF 0F 03 [20:23:35]RasterBufferAndPrint [20:23:35]line Счет N : (1)1106311 [20:23:35]line ИНН: 02508201610067 [20:23:35]line Контрольно-Кассовый Чек [20:23:35]line ПРОДАЖА [20:23:35]line ТРК (МРК, ГНК) : 13 [20:23:35]line Товар: 2710124500 [20:23:35]line Аи-95-К-5 [20:23:35]line 14.390 * 69.50 [20:23:35]line = 1000.11 [20:23:35]line НДС 12% НСП 1% [20:23:35]line > о реализуемом товаре [20:23:35]line ИТОГО: 1000.11 [20:23:35]line НСП 1% : 8.85 [20:23:35]line НДС 12% : 106.21 [20:23:35]line Наличными: 0.00 [20:23:35]line Безнал.: 1000.11 [20:23:35]line Место: АЗС № 25 "Партнер Нефть" [20:23:35]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [20:23:35]line СНО: Общий режим [20:23:35]line Чек 201 03.03.2024 20:23 [20:23:35]line Смена: 323 ФФД: 1.0 [20:23:35]line ЗНМ: 0300000019 [20:23:35]line РНМ: 0000000000090573 [20:23:35]line Версия ККМ: 001 [20:23:35]line Платежная система: Бакай Банк [20:23:35]line ФМ: 0000000000874798 [20:23:35]line ФД: 123344 [20:23:35]line ФПД: 135019572400493 [20:23:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T202338&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123344&fm=135019572400493&tin=02508201610067®Number=0000000000090573&sum=100011 [20:23:36]OFD Sender: Processing packet 123344 [packets to send 112, broken 111] [20:23:36]ProducePacketName [20:23:36]name=ofd_packets/00123344 [20:23:36]OFD Sender: To server: pG, [20:23:36]CommunicateWithHost lk.salyk.kg:30040 [20:23:36]ConnectInit lk.salyk.kg [20:23:36]written 0, free lines is 4095 [20:23:36]Connected sock=11 [20:23: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 37 39 38 0F 01 00 00 3D A9 07 01 AE 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 4A DC E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 D0 E1 01 00 35 04 06 00 7A CC B1 A6 91 6D DF F3 35 AC 3D A1 DA B1 [20:23:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 9D 35 47 00 82 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 37 39 38 10 04 04 00 D0 E1 01 00 F4 03 04 00 75 88 E4 65 B6 04 01 00 00 3A 85 FA 12 9C F7 8C 45 [20:23:36]CommunicateWithHost err = 0 [20:23:36]CheckOFDResponse [20:23:36]1017 (14) - 77093643461234 [20:23:36]1041 (16) - 0000000000874798 [20:23:36]1040 (4) - 123344 [20:23:36]1012 (4) - 03.03.2024 14:25 [20:23:36]1206 (1) - 0 [20:23:36]OFD Sender: Remove packet 123344 [20:23:36]ProducePacketName [20:23:36]name=ofd_packets/00123344 [20:23:36]NVStorageDeleteData [20:23:36]Write to MH i2c: 01 00 00 CF 49 18 [20:23:36]Write i2c OK [20:23:36]MH_I2C_Read... [20:23:36]Read from MH i2c: 01 [20:23:36]MH_I2C_Read... [20:23:36]Read from MH i2c: 01 07 00 [20:23:36]MH_I2C_Read... [20:23:36]Read from MH i2c: 01 07 00 CF 49 00 00 00 00 00 08 0D 34 [20:23:36]RasterBufferAndPrint [20:23:36]line [20:23:36]line [20:23:36]line [20:23:36]line [20:23:36]line [20:23:36]written 0, free lines is 3342 [20:23:36]MH_Cut [20:23:36]Write to MH i2c: D1 01 00 D6 49 01 F1 [20:23:36]Write i2c OK [20:23:36]MH_I2C_Read... [20:23:36]Read from MH i2c: D1 [20:23:36]MH_I2C_Read... [20:23:36]Read from MH i2c: D1 01 00 [20:23:36]MH_I2C_Read... [20:23:36]Read from MH i2c: D1 01 00 D6 49 00 F0 [20:23:36]Write to MH i2c: 01 00 00 D7 49 20 [20:23:36]Write i2c OK [20:23:36]MH_I2C_Read... [20:23:36]OFD Sender: No OFD packet to send [20:23:37]*** Cut start [20:23:37]*** Purtial cut [20:23:37]*** Stage 1: CUTSNS_PIN = 1 [20:23:39]Read from MH i2c: 01 [20:23:39]MH_I2C_Read... [20:23:39]*** Stop cut motor [20:23:39]*** Cut end [20:23:39]Read from MH i2c: 01 07 00 [20:23:39]MH_I2C_Read... [20:23:39]Read from MH i2c: 01 07 00 D7 49 00 00 00 00 00 FF 0F 35 [20:23:39]process_action close_receipt done [20:23:39]requested_data is exist [20:23:39]produce_requested_data [20:23:39]requested_item fm.sn is exist - process it [20:23:39]wFMCommunicate request_size=4 [20:23:39]MH_SAM_APDU [20:23:39]CAPDU: 80 11 00 00 [20:23:39]Write to MH i2c: E2 08 00 D8 49 80 11 00 00 00 00 00 00 9B [20:23:39]Write i2c OK [20:23:39]MH_I2C_Read... [20:23:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:23:39]Read from MH i2c: E2 [20:23:39]MH_I2C_Read... [20:23:39]Read from MH i2c: E2 17 00 [20:23:39]MH_I2C_Read... [20:23:39]Read from MH i2c: E2 17 00 D8 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 F9 [20:23:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [20:23:39]wFMCommunicate OK [20:23:39]requested_item fd.num is exist - process it [20:23:39]SAM_PROTO_GetFieldsCounters [20:23:39]wFMCommunicate request_size=4 [20:23:39]MH_SAM_APDU [20:23:39]CAPDU: 80 13 00 00 [20:23:39]Write to MH i2c: E2 08 00 D9 49 80 13 00 00 00 00 00 00 9E [20:23:39]Write i2c OK [20:23:39]MH_I2C_Read... [20:23:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:23:39]Read from MH i2c: E2 [20:23:39]MH_I2C_Read... [20:23:39]Read from MH i2c: E2 62 00 [20:23:39]MH_I2C_Read... [20:23:39]Read from MH i2c: E2 62 00 D9 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 D0 E1 01 00 0E 04 04 00 43 01 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 1A [20:23: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 D0 E1 01 00 0E 04 04 00 43 01 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 [20:23:39]wFMCommunicate OK [20:23:39]SAM_PROTO_GetFieldsCounters done [20:23:39]requested_item shift.num is exist - process it [20:23:39]requested_item shift.opened is exist - process it [20:23:39]req_shift_opened [20:23:39]FM_GetShiftState [20:23:39]SAM_PROTO_GetShiftState [20:23:39]wFMCommunicate request_size=4 [20:23:39]MH_SAM_APDU [20:23:39]CAPDU: 80 13 01 00 [20:23:39]Write to MH i2c: E2 08 00 DA 49 80 13 01 00 00 00 00 00 A0 [20:23:39]Write i2c OK [20:23:39]MH_I2C_Read... [20:23:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:23:39]Read from MH i2c: E2 [20:23:39]MH_I2C_Read... [20:23:39]Read from MH i2c: E2 0E 00 [20:23:39]MH_I2C_Read... [20:23:39]Read from MH i2c: E2 0E 00 DA 49 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 62 [20:23:39]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [20:23:39]wFMCommunicate OK [20:23:39]SAM_PROTO_GetShiftState done [20:23:39]FM_GetShiftState done [20:23:39]req_shift_opened done [20:23:39]requested_item shift.open_date is exist - process it [20:23:39]req_shift_open_date [20:23:39]req_shift_open_date done [20:23:39]produce_requested_data done [20:23:39]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123344,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [20:23:39]process_action_free close_receipt [20:23:39]json_value_free [20:23:39]json_value_free done [20:23:39]process_json_proto returns [20:23:39]Send response to host [20:23:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123344,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [20:23:39]free response buf [20:23:39]execute_script done [20:23:39]execute_script returns [20:23:39]free content buf [20:23:39]Sock 7.Close socket [20:23:39]Sock 7.Thread stoped [20:23:41]OFD Sender: No OFD packet to send [20:23:46]OFD Sender: No OFD packet to send [20:23:51]OFD Sender: No OFD packet to send [20:23:56]OFD Sender: No OFD packet to send [20:24:01]OFD Sender: No OFD packet to send [20:24:06]OFD Sender: No OFD packet to send [20:24:11]OFD Sender: No OFD packet to send [20:24:16]OFD Sender: No OFD packet to send [20:24:21]OFD Sender: No OFD packet to send [20:24:26]OFD Sender: No OFD packet to send [20:24:31]OFD Sender: No OFD packet to send [20:24:36]OFD Sender: No OFD packet to send [20:24:39]accept exits with 9 [20:24:39]New connection [20:24:39]New thread 3067252068 created [20:24:39]Thread 3067395428 joined [20:24:39]Waiting for new connection... [20:24:39] Sock 9.Parse request [20:24:39]Sock 9.Check first char [20:24:39]Sock 9.First char is OK [20:24:39]request: POST /json_proto HTTP/1.0 [20:24:39]Method: POST [20:24:39]URL: /json_proto [20:24:39]Method is POST - this is cgi request [20:24:39]url: /json_proto [20:24:39]query_string will be loaded in cgi processing [20:24:39]execute_cgi json_proto POST (null) [20:24:39]execute_cgi path=json_proto method=POST [20:24:39]POST find Content-Length [20:24:39]Host: 172.17.48.197:8080 [20:24:39]Content-Length: 1217 [20:24:39]Content-Type: application/json [20:24:39] [20:24:39]POST finish read [20:24:39]Found Content-Length = 1217 [20:24:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106312\u000A03.03.2024 20:20\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 619.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3860775\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:24:39]execute_script... [20:24:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106312\u000A03.03.2024 20:20\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 619.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3860775\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:24:39]POST & json_proto [20:24:39]process_json_proto [20:24:39]json parsed OK: [20:24:39]protocol is kg_v1.0 [20:24:39]action value=print_text [20:24:39]process_action print_text [20:24:39]cmd_print_text [20:24:39]ExternCall_PrintAddStr [20:24:39]wPrintStart [20:24:39]Write to MH i2c: 01 00 00 DB 49 24 [20:24:39]Write i2c OK [20:24:39]MH_I2C_Read... [20:24:39]Read from MH i2c: 01 [20:24:39]MH_I2C_Read... [20:24:39]Read from MH i2c: 01 07 00 [20:24:39]MH_I2C_Read... [20:24:39]Read from MH i2c: 01 07 00 DB 49 00 00 00 00 00 FF 0F 39 [20:24:39]RasterBufferAndPrint [20:24:39]line *****ТОВАРНЫЙ ЧЕК***** [20:24:39]line АЗС 25 [20:24:39]line Партнер нефть [20:24:39]line 02508201610067 [20:24:39]line Кассир : Турдумбек у. К. [20:24:39]line Счет N : (1)1106312 [20:24:39]line 03.03.2024 20:20 [20:24:39]line ПРОДАЖА [20:24:39]line ТРК (МРК, ГНК): 32 [20:24:39]line Вид ГСМ : 2710124130 [20:24:39]line Аи-92-К-5 [20:24:39]line 10.000 x 61.90 [20:24:39]line ИТОГ: 619.00 [20:24:39]line Тип оплаты: Талоны: Топливные Талоны [20:24:39]line 3860775 [20:24:39]line ______________________ [20:24:39]line (подпись) [20:24:39]written 0, free lines is 4095 [20:24:39]Write to MH i2c: 01 00 00 F0 49 39 [20:24:39]Write i2c OK [20:24:39]MH_I2C_Read... [20:24:39]Read from MH i2c: 01 [20:24:39]MH_I2C_Read... [20:24:39]Read from MH i2c: 01 07 00 [20:24:39]MH_I2C_Read... [20:24:39]Read from MH i2c: 01 07 00 F0 49 00 00 00 00 00 F6 0D 43 [20:24:39]RasterBufferAndPrint [20:24:39]line [20:24:39]line [20:24:39]line [20:24:39]line [20:24:39]line [20:24:39]written 0, free lines is 3576 [20:24:39]MH_Cut [20:24:39]Write to MH i2c: D1 01 00 F7 49 01 12 [20:24:39]Write i2c OK [20:24:39]MH_I2C_Read... [20:24:39]Read from MH i2c: D1 [20:24:39]MH_I2C_Read... [20:24:39]Read from MH i2c: D1 01 00 [20:24:39]MH_I2C_Read... [20:24:39]Read from MH i2c: D1 01 00 F7 49 00 11 [20:24:39]Write to MH i2c: 01 00 00 F8 49 41 [20:24:39]Write i2c OK [20:24:39]MH_I2C_Read... [20:24:40]*** Cut start [20:24:40]*** Purtial cut [20:24:40]*** Stage 1: CUTSNS_PIN = 1 [20:24:41]OFD Sender: No OFD packet to send [20:24:42]Read from MH i2c: 01 [20:24:42]MH_I2C_Read... [20:24:42]*** Stop cut motor [20:24:42]*** Cut end [20:24:42]Read from MH i2c: 01 07 00 [20:24:42]MH_I2C_Read... [20:24:42]Read from MH i2c: 01 07 00 F8 49 00 00 00 00 00 FF 0F 56 [20:24:42]process_action print_text done [20:24:42]requested_data is exist [20:24:42]produce_requested_data [20:24:42]requested_item fm.sn is exist - process it [20:24:42]wFMCommunicate request_size=4 [20:24:42]MH_SAM_APDU [20:24:42]CAPDU: 80 11 00 00 [20:24:42]Write to MH i2c: E2 08 00 F9 49 80 11 00 00 00 00 00 00 BC [20:24:42]Write i2c OK [20:24:42]MH_I2C_Read... [20:24:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:24:42]Read from MH i2c: E2 [20:24:42]MH_I2C_Read... [20:24:42]Read from MH i2c: E2 17 00 [20:24:42]MH_I2C_Read... [20:24:42]Read from MH i2c: E2 17 00 F9 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 1A [20:24:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [20:24:42]wFMCommunicate OK [20:24:42]requested_item fd.num is exist - process it [20:24:42]SAM_PROTO_GetFieldsCounters [20:24:42]wFMCommunicate request_size=4 [20:24:42]MH_SAM_APDU [20:24:42]CAPDU: 80 13 00 00 [20:24:42]Write to MH i2c: E2 08 00 FA 49 80 13 00 00 00 00 00 00 BF [20:24:42]Write i2c OK [20:24:42]MH_I2C_Read... [20:24:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:24:42]Read from MH i2c: E2 [20:24:42]MH_I2C_Read... [20:24:42]Read from MH i2c: E2 62 00 [20:24:42]MH_I2C_Read... [20:24:42]Read from MH i2c: E2 62 00 FA 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 D0 E1 01 00 0E 04 04 00 43 01 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 3B [20:24: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 D0 E1 01 00 0E 04 04 00 43 01 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 [20:24:42]wFMCommunicate OK [20:24:42]SAM_PROTO_GetFieldsCounters done [20:24:42]requested_item shift.num is exist - process it [20:24:42]requested_item shift.opened is exist - process it [20:24:42]req_shift_opened [20:24:42]FM_GetShiftState [20:24:42]SAM_PROTO_GetShiftState [20:24:42]wFMCommunicate request_size=4 [20:24:42]MH_SAM_APDU [20:24:42]CAPDU: 80 13 01 00 [20:24:42]Write to MH i2c: E2 08 00 FB 49 80 13 01 00 00 00 00 00 C1 [20:24:42]Write i2c OK [20:24:42]MH_I2C_Read... [20:24:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:24:42]Read from MH i2c: E2 [20:24:42]MH_I2C_Read... [20:24:42]Read from MH i2c: E2 0E 00 [20:24:42]MH_I2C_Read... [20:24:42]Read from MH i2c: E2 0E 00 FB 49 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 83 [20:24:42]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [20:24:42]wFMCommunicate OK [20:24:42]SAM_PROTO_GetShiftState done [20:24:42]FM_GetShiftState done [20:24:42]req_shift_opened done [20:24:42]requested_item shift.open_date is exist - process it [20:24:42]req_shift_open_date [20:24:42]req_shift_open_date done [20:24:42]produce_requested_data done [20:24:42]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123344,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [20:24:42]process_action_free print_text [20:24:42]json_value_free [20:24:42]json_value_free done [20:24:42]process_json_proto returns [20:24:42]Send response to host [20:24:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123344,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [20:24:42]free response buf [20:24:42]execute_script done [20:24:42]execute_script returns [20:24:42]free content buf [20:24:42]Sock 9.Close socket [20:24:42]Sock 9.Thread stoped [20:24:46]OFD Sender: No OFD packet to send [20:24:51]OFD Sender: No OFD packet to send [20:24:56]OFD Sender: No OFD packet to send [20:24:58]int [20:24:58]Write to MH i2c: 01 00 00 FC 49 45 [20:24:58]*** FLAG_PRN_KEY set [20:24:58]Write i2c OK [20:24:58]MH_I2C_Read... [20:24:58]Read from MH i2c: 01 [20:24:58]MH_I2C_Read... [20:24:58]Read from MH i2c: 01 07 00 [20:24:58]MH_I2C_Read... [20:24:58]Read from MH i2c: 01 07 00 FC 49 00 08 00 00 00 FF 0F 62 [20:24:58]state=0 [20:24:58]Key pressed [20:24:58]Feed [20:24:58]Write to MH i2c: D8 00 00 FD 49 1D [20:24:58]Write i2c OK [20:24:58]MH_I2C_Read... [20:24:58]Read from MH i2c: D8 [20:24:58]MH_I2C_Read... [20:24:58]Read from MH i2c: D8 01 00 [20:24:58]MH_I2C_Read... [20:24:58]Read from MH i2c: D8 01 00 FD 49 00 1E [20:24:58]int [20:24:58]Write to MH i2c: 01 00 00 FE 49 47 [20:24:58]Write i2c OK [20:24:58]MH_I2C_Read... [20:24:58]Read from MH i2c: 01 [20:24:58]MH_I2C_Read... [20:24:58]Read from MH i2c: 01 07 00 [20:24:58]MH_I2C_Read... [20:24:58]Read from MH i2c: 01 07 00 FE 49 00 48 00 00 00 3C 00 D2 [20:24:58]state=2 [20:24:58]Key pressed [20:24:58]int [20:24:58]Write to MH i2c: 01 00 00 FF 49 48 [20:24:58]*** FLAG_PRN_KEY reset [20:24:58]Write i2c OK [20:24:58]MH_I2C_Read... [20:24:58]Read from MH i2c: 01 [20:24:58]MH_I2C_Read... [20:24:58]Read from MH i2c: 01 07 00 [20:24:58]MH_I2C_Read... [20:24:58]Read from MH i2c: 01 07 00 FF 49 00 00 00 00 00 F8 0F 56 [20:24:58]state=2 [20:24:58]Stop feed [20:25:01]OFD Sender: No OFD packet to send [20:25:04]accept exits with 7 [20:25:04]New connection [20:25:04]New thread 3067395428 created [20:25:04]Thread 3067252068 joined [20:25:04]Waiting for new connection... [20:25:04] Sock 7.Parse request [20:25:04]Sock 7.Check first char [20:25:04]Sock 7.First char is OK [20:25:04]request: POST /json_proto HTTP/1.0 [20:25:04]Method: POST [20:25:04]URL: /json_proto [20:25:04]Method is POST - this is cgi request [20:25:04]url: /json_proto [20:25:04]query_string will be loaded in cgi processing [20:25:04]execute_cgi json_proto POST (null) [20:25:04]execute_cgi path=json_proto method=POST [20:25:04]POST find Content-Length [20:25:04]Host: 172.17.48.197:8080 [20:25:04]Content-Length: 678 [20:25:04]Content-Type: application/json [20:25:04] [20:25:04]POST finish read [20:25:04]Found Content-Length = 678 [20:25:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106313", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 3.240, "sum" : 200.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:25:04]execute_script... [20:25: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)1106313", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 3.240, "sum" : 200.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:25:04]POST & json_proto [20:25:04]process_json_proto [20:25:04]json parsed OK: [20:25:04]protocol is kg_v1.0 [20:25:04]action value=close_receipt [20:25:04]process_action close_receipt [20:25:04]cmd_close_receipt [20:25:04]MH_GetDate [20:25:04]Write to MH i2c: F0 00 00 00 4A 39 [20:25:04]Write i2c OK [20:25:04]MH_I2C_Read... [20:25:04]Read from MH i2c: F0 [20:25:04]MH_I2C_Read... [20:25:04]Read from MH i2c: F0 09 00 [20:25:04]MH_I2C_Read... [20:25:04]Read from MH i2c: F0 09 00 00 4A 00 A5 DC E4 65 6C AF E3 65 6F [20:25:04]GetLastDocTimeStamp 1709497418 [20:25:04]current date 1709497509 [20:25:04]FM_GetShiftState [20:25:04]SAM_PROTO_GetShiftState [20:25:04]wFMCommunicate request_size=4 [20:25:04]MH_SAM_APDU [20:25:04]CAPDU: 80 13 01 00 [20:25:04]Write to MH i2c: E2 08 00 01 4A 80 13 01 00 00 00 00 00 C8 [20:25:04]Write i2c OK [20:25:04]MH_I2C_Read... [20:25:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:25:04]Read from MH i2c: E2 [20:25:04]MH_I2C_Read... [20:25:04]Read from MH i2c: E2 0E 00 [20:25:04]MH_I2C_Read... [20:25:04]Read from MH i2c: E2 0E 00 01 4A 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 8A [20:25:04]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [20:25:04]wFMCommunicate OK [20:25:04]SAM_PROTO_GetShiftState done [20:25:04]FM_GetShiftState done [20:25:04]opened in 1709425579 [20:25:04]opened+sec_in_day 1709511979 [20:25:04]quantity*price = 20055 [20:25:04]sum+1 = 20057 [20:25:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.30 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 202 03.03.2024 20:25 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123345 ФПД: 75075406079420 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T202509&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123345&fm=75075406079420&tin=02508201610067®Number=0000000000090573&sum=20000 [20:25:06]StoreToDocumentArchive [20:25:06]shift 323 fd 123345 [20:25:06]save to /storage/0323/doc_00123345 [20:25:06]save last doc name /storage/0323/doc_00123345 to /storage/kkm_last_doc_name [20:25:06]save OK [20:25:06]Clear old archive folders... [20:25:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:25:06]tlvbuf is 00DFCA80 [20:25:06]SAM_PROTO_ClearQueue [20:25:06]wFMCommunicate request_size=4 [20:25:06]MH_SAM_APDU [20:25:06]CAPDU: 80 09 00 00 [20:25:06]Write to MH i2c: E2 08 00 0E 4A 80 09 00 00 00 00 00 00 CA [20:25:06]Write i2c OK [20:25:06]MH_I2C_Read... [20:25:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:25:06]Read from MH i2c: E2 [20:25:06]MH_I2C_Read... [20:25:06]Read from MH i2c: E2 03 00 [20:25:06]MH_I2C_Read... [20:25:06]Read from MH i2c: E2 03 00 0E 4A 00 90 00 CC [20:25:06]RAPDU: 90 00 [20:25:06]wFMCommunicate OK [20:25:06]SAM_PROTO_ClearQueue done [20:25:06]KKMCreateOFDPacket [20:25:06]OFDProtocolAddRootSTLVToBuf [20:25:06]FM_MakeSignedData [20:25:06]FM_MakeSignedData [20:25:06]SAM_PROTO_SignData [20:25:06]wFMCommunicate request_size=4 [20:25:06]MH_SAM_APDU [20:25:06]CAPDU: 80 0D 01 02 [20:25:06]Write to MH i2c: E2 08 00 0F 4A 80 0D 01 02 00 00 00 00 D2 [20:25:06]Write i2c OK [20:25:06]MH_I2C_Read... [20:25:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:25:06]Read from MH i2c: E2 [20:25:06]MH_I2C_Read... [20:25:06]Read from MH i2c: E2 03 00 [20:25:06]MH_I2C_Read... [20:25:06]Read from MH i2c: E2 03 00 0F 4A 00 90 00 CD [20:25:06]RAPDU: 90 00 [20:25:06]wFMCommunicate OK [20:25:06]wFMCommunicate request_size=255 [20:25:06]MH_SAM_APDU [20:25: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 35 FF 03 08 00 03 A8 0C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 58 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 52 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 CA 00 00 00 F4 03 04 00 A5 DC E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 D1 E1 01 00 35 04 06 00 44 [20:25:06]Write to MH i2c: E2 02 01 10 4A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 0C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 58 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 52 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 CA 00 00 00 F4 03 04 00 A5 DC E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 D1 E1 01 00 35 04 06 00 44 00 00 3C [20:25:06]Write i2c OK [20:25:06]MH_I2C_Read... [20:25:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:25:06]Read from MH i2c: E2 [20:25:06]MH_I2C_Read... [20:25:06]Read from MH i2c: E2 03 00 [20:25:06]MH_I2C_Read... [20:25:06]Read from MH i2c: E2 03 00 10 4A 00 90 00 CE [20:25:06]RAPDU: 90 00 [20:25:06]wFMCommunicate OK [20:25:06]wFMCommunicate request_size=10 [20:25:06]MH_SAM_APDU [20:25:06]CAPDU: 80 0D 02 02 05 47 DA E9 25 BC [20:25:06]Write to MH i2c: E2 0D 00 11 4A 80 0D 02 02 05 00 47 DA E9 25 BC 00 00 CA [20:25:06]Write i2c OK [20:25:06]MH_I2C_Read... [20:25:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:25:06]Read from MH i2c: E2 [20:25:06]MH_I2C_Read... [20:25:06]Read from MH i2c: E2 03 00 [20:25:06]MH_I2C_Read... [20:25:06]Read from MH i2c: E2 03 00 11 4A 00 90 00 CF [20:25:06]RAPDU: 90 00 [20:25:06]wFMCommunicate OK [20:25:06]wFMCommunicate request_size=4 [20:25:06]MH_SAM_APDU [20:25:06]CAPDU: 80 0D 03 02 [20:25:06]Write to MH i2c: E2 08 00 12 4A 80 0D 03 02 00 00 00 00 D7 [20:25:06]Write i2c OK [20:25:06]MH_I2C_Read... [20:25:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:25:06]Read from MH i2c: E2 [20:25:06]MH_I2C_Read... [20:25:06]Read from MH i2c: E2 0B 00 [20:25:06]MH_I2C_Read... [20:25:06]Read from MH i2c: E2 0B 00 12 4A 00 BB 86 AB 59 70 04 24 1F 90 00 D4 [20:25:06]RAPDU: BB 86 AB 59 70 04 24 1F 90 00 [20:25:06]wFMCommunicate OK [20:25:06]SAM_PROTO_SignData done [20:25:06]FM_MakeSignedData done [20:25:06]CreateOFDProtocolMessage [20:25:06]wFMCommunicate request_size=4 [20:25:06]MH_SAM_APDU [20:25:06]CAPDU: 80 11 00 00 [20:25:06]Write to MH i2c: E2 08 00 13 4A 80 11 00 00 00 00 00 00 D7 [20:25:06]Write i2c OK [20:25:06]MH_I2C_Read... [20:25:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:25:06]Read from MH i2c: E2 [20:25:06]MH_I2C_Read... [20:25:06]Read from MH i2c: E2 17 00 [20:25:06]MH_I2C_Read... [20:25:06]Read from MH i2c: E2 17 00 13 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 35 [20:25:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [20:25:06]wFMCommunicate OK [20:25:06]CreateOFDProtocolMessage done [20:25:06]OFDSenderStorePacket 123345 [20:25:06]StoreOFDPacket docnum=123345 [20:25:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 92 0F 07 01 11 58 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 0C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 58 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 52 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 CA 00 00 00 F4 03 04 00 A5 DC E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 D1 E1 01 00 35 04 06 00 44 47 DA E9 25 BC BB 86 AB 59 70 04 24 1F [20:25:06]CheckFolder [20:25:06]dirname=/storage/ofd_packets [20:25:06]CheckFolder done [20:25:06]ProducePacketName [20:25:06]name=ofd_packets/00123345 [20:25:06]NVStorageSaveData ofd_packets/00123345 [20:25:06]File name is /storage/ofd_packets/00123345 [20:25:06]Write 301 bytes [20:25:06]NVStorageSaveData done [20:25:06]OFDSenderStorePacket done [20:25:06]KKMCreateOFDPacket done [20:25:06]NVStorageSaveData kkm_last_timestamp [20:25:06]File name is /storage/kkm_last_timestamp [20:25:06]Write 4 bytes [20:25:06]NVStorageSaveData done [20:25:06]ExternCall_PrintAddStr [20:25:06]wPrintStart [20:25:06]Write to MH i2c: 01 00 00 14 4A 5E [20:25:06]Write i2c OK [20:25:06]MH_I2C_Read... [20:25:06]Read from MH i2c: 01 [20:25:06]MH_I2C_Read... [20:25:06]Read from MH i2c: 01 07 00 [20:25:06]MH_I2C_Read... [20:25:06]Read from MH i2c: 01 07 00 14 4A 00 00 00 00 00 FF 0F 73 [20:25:06]RasterBufferAndPrint [20:25:06]line Счет N : (1)1106313 [20:25:06]line ИНН: 02508201610067 [20:25:06]line Контрольно-Кассовый Чек [20:25:06]line ПРОДАЖА [20:25:06]line ТРК (МРК, ГНК) : 32 [20:25:06]line Товар: 2710124130 [20:25:06]line Аи-92-К-5 [20:25:06]line 3.240 * 61.90 [20:25:06]line = 200.56 [20:25:06]line НДС 12% НСП 1% [20:25:06]line > о реализуемом товаре [20:25:06]line ОКРУГЛЕНИЕ: -0.56 [20:25:06]line ИТОГО: 200.00 [20:25:06]line Внесено: 200.00 [20:25:06]line СДАЧА: 0.00 [20:25:06]line НСП 1% : 1.77 [20:25:06]line НДС 12% : 21.30 [20:25:06]line Наличными: 200.00 [20:25:06]line Безнал.: 0.00 [20:25:06]line Место: АЗС № 25 "Партнер Нефть" [20:25:06]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [20:25:06]line СНО: Общий режим [20:25:06]line Чек 202 03.03.2024 20:25 [20:25:06]line Смена: 323 ФФД: 1.0 [20:25:06]line ЗНМ: 0300000019 [20:25:06]line РНМ: 0000000000090573 [20:25:06]line Версия ККМ: 001 [20:25:06]line ФМ: 0000000000874798 [20:25:06]line ФД: 123345 [20:25:06]line ФПД: 75075406079420 [20:25:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T202509&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123345&fm=75075406079420&tin=02508201610067®Number=0000000000090573&sum=20000 [20:25:06]OFD Sender: Processing packet 123345 [packets to send 112, broken 111] [20:25:06]ProducePacketName [20:25:06]name=ofd_packets/00123345 [20:25:06]OFD Sender: To server: pG, [20:25:06]CommunicateWithHost lk.salyk.kg:30040 [20:25:07]ConnectInit lk.salyk.kg [20:25:07]written 0, free lines is 4095 [20:25:07]Connected sock=10 [20:25: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 37 39 38 0F 01 00 00 92 0F 07 01 11 58 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 0C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 58 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 52 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 CA 00 00 00 F4 03 04 00 A5 DC E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 D1 E1 01 00 35 04 06 00 44 47 DA E9 25 BC BB 86 AB 59 70 04 24 1F [20:25:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 72 FD 47 00 81 21 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 D1 E1 01 00 F4 03 04 00 D0 88 E4 65 B6 04 01 00 00 AD AA 0E 5E 80 DC BB 39 [20:25:07]CommunicateWithHost err = 0 [20:25:07]CheckOFDResponse [20:25:07]1017 (14) - 77093643461234 [20:25:07]1041 (16) - 0000000000874798 [20:25:07]1040 (4) - 123345 [20:25:07]1012 (4) - 03.03.2024 14:27 [20:25:07]1206 (1) - 0 [20:25:07]OFD Sender: Remove packet 123345 [20:25:07]ProducePacketName [20:25:07]name=ofd_packets/00123345 [20:25:07]NVStorageDeleteData [20:25:07]Write to MH i2c: 01 00 00 3F 4A 89 [20:25:07]Write i2c OK [20:25:07]MH_I2C_Read... [20:25:07]Read from MH i2c: 01 [20:25:07]MH_I2C_Read... [20:25:07]Read from MH i2c: 01 07 00 [20:25:07]MH_I2C_Read... [20:25:07]Read from MH i2c: 01 07 00 3F 4A 00 00 00 00 00 F9 0C 95 [20:25:07]RasterBufferAndPrint [20:25:07]line [20:25:07]line [20:25:07]line [20:25:07]line [20:25:07]line [20:25:07]written 0, free lines is 3330 [20:25:07]MH_Cut [20:25:07]Write to MH i2c: D1 01 00 46 4A 01 62 [20:25:07]Write i2c OK [20:25:07]MH_I2C_Read... [20:25:07]Read from MH i2c: D1 [20:25:07]MH_I2C_Read... [20:25:07]Read from MH i2c: D1 01 00 [20:25:07]MH_I2C_Read... [20:25:07]Read from MH i2c: D1 01 00 46 4A 00 61 [20:25:07]Write to MH i2c: 01 00 00 47 4A 91 [20:25:07]Write i2c OK [20:25:07]MH_I2C_Read... [20:25:07]OFD Sender: No OFD packet to send [20:25:08]*** Cut start [20:25:08]*** Purtial cut [20:25:08]*** Stage 1: CUTSNS_PIN = 1 [20:25:10]Read from MH i2c: 01 [20:25:10]MH_I2C_Read... [20:25:10]*** Stop cut motor [20:25:10]*** Cut end [20:25:10]Read from MH i2c: 01 07 00 [20:25:10]MH_I2C_Read... [20:25:10]Read from MH i2c: 01 07 00 47 4A 00 00 00 00 00 FF 0F A6 [20:25:10]process_action close_receipt done [20:25:10]requested_data is exist [20:25:10]produce_requested_data [20:25:10]requested_item fm.sn is exist - process it [20:25:10]wFMCommunicate request_size=4 [20:25:10]MH_SAM_APDU [20:25:10]CAPDU: 80 11 00 00 [20:25:10]Write to MH i2c: E2 08 00 48 4A 80 11 00 00 00 00 00 00 0C [20:25:10]Write i2c OK [20:25:10]MH_I2C_Read... [20:25:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:25:10]Read from MH i2c: E2 [20:25:10]MH_I2C_Read... [20:25:10]Read from MH i2c: E2 17 00 [20:25:10]MH_I2C_Read... [20:25:10]Read from MH i2c: E2 17 00 48 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 6A [20:25:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [20:25:10]wFMCommunicate OK [20:25:10]requested_item fd.num is exist - process it [20:25:10]SAM_PROTO_GetFieldsCounters [20:25:10]wFMCommunicate request_size=4 [20:25:10]MH_SAM_APDU [20:25:10]CAPDU: 80 13 00 00 [20:25:10]Write to MH i2c: E2 08 00 49 4A 80 13 00 00 00 00 00 00 0F [20:25:10]Write i2c OK [20:25:10]MH_I2C_Read... [20:25:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:25:10]Read from MH i2c: E2 [20:25:10]MH_I2C_Read... [20:25:10]Read from MH i2c: E2 62 00 [20:25:10]MH_I2C_Read... [20:25:10]Read from MH i2c: E2 62 00 49 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 D1 E1 01 00 0E 04 04 00 43 01 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 8F [20:25: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 D1 E1 01 00 0E 04 04 00 43 01 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 [20:25:10]wFMCommunicate OK [20:25:10]SAM_PROTO_GetFieldsCounters done [20:25:10]requested_item shift.num is exist - process it [20:25:10]requested_item shift.opened is exist - process it [20:25:10]req_shift_opened [20:25:10]FM_GetShiftState [20:25:10]SAM_PROTO_GetShiftState [20:25:10]wFMCommunicate request_size=4 [20:25:10]MH_SAM_APDU [20:25:10]CAPDU: 80 13 01 00 [20:25:10]Write to MH i2c: E2 08 00 4A 4A 80 13 01 00 00 00 00 00 11 [20:25:10]Write i2c OK [20:25:10]MH_I2C_Read... [20:25:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:25:10]Read from MH i2c: E2 [20:25:10]MH_I2C_Read... [20:25:10]Read from MH i2c: E2 0E 00 [20:25:10]MH_I2C_Read... [20:25:10]Read from MH i2c: E2 0E 00 4A 4A 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 D3 [20:25:10]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [20:25:10]wFMCommunicate OK [20:25:10]SAM_PROTO_GetShiftState done [20:25:10]FM_GetShiftState done [20:25:10]req_shift_opened done [20:25:10]requested_item shift.open_date is exist - process it [20:25:10]req_shift_open_date [20:25:10]req_shift_open_date done [20:25:10]produce_requested_data done [20:25:10]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123345,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [20:25:10]process_action_free close_receipt [20:25:10]json_value_free [20:25:10]json_value_free done [20:25:10]process_json_proto returns [20:25:10]Send response to host [20:25:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123345,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [20:25:10]free response buf [20:25:10]execute_script done [20:25:10]execute_script returns [20:25:10]free content buf [20:25:10]Sock 7.Close socket [20:25:10]Sock 7.Thread stoped [20:25:11]accept exits with 9 [20:25:11]New connection [20:25:11]New thread 3067252068 created [20:25:11]Thread 3067395428 joined [20:25:11]Waiting for new connection... [20:25:11] Sock 9.Parse request [20:25:11]Sock 9.Check first char [20:25:11]Sock 9.First char is OK [20:25:11]request: POST /json_proto HTTP/1.0 [20:25:11]Method: POST [20:25:11]URL: /json_proto [20:25:11]Method is POST - this is cgi request [20:25:11]url: /json_proto [20:25:11]query_string will be loaded in cgi processing [20:25:11]execute_cgi json_proto POST (null) [20:25:11]execute_cgi path=json_proto method=POST [20:25:11]POST find Content-Length [20:25:11]Host: 172.17.48.197:8080 [20:25:11]Content-Length: 735 [20:25:11]Content-Type: application/json [20:25:11] [20:25:11]POST finish read [20:25:11]Found Content-Length = 735 [20:25:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 123345, "base_FM": "0000000000874798", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106313", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 3.240, "sum" : 200.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:25:11]execute_script... [20:25:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 123345, "base_FM": "0000000000874798", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106313", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 3.240, "sum" : 200.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:25:11]POST & json_proto [20:25:11]process_json_proto [20:25:11]json parsed OK: [20:25:11]protocol is kg_v1.0 [20:25:11]action value=close_receipt [20:25:11]process_action close_receipt [20:25:11]cmd_close_receipt [20:25:11]MH_GetDate [20:25:11]Write to MH i2c: F0 00 00 4B 4A 84 [20:25:11]Write i2c OK [20:25:11]MH_I2C_Read... [20:25:11]Read from MH i2c: F0 [20:25:11]MH_I2C_Read... [20:25:11]Read from MH i2c: F0 09 00 [20:25:11]MH_I2C_Read... [20:25:11]Read from MH i2c: F0 09 00 4B 4A 00 AC DC E4 65 6C AF E3 65 C1 [20:25:11]GetLastDocTimeStamp 1709497509 [20:25:11]current date 1709497516 [20:25:11]FM_GetShiftState [20:25:11]SAM_PROTO_GetShiftState [20:25:11]wFMCommunicate request_size=4 [20:25:11]MH_SAM_APDU [20:25:11]CAPDU: 80 13 01 00 [20:25:11]Write to MH i2c: E2 08 00 4C 4A 80 13 01 00 00 00 00 00 13 [20:25:11]Write i2c OK [20:25:11]MH_I2C_Read... [20:25:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:25:11]Read from MH i2c: E2 [20:25:11]MH_I2C_Read... [20:25:11]Read from MH i2c: E2 0E 00 [20:25:11]MH_I2C_Read... [20:25:11]Read from MH i2c: E2 0E 00 4C 4A 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 D5 [20:25:11]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [20:25:11]wFMCommunicate OK [20:25:11]SAM_PROTO_GetShiftState done [20:25:11]FM_GetShiftState done [20:25:11]opened in 1709425579 [20:25:11]opened+sec_in_day 1709511979 [20:25:11]quantity*price = 20055 [20:25:11]sum+1 = 20057 [20:25:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 200.00 НСП 1% : 1.77 НДС 12% : 21.30 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 203 03.03.2024 20:25 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФД осн.: 123345 ФМ осн.: 0000000000874798 ФМ: 0000000000874798 ФД: 123346 ФПД: 82312077904775 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T202516&type=2&operation_type=1&fn_number=0000000000874798&fd_number=123346&fm=82312077904775&tin=02508201610067®Number=0000000000090573&sum=20000 [20:25:13]StoreToDocumentArchive [20:25:13]shift 323 fd 123346 [20:25:13]save to /storage/0323/doc_00123346 [20:25:13]save last doc name /storage/0323/doc_00123346 to /storage/kkm_last_doc_name [20:25:13]save OK [20:25:13]Clear old archive folders... [20:25:13]ProcessDocumentItem done err = 0, tmpTLVsize=279 [20:25:13]tlvbuf is 00E07A80 [20:25:13]SAM_PROTO_ClearQueue [20:25:13]wFMCommunicate request_size=4 [20:25:13]MH_SAM_APDU [20:25:13]CAPDU: 80 09 00 00 [20:25:13]Write to MH i2c: E2 08 00 5B 4A 80 09 00 00 00 00 00 00 17 [20:25:13]Write i2c OK [20:25:13]MH_I2C_Read... [20:25:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:25:13]Read from MH i2c: E2 [20:25:13]MH_I2C_Read... [20:25:13]Read from MH i2c: E2 03 00 [20:25:13]MH_I2C_Read... [20:25:13]Read from MH i2c: E2 03 00 5B 4A 00 90 00 19 [20:25:13]RAPDU: 90 00 [20:25:13]wFMCommunicate OK [20:25:13]SAM_PROTO_ClearQueue done [20:25:13]KKMCreateOFDPacket [20:25:13]OFDProtocolAddRootSTLVToBuf [20:25:13]FM_MakeSignedData [20:25:13]FM_MakeSignedData [20:25:13]SAM_PROTO_SignData [20:25:13]wFMCommunicate request_size=4 [20:25:13]MH_SAM_APDU [20:25:13]CAPDU: 80 0D 01 02 [20:25:13]Write to MH i2c: E2 08 00 5C 4A 80 0D 01 02 00 00 00 00 1F [20:25:13]Write i2c OK [20:25:13]MH_I2C_Read... [20:25:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:25:13]Read from MH i2c: E2 [20:25:13]MH_I2C_Read... [20:25:13]Read from MH i2c: E2 03 00 [20:25:13]MH_I2C_Read... [20:25:13]Read from MH i2c: E2 03 00 5C 4A 00 90 00 1A [20:25:13]RAPDU: 90 00 [20:25:13]wFMCommunicate OK [20:25:13]wFMCommunicate request_size=255 [20:25:13]MH_SAM_APDU [20:25:13]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 35 FF 03 08 00 03 A8 0C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 58 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 52 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 CB 00 00 00 F4 03 04 00 AC DC E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 27 04 04 00 D1 E1 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 11 04 10 00 30 [20:25:13]Write to MH i2c: E2 02 01 5D 4A 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 35 FF 03 08 00 03 A8 0C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 58 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 52 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 CB 00 00 00 F4 03 04 00 AC DC E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 27 04 04 00 D1 E1 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 11 04 10 00 30 00 00 AF [20:25:13]Write i2c OK [20:25:13]MH_I2C_Read... [20:25:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:25:13]Read from MH i2c: E2 [20:25:13]MH_I2C_Read... [20:25:13]Read from MH i2c: E2 03 00 [20:25:13]MH_I2C_Read... [20:25:13]Read from MH i2c: E2 03 00 5D 4A 00 90 00 1B [20:25:13]RAPDU: 90 00 [20:25:13]wFMCommunicate OK [20:25:13]wFMCommunicate request_size=38 [20:25:13]MH_SAM_APDU [20:25:13]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 D2 E1 01 00 35 04 06 00 4A DC C6 2A 0B 87 [20:25:13]Write to MH i2c: E2 29 00 5E 4A 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 D2 E1 01 00 35 04 06 00 4A DC C6 2A 0B 87 00 00 12 [20:25:13]Write i2c OK [20:25:13]MH_I2C_Read... [20:25:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:25:13]Read from MH i2c: E2 [20:25:13]MH_I2C_Read... [20:25:13]Read from MH i2c: E2 03 00 [20:25:13]MH_I2C_Read... [20:25:13]Read from MH i2c: E2 03 00 5E 4A 00 90 00 1C [20:25:13]RAPDU: 90 00 [20:25:13]wFMCommunicate OK [20:25:13]wFMCommunicate request_size=4 [20:25:13]MH_SAM_APDU [20:25:13]CAPDU: 80 0D 03 02 [20:25:13]Write to MH i2c: E2 08 00 5F 4A 80 0D 03 02 00 00 00 00 24 [20:25:13]Write i2c OK [20:25:13]MH_I2C_Read... [20:25:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:25:13]Read from MH i2c: E2 [20:25:13]MH_I2C_Read... [20:25:13]Read from MH i2c: E2 0B 00 [20:25:13]MH_I2C_Read... [20:25:13]Read from MH i2c: E2 0B 00 5F 4A 00 FE 48 54 FA 98 9A BD 0F 90 00 B7 [20:25:13]RAPDU: FE 48 54 FA 98 9A BD 0F 90 00 [20:25:13]wFMCommunicate OK [20:25:13]SAM_PROTO_SignData done [20:25:13]FM_MakeSignedData done [20:25:13]CreateOFDProtocolMessage [20:25:13]wFMCommunicate request_size=4 [20:25:13]MH_SAM_APDU [20:25:13]CAPDU: 80 11 00 00 [20:25:13]Write to MH i2c: E2 08 00 60 4A 80 11 00 00 00 00 00 00 24 [20:25:13]Write i2c OK [20:25:13]MH_I2C_Read... [20:25:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:25:13]Read from MH i2c: E2 [20:25:13]MH_I2C_Read... [20:25:13]Read from MH i2c: E2 17 00 [20:25:13]MH_I2C_Read... [20:25:13]Read from MH i2c: E2 17 00 60 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 82 [20:25:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [20:25:13]wFMCommunicate OK [20:25:13]CreateOFDProtocolMessage done [20:25:13]OFDSenderStorePacket 123346 [20:25:13]StoreOFDPacket docnum=123346 [20:25:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 2B 01 00 00 16 CC 23 01 28 9A 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 35 FF 03 08 00 03 A8 0C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 58 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 52 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 CB 00 00 00 F4 03 04 00 AC DC E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 27 04 04 00 D1 E1 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 D2 E1 01 00 35 04 06 00 4A DC C6 2A 0B 87 FE 48 54 FA 98 9A BD 0F [20:25:13]CheckFolder [20:25:13]dirname=/storage/ofd_packets [20:25:13]CheckFolder done [20:25:13]ProducePacketName [20:25:13]name=ofd_packets/00123346 [20:25:13]NVStorageSaveData ofd_packets/00123346 [20:25:13]File name is /storage/ofd_packets/00123346 [20:25:13]Write 329 bytes [20:25:13]NVStorageSaveData done [20:25:13]OFDSenderStorePacket done [20:25:13]KKMCreateOFDPacket done [20:25:13]NVStorageSaveData kkm_last_timestamp [20:25:13]File name is /storage/kkm_last_timestamp [20:25:13]Write 4 bytes [20:25:13]NVStorageSaveData done [20:25:13]ExternCall_PrintAddStr [20:25:13]wPrintStart [20:25:13]Write to MH i2c: 01 00 00 61 4A AB [20:25:13]Write i2c OK [20:25:13]MH_I2C_Read... [20:25:13]Read from MH i2c: 01 [20:25:13]MH_I2C_Read... [20:25:13]Read from MH i2c: 01 07 00 [20:25:13]MH_I2C_Read... [20:25:13]Read from MH i2c: 01 07 00 61 4A 00 00 00 00 00 FF 0F C0 [20:25:13]RasterBufferAndPrint [20:25:13]line Счет N : (1)1106313 [20:25:13]line ИНН: 02508201610067 [20:25:13]line Контрольно-Кассовый Чек [20:25:13]line ВОЗВРАТ ПРОДАЖИ [20:25:13]line ТРК (МРК, ГНК) : 32 [20:25:13]line Товар: 2710124130 [20:25:13]line Аи-92-К-5 [20:25:13]line 3.240 * 61.90 [20:25:13]line = 200.56 [20:25:13]line НДС 12% НСП 1% [20:25:13]line > о реализуемом товаре [20:25:13]line ОКРУГЛЕНИЕ: -0.56 [20:25:13]line ИТОГО: 200.00 [20:25:13]line НСП 1% : 1.77 [20:25:13]line НДС 12% : 21.30 [20:25:13]line Наличными: 200.00 [20:25:13]line Безнал.: 0.00 [20:25:13]line Место: АЗС № 25 "Партнер Нефть" [20:25:13]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [20:25:13]line СНО: Общий режим [20:25:13]line Чек 203 03.03.2024 20:25 [20:25:13]line Смена: 323 ФФД: 1.0 [20:25:13]line ЗНМ: 0300000019 [20:25:13]line РНМ: 0000000000090573 [20:25:13]line Версия ККМ: 001 [20:25:13]line ФД осн.: 123345 [20:25:13]line ФМ осн.: 0000000000874798 [20:25:13]line ФМ: 0000000000874798 [20:25:13]line ФД: 123346 [20:25:13]line ФПД: 82312077904775 [20:25:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T202516&type=2&operation_type=1&fn_number=0000000000874798&fd_number=123346&fm=82312077904775&tin=02508201610067®Number=0000000000090573&sum=20000 [20:25:13]written 0, free lines is 4095 [20:25:13]OFD Sender: Processing packet 123346 [packets to send 112, broken 111] [20:25:13]ProducePacketName [20:25:13]name=ofd_packets/00123346 [20:25:13]OFD Sender: To server: pG, [20:25:13]CommunicateWithHost lk.salyk.kg:30040 [20:25:13]ConnectInit lk.salyk.kg [20:25:14]Connected sock=10 [20:25: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 37 39 38 2B 01 00 00 16 CC 23 01 28 9A 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 35 FF 03 08 00 03 A8 0C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 58 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 52 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 CB 00 00 00 F4 03 04 00 AC DC E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 27 04 04 00 D1 E1 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 D2 E1 01 00 35 04 06 00 4A DC C6 2A 0B 87 FE 48 54 FA 98 9A BD 0F [20:25:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 BD FB 47 00 61 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 37 39 38 10 04 04 00 D2 E1 01 00 F4 03 04 00 D7 88 E4 65 B6 04 01 00 00 AB FE 55 02 71 85 CA FC [20:25:14]CommunicateWithHost err = 0 [20:25:14]CheckOFDResponse [20:25:14]1017 (14) - 77093643461234 [20:25:14]1041 (16) - 0000000000874798 [20:25:14]1040 (4) - 123346 [20:25:14]1012 (4) - 03.03.2024 14:27 [20:25:14]1206 (1) - 0 [20:25:14]OFD Sender: Remove packet 123346 [20:25:14]ProducePacketName [20:25:14]name=ofd_packets/00123346 [20:25:14]NVStorageDeleteData [20:25:14]Write to MH i2c: 01 00 00 8C 4A D6 [20:25:14]Write i2c OK [20:25:14]MH_I2C_Read... [20:25:14]Read from MH i2c: 01 [20:25:14]MH_I2C_Read... [20:25:14]Read from MH i2c: 01 07 00 [20:25:14]MH_I2C_Read... [20:25:14]Read from MH i2c: 01 07 00 8C 4A 00 00 00 00 00 05 0D EF [20:25:14]RasterBufferAndPrint [20:25:14]line [20:25:14]line [20:25:14]line [20:25:14]line [20:25:14]line [20:25:14]written 0, free lines is 3347 [20:25:14]MH_Cut [20:25:14]Write to MH i2c: D1 01 00 93 4A 01 AF [20:25:14]Write i2c OK [20:25:14]MH_I2C_Read... [20:25:14]Read from MH i2c: D1 [20:25:14]MH_I2C_Read... [20:25:14]Read from MH i2c: D1 01 00 [20:25:14]MH_I2C_Read... [20:25:14]Read from MH i2c: D1 01 00 93 4A 00 AE [20:25:14]Write to MH i2c: 01 00 00 94 4A DE [20:25:14]Write i2c OK [20:25:14]MH_I2C_Read... [20:25:14]OFD Sender: No OFD packet to send [20:25:14]*** Cut start [20:25:14]*** Purtial cut [20:25:14]*** Stage 1: CUTSNS_PIN = 1 [20:25:17]Read from MH i2c: 01 [20:25:17]MH_I2C_Read... [20:25:17]*** Stop cut motor [20:25:17]*** Cut end [20:25:17]Read from MH i2c: 01 07 00 [20:25:17]MH_I2C_Read... [20:25:17]Read from MH i2c: 01 07 00 94 4A 00 00 00 00 00 FF 0F F3 [20:25:17]process_action close_receipt done [20:25:17]requested_data is exist [20:25:17]produce_requested_data [20:25:17]requested_item fm.sn is exist - process it [20:25:17]wFMCommunicate request_size=4 [20:25:17]MH_SAM_APDU [20:25:17]CAPDU: 80 11 00 00 [20:25:17]Write to MH i2c: E2 08 00 95 4A 80 11 00 00 00 00 00 00 59 [20:25:17]Write i2c OK [20:25:17]MH_I2C_Read... [20:25:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:25:17]Read from MH i2c: E2 [20:25:17]MH_I2C_Read... [20:25:17]Read from MH i2c: E2 17 00 [20:25:17]MH_I2C_Read... [20:25:17]Read from MH i2c: E2 17 00 95 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 B7 [20:25:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [20:25:17]wFMCommunicate OK [20:25:17]requested_item fd.num is exist - process it [20:25:17]SAM_PROTO_GetFieldsCounters [20:25:17]wFMCommunicate request_size=4 [20:25:17]MH_SAM_APDU [20:25:17]CAPDU: 80 13 00 00 [20:25:17]Write to MH i2c: E2 08 00 96 4A 80 13 00 00 00 00 00 00 5C [20:25:17]Write i2c OK [20:25:17]MH_I2C_Read... [20:25:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:25:17]Read from MH i2c: E2 [20:25:17]MH_I2C_Read... [20:25:17]Read from MH i2c: E2 62 00 [20:25:17]MH_I2C_Read... [20:25:17]Read from MH i2c: E2 62 00 96 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 D2 E1 01 00 0E 04 04 00 43 01 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 E0 [20:25: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 D2 E1 01 00 0E 04 04 00 43 01 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 [20:25:17]wFMCommunicate OK [20:25:17]SAM_PROTO_GetFieldsCounters done [20:25:17]requested_item shift.num is exist - process it [20:25:17]requested_item shift.opened is exist - process it [20:25:17]req_shift_opened [20:25:17]FM_GetShiftState [20:25:17]SAM_PROTO_GetShiftState [20:25:17]wFMCommunicate request_size=4 [20:25:17]MH_SAM_APDU [20:25:17]CAPDU: 80 13 01 00 [20:25:17]Write to MH i2c: E2 08 00 97 4A 80 13 01 00 00 00 00 00 5E [20:25:17]Write i2c OK [20:25:17]MH_I2C_Read... [20:25:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:25:17]Read from MH i2c: E2 [20:25:17]MH_I2C_Read... [20:25:17]Read from MH i2c: E2 0E 00 [20:25:17]MH_I2C_Read... [20:25:17]Read from MH i2c: E2 0E 00 97 4A 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 20 [20:25:17]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [20:25:17]wFMCommunicate OK [20:25:17]SAM_PROTO_GetShiftState done [20:25:17]FM_GetShiftState done [20:25:17]req_shift_opened done [20:25:17]requested_item shift.open_date is exist - process it [20:25:17]req_shift_open_date [20:25:17]req_shift_open_date done [20:25:17]produce_requested_data done [20:25:17]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123346,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [20:25:17]process_action_free close_receipt [20:25:17]json_value_free [20:25:17]json_value_free done [20:25:17]process_json_proto returns [20:25:17]Send response to host [20:25:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123346,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [20:25:17]free response buf [20:25:17]execute_script done [20:25:17]execute_script returns [20:25:17]free content buf [20:25:17]Sock 9.Close socket [20:25:17]Sock 9.Thread stoped [20:25:19]OFD Sender: No OFD packet to send [20:25:24]OFD Sender: No OFD packet to send [20:25:29]OFD Sender: No OFD packet to send [20:25:34]OFD Sender: No OFD packet to send [20:25:39]OFD Sender: No OFD packet to send [20:25:44]OFD Sender: No OFD packet to send [20:25:49]OFD Sender: No OFD packet to send [20:25:54]OFD Sender: No OFD packet to send [20:25:59]OFD Sender: No OFD packet to send [20:26:04]OFD Sender: No OFD packet to send [20:26:09]OFD Sender: No OFD packet to send [20:26:14]OFD Sender: No OFD packet to send [20:26:19]OFD Sender: No OFD packet to send [20:26:24]OFD Sender: No OFD packet to send [20:26:29]OFD Sender: No OFD packet to send [20:26:34]OFD Sender: No OFD packet to send [20:26:39]OFD Sender: No OFD packet to send [20:26:44]OFD Sender: No OFD packet to send [20:26:49]OFD Sender: No OFD packet to send [20:26:54]OFD Sender: No OFD packet to send [20:26:59]OFD Sender: No OFD packet to send [20:27:04]OFD Sender: No OFD packet to send [20:27:09]OFD Sender: No OFD packet to send [20:27:14]OFD Sender: No OFD packet to send [20:27:19]OFD Sender: No OFD packet to send [20:27:24]OFD Sender: No OFD packet to send [20:27:29]OFD Sender: No OFD packet to send [20:27:34]OFD Sender: No OFD packet to send [20:27:39]OFD Sender: No OFD packet to send [20:27:44]OFD Sender: No OFD packet to send [20:27:45]accept exits with 7 [20:27:45]New connection [20:27:45]New thread 3067395428 created [20:27:45]Thread 3067252068 joined [20:27:45]Waiting for new connection... [20:27:45] Sock 7.Parse request [20:27:45]Sock 7.Check first char [20:27:45]Sock 7.First char is OK [20:27:45]request: POST /json_proto HTTP/1.0 [20:27:45]Method: POST [20:27:45]URL: /json_proto [20:27:45]Method is POST - this is cgi request [20:27:45]url: /json_proto [20:27:45]query_string will be loaded in cgi processing [20:27:45]execute_cgi json_proto POST (null) [20:27:46]execute_cgi path=json_proto method=POST [20:27:46]POST find Content-Length [20:27:46]Host: 172.17.48.197:8080 [20:27:46]Content-Length: 817 [20:27:46]Content-Type: application/json [20:27:46] [20:27:46]POST finish read [20:27:46]Found Content-Length = 817 [20:27:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106314", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:27:46]execute_script... [20:27: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)1106314", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:27:46]POST & json_proto [20:27:46]process_json_proto [20:27:46]json parsed OK: [20:27:46]protocol is kg_v1.0 [20:27:46]action value=close_receipt [20:27:46]process_action close_receipt [20:27:46]cmd_close_receipt [20:27:46]MH_GetDate [20:27:46]Write to MH i2c: F0 00 00 98 4A D1 [20:27:46]Write i2c OK [20:27:46]MH_I2C_Read... [20:27:46]Read from MH i2c: F0 [20:27:46]MH_I2C_Read... [20:27:46]Read from MH i2c: F0 09 00 [20:27:46]MH_I2C_Read... [20:27:46]Read from MH i2c: F0 09 00 98 4A 00 46 DD E4 65 6C AF E3 65 A9 [20:27:46]GetLastDocTimeStamp 1709497516 [20:27:46]current date 1709497670 [20:27:46]FM_GetShiftState [20:27:46]SAM_PROTO_GetShiftState [20:27:46]wFMCommunicate request_size=4 [20:27:46]MH_SAM_APDU [20:27:46]CAPDU: 80 13 01 00 [20:27:46]Write to MH i2c: E2 08 00 99 4A 80 13 01 00 00 00 00 00 60 [20:27:46]Write i2c OK [20:27:46]MH_I2C_Read... [20:27:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:27:46]Read from MH i2c: E2 [20:27:46]MH_I2C_Read... [20:27:46]Read from MH i2c: E2 0E 00 [20:27:46]MH_I2C_Read... [20:27:46]Read from MH i2c: E2 0E 00 99 4A 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 22 [20:27:46]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [20:27:46]wFMCommunicate OK [20:27:46]SAM_PROTO_GetShiftState done [20:27:46]FM_GetShiftState done [20:27:46]opened in 1709425579 [20:27:46]opened+sec_in_day 1709511979 [20:27:46]quantity*price = 50015 [20:27:46]sum+1 = 50016 [20:27:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.15 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.15 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 204 03.03.2024 20:27 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874798 ФД: 123347 ФПД: 167987306989333 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T202750&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123347&fm=167987306989333&tin=02508201610067®Number=0000000000090573&sum=50015 [20:27:47]StoreToDocumentArchive [20:27:47]shift 323 fd 123347 [20:27:47]save to /storage/0323/doc_00123347 [20:27:47]save last doc name /storage/0323/doc_00123347 to /storage/kkm_last_doc_name [20:27:47]save OK [20:27:47]Clear old archive folders... [20:27:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:27:47]tlvbuf is 00F04E30 [20:27:47]SAM_PROTO_ClearQueue [20:27:47]wFMCommunicate request_size=4 [20:27:47]MH_SAM_APDU [20:27:47]CAPDU: 80 09 00 00 [20:27:47]Write to MH i2c: E2 08 00 A6 4A 80 09 00 00 00 00 00 00 62 [20:27:47]Write i2c OK [20:27:47]MH_I2C_Read... [20:27:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:27:47]Read from MH i2c: E2 [20:27:47]MH_I2C_Read... [20:27:47]Read from MH i2c: E2 03 00 [20:27:47]MH_I2C_Read... [20:27:47]Read from MH i2c: E2 03 00 A6 4A 00 90 00 64 [20:27:47]RAPDU: 90 00 [20:27:47]wFMCommunicate OK [20:27:47]SAM_PROTO_ClearQueue done [20:27:47]KKMCreateOFDPacket [20:27:47]OFDProtocolAddRootSTLVToBuf [20:27:47]FM_MakeSignedData [20:27:47]FM_MakeSignedData [20:27:47]SAM_PROTO_SignData [20:27:47]wFMCommunicate request_size=4 [20:27:47]MH_SAM_APDU [20:27:47]CAPDU: 80 0D 01 02 [20:27:47]Write to MH i2c: E2 08 00 A7 4A 80 0D 01 02 00 00 00 00 6A [20:27:47]Write i2c OK [20:27:47]MH_I2C_Read... [20:27:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:27:47]Read from MH i2c: E2 [20:27:47]MH_I2C_Read... [20:27:47]Read from MH i2c: E2 03 00 [20:27:47]MH_I2C_Read... [20:27:47]Read from MH i2c: E2 03 00 A7 4A 00 90 00 65 [20:27:47]RAPDU: 90 00 [20:27:47]wFMCommunicate OK [20:27:47]wFMCommunicate request_size=255 [20:27:47]MH_SAM_APDU [20:27:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 46 DD E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 D3 E1 01 00 35 04 06 00 98 [20:27:47]Write to MH i2c: E2 02 01 A8 4A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 46 DD E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 D3 E1 01 00 35 04 06 00 98 00 00 31 [20:27:47]Write i2c OK [20:27:47]MH_I2C_Read... [20:27:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:27:47]Read from MH i2c: E2 [20:27:47]MH_I2C_Read... [20:27:47]Read from MH i2c: E2 03 00 [20:27:47]MH_I2C_Read... [20:27:47]Read from MH i2c: E2 03 00 A8 4A 00 90 00 66 [20:27:47]RAPDU: 90 00 [20:27:47]wFMCommunicate OK [20:27:47]wFMCommunicate request_size=10 [20:27:47]MH_SAM_APDU [20:27:47]CAPDU: 80 0D 02 02 05 C8 97 C2 87 15 [20:27:47]Write to MH i2c: E2 0D 00 A9 4A 80 0D 02 02 05 00 C8 97 C2 87 15 00 00 34 [20:27:47]Write i2c OK [20:27:47]MH_I2C_Read... [20:27:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:27:47]Read from MH i2c: E2 [20:27:47]MH_I2C_Read... [20:27:47]Read from MH i2c: E2 03 00 [20:27:47]MH_I2C_Read... [20:27:47]Read from MH i2c: E2 03 00 A9 4A 00 90 00 67 [20:27:47]RAPDU: 90 00 [20:27:47]wFMCommunicate OK [20:27:47]wFMCommunicate request_size=4 [20:27:47]MH_SAM_APDU [20:27:47]CAPDU: 80 0D 03 02 [20:27:47]Write to MH i2c: E2 08 00 AA 4A 80 0D 03 02 00 00 00 00 6F [20:27:47]Write i2c OK [20:27:47]MH_I2C_Read... [20:27:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:27:47]Read from MH i2c: E2 [20:27:47]MH_I2C_Read... [20:27:47]Read from MH i2c: E2 0B 00 [20:27:47]MH_I2C_Read... [20:27:47]Read from MH i2c: E2 0B 00 AA 4A 00 F0 36 F2 FA 47 3D 23 29 90 00 52 [20:27:47]RAPDU: F0 36 F2 FA 47 3D 23 29 90 00 [20:27:47]wFMCommunicate OK [20:27:47]SAM_PROTO_SignData done [20:27:47]FM_MakeSignedData done [20:27:47]CreateOFDProtocolMessage [20:27:47]wFMCommunicate request_size=4 [20:27:47]MH_SAM_APDU [20:27:47]CAPDU: 80 11 00 00 [20:27:47]Write to MH i2c: E2 08 00 AB 4A 80 11 00 00 00 00 00 00 6F [20:27:47]Write i2c OK [20:27:47]MH_I2C_Read... [20:27:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:27:47]Read from MH i2c: E2 [20:27:47]MH_I2C_Read... [20:27:47]Read from MH i2c: E2 17 00 [20:27:47]MH_I2C_Read... [20:27:47]Read from MH i2c: E2 17 00 AB 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 CD [20:27:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [20:27:47]wFMCommunicate OK [20:27:47]CreateOFDProtocolMessage done [20:27:47]OFDSenderStorePacket 123347 [20:27:47]StoreOFDPacket docnum=123347 [20:27:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 67 A0 07 01 B6 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 46 DD E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 D3 E1 01 00 35 04 06 00 98 C8 97 C2 87 15 F0 36 F2 FA 47 3D 23 29 [20:27:47]CheckFolder [20:27:47]dirname=/storage/ofd_packets [20:27:47]CheckFolder done [20:27:47]ProducePacketName [20:27:47]name=ofd_packets/00123347 [20:27:47]NVStorageSaveData ofd_packets/00123347 [20:27:47]File name is /storage/ofd_packets/00123347 [20:27:47]Write 301 bytes [20:27:47]NVStorageSaveData done [20:27:47]OFDSenderStorePacket done [20:27:47]KKMCreateOFDPacket done [20:27:47]NVStorageSaveData kkm_last_timestamp [20:27:47]File name is /storage/kkm_last_timestamp [20:27:47]Write 4 bytes [20:27:47]NVStorageSaveData done [20:27:47]ExternCall_PrintAddStr [20:27:47]wPrintStart [20:27:47]Write to MH i2c: 01 00 00 AC 4A F6 [20:27:47]Write i2c OK [20:27:47]MH_I2C_Read... [20:27:47]Read from MH i2c: 01 [20:27:47]MH_I2C_Read... [20:27:47]Read from MH i2c: 01 07 00 [20:27:47]MH_I2C_Read... [20:27:47]Read from MH i2c: 01 07 00 AC 4A 00 00 00 00 00 FF 0F 0B [20:27:47]RasterBufferAndPrint [20:27:47]line Счет N : (1)1106314 [20:27:47]line ИНН: 02508201610067 [20:27:47]line Контрольно-Кассовый Чек [20:27:47]line ПРОДАЖА [20:27:47]line ТРК (МРК, ГНК) : 62 [20:27:47]line Товар: 2710124130 [20:27:47]line Аи-92-К-5 [20:27:47]line 8.080 * 61.90 [20:27:47]line = 500.15 [20:27:47]line НДС 12% НСП 1% [20:27:47]line > о реализуемом товаре [20:27:47]line ИТОГО: 500.15 [20:27:47]line НСП 1% : 4.43 [20:27:47]line НДС 12% : 53.11 [20:27:47]line Наличными: 0.00 [20:27:47]line Безнал.: 500.15 [20:27:47]line Место: АЗС № 25 "Партнер Нефть" [20:27:47]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [20:27:47]line СНО: Общий режим [20:27:47]line Чек 204 03.03.2024 20:27 [20:27:47]line Смена: 323 ФФД: 1.0 [20:27:47]line ЗНМ: 0300000019 [20:27:47]line РНМ: 0000000000090573 [20:27:47]line Версия ККМ: 001 [20:27:47]line Платежная система: Бакай Банк [20:27:47]line ФМ: 0000000000874798 [20:27:47]line ФД: 123347 [20:27:47]line ФПД: 167987306989333 [20:27:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T202750&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123347&fm=167987306989333&tin=02508201610067®Number=0000000000090573&sum=50015 [20:27:48]written 0, free lines is 4095 [20:27:48]OFD Sender: Processing packet 123347 [packets to send 112, broken 111] [20:27:48]ProducePacketName [20:27:48]name=ofd_packets/00123347 [20:27:48]OFD Sender: To server: pG, [20:27:48]CommunicateWithHost lk.salyk.kg:30040 [20:27:48]ConnectInit lk.salyk.kg [20:27:48]Connected sock=10 [20:27: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 37 39 38 0F 01 00 00 67 A0 07 01 B6 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 46 DD E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 D3 E1 01 00 35 04 06 00 98 C8 97 C2 87 15 F0 36 F2 FA 47 3D 23 29 [20:27:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 F3 A2 47 00 90 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 D3 E1 01 00 F4 03 04 00 71 89 E4 65 B6 04 01 00 00 33 10 60 CD 47 59 0D F5 [20:27:48]CommunicateWithHost err = 0 [20:27:48]CheckOFDResponse [20:27:48]1017 (14) - 77093643461234 [20:27:48]1041 (16) - 0000000000874798 [20:27:48]1040 (4) - 123347 [20:27:48]1012 (4) - 03.03.2024 14:30 [20:27:48]1206 (1) - 0 [20:27:48]OFD Sender: Remove packet 123347 [20:27:48]ProducePacketName [20:27:48]name=ofd_packets/00123347 [20:27:48]NVStorageDeleteData [20:27:48]Write to MH i2c: 01 00 00 D6 4A 20 [20:27:48]Write i2c OK [20:27:48]MH_I2C_Read... [20:27:48]Read from MH i2c: 01 [20:27:48]MH_I2C_Read... [20:27:48]Read from MH i2c: 01 07 00 [20:27:48]MH_I2C_Read... [20:27:48]Read from MH i2c: 01 07 00 D6 4A 00 00 00 00 00 FB 0C 2E [20:27:48]RasterBufferAndPrint [20:27:48]line [20:27:48]line [20:27:48]line [20:27:48]line [20:27:48]line [20:27:48]written 0, free lines is 3329 [20:27:48]MH_Cut [20:27:48]Write to MH i2c: D1 01 00 DD 4A 01 F9 [20:27:48]Write i2c OK [20:27:48]MH_I2C_Read... [20:27:48]Read from MH i2c: D1 [20:27:48]MH_I2C_Read... [20:27:48]Read from MH i2c: D1 01 00 [20:27:48]MH_I2C_Read... [20:27:48]Read from MH i2c: D1 01 00 DD 4A 00 F8 [20:27:48]Write to MH i2c: 01 00 00 DE 4A 28 [20:27:48]Write i2c OK [20:27:48]MH_I2C_Read... [20:27:48]OFD Sender: No OFD packet to send [20:27:49]*** Cut start [20:27:49]*** Purtial cut [20:27:49]*** Stage 1: CUTSNS_PIN = 1 [20:27:51]Read from MH i2c: 01 [20:27:51]MH_I2C_Read... [20:27:51]*** Stop cut motor [20:27:51]*** Cut end [20:27:51]Read from MH i2c: 01 07 00 [20:27:51]MH_I2C_Read... [20:27:51]Read from MH i2c: 01 07 00 DE 4A 00 00 00 00 00 FF 0F 3D [20:27:51]process_action close_receipt done [20:27:51]requested_data is exist [20:27:51]produce_requested_data [20:27:51]requested_item fm.sn is exist - process it [20:27:51]wFMCommunicate request_size=4 [20:27:51]MH_SAM_APDU [20:27:51]CAPDU: 80 11 00 00 [20:27:51]Write to MH i2c: E2 08 00 DF 4A 80 11 00 00 00 00 00 00 A3 [20:27:51]Write i2c OK [20:27:51]MH_I2C_Read... [20:27:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:27:51]Read from MH i2c: E2 [20:27:51]MH_I2C_Read... [20:27:51]Read from MH i2c: E2 17 00 [20:27:51]MH_I2C_Read... [20:27:51]Read from MH i2c: E2 17 00 DF 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 01 [20:27:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [20:27:51]wFMCommunicate OK [20:27:51]requested_item fd.num is exist - process it [20:27:51]SAM_PROTO_GetFieldsCounters [20:27:51]wFMCommunicate request_size=4 [20:27:51]MH_SAM_APDU [20:27:51]CAPDU: 80 13 00 00 [20:27:51]Write to MH i2c: E2 08 00 E0 4A 80 13 00 00 00 00 00 00 A6 [20:27:51]Write i2c OK [20:27:51]MH_I2C_Read... [20:27:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:27:51]Read from MH i2c: E2 [20:27:51]MH_I2C_Read... [20:27:51]Read from MH i2c: E2 62 00 [20:27:51]MH_I2C_Read... [20:27:51]Read from MH i2c: E2 62 00 E0 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 D3 E1 01 00 0E 04 04 00 43 01 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 2E [20:27: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 D3 E1 01 00 0E 04 04 00 43 01 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 [20:27:51]wFMCommunicate OK [20:27:51]SAM_PROTO_GetFieldsCounters done [20:27:51]requested_item shift.num is exist - process it [20:27:51]requested_item shift.opened is exist - process it [20:27:51]req_shift_opened [20:27:51]FM_GetShiftState [20:27:51]SAM_PROTO_GetShiftState [20:27:51]wFMCommunicate request_size=4 [20:27:51]MH_SAM_APDU [20:27:51]CAPDU: 80 13 01 00 [20:27:51]Write to MH i2c: E2 08 00 E1 4A 80 13 01 00 00 00 00 00 A8 [20:27:51]Write i2c OK [20:27:51]MH_I2C_Read... [20:27:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:27:51]Read from MH i2c: E2 [20:27:51]MH_I2C_Read... [20:27:51]Read from MH i2c: E2 0E 00 [20:27:51]MH_I2C_Read... [20:27:51]Read from MH i2c: E2 0E 00 E1 4A 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 6A [20:27:51]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [20:27:51]wFMCommunicate OK [20:27:51]SAM_PROTO_GetShiftState done [20:27:51]FM_GetShiftState done [20:27:51]req_shift_opened done [20:27:51]requested_item shift.open_date is exist - process it [20:27:51]req_shift_open_date [20:27:51]req_shift_open_date done [20:27:51]produce_requested_data done [20:27:51]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123347,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [20:27:51]process_action_free close_receipt [20:27:51]json_value_free [20:27:51]json_value_free done [20:27:51]process_json_proto returns [20:27:51]Send response to host [20:27:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123347,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [20:27:51]free response buf [20:27:51]execute_script done [20:27:51]execute_script returns [20:27:51]free content buf [20:27:51]Sock 7.Close socket [20:27:51]Sock 7.Thread stoped [20:27:53]OFD Sender: No OFD packet to send [20:27:58]OFD Sender: No OFD packet to send [20:28:02]int [20:28:02]Write to MH i2c: 01 00 00 E2 4A 2C [20:28:02]*** FLAG_PRN_KEY set [20:28:02]Write i2c OK [20:28:02]MH_I2C_Read... [20:28:02]Read from MH i2c: 01 [20:28:02]MH_I2C_Read... [20:28:02]Read from MH i2c: 01 07 00 [20:28:02]MH_I2C_Read... [20:28:02]Read from MH i2c: 01 07 00 E2 4A 00 08 00 00 00 FF 0F 49 [20:28:02]state=0 [20:28:02]Key pressed [20:28:02]Feed [20:28:02]Write to MH i2c: D8 00 00 E3 4A 04 [20:28:02]Write i2c OK [20:28:02]MH_I2C_Read... [20:28:02]Read from MH i2c: D8 [20:28:02]MH_I2C_Read... [20:28:02]Read from MH i2c: D8 01 00 [20:28:02]MH_I2C_Read... [20:28:02]Read from MH i2c: D8 01 00 E3 4A 00 05 [20:28:02]int [20:28:02]Write to MH i2c: 01 00 00 E4 4A 2E [20:28:02]Write i2c OK [20:28:02]MH_I2C_Read... [20:28:02]Read from MH i2c: 01 [20:28:02]MH_I2C_Read... [20:28:02]Read from MH i2c: 01 07 00 [20:28:02]MH_I2C_Read... [20:28:02]Read from MH i2c: 01 07 00 E4 4A 00 48 00 00 00 3C 00 B9 [20:28:02]state=2 [20:28:02]Key pressed [20:28:02]int [20:28:02]Write to MH i2c: 01 00 00 E5 4A 2F [20:28:02]*** FLAG_PRN_KEY reset [20:28:02]Write i2c OK [20:28:02]MH_I2C_Read... [20:28:02]Read from MH i2c: 01 [20:28:02]MH_I2C_Read... [20:28:02]Read from MH i2c: 01 07 00 [20:28:02]MH_I2C_Read... [20:28:02]Read from MH i2c: 01 07 00 E5 4A 00 00 00 00 00 F8 0F 3D [20:28:02]state=2 [20:28:02]Stop feed [20:28:02]int [20:28:02]Write to MH i2c: 01 00 00 E6 4A 30 [20:28:02]*** FLAG_PRN_KEY set [20:28:02]Write i2c OK [20:28:02]MH_I2C_Read... [20:28:02]Read from MH i2c: 01 [20:28:02]MH_I2C_Read... [20:28:02]Read from MH i2c: 01 07 00 [20:28:02]MH_I2C_Read... [20:28:02]Read from MH i2c: 01 07 00 E6 4A 00 08 00 00 00 FF 0F 4D [20:28:02]state=0 [20:28:02]Key pressed [20:28:02]Feed [20:28:02]Write to MH i2c: D8 00 00 E7 4A 08 [20:28:02]Write i2c OK [20:28:02]MH_I2C_Read... [20:28:02]Read from MH i2c: D8 [20:28:02]MH_I2C_Read... [20:28:02]Read from MH i2c: D8 01 00 [20:28:02]MH_I2C_Read... [20:28:02]Read from MH i2c: D8 01 00 E7 4A 00 09 [20:28:02]int [20:28:02]Write to MH i2c: 01 00 00 E8 4A 32 [20:28:02]Write i2c OK [20:28:02]MH_I2C_Read... [20:28:02]Read from MH i2c: 01 [20:28:02]MH_I2C_Read... [20:28:02]Read from MH i2c: 01 07 00 [20:28:02]MH_I2C_Read... [20:28:02]Read from MH i2c: 01 07 00 E8 4A 00 48 00 00 00 3C 00 BD [20:28:02]state=2 [20:28:02]Key pressed [20:28:02]int [20:28:02]Write to MH i2c: 01 00 00 E9 4A 33 [20:28:02]*** FLAG_PRN_KEY reset [20:28:02]Write i2c OK [20:28:02]MH_I2C_Read... [20:28:02]Read from MH i2c: 01 [20:28:02]MH_I2C_Read... [20:28:02]Read from MH i2c: 01 07 00 [20:28:02]MH_I2C_Read... [20:28:02]Read from MH i2c: 01 07 00 E9 4A 00 00 00 00 00 F5 0F 3E [20:28:02]state=2 [20:28:02]Stop feed [20:28:02]int [20:28:02]Write to MH i2c: 01 00 00 EA 4A 34 [20:28:02]*** FLAG_PRN_KEY set [20:28:02]Write i2c OK [20:28:02]MH_I2C_Read... [20:28:02]Read from MH i2c: 01 [20:28:02]MH_I2C_Read... [20:28:02]Read from MH i2c: 01 07 00 [20:28:02]MH_I2C_Read... [20:28:02]Read from MH i2c: 01 07 00 EA 4A 00 08 00 00 00 FF 0F 51 [20:28:02]state=0 [20:28:02]Key pressed [20:28:02]Feed [20:28:02]Write to MH i2c: D8 00 00 EB 4A 0C [20:28:02]Write i2c OK [20:28:02]MH_I2C_Read... [20:28:02]Read from MH i2c: D8 [20:28:02]MH_I2C_Read... [20:28:02]Read from MH i2c: D8 01 00 [20:28:02]MH_I2C_Read... [20:28:02]Read from MH i2c: D8 01 00 EB 4A 00 0D [20:28:02]int [20:28:02]Write to MH i2c: 01 00 00 EC 4A 36 [20:28:02]Write i2c OK [20:28:02]MH_I2C_Read... [20:28:02]Read from MH i2c: 01 [20:28:02]MH_I2C_Read... [20:28:02]Read from MH i2c: 01 07 00 [20:28:02]MH_I2C_Read... [20:28:02]Read from MH i2c: 01 07 00 EC 4A 00 48 00 00 00 3C 00 C1 [20:28:02]state=2 [20:28:02]Key pressed [20:28:02]int [20:28:02]Write to MH i2c: 01 00 00 ED 4A 37 [20:28:02]*** FLAG_PRN_KEY reset [20:28:02]Write i2c OK [20:28:02]MH_I2C_Read... [20:28:02]Read from MH i2c: 01 [20:28:02]MH_I2C_Read... [20:28:02]Read from MH i2c: 01 07 00 [20:28:02]MH_I2C_Read... [20:28:02]Read from MH i2c: 01 07 00 ED 4A 00 00 00 00 00 F5 0F 42 [20:28:02]state=2 [20:28:02]Stop feed [20:28:03]int [20:28:03]Write to MH i2c: 01 00 00 EE 4A 38 [20:28:03]*** FLAG_PRN_KEY set [20:28:03]Write i2c OK [20:28:03]MH_I2C_Read... [20:28:03]Read from MH i2c: 01 [20:28:03]MH_I2C_Read... [20:28:03]Read from MH i2c: 01 07 00 [20:28:03]MH_I2C_Read... [20:28:03]Read from MH i2c: 01 07 00 EE 4A 00 08 00 00 00 FF 0F 55 [20:28:03]state=0 [20:28:03]Key pressed [20:28:03]Feed [20:28:03]Write to MH i2c: D8 00 00 EF 4A 10 [20:28:03]Write i2c OK [20:28:03]MH_I2C_Read... [20:28:03]Read from MH i2c: D8 [20:28:03]MH_I2C_Read... [20:28:03]Read from MH i2c: D8 01 00 [20:28:03]MH_I2C_Read... [20:28:03]Read from MH i2c: D8 01 00 EF 4A 00 11 [20:28:03]int [20:28:03]Write to MH i2c: 01 00 00 F0 4A 3A [20:28:03]Write i2c OK [20:28:03]MH_I2C_Read... [20:28:03]Read from MH i2c: 01 [20:28:03]MH_I2C_Read... [20:28:03]Read from MH i2c: 01 07 00 [20:28:03]MH_I2C_Read... [20:28:03]Read from MH i2c: 01 07 00 F0 4A 00 48 00 00 00 3C 00 C5 [20:28:03]state=2 [20:28:03]Key pressed [20:28:03]int [20:28:03]Write to MH i2c: 01 00 00 F1 4A 3B [20:28:03]*** FLAG_PRN_KEY reset [20:28:03]Write i2c OK [20:28:03]MH_I2C_Read... [20:28:03]Read from MH i2c: 01 [20:28:03]MH_I2C_Read... [20:28:03]Read from MH i2c: 01 07 00 [20:28:03]MH_I2C_Read... [20:28:03]Read from MH i2c: 01 07 00 F1 4A 00 00 00 00 00 F6 0F 47 [20:28:03]state=2 [20:28:03]Stop feed [20:28:03]int [20:28:03]Write to MH i2c: 01 00 00 F2 4A 3C [20:28:03]*** FLAG_PRN_KEY set [20:28:03]Write i2c OK [20:28:03]MH_I2C_Read... [20:28:03]Read from MH i2c: 01 [20:28:03]MH_I2C_Read... [20:28:03]Read from MH i2c: 01 07 00 [20:28:03]MH_I2C_Read... [20:28:03]Read from MH i2c: 01 07 00 F2 4A 00 08 00 00 00 FF 0F 59 [20:28:03]state=0 [20:28:03]Key pressed [20:28:03]Feed [20:28:03]Write to MH i2c: D8 00 00 F3 4A 14 [20:28:03]Write i2c OK [20:28:03]MH_I2C_Read... [20:28:03]Read from MH i2c: D8 [20:28:03]MH_I2C_Read... [20:28:03]Read from MH i2c: D8 01 00 [20:28:03]MH_I2C_Read... [20:28:03]Read from MH i2c: D8 01 00 F3 4A 00 15 [20:28:03]int [20:28:03]Write to MH i2c: 01 00 00 F4 4A 3E [20:28:03]Write i2c OK [20:28:03]MH_I2C_Read... [20:28:03]Read from MH i2c: 01 [20:28:03]MH_I2C_Read... [20:28:03]Read from MH i2c: 01 07 00 [20:28:03]MH_I2C_Read... [20:28:03]Read from MH i2c: 01 07 00 F4 4A 00 48 00 00 00 3C 00 C9 [20:28:03]state=2 [20:28:03]Key pressed [20:28:03]int [20:28:03]Write to MH i2c: 01 00 00 F5 4A 3F [20:28:03]*** FLAG_PRN_KEY reset [20:28:03]Write i2c OK [20:28:03]MH_I2C_Read... [20:28:03]Read from MH i2c: 01 [20:28:03]MH_I2C_Read... [20:28:03]Read from MH i2c: 01 07 00 [20:28:03]MH_I2C_Read... [20:28:03]Read from MH i2c: 01 07 00 F5 4A 00 00 00 00 00 F5 0F 4A [20:28:03]state=2 [20:28:03]Stop feed [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:44]accept exits with 9 [20:29:44]New connection [20:29:44]New thread 3067252068 created [20:29:44]Thread 3067395428 joined [20:29:44]Waiting for new connection... [20:29:44] Sock 9.Parse request [20:29:44]Sock 9.Check first char [20:29:44]Sock 9.First char is OK [20:29:44]request: POST /json_proto HTTP/1.0 [20:29:44]Method: POST [20:29:44]URL: /json_proto [20:29:44]Method is POST - this is cgi request [20:29:44]url: /json_proto [20:29:44]query_string will be loaded in cgi processing [20:29:44]execute_cgi json_proto POST (null) [20:29:44]execute_cgi path=json_proto method=POST [20:29:44]POST find Content-Length [20:29:44]Host: 172.17.48.197:8080 [20:29:44]Content-Length: 820 [20:29:44]Content-Type: application/json [20:29:44] [20:29:44]POST finish read [20:29:44]Found Content-Length = 820 [20:29:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106315", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:29:44]execute_script... [20:29: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)1106315", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:29:44]POST & json_proto [20:29:44]process_json_proto [20:29:44]json parsed OK: [20:29:44]protocol is kg_v1.0 [20:29:44]action value=close_receipt [20:29:44]process_action close_receipt [20:29:44]cmd_close_receipt [20:29:44]MH_GetDate [20:29:44]Write to MH i2c: F0 00 00 F6 4A 2F [20:29:44]Write i2c OK [20:29:44]MH_I2C_Read... [20:29:44]Read from MH i2c: F0 [20:29:44]MH_I2C_Read... [20:29:44]Read from MH i2c: F0 09 00 [20:29:44]MH_I2C_Read... [20:29:44]Read from MH i2c: F0 09 00 F6 4A 00 BD DD E4 65 6C AF E3 65 7E [20:29:44]GetLastDocTimeStamp 1709497670 [20:29:44]current date 1709497789 [20:29:44]FM_GetShiftState [20:29:44]SAM_PROTO_GetShiftState [20:29:44]wFMCommunicate request_size=4 [20:29:44]MH_SAM_APDU [20:29:44]CAPDU: 80 13 01 00 [20:29:44]Write to MH i2c: E2 08 00 F7 4A 80 13 01 00 00 00 00 00 BE [20:29:44]Write i2c OK [20:29:44]MH_I2C_Read... [20:29:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:29:44]Read from MH i2c: E2 [20:29:44]MH_I2C_Read... [20:29:44]Read from MH i2c: E2 0E 00 [20:29:44]MH_I2C_Read... [20:29:44]Read from MH i2c: E2 0E 00 F7 4A 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 80 [20:29:44]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [20:29:44]wFMCommunicate OK [20:29:44]SAM_PROTO_GetShiftState done [20:29:44]FM_GetShiftState done [20:29:44]opened in 1709425579 [20:29:44]opened+sec_in_day 1709511979 [20:29:44]quantity*price = 100010 [20:29:44]sum+1 = 100012 [20:29:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.11 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.11 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 205 03.03.2024 20:29 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874798 ФД: 123348 ФПД: 70011228616250 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T202949&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123348&fm=70011228616250&tin=02508201610067®Number=0000000000090573&sum=100011 [20:29:45]StoreToDocumentArchive [20:29:45]shift 323 fd 123348 [20:29:45]save to /storage/0323/doc_00123348 [20:29:45]save last doc name /storage/0323/doc_00123348 to /storage/kkm_last_doc_name [20:29:45]save OK [20:29:45]Clear old archive folders... [20:29:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:29:45]tlvbuf is 00DCAE20 [20:29:45]SAM_PROTO_ClearQueue [20:29:45]wFMCommunicate request_size=4 [20:29:45]MH_SAM_APDU [20:29:45]CAPDU: 80 09 00 00 [20:29:45]Write to MH i2c: E2 08 00 04 4B 80 09 00 00 00 00 00 00 C1 [20:29:45]Write i2c OK [20:29:45]MH_I2C_Read... [20:29:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:29:45]Read from MH i2c: E2 [20:29:45]MH_I2C_Read... [20:29:45]Read from MH i2c: E2 03 00 [20:29:45]MH_I2C_Read... [20:29:45]Read from MH i2c: E2 03 00 04 4B 00 90 00 C3 [20:29:45]RAPDU: 90 00 [20:29:45]wFMCommunicate OK [20:29:45]SAM_PROTO_ClearQueue done [20:29:45]KKMCreateOFDPacket [20:29:45]OFDProtocolAddRootSTLVToBuf [20:29:45]FM_MakeSignedData [20:29:45]FM_MakeSignedData [20:29:45]SAM_PROTO_SignData [20:29:45]wFMCommunicate request_size=4 [20:29:45]MH_SAM_APDU [20:29:45]CAPDU: 80 0D 01 02 [20:29:45]Write to MH i2c: E2 08 00 05 4B 80 0D 01 02 00 00 00 00 C9 [20:29:45]Write i2c OK [20:29:45]MH_I2C_Read... [20:29:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:29:45]Read from MH i2c: E2 [20:29:45]MH_I2C_Read... [20:29:45]Read from MH i2c: E2 03 00 [20:29:45]MH_I2C_Read... [20:29:45]Read from MH i2c: E2 03 00 05 4B 00 90 00 C4 [20:29:45]RAPDU: 90 00 [20:29:45]wFMCommunicate OK [20:29:45]wFMCommunicate request_size=255 [20:29:45]MH_SAM_APDU [20:29: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 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 BD DD E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 D4 E1 01 00 35 04 06 00 3F [20:29:45]Write to MH i2c: E2 02 01 06 4B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 BD DD E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 D4 E1 01 00 35 04 06 00 3F 00 00 2D [20:29:45]Write i2c OK [20:29:45]MH_I2C_Read... [20:29:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:29:45]Read from MH i2c: E2 [20:29:45]MH_I2C_Read... [20:29:45]Read from MH i2c: E2 03 00 [20:29:45]MH_I2C_Read... [20:29:45]Read from MH i2c: E2 03 00 06 4B 00 90 00 C5 [20:29:45]RAPDU: 90 00 [20:29:45]wFMCommunicate OK [20:29:45]wFMCommunicate request_size=10 [20:29:45]MH_SAM_APDU [20:29:45]CAPDU: 80 0D 02 02 05 AC C2 69 76 3A [20:29:45]Write to MH i2c: E2 0D 00 07 4B 80 0D 02 02 05 00 AC C2 69 76 3A 00 00 5D [20:29:45]Write i2c OK [20:29:45]MH_I2C_Read... [20:29:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:29:45]Read from MH i2c: E2 [20:29:45]MH_I2C_Read... [20:29:45]Read from MH i2c: E2 03 00 [20:29:45]MH_I2C_Read... [20:29:45]Read from MH i2c: E2 03 00 07 4B 00 90 00 C6 [20:29:45]RAPDU: 90 00 [20:29:45]wFMCommunicate OK [20:29:45]wFMCommunicate request_size=4 [20:29:45]MH_SAM_APDU [20:29:45]CAPDU: 80 0D 03 02 [20:29:45]Write to MH i2c: E2 08 00 08 4B 80 0D 03 02 00 00 00 00 CE [20:29:45]Write i2c OK [20:29:45]MH_I2C_Read... [20:29:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:29:45]Read from MH i2c: E2 [20:29:45]MH_I2C_Read... [20:29:45]Read from MH i2c: E2 0B 00 [20:29:45]MH_I2C_Read... [20:29:45]Read from MH i2c: E2 0B 00 08 4B 00 1D A9 D2 85 2D 77 D8 12 90 00 7A [20:29:45]RAPDU: 1D A9 D2 85 2D 77 D8 12 90 00 [20:29:45]wFMCommunicate OK [20:29:45]SAM_PROTO_SignData done [20:29:45]FM_MakeSignedData done [20:29:45]CreateOFDProtocolMessage [20:29:45]wFMCommunicate request_size=4 [20:29:45]MH_SAM_APDU [20:29:45]CAPDU: 80 11 00 00 [20:29:45]Write to MH i2c: E2 08 00 09 4B 80 11 00 00 00 00 00 00 CE [20:29:45]Write i2c OK [20:29:45]MH_I2C_Read... [20:29:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:29:45]Read from MH i2c: E2 [20:29:45]MH_I2C_Read... [20:29:45]Read from MH i2c: E2 17 00 [20:29:45]MH_I2C_Read... [20:29:45]Read from MH i2c: E2 17 00 09 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 2C [20:29:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [20:29:45]wFMCommunicate OK [20:29:45]CreateOFDProtocolMessage done [20:29:45]OFDSenderStorePacket 123348 [20:29:45]StoreOFDPacket docnum=123348 [20:29:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 72 A7 07 01 3B FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 BD DD E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 D4 E1 01 00 35 04 06 00 3F AC C2 69 76 3A 1D A9 D2 85 2D 77 D8 12 [20:29:45]CheckFolder [20:29:45]dirname=/storage/ofd_packets [20:29:45]CheckFolder done [20:29:45]ProducePacketName [20:29:45]name=ofd_packets/00123348 [20:29:45]NVStorageSaveData ofd_packets/00123348 [20:29:45]File name is /storage/ofd_packets/00123348 [20:29:45]Write 301 bytes [20:29:45]NVStorageSaveData done [20:29:45]OFDSenderStorePacket done [20:29:45]KKMCreateOFDPacket done [20:29:45]NVStorageSaveData kkm_last_timestamp [20:29:45]File name is /storage/kkm_last_timestamp [20:29:45]Write 4 bytes [20:29:45]NVStorageSaveData done [20:29:45]ExternCall_PrintAddStr [20:29:45]wPrintStart [20:29:45]Write to MH i2c: 01 00 00 0A 4B 55 [20:29:45]Write i2c OK [20:29:45]MH_I2C_Read... [20:29:45]Read from MH i2c: 01 [20:29:45]MH_I2C_Read... [20:29:45]Read from MH i2c: 01 07 00 [20:29:45]MH_I2C_Read... [20:29:45]Read from MH i2c: 01 07 00 0A 4B 00 00 00 00 00 FF 0F 6A [20:29:45]RasterBufferAndPrint [20:29:45]line Счет N : (1)1106315 [20:29:45]line ИНН: 02508201610067 [20:29:45]line Контрольно-Кассовый Чек [20:29:45]line ПРОДАЖА [20:29:45]line ТРК (МРК, ГНК) : 53 [20:29:45]line Товар: 2710124500 [20:29:45]line Аи-95-К-5 [20:29:45]line 14.390 * 69.50 [20:29:45]line = 1000.11 [20:29:45]line НДС 12% НСП 1% [20:29:45]line > о реализуемом товаре [20:29:45]line ИТОГО: 1000.11 [20:29:45]line НСП 1% : 8.85 [20:29:45]line НДС 12% : 106.21 [20:29:45]line Наличными: 0.00 [20:29:45]line Безнал.: 1000.11 [20:29:45]line Место: АЗС № 25 "Партнер Нефть" [20:29:45]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [20:29:45]line СНО: Общий режим [20:29:45]line Чек 205 03.03.2024 20:29 [20:29:45]line Смена: 323 ФФД: 1.0 [20:29:45]line ЗНМ: 0300000019 [20:29:45]line РНМ: 0000000000090573 [20:29:45]line Версия ККМ: 001 [20:29:45]line Платежная система: Бакай Банк [20:29:45]line ФМ: 0000000000874798 [20:29:45]line ФД: 123348 [20:29:45]line ФПД: 70011228616250 [20:29:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T202949&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123348&fm=70011228616250&tin=02508201610067®Number=0000000000090573&sum=100011 [20:29:46]OFD Sender: Processing packet 123348 [packets to send 112, broken 111] [20:29:46]ProducePacketName [20:29:46]name=ofd_packets/00123348 [20:29:46]OFD Sender: To server: pG, [20:29:46]CommunicateWithHost lk.salyk.kg:30040 [20:29:46]ConnectInit lk.salyk.kg [20:29:46]written 0, free lines is 4095 [20:29:46]Connected sock=10 [20:29: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 37 39 38 0F 01 00 00 72 A7 07 01 3B FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 BD DD E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 D4 E1 01 00 35 04 06 00 3F AC C2 69 76 3A 1D A9 D2 85 2D 77 D8 12 [20:29:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 67 3C 47 00 3F 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 37 39 38 10 04 04 00 D4 E1 01 00 F4 03 04 00 E7 89 E4 65 B6 04 01 00 00 7B B1 D7 30 84 C1 C0 33 [20:29:46]CommunicateWithHost err = 0 [20:29:46]CheckOFDResponse [20:29:46]1017 (14) - 77093643461234 [20:29:46]1041 (16) - 0000000000874798 [20:29:46]1040 (4) - 123348 [20:29:46]1012 (4) - 03.03.2024 14:32 [20:29:46]1206 (1) - 0 [20:29:46]OFD Sender: Remove packet 123348 [20:29:46]ProducePacketName [20:29:46]name=ofd_packets/00123348 [20:29:46]NVStorageDeleteData [20:29:46]Write to MH i2c: 01 00 00 34 4B 7F [20:29:46]Write i2c OK [20:29:46]MH_I2C_Read... [20:29:46]Read from MH i2c: 01 [20:29:46]MH_I2C_Read... [20:29:46]Read from MH i2c: 01 07 00 [20:29:46]MH_I2C_Read... [20:29:46]Read from MH i2c: 01 07 00 34 4B 00 00 00 00 00 0D 0D A0 [20:29:46]RasterBufferAndPrint [20:29:46]line [20:29:46]line [20:29:46]line [20:29:46]line [20:29:46]line [20:29:46]written 0, free lines is 3347 [20:29:46]MH_Cut [20:29:46]Write to MH i2c: D1 01 00 3B 4B 01 58 [20:29:46]Write i2c OK [20:29:46]MH_I2C_Read... [20:29:46]Read from MH i2c: D1 [20:29:46]MH_I2C_Read... [20:29:46]Read from MH i2c: D1 01 00 [20:29:46]MH_I2C_Read... [20:29:46]Read from MH i2c: D1 01 00 3B 4B 00 57 [20:29:46]Write to MH i2c: 01 00 00 3C 4B 87 [20:29:46]Write i2c OK [20:29:46]MH_I2C_Read... [20:29:47]OFD Sender: No OFD packet to send [20:29:47]*** Cut start [20:29:47]*** Purtial cut [20:29:47]*** Stage 1: CUTSNS_PIN = 1 [20:29:49]Read from MH i2c: 01 [20:29:49]MH_I2C_Read... [20:29:49]*** Stop cut motor [20:29:49]*** Cut end [20:29:49]Read from MH i2c: 01 07 00 [20:29:49]MH_I2C_Read... [20:29:49]Read from MH i2c: 01 07 00 3C 4B 00 00 00 00 00 FF 0F 9C [20:29:49]process_action close_receipt done [20:29:49]requested_data is exist [20:29:49]produce_requested_data [20:29:49]requested_item fm.sn is exist - process it [20:29:49]wFMCommunicate request_size=4 [20:29:49]MH_SAM_APDU [20:29:49]CAPDU: 80 11 00 00 [20:29:49]Write to MH i2c: E2 08 00 3D 4B 80 11 00 00 00 00 00 00 02 [20:29:49]Write i2c OK [20:29:49]MH_I2C_Read... [20:29:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:29:49]Read from MH i2c: E2 [20:29:49]MH_I2C_Read... [20:29:49]Read from MH i2c: E2 17 00 [20:29:49]MH_I2C_Read... [20:29:49]Read from MH i2c: E2 17 00 3D 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 60 [20:29:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [20:29:49]wFMCommunicate OK [20:29:49]requested_item fd.num is exist - process it [20:29:49]SAM_PROTO_GetFieldsCounters [20:29:49]wFMCommunicate request_size=4 [20:29:49]MH_SAM_APDU [20:29:49]CAPDU: 80 13 00 00 [20:29:49]Write to MH i2c: E2 08 00 3E 4B 80 13 00 00 00 00 00 00 05 [20:29:49]Write i2c OK [20:29:49]MH_I2C_Read... [20:29:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:29:49]Read from MH i2c: E2 [20:29:49]MH_I2C_Read... [20:29:49]Read from MH i2c: E2 62 00 [20:29:49]MH_I2C_Read... [20:29:49]Read from MH i2c: E2 62 00 3E 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 D4 E1 01 00 0E 04 04 00 43 01 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 91 [20:29: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 D4 E1 01 00 0E 04 04 00 43 01 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 [20:29:49]wFMCommunicate OK [20:29:49]SAM_PROTO_GetFieldsCounters done [20:29:49]requested_item shift.num is exist - process it [20:29:49]requested_item shift.opened is exist - process it [20:29:49]req_shift_opened [20:29:49]FM_GetShiftState [20:29:49]SAM_PROTO_GetShiftState [20:29:49]wFMCommunicate request_size=4 [20:29:49]MH_SAM_APDU [20:29:49]CAPDU: 80 13 01 00 [20:29:49]Write to MH i2c: E2 08 00 3F 4B 80 13 01 00 00 00 00 00 07 [20:29:49]Write i2c OK [20:29:49]MH_I2C_Read... [20:29:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:29:49]Read from MH i2c: E2 [20:29:49]MH_I2C_Read... [20:29:49]Read from MH i2c: E2 0E 00 [20:29:49]MH_I2C_Read... [20:29:49]Read from MH i2c: E2 0E 00 3F 4B 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 C9 [20:29:49]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [20:29:49]wFMCommunicate OK [20:29:49]SAM_PROTO_GetShiftState done [20:29:49]FM_GetShiftState done [20:29:49]req_shift_opened done [20:29:49]requested_item shift.open_date is exist - process it [20:29:49]req_shift_open_date [20:29:49]req_shift_open_date done [20:29:49]produce_requested_data done [20:29:49]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123348,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [20:29:49]process_action_free close_receipt [20:29:49]json_value_free [20:29:49]json_value_free done [20:29:49]process_json_proto returns [20:29:49]Send response to host [20:29:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123348,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [20:29:49]free response buf [20:29:49]execute_script done [20:29:49]execute_script returns [20:29:49]free content buf [20:29:49]Sock 9.Close socket [20:29:49]Sock 9.Thread stoped [20:29:52]OFD Sender: No OFD packet to send [20:29:57]OFD Sender: No OFD packet to send [20:30:02]OFD Sender: No OFD packet to send [20:30:07]OFD Sender: No OFD packet to send [20:30:12]OFD Sender: No OFD packet to send [20:30:17]OFD Sender: No OFD packet to send [20:30:22]OFD Sender: No OFD packet to send [20:30:27]OFD Sender: No OFD packet to send [20:30:32]OFD Sender: No OFD packet to send [20:30:37]OFD Sender: No OFD packet to send [20:30:42]OFD Sender: No OFD packet to send [20:30:47]OFD Sender: No OFD packet to send [20:30:52]OFD Sender: No OFD packet to send [20:30:57]OFD Sender: No OFD packet to send [20:31:02]OFD Sender: No OFD packet to send [20:31:07]OFD Sender: No OFD packet to send [20:31:12]OFD Sender: No OFD packet to send [20:31:17]OFD Sender: No OFD packet to send [20:31:22]OFD Sender: No OFD packet to send [20:31:27]OFD Sender: No OFD packet to send [20:31:32]OFD Sender: No OFD packet to send [20:31:37]OFD Sender: No OFD packet to send [20:31:39]accept exits with 7 [20:31:39]New connection [20:31:39]New thread 3067395428 created [20:31:39]Thread 3067252068 joined [20:31:39]Waiting for new connection... [20:31:39] Sock 7.Parse request [20:31:39]Sock 7.Check first char [20:31:39]Sock 7.First char is OK [20:31:39]request: POST /json_proto HTTP/1.0 [20:31:39]Method: POST [20:31:39]URL: /json_proto [20:31:39]Method is POST - this is cgi request [20:31:39]url: /json_proto [20:31:39]query_string will be loaded in cgi processing [20:31:39]execute_cgi json_proto POST (null) [20:31:39]execute_cgi path=json_proto method=POST [20:31:39]POST find Content-Length [20:31:39]Host: 172.17.48.197:8080 [20:31:39]Content-Length: 678 [20:31:39]Content-Type: application/json [20:31:39] [20:31:39]POST finish read [20:31:39]Found Content-Length = 678 [20:31:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106317", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 4.850, "sum" : 300.22, "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" ] } } [20:31:39]execute_script... [20:31: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)1106317", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 4.850, "sum" : 300.22, "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" ] } } [20:31:39]POST & json_proto [20:31:39]process_json_proto [20:31:39]json parsed OK: [20:31:39]protocol is kg_v1.0 [20:31:39]action value=close_receipt [20:31:39]process_action close_receipt [20:31:39]cmd_close_receipt [20:31:39]MH_GetDate [20:31:39]Write to MH i2c: F0 00 00 40 4B 7A [20:31:39]Write i2c OK [20:31:39]MH_I2C_Read... [20:31:39]Read from MH i2c: F0 [20:31:39]MH_I2C_Read... [20:31:39]Read from MH i2c: F0 09 00 [20:31:39]MH_I2C_Read... [20:31:39]Read from MH i2c: F0 09 00 40 4B 00 30 DE E4 65 6C AF E3 65 3D [20:31:39]GetLastDocTimeStamp 1709497789 [20:31:39]current date 1709497904 [20:31:39]FM_GetShiftState [20:31:39]SAM_PROTO_GetShiftState [20:31:39]wFMCommunicate request_size=4 [20:31:39]MH_SAM_APDU [20:31:39]CAPDU: 80 13 01 00 [20:31:39]Write to MH i2c: E2 08 00 41 4B 80 13 01 00 00 00 00 00 09 [20:31:39]Write i2c OK [20:31:39]MH_I2C_Read... [20:31:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:31:39]Read from MH i2c: E2 [20:31:39]MH_I2C_Read... [20:31:39]Read from MH i2c: E2 0E 00 [20:31:39]MH_I2C_Read... [20:31:39]Read from MH i2c: E2 0E 00 41 4B 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 CB [20:31:39]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [20:31:39]wFMCommunicate OK [20:31:39]SAM_PROTO_GetShiftState done [20:31:39]FM_GetShiftState done [20:31:39]opened in 1709425579 [20:31:39]opened+sec_in_day 1709511979 [20:31:39]quantity*price = 30021 [20:31:39]sum+1 = 30023 [20:31:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.88 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 206 03.03.2024 20:31 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123349 ФПД: 139594066889981 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T203144&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123349&fm=139594066889981&tin=02508201610067®Number=0000000000090573&sum=30000 [20:31:41]StoreToDocumentArchive [20:31:41]shift 323 fd 123349 [20:31:41]save to /storage/0323/doc_00123349 [20:31:41]save last doc name /storage/0323/doc_00123349 to /storage/kkm_last_doc_name [20:31:41]save OK [20:31:41]Clear old archive folders... [20:31:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:31:41]tlvbuf is 00EA6F20 [20:31:41]SAM_PROTO_ClearQueue [20:31:41]wFMCommunicate request_size=4 [20:31:41]MH_SAM_APDU [20:31:41]CAPDU: 80 09 00 00 [20:31:41]Write to MH i2c: E2 08 00 4E 4B 80 09 00 00 00 00 00 00 0B [20:31:41]Write i2c OK [20:31:41]MH_I2C_Read... [20:31:41]Read from MH i2c: E2 [20:31:41]MH_I2C_Read... [20:31:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:31:41]Read from MH i2c: E2 03 00 [20:31:41]MH_I2C_Read... [20:31:41]Read from MH i2c: E2 03 00 4E 4B 00 90 00 0D [20:31:41]RAPDU: 90 00 [20:31:41]wFMCommunicate OK [20:31:41]SAM_PROTO_ClearQueue done [20:31:41]KKMCreateOFDPacket [20:31:41]OFDProtocolAddRootSTLVToBuf [20:31:41]FM_MakeSignedData [20:31:41]FM_MakeSignedData [20:31:41]SAM_PROTO_SignData [20:31:41]wFMCommunicate request_size=4 [20:31:41]MH_SAM_APDU [20:31:41]CAPDU: 80 0D 01 02 [20:31:41]Write to MH i2c: E2 08 00 4F 4B 80 0D 01 02 00 00 00 00 13 [20:31:41]Write i2c OK [20:31:41]MH_I2C_Read... [20:31:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:31:41]Read from MH i2c: E2 [20:31:41]MH_I2C_Read... [20:31:41]Read from MH i2c: E2 03 00 [20:31:41]MH_I2C_Read... [20:31:41]Read from MH i2c: E2 03 00 4F 4B 00 90 00 0E [20:31:41]RAPDU: 90 00 [20:31:41]wFMCommunicate OK [20:31:41]wFMCommunicate request_size=255 [20:31:41]MH_SAM_APDU [20:31: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 35 FF 03 08 00 03 F2 12 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 46 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 74 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 CE 00 00 00 F4 03 04 00 30 DE E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 D5 E1 01 00 35 04 06 00 7E [20:31:41]Write to MH i2c: E2 02 01 50 4B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 12 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 46 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 74 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 CE 00 00 00 F4 03 04 00 30 DE E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 D5 E1 01 00 35 04 06 00 7E 00 00 9F [20:31:41]Write i2c OK [20:31:41]MH_I2C_Read... [20:31:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:31:41]Read from MH i2c: E2 [20:31:41]MH_I2C_Read... [20:31:41]Read from MH i2c: E2 03 00 [20:31:41]MH_I2C_Read... [20:31:41]Read from MH i2c: E2 03 00 50 4B 00 90 00 0F [20:31:41]RAPDU: 90 00 [20:31:41]wFMCommunicate OK [20:31:41]wFMCommunicate request_size=10 [20:31:41]MH_SAM_APDU [20:31:41]CAPDU: 80 0D 02 02 05 F5 C6 C5 0C FD [20:31:41]Write to MH i2c: E2 0D 00 51 4B 80 0D 02 02 05 00 F5 C6 C5 0C FD 00 00 A9 [20:31:41]Write i2c OK [20:31:41]MH_I2C_Read... [20:31:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:31:41]Read from MH i2c: E2 [20:31:41]MH_I2C_Read... [20:31:41]Read from MH i2c: E2 03 00 [20:31:41]MH_I2C_Read... [20:31:41]Read from MH i2c: E2 03 00 51 4B 00 90 00 10 [20:31:41]RAPDU: 90 00 [20:31:41]wFMCommunicate OK [20:31:41]wFMCommunicate request_size=4 [20:31:41]MH_SAM_APDU [20:31:41]CAPDU: 80 0D 03 02 [20:31:41]Write to MH i2c: E2 08 00 52 4B 80 0D 03 02 00 00 00 00 18 [20:31:41]Write i2c OK [20:31:41]MH_I2C_Read... [20:31:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:31:41]Read from MH i2c: E2 [20:31:41]MH_I2C_Read... [20:31:41]Read from MH i2c: E2 0B 00 [20:31:41]MH_I2C_Read... [20:31:41]Read from MH i2c: E2 0B 00 52 4B 00 7C 79 08 09 1A 3E 75 6F 90 00 5B [20:31:41]RAPDU: 7C 79 08 09 1A 3E 75 6F 90 00 [20:31:41]wFMCommunicate OK [20:31:41]SAM_PROTO_SignData done [20:31:41]FM_MakeSignedData done [20:31:41]CreateOFDProtocolMessage [20:31:41]wFMCommunicate request_size=4 [20:31:41]MH_SAM_APDU [20:31:41]CAPDU: 80 11 00 00 [20:31:41]Write to MH i2c: E2 08 00 53 4B 80 11 00 00 00 00 00 00 18 [20:31:41]Write i2c OK [20:31:41]MH_I2C_Read... [20:31:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:31:41]Read from MH i2c: E2 [20:31:41]MH_I2C_Read... [20:31:41]Read from MH i2c: E2 17 00 [20:31:41]MH_I2C_Read... [20:31:41]Read from MH i2c: E2 17 00 53 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 76 [20:31:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [20:31:41]wFMCommunicate OK [20:31:41]CreateOFDProtocolMessage done [20:31:41]OFDSenderStorePacket 123349 [20:31:41]StoreOFDPacket docnum=123349 [20:31:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 80 5F 07 01 D8 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 35 FF 03 08 00 03 F2 12 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 46 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 74 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 CE 00 00 00 F4 03 04 00 30 DE E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 D5 E1 01 00 35 04 06 00 7E F5 C6 C5 0C FD 7C 79 08 09 1A 3E 75 6F [20:31:41]CheckFolder [20:31:41]dirname=/storage/ofd_packets [20:31:41]CheckFolder done [20:31:41]ProducePacketName [20:31:41]name=ofd_packets/00123349 [20:31:41]NVStorageSaveData ofd_packets/00123349 [20:31:41]File name is /storage/ofd_packets/00123349 [20:31:41]Write 301 bytes [20:31:41]NVStorageSaveData done [20:31:41]OFDSenderStorePacket done [20:31:41]KKMCreateOFDPacket done [20:31:41]NVStorageSaveData kkm_last_timestamp [20:31:41]File name is /storage/kkm_last_timestamp [20:31:41]Write 4 bytes [20:31:41]NVStorageSaveData done [20:31:41]ExternCall_PrintAddStr [20:31:41]wPrintStart [20:31:41]Write to MH i2c: 01 00 00 54 4B 9F [20:31:41]Write i2c OK [20:31:41]MH_I2C_Read... [20:31:41]Read from MH i2c: 01 [20:31:41]MH_I2C_Read... [20:31:41]Read from MH i2c: 01 07 00 [20:31:41]MH_I2C_Read... [20:31:41]Read from MH i2c: 01 07 00 54 4B 00 00 00 00 00 FF 0F B4 [20:31:41]RasterBufferAndPrint [20:31:41]line Счет N : (1)1106317 [20:31:41]line ИНН: 02508201610067 [20:31:41]line Контрольно-Кассовый Чек [20:31:41]line ПРОДАЖА [20:31:41]line ТРК (МРК, ГНК) : 62 [20:31:41]line Товар: 2710124130 [20:31:41]line Аи-92-К-5 [20:31:41]line 4.850 * 61.90 [20:31:41]line = 300.22 [20:31:41]line НДС 12% НСП 1% [20:31:41]line > о реализуемом товаре [20:31:41]line ОКРУГЛЕНИЕ: -0.22 [20:31:41]line ИТОГО: 300.00 [20:31:41]line Внесено: 300.00 [20:31:41]line СДАЧА: 0.00 [20:31:41]line НСП 1% : 2.66 [20:31:41]line НДС 12% : 31.88 [20:31:41]line Наличными: 300.00 [20:31:41]line Безнал.: 0.00 [20:31:41]line Место: АЗС № 25 "Партнер Нефть" [20:31:41]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [20:31:41]line СНО: Общий режим [20:31:41]line Чек 206 03.03.2024 20:31 [20:31:41]line Смена: 323 ФФД: 1.0 [20:31:41]line ЗНМ: 0300000019 [20:31:41]line РНМ: 0000000000090573 [20:31:41]line Версия ККМ: 001 [20:31:41]line ФМ: 0000000000874798 [20:31:41]line ФД: 123349 [20:31:41]line ФПД: 139594066889981 [20:31:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T203144&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123349&fm=139594066889981&tin=02508201610067®Number=0000000000090573&sum=30000 [20:31:41]written 0, free lines is 4095 [20:31:41]OFD Sender: Processing packet 123349 [packets to send 112, broken 111] [20:31:41]ProducePacketName [20:31:41]name=ofd_packets/00123349 [20:31:41]OFD Sender: To server: pG, [20:31:41]CommunicateWithHost lk.salyk.kg:30040 [20:31:41]ConnectInit lk.salyk.kg [20:31:42]Connected sock=10 [20:31: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 37 39 38 0F 01 00 00 80 5F 07 01 D8 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 35 FF 03 08 00 03 F2 12 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 46 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 74 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 CE 00 00 00 F4 03 04 00 30 DE E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 D5 E1 01 00 35 04 06 00 7E F5 C6 C5 0C FD 7C 79 08 09 1A 3E 75 6F [20:31:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 2F DE 47 00 6A D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 D5 E1 01 00 F4 03 04 00 5B 8A E4 65 B6 04 01 00 00 9B 89 14 30 08 86 D2 EE [20:31:42]CommunicateWithHost err = 0 [20:31:42]CheckOFDResponse [20:31:42]1017 (14) - 77093643461234 [20:31:42]1041 (16) - 0000000000874798 [20:31:42]1040 (4) - 123349 [20:31:42]1012 (4) - 03.03.2024 14:34 [20:31:42]1206 (1) - 0 [20:31:42]OFD Sender: Remove packet 123349 [20:31:42]ProducePacketName [20:31:42]name=ofd_packets/00123349 [20:31:42]NVStorageDeleteData [20:31:42]Write to MH i2c: 01 00 00 7F 4B CA [20:31:42]Write i2c OK [20:31:42]MH_I2C_Read... [20:31:42]Read from MH i2c: 01 [20:31:42]MH_I2C_Read... [20:31:42]Read from MH i2c: 01 07 00 [20:31:42]MH_I2C_Read... [20:31:42]Read from MH i2c: 01 07 00 7F 4B 00 00 00 00 00 F8 0C D5 [20:31:42]RasterBufferAndPrint [20:31:42]line [20:31:42]line [20:31:42]line [20:31:42]line [20:31:42]line [20:31:42]written 0, free lines is 3329 [20:31:42]MH_Cut [20:31:42]Write to MH i2c: D1 01 00 86 4B 01 A3 [20:31:42]Write i2c OK [20:31:42]MH_I2C_Read... [20:31:42]Read from MH i2c: D1 [20:31:42]MH_I2C_Read... [20:31:42]Read from MH i2c: D1 01 00 [20:31:42]MH_I2C_Read... [20:31:42]Read from MH i2c: D1 01 00 86 4B 00 A2 [20:31:42]Write to MH i2c: 01 00 00 87 4B D2 [20:31:42]Write i2c OK [20:31:42]MH_I2C_Read... [20:31:42]OFD Sender: No OFD packet to send [20:31:43]*** Cut start [20:31:43]*** Purtial cut [20:31:43]*** Stage 1: CUTSNS_PIN = 1 [20:31:45]Read from MH i2c: 01 [20:31:45]MH_I2C_Read... [20:31:45]*** Stop cut motor [20:31:45]*** Cut end [20:31:45]Read from MH i2c: 01 07 00 [20:31:45]MH_I2C_Read... [20:31:45]Read from MH i2c: 01 07 00 87 4B 00 00 00 00 00 FF 0F E7 [20:31:45]process_action close_receipt done [20:31:45]requested_data is exist [20:31:45]produce_requested_data [20:31:45]requested_item fm.sn is exist - process it [20:31:45]wFMCommunicate request_size=4 [20:31:45]MH_SAM_APDU [20:31:45]CAPDU: 80 11 00 00 [20:31:45]Write to MH i2c: E2 08 00 88 4B 80 11 00 00 00 00 00 00 4D [20:31:45]Write i2c OK [20:31:45]MH_I2C_Read... [20:31:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:31:45]Read from MH i2c: E2 [20:31:45]MH_I2C_Read... [20:31:45]Read from MH i2c: E2 17 00 [20:31:45]MH_I2C_Read... [20:31:45]Read from MH i2c: E2 17 00 88 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 AB [20:31:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [20:31:45]wFMCommunicate OK [20:31:45]requested_item fd.num is exist - process it [20:31:45]SAM_PROTO_GetFieldsCounters [20:31:45]wFMCommunicate request_size=4 [20:31:45]MH_SAM_APDU [20:31:45]CAPDU: 80 13 00 00 [20:31:45]Write to MH i2c: E2 08 00 89 4B 80 13 00 00 00 00 00 00 50 [20:31:45]Write i2c OK [20:31:45]MH_I2C_Read... [20:31:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:31:45]Read from MH i2c: E2 [20:31:45]MH_I2C_Read... [20:31:45]Read from MH i2c: E2 62 00 [20:31:45]MH_I2C_Read... [20:31:45]Read from MH i2c: E2 62 00 89 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 D5 E1 01 00 0E 04 04 00 43 01 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 E0 [20:31: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 D5 E1 01 00 0E 04 04 00 43 01 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 [20:31:45]wFMCommunicate OK [20:31:45]SAM_PROTO_GetFieldsCounters done [20:31:45]requested_item shift.num is exist - process it [20:31:45]requested_item shift.opened is exist - process it [20:31:45]req_shift_opened [20:31:45]FM_GetShiftState [20:31:45]SAM_PROTO_GetShiftState [20:31:45]wFMCommunicate request_size=4 [20:31:45]MH_SAM_APDU [20:31:45]CAPDU: 80 13 01 00 [20:31:45]Write to MH i2c: E2 08 00 8A 4B 80 13 01 00 00 00 00 00 52 [20:31:45]Write i2c OK [20:31:45]MH_I2C_Read... [20:31:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:31:45]Read from MH i2c: E2 [20:31:45]MH_I2C_Read... [20:31:45]Read from MH i2c: E2 0E 00 [20:31:45]MH_I2C_Read... [20:31:45]Read from MH i2c: E2 0E 00 8A 4B 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 14 [20:31:45]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [20:31:45]wFMCommunicate OK [20:31:45]SAM_PROTO_GetShiftState done [20:31:45]FM_GetShiftState done [20:31:45]req_shift_opened done [20:31:45]requested_item shift.open_date is exist - process it [20:31:45]req_shift_open_date [20:31:45]req_shift_open_date done [20:31:45]produce_requested_data done [20:31:45]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123349,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [20:31:45]process_action_free close_receipt [20:31:45]json_value_free [20:31:45]json_value_free done [20:31:45]process_json_proto returns [20:31:45]Send response to host [20:31:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123349,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [20:31:45]free response buf [20:31:45]execute_script done [20:31:45]execute_script returns [20:31:45]free content buf [20:31:45]Sock 7.Close socket [20:31:45]Sock 7.Thread stoped [20:31:47]OFD Sender: No OFD packet to send [20:31:52]OFD Sender: No OFD packet to send [20:31:57]OFD Sender: No OFD packet to send [20:32:02]OFD Sender: No OFD packet to send [20:32:07]OFD Sender: No OFD packet to send [20:32:12]OFD Sender: No OFD packet to send [20:32:17]OFD Sender: No OFD packet to send [20:32:22]OFD Sender: No OFD packet to send [20:32:27]OFD Sender: No OFD packet to send [20:32:32]OFD Sender: No OFD packet to send [20:32:37]OFD Sender: No OFD packet to send [20:32:42]OFD Sender: No OFD packet to send [20:32:47]OFD Sender: No OFD packet to send [20:32:52]OFD Sender: No OFD packet to send [20:32:57]OFD Sender: No OFD packet to send [20:33:02]OFD Sender: No OFD packet to send [20:33:07]OFD Sender: No OFD packet to send [20:33:12]OFD Sender: No OFD packet to send [20:33:17]OFD Sender: No OFD packet to send [20:33:22]OFD Sender: No OFD packet to send [20:33:27]OFD Sender: No OFD packet to send [20:33:32]OFD Sender: No OFD packet to send [20:33:37]OFD Sender: No OFD packet to send [20:33:42]OFD Sender: No OFD packet to send [20:33:47]OFD Sender: No OFD packet to send [20:33:50]accept exits with 9 [20:33:50]New connection [20:33:50]New thread 3067252068 created [20:33:50]Thread 3067395428 joined [20:33:50]Waiting for new connection... [20:33:50] Sock 9.Parse request [20:33:50]Sock 9.Check first char [20:33:50]Sock 9.First char is OK [20:33:50]request: POST /json_proto HTTP/1.0 [20:33:50]Method: POST [20:33:50]URL: /json_proto [20:33:50]Method is POST - this is cgi request [20:33:50]url: /json_proto [20:33:50]query_string will be loaded in cgi processing [20:33:50]execute_cgi json_proto POST (null) [20:33:50]execute_cgi path=json_proto method=POST [20:33:50]POST find Content-Length [20:33:50]Host: 172.17.48.197:8080 [20:33:50]Content-Length: 820 [20:33:50]Content-Type: application/json [20:33:50] [20:33:50]POST finish read [20:33:50]Found Content-Length = 820 [20:33:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106318", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 28.780, "sum" : 2000.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.21 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:33:50]execute_script... [20:33: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)1106318", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 28.780, "sum" : 2000.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.21 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:33:50]POST & json_proto [20:33:50]process_json_proto [20:33:50]json parsed OK: [20:33:50]protocol is kg_v1.0 [20:33:50]action value=close_receipt [20:33:50]process_action close_receipt [20:33:50]cmd_close_receipt [20:33:50]MH_GetDate [20:33:50]Write to MH i2c: F0 00 00 8B 4B C5 [20:33:50]Write i2c OK [20:33:50]MH_I2C_Read... [20:33:50]Read from MH i2c: F0 [20:33:50]MH_I2C_Read... [20:33:50]Read from MH i2c: F0 09 00 [20:33:50]MH_I2C_Read... [20:33:50]Read from MH i2c: F0 09 00 8B 4B 00 B3 DE E4 65 6C AF E3 65 0B [20:33:50]GetLastDocTimeStamp 1709497904 [20:33:50]current date 1709498035 [20:33:50]FM_GetShiftState [20:33:50]SAM_PROTO_GetShiftState [20:33:50]wFMCommunicate request_size=4 [20:33:50]MH_SAM_APDU [20:33:50]CAPDU: 80 13 01 00 [20:33:50]Write to MH i2c: E2 08 00 8C 4B 80 13 01 00 00 00 00 00 54 [20:33:50]Write i2c OK [20:33:50]MH_I2C_Read... [20:33:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:33:50]Read from MH i2c: E2 [20:33:50]MH_I2C_Read... [20:33:50]Read from MH i2c: E2 0E 00 [20:33:50]MH_I2C_Read... [20:33:50]Read from MH i2c: E2 0E 00 8C 4B 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 16 [20:33:50]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [20:33:50]wFMCommunicate OK [20:33:50]SAM_PROTO_GetShiftState done [20:33:50]FM_GetShiftState done [20:33:50]opened in 1709425579 [20:33:50]opened+sec_in_day 1709511979 [20:33:50]quantity*price = 200021 [20:33:50]sum+1 = 200022 [20:33:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.21 НСП 1% : 17.70 НДС 12% : 212.41 Наличными: 0.00 Безнал.: 2000.21 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 207 03.03.2024 20:33 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874798 ФД: 123350 ФПД: 101110353223144 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T203355&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123350&fm=101110353223144&tin=02508201610067®Number=0000000000090573&sum=200021 [20:33:51]StoreToDocumentArchive [20:33:51]shift 323 fd 123350 [20:33:51]save to /storage/0323/doc_00123350 [20:33:51]save last doc name /storage/0323/doc_00123350 to /storage/kkm_last_doc_name [20:33:51]save OK [20:33:51]Clear old archive folders... [20:33:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:33:51]tlvbuf is 00F21170 [20:33:51]SAM_PROTO_ClearQueue [20:33:51]wFMCommunicate request_size=4 [20:33:51]MH_SAM_APDU [20:33:51]CAPDU: 80 09 00 00 [20:33:51]Write to MH i2c: E2 08 00 99 4B 80 09 00 00 00 00 00 00 56 [20:33:51]Write i2c OK [20:33:51]MH_I2C_Read... [20:33:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:33:51]Read from MH i2c: E2 [20:33:51]MH_I2C_Read... [20:33:51]Read from MH i2c: E2 03 00 [20:33:51]MH_I2C_Read... [20:33:51]Read from MH i2c: E2 03 00 99 4B 00 90 00 58 [20:33:51]RAPDU: 90 00 [20:33:51]wFMCommunicate OK [20:33:51]SAM_PROTO_ClearQueue done [20:33:51]KKMCreateOFDPacket [20:33:51]OFDProtocolAddRootSTLVToBuf [20:33:51]FM_MakeSignedData [20:33:51]FM_MakeSignedData [20:33:51]SAM_PROTO_SignData [20:33:51]wFMCommunicate request_size=4 [20:33:51]MH_SAM_APDU [20:33:51]CAPDU: 80 0D 01 02 [20:33:51]Write to MH i2c: E2 08 00 9A 4B 80 0D 01 02 00 00 00 00 5E [20:33:51]Write i2c OK [20:33:51]MH_I2C_Read... [20:33:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:33:51]Read from MH i2c: E2 [20:33:51]MH_I2C_Read... [20:33:51]Read from MH i2c: E2 03 00 [20:33:51]MH_I2C_Read... [20:33:51]Read from MH i2c: E2 03 00 9A 4B 00 90 00 59 [20:33:51]RAPDU: 90 00 [20:33:51]wFMCommunicate OK [20:33:51]wFMCommunicate request_size=255 [20:33:51]MH_SAM_APDU [20:33:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 6C 70 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 55 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 55 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 55 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 B3 DE E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 D6 E1 01 00 35 04 06 00 5B [20:33:51]Write to MH i2c: E2 02 01 9B 4B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 6C 70 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 55 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 55 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 55 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 B3 DE E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 D6 E1 01 00 35 04 06 00 5B 00 00 FD [20:33:51]Write i2c OK [20:33:51]MH_I2C_Read... [20:33:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:33:51]Read from MH i2c: E2 [20:33:51]MH_I2C_Read... [20:33:51]Read from MH i2c: E2 03 00 [20:33:51]MH_I2C_Read... [20:33:51]Read from MH i2c: E2 03 00 9B 4B 00 90 00 5A [20:33:51]RAPDU: 90 00 [20:33:51]wFMCommunicate OK [20:33:51]wFMCommunicate request_size=10 [20:33:51]MH_SAM_APDU [20:33:51]CAPDU: 80 0D 02 02 05 F5 96 AF DD E8 [20:33:51]Write to MH i2c: E2 0D 00 9C 4B 80 0D 02 02 05 00 F5 96 AF DD E8 00 00 6A [20:33:51]Write i2c OK [20:33:51]MH_I2C_Read... [20:33:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:33:51]Read from MH i2c: E2 [20:33:51]MH_I2C_Read... [20:33:51]Read from MH i2c: E2 03 00 [20:33:51]MH_I2C_Read... [20:33:51]Read from MH i2c: E2 03 00 9C 4B 00 90 00 5B [20:33:51]RAPDU: 90 00 [20:33:51]wFMCommunicate OK [20:33:51]wFMCommunicate request_size=4 [20:33:51]MH_SAM_APDU [20:33:51]CAPDU: 80 0D 03 02 [20:33:51]Write to MH i2c: E2 08 00 9D 4B 80 0D 03 02 00 00 00 00 63 [20:33:51]Write i2c OK [20:33:51]MH_I2C_Read... [20:33:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:33:51]Read from MH i2c: E2 [20:33:51]MH_I2C_Read... [20:33:51]Read from MH i2c: E2 0B 00 [20:33:51]MH_I2C_Read... [20:33:51]Read from MH i2c: E2 0B 00 9D 4B 00 F8 BA B1 2B 43 73 1B 31 90 00 F4 [20:33:51]RAPDU: F8 BA B1 2B 43 73 1B 31 90 00 [20:33:51]wFMCommunicate OK [20:33:51]SAM_PROTO_SignData done [20:33:51]FM_MakeSignedData done [20:33:51]CreateOFDProtocolMessage [20:33:51]wFMCommunicate request_size=4 [20:33:51]MH_SAM_APDU [20:33:51]CAPDU: 80 11 00 00 [20:33:51]Write to MH i2c: E2 08 00 9E 4B 80 11 00 00 00 00 00 00 63 [20:33:51]Write i2c OK [20:33:51]MH_I2C_Read... [20:33:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:33:51]Read from MH i2c: E2 [20:33:51]MH_I2C_Read... [20:33:51]Read from MH i2c: E2 17 00 [20:33:51]MH_I2C_Read... [20:33:51]Read from MH i2c: E2 17 00 9E 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 C1 [20:33:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [20:33:51]wFMCommunicate OK [20:33:51]CreateOFDProtocolMessage done [20:33:51]OFDSenderStorePacket 123350 [20:33:51]StoreOFDPacket docnum=123350 [20:33:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 E9 FA 07 01 54 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 6C 70 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 55 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 55 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 55 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 B3 DE E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 D6 E1 01 00 35 04 06 00 5B F5 96 AF DD E8 F8 BA B1 2B 43 73 1B 31 [20:33:51]CheckFolder [20:33:51]dirname=/storage/ofd_packets [20:33:51]CheckFolder done [20:33:51]ProducePacketName [20:33:51]name=ofd_packets/00123350 [20:33:51]NVStorageSaveData ofd_packets/00123350 [20:33:51]File name is /storage/ofd_packets/00123350 [20:33:51]Write 301 bytes [20:33:51]NVStorageSaveData done [20:33:51]OFDSenderStorePacket done [20:33:51]KKMCreateOFDPacket done [20:33:51]NVStorageSaveData kkm_last_timestamp [20:33:51]File name is /storage/kkm_last_timestamp [20:33:51]Write 4 bytes [20:33:51]NVStorageSaveData done [20:33:51]ExternCall_PrintAddStr [20:33:51]wPrintStart [20:33:51]Write to MH i2c: 01 00 00 9F 4B EA [20:33:51]Write i2c OK [20:33:51]MH_I2C_Read... [20:33:51]Read from MH i2c: 01 [20:33:51]MH_I2C_Read... [20:33:51]Read from MH i2c: 01 07 00 [20:33:51]MH_I2C_Read... [20:33:51]Read from MH i2c: 01 07 00 9F 4B 00 00 00 00 00 FF 0F FF [20:33:51]RasterBufferAndPrint [20:33:51]line Счет N : (1)1106318 [20:33:51]line ИНН: 02508201610067 [20:33:51]line Контрольно-Кассовый Чек [20:33:51]line ПРОДАЖА [20:33:51]line ТРК (МРК, ГНК) : 13 [20:33:51]line Товар: 2710124500 [20:33:51]line Аи-95-К-5 [20:33:51]line 28.780 * 69.50 [20:33:51]line = 2000.21 [20:33:51]line НДС 12% НСП 1% [20:33:51]line > о реализуемом товаре [20:33:51]line ИТОГО: 2000.21 [20:33:51]line НСП 1% : 17.70 [20:33:51]line НДС 12% : 212.41 [20:33:51]line Наличными: 0.00 [20:33:51]line Безнал.: 2000.21 [20:33:51]line Место: АЗС № 25 "Партнер Нефть" [20:33:51]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [20:33:51]line СНО: Общий режим [20:33:51]line Чек 207 03.03.2024 20:33 [20:33:51]line Смена: 323 ФФД: 1.0 [20:33:51]line ЗНМ: 0300000019 [20:33:51]line РНМ: 0000000000090573 [20:33:51]line Версия ККМ: 001 [20:33:51]line Платежная система: Бакай Банк [20:33:51]line ФМ: 0000000000874798 [20:33:51]line ФД: 123350 [20:33:51]line ФПД: 101110353223144 [20:33:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T203355&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123350&fm=101110353223144&tin=02508201610067®Number=0000000000090573&sum=200021 [20:33:52]OFD Sender: Processing packet 123350 [packets to send 112, broken 111] [20:33:52]ProducePacketName [20:33:52]name=ofd_packets/00123350 [20:33:52]OFD Sender: To server: pG, [20:33:52]CommunicateWithHost lk.salyk.kg:30040 [20:33:52]ConnectInit lk.salyk.kg [20:33:52]written 0, free lines is 4095 [20:33:52]Connected sock=10 [20:33:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 E9 FA 07 01 54 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 6C 70 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 55 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 55 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 55 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 B3 DE E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 D6 E1 01 00 35 04 06 00 5B F5 96 AF DD E8 F8 BA B1 2B 43 73 1B 31 [20:33:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 81 DC 47 00 5D 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 37 39 38 10 04 04 00 D6 E1 01 00 F4 03 04 00 DD 8A E4 65 B6 04 01 00 00 74 85 E9 66 07 A5 C1 2D [20:33:52]CommunicateWithHost err = 0 [20:33:52]CheckOFDResponse [20:33:52]1017 (14) - 77093643461234 [20:33:52]1041 (16) - 0000000000874798 [20:33:52]1040 (4) - 123350 [20:33:52]1012 (4) - 03.03.2024 14:36 [20:33:52]1206 (1) - 0 [20:33:52]OFD Sender: Remove packet 123350 [20:33:52]ProducePacketName [20:33:52]name=ofd_packets/00123350 [20:33:52]NVStorageDeleteData [20:33:52]Write to MH i2c: 01 00 00 C9 4B 14 [20:33:52]Write i2c OK [20:33:52]MH_I2C_Read... [20:33:52]Read from MH i2c: 01 [20:33:52]MH_I2C_Read... [20:33:52]Read from MH i2c: 01 07 00 [20:33:52]MH_I2C_Read... [20:33:52]Read from MH i2c: 01 07 00 C9 4B 00 00 00 00 00 05 0D 2D [20:33:52]RasterBufferAndPrint [20:33:52]line [20:33:52]line [20:33:52]line [20:33:52]line [20:33:52]line [20:33:52]written 0, free lines is 3342 [20:33:52]MH_Cut [20:33:52]Write to MH i2c: D1 01 00 D0 4B 01 ED [20:33:52]Write i2c OK [20:33:52]MH_I2C_Read... [20:33:52]Read from MH i2c: D1 [20:33:52]MH_I2C_Read... [20:33:52]Read from MH i2c: D1 01 00 [20:33:52]MH_I2C_Read... [20:33:52]Read from MH i2c: D1 01 00 D0 4B 00 EC [20:33:52]Write to MH i2c: 01 00 00 D1 4B 1C [20:33:52]Write i2c OK [20:33:52]MH_I2C_Read... [20:33:52]OFD Sender: No OFD packet to send [20:33:53]*** Cut start [20:33:53]*** Purtial cut [20:33:53]*** Stage 1: CUTSNS_PIN = 1 [20:33:55]Read from MH i2c: 01 [20:33:55]MH_I2C_Read... [20:33:55]*** Stop cut motor [20:33:55]*** Cut end [20:33:55]Read from MH i2c: 01 07 00 [20:33:55]MH_I2C_Read... [20:33:55]Read from MH i2c: 01 07 00 D1 4B 00 00 00 00 00 FF 0F 31 [20:33:55]process_action close_receipt done [20:33:55]requested_data is exist [20:33:55]produce_requested_data [20:33:55]requested_item fm.sn is exist - process it [20:33:55]wFMCommunicate request_size=4 [20:33:55]MH_SAM_APDU [20:33:55]CAPDU: 80 11 00 00 [20:33:55]Write to MH i2c: E2 08 00 D2 4B 80 11 00 00 00 00 00 00 97 [20:33:55]Write i2c OK [20:33:55]MH_I2C_Read... [20:33:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:33:55]Read from MH i2c: E2 [20:33:55]MH_I2C_Read... [20:33:55]Read from MH i2c: E2 17 00 [20:33:55]MH_I2C_Read... [20:33:55]Read from MH i2c: E2 17 00 D2 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 F5 [20:33:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [20:33:55]wFMCommunicate OK [20:33:55]requested_item fd.num is exist - process it [20:33:55]SAM_PROTO_GetFieldsCounters [20:33:55]wFMCommunicate request_size=4 [20:33:55]MH_SAM_APDU [20:33:55]CAPDU: 80 13 00 00 [20:33:55]Write to MH i2c: E2 08 00 D3 4B 80 13 00 00 00 00 00 00 9A [20:33:55]Write i2c OK [20:33:55]MH_I2C_Read... [20:33:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:33:55]Read from MH i2c: E2 [20:33:55]MH_I2C_Read... [20:33:55]Read from MH i2c: E2 62 00 [20:33:55]MH_I2C_Read... [20:33:55]Read from MH i2c: E2 62 00 D3 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 D6 E1 01 00 0E 04 04 00 43 01 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 2E [20:33: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 D6 E1 01 00 0E 04 04 00 43 01 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 [20:33:55]wFMCommunicate OK [20:33:55]SAM_PROTO_GetFieldsCounters done [20:33:55]requested_item shift.num is exist - process it [20:33:55]requested_item shift.opened is exist - process it [20:33:55]req_shift_opened [20:33:55]FM_GetShiftState [20:33:55]SAM_PROTO_GetShiftState [20:33:55]wFMCommunicate request_size=4 [20:33:55]MH_SAM_APDU [20:33:55]CAPDU: 80 13 01 00 [20:33:55]Write to MH i2c: E2 08 00 D4 4B 80 13 01 00 00 00 00 00 9C [20:33:55]Write i2c OK [20:33:55]MH_I2C_Read... [20:33:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:33:55]Read from MH i2c: E2 [20:33:55]MH_I2C_Read... [20:33:55]Read from MH i2c: E2 0E 00 [20:33:55]MH_I2C_Read... [20:33:55]Read from MH i2c: E2 0E 00 D4 4B 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 5E [20:33:55]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [20:33:55]wFMCommunicate OK [20:33:55]SAM_PROTO_GetShiftState done [20:33:55]FM_GetShiftState done [20:33:55]req_shift_opened done [20:33:55]requested_item shift.open_date is exist - process it [20:33:55]req_shift_open_date [20:33:55]req_shift_open_date done [20:33:55]produce_requested_data done [20:33:55]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123350,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [20:33:55]process_action_free close_receipt [20:33:55]json_value_free [20:33:55]json_value_free done [20:33:55]process_json_proto returns [20:33:55]Send response to host [20:33:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123350,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [20:33:55]free response buf [20:33:55]execute_script done [20:33:55]execute_script returns [20:33:55]free content buf [20:33:55]Sock 9.Close socket [20:33:55]Sock 9.Thread stoped [20:33:57]OFD Sender: No OFD packet to send [20:34:02]OFD Sender: No OFD packet to send [20:34:07]OFD Sender: No OFD packet to send [20:34:12]OFD Sender: No OFD packet to send [20:34:17]OFD Sender: No OFD packet to send [20:34:22]OFD Sender: No OFD packet to send [20:34:27]OFD Sender: No OFD packet to send [20:34:32]OFD Sender: No OFD packet to send [20:34:37]OFD Sender: No OFD packet to send [20:34:42]OFD Sender: No OFD packet to send [20:34: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:53]OFD Sender: No OFD packet to send [20:38:58]OFD Sender: No OFD packet to send [20:39:03]OFD Sender: No OFD packet to send [20:39:08]OFD Sender: No OFD packet to send [20:39:13]OFD Sender: No OFD packet to send [20:39:18]OFD Sender: No OFD packet to send [20:39:23]OFD Sender: No OFD packet to send [20:39:28]OFD Sender: No OFD packet to send [20:39:33]OFD Sender: No OFD packet to send [20:39:38]OFD Sender: No OFD packet to send [20:39:43]OFD Sender: No OFD packet to send [20:39:48]OFD Sender: No OFD packet to send [20:39:53]OFD Sender: No OFD packet to send [20:39:58]OFD Sender: No OFD packet to send [20:40:03]OFD Sender: No OFD packet to send [20:40:08]OFD Sender: No OFD packet to send [20:40:13]OFD Sender: No OFD packet to send [20:40:18]OFD Sender: No OFD packet to send [20:40:23]OFD Sender: No OFD packet to send [20:40:28]OFD Sender: No OFD packet to send [20:40:33]OFD Sender: No OFD packet to send [20:40:38]OFD Sender: No OFD packet to send [20:40:43]OFD Sender: No OFD packet to send [20:40:48]OFD Sender: No OFD packet to send [20:40:53]OFD Sender: No OFD packet to send [20:40:58]OFD Sender: No OFD packet to send [20:41:03]OFD Sender: No OFD packet to send [20:41:08]OFD Sender: No OFD packet to send [20:41:13]OFD Sender: No OFD packet to send [20:41:18]OFD Sender: No OFD packet to send [20:41:23]OFD Sender: No OFD packet to send [20:41:28]OFD Sender: No OFD packet to send [20:41:33]OFD Sender: No OFD packet to send [20:41:38]OFD Sender: No OFD packet to send [20:41:43]OFD Sender: No OFD packet to send [20:41:48]OFD Sender: No OFD packet to send [20:41:53]OFD Sender: No OFD packet to send [20:41:58]OFD Sender: No OFD packet to send [20:42:03]OFD Sender: No OFD packet to send [20:42:08]OFD Sender: No OFD packet to send [20:42:13]OFD Sender: No OFD packet to send [20:42:18]OFD Sender: No OFD packet to send [20:42:23]OFD Sender: No OFD packet to send [20:42:28]OFD Sender: No OFD packet to send [20:42:33]OFD Sender: No OFD packet to send [20:42:38]OFD Sender: No OFD packet to send [20:42:43]OFD Sender: No OFD packet to send [20:42:48]OFD Sender: No OFD packet to send [20:42:53]OFD Sender: No OFD packet to send [20:42:58]OFD Sender: No OFD packet to send [20:43:03]OFD Sender: No OFD packet to send [20:43:08]OFD Sender: No OFD packet to send [20:43:13]OFD Sender: No OFD packet to send [20:43:18]OFD Sender: No OFD packet to send [20:43:23]OFD Sender: No OFD packet to send [20:43:28]OFD Sender: No OFD packet to send [20:43:33]OFD Sender: No OFD packet to send [20:43:38]OFD Sender: No OFD packet to send [20:43:43]OFD Sender: No OFD packet to send [20:43:48]OFD Sender: No OFD packet to send [20:43:53]OFD Sender: No OFD packet to send [20:43:58]OFD Sender: No OFD packet to send [20:44:03]OFD Sender: No OFD packet to send [20:44:08]OFD Sender: No OFD packet to send [20:44:13]OFD Sender: No OFD packet to send [20:44:18]OFD Sender: No OFD packet to send [20:44:23]OFD Sender: No OFD packet to send [20:44:24]accept exits with 7 [20:44:24]New connection [20:44:24]New thread 3067395428 created [20:44:24]Thread 3067252068 joined [20:44:24]Waiting for new connection... [20:44:24] Sock 7.Parse request [20:44:24]Sock 7.Check first char [20:44:24]Sock 7.First char is OK [20:44:24]request: POST /json_proto HTTP/1.0 [20:44:24]Method: POST [20:44:24]URL: /json_proto [20:44:24]Method is POST - this is cgi request [20:44:24]url: /json_proto [20:44:24]query_string will be loaded in cgi processing [20:44:24]execute_cgi json_proto POST (null) [20:44:24]execute_cgi path=json_proto method=POST [20:44:24]POST find Content-Length [20:44:24]Host: 172.17.48.197:8080 [20:44:24]Content-Length: 1218 [20:44:24]Content-Type: application/json [20:44:24] [20:44:24]POST finish read [20:44:24]Found Content-Length = 1218 [20:44:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106319\u000A03.03.2024 20:40\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 62\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 16.160 x 61.90\u000A\u0418\u0422\u041E\u0413: 1000.30\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3866034\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:44:24]execute_script... [20:44:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106319\u000A03.03.2024 20:40\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 62\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 16.160 x 61.90\u000A\u0418\u0422\u041E\u0413: 1000.30\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3866034\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:44:24]POST & json_proto [20:44:24]process_json_proto [20:44:24]json parsed OK: [20:44:24]protocol is kg_v1.0 [20:44:24]action value=print_text [20:44:24]process_action print_text [20:44:24]cmd_print_text [20:44:24]ExternCall_PrintAddStr [20:44:24]wPrintStart [20:44:24]Write to MH i2c: 01 00 00 D5 4B 20 [20:44:24]Write i2c OK [20:44:24]MH_I2C_Read... [20:44:24]Read from MH i2c: 01 [20:44:24]MH_I2C_Read... [20:44:24]Read from MH i2c: 01 07 00 [20:44:24]MH_I2C_Read... [20:44:24]Read from MH i2c: 01 07 00 D5 4B 00 00 00 00 00 FF 0F 35 [20:44:24]RasterBufferAndPrint [20:44:24]line *****ТОВАРНЫЙ ЧЕК***** [20:44:24]line АЗС 25 [20:44:24]line Партнер нефть [20:44:24]line 02508201610067 [20:44:24]line Кассир : Турдумбек у. К. [20:44:24]line Счет N : (1)1106319 [20:44:24]line 03.03.2024 20:40 [20:44:24]line ПРОДАЖА [20:44:24]line ТРК (МРК, ГНК): 62 [20:44:24]line Вид ГСМ : 2710124130 [20:44:24]line Аи-92-К-5 [20:44:24]line 16.160 x 61.90 [20:44:24]line ИТОГ: 1000.30 [20:44:24]line Тип оплаты: Талоны: Топливные Талоны [20:44:24]line 3866034 [20:44:24]line ______________________ [20:44:24]line (подпись) [20:44:24]written 0, free lines is 4095 [20:44:24]Write to MH i2c: 01 00 00 EA 4B 35 [20:44:24]Write i2c OK [20:44:24]MH_I2C_Read... [20:44:24]Read from MH i2c: 01 [20:44:24]MH_I2C_Read... [20:44:24]Read from MH i2c: 01 07 00 [20:44:24]MH_I2C_Read... [20:44:24]Read from MH i2c: 01 07 00 EA 4B 00 00 00 00 00 F7 0D 40 [20:44:24]RasterBufferAndPrint [20:44:24]line [20:44:24]line [20:44:24]line [20:44:24]line [20:44:24]line [20:44:24]written 0, free lines is 3577 [20:44:24]MH_Cut [20:44:24]Write to MH i2c: D1 01 00 F1 4B 01 0E [20:44:24]Write i2c OK [20:44:24]MH_I2C_Read... [20:44:24]Read from MH i2c: D1 [20:44:24]MH_I2C_Read... [20:44:24]Read from MH i2c: D1 01 00 [20:44:24]MH_I2C_Read... [20:44:24]Read from MH i2c: D1 01 00 F1 4B 00 0D [20:44:24]Write to MH i2c: 01 00 00 F2 4B 3D [20:44:24]Write i2c OK [20:44:24]MH_I2C_Read... [20:44:24]*** Cut start [20:44:24]*** Purtial cut [20:44:24]*** Stage 1: CUTSNS_PIN = 1 [20:44:26]Read from MH i2c: 01 [20:44:26]MH_I2C_Read... [20:44:26]*** Stop cut motor [20:44:26]*** Cut end [20:44:26]Read from MH i2c: 01 07 00 [20:44:26]MH_I2C_Read... [20:44:26]Read from MH i2c: 01 07 00 F2 4B 00 00 00 00 00 FF 0F 52 [20:44:26]process_action print_text done [20:44:26]requested_data is exist [20:44:26]produce_requested_data [20:44:26]requested_item fm.sn is exist - process it [20:44:26]wFMCommunicate request_size=4 [20:44:26]MH_SAM_APDU [20:44:26]CAPDU: 80 11 00 00 [20:44:26]Write to MH i2c: E2 08 00 F3 4B 80 11 00 00 00 00 00 00 B8 [20:44:26]Write i2c OK [20:44:26]MH_I2C_Read... [20:44:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:44:26]Read from MH i2c: E2 [20:44:26]MH_I2C_Read... [20:44:26]Read from MH i2c: E2 17 00 [20:44:26]MH_I2C_Read... [20:44:26]Read from MH i2c: E2 17 00 F3 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 16 [20:44:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [20:44:26]wFMCommunicate OK [20:44:26]requested_item fd.num is exist - process it [20:44:26]SAM_PROTO_GetFieldsCounters [20:44:26]wFMCommunicate request_size=4 [20:44:26]MH_SAM_APDU [20:44:26]CAPDU: 80 13 00 00 [20:44:26]Write to MH i2c: E2 08 00 F4 4B 80 13 00 00 00 00 00 00 BB [20:44:26]Write i2c OK [20:44:26]MH_I2C_Read... [20:44:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:44:26]Read from MH i2c: E2 [20:44:26]MH_I2C_Read... [20:44:26]Read from MH i2c: E2 62 00 [20:44:26]MH_I2C_Read... [20:44:26]Read from MH i2c: E2 62 00 F4 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 D6 E1 01 00 0E 04 04 00 43 01 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 4F [20:44: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 D6 E1 01 00 0E 04 04 00 43 01 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 [20:44:26]wFMCommunicate OK [20:44:26]SAM_PROTO_GetFieldsCounters done [20:44:26]requested_item shift.num is exist - process it [20:44:26]requested_item shift.opened is exist - process it [20:44:26]req_shift_opened [20:44:26]FM_GetShiftState [20:44:26]SAM_PROTO_GetShiftState [20:44:26]wFMCommunicate request_size=4 [20:44:26]MH_SAM_APDU [20:44:26]CAPDU: 80 13 01 00 [20:44:26]Write to MH i2c: E2 08 00 F5 4B 80 13 01 00 00 00 00 00 BD [20:44:26]Write i2c OK [20:44:26]MH_I2C_Read... [20:44:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:44:27]Read from MH i2c: E2 [20:44:27]MH_I2C_Read... [20:44:27]Read from MH i2c: E2 0E 00 [20:44:27]MH_I2C_Read... [20:44:27]Read from MH i2c: E2 0E 00 F5 4B 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 7F [20:44:27]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [20:44:27]wFMCommunicate OK [20:44:27]SAM_PROTO_GetShiftState done [20:44:27]FM_GetShiftState done [20:44:27]req_shift_opened done [20:44:27]requested_item shift.open_date is exist - process it [20:44:27]req_shift_open_date [20:44:27]req_shift_open_date done [20:44:27]produce_requested_data done [20:44:27]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123350,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [20:44:27]process_action_free print_text [20:44:27]json_value_free [20:44:27]json_value_free done [20:44:27]process_json_proto returns [20:44:27]Send response to host [20:44:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123350,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [20:44:27]free response buf [20:44:27]execute_script done [20:44:27]execute_script returns [20:44:27]free content buf [20:44:27]Sock 7.Close socket [20:44:27]Sock 7.Thread stoped [20:44:28]OFD Sender: No OFD packet to send [20:44:33]OFD Sender: No OFD packet to send [20:44:38]OFD Sender: No OFD packet to send [20:44:43]OFD Sender: No OFD packet to send [20:44:48]OFD Sender: No OFD packet to send [20:44:53]OFD Sender: No OFD packet to send [20:44:58]OFD Sender: No OFD packet to send [20:45:03]OFD Sender: No OFD packet to send [20:45:08]OFD Sender: No OFD packet to send [20:45:13]OFD Sender: No OFD packet to send [20:45:18]OFD Sender: No OFD packet to send [20:45:23]OFD Sender: No OFD packet to send [20:45:28]OFD Sender: No OFD packet to send [20:45:33]OFD Sender: No OFD packet to send [20:45:38]OFD Sender: No OFD packet to send [20:45:43]OFD Sender: No OFD packet to send [20:45:48]OFD Sender: No OFD packet to send [20:45:53]OFD Sender: No OFD packet to send [20:45:58]OFD Sender: No OFD packet to send [20:46:03]OFD Sender: No OFD packet to send [20:46:08]OFD Sender: No OFD packet to send [20:46:13]OFD Sender: No OFD packet to send [20:46:18]OFD Sender: No OFD packet to send [20:46:23]OFD Sender: No OFD packet to send [20:46:28]OFD Sender: No OFD packet to send [20:46:33]OFD Sender: No OFD packet to send [20:46:35]accept exits with 9 [20:46:35]New connection [20:46:35]New thread 3067252068 created [20:46:35]Thread 3067395428 joined [20:46:35]Waiting for new connection... [20:46:35] Sock 9.Parse request [20:46:35]Sock 9.Check first char [20:46:35]Sock 9.First char is OK [20:46:35]request: POST /json_proto HTTP/1.0 [20:46:35]Method: POST [20:46:35]URL: /json_proto [20:46:35]Method is POST - this is cgi request [20:46:35]url: /json_proto [20:46:35]query_string will be loaded in cgi processing [20:46:35]execute_cgi json_proto POST (null) [20:46:35]execute_cgi path=json_proto method=POST [20:46:35]POST find Content-Length [20:46:35]Host: 172.17.48.197:8080 [20:46:35]Content-Length: 806 [20:46:35]Content-Type: application/json [20:46:35] [20:46:35]POST finish read [20:46:35]Found Content-Length = 806 [20:46:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106320", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 7.200, "sum" : 500.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:46:35]execute_script... [20:46:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106320", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 7.200, "sum" : 500.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:46:35]POST & json_proto [20:46:35]process_json_proto [20:46:35]json parsed OK: [20:46:35]protocol is kg_v1.0 [20:46:35]action value=close_receipt [20:46:35]process_action close_receipt [20:46:35]cmd_close_receipt [20:46:35]MH_GetDate [20:46:35]Write to MH i2c: F0 00 00 F6 4B 30 [20:46:35]Write i2c OK [20:46:35]MH_I2C_Read... [20:46:35]Read from MH i2c: F0 [20:46:35]MH_I2C_Read... [20:46:35]Read from MH i2c: F0 09 00 [20:46:35]MH_I2C_Read... [20:46:35]Read from MH i2c: F0 09 00 F6 4B 00 B0 E1 E4 65 6C AF E3 65 76 [20:46:35]GetLastDocTimeStamp 1709498035 [20:46:35]current date 1709498800 [20:46:35]FM_GetShiftState [20:46:35]SAM_PROTO_GetShiftState [20:46:35]wFMCommunicate request_size=4 [20:46:35]MH_SAM_APDU [20:46:35]CAPDU: 80 13 01 00 [20:46:35]Write to MH i2c: E2 08 00 F7 4B 80 13 01 00 00 00 00 00 BF [20:46:35]Write i2c OK [20:46:35]MH_I2C_Read... [20:46:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:46:35]Read from MH i2c: E2 [20:46:35]MH_I2C_Read... [20:46:35]Read from MH i2c: E2 0E 00 [20:46:35]MH_I2C_Read... [20:46:35]Read from MH i2c: E2 0E 00 F7 4B 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 81 [20:46:35]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [20:46:35]wFMCommunicate OK [20:46:35]SAM_PROTO_GetShiftState done [20:46:35]FM_GetShiftState done [20:46:35]opened in 1709425579 [20:46:35]opened+sec_in_day 1709511979 [20:46:35]quantity*price = 50040 [20:46:35]sum+1 = 50041 [20:46:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.40 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.40 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 208 03.03.2024 20:46 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874798 ФД: 123351 ФПД: 244480733043454 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T204640&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123351&fm=244480733043454&tin=02508201610067®Number=0000000000090573&sum=50040 [20:46:36]StoreToDocumentArchive [20:46:36]shift 323 fd 123351 [20:46:36]save to /storage/0323/doc_00123351 [20:46:36]save last doc name /storage/0323/doc_00123351 to /storage/kkm_last_doc_name [20:46:36]save OK [20:46:36]Clear old archive folders... [20:46:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:46:36]tlvbuf is 00F211D0 [20:46:36]SAM_PROTO_ClearQueue [20:46:36]wFMCommunicate request_size=4 [20:46:36]MH_SAM_APDU [20:46:36]CAPDU: 80 09 00 00 [20:46:36]Write to MH i2c: E2 08 00 04 4C 80 09 00 00 00 00 00 00 C2 [20:46:36]Write i2c OK [20:46:36]MH_I2C_Read... [20:46:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:46:36]Read from MH i2c: E2 [20:46:36]MH_I2C_Read... [20:46:36]Read from MH i2c: E2 03 00 [20:46:36]MH_I2C_Read... [20:46:36]Read from MH i2c: E2 03 00 04 4C 00 90 00 C4 [20:46:36]RAPDU: 90 00 [20:46:36]wFMCommunicate OK [20:46:36]SAM_PROTO_ClearQueue done [20:46:36]KKMCreateOFDPacket [20:46:36]OFDProtocolAddRootSTLVToBuf [20:46:36]FM_MakeSignedData [20:46:36]FM_MakeSignedData [20:46:36]SAM_PROTO_SignData [20:46:36]wFMCommunicate request_size=4 [20:46:36]MH_SAM_APDU [20:46:36]CAPDU: 80 0D 01 02 [20:46:36]Write to MH i2c: E2 08 00 05 4C 80 0D 01 02 00 00 00 00 CA [20:46:36]Write i2c OK [20:46:36]MH_I2C_Read... [20:46:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:46:36]Read from MH i2c: E2 [20:46:36]MH_I2C_Read... [20:46:36]Read from MH i2c: E2 03 00 [20:46:36]MH_I2C_Read... [20:46:36]Read from MH i2c: E2 03 00 05 4C 00 90 00 C5 [20:46:36]RAPDU: 90 00 [20:46:36]wFMCommunicate OK [20:46:36]wFMCommunicate request_size=255 [20:46:36]MH_SAM_APDU [20:46: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 35 FF 03 08 00 03 20 1C 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 78 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 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 78 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 B0 E1 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 D7 E1 01 00 35 04 06 00 DE [20:46:36]Write to MH i2c: E2 02 01 06 4C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 1C 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 78 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 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 78 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 B0 E1 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 D7 E1 01 00 35 04 06 00 DE 00 00 27 [20:46:36]Write i2c OK [20:46:36]MH_I2C_Read... [20:46:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:46:36]Read from MH i2c: E2 [20:46:36]MH_I2C_Read... [20:46:36]Read from MH i2c: E2 03 00 [20:46:36]MH_I2C_Read... [20:46:36]Read from MH i2c: E2 03 00 06 4C 00 90 00 C6 [20:46:36]RAPDU: 90 00 [20:46:36]wFMCommunicate OK [20:46:36]wFMCommunicate request_size=10 [20:46:36]MH_SAM_APDU [20:46:36]CAPDU: 80 0D 02 02 05 5A 9B 3F 5A FE [20:46:36]Write to MH i2c: E2 0D 00 07 4C 80 0D 02 02 05 00 5A 9B 3F 5A FE 00 00 63 [20:46:36]Write i2c OK [20:46:36]MH_I2C_Read... [20:46:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:46:36]Read from MH i2c: E2 [20:46:36]MH_I2C_Read... [20:46:36]Read from MH i2c: E2 03 00 [20:46:36]MH_I2C_Read... [20:46:36]Read from MH i2c: E2 03 00 07 4C 00 90 00 C7 [20:46:36]RAPDU: 90 00 [20:46:36]wFMCommunicate OK [20:46:36]wFMCommunicate request_size=4 [20:46:36]MH_SAM_APDU [20:46:36]CAPDU: 80 0D 03 02 [20:46:36]Write to MH i2c: E2 08 00 08 4C 80 0D 03 02 00 00 00 00 CF [20:46:36]Write i2c OK [20:46:36]MH_I2C_Read... [20:46:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:46:36]Read from MH i2c: E2 [20:46:36]MH_I2C_Read... [20:46:36]Read from MH i2c: E2 0B 00 [20:46:36]MH_I2C_Read... [20:46:36]Read from MH i2c: E2 0B 00 08 4C 00 BD 62 F3 42 E0 22 C9 D0 90 00 BF [20:46:36]RAPDU: BD 62 F3 42 E0 22 C9 D0 90 00 [20:46:36]wFMCommunicate OK [20:46:36]SAM_PROTO_SignData done [20:46:36]FM_MakeSignedData done [20:46:36]CreateOFDProtocolMessage [20:46:36]wFMCommunicate request_size=4 [20:46:36]MH_SAM_APDU [20:46:36]CAPDU: 80 11 00 00 [20:46:36]Write to MH i2c: E2 08 00 09 4C 80 11 00 00 00 00 00 00 CF [20:46:36]Write i2c OK [20:46:36]MH_I2C_Read... [20:46:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:46:36]Read from MH i2c: E2 [20:46:36]MH_I2C_Read... [20:46:36]Read from MH i2c: E2 17 00 [20:46:36]MH_I2C_Read... [20:46:36]Read from MH i2c: E2 17 00 09 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 2D [20:46:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [20:46:36]wFMCommunicate OK [20:46:36]CreateOFDProtocolMessage done [20:46:36]OFDSenderStorePacket 123351 [20:46:36]StoreOFDPacket docnum=123351 [20:46:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 E7 4F 07 01 ED 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 1C 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 78 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 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 78 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 B0 E1 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 D7 E1 01 00 35 04 06 00 DE 5A 9B 3F 5A FE BD 62 F3 42 E0 22 C9 D0 [20:46:36]CheckFolder [20:46:36]dirname=/storage/ofd_packets [20:46:36]CheckFolder done [20:46:36]ProducePacketName [20:46:36]name=ofd_packets/00123351 [20:46:36]NVStorageSaveData ofd_packets/00123351 [20:46:36]File name is /storage/ofd_packets/00123351 [20:46:36]Write 301 bytes [20:46:36]NVStorageSaveData done [20:46:36]OFDSenderStorePacket done [20:46:36]KKMCreateOFDPacket done [20:46:36]NVStorageSaveData kkm_last_timestamp [20:46:36]File name is /storage/kkm_last_timestamp [20:46:36]Write 4 bytes [20:46:36]NVStorageSaveData done [20:46:36]ExternCall_PrintAddStr [20:46:36]wPrintStart [20:46:36]Write to MH i2c: 01 00 00 0A 4C 56 [20:46:36]Write i2c OK [20:46:36]MH_I2C_Read... [20:46:36]Read from MH i2c: 01 [20:46:36]MH_I2C_Read... [20:46:36]Read from MH i2c: 01 07 00 [20:46:36]MH_I2C_Read... [20:46:36]Read from MH i2c: 01 07 00 0A 4C 00 00 00 00 00 FF 0F 6B [20:46:36]RasterBufferAndPrint [20:46:36]line Счет N : (1)1106320 [20:46:36]line ИНН: 02508201610067 [20:46:36]line Контрольно-Кассовый Чек [20:46:36]line ПРОДАЖА [20:46:36]line ТРК (МРК, ГНК) : 53 [20:46:36]line Товар: 2710124500 [20:46:36]line Аи-95-К-5 [20:46:36]line 7.200 * 69.50 [20:46:36]line = 500.40 [20:46:36]line НДС 12% НСП 1% [20:46:36]line > о реализуемом товаре [20:46:36]line ИТОГО: 500.40 [20:46:36]line НСП 1% : 4.43 [20:46:36]line НДС 12% : 53.14 [20:46:36]line Наличными: 0.00 [20:46:36]line Безнал.: 500.40 [20:46:36]line Место: АЗС № 25 "Партнер Нефть" [20:46:36]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [20:46:36]line СНО: Общий режим [20:46:36]line Чек 208 03.03.2024 20:46 [20:46:36]line Смена: 323 ФФД: 1.0 [20:46:36]line ЗНМ: 0300000019 [20:46:36]line РНМ: 0000000000090573 [20:46:36]line Версия ККМ: 001 [20:46:36]line Платежная система: О! деньги [20:46:36]line ФМ: 0000000000874798 [20:46:36]line ФД: 123351 [20:46:36]line ФПД: 244480733043454 [20:46:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T204640&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123351&fm=244480733043454&tin=02508201610067®Number=0000000000090573&sum=50040 [20:46:37]OFD Sender: Processing packet 123351 [packets to send 112, broken 111] [20:46:37]ProducePacketName [20:46:37]name=ofd_packets/00123351 [20:46:37]OFD Sender: To server: pG, [20:46:37]CommunicateWithHost lk.salyk.kg:30040 [20:46:37]ConnectInit lk.salyk.kg [20:46:37]written 0, free lines is 4095 [20:46:37]Connected sock=10 [20:46:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 E7 4F 07 01 ED 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 1C 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 78 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 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 78 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 B0 E1 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 D7 E1 01 00 35 04 06 00 DE 5A 9B 3F 5A FE BD 62 F3 42 E0 22 C9 D0 [20:46:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 D7 B9 47 00 57 EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 D7 E1 01 00 F4 03 04 00 DA 8D E4 65 B6 04 01 00 00 EA F2 A9 69 4B 9C FB E2 [20:46:37]CommunicateWithHost err = 0 [20:46:37]CheckOFDResponse [20:46:37]1017 (14) - 77093643461234 [20:46:37]1041 (16) - 0000000000874798 [20:46:37]1040 (4) - 123351 [20:46:37]1012 (4) - 03.03.2024 14:48 [20:46:37]1206 (1) - 0 [20:46:37]OFD Sender: Remove packet 123351 [20:46:37]ProducePacketName [20:46:37]name=ofd_packets/00123351 [20:46:37]NVStorageDeleteData [20:46:37]Write to MH i2c: 01 00 00 34 4C 80 [20:46:37]Write i2c OK [20:46:37]MH_I2C_Read... [20:46:37]Read from MH i2c: 01 [20:46:37]MH_I2C_Read... [20:46:37]Read from MH i2c: 01 07 00 [20:46:37]MH_I2C_Read... [20:46:37]Read from MH i2c: 01 07 00 34 4C 00 00 00 00 00 FE 0C 91 [20:46:37]RasterBufferAndPrint [20:46:37]line [20:46:37]line [20:46:37]line [20:46:37]line [20:46:37]line [20:46:37]written 0, free lines is 3332 [20:46:37]MH_Cut [20:46:37]Write to MH i2c: D1 01 00 3B 4C 01 59 [20:46:37]Write i2c OK [20:46:37]MH_I2C_Read... [20:46:37]Read from MH i2c: D1 [20:46:37]MH_I2C_Read... [20:46:37]Read from MH i2c: D1 01 00 [20:46:37]MH_I2C_Read... [20:46:37]Read from MH i2c: D1 01 00 3B 4C 00 58 [20:46:37]Write to MH i2c: 01 00 00 3C 4C 88 [20:46:37]Write i2c OK [20:46:37]MH_I2C_Read... [20:46:38]OFD Sender: No OFD packet to send [20:46:38]*** Cut start [20:46:38]*** Purtial cut [20:46:38]*** Stage 1: CUTSNS_PIN = 1 [20:46:40]Read from MH i2c: 01 [20:46:40]MH_I2C_Read... [20:46:40]*** Stop cut motor [20:46:40]*** Cut end [20:46:40]Read from MH i2c: 01 07 00 [20:46:40]MH_I2C_Read... [20:46:40]Read from MH i2c: 01 07 00 3C 4C 00 00 00 00 00 FF 0F 9D [20:46:40]process_action close_receipt done [20:46:40]requested_data is exist [20:46:40]produce_requested_data [20:46:40]requested_item fm.sn is exist - process it [20:46:40]wFMCommunicate request_size=4 [20:46:40]MH_SAM_APDU [20:46:40]CAPDU: 80 11 00 00 [20:46:40]Write to MH i2c: E2 08 00 3D 4C 80 11 00 00 00 00 00 00 03 [20:46:40]Write i2c OK [20:46:40]MH_I2C_Read... [20:46:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:46:40]Read from MH i2c: E2 [20:46:40]MH_I2C_Read... [20:46:40]Read from MH i2c: E2 17 00 [20:46:40]MH_I2C_Read... [20:46:40]Read from MH i2c: E2 17 00 3D 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 61 [20:46:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [20:46:40]wFMCommunicate OK [20:46:40]requested_item fd.num is exist - process it [20:46:40]SAM_PROTO_GetFieldsCounters [20:46:40]wFMCommunicate request_size=4 [20:46:40]MH_SAM_APDU [20:46:40]CAPDU: 80 13 00 00 [20:46:40]Write to MH i2c: E2 08 00 3E 4C 80 13 00 00 00 00 00 00 06 [20:46:40]Write i2c OK [20:46:40]MH_I2C_Read... [20:46:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:46:40]Read from MH i2c: E2 [20:46:40]MH_I2C_Read... [20:46:40]Read from MH i2c: E2 62 00 [20:46:40]MH_I2C_Read... [20:46:40]Read from MH i2c: E2 62 00 3E 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 D7 E1 01 00 0E 04 04 00 43 01 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 9E [20:46: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 D7 E1 01 00 0E 04 04 00 43 01 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 [20:46:40]wFMCommunicate OK [20:46:40]SAM_PROTO_GetFieldsCounters done [20:46:40]requested_item shift.num is exist - process it [20:46:40]requested_item shift.opened is exist - process it [20:46:40]req_shift_opened [20:46:40]FM_GetShiftState [20:46:40]SAM_PROTO_GetShiftState [20:46:40]wFMCommunicate request_size=4 [20:46:40]MH_SAM_APDU [20:46:40]CAPDU: 80 13 01 00 [20:46:40]Write to MH i2c: E2 08 00 3F 4C 80 13 01 00 00 00 00 00 08 [20:46:40]Write i2c OK [20:46:40]MH_I2C_Read... [20:46:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:46:40]Read from MH i2c: E2 [20:46:40]MH_I2C_Read... [20:46:40]Read from MH i2c: E2 0E 00 [20:46:40]MH_I2C_Read... [20:46:40]Read from MH i2c: E2 0E 00 3F 4C 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 CA [20:46:40]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [20:46:40]wFMCommunicate OK [20:46:40]SAM_PROTO_GetShiftState done [20:46:40]FM_GetShiftState done [20:46:40]req_shift_opened done [20:46:40]requested_item shift.open_date is exist - process it [20:46:40]req_shift_open_date [20:46:40]req_shift_open_date done [20:46:40]produce_requested_data done [20:46:40]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123351,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [20:46:40]process_action_free close_receipt [20:46:40]json_value_free [20:46:40]json_value_free done [20:46:40]process_json_proto returns [20:46:40]Send response to host [20:46:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123351,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [20:46:40]free response buf [20:46:40]execute_script done [20:46:40]execute_script returns [20:46:40]free content buf [20:46:40]Sock 9.Close socket [20:46:40]Sock 9.Thread stoped [20:46:43]OFD Sender: No OFD packet to send [20:46:48]OFD Sender: No OFD packet to send [20:46:50]accept exits with 7 [20:46:50]New connection [20:46:50]New thread 3067395428 created [20:46:50]Thread 3067252068 joined [20:46:50]Waiting for new connection... [20:46:50] Sock 7.Parse request [20:46:50]Sock 7.Check first char [20:46:50]Sock 7.First char is OK [20:46:50]request: POST /json_proto HTTP/1.0 [20:46:50]Method: POST [20:46:50]URL: /json_proto [20:46:50]Method is POST - this is cgi request [20:46:50]url: /json_proto [20:46:50]query_string will be loaded in cgi processing [20:46:50]execute_cgi json_proto POST (null) [20:46:50]execute_cgi path=json_proto method=POST [20:46:50]POST find Content-Length [20:46:50]Host: 172.17.48.197:8080 [20:46:50]Content-Length: 1234 [20:46:50]Content-Type: application/json [20:46:50] [20:46:50]POST finish read [20:46:50]Found Content-Length = 1234 [20:46:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106321\u000A03.03.2024 20:43\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 1857.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3824674/3824673/3824672\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:46:50]execute_script... [20:46:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106321\u000A03.03.2024 20:43\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 1857.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3824674/3824673/3824672\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:46:50]POST & json_proto [20:46:50]process_json_proto [20:46:50]json parsed OK: [20:46:50]protocol is kg_v1.0 [20:46:50]action value=print_text [20:46:50]process_action print_text [20:46:50]cmd_print_text [20:46:50]ExternCall_PrintAddStr [20:46:50]wPrintStart [20:46:50]Write to MH i2c: 01 00 00 40 4C 8C [20:46:50]Write i2c OK [20:46:50]MH_I2C_Read... [20:46:50]Read from MH i2c: 01 [20:46:50]MH_I2C_Read... [20:46:50]Read from MH i2c: 01 07 00 [20:46:50]MH_I2C_Read... [20:46:50]Read from MH i2c: 01 07 00 40 4C 00 00 00 00 00 FF 0F A1 [20:46:50]RasterBufferAndPrint [20:46:50]line *****ТОВАРНЫЙ ЧЕК***** [20:46:50]line АЗС 25 [20:46:50]line Партнер нефть [20:46:50]line 02508201610067 [20:46:50]line Кассир : Турдумбек у. К. [20:46:50]line Счет N : (1)1106321 [20:46:50]line 03.03.2024 20:43 [20:46:50]line ПРОДАЖА [20:46:50]line ТРК (МРК, ГНК): 11 [20:46:50]line Вид ГСМ : 2710124130 [20:46:50]line Аи-92-К-5 [20:46:50]line 30.000 x 61.90 [20:46:50]line ИТОГ: 1857.00 [20:46:50]line Тип оплаты: Талоны: Топливные Талоны [20:46:50]line 3824674/3824673/3824672 [20:46:50]line ______________________ [20:46:50]line (подпись) [20:46:50]written 0, free lines is 4095 [20:46:50]Write to MH i2c: 01 00 00 55 4C A1 [20:46:50]Write i2c OK [20:46:50]MH_I2C_Read... [20:46:50]Read from MH i2c: 01 [20:46:50]MH_I2C_Read... [20:46:50]Read from MH i2c: 01 07 00 [20:46:50]MH_I2C_Read... [20:46:50]Read from MH i2c: 01 07 00 55 4C 00 00 00 00 00 00 0E B6 [20:46:50]RasterBufferAndPrint [20:46:50]line [20:46:50]line [20:46:50]line [20:46:50]line [20:46:50]line [20:46:50]written 0, free lines is 3587 [20:46:50]MH_Cut [20:46:50]Write to MH i2c: D1 01 00 5C 4C 01 7A [20:46:50]Write i2c OK [20:46:50]MH_I2C_Read... [20:46:50]Read from MH i2c: D1 [20:46:50]MH_I2C_Read... [20:46:50]Read from MH i2c: D1 01 00 [20:46:50]MH_I2C_Read... [20:46:50]Read from MH i2c: D1 01 00 5C 4C 00 79 [20:46:50]Write to MH i2c: 01 00 00 5D 4C A9 [20:46:50]Write i2c OK [20:46:50]MH_I2C_Read... [20:46:50]*** Cut start [20:46:50]*** Purtial cut [20:46:50]*** Stage 1: CUTSNS_PIN = 1 [20:46:52]Read from MH i2c: 01 [20:46:52]MH_I2C_Read... [20:46:52]*** Stop cut motor [20:46:52]*** Cut end [20:46:52]Read from MH i2c: 01 07 00 [20:46:52]MH_I2C_Read... [20:46:52]Read from MH i2c: 01 07 00 5D 4C 00 00 00 00 00 FF 0F BE [20:46:52]process_action print_text done [20:46:52]requested_data is exist [20:46:52]produce_requested_data [20:46:52]requested_item fm.sn is exist - process it [20:46:52]wFMCommunicate request_size=4 [20:46:52]MH_SAM_APDU [20:46:52]CAPDU: 80 11 00 00 [20:46:52]Write to MH i2c: E2 08 00 5E 4C 80 11 00 00 00 00 00 00 24 [20:46:52]Write i2c OK [20:46:52]MH_I2C_Read... [20:46:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:46:52]Read from MH i2c: E2 [20:46:52]MH_I2C_Read... [20:46:52]Read from MH i2c: E2 17 00 [20:46:52]MH_I2C_Read... [20:46:52]Read from MH i2c: E2 17 00 5E 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 82 [20:46:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [20:46:52]wFMCommunicate OK [20:46:52]requested_item fd.num is exist - process it [20:46:52]SAM_PROTO_GetFieldsCounters [20:46:52]wFMCommunicate request_size=4 [20:46:52]MH_SAM_APDU [20:46:52]CAPDU: 80 13 00 00 [20:46:52]Write to MH i2c: E2 08 00 5F 4C 80 13 00 00 00 00 00 00 27 [20:46:52]Write i2c OK [20:46:52]MH_I2C_Read... [20:46:53]OFD Sender: No OFD packet to send [20:46:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:46:53]Read from MH i2c: E2 [20:46:53]MH_I2C_Read... [20:46:53]Read from MH i2c: E2 62 00 [20:46:53]MH_I2C_Read... [20:46:53]Read from MH i2c: E2 62 00 5F 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 D7 E1 01 00 0E 04 04 00 43 01 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 BF [20:46: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 D7 E1 01 00 0E 04 04 00 43 01 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 [20:46:53]wFMCommunicate OK [20:46:53]SAM_PROTO_GetFieldsCounters done [20:46:53]requested_item shift.num is exist - process it [20:46:53]requested_item shift.opened is exist - process it [20:46:53]req_shift_opened [20:46:53]FM_GetShiftState [20:46:53]SAM_PROTO_GetShiftState [20:46:53]wFMCommunicate request_size=4 [20:46:53]MH_SAM_APDU [20:46:53]CAPDU: 80 13 01 00 [20:46:53]Write to MH i2c: E2 08 00 60 4C 80 13 01 00 00 00 00 00 29 [20:46:53]Write i2c OK [20:46:53]MH_I2C_Read... [20:46:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:46:53]Read from MH i2c: E2 [20:46:53]MH_I2C_Read... [20:46:53]Read from MH i2c: E2 0E 00 [20:46:53]MH_I2C_Read... [20:46:53]Read from MH i2c: E2 0E 00 60 4C 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 EB [20:46:53]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [20:46:53]wFMCommunicate OK [20:46:53]SAM_PROTO_GetShiftState done [20:46:53]FM_GetShiftState done [20:46:53]req_shift_opened done [20:46:53]requested_item shift.open_date is exist - process it [20:46:53]req_shift_open_date [20:46:53]req_shift_open_date done [20:46:53]produce_requested_data done [20:46:53]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123351,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [20:46:53]process_action_free print_text [20:46:53]json_value_free [20:46:53]json_value_free done [20:46:53]process_json_proto returns [20:46:53]Send response to host [20:46:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123351,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [20:46:53]free response buf [20:46:53]execute_script done [20:46:53]execute_script returns [20:46:53]free content buf [20:46:53]Sock 7.Close socket [20:46:53]Sock 7.Thread stoped [20:46:58]OFD Sender: No OFD packet to send [20:47:03]OFD Sender: No OFD packet to send [20:47:08]OFD Sender: No OFD packet to send [20:47:13]OFD Sender: No OFD packet to send [20:47:18]OFD Sender: No OFD packet to send [20:47:23]OFD Sender: No OFD packet to send [20:47:28]OFD Sender: No OFD packet to send [20:47:33]OFD Sender: No OFD packet to send [20:47:38]OFD Sender: No OFD packet to send [20:47:43]OFD Sender: No OFD packet to send [20:47:48]OFD Sender: No OFD packet to send [20:47:53]OFD Sender: No OFD packet to send [20:47:58]OFD Sender: No OFD packet to send [20:48:03]OFD Sender: No OFD packet to send [20:48:08]OFD Sender: No OFD packet to send [20:48:13]OFD Sender: No OFD packet to send [20:48:18]OFD Sender: No OFD packet to send [20:48:23]OFD Sender: No OFD packet to send [20:48:28]OFD Sender: No OFD packet to send [20:48:33]OFD Sender: No OFD packet to send [20:48:38]OFD Sender: No OFD packet to send [20:48:43]OFD Sender: No OFD packet to send [20:48:48]OFD Sender: No OFD packet to send [20:48:53]OFD Sender: No OFD packet to send [20:48:58]OFD Sender: No OFD packet to send [20:49:03]OFD Sender: No OFD packet to send [20:49:08]OFD Sender: No OFD packet to send [20:49:13]OFD Sender: No OFD packet to send [20:49:18]OFD Sender: No OFD packet to send [20:49:23]OFD Sender: No OFD packet to send [20:49:28]OFD Sender: No OFD packet to send [20:49:33]OFD Sender: No OFD packet to send [20:49:38]OFD Sender: No OFD packet to send [20:49:43]OFD Sender: No OFD packet to send [20:49:48]OFD Sender: No OFD packet to send [20:49:53]OFD Sender: No OFD packet to send [20:49:58]OFD Sender: No OFD packet to send [20:50:03]OFD Sender: No OFD packet to send [20:50:08]OFD Sender: No OFD packet to send [20:50:13]OFD Sender: No OFD packet to send [20:50:18]OFD Sender: No OFD packet to send [20:50:23]OFD Sender: No OFD packet to send [20:50:28]OFD Sender: No OFD packet to send [20:50:33]OFD Sender: No OFD packet to send [20:50:38]OFD Sender: No OFD packet to send [20:50:43]OFD Sender: No OFD packet to send [20:50:48]OFD Sender: No OFD packet to send [20:50:53]OFD Sender: No OFD packet to send [20:50:58]OFD Sender: No OFD packet to send [20:51:03]OFD Sender: No OFD packet to send [20:51:08]OFD Sender: No OFD packet to send [20:51:13]OFD Sender: No OFD packet to send [20:51:18]OFD Sender: No OFD packet to send [20:51:20]accept exits with 10 [20:51:20]New connection [20:51:20]New thread 3067252068 created [20:51:20]Thread 3067395428 joined [20:51:20]Waiting for new connection... [20:51:20] Sock 10.Parse request [20:51:20]Sock 10.Check first char [20:51:20]Sock 10.First char is OK [20:51:20]request: POST /json_proto HTTP/1.0 [20:51:20]Method: POST [20:51:20]URL: /json_proto [20:51:20]Method is POST - this is cgi request [20:51:20]url: /json_proto [20:51:20]query_string will be loaded in cgi processing [20:51:20]execute_cgi json_proto POST (null) [20:51:20]execute_cgi path=json_proto method=POST [20:51:20]POST find Content-Length [20:51:20]Host: 172.17.48.197:8080 [20:51:20]Content-Length: 1172 [20:51:20]Content-Type: application/json [20:51:20] [20:51:20]POST finish read [20:51:20]Found Content-Length = 1172 [20:51:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106322\u000A03.03.2024 20:47\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 53\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 30.000 x 69.50\u000A\u0418\u0422\u041E\u0413: 2085.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30098448\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:51:20]execute_script... [20:51:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106322\u000A03.03.2024 20:47\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 53\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 30.000 x 69.50\u000A\u0418\u0422\u041E\u0413: 2085.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30098448\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:51:20]POST & json_proto [20:51:20]process_json_proto [20:51:20]json parsed OK: [20:51:20]protocol is kg_v1.0 [20:51:20]action value=print_text [20:51:20]process_action print_text [20:51:20]cmd_print_text [20:51:20]ExternCall_PrintAddStr [20:51:20]wPrintStart [20:51:20]Write to MH i2c: 01 00 00 61 4C AD [20:51:20]Write i2c OK [20:51:20]MH_I2C_Read... [20:51:20]Read from MH i2c: 01 [20:51:20]MH_I2C_Read... [20:51:20]Read from MH i2c: 01 07 00 [20:51:20]MH_I2C_Read... [20:51:20]Read from MH i2c: 01 07 00 61 4C 00 00 00 00 00 FF 0F C2 [20:51:20]RasterBufferAndPrint [20:51:20]line *****ТОВАРНЫЙ ЧЕК***** [20:51:20]line АЗС 25 [20:51:20]line Партнер нефть [20:51:20]line 02508201610067 [20:51:20]line Кассир : Турдумбек у. К. [20:51:20]line Счет N : (1)1106322 [20:51:20]line 03.03.2024 20:47 [20:51:20]line ПРОДАЖА [20:51:20]line ТРК (МРК, ГНК): 53 [20:51:20]line Вид ГСМ : 2710124500 [20:51:20]line Аи-95-К-5 [20:51:20]line 30.000 x 69.50 [20:51:20]line ИТОГ: 2085.00 [20:51:20]line Тип оплаты: Талоны: ТК ГПНА Online [20:51:20]line 30098448 [20:51:20]line ______________________ [20:51:20]line (подпись) [20:51:20]written 0, free lines is 4095 [20:51:21]Write to MH i2c: 01 00 00 76 4C C2 [20:51:21]Write i2c OK [20:51:21]MH_I2C_Read... [20:51:21]Read from MH i2c: 01 [20:51:21]MH_I2C_Read... [20:51:21]Read from MH i2c: 01 07 00 [20:51:21]MH_I2C_Read... [20:51:21]Read from MH i2c: 01 07 00 76 4C 00 00 00 00 00 F7 0D CD [20:51:21]RasterBufferAndPrint [20:51:21]line [20:51:21]line [20:51:21]line [20:51:21]line [20:51:21]line [20:51:21]written 0, free lines is 3577 [20:51:21]MH_Cut [20:51:21]Write to MH i2c: D1 01 00 7D 4C 01 9B [20:51:21]Write i2c OK [20:51:21]MH_I2C_Read... [20:51:21]Read from MH i2c: D1 [20:51:21]MH_I2C_Read... [20:51:21]Read from MH i2c: D1 01 00 [20:51:21]MH_I2C_Read... [20:51:21]Read from MH i2c: D1 01 00 7D 4C 00 9A [20:51:21]Write to MH i2c: 01 00 00 7E 4C CA [20:51:21]Write i2c OK [20:51:21]MH_I2C_Read... [20:51:21]*** Cut start [20:51:21]*** Purtial cut [20:51:21]*** Stage 1: CUTSNS_PIN = 1 [20:51:23]OFD Sender: No OFD packet to send [20:51:23]Read from MH i2c: 01 [20:51:23]MH_I2C_Read... [20:51:23]*** Stop cut motor [20:51:23]*** Cut end [20:51:23]Read from MH i2c: 01 07 00 [20:51:23]MH_I2C_Read... [20:51:23]Read from MH i2c: 01 07 00 7E 4C 00 00 00 00 00 FF 0F DF [20:51:23]process_action print_text done [20:51:23]requested_data is exist [20:51:23]produce_requested_data [20:51:23]requested_item fm.sn is exist - process it [20:51:23]wFMCommunicate request_size=4 [20:51:23]MH_SAM_APDU [20:51:23]CAPDU: 80 11 00 00 [20:51:23]Write to MH i2c: E2 08 00 7F 4C 80 11 00 00 00 00 00 00 45 [20:51:23]Write i2c OK [20:51:23]MH_I2C_Read... [20:51:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:51:23]Read from MH i2c: E2 [20:51:23]MH_I2C_Read... [20:51:23]Read from MH i2c: E2 17 00 [20:51:23]MH_I2C_Read... [20:51:23]Read from MH i2c: E2 17 00 7F 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 A3 [20:51:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [20:51:23]wFMCommunicate OK [20:51:23]requested_item fd.num is exist - process it [20:51:23]SAM_PROTO_GetFieldsCounters [20:51:23]wFMCommunicate request_size=4 [20:51:23]MH_SAM_APDU [20:51:23]CAPDU: 80 13 00 00 [20:51:23]Write to MH i2c: E2 08 00 80 4C 80 13 00 00 00 00 00 00 48 [20:51:23]Write i2c OK [20:51:23]MH_I2C_Read... [20:51:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:51:23]Read from MH i2c: E2 [20:51:23]MH_I2C_Read... [20:51:23]Read from MH i2c: E2 62 00 [20:51:23]MH_I2C_Read... [20:51:23]Read from MH i2c: E2 62 00 80 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 D7 E1 01 00 0E 04 04 00 43 01 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 E0 [20:51:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 D7 E1 01 00 0E 04 04 00 43 01 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 [20:51:23]wFMCommunicate OK [20:51:23]SAM_PROTO_GetFieldsCounters done [20:51:23]requested_item shift.num is exist - process it [20:51:23]requested_item shift.opened is exist - process it [20:51:23]req_shift_opened [20:51:23]FM_GetShiftState [20:51:23]SAM_PROTO_GetShiftState [20:51:23]wFMCommunicate request_size=4 [20:51:23]MH_SAM_APDU [20:51:23]CAPDU: 80 13 01 00 [20:51:23]Write to MH i2c: E2 08 00 81 4C 80 13 01 00 00 00 00 00 4A [20:51:23]Write i2c OK [20:51:23]MH_I2C_Read... [20:51:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:51:23]Read from MH i2c: E2 [20:51:23]MH_I2C_Read... [20:51:23]Read from MH i2c: E2 0E 00 [20:51:23]MH_I2C_Read... [20:51:23]Read from MH i2c: E2 0E 00 81 4C 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 0C [20:51:23]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [20:51:23]wFMCommunicate OK [20:51:23]SAM_PROTO_GetShiftState done [20:51:23]FM_GetShiftState done [20:51:23]req_shift_opened done [20:51:23]requested_item shift.open_date is exist - process it [20:51:23]req_shift_open_date [20:51:23]req_shift_open_date done [20:51:23]produce_requested_data done [20:51:23]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123351,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [20:51:23]process_action_free print_text [20:51:23]json_value_free [20:51:23]json_value_free done [20:51:23]process_json_proto returns [20:51:23]Send response to host [20:51:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123351,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [20:51:23]free response buf [20:51:23]execute_script done [20:51:23]execute_script returns [20:51:23]free content buf [20:51:23]Sock 10.Close socket [20:51:23]Sock 10.Thread stoped [20:51:28]OFD Sender: No OFD packet to send [20:51:33]OFD Sender: No OFD packet to send [20:51:38]OFD Sender: No OFD packet to send [20:51:43]OFD Sender: No OFD packet to send [20:51:48]OFD Sender: No OFD packet to send [20:51:53]OFD Sender: No OFD packet to send [20:51:58]OFD Sender: No OFD packet to send [20:52:03]OFD Sender: No OFD packet to send [20:52:08]OFD Sender: No OFD packet to send [20:52:13]OFD Sender: No OFD packet to send [20:52:18]OFD Sender: No OFD packet to send [20:52:23]OFD Sender: No OFD packet to send [20:52:28]OFD Sender: No OFD packet to send [20:52:33]OFD Sender: No OFD packet to send [20:52:38]OFD Sender: No OFD packet to send [20:52:43]OFD Sender: No OFD packet to send [20:52:48]OFD Sender: No OFD packet to send [20:52:53]OFD Sender: No OFD packet to send [20:52:58]OFD Sender: No OFD packet to send [20:53:03]OFD Sender: No OFD packet to send [20:53:08]OFD Sender: No OFD packet to send [20:53:13]OFD Sender: No OFD packet to send [20:53:18]OFD Sender: No OFD packet to send [20:53:19]accept exits with 7 [20:53:19]New connection [20:53:19]New thread 3067395428 created [20:53:19]Thread 3067252068 joined [20:53:19]Waiting for new connection... [20:53:19] Sock 7.Parse request [20:53:19]Sock 7.Check first char [20:53:19]Sock 7.First char is OK [20:53:19]request: POST /json_proto HTTP/1.0 [20:53:19]Method: POST [20:53:19]URL: /json_proto [20:53:19]Method is POST - this is cgi request [20:53:19]url: /json_proto [20:53:19]query_string will be loaded in cgi processing [20:53:19]execute_cgi json_proto POST (null) [20:53:19]execute_cgi path=json_proto method=POST [20:53:19]POST find Content-Length [20:53:19]Host: 172.17.48.197:8080 [20:53:19]Content-Length: 807 [20:53:19]Content-Type: application/json [20:53:19] [20:53:19]POST finish read [20:53:19]Found Content-Length = 807 [20:53:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106324", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 10.080, "sum" : 700.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 700.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:53:19]execute_script... [20:53:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106324", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 10.080, "sum" : 700.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 700.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:53:19]POST & json_proto [20:53:19]process_json_proto [20:53:19]json parsed OK: [20:53:19]protocol is kg_v1.0 [20:53:19]action value=close_receipt [20:53:19]process_action close_receipt [20:53:19]cmd_close_receipt [20:53:19]MH_GetDate [20:53:19]Write to MH i2c: F0 00 00 82 4C BD [20:53:19]Write i2c OK [20:53:19]MH_I2C_Read... [20:53:19]Read from MH i2c: F0 [20:53:19]MH_I2C_Read... [20:53:19]Read from MH i2c: F0 09 00 [20:53:19]MH_I2C_Read... [20:53:19]Read from MH i2c: F0 09 00 82 4C 00 44 E3 E4 65 6C AF E3 65 99 [20:53:19]GetLastDocTimeStamp 1709498800 [20:53:19]current date 1709499204 [20:53:19]FM_GetShiftState [20:53:19]SAM_PROTO_GetShiftState [20:53:19]wFMCommunicate request_size=4 [20:53:19]MH_SAM_APDU [20:53:19]CAPDU: 80 13 01 00 [20:53:19]Write to MH i2c: E2 08 00 83 4C 80 13 01 00 00 00 00 00 4C [20:53:19]Write i2c OK [20:53:19]MH_I2C_Read... [20:53:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:53:19]Read from MH i2c: E2 [20:53:19]MH_I2C_Read... [20:53:19]Read from MH i2c: E2 0E 00 [20:53:19]MH_I2C_Read... [20:53:19]Read from MH i2c: E2 0E 00 83 4C 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 0E [20:53:19]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [20:53:19]wFMCommunicate OK [20:53:19]SAM_PROTO_GetShiftState done [20:53:19]FM_GetShiftState done [20:53:19]opened in 1709425579 [20:53:19]opened+sec_in_day 1709511979 [20:53:19]quantity*price = 70056 [20:53:19]sum+1 = 70057 [20:53:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.56 НСП 1% : 6.20 НДС 12% : 74.40 Наличными: 0.00 Безнал.: 700.56 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 209 03.03.2024 20:53 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874798 ФД: 123352 ФПД: 9531228250332 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T205324&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123352&fm=9531228250332&tin=02508201610067®Number=0000000000090573&sum=70056 [20:53:20]StoreToDocumentArchive [20:53:20]shift 323 fd 123352 [20:53:20]save to /storage/0323/doc_00123352 [20:53:20]save last doc name /storage/0323/doc_00123352 to /storage/kkm_last_doc_name [20:53:20]save OK [20:53:20]Clear old archive folders... [20:53:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:53:20]tlvbuf is 00E65800 [20:53:20]SAM_PROTO_ClearQueue [20:53:20]wFMCommunicate request_size=4 [20:53:20]MH_SAM_APDU [20:53:20]CAPDU: 80 09 00 00 [20:53:20]Write to MH i2c: E2 08 00 90 4C 80 09 00 00 00 00 00 00 4E [20:53:20]Write i2c OK [20:53:20]MH_I2C_Read... [20:53:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:53:20]Read from MH i2c: E2 [20:53:20]MH_I2C_Read... [20:53:20]Read from MH i2c: E2 03 00 [20:53:20]MH_I2C_Read... [20:53:20]Read from MH i2c: E2 03 00 90 4C 00 90 00 50 [20:53:20]RAPDU: 90 00 [20:53:20]wFMCommunicate OK [20:53:20]SAM_PROTO_ClearQueue done [20:53:20]KKMCreateOFDPacket [20:53:20]OFDProtocolAddRootSTLVToBuf [20:53:20]FM_MakeSignedData [20:53:20]FM_MakeSignedData [20:53:20]SAM_PROTO_SignData [20:53:20]wFMCommunicate request_size=4 [20:53:20]MH_SAM_APDU [20:53:20]CAPDU: 80 0D 01 02 [20:53:20]Write to MH i2c: E2 08 00 91 4C 80 0D 01 02 00 00 00 00 56 [20:53:20]Write i2c OK [20:53:20]MH_I2C_Read... [20:53:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:53:20]Read from MH i2c: E2 [20:53:20]MH_I2C_Read... [20:53:20]Read from MH i2c: E2 03 00 [20:53:20]MH_I2C_Read... [20:53:20]Read from MH i2c: E2 03 00 91 4C 00 90 00 51 [20:53:20]RAPDU: 90 00 [20:53:20]wFMCommunicate OK [20:53:20]wFMCommunicate request_size=255 [20:53:20]MH_SAM_APDU [20:53:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 60 27 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 A8 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 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 10 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 44 E3 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 D8 E1 01 00 35 04 06 00 08 [20:53:20]Write to MH i2c: E2 02 01 92 4C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 60 27 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 A8 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 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 10 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 44 E3 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 D8 E1 01 00 35 04 06 00 08 00 00 46 [20:53:20]Write i2c OK [20:53:20]MH_I2C_Read... [20:53:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:53:20]Read from MH i2c: E2 [20:53:20]MH_I2C_Read... [20:53:20]Read from MH i2c: E2 03 00 [20:53:20]MH_I2C_Read... [20:53:20]Read from MH i2c: E2 03 00 92 4C 00 90 00 52 [20:53:20]RAPDU: 90 00 [20:53:20]wFMCommunicate OK [20:53:20]wFMCommunicate request_size=10 [20:53:20]MH_SAM_APDU [20:53:20]CAPDU: 80 0D 02 02 05 AB 29 79 60 DC [20:53:20]Write to MH i2c: E2 0D 00 93 4C 80 0D 02 02 05 00 AB 29 79 60 DC 00 00 EC [20:53:20]Write i2c OK [20:53:20]MH_I2C_Read... [20:53:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:53:21]Read from MH i2c: E2 [20:53:21]MH_I2C_Read... [20:53:21]Read from MH i2c: E2 03 00 [20:53:21]MH_I2C_Read... [20:53:21]Read from MH i2c: E2 03 00 93 4C 00 90 00 53 [20:53:21]RAPDU: 90 00 [20:53:21]wFMCommunicate OK [20:53:21]wFMCommunicate request_size=4 [20:53:21]MH_SAM_APDU [20:53:21]CAPDU: 80 0D 03 02 [20:53:21]Write to MH i2c: E2 08 00 94 4C 80 0D 03 02 00 00 00 00 5B [20:53:21]Write i2c OK [20:53:21]MH_I2C_Read... [20:53:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:53:21]Read from MH i2c: E2 [20:53:21]MH_I2C_Read... [20:53:21]Read from MH i2c: E2 0B 00 [20:53:21]MH_I2C_Read... [20:53:21]Read from MH i2c: E2 0B 00 94 4C 00 CF 97 AF 25 D7 4B AA 3C 90 00 9E [20:53:21]RAPDU: CF 97 AF 25 D7 4B AA 3C 90 00 [20:53:21]wFMCommunicate OK [20:53:21]SAM_PROTO_SignData done [20:53:21]FM_MakeSignedData done [20:53:21]CreateOFDProtocolMessage [20:53:21]wFMCommunicate request_size=4 [20:53:21]MH_SAM_APDU [20:53:21]CAPDU: 80 11 00 00 [20:53:21]Write to MH i2c: E2 08 00 95 4C 80 11 00 00 00 00 00 00 5B [20:53:21]Write i2c OK [20:53:21]MH_I2C_Read... [20:53:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:53:21]Read from MH i2c: E2 [20:53:21]MH_I2C_Read... [20:53:21]Read from MH i2c: E2 17 00 [20:53:21]MH_I2C_Read... [20:53:21]Read from MH i2c: E2 17 00 95 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 B9 [20:53:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [20:53:21]wFMCommunicate OK [20:53:21]CreateOFDProtocolMessage done [20:53:21]OFDSenderStorePacket 123352 [20:53:21]StoreOFDPacket docnum=123352 [20:53:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 7E 8A 07 01 BA 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 60 27 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 A8 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 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 10 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 44 E3 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 D8 E1 01 00 35 04 06 00 08 AB 29 79 60 DC CF 97 AF 25 D7 4B AA 3C [20:53:21]CheckFolder [20:53:21]dirname=/storage/ofd_packets [20:53:21]CheckFolder done [20:53:21]ProducePacketName [20:53:21]name=ofd_packets/00123352 [20:53:21]NVStorageSaveData ofd_packets/00123352 [20:53:21]File name is /storage/ofd_packets/00123352 [20:53:21]Write 301 bytes [20:53:21]NVStorageSaveData done [20:53:21]OFDSenderStorePacket done [20:53:21]KKMCreateOFDPacket done [20:53:21]NVStorageSaveData kkm_last_timestamp [20:53:21]File name is /storage/kkm_last_timestamp [20:53:21]Write 4 bytes [20:53:21]NVStorageSaveData done [20:53:21]ExternCall_PrintAddStr [20:53:21]wPrintStart [20:53:21]Write to MH i2c: 01 00 00 96 4C E2 [20:53:21]Write i2c OK [20:53:21]MH_I2C_Read... [20:53:21]Read from MH i2c: 01 [20:53:21]MH_I2C_Read... [20:53:21]Read from MH i2c: 01 07 00 [20:53:21]MH_I2C_Read... [20:53:21]Read from MH i2c: 01 07 00 96 4C 00 00 00 00 00 FF 0F F7 [20:53:21]RasterBufferAndPrint [20:53:21]line Счет N : (1)1106324 [20:53:21]line ИНН: 02508201610067 [20:53:21]line Контрольно-Кассовый Чек [20:53:21]line ПРОДАЖА [20:53:21]line ТРК (МРК, ГНК) : 13 [20:53:21]line Товар: 2710124500 [20:53:21]line Аи-95-К-5 [20:53:21]line 10.080 * 69.50 [20:53:21]line = 700.56 [20:53:21]line НДС 12% НСП 1% [20:53:21]line > о реализуемом товаре [20:53:21]line ИТОГО: 700.56 [20:53:21]line НСП 1% : 6.20 [20:53:21]line НДС 12% : 74.40 [20:53:21]line Наличными: 0.00 [20:53:21]line Безнал.: 700.56 [20:53:21]line Место: АЗС № 25 "Партнер Нефть" [20:53:21]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [20:53:21]line СНО: Общий режим [20:53:21]line Чек 209 03.03.2024 20:53 [20:53:21]line Смена: 323 ФФД: 1.0 [20:53:21]line ЗНМ: 0300000019 [20:53:21]line РНМ: 0000000000090573 [20:53:21]line Версия ККМ: 001 [20:53:21]line Платежная система: О! деньги [20:53:21]line ФМ: 0000000000874798 [20:53:21]line ФД: 123352 [20:53:21]line ФПД: 9531228250332 [20:53:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T205324&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123352&fm=9531228250332&tin=02508201610067®Number=0000000000090573&sum=70056 [20:53:21]OFD Sender: Processing packet 123352 [packets to send 112, broken 111] [20:53:21]ProducePacketName [20:53:21]name=ofd_packets/00123352 [20:53:21]OFD Sender: To server: pG, [20:53:21]CommunicateWithHost lk.salyk.kg:30040 [20:53:21]ConnectInit lk.salyk.kg [20:53:21]written 0, free lines is 4095 [20:53:21]Connected sock=10 [20:53:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 7E 8A 07 01 BA 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 60 27 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 A8 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 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 10 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 44 E3 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 D8 E1 01 00 35 04 06 00 08 AB 29 79 60 DC CF 97 AF 25 D7 4B AA 3C [20:53:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 F1 FC 47 00 19 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 D8 E1 01 00 F4 03 04 00 6F 8F E4 65 B6 04 01 00 00 B3 55 0C A2 EF B4 ED 91 [20:53:21]CommunicateWithHost err = 0 [20:53:21]CheckOFDResponse [20:53:21]1017 (14) - 77093643461234 [20:53:21]1041 (16) - 0000000000874798 [20:53:21]1040 (4) - 123352 [20:53:21]1012 (4) - 03.03.2024 14:55 [20:53:21]1206 (1) - 0 [20:53:21]OFD Sender: Remove packet 123352 [20:53:21]ProducePacketName [20:53:21]name=ofd_packets/00123352 [20:53:21]NVStorageDeleteData [20:53:21]Write to MH i2c: 01 00 00 C0 4C 0C [20:53:21]Write i2c OK [20:53:21]MH_I2C_Read... [20:53:21]Read from MH i2c: 01 [20:53:21]MH_I2C_Read... [20:53:21]Read from MH i2c: 01 07 00 [20:53:21]MH_I2C_Read... [20:53:21]Read from MH i2c: 01 07 00 C0 4C 00 00 00 00 00 06 0D 26 [20:53:21]RasterBufferAndPrint [20:53:21]line [20:53:21]line [20:53:21]line [20:53:21]line [20:53:21]line [20:53:21]written 0, free lines is 3343 [20:53:21]MH_Cut [20:53:21]Write to MH i2c: D1 01 00 C7 4C 01 E5 [20:53:21]Write i2c OK [20:53:21]MH_I2C_Read... [20:53:21]Read from MH i2c: D1 [20:53:21]MH_I2C_Read... [20:53:21]Read from MH i2c: D1 01 00 [20:53:21]MH_I2C_Read... [20:53:21]Read from MH i2c: D1 01 00 C7 4C 00 E4 [20:53:21]Write to MH i2c: 01 00 00 C8 4C 14 [20:53:21]Write i2c OK [20:53:21]MH_I2C_Read... [20:53:22]OFD Sender: No OFD packet to send [20:53:22]*** Cut start [20:53:22]*** Purtial cut [20:53:22]*** Stage 1: CUTSNS_PIN = 1 [20:53:24]Read from MH i2c: 01 [20:53:24]MH_I2C_Read... [20:53:24]*** Stop cut motor [20:53:24]*** Cut end [20:53:24]Read from MH i2c: 01 07 00 [20:53:24]MH_I2C_Read... [20:53:24]Read from MH i2c: 01 07 00 C8 4C 00 00 00 00 00 FF 0F 29 [20:53:24]process_action close_receipt done [20:53:24]requested_data is exist [20:53:24]produce_requested_data [20:53:24]requested_item fm.sn is exist - process it [20:53:24]wFMCommunicate request_size=4 [20:53:24]MH_SAM_APDU [20:53:24]CAPDU: 80 11 00 00 [20:53:24]Write to MH i2c: E2 08 00 C9 4C 80 11 00 00 00 00 00 00 8F [20:53:24]Write i2c OK [20:53:24]MH_I2C_Read... [20:53:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:53:24]Read from MH i2c: E2 [20:53:24]MH_I2C_Read... [20:53:24]Read from MH i2c: E2 17 00 [20:53:24]MH_I2C_Read... [20:53:24]Read from MH i2c: E2 17 00 C9 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 ED [20:53:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [20:53:24]wFMCommunicate OK [20:53:24]requested_item fd.num is exist - process it [20:53:24]SAM_PROTO_GetFieldsCounters [20:53:24]wFMCommunicate request_size=4 [20:53:24]MH_SAM_APDU [20:53:24]CAPDU: 80 13 00 00 [20:53:24]Write to MH i2c: E2 08 00 CA 4C 80 13 00 00 00 00 00 00 92 [20:53:24]Write i2c OK [20:53:24]MH_I2C_Read... [20:53:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:53:24]Read from MH i2c: E2 [20:53:24]MH_I2C_Read... [20:53:24]Read from MH i2c: E2 62 00 [20:53:24]MH_I2C_Read... [20:53:24]Read from MH i2c: E2 62 00 CA 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 D8 E1 01 00 0E 04 04 00 43 01 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 2E [20:53:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 D8 E1 01 00 0E 04 04 00 43 01 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 [20:53:24]wFMCommunicate OK [20:53:24]SAM_PROTO_GetFieldsCounters done [20:53:24]requested_item shift.num is exist - process it [20:53:24]requested_item shift.opened is exist - process it [20:53:24]req_shift_opened [20:53:24]FM_GetShiftState [20:53:24]SAM_PROTO_GetShiftState [20:53:24]wFMCommunicate request_size=4 [20:53:24]MH_SAM_APDU [20:53:24]CAPDU: 80 13 01 00 [20:53:24]Write to MH i2c: E2 08 00 CB 4C 80 13 01 00 00 00 00 00 94 [20:53:24]Write i2c OK [20:53:24]MH_I2C_Read... [20:53:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:53:24]Read from MH i2c: E2 [20:53:24]MH_I2C_Read... [20:53:24]Read from MH i2c: E2 0E 00 [20:53:24]MH_I2C_Read... [20:53:24]Read from MH i2c: E2 0E 00 CB 4C 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 56 [20:53:24]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [20:53:24]wFMCommunicate OK [20:53:24]SAM_PROTO_GetShiftState done [20:53:24]FM_GetShiftState done [20:53:24]req_shift_opened done [20:53:24]requested_item shift.open_date is exist - process it [20:53:24]req_shift_open_date [20:53:24]req_shift_open_date done [20:53:24]produce_requested_data done [20:53:24]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123352,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [20:53:24]process_action_free close_receipt [20:53:24]json_value_free [20:53:24]json_value_free done [20:53:24]process_json_proto returns [20:53:24]Send response to host [20:53:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123352,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [20:53:24]free response buf [20:53:24]execute_script done [20:53:24]execute_script returns [20:53:24]free content buf [20:53:24]Sock 7.Close socket [20:53:24]Sock 7.Thread stoped [20:53:27]OFD Sender: No OFD packet to send [20:53:32]OFD Sender: No OFD packet to send [20:53:37]OFD Sender: No OFD packet to send [20:53:42]OFD Sender: No OFD packet to send [20:53:47]OFD Sender: No OFD packet to send [20:53:52]OFD Sender: No OFD packet to send [20:53:57]OFD Sender: No OFD packet to send [20:54:02]OFD Sender: No OFD packet to send [20:54:07]OFD Sender: No OFD packet to send [20:54:12]OFD Sender: No OFD packet to send [20:54:17]OFD Sender: No OFD packet to send [20:54:22]OFD Sender: No OFD packet to send [20:54:27]OFD Sender: No OFD packet to send [20:54:32]OFD Sender: No OFD packet to send [20:54:37]OFD Sender: No OFD packet to send [20:54:42]OFD Sender: No OFD packet to send [20:54:47]OFD Sender: No OFD packet to send [20:54:48]accept exits with 9 [20:54:48]New connection [20:54:48]New thread 3067252068 created [20:54:48]Thread 3067395428 joined [20:54:48]Waiting for new connection... [20:54:48] Sock 9.Parse request [20:54:48]Sock 9.Check first char [20:54:48]Sock 9.First char is OK [20:54:48]request: POST /json_proto HTTP/1.0 [20:54:48]Method: POST [20:54:48]URL: /json_proto [20:54:48]Method is POST - this is cgi request [20:54:48]url: /json_proto [20:54:48]query_string will be loaded in cgi processing [20:54:48]execute_cgi json_proto POST (null) [20:54:48]execute_cgi path=json_proto method=POST [20:54:48]POST find Content-Length [20:54:48]Host: 172.17.48.197:8080 [20:54:48]Content-Length: 1208 [20:54:48]Content-Type: application/json [20:54:48] [20:54:48]POST finish read [20:54:48]Found Content-Length = 1208 [20:54:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106323\u000A03.03.2024 20:51\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 8.080 x 61.90\u000A\u0418\u0422\u041E\u0413: 500.15\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A01137\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:54:48]execute_script... [20:54:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106323\u000A03.03.2024 20:51\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 8.080 x 61.90\u000A\u0418\u0422\u041E\u0413: 500.15\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A01137\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:54:48]POST & json_proto [20:54:48]process_json_proto [20:54:48]json parsed OK: [20:54:48]protocol is kg_v1.0 [20:54:48]action value=print_text [20:54:48]process_action print_text [20:54:48]cmd_print_text [20:54:48]ExternCall_PrintAddStr [20:54:48]wPrintStart [20:54:48]Write to MH i2c: 01 00 00 CC 4C 18 [20:54:48]Write i2c OK [20:54:48]MH_I2C_Read... [20:54:48]Read from MH i2c: 01 [20:54:48]MH_I2C_Read... [20:54:48]Read from MH i2c: 01 07 00 [20:54:48]MH_I2C_Read... [20:54:48]Read from MH i2c: 01 07 00 CC 4C 00 00 00 00 00 FF 0F 2D [20:54:48]RasterBufferAndPrint [20:54:48]line *****ТОВАРНЫЙ ЧЕК***** [20:54:48]line АЗС 25 [20:54:48]line Партнер нефть [20:54:48]line 02508201610067 [20:54:48]line Кассир : Турдумбек у. К. [20:54:48]line Счет N : (1)1106323 [20:54:48]line 03.03.2024 20:51 [20:54:48]line ПРОДАЖА [20:54:48]line ТРК (МРК, ГНК): 21 [20:54:48]line Вид ГСМ : 2710124130 [20:54:48]line Аи-92-К-5 [20:54:48]line 8.080 x 61.90 [20:54:48]line ИТОГ: 500.15 [20:54:48]line Тип оплаты: Талоны: Топливная Карта [20:54:48]line 01137 [20:54:48]line ______________________ [20:54:48]line (подпись) [20:54:48]written 0, free lines is 4095 [20:54:48]Write to MH i2c: 01 00 00 E1 4C 2D [20:54:48]Write i2c OK [20:54:48]MH_I2C_Read... [20:54:48]Read from MH i2c: 01 [20:54:48]MH_I2C_Read... [20:54:48]Read from MH i2c: 01 07 00 [20:54:48]MH_I2C_Read... [20:54:48]Read from MH i2c: 01 07 00 E1 4C 00 00 00 00 00 F4 0D 35 [20:54:48]RasterBufferAndPrint [20:54:48]line [20:54:48]line [20:54:48]line [20:54:48]line [20:54:48]line [20:54:48]written 0, free lines is 3574 [20:54:48]MH_Cut [20:54:48]Write to MH i2c: D1 01 00 E8 4C 01 06 [20:54:48]Write i2c OK [20:54:48]MH_I2C_Read... [20:54:48]Read from MH i2c: D1 [20:54:48]MH_I2C_Read... [20:54:48]Read from MH i2c: D1 01 00 [20:54:48]MH_I2C_Read... [20:54:48]Read from MH i2c: D1 01 00 E8 4C 00 05 [20:54:48]Write to MH i2c: 01 00 00 E9 4C 35 [20:54:48]Write i2c OK [20:54:48]MH_I2C_Read... [20:54:48]*** Cut start [20:54:48]*** Purtial cut [20:54:49]*** Stage 1: CUTSNS_PIN = 1 [20:54:51]Read from MH i2c: 01 [20:54:51]MH_I2C_Read... [20:54:51]*** Stop cut motor [20:54:51]*** Cut end [20:54:51]Read from MH i2c: 01 07 00 [20:54:51]MH_I2C_Read... [20:54:51]Read from MH i2c: 01 07 00 E9 4C 00 00 00 00 00 FF 0F 4A [20:54:51]process_action print_text done [20:54:51]requested_data is exist [20:54:51]produce_requested_data [20:54:51]requested_item fm.sn is exist - process it [20:54:51]wFMCommunicate request_size=4 [20:54:51]MH_SAM_APDU [20:54:51]CAPDU: 80 11 00 00 [20:54:51]Write to MH i2c: E2 08 00 EA 4C 80 11 00 00 00 00 00 00 B0 [20:54:51]Write i2c OK [20:54:51]MH_I2C_Read... [20:54:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:54:51]Read from MH i2c: E2 [20:54:51]MH_I2C_Read... [20:54:51]Read from MH i2c: E2 17 00 [20:54:51]MH_I2C_Read... [20:54:51]Read from MH i2c: E2 17 00 EA 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 0E [20:54:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [20:54:51]wFMCommunicate OK [20:54:51]requested_item fd.num is exist - process it [20:54:51]SAM_PROTO_GetFieldsCounters [20:54:51]wFMCommunicate request_size=4 [20:54:51]MH_SAM_APDU [20:54:51]CAPDU: 80 13 00 00 [20:54:51]Write to MH i2c: E2 08 00 EB 4C 80 13 00 00 00 00 00 00 B3 [20:54:51]Write i2c OK [20:54:51]MH_I2C_Read... [20:54:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:54:51]Read from MH i2c: E2 [20:54:51]MH_I2C_Read... [20:54:51]Read from MH i2c: E2 62 00 [20:54:51]MH_I2C_Read... [20:54:51]Read from MH i2c: E2 62 00 EB 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 D8 E1 01 00 0E 04 04 00 43 01 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 4F [20:54: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 D8 E1 01 00 0E 04 04 00 43 01 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 [20:54:51]wFMCommunicate OK [20:54:51]SAM_PROTO_GetFieldsCounters done [20:54:51]requested_item shift.num is exist - process it [20:54:51]requested_item shift.opened is exist - process it [20:54:51]req_shift_opened [20:54:51]FM_GetShiftState [20:54:51]SAM_PROTO_GetShiftState [20:54:51]wFMCommunicate request_size=4 [20:54:51]MH_SAM_APDU [20:54:51]CAPDU: 80 13 01 00 [20:54:51]Write to MH i2c: E2 08 00 EC 4C 80 13 01 00 00 00 00 00 B5 [20:54:51]Write i2c OK [20:54:51]MH_I2C_Read... [20:54:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:54:51]Read from MH i2c: E2 [20:54:51]MH_I2C_Read... [20:54:51]Read from MH i2c: E2 0E 00 [20:54:51]MH_I2C_Read... [20:54:51]Read from MH i2c: E2 0E 00 EC 4C 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 77 [20:54:51]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [20:54:51]wFMCommunicate OK [20:54:51]SAM_PROTO_GetShiftState done [20:54:51]FM_GetShiftState done [20:54:51]req_shift_opened done [20:54:51]requested_item shift.open_date is exist - process it [20:54:51]req_shift_open_date [20:54:51]req_shift_open_date done [20:54:51]produce_requested_data done [20:54:51]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123352,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [20:54:51]process_action_free print_text [20:54:51]json_value_free [20:54:51]json_value_free done [20:54:51]process_json_proto returns [20:54:51]Send response to host [20:54:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123352,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [20:54:51]free response buf [20:54:51]execute_script done [20:54:51]execute_script returns [20:54:51]free content buf [20:54:51]Sock 9.Close socket [20:54:51]Sock 9.Thread stoped [20:54:52]OFD Sender: No OFD packet to send [20:54:57]OFD Sender: No OFD packet to send [20:55:02]OFD Sender: No OFD packet to send [20:55:07]OFD Sender: No OFD packet to send [20:55:12]OFD Sender: No OFD packet to send [20:55:17]OFD Sender: No OFD packet to send [20:55:22]OFD Sender: No OFD packet to send [20:55:27]OFD Sender: No OFD packet to send [20:55:32]OFD Sender: No OFD packet to send [20:55:37]OFD Sender: No OFD packet to send [20:55:42]OFD Sender: No OFD packet to send [20:55:47]OFD Sender: No OFD packet to send [20:55:52]OFD Sender: No OFD packet to send [20:55:57]OFD Sender: No OFD packet to send [20:56:02]OFD Sender: No OFD packet to send [20:56:07]OFD Sender: No OFD packet to send [20:56:12]OFD Sender: No OFD packet to send [20:56:17]OFD Sender: No OFD packet to send [20:56:22]OFD Sender: No OFD packet to send [20:56:27]OFD Sender: No OFD packet to send [20:56:32]OFD Sender: No OFD packet to send [20:56:37]OFD Sender: No OFD packet to send [20:56:42]OFD Sender: No OFD packet to send [20:56:47]OFD Sender: No OFD packet to send [20:56:52]OFD Sender: No OFD packet to send [20:56:57]OFD Sender: No OFD packet to send [20:57:02]OFD Sender: No OFD packet to send [20:57:07]OFD Sender: No OFD packet to send [20:57:12]OFD Sender: No OFD packet to send [20:57:17]OFD Sender: No OFD packet to send [20:57:22]OFD Sender: No OFD packet to send [20:57:23]accept exits with 7 [20:57:23]New connection [20:57:23]New thread 3067395428 created [20:57:23]Thread 3067252068 joined [20:57:23]Waiting for new connection... [20:57:23] Sock 7.Parse request [20:57:23]Sock 7.Check first char [20:57:23]Sock 7.First char is OK [20:57:23]request: POST /json_proto HTTP/1.0 [20:57:23]Method: POST [20:57:23]URL: /json_proto [20:57:23]Method is POST - this is cgi request [20:57:23]url: /json_proto [20:57:23]query_string will be loaded in cgi processing [20:57:23]execute_cgi json_proto POST (null) [20:57:23]execute_cgi path=json_proto method=POST [20:57:23]POST find Content-Length [20:57:23]Host: 172.17.48.197:8080 [20:57:23]Content-Length: 807 [20:57:23]Content-Type: application/json [20:57:23] [20:57:23]POST finish read [20:57:23]Found Content-Length = 807 [20:57:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106327", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 11.310, "sum" : 700.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 700.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:57:23]execute_script... [20:57:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106327", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 11.310, "sum" : 700.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 700.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:57:23]POST & json_proto [20:57:23]process_json_proto [20:57:23]json parsed OK: [20:57:23]protocol is kg_v1.0 [20:57:23]action value=close_receipt [20:57:23]process_action close_receipt [20:57:23]cmd_close_receipt [20:57:23]MH_GetDate [20:57:23]Write to MH i2c: F0 00 00 ED 4C 28 [20:57:23]Write i2c OK [20:57:23]MH_I2C_Read... [20:57:23]Read from MH i2c: F0 [20:57:23]MH_I2C_Read... [20:57:23]Read from MH i2c: F0 09 00 [20:57:23]MH_I2C_Read... [20:57:23]Read from MH i2c: F0 09 00 ED 4C 00 38 E4 E4 65 6C AF E3 65 F9 [20:57:23]GetLastDocTimeStamp 1709499204 [20:57:23]current date 1709499448 [20:57:23]FM_GetShiftState [20:57:23]SAM_PROTO_GetShiftState [20:57:23]wFMCommunicate request_size=4 [20:57:23]MH_SAM_APDU [20:57:23]CAPDU: 80 13 01 00 [20:57:23]Write to MH i2c: E2 08 00 EE 4C 80 13 01 00 00 00 00 00 B7 [20:57:23]Write i2c OK [20:57:23]MH_I2C_Read... [20:57:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:57:23]Read from MH i2c: E2 [20:57:23]MH_I2C_Read... [20:57:23]Read from MH i2c: E2 0E 00 [20:57:23]MH_I2C_Read... [20:57:23]Read from MH i2c: E2 0E 00 EE 4C 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 79 [20:57:23]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [20:57:23]wFMCommunicate OK [20:57:23]SAM_PROTO_GetShiftState done [20:57:23]FM_GetShiftState done [20:57:23]opened in 1709425579 [20:57:23]opened+sec_in_day 1709511979 [20:57:23]quantity*price = 70008 [20:57:23]sum+1 = 70010 [20:57:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.09 НСП 1% : 6.19 НДС 12% : 74.35 Наличными: 0.00 Безнал.: 700.09 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 210 03.03.2024 20:57 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874798 ФД: 123353 ФПД: 120612925734973 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T205728&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123353&fm=120612925734973&tin=02508201610067®Number=0000000000090573&sum=70009 [20:57:24]StoreToDocumentArchive [20:57:24]shift 323 fd 123353 [20:57:24]save to /storage/0323/doc_00123353 [20:57:24]save last doc name /storage/0323/doc_00123353 to /storage/kkm_last_doc_name [20:57:24]save OK [20:57:24]Clear old archive folders... [20:57:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:57:24]tlvbuf is 00DD5E00 [20:57:24]SAM_PROTO_ClearQueue [20:57:24]wFMCommunicate request_size=4 [20:57:24]MH_SAM_APDU [20:57:24]CAPDU: 80 09 00 00 [20:57:24]Write to MH i2c: E2 08 00 FB 4C 80 09 00 00 00 00 00 00 B9 [20:57:24]Write i2c OK [20:57:24]MH_I2C_Read... [20:57:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:57:24]Read from MH i2c: E2 [20:57:24]MH_I2C_Read... [20:57:24]Read from MH i2c: E2 03 00 [20:57:24]MH_I2C_Read... [20:57:24]Read from MH i2c: E2 03 00 FB 4C 00 90 00 BB [20:57:24]RAPDU: 90 00 [20:57:24]wFMCommunicate OK [20:57:24]SAM_PROTO_ClearQueue done [20:57:24]KKMCreateOFDPacket [20:57:24]OFDProtocolAddRootSTLVToBuf [20:57:24]FM_MakeSignedData [20:57:24]FM_MakeSignedData [20:57:24]SAM_PROTO_SignData [20:57:24]wFMCommunicate request_size=4 [20:57:24]MH_SAM_APDU [20:57:24]CAPDU: 80 0D 01 02 [20:57:24]Write to MH i2c: E2 08 00 FC 4C 80 0D 01 02 00 00 00 00 C1 [20:57:24]Write i2c OK [20:57:24]MH_I2C_Read... [20:57:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:57:24]Read from MH i2c: E2 [20:57:24]MH_I2C_Read... [20:57:24]Read from MH i2c: E2 03 00 [20:57:24]MH_I2C_Read... [20:57:24]Read from MH i2c: E2 03 00 FC 4C 00 90 00 BC [20:57:24]RAPDU: 90 00 [20:57:24]wFMCommunicate OK [20:57:24]wFMCommunicate request_size=255 [20:57:24]MH_SAM_APDU [20:57:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 2C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 79 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 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 00 00 00 00 00 00 39 04 06 00 79 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 38 E4 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 D9 E1 01 00 35 04 06 00 6D [20:57:24]Write to MH i2c: E2 02 01 FD 4C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 2C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 79 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 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 00 00 00 00 00 00 39 04 06 00 79 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 38 E4 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 D9 E1 01 00 35 04 06 00 6D 00 00 4E [20:57:24]Write i2c OK [20:57:24]MH_I2C_Read... [20:57:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:57:24]Read from MH i2c: E2 [20:57:24]MH_I2C_Read... [20:57:24]Read from MH i2c: E2 03 00 [20:57:24]MH_I2C_Read... [20:57:24]Read from MH i2c: E2 03 00 FD 4C 00 90 00 BD [20:57:24]RAPDU: 90 00 [20:57:24]wFMCommunicate OK [20:57:24]wFMCommunicate request_size=10 [20:57:24]MH_SAM_APDU [20:57:24]CAPDU: 80 0D 02 02 05 B2 62 98 00 3D [20:57:24]Write to MH i2c: E2 0D 00 FE 4C 80 0D 02 02 05 00 B2 62 98 00 3D 00 00 B7 [20:57:24]Write i2c OK [20:57:24]MH_I2C_Read... [20:57:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:57:25]Read from MH i2c: E2 [20:57:25]MH_I2C_Read... [20:57:25]Read from MH i2c: E2 03 00 [20:57:25]MH_I2C_Read... [20:57:25]Read from MH i2c: E2 03 00 FE 4C 00 90 00 BE [20:57:25]RAPDU: 90 00 [20:57:25]wFMCommunicate OK [20:57:25]wFMCommunicate request_size=4 [20:57:25]MH_SAM_APDU [20:57:25]CAPDU: 80 0D 03 02 [20:57:25]Write to MH i2c: E2 08 00 FF 4C 80 0D 03 02 00 00 00 00 C6 [20:57:25]Write i2c OK [20:57:25]MH_I2C_Read... [20:57:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:57:25]Read from MH i2c: E2 [20:57:25]MH_I2C_Read... [20:57:25]Read from MH i2c: E2 0B 00 [20:57:25]MH_I2C_Read... [20:57:25]Read from MH i2c: E2 0B 00 FF 4C 00 79 C1 07 39 4C 3F 9D D2 90 00 3B [20:57:25]RAPDU: 79 C1 07 39 4C 3F 9D D2 90 00 [20:57:25]wFMCommunicate OK [20:57:25]SAM_PROTO_SignData done [20:57:25]FM_MakeSignedData done [20:57:25]CreateOFDProtocolMessage [20:57:25]wFMCommunicate request_size=4 [20:57:25]MH_SAM_APDU [20:57:25]CAPDU: 80 11 00 00 [20:57:25]Write to MH i2c: E2 08 00 00 4D 80 11 00 00 00 00 00 00 C7 [20:57:25]Write i2c OK [20:57:25]MH_I2C_Read... [20:57:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:57:25]Read from MH i2c: E2 [20:57:25]MH_I2C_Read... [20:57:25]Read from MH i2c: E2 17 00 [20:57:25]MH_I2C_Read... [20:57:25]Read from MH i2c: E2 17 00 00 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 25 [20:57:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [20:57:25]wFMCommunicate OK [20:57:25]CreateOFDProtocolMessage done [20:57:25]OFDSenderStorePacket 123353 [20:57:25]StoreOFDPacket docnum=123353 [20:57:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 EA F9 07 01 36 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 2C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 79 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 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 00 00 00 00 00 00 39 04 06 00 79 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 38 E4 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 D9 E1 01 00 35 04 06 00 6D B2 62 98 00 3D 79 C1 07 39 4C 3F 9D D2 [20:57:25]CheckFolder [20:57:25]dirname=/storage/ofd_packets [20:57:25]CheckFolder done [20:57:25]ProducePacketName [20:57:25]name=ofd_packets/00123353 [20:57:25]NVStorageSaveData ofd_packets/00123353 [20:57:25]File name is /storage/ofd_packets/00123353 [20:57:25]Write 301 bytes [20:57:25]NVStorageSaveData done [20:57:25]OFDSenderStorePacket done [20:57:25]KKMCreateOFDPacket done [20:57:25]NVStorageSaveData kkm_last_timestamp [20:57:25]File name is /storage/kkm_last_timestamp [20:57:25]Write 4 bytes [20:57:25]NVStorageSaveData done [20:57:25]ExternCall_PrintAddStr [20:57:25]wPrintStart [20:57:25]Write to MH i2c: 01 00 00 01 4D 4E [20:57:25]Write i2c OK [20:57:25]MH_I2C_Read... [20:57:25]Read from MH i2c: 01 [20:57:25]MH_I2C_Read... [20:57:25]Read from MH i2c: 01 07 00 [20:57:25]MH_I2C_Read... [20:57:25]Read from MH i2c: 01 07 00 01 4D 00 00 00 00 00 FF 0F 63 [20:57:25]RasterBufferAndPrint [20:57:25]line Счет N : (1)1106327 [20:57:25]line ИНН: 02508201610067 [20:57:25]line Контрольно-Кассовый Чек [20:57:25]line ПРОДАЖА [20:57:25]line ТРК (МРК, ГНК) : 62 [20:57:25]line Товар: 2710124130 [20:57:25]line Аи-92-К-5 [20:57:25]line 11.310 * 61.90 [20:57:25]line = 700.09 [20:57:25]line НДС 12% НСП 1% [20:57:25]line > о реализуемом товаре [20:57:25]line ИТОГО: 700.09 [20:57:25]line НСП 1% : 6.19 [20:57:25]line НДС 12% : 74.35 [20:57:25]line Наличными: 0.00 [20:57:25]line Безнал.: 700.09 [20:57:25]line Место: АЗС № 25 "Партнер Нефть" [20:57:25]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [20:57:25]line СНО: Общий режим [20:57:25]line Чек 210 03.03.2024 20:57 [20:57:25]line Смена: 323 ФФД: 1.0 [20:57:25]line ЗНМ: 0300000019 [20:57:25]line РНМ: 0000000000090573 [20:57:25]line Версия ККМ: 001 [20:57:25]line Платежная система: О! деньги [20:57:25]line ФМ: 0000000000874798 [20:57:25]line ФД: 123353 [20:57:25]line ФПД: 120612925734973 [20:57:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T205728&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123353&fm=120612925734973&tin=02508201610067®Number=0000000000090573&sum=70009 [20:57:25]OFD Sender: Processing packet 123353 [packets to send 112, broken 111] [20:57:25]ProducePacketName [20:57:25]name=ofd_packets/00123353 [20:57:25]OFD Sender: To server: pG, [20:57:25]CommunicateWithHost lk.salyk.kg:30040 [20:57:25]ConnectInit lk.salyk.kg [20:57:25]written 0, free lines is 4095 [20:57:25]Connected sock=10 [20:57: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 37 39 38 0F 01 00 00 EA F9 07 01 36 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 2C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 79 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 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 00 00 00 00 00 00 39 04 06 00 79 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 38 E4 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 D9 E1 01 00 35 04 06 00 6D B2 62 98 00 3D 79 C1 07 39 4C 3F 9D D2 [20:57:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 F2 42 47 00 4D 91 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 D9 E1 01 00 F4 03 04 00 63 90 E4 65 B6 04 01 00 00 3D 06 96 BE E6 BC F7 48 [20:57:25]CommunicateWithHost err = 0 [20:57:25]CheckOFDResponse [20:57:25]1017 (14) - 77093643461234 [20:57:25]1041 (16) - 0000000000874798 [20:57:25]1040 (4) - 123353 [20:57:25]1012 (4) - 03.03.2024 14:59 [20:57:25]1206 (1) - 0 [20:57:25]OFD Sender: Remove packet 123353 [20:57:25]ProducePacketName [20:57:25]name=ofd_packets/00123353 [20:57:25]NVStorageDeleteData [20:57:25]Write to MH i2c: 01 00 00 2B 4D 78 [20:57:25]Write i2c OK [20:57:25]MH_I2C_Read... [20:57:25]Read from MH i2c: 01 [20:57:25]MH_I2C_Read... [20:57:25]Read from MH i2c: 01 07 00 [20:57:25]MH_I2C_Read... [20:57:25]Read from MH i2c: 01 07 00 2B 4D 00 00 00 00 00 0A 0D 96 [20:57:25]RasterBufferAndPrint [20:57:25]line [20:57:25]line [20:57:25]line [20:57:25]line [20:57:25]line [20:57:25]written 0, free lines is 3343 [20:57:25]MH_Cut [20:57:25]Write to MH i2c: D1 01 00 32 4D 01 51 [20:57:25]Write i2c OK [20:57:25]MH_I2C_Read... [20:57:25]Read from MH i2c: D1 [20:57:25]MH_I2C_Read... [20:57:25]Read from MH i2c: D1 01 00 [20:57:25]MH_I2C_Read... [20:57:25]Read from MH i2c: D1 01 00 32 4D 00 50 [20:57:25]Write to MH i2c: 01 00 00 33 4D 80 [20:57:25]Write i2c OK [20:57:25]MH_I2C_Read... [20:57:26]OFD Sender: No OFD packet to send [20:57:26]*** Cut start [20:57:26]*** Purtial cut [20:57:26]*** Stage 1: CUTSNS_PIN = 1 [20:57:28]Read from MH i2c: 01 [20:57:28]MH_I2C_Read... [20:57:28]*** Stop cut motor [20:57:28]*** Cut end [20:57:28]Read from MH i2c: 01 07 00 [20:57:28]MH_I2C_Read... [20:57:28]Read from MH i2c: 01 07 00 33 4D 00 00 00 00 00 FF 0F 95 [20:57:28]process_action close_receipt done [20:57:28]requested_data is exist [20:57:28]produce_requested_data [20:57:28]requested_item fm.sn is exist - process it [20:57:28]wFMCommunicate request_size=4 [20:57:28]MH_SAM_APDU [20:57:28]CAPDU: 80 11 00 00 [20:57:28]Write to MH i2c: E2 08 00 34 4D 80 11 00 00 00 00 00 00 FB [20:57:28]Write i2c OK [20:57:28]MH_I2C_Read... [20:57:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:57:28]Read from MH i2c: E2 [20:57:28]MH_I2C_Read... [20:57:28]Read from MH i2c: E2 17 00 [20:57:28]MH_I2C_Read... [20:57:28]Read from MH i2c: E2 17 00 34 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 59 [20:57:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [20:57:28]wFMCommunicate OK [20:57:28]requested_item fd.num is exist - process it [20:57:28]SAM_PROTO_GetFieldsCounters [20:57:28]wFMCommunicate request_size=4 [20:57:28]MH_SAM_APDU [20:57:28]CAPDU: 80 13 00 00 [20:57:28]Write to MH i2c: E2 08 00 35 4D 80 13 00 00 00 00 00 00 FE [20:57:28]Write i2c OK [20:57:28]MH_I2C_Read... [20:57:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:57:28]Read from MH i2c: E2 [20:57:28]MH_I2C_Read... [20:57:28]Read from MH i2c: E2 62 00 [20:57:28]MH_I2C_Read... [20:57:28]Read from MH i2c: E2 62 00 35 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 D9 E1 01 00 0E 04 04 00 43 01 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 9E [20:57:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 D9 E1 01 00 0E 04 04 00 43 01 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 [20:57:28]wFMCommunicate OK [20:57:28]SAM_PROTO_GetFieldsCounters done [20:57:28]requested_item shift.num is exist - process it [20:57:28]requested_item shift.opened is exist - process it [20:57:28]req_shift_opened [20:57:28]FM_GetShiftState [20:57:28]SAM_PROTO_GetShiftState [20:57:28]wFMCommunicate request_size=4 [20:57:28]MH_SAM_APDU [20:57:28]CAPDU: 80 13 01 00 [20:57:28]Write to MH i2c: E2 08 00 36 4D 80 13 01 00 00 00 00 00 00 [20:57:28]Write i2c OK [20:57:28]MH_I2C_Read... [20:57:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:57:28]Read from MH i2c: E2 [20:57:28]MH_I2C_Read... [20:57:28]Read from MH i2c: E2 0E 00 [20:57:28]MH_I2C_Read... [20:57:28]Read from MH i2c: E2 0E 00 36 4D 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 C2 [20:57:28]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [20:57:28]wFMCommunicate OK [20:57:28]SAM_PROTO_GetShiftState done [20:57:28]FM_GetShiftState done [20:57:28]req_shift_opened done [20:57:28]requested_item shift.open_date is exist - process it [20:57:28]req_shift_open_date [20:57:28]req_shift_open_date done [20:57:28]produce_requested_data done [20:57:28]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123353,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [20:57:28]process_action_free close_receipt [20:57:28]json_value_free [20:57:28]json_value_free done [20:57:28]process_json_proto returns [20:57:28]Send response to host [20:57:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123353,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [20:57:28]free response buf [20:57:28]execute_script done [20:57:28]execute_script returns [20:57:28]free content buf [20:57:28]Sock 7.Close socket [20:57:28]Sock 7.Thread stoped [20:57:31]OFD Sender: No OFD packet to send [20:57:35]accept exits with 9 [20:57:35]New connection [20:57:35]New thread 3067252068 created [20:57:35]Thread 3067395428 joined [20:57:35]Waiting for new connection... [20:57:35] Sock 9.Parse request [20:57:35]Sock 9.Check first char [20:57:35]Sock 9.First char is OK [20:57:35]request: POST /json_proto HTTP/1.0 [20:57:35]Method: POST [20:57:35]URL: /json_proto [20:57:35]Method is POST - this is cgi request [20:57:35]url: /json_proto [20:57:35]query_string will be loaded in cgi processing [20:57:35]execute_cgi json_proto POST (null) [20:57:35]execute_cgi path=json_proto method=POST [20:57:35]POST find Content-Length [20:57:35]Host: 172.17.48.197:8080 [20:57:35]Content-Length: 1208 [20:57:35]Content-Type: application/json [20:57:35] [20:57:35]POST finish read [20:57:35]Found Content-Length = 1208 [20:57:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106326\u000A03.03.2024 20:53\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 2.270 x 61.90\u000A\u0418\u0422\u041E\u0413: 140.51\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A01137\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:57:35]execute_script... [20:57:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106326\u000A03.03.2024 20:53\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 2.270 x 61.90\u000A\u0418\u0422\u041E\u0413: 140.51\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A01137\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:57:35]POST & json_proto [20:57:35]process_json_proto [20:57:35]json parsed OK: [20:57:35]protocol is kg_v1.0 [20:57:35]action value=print_text [20:57:35]process_action print_text [20:57:35]cmd_print_text [20:57:35]ExternCall_PrintAddStr [20:57:35]wPrintStart [20:57:35]Write to MH i2c: 01 00 00 37 4D 84 [20:57:35]Write i2c OK [20:57:35]MH_I2C_Read... [20:57:35]Read from MH i2c: 01 [20:57:35]MH_I2C_Read... [20:57:35]Read from MH i2c: 01 07 00 [20:57:35]MH_I2C_Read... [20:57:35]Read from MH i2c: 01 07 00 37 4D 00 00 00 00 00 FF 0F 99 [20:57:35]RasterBufferAndPrint [20:57:35]line *****ТОВАРНЫЙ ЧЕК***** [20:57:35]line АЗС 25 [20:57:35]line Партнер нефть [20:57:35]line 02508201610067 [20:57:35]line Кассир : Турдумбек у. К. [20:57:35]line Счет N : (1)1106326 [20:57:35]line 03.03.2024 20:53 [20:57:35]line ПРОДАЖА [20:57:35]line ТРК (МРК, ГНК): 11 [20:57:35]line Вид ГСМ : 2710124130 [20:57:35]line Аи-92-К-5 [20:57:35]line 2.270 x 61.90 [20:57:35]line ИТОГ: 140.51 [20:57:35]line Тип оплаты: Талоны: Топливная Карта [20:57:35]line 01137 [20:57:35]line ______________________ [20:57:35]line (подпись) [20:57:35]written 0, free lines is 4095 [20:57:35]Write to MH i2c: 01 00 00 4C 4D 99 [20:57:35]Write i2c OK [20:57:35]MH_I2C_Read... [20:57:35]Read from MH i2c: 01 [20:57:35]MH_I2C_Read... [20:57:35]Read from MH i2c: 01 07 00 [20:57:35]MH_I2C_Read... [20:57:35]Read from MH i2c: 01 07 00 4C 4D 00 00 00 00 00 F4 0D A1 [20:57:35]RasterBufferAndPrint [20:57:35]line [20:57:35]line [20:57:35]line [20:57:35]line [20:57:35]line [20:57:35]written 0, free lines is 3574 [20:57:35]MH_Cut [20:57:35]Write to MH i2c: D1 01 00 53 4D 01 72 [20:57:35]Write i2c OK [20:57:35]MH_I2C_Read... [20:57:35]Read from MH i2c: D1 [20:57:35]MH_I2C_Read... [20:57:35]Read from MH i2c: D1 01 00 [20:57:35]MH_I2C_Read... [20:57:35]Read from MH i2c: D1 01 00 53 4D 00 71 [20:57:35]Write to MH i2c: 01 00 00 54 4D A1 [20:57:35]Write i2c OK [20:57:35]MH_I2C_Read... [20:57:35]*** Cut start [20:57:35]*** Purtial cut [20:57:35]*** Stage 1: CUTSNS_PIN = 1 [20:57:36]OFD Sender: No OFD packet to send [20:57:37]Read from MH i2c: 01 [20:57:37]MH_I2C_Read... [20:57:37]*** Stop cut motor [20:57:37]*** Cut end [20:57:37]Read from MH i2c: 01 07 00 [20:57:37]MH_I2C_Read... [20:57:37]Read from MH i2c: 01 07 00 54 4D 00 00 00 00 00 FF 0F B6 [20:57:37]process_action print_text done [20:57:37]requested_data is exist [20:57:37]produce_requested_data [20:57:37]requested_item fm.sn is exist - process it [20:57:37]wFMCommunicate request_size=4 [20:57:37]MH_SAM_APDU [20:57:37]CAPDU: 80 11 00 00 [20:57:37]Write to MH i2c: E2 08 00 55 4D 80 11 00 00 00 00 00 00 1C [20:57:37]Write i2c OK [20:57:37]MH_I2C_Read... [20:57:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:57:37]Read from MH i2c: E2 [20:57:37]MH_I2C_Read... [20:57:37]Read from MH i2c: E2 17 00 [20:57:37]MH_I2C_Read... [20:57:37]Read from MH i2c: E2 17 00 55 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 7A [20:57:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [20:57:38]wFMCommunicate OK [20:57:38]requested_item fd.num is exist - process it [20:57:38]SAM_PROTO_GetFieldsCounters [20:57:38]wFMCommunicate request_size=4 [20:57:38]MH_SAM_APDU [20:57:38]CAPDU: 80 13 00 00 [20:57:38]Write to MH i2c: E2 08 00 56 4D 80 13 00 00 00 00 00 00 1F [20:57:38]Write i2c OK [20:57:38]MH_I2C_Read... [20:57:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:57:38]Read from MH i2c: E2 [20:57:38]MH_I2C_Read... [20:57:38]Read from MH i2c: E2 62 00 [20:57:38]MH_I2C_Read... [20:57:38]Read from MH i2c: E2 62 00 56 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 D9 E1 01 00 0E 04 04 00 43 01 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 BF [20:57: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 D9 E1 01 00 0E 04 04 00 43 01 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 [20:57:38]wFMCommunicate OK [20:57:38]SAM_PROTO_GetFieldsCounters done [20:57:38]requested_item shift.num is exist - process it [20:57:38]requested_item shift.opened is exist - process it [20:57:38]req_shift_opened [20:57:38]FM_GetShiftState [20:57:38]SAM_PROTO_GetShiftState [20:57:38]wFMCommunicate request_size=4 [20:57:38]MH_SAM_APDU [20:57:38]CAPDU: 80 13 01 00 [20:57:38]Write to MH i2c: E2 08 00 57 4D 80 13 01 00 00 00 00 00 21 [20:57:38]Write i2c OK [20:57:38]MH_I2C_Read... [20:57:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:57:38]Read from MH i2c: E2 [20:57:38]MH_I2C_Read... [20:57:38]Read from MH i2c: E2 0E 00 [20:57:38]MH_I2C_Read... [20:57:38]Read from MH i2c: E2 0E 00 57 4D 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 E3 [20:57:38]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [20:57:38]wFMCommunicate OK [20:57:38]SAM_PROTO_GetShiftState done [20:57:38]FM_GetShiftState done [20:57:38]req_shift_opened done [20:57:38]requested_item shift.open_date is exist - process it [20:57:38]req_shift_open_date [20:57:38]req_shift_open_date done [20:57:38]produce_requested_data done [20:57:38]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123353,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [20:57:38]process_action_free print_text [20:57:38]json_value_free [20:57:38]json_value_free done [20:57:38]process_json_proto returns [20:57:38]Send response to host [20:57:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123353,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [20:57:38]free response buf [20:57:38]execute_script done [20:57:38]execute_script returns [20:57:38]free content buf [20:57:38]Sock 9.Close socket [20:57:38]Sock 9.Thread stoped [20:57:41]OFD Sender: No OFD packet to send [20:57:46]OFD Sender: No OFD packet to send [20:57:47]accept exits with 10 [20:57:47]New connection [20:57:47]New thread 3067395428 created [20:57:47]Thread 3067252068 joined [20:57:47]Waiting for new connection... [20:57:47] Sock 10.Parse request [20:57:47]Sock 10.Check first char [20:57:47]Sock 10.First char is OK [20:57:47]request: POST /json_proto HTTP/1.0 [20:57:47]Method: POST [20:57:47]URL: /json_proto [20:57:47]Method is POST - this is cgi request [20:57:47]url: /json_proto [20:57:47]query_string will be loaded in cgi processing [20:57:47]execute_cgi json_proto POST (null) [20:57:47]execute_cgi path=json_proto method=POST [20:57:47]POST find Content-Length [20:57:47]Host: 172.17.48.197:8080 [20:57:47]Content-Length: 1218 [20:57:47]Content-Type: application/json [20:57:47] [20:57:47]POST finish read [20:57:47]Found Content-Length = 1218 [20:57:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106325\u000A03.03.2024 20:54\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 52\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 32.320 x 61.90\u000A\u0418\u0422\u041E\u0413: 2000.61\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3860633\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:57:47]execute_script... [20:57:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106325\u000A03.03.2024 20:54\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 52\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 32.320 x 61.90\u000A\u0418\u0422\u041E\u0413: 2000.61\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3860633\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:57:47]POST & json_proto [20:57:47]process_json_proto [20:57:47]json parsed OK: [20:57:47]protocol is kg_v1.0 [20:57:47]action value=print_text [20:57:47]process_action print_text [20:57:47]cmd_print_text [20:57:47]ExternCall_PrintAddStr [20:57:47]wPrintStart [20:57:47]Write to MH i2c: 01 00 00 58 4D A5 [20:57:47]Write i2c OK [20:57:47]MH_I2C_Read... [20:57:47]Read from MH i2c: 01 [20:57:47]MH_I2C_Read... [20:57:47]Read from MH i2c: 01 07 00 [20:57:47]MH_I2C_Read... [20:57:47]Read from MH i2c: 01 07 00 58 4D 00 00 00 00 00 FF 0F BA [20:57:47]RasterBufferAndPrint [20:57:47]line *****ТОВАРНЫЙ ЧЕК***** [20:57:47]line АЗС 25 [20:57:47]line Партнер нефть [20:57:47]line 02508201610067 [20:57:47]line Кассир : Турдумбек у. К. [20:57:47]line Счет N : (1)1106325 [20:57:47]line 03.03.2024 20:54 [20:57:47]line ПРОДАЖА [20:57:47]line ТРК (МРК, ГНК): 52 [20:57:47]line Вид ГСМ : 2710124130 [20:57:47]line Аи-92-К-5 [20:57:47]line 32.320 x 61.90 [20:57:47]line ИТОГ: 2000.61 [20:57:47]line Тип оплаты: Талоны: Топливные Талоны [20:57:47]line 3860633 [20:57:47]line ______________________ [20:57:47]line (подпись) [20:57:47]written 0, free lines is 4095 [20:57:47]Write to MH i2c: 01 00 00 6D 4D BA [20:57:47]Write i2c OK [20:57:47]MH_I2C_Read... [20:57:47]Read from MH i2c: 01 [20:57:47]MH_I2C_Read... [20:57:47]Read from MH i2c: 01 07 00 [20:57:47]MH_I2C_Read... [20:57:47]Read from MH i2c: 01 07 00 6D 4D 00 00 00 00 00 F8 0D C6 [20:57:47]RasterBufferAndPrint [20:57:47]line [20:57:47]line [20:57:47]line [20:57:47]line [20:57:47]line [20:57:47]written 0, free lines is 3578 [20:57:47]MH_Cut [20:57:47]Write to MH i2c: D1 01 00 74 4D 01 93 [20:57:47]Write i2c OK [20:57:47]MH_I2C_Read... [20:57:47]Read from MH i2c: D1 [20:57:47]MH_I2C_Read... [20:57:47]Read from MH i2c: D1 01 00 [20:57:47]MH_I2C_Read... [20:57:47]Read from MH i2c: D1 01 00 74 4D 00 92 [20:57:47]Write to MH i2c: 01 00 00 75 4D C2 [20:57:47]Write i2c OK [20:57:47]MH_I2C_Read... [20:57:48]*** Cut start [20:57:48]*** Purtial cut [20:57:48]*** Stage 1: CUTSNS_PIN = 1 [20:57:50]Read from MH i2c: 01 [20:57:50]MH_I2C_Read... [20:57:50]*** Stop cut motor [20:57:50]*** Cut end [20:57:50]Read from MH i2c: 01 07 00 [20:57:50]MH_I2C_Read... [20:57:50]Read from MH i2c: 01 07 00 75 4D 00 00 00 00 00 FF 0F D7 [20:57:50]process_action print_text done [20:57:50]requested_data is exist [20:57:50]produce_requested_data [20:57:50]requested_item fm.sn is exist - process it [20:57:50]wFMCommunicate request_size=4 [20:57:50]MH_SAM_APDU [20:57:50]CAPDU: 80 11 00 00 [20:57:50]Write to MH i2c: E2 08 00 76 4D 80 11 00 00 00 00 00 00 3D [20:57:50]Write i2c OK [20:57:50]MH_I2C_Read... [20:57:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:57:50]Read from MH i2c: E2 [20:57:50]MH_I2C_Read... [20:57:50]Read from MH i2c: E2 17 00 [20:57:50]MH_I2C_Read... [20:57:50]Read from MH i2c: E2 17 00 76 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 9B [20:57:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [20:57:50]wFMCommunicate OK [20:57:50]requested_item fd.num is exist - process it [20:57:50]SAM_PROTO_GetFieldsCounters [20:57:50]wFMCommunicate request_size=4 [20:57:50]MH_SAM_APDU [20:57:50]CAPDU: 80 13 00 00 [20:57:50]Write to MH i2c: E2 08 00 77 4D 80 13 00 00 00 00 00 00 40 [20:57:50]Write i2c OK [20:57:50]MH_I2C_Read... [20:57:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:57:50]Read from MH i2c: E2 [20:57:50]MH_I2C_Read... [20:57:50]Read from MH i2c: E2 62 00 [20:57:50]MH_I2C_Read... [20:57:50]Read from MH i2c: E2 62 00 77 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 D9 E1 01 00 0E 04 04 00 43 01 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 E0 [20:57: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 D9 E1 01 00 0E 04 04 00 43 01 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 [20:57:50]wFMCommunicate OK [20:57:50]SAM_PROTO_GetFieldsCounters done [20:57:50]requested_item shift.num is exist - process it [20:57:50]requested_item shift.opened is exist - process it [20:57:50]req_shift_opened [20:57:50]FM_GetShiftState [20:57:50]SAM_PROTO_GetShiftState [20:57:50]wFMCommunicate request_size=4 [20:57:50]MH_SAM_APDU [20:57:50]CAPDU: 80 13 01 00 [20:57:50]Write to MH i2c: E2 08 00 78 4D 80 13 01 00 00 00 00 00 42 [20:57:50]Write i2c OK [20:57:50]MH_I2C_Read... [20:57:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:57:50]Read from MH i2c: E2 [20:57:50]MH_I2C_Read... [20:57:50]Read from MH i2c: E2 0E 00 [20:57:50]MH_I2C_Read... [20:57:50]Read from MH i2c: E2 0E 00 78 4D 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 04 [20:57:50]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [20:57:50]wFMCommunicate OK [20:57:50]SAM_PROTO_GetShiftState done [20:57:50]FM_GetShiftState done [20:57:50]req_shift_opened done [20:57:50]requested_item shift.open_date is exist - process it [20:57:50]req_shift_open_date [20:57:50]req_shift_open_date done [20:57:50]produce_requested_data done [20:57:50]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123353,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [20:57:50]process_action_free print_text [20:57:50]json_value_free [20:57:50]json_value_free done [20:57:50]process_json_proto returns [20:57:50]Send response to host [20:57:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123353,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [20:57:50]free response buf [20:57:50]execute_script done [20:57:50]execute_script returns [20:57:50]free content buf [20:57:50]Sock 10.Close socket [20:57:50]Sock 10.Thread stoped [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:45]accept exits with 7 [21:00:45]New connection [21:00:45]New thread 3067252068 created [21:00:45]Thread 3067395428 joined [21:00:45]Waiting for new connection... [21:00:45] Sock 7.Parse request [21:00:45]Sock 7.Check first char [21:00:45]Sock 7.First char is OK [21:00:45]request: POST /json_proto HTTP/1.0 [21:00:45]Method: POST [21:00:45]URL: /json_proto [21:00:45]Method is POST - this is cgi request [21:00:45]url: /json_proto [21:00:45]query_string will be loaded in cgi processing [21:00:45]execute_cgi json_proto POST (null) [21:00:45]execute_cgi path=json_proto method=POST [21:00:45]POST find Content-Length [21:00:45]Host: 172.17.48.197:8080 [21:00:45]Content-Length: 806 [21:00:45]Content-Type: application/json [21:00:45] [21:00:45]POST finish read [21:00:45]Found Content-Length = 806 [21:00:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106328", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:00:45]execute_script... [21:00:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106328", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:00:45]POST & json_proto [21:00:45]process_json_proto [21:00:45]json parsed OK: [21:00:45]protocol is kg_v1.0 [21:00:45]action value=close_receipt [21:00:45]process_action close_receipt [21:00:45]cmd_close_receipt [21:00:45]MH_GetDate [21:00:45]Write to MH i2c: F0 00 00 79 4D B5 [21:00:45]Write i2c OK [21:00:45]MH_I2C_Read... [21:00:45]Read from MH i2c: F0 [21:00:45]MH_I2C_Read... [21:00:45]Read from MH i2c: F0 09 00 [21:00:45]MH_I2C_Read... [21:00:45]Read from MH i2c: F0 09 00 79 4D 00 02 E5 E4 65 6C AF E3 65 51 [21:00:45]GetLastDocTimeStamp 1709499448 [21:00:45]current date 1709499650 [21:00:45]FM_GetShiftState [21:00:45]SAM_PROTO_GetShiftState [21:00:45]wFMCommunicate request_size=4 [21:00:45]MH_SAM_APDU [21:00:45]CAPDU: 80 13 01 00 [21:00:45]Write to MH i2c: E2 08 00 7A 4D 80 13 01 00 00 00 00 00 44 [21:00:45]Write i2c OK [21:00:45]MH_I2C_Read... [21:00:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:00:45]Read from MH i2c: E2 [21:00:45]MH_I2C_Read... [21:00:45]Read from MH i2c: E2 0E 00 [21:00:45]MH_I2C_Read... [21:00:45]Read from MH i2c: E2 0E 00 7A 4D 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 06 [21:00:45]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [21:00:45]wFMCommunicate OK [21:00:45]SAM_PROTO_GetShiftState done [21:00:45]FM_GetShiftState done [21:00:45]opened in 1709425579 [21:00:45]opened+sec_in_day 1709511979 [21:00:45]quantity*price = 50015 [21:00:45]sum+1 = 50016 [21:00:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.15 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.15 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 211 03.03.2024 21:00 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874798 ФД: 123354 ФПД: 217393724524917 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T210050&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123354&fm=217393724524917&tin=02508201610067®Number=0000000000090573&sum=50015 [21:00:47]StoreToDocumentArchive [21:00:47]shift 323 fd 123354 [21:00:47]save to /storage/0323/doc_00123354 [21:00:47]save last doc name /storage/0323/doc_00123354 to /storage/kkm_last_doc_name [21:00:47]save OK [21:00:47]Clear old archive folders... [21:00:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:00:47]tlvbuf is 00E65A20 [21:00:47]SAM_PROTO_ClearQueue [21:00:47]wFMCommunicate request_size=4 [21:00:47]MH_SAM_APDU [21:00:47]CAPDU: 80 09 00 00 [21:00:47]Write to MH i2c: E2 08 00 87 4D 80 09 00 00 00 00 00 00 46 [21:00:47]Write i2c OK [21:00:47]MH_I2C_Read... [21:00:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:00:47]Read from MH i2c: E2 [21:00:47]MH_I2C_Read... [21:00:47]Read from MH i2c: E2 03 00 [21:00:47]MH_I2C_Read... [21:00:47]Read from MH i2c: E2 03 00 87 4D 00 90 00 48 [21:00:47]RAPDU: 90 00 [21:00:47]wFMCommunicate OK [21:00:47]SAM_PROTO_ClearQueue done [21:00:47]KKMCreateOFDPacket [21:00:47]OFDProtocolAddRootSTLVToBuf [21:00:47]FM_MakeSignedData [21:00:47]FM_MakeSignedData [21:00:47]SAM_PROTO_SignData [21:00:47]wFMCommunicate request_size=4 [21:00:47]MH_SAM_APDU [21:00:47]CAPDU: 80 0D 01 02 [21:00:47]Write to MH i2c: E2 08 00 88 4D 80 0D 01 02 00 00 00 00 4E [21:00:47]Write i2c OK [21:00:47]MH_I2C_Read... [21:00:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:00:47]Read from MH i2c: E2 [21:00:47]MH_I2C_Read... [21:00:47]Read from MH i2c: E2 03 00 [21:00:47]MH_I2C_Read... [21:00:47]Read from MH i2c: E2 03 00 88 4D 00 90 00 49 [21:00:47]RAPDU: 90 00 [21:00:47]wFMCommunicate OK [21:00:47]wFMCommunicate request_size=255 [21:00:47]MH_SAM_APDU [21:00:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 02 E5 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 DA E1 01 00 35 04 06 00 C5 [21:00:47]Write to MH i2c: E2 02 01 89 4D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 02 E5 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 DA E1 01 00 35 04 06 00 C5 00 00 14 [21:00:47]Write i2c OK [21:00:47]MH_I2C_Read... [21:00:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:00:47]Read from MH i2c: E2 [21:00:47]MH_I2C_Read... [21:00:47]Read from MH i2c: E2 03 00 [21:00:47]MH_I2C_Read... [21:00:47]Read from MH i2c: E2 03 00 89 4D 00 90 00 4A [21:00:47]RAPDU: 90 00 [21:00:47]wFMCommunicate OK [21:00:47]wFMCommunicate request_size=10 [21:00:47]MH_SAM_APDU [21:00:47]CAPDU: 80 0D 02 02 05 B7 EB BA 09 75 [21:00:47]Write to MH i2c: E2 0D 00 8A 4D 80 0D 02 02 05 00 B7 EB BA 09 75 00 00 35 [21:00:47]Write i2c OK [21:00:47]MH_I2C_Read... [21:00:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:00:47]Read from MH i2c: E2 [21:00:47]MH_I2C_Read... [21:00:47]Read from MH i2c: E2 03 00 [21:00:47]MH_I2C_Read... [21:00:47]Read from MH i2c: E2 03 00 8A 4D 00 90 00 4B [21:00:47]RAPDU: 90 00 [21:00:47]wFMCommunicate OK [21:00:47]wFMCommunicate request_size=4 [21:00:47]MH_SAM_APDU [21:00:47]CAPDU: 80 0D 03 02 [21:00:47]Write to MH i2c: E2 08 00 8B 4D 80 0D 03 02 00 00 00 00 53 [21:00:47]Write i2c OK [21:00:47]MH_I2C_Read... [21:00:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:00:47]Read from MH i2c: E2 [21:00:47]MH_I2C_Read... [21:00:47]Read from MH i2c: E2 0B 00 [21:00:47]MH_I2C_Read... [21:00:47]Read from MH i2c: E2 0B 00 8B 4D 00 58 2B 5C 02 EB 67 B5 8D 90 00 C9 [21:00:47]RAPDU: 58 2B 5C 02 EB 67 B5 8D 90 00 [21:00:47]wFMCommunicate OK [21:00:47]SAM_PROTO_SignData done [21:00:47]FM_MakeSignedData done [21:00:47]CreateOFDProtocolMessage [21:00:47]wFMCommunicate request_size=4 [21:00:47]MH_SAM_APDU [21:00:47]CAPDU: 80 11 00 00 [21:00:47]Write to MH i2c: E2 08 00 8C 4D 80 11 00 00 00 00 00 00 53 [21:00:47]Write i2c OK [21:00:47]MH_I2C_Read... [21:00:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:00:47]Read from MH i2c: E2 [21:00:47]MH_I2C_Read... [21:00:47]Read from MH i2c: E2 17 00 [21:00:47]MH_I2C_Read... [21:00:47]Read from MH i2c: E2 17 00 8C 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 B1 [21:00:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [21:00:47]wFMCommunicate OK [21:00:47]CreateOFDProtocolMessage done [21:00:47]OFDSenderStorePacket 123354 [21:00:47]StoreOFDPacket docnum=123354 [21:00:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 93 67 07 01 95 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 02 E5 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 DA E1 01 00 35 04 06 00 C5 B7 EB BA 09 75 58 2B 5C 02 EB 67 B5 8D [21:00:47]CheckFolder [21:00:47]dirname=/storage/ofd_packets [21:00:47]CheckFolder done [21:00:47]ProducePacketName [21:00:47]name=ofd_packets/00123354 [21:00:47]NVStorageSaveData ofd_packets/00123354 [21:00:47]File name is /storage/ofd_packets/00123354 [21:00:47]Write 301 bytes [21:00:47]NVStorageSaveData done [21:00:47]OFDSenderStorePacket done [21:00:47]KKMCreateOFDPacket done [21:00:47]NVStorageSaveData kkm_last_timestamp [21:00:47]File name is /storage/kkm_last_timestamp [21:00:47]Write 4 bytes [21:00:47]NVStorageSaveData done [21:00:47]ExternCall_PrintAddStr [21:00:47]wPrintStart [21:00:47]Write to MH i2c: 01 00 00 8D 4D DA [21:00:47]Write i2c OK [21:00:47]MH_I2C_Read... [21:00:47]Read from MH i2c: 01 [21:00:47]MH_I2C_Read... [21:00:47]Read from MH i2c: 01 07 00 [21:00:47]MH_I2C_Read... [21:00:47]Read from MH i2c: 01 07 00 8D 4D 00 00 00 00 00 FF 0F EF [21:00:47]RasterBufferAndPrint [21:00:47]line Счет N : (1)1106328 [21:00:47]line ИНН: 02508201610067 [21:00:47]line Контрольно-Кассовый Чек [21:00:47]line ПРОДАЖА [21:00:47]line ТРК (МРК, ГНК) : 52 [21:00:47]line Товар: 2710124130 [21:00:47]line Аи-92-К-5 [21:00:47]line 8.080 * 61.90 [21:00:47]line = 500.15 [21:00:47]line НДС 12% НСП 1% [21:00:47]line > о реализуемом товаре [21:00:47]line ИТОГО: 500.15 [21:00:47]line НСП 1% : 4.43 [21:00:47]line НДС 12% : 53.11 [21:00:47]line Наличными: 0.00 [21:00:47]line Безнал.: 500.15 [21:00:47]line Место: АЗС № 25 "Партнер Нефть" [21:00:47]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [21:00:47]line СНО: Общий режим [21:00:47]line Чек 211 03.03.2024 21:00 [21:00:47]line Смена: 323 ФФД: 1.0 [21:00:47]line ЗНМ: 0300000019 [21:00:47]line РНМ: 0000000000090573 [21:00:47]line Версия ККМ: 001 [21:00:47]line Платежная система: О! деньги [21:00:47]line ФМ: 0000000000874798 [21:00:47]line ФД: 123354 [21:00:47]line ФПД: 217393724524917 [21:00:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T210050&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123354&fm=217393724524917&tin=02508201610067®Number=0000000000090573&sum=50015 [21:00:47]written 0, free lines is 4095 [21:00:47]OFD Sender: Processing packet 123354 [packets to send 112, broken 111] [21:00:47]ProducePacketName [21:00:47]name=ofd_packets/00123354 [21:00:47]OFD Sender: To server: pG, [21:00:47]CommunicateWithHost lk.salyk.kg:30040 [21:00:47]ConnectInit lk.salyk.kg [21:00:47]Connected sock=10 [21:00: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 37 39 38 0F 01 00 00 93 67 07 01 95 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 02 E5 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 DA E1 01 00 35 04 06 00 C5 B7 EB BA 09 75 58 2B 5C 02 EB 67 B5 8D [21:00:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 16 05 47 00 7D 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 37 39 38 10 04 04 00 DA E1 01 00 F4 03 04 00 2D 91 E4 65 B6 04 01 00 00 13 B8 63 11 FB D7 ED B1 [21:00:47]CommunicateWithHost err = 0 [21:00:47]CheckOFDResponse [21:00:47]1017 (14) - 77093643461234 [21:00:47]1041 (16) - 0000000000874798 [21:00:47]1040 (4) - 123354 [21:00:47]1012 (4) - 03.03.2024 15:03 [21:00:47]1206 (1) - 0 [21:00:47]OFD Sender: Remove packet 123354 [21:00:47]ProducePacketName [21:00:47]name=ofd_packets/00123354 [21:00:47]NVStorageDeleteData [21:00:48]Write to MH i2c: 01 00 00 B7 4D 04 [21:00:48]Write i2c OK [21:00:48]MH_I2C_Read... [21:00:48]Read from MH i2c: 01 [21:00:48]MH_I2C_Read... [21:00:48]Read from MH i2c: 01 07 00 [21:00:48]MH_I2C_Read... [21:00:48]Read from MH i2c: 01 07 00 B7 4D 00 00 00 00 00 FE 0C 15 [21:00:48]RasterBufferAndPrint [21:00:48]line [21:00:48]line [21:00:48]line [21:00:48]line [21:00:48]line [21:00:48]written 0, free lines is 3335 [21:00:48]MH_Cut [21:00:48]Write to MH i2c: D1 01 00 BE 4D 01 DD [21:00:48]Write i2c OK [21:00:48]MH_I2C_Read... [21:00:48]Read from MH i2c: D1 [21:00:48]MH_I2C_Read... [21:00:48]Read from MH i2c: D1 01 00 [21:00:48]MH_I2C_Read... [21:00:48]Read from MH i2c: D1 01 00 BE 4D 00 DC [21:00:48]Write to MH i2c: 01 00 00 BF 4D 0C [21:00:48]Write i2c OK [21:00:48]MH_I2C_Read... [21:00:48]OFD Sender: No OFD packet to send [21:00:48]*** Cut start [21:00:48]*** Purtial cut [21:00:48]*** Stage 1: CUTSNS_PIN = 1 [21:00:50]Read from MH i2c: 01 [21:00:50]MH_I2C_Read... [21:00:50]*** Stop cut motor [21:00:50]*** Cut end [21:00:50]Read from MH i2c: 01 07 00 [21:00:50]MH_I2C_Read... [21:00:50]Read from MH i2c: 01 07 00 BF 4D 00 00 00 00 00 FF 0F 21 [21:00:50]process_action close_receipt done [21:00:50]requested_data is exist [21:00:50]produce_requested_data [21:00:50]requested_item fm.sn is exist - process it [21:00:50]wFMCommunicate request_size=4 [21:00:50]MH_SAM_APDU [21:00:50]CAPDU: 80 11 00 00 [21:00:50]Write to MH i2c: E2 08 00 C0 4D 80 11 00 00 00 00 00 00 87 [21:00:50]Write i2c OK [21:00:50]MH_I2C_Read... [21:00:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:00:50]Read from MH i2c: E2 [21:00:50]MH_I2C_Read... [21:00:50]Read from MH i2c: E2 17 00 [21:00:50]MH_I2C_Read... [21:00:50]Read from MH i2c: E2 17 00 C0 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 E5 [21:00:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [21:00:50]wFMCommunicate OK [21:00:50]requested_item fd.num is exist - process it [21:00:50]SAM_PROTO_GetFieldsCounters [21:00:50]wFMCommunicate request_size=4 [21:00:50]MH_SAM_APDU [21:00:50]CAPDU: 80 13 00 00 [21:00:50]Write to MH i2c: E2 08 00 C1 4D 80 13 00 00 00 00 00 00 8A [21:00:50]Write i2c OK [21:00:50]MH_I2C_Read... [21:00:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:00:50]Read from MH i2c: E2 [21:00:50]MH_I2C_Read... [21:00:50]Read from MH i2c: E2 62 00 [21:00:50]MH_I2C_Read... [21:00:50]Read from MH i2c: E2 62 00 C1 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 DA E1 01 00 0E 04 04 00 43 01 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 2E [21:00:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 DA E1 01 00 0E 04 04 00 43 01 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 [21:00:50]wFMCommunicate OK [21:00:50]SAM_PROTO_GetFieldsCounters done [21:00:50]requested_item shift.num is exist - process it [21:00:50]requested_item shift.opened is exist - process it [21:00:50]req_shift_opened [21:00:50]FM_GetShiftState [21:00:50]SAM_PROTO_GetShiftState [21:00:50]wFMCommunicate request_size=4 [21:00:50]MH_SAM_APDU [21:00:50]CAPDU: 80 13 01 00 [21:00:50]Write to MH i2c: E2 08 00 C2 4D 80 13 01 00 00 00 00 00 8C [21:00:50]Write i2c OK [21:00:50]MH_I2C_Read... [21:00:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:00:50]Read from MH i2c: E2 [21:00:50]MH_I2C_Read... [21:00:50]Read from MH i2c: E2 0E 00 [21:00:50]MH_I2C_Read... [21:00:50]Read from MH i2c: E2 0E 00 C2 4D 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 4E [21:00:50]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [21:00:50]wFMCommunicate OK [21:00:50]SAM_PROTO_GetShiftState done [21:00:50]FM_GetShiftState done [21:00:50]req_shift_opened done [21:00:50]requested_item shift.open_date is exist - process it [21:00:50]req_shift_open_date [21:00:50]req_shift_open_date done [21:00:50]produce_requested_data done [21:00:50]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123354,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [21:00:50]process_action_free close_receipt [21:00:50]json_value_free [21:00:50]json_value_free done [21:00:50]process_json_proto returns [21:00:50]Send response to host [21:00:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123354,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [21:00:50]free response buf [21:00:50]execute_script done [21:00:50]execute_script returns [21:00:50]free content buf [21:00:50]Sock 7.Close socket [21:00:50]Sock 7.Thread stoped [21:00:53]OFD Sender: No OFD packet to send [21:00:58]OFD Sender: No OFD packet to send [21:01:03]OFD Sender: No OFD packet to send [21:01:08]OFD Sender: No OFD packet to send [21:01:13]OFD Sender: No OFD packet to send [21:01:18]OFD Sender: No OFD packet to send [21:01:23]OFD Sender: No OFD packet to send [21:01:28]OFD Sender: No OFD packet to send [21:01:33]OFD Sender: No OFD packet to send [21:01:38]OFD Sender: No OFD packet to send [21:01:43]OFD Sender: No OFD packet to send [21:01:48]OFD Sender: No OFD packet to send [21:01:53]OFD Sender: No OFD packet to send [21:01:58]OFD Sender: No OFD packet to send [21:02:03]OFD Sender: No OFD packet to send [21:02:08]OFD Sender: No OFD packet to send [21:02:13]OFD Sender: No OFD packet to send [21:02:18]OFD Sender: No OFD packet to send [21:02:23]OFD Sender: No OFD packet to send [21:02:28]OFD Sender: No OFD packet to send [21:02:33]OFD Sender: No OFD packet to send [21:02:38]OFD Sender: No OFD packet to send [21:02:43]OFD Sender: No OFD packet to send [21:02:48]OFD Sender: No OFD packet to send [21:02:53]OFD Sender: No OFD packet to send [21:02:58]OFD Sender: No OFD packet to send [21:03:03]OFD Sender: No OFD packet to send [21:03:08]OFD Sender: No OFD packet to send [21:03:13]OFD Sender: No OFD packet to send [21:03:18]OFD Sender: No OFD packet to send [21:03:23]OFD Sender: No OFD packet to send [21:03:28]OFD Sender: No OFD packet to send [21:03:33]accept exits with 9 [21:03:33]New connection [21:03:33]New thread 3067395428 created [21:03:33]Thread 3067252068 joined [21:03:33]Waiting for new connection... [21:03:33] Sock 9.Parse request [21:03:33]Sock 9.Check first char [21:03:33]Sock 9.First char is OK [21:03:33]request: POST /json_proto HTTP/1.0 [21:03:33]Method: POST [21:03:33]URL: /json_proto [21:03:33]Method is POST - this is cgi request [21:03:33]url: /json_proto [21:03:33]query_string will be loaded in cgi processing [21:03:33]execute_cgi json_proto POST (null) [21:03:33]execute_cgi path=json_proto method=POST [21:03:33]POST find Content-Length [21:03:33]Host: 172.17.48.197:8080 [21:03:33]Content-Length: 820 [21:03:33]Content-Type: application/json [21:03:33] [21:03:33]POST finish read [21:03:33]Found Content-Length = 820 [21:03:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106329", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:03:33]execute_script... [21:03: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)1106329", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:03:33]POST & json_proto [21:03:33]process_json_proto [21:03:33]json parsed OK: [21:03:33]protocol is kg_v1.0 [21:03:33]action value=close_receipt [21:03:33]process_action close_receipt [21:03:33]cmd_close_receipt [21:03:33]MH_GetDate [21:03:33]Write to MH i2c: F0 00 00 C3 4D FF [21:03:33]Write i2c OK [21:03:33]MH_I2C_Read... [21:03:33]Read from MH i2c: F0 [21:03:33]MH_I2C_Read... [21:03:33]Read from MH i2c: F0 09 00 [21:03:33]MH_I2C_Read... [21:03:33]Read from MH i2c: F0 09 00 C3 4D 00 AA E5 E4 65 6C AF E3 65 43 [21:03:33]GetLastDocTimeStamp 1709499650 [21:03:33]current date 1709499818 [21:03:33]FM_GetShiftState [21:03:33]SAM_PROTO_GetShiftState [21:03:33]wFMCommunicate request_size=4 [21:03:33]MH_SAM_APDU [21:03:33]CAPDU: 80 13 01 00 [21:03:33]Write to MH i2c: E2 08 00 C4 4D 80 13 01 00 00 00 00 00 8E [21:03:33]Write i2c OK [21:03:33]MH_I2C_Read... [21:03:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:03:33]Read from MH i2c: E2 [21:03:33]MH_I2C_Read... [21:03:33]Read from MH i2c: E2 0E 00 [21:03:33]MH_I2C_Read... [21:03:33]Read from MH i2c: E2 0E 00 C4 4D 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 50 [21:03:33]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [21:03:33]wFMCommunicate OK [21:03:33]SAM_PROTO_GetShiftState done [21:03:33]FM_GetShiftState done [21:03:33]opened in 1709425579 [21:03:33]opened+sec_in_day 1709511979 [21:03:33]quantity*price = 100010 [21:03:33]sum+1 = 100012 [21:03:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.11 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.11 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 212 03.03.2024 21:03 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874798 ФД: 123355 ФПД: 138329286768747 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T210338&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123355&fm=138329286768747&tin=02508201610067®Number=0000000000090573&sum=100011 [21:03:34]StoreToDocumentArchive [21:03:34]shift 323 fd 123355 [21:03:34]save to /storage/0323/doc_00123355 [21:03:34]save last doc name /storage/0323/doc_00123355 to /storage/kkm_last_doc_name [21:03:34]save OK [21:03:34]Clear old archive folders... [21:03:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:03:34]tlvbuf is 00D9DF90 [21:03:34]SAM_PROTO_ClearQueue [21:03:34]wFMCommunicate request_size=4 [21:03:34]MH_SAM_APDU [21:03:34]CAPDU: 80 09 00 00 [21:03:34]Write to MH i2c: E2 08 00 D1 4D 80 09 00 00 00 00 00 00 90 [21:03:34]Write i2c OK [21:03:34]MH_I2C_Read... [21:03:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:03:34]Read from MH i2c: E2 [21:03:34]MH_I2C_Read... [21:03:34]Read from MH i2c: E2 03 00 [21:03:34]MH_I2C_Read... [21:03:34]Read from MH i2c: E2 03 00 D1 4D 00 90 00 92 [21:03:34]RAPDU: 90 00 [21:03:34]wFMCommunicate OK [21:03:34]SAM_PROTO_ClearQueue done [21:03:34]KKMCreateOFDPacket [21:03:34]OFDProtocolAddRootSTLVToBuf [21:03:34]FM_MakeSignedData [21:03:34]FM_MakeSignedData [21:03:34]SAM_PROTO_SignData [21:03:34]wFMCommunicate request_size=4 [21:03:34]MH_SAM_APDU [21:03:34]CAPDU: 80 0D 01 02 [21:03:34]Write to MH i2c: E2 08 00 D2 4D 80 0D 01 02 00 00 00 00 98 [21:03:34]Write i2c OK [21:03:34]MH_I2C_Read... [21:03:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:03:34]Read from MH i2c: E2 [21:03:34]MH_I2C_Read... [21:03:34]Read from MH i2c: E2 03 00 [21:03:34]MH_I2C_Read... [21:03:34]Read from MH i2c: E2 03 00 D2 4D 00 90 00 93 [21:03:34]RAPDU: 90 00 [21:03:34]wFMCommunicate OK [21:03:34]wFMCommunicate request_size=255 [21:03:34]MH_SAM_APDU [21:03: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 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 AA E5 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 DB E1 01 00 35 04 06 00 7D [21:03:34]Write to MH i2c: E2 02 01 D3 4D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 AA E5 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 DB E1 01 00 35 04 06 00 7D 00 00 3D [21:03:34]Write i2c OK [21:03:34]MH_I2C_Read... [21:03:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:03:34]Read from MH i2c: E2 [21:03:34]MH_I2C_Read... [21:03:34]Read from MH i2c: E2 03 00 [21:03:34]MH_I2C_Read... [21:03:34]Read from MH i2c: E2 03 00 D3 4D 00 90 00 94 [21:03:34]RAPDU: 90 00 [21:03:34]wFMCommunicate OK [21:03:34]wFMCommunicate request_size=10 [21:03:34]MH_SAM_APDU [21:03:34]CAPDU: 80 0D 02 02 05 CF 4B FF F8 6B [21:03:34]Write to MH i2c: E2 0D 00 D4 4D 80 0D 02 02 05 00 CF 4B FF F8 6B 00 00 21 [21:03:34]Write i2c OK [21:03:34]MH_I2C_Read... [21:03:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:03:35]Read from MH i2c: E2 [21:03:35]MH_I2C_Read... [21:03:35]Read from MH i2c: E2 03 00 [21:03:35]MH_I2C_Read... [21:03:35]Read from MH i2c: E2 03 00 D4 4D 00 90 00 95 [21:03:35]RAPDU: 90 00 [21:03:35]wFMCommunicate OK [21:03:35]wFMCommunicate request_size=4 [21:03:35]MH_SAM_APDU [21:03:35]CAPDU: 80 0D 03 02 [21:03:35]Write to MH i2c: E2 08 00 D5 4D 80 0D 03 02 00 00 00 00 9D [21:03:35]Write i2c OK [21:03:35]MH_I2C_Read... [21:03:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:03:35]Read from MH i2c: E2 [21:03:35]MH_I2C_Read... [21:03:35]Read from MH i2c: E2 0B 00 [21:03:35]MH_I2C_Read... [21:03:35]Read from MH i2c: E2 0B 00 D5 4D 00 D8 D0 9D 1C F4 C5 73 08 90 00 33 [21:03:35]RAPDU: D8 D0 9D 1C F4 C5 73 08 90 00 [21:03:35]wFMCommunicate OK [21:03:35]SAM_PROTO_SignData done [21:03:35]FM_MakeSignedData done [21:03:35]CreateOFDProtocolMessage [21:03:35]wFMCommunicate request_size=4 [21:03:35]MH_SAM_APDU [21:03:35]CAPDU: 80 11 00 00 [21:03:35]Write to MH i2c: E2 08 00 D6 4D 80 11 00 00 00 00 00 00 9D [21:03:35]Write i2c OK [21:03:35]MH_I2C_Read... [21:03:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:03:35]Read from MH i2c: E2 [21:03:35]MH_I2C_Read... [21:03:35]Read from MH i2c: E2 17 00 [21:03:35]MH_I2C_Read... [21:03:35]Read from MH i2c: E2 17 00 D6 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 FB [21:03:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [21:03:35]wFMCommunicate OK [21:03:35]CreateOFDProtocolMessage done [21:03:35]OFDSenderStorePacket 123355 [21:03:35]StoreOFDPacket docnum=123355 [21:03:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 C4 88 07 01 6B 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 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 AA E5 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 DB E1 01 00 35 04 06 00 7D CF 4B FF F8 6B D8 D0 9D 1C F4 C5 73 08 [21:03:35]CheckFolder [21:03:35]dirname=/storage/ofd_packets [21:03:35]CheckFolder done [21:03:35]ProducePacketName [21:03:35]name=ofd_packets/00123355 [21:03:35]NVStorageSaveData ofd_packets/00123355 [21:03:35]File name is /storage/ofd_packets/00123355 [21:03:35]Write 301 bytes [21:03:35]NVStorageSaveData done [21:03:35]OFDSenderStorePacket done [21:03:35]KKMCreateOFDPacket done [21:03:35]NVStorageSaveData kkm_last_timestamp [21:03:35]File name is /storage/kkm_last_timestamp [21:03:35]Write 4 bytes [21:03:35]NVStorageSaveData done [21:03:35]ExternCall_PrintAddStr [21:03:35]wPrintStart [21:03:35]Write to MH i2c: 01 00 00 D7 4D 24 [21:03:35]Write i2c OK [21:03:35]MH_I2C_Read... [21:03:35]Read from MH i2c: 01 [21:03:35]MH_I2C_Read... [21:03:35]Read from MH i2c: 01 07 00 [21:03:35]MH_I2C_Read... [21:03:35]Read from MH i2c: 01 07 00 D7 4D 00 00 00 00 00 FF 0F 39 [21:03:35]RasterBufferAndPrint [21:03:35]line Счет N : (1)1106329 [21:03:35]line ИНН: 02508201610067 [21:03:35]line Контрольно-Кассовый Чек [21:03:35]line ПРОДАЖА [21:03:35]line ТРК (МРК, ГНК) : 53 [21:03:35]line Товар: 2710124500 [21:03:35]line Аи-95-К-5 [21:03:35]line 14.390 * 69.50 [21:03:35]line = 1000.11 [21:03:35]line НДС 12% НСП 1% [21:03:35]line > о реализуемом товаре [21:03:35]line ИТОГО: 1000.11 [21:03:35]line НСП 1% : 8.85 [21:03:35]line НДС 12% : 106.21 [21:03:35]line Наличными: 0.00 [21:03:35]line Безнал.: 1000.11 [21:03:35]line Место: АЗС № 25 "Партнер Нефть" [21:03:35]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [21:03:35]line СНО: Общий режим [21:03:35]line Чек 212 03.03.2024 21:03 [21:03:35]line Смена: 323 ФФД: 1.0 [21:03:35]line ЗНМ: 0300000019 [21:03:35]line РНМ: 0000000000090573 [21:03:35]line Версия ККМ: 001 [21:03:35]line Платежная система: Бакай Банк [21:03:35]line ФМ: 0000000000874798 [21:03:35]line ФД: 123355 [21:03:35]line ФПД: 138329286768747 [21:03:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T210338&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123355&fm=138329286768747&tin=02508201610067®Number=0000000000090573&sum=100011 [21:03:35]OFD Sender: Processing packet 123355 [packets to send 112, broken 111] [21:03:35]ProducePacketName [21:03:35]name=ofd_packets/00123355 [21:03:35]OFD Sender: To server: pG, [21:03:35]CommunicateWithHost lk.salyk.kg:30040 [21:03:35]ConnectInit lk.salyk.kg [21:03:35]written 0, free lines is 4095 [21:03:35]Connected sock=10 [21:03: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 37 39 38 0F 01 00 00 C4 88 07 01 6B 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 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 AA E5 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 DB E1 01 00 35 04 06 00 7D CF 4B FF F8 6B D8 D0 9D 1C F4 C5 73 08 [21:03:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 D2 25 47 00 C1 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 37 39 38 10 04 04 00 DB E1 01 00 F4 03 04 00 D5 91 E4 65 B6 04 01 00 00 F8 09 1C 15 70 8D 6E 9D [21:03:35]CommunicateWithHost err = 0 [21:03:35]CheckOFDResponse [21:03:35]1017 (14) - 77093643461234 [21:03:35]1041 (16) - 0000000000874798 [21:03:35]1040 (4) - 123355 [21:03:35]1012 (4) - 03.03.2024 15:05 [21:03:35]1206 (1) - 0 [21:03:35]OFD Sender: Remove packet 123355 [21:03:35]ProducePacketName [21:03:35]name=ofd_packets/00123355 [21:03:35]NVStorageDeleteData [21:03:35]Write to MH i2c: 01 00 00 01 4E 4F [21:03:35]Write i2c OK [21:03:35]MH_I2C_Read... [21:03:35]Read from MH i2c: 01 [21:03:35]MH_I2C_Read... [21:03:35]Read from MH i2c: 01 07 00 [21:03:35]MH_I2C_Read... [21:03:35]Read from MH i2c: 01 07 00 01 4E 00 00 00 00 00 0F 0D 72 [21:03:35]RasterBufferAndPrint [21:03:35]line [21:03:35]line [21:03:35]line [21:03:35]line [21:03:35]line [21:03:35]written 0, free lines is 3362 [21:03:35]MH_Cut [21:03:35]Write to MH i2c: D1 01 00 08 4E 01 28 [21:03:35]Write i2c OK [21:03:35]MH_I2C_Read... [21:03:35]Read from MH i2c: D1 [21:03:35]MH_I2C_Read... [21:03:35]Read from MH i2c: D1 01 00 [21:03:35]MH_I2C_Read... [21:03:35]Read from MH i2c: D1 01 00 08 4E 00 27 [21:03:35]Write to MH i2c: 01 00 00 09 4E 57 [21:03:35]Write i2c OK [21:03:35]MH_I2C_Read... [21:03:36]OFD Sender: No OFD packet to send [21:03:36]*** Cut start [21:03:36]*** Purtial cut [21:03:36]*** Stage 1: CUTSNS_PIN = 1 [21:03:38]Read from MH i2c: 01 [21:03:38]MH_I2C_Read... [21:03:38]Read from MH i2c: 01 07 00 [21:03:38]MH_I2C_Read... [21:03:38]Read from MH i2c: 01 07 00 09 4E 00 00 00 00 00 FF 0F 6C [21:03:38]process_action close_receipt done [21:03:38]requested_data is exist [21:03:38]produce_requested_data [21:03:38]requested_item fm.sn is exist - process it [21:03:38]wFMCommunicate request_size=4 [21:03:38]MH_SAM_APDU [21:03:38]CAPDU: 80 11 00 00 [21:03:38]Write to MH i2c: E2 08 00 0A 4E 80 11 00 00 00 00 00 00 D2 [21:03:38]int [21:03:38]Write i2c OK [21:03:38]MH_I2C_Read... [21:03:38]*** Stop cut motor [21:03:38]*** Cut end [21:03:38]*** FLAG_PRN_KEY set [21:03:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:03:38]Read from MH i2c: E2 [21:03:38]MH_I2C_Read... [21:03:38]Read from MH i2c: E2 17 00 [21:03:38]MH_I2C_Read... [21:03:38]Read from MH i2c: E2 17 00 0A 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 30 [21:03:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [21:03:38]wFMCommunicate OK [21:03:38]requested_item fd.num is exist - process it [21:03:38]SAM_PROTO_GetFieldsCounters [21:03:38]wFMCommunicate request_size=4 [21:03:38]MH_SAM_APDU [21:03:38]CAPDU: 80 13 00 00 [21:03:38]Write to MH i2c: E2 08 00 0B 4E 80 13 00 00 00 00 00 00 D5 [21:03:38]Write i2c OK [21:03:38]MH_I2C_Read... [21:03:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:03:38]*** FLAG_PRN_KEY reset [21:03:38]Read from MH i2c: E2 [21:03:38]MH_I2C_Read... [21:03:38]Read from MH i2c: E2 62 00 [21:03:38]MH_I2C_Read... [21:03:38]Read from MH i2c: E2 62 00 0B 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 DB E1 01 00 0E 04 04 00 43 01 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 7D [21:03:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 DB E1 01 00 0E 04 04 00 43 01 00 *** FLAG_PRN_KEY set [21:03:38]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 [21:03:38]wFMCommunicate OK [21:03:38]SAM_PROTO_GetFieldsCounters done [21:03:38]requested_item shift.num is exist - process it [21:03:38]requested_item shift.opened is exist - process it [21:03:38]req_shift_opened [21:03:38]FM_GetShiftState [21:03:38]SAM_PROTO_GetShiftState [21:03:38]wFMCommunicate request_size=4 [21:03:38]MH_SAM_APDU [21:03:38]CAPDU: 80 13 01 00 [21:03:38]Write to MH i2c: 01 00 00 0C 4E 5A [21:03:38]Write i2c OK [21:03:38]MH_I2C_Read... [21:03:38]Read from MH i2c: 01 [21:03:38]MH_I2C_Read... [21:03:38]Read from MH i2c: 01 07 00 [21:03:38]MH_I2C_Read... [21:03:38]Read from MH i2c: 01 07 00 0C 4E 00 08 00 00 00 FF 0F 77 [21:03:38]state=0 [21:03:38]Key pressed [21:03:38]Feed [21:03:38]Write to MH i2c: D8 00 00 0D 4E 32 [21:03:38]Write i2c OK [21:03:38]MH_I2C_Read... [21:03:38]Read from MH i2c: D8 [21:03:38]MH_I2C_Read... [21:03:38]Read from MH i2c: D8 01 00 [21:03:38]MH_I2C_Read... [21:03:38]Read from MH i2c: D8 01 00 0D 4E 00 33 [21:03:38]Write to MH i2c: E2 08 00 0E 4E 80 13 01 00 00 00 00 00 D9 [21:03:38]Write i2c OK [21:03:38]MH_I2C_Read... [21:03:38]int [21:03:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:03:38]Read from MH i2c: E2 [21:03:38]MH_I2C_Read... [21:03:38]Read from MH i2c: E2 0E 00 [21:03:38]MH_I2C_Read... [21:03:38]Read from MH i2c: E2 0E 00 0E 4E 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 9B [21:03:38]RAPDU: Write to MH i2c: 09 01 00 00 01 00 AB 0F 4E C3 5D E3 [21:03:38]65 00 00 00 00 90 00 [21:03:38]wFMCommunicate OK [21:03:38]SAM_PROTO_GetShiftState done [21:03:38]FM_GetShiftState done [21:03:38]req_shift_opened done [21:03:38]Write i2c OK [21:03:38]requested_item shift.open_date is exist - process it [21:03:38]MH_I2C_Read... [21:03:38]req_shift_open_date [21:03:38]req_shift_open_date done [21:03:38]produce_requested_data done [21:03:38]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123355,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [21:03:38]process_action_free close_receipt [21:03:38]json_value_free [21:03:38]json_value_free done [21:03:38]process_json_proto returns [21:03:38]Send response to host [21:03:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123355,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [21:03:38]free response buf [21:03:38]execute_script done [21:03:38]execute_script returns [21:03:38]free content buf [21:03:38]Sock 9.Close socket [21:03:38]Sock 9.Thread stoped [21:03:38]Read from MH i2c: 01 [21:03:38]MH_I2C_Read... [21:03:38]Read from MH i2c: 01 07 00 [21:03:38]MH_I2C_Read... [21:03:38]Read from MH i2c: 01 07 00 0F 4E 00 48 00 00 00 3C 00 E8 [21:03:38]state=2 [21:03:38]Key pressed [21:03:38]int line is 0 - check status [21:03:38]Write to MH i2c: 01 00 00 10 4E 5E [21:03:38]*** FLAG_PRN_KEY reset [21:03:38]Write i2c OK [21:03:38]MH_I2C_Read... [21:03:38]Read from MH i2c: 01 [21:03:38]MH_I2C_Read... [21:03:38]Read from MH i2c: 01 07 00 [21:03:38]MH_I2C_Read... [21:03:38]Read from MH i2c: 01 07 00 10 4E 00 00 00 00 00 F7 0F 6B [21:03:38]state=2 [21:03:38]Stop feed [21:03:38]int [21:03:38]Write to MH i2c: 01 00 00 11 4E 5F [21:03:38]Write i2c OK [21:03:38]MH_I2C_Read... [21:03:38]Read from MH i2c: 01 [21:03:38]MH_I2C_Read... [21:03:38]Read from MH i2c: 01 07 00 [21:03:38]MH_I2C_Read... [21:03:38]Read from MH i2c: 01 07 00 11 4E 00 00 00 00 00 F8 0F 6D [21:03:38]state=0 [21:03:39]int [21:03:39]Write to MH i2c: 01 00 00 12 4E 60 [21:03:39]*** FLAG_PRN_KEY set [21:03:39]Write i2c OK [21:03:39]MH_I2C_Read... [21:03:39]Read from MH i2c: 01 [21:03:39]MH_I2C_Read... [21:03:39]Read from MH i2c: 01 07 00 [21:03:39]MH_I2C_Read... [21:03:39]Read from MH i2c: 01 07 00 12 4E 00 08 00 00 00 FF 0F 7D [21:03:39]state=0 [21:03:39]Key pressed [21:03:39]Feed [21:03:39]Write to MH i2c: D8 00 00 13 4E 38 [21:03:39]Write i2c OK [21:03:39]MH_I2C_Read... [21:03:39]Read from MH i2c: D8 [21:03:39]MH_I2C_Read... [21:03:39]Read from MH i2c: D8 01 00 [21:03:39]MH_I2C_Read... [21:03:39]Read from MH i2c: D8 01 00 13 4E 00 39 [21:03:39]int [21:03:39]Write to MH i2c: 01 00 00 14 4E 62 [21:03:39]Write i2c OK [21:03:39]MH_I2C_Read... [21:03:39]Read from MH i2c: 01 [21:03:39]MH_I2C_Read... [21:03:39]Read from MH i2c: 01 07 00 [21:03:39]MH_I2C_Read... [21:03:39]Read from MH i2c: 01 07 00 14 4E 00 48 00 00 00 3C 00 ED [21:03:39]state=2 [21:03:39]Key pressed [21:03:39]int [21:03:39]Write to MH i2c: 01 00 00 15 4E 63 [21:03:39]*** FLAG_PRN_KEY reset [21:03:39]Write i2c OK [21:03:39]MH_I2C_Read... [21:03:39]Read from MH i2c: 01 [21:03:39]MH_I2C_Read... [21:03:39]Read from MH i2c: 01 07 00 [21:03:39]MH_I2C_Read... [21:03:39]Read from MH i2c: 01 07 00 15 4E 00 00 00 00 00 F7 0F 70 [21:03:39]state=2 [21:03:39]Stop feed [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:12]accept exits with 7 [21:04:12]New connection [21:04:12]New thread 3067252068 created [21:04:12]Thread 3067395428 joined [21:04:12]Waiting for new connection... [21:04:12] Sock 7.Parse request [21:04:12]Sock 7.Check first char [21:04:12]Sock 7.First char is OK [21:04:12]request: POST /json_proto HTTP/1.0 [21:04:12]Method: POST [21:04:12]URL: /json_proto [21:04:12]Method is POST - this is cgi request [21:04:12]url: /json_proto [21:04:12]query_string will be loaded in cgi processing [21:04:12]execute_cgi json_proto POST (null) [21:04:12]execute_cgi path=json_proto method=POST [21:04:12]POST find Content-Length [21:04:12]Host: 172.17.48.197:8080 [21:04:12]Content-Length: 807 [21:04:12]Content-Type: application/json [21:04:12] [21:04:12]POST finish read [21:04:12]Found Content-Length = 807 [21:04:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106330", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 12.120, "sum" : 750.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 750.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:04:12]execute_script... [21:04:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106330", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 12.120, "sum" : 750.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 750.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:04:12]POST & json_proto [21:04:12]process_json_proto [21:04:12]json parsed OK: [21:04:12]protocol is kg_v1.0 [21:04:12]action value=close_receipt [21:04:12]process_action close_receipt [21:04:12]cmd_close_receipt [21:04:12]MH_GetDate [21:04:12]Write to MH i2c: F0 00 00 16 4E 53 [21:04:12]Write i2c OK [21:04:12]MH_I2C_Read... [21:04:12]Read from MH i2c: F0 [21:04:12]MH_I2C_Read... [21:04:12]Read from MH i2c: F0 09 00 [21:04:12]MH_I2C_Read... [21:04:12]Read from MH i2c: F0 09 00 16 4E 00 D1 E5 E4 65 6C AF E3 65 BE [21:04:12]GetLastDocTimeStamp 1709499818 [21:04:12]current date 1709499857 [21:04:12]FM_GetShiftState [21:04:12]SAM_PROTO_GetShiftState [21:04:12]wFMCommunicate request_size=4 [21:04:12]MH_SAM_APDU [21:04:12]CAPDU: 80 13 01 00 [21:04:12]Write to MH i2c: E2 08 00 17 4E 80 13 01 00 00 00 00 00 E2 [21:04:12]Write i2c OK [21:04:12]MH_I2C_Read... [21:04:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:04:12]Read from MH i2c: E2 [21:04:12]MH_I2C_Read... [21:04:12]Read from MH i2c: E2 0E 00 [21:04:12]MH_I2C_Read... [21:04:12]Read from MH i2c: E2 0E 00 17 4E 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 A4 [21:04:12]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [21:04:12]wFMCommunicate OK [21:04:12]SAM_PROTO_GetShiftState done [21:04:12]FM_GetShiftState done [21:04:12]opened in 1709425579 [21:04:12]opened+sec_in_day 1709511979 [21:04:12]quantity*price = 75022 [21:04:12]sum+1 = 75024 [21:04:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 750.23 НСП 1% : 6.64 НДС 12% : 79.67 Наличными: 0.00 Безнал.: 750.23 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 213 03.03.2024 21:04 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874798 ФД: 123356 ФПД: 57850673158476 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T210417&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123356&fm=57850673158476&tin=02508201610067®Number=0000000000090573&sum=75023 [21:04:13]StoreToDocumentArchive [21:04:13]shift 323 fd 123356 [21:04:13]save to /storage/0323/doc_00123356 [21:04:13]save last doc name /storage/0323/doc_00123356 to /storage/kkm_last_doc_name [21:04:13]save OK [21:04:13]Clear old archive folders... [21:04:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:04:13]tlvbuf is 00EA9DB0 [21:04:13]SAM_PROTO_ClearQueue [21:04:13]wFMCommunicate request_size=4 [21:04:13]MH_SAM_APDU [21:04:13]CAPDU: 80 09 00 00 [21:04:13]Write to MH i2c: E2 08 00 24 4E 80 09 00 00 00 00 00 00 E4 [21:04:13]Write i2c OK [21:04:13]MH_I2C_Read... [21:04:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:04:13]Read from MH i2c: E2 [21:04:13]MH_I2C_Read... [21:04:13]Read from MH i2c: E2 03 00 [21:04:13]MH_I2C_Read... [21:04:13]Read from MH i2c: E2 03 00 24 4E 00 90 00 E6 [21:04:13]RAPDU: 90 00 [21:04:13]wFMCommunicate OK [21:04:13]SAM_PROTO_ClearQueue done [21:04:13]KKMCreateOFDPacket [21:04:13]OFDProtocolAddRootSTLVToBuf [21:04:13]FM_MakeSignedData [21:04:13]FM_MakeSignedData [21:04:13]SAM_PROTO_SignData [21:04:13]wFMCommunicate request_size=4 [21:04:13]MH_SAM_APDU [21:04:13]CAPDU: 80 0D 01 02 [21:04:13]Write to MH i2c: E2 08 00 25 4E 80 0D 01 02 00 00 00 00 EC [21:04:13]Write i2c OK [21:04:13]MH_I2C_Read... [21:04:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:04:13]Read from MH i2c: E2 [21:04:13]MH_I2C_Read... [21:04:13]Read from MH i2c: E2 03 00 [21:04:13]MH_I2C_Read... [21:04:13]Read from MH i2c: E2 03 00 25 4E 00 90 00 E7 [21:04:13]RAPDU: 90 00 [21:04:13]wFMCommunicate OK [21:04:13]wFMCommunicate request_size=255 [21:04:13]MH_SAM_APDU [21:04:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 58 2F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 0F 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0F 25 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0F 25 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 D1 E5 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 DC E1 01 00 35 04 06 00 34 [21:04:13]Write to MH i2c: E2 02 01 26 4E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 58 2F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 0F 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0F 25 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0F 25 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 D1 E5 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 DC E1 01 00 35 04 06 00 34 00 00 4E [21:04:13]Write i2c OK [21:04:13]MH_I2C_Read... [21:04:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:04:13]Read from MH i2c: E2 [21:04:13]MH_I2C_Read... [21:04:13]Read from MH i2c: E2 03 00 [21:04:13]MH_I2C_Read... [21:04:13]Read from MH i2c: E2 03 00 26 4E 00 90 00 E8 [21:04:13]RAPDU: 90 00 [21:04:13]wFMCommunicate OK [21:04:13]wFMCommunicate request_size=10 [21:04:13]MH_SAM_APDU [21:04:13]CAPDU: 80 0D 02 02 05 9D 68 D2 D9 4C [21:04:13]Write to MH i2c: E2 0D 00 27 4E 80 0D 02 02 05 00 9D 68 D2 D9 4C 00 00 F5 [21:04:13]Write i2c OK [21:04:13]MH_I2C_Read... [21:04:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:04:14]Read from MH i2c: E2 [21:04:14]MH_I2C_Read... [21:04:14]Read from MH i2c: E2 03 00 [21:04:14]MH_I2C_Read... [21:04:14]Read from MH i2c: E2 03 00 27 4E 00 90 00 E9 [21:04:14]RAPDU: 90 00 [21:04:14]wFMCommunicate OK [21:04:14]wFMCommunicate request_size=4 [21:04:14]MH_SAM_APDU [21:04:14]CAPDU: 80 0D 03 02 [21:04:14]Write to MH i2c: E2 08 00 28 4E 80 0D 03 02 00 00 00 00 F1 [21:04:14]Write i2c OK [21:04:14]MH_I2C_Read... [21:04:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:04:14]Read from MH i2c: E2 [21:04:14]MH_I2C_Read... [21:04:14]Read from MH i2c: E2 0B 00 [21:04:14]MH_I2C_Read... [21:04:14]Read from MH i2c: E2 0B 00 28 4E 00 B3 73 2D 07 4B 6F D9 96 90 00 75 [21:04:14]RAPDU: B3 73 2D 07 4B 6F D9 96 90 00 [21:04:14]wFMCommunicate OK [21:04:14]SAM_PROTO_SignData done [21:04:14]FM_MakeSignedData done [21:04:14]CreateOFDProtocolMessage [21:04:14]wFMCommunicate request_size=4 [21:04:14]MH_SAM_APDU [21:04:14]CAPDU: 80 11 00 00 [21:04:14]Write to MH i2c: E2 08 00 29 4E 80 11 00 00 00 00 00 00 F1 [21:04:14]Write i2c OK [21:04:14]MH_I2C_Read... [21:04:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:04:14]Read from MH i2c: E2 [21:04:14]MH_I2C_Read... [21:04:14]Read from MH i2c: E2 17 00 [21:04:14]MH_I2C_Read... [21:04:14]Read from MH i2c: E2 17 00 29 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 4F [21:04:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [21:04:14]wFMCommunicate OK [21:04:14]CreateOFDProtocolMessage done [21:04:14]OFDSenderStorePacket 123356 [21:04:14]StoreOFDPacket docnum=123356 [21:04:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 8A 7B 07 01 50 BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 58 2F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 0F 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0F 25 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0F 25 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 D1 E5 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 DC E1 01 00 35 04 06 00 34 9D 68 D2 D9 4C B3 73 2D 07 4B 6F D9 96 [21:04:14]CheckFolder [21:04:14]dirname=/storage/ofd_packets [21:04:14]CheckFolder done [21:04:14]ProducePacketName [21:04:14]name=ofd_packets/00123356 [21:04:14]NVStorageSaveData ofd_packets/00123356 [21:04:14]File name is /storage/ofd_packets/00123356 [21:04:14]Write 301 bytes [21:04:14]NVStorageSaveData done [21:04:14]OFDSenderStorePacket done [21:04:14]KKMCreateOFDPacket done [21:04:14]NVStorageSaveData kkm_last_timestamp [21:04:14]File name is /storage/kkm_last_timestamp [21:04:14]Write 4 bytes [21:04:14]NVStorageSaveData done [21:04:14]ExternCall_PrintAddStr [21:04:14]wPrintStart [21:04:14]Write to MH i2c: 01 00 00 2A 4E 78 [21:04:14]Write i2c OK [21:04:14]MH_I2C_Read... [21:04:14]Read from MH i2c: 01 [21:04:14]MH_I2C_Read... [21:04:14]Read from MH i2c: 01 07 00 [21:04:14]MH_I2C_Read... [21:04:14]Read from MH i2c: 01 07 00 2A 4E 00 00 00 00 00 FF 0F 8D [21:04:14]RasterBufferAndPrint [21:04:14]line Счет N : (1)1106330 [21:04:14]line ИНН: 02508201610067 [21:04:14]line Контрольно-Кассовый Чек [21:04:14]line ПРОДАЖА [21:04:14]line ТРК (МРК, ГНК) : 11 [21:04:14]line Товар: 2710124130 [21:04:14]line Аи-92-К-5 [21:04:14]line 12.120 * 61.90 [21:04:14]line = 750.23 [21:04:14]line НДС 12% НСП 1% [21:04:14]line > о реализуемом товаре [21:04:14]line ИТОГО: 750.23 [21:04:14]line НСП 1% : 6.64 [21:04:14]line НДС 12% : 79.67 [21:04:14]line Наличными: 0.00 [21:04:14]line Безнал.: 750.23 [21:04:14]line Место: АЗС № 25 "Партнер Нефть" [21:04:14]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [21:04:14]line СНО: Общий режим [21:04:14]line Чек 213 03.03.2024 21:04 [21:04:14]line Смена: 323 ФФД: 1.0 [21:04:14]line ЗНМ: 0300000019 [21:04:14]line РНМ: 0000000000090573 [21:04:14]line Версия ККМ: 001 [21:04:14]line Платежная система: О! деньги [21:04:14]line ФМ: 0000000000874798 [21:04:14]line ФД: 123356 [21:04:14]line ФПД: 57850673158476 [21:04:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T210417&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123356&fm=57850673158476&tin=02508201610067®Number=0000000000090573&sum=75023 [21:04:14]OFD Sender: Processing packet 123356 [packets to send 112, broken 111] [21:04:14]ProducePacketName [21:04:14]name=ofd_packets/00123356 [21:04:14]OFD Sender: To server: pG, [21:04:14]CommunicateWithHost lk.salyk.kg:30040 [21:04:14]ConnectInit lk.salyk.kg [21:04:14]written 0, free lines is 4095 [21:04:14]Connected sock=10 [21:04: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 37 39 38 0F 01 00 00 8A 7B 07 01 50 BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 58 2F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 0F 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0F 25 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0F 25 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 D1 E5 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 DC E1 01 00 35 04 06 00 34 9D 68 D2 D9 4C B3 73 2D 07 4B 6F D9 96 [21:04:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 25 0F 47 00 57 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 DC E1 01 00 F4 03 04 00 FC 91 E4 65 B6 04 01 00 00 DF 87 A1 AE AF BA D9 75 [21:04:14]CommunicateWithHost err = 0 [21:04:14]CheckOFDResponse [21:04:14]1017 (14) - 77093643461234 [21:04:14]1041 (16) - 0000000000874798 [21:04:14]1040 (4) - 123356 [21:04:14]1012 (4) - 03.03.2024 15:06 [21:04:14]1206 (1) - 0 [21:04:14]OFD Sender: Remove packet 123356 [21:04:14]ProducePacketName [21:04:14]name=ofd_packets/00123356 [21:04:14]NVStorageDeleteData [21:04:14]Write to MH i2c: 01 00 00 54 4E A2 [21:04:14]Write i2c OK [21:04:14]MH_I2C_Read... [21:04:14]Read from MH i2c: 01 [21:04:14]MH_I2C_Read... [21:04:14]Read from MH i2c: 01 07 00 [21:04:14]MH_I2C_Read... [21:04:14]Read from MH i2c: 01 07 00 54 4E 00 00 00 00 00 04 0D BA [21:04:14]RasterBufferAndPrint [21:04:14]line [21:04:14]line [21:04:14]line [21:04:14]line [21:04:14]line [21:04:14]written 0, free lines is 3338 [21:04:14]MH_Cut [21:04:14]Write to MH i2c: D1 01 00 5B 4E 01 7B [21:04:14]Write i2c OK [21:04:14]MH_I2C_Read... [21:04:14]Read from MH i2c: D1 [21:04:14]MH_I2C_Read... [21:04:14]Read from MH i2c: D1 01 00 [21:04:14]MH_I2C_Read... [21:04:14]Read from MH i2c: D1 01 00 5B 4E 00 7A [21:04:14]Write to MH i2c: 01 00 00 5C 4E AA [21:04:14]Write i2c OK [21:04:14]MH_I2C_Read... [21:04:15]OFD Sender: No OFD packet to send [21:04:15]*** Cut start [21:04:15]*** Purtial cut [21:04:15]*** Stage 1: CUTSNS_PIN = 1 [21:04:17]Read from MH i2c: 01 [21:04:17]MH_I2C_Read... [21:04:17]*** Stop cut motor [21:04:17]*** Cut end [21:04:17]Read from MH i2c: 01 07 00 [21:04:17]MH_I2C_Read... [21:04:17]Read from MH i2c: 01 07 00 5C 4E 00 00 00 00 00 FF 0F BF [21:04:17]process_action close_receipt done [21:04:17]requested_data is exist [21:04:17]produce_requested_data [21:04:17]requested_item fm.sn is exist - process it [21:04:17]wFMCommunicate request_size=4 [21:04:17]MH_SAM_APDU [21:04:17]CAPDU: 80 11 00 00 [21:04:17]Write to MH i2c: E2 08 00 5D 4E 80 11 00 00 00 00 00 00 25 [21:04:17]Write i2c OK [21:04:17]MH_I2C_Read... [21:04:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:04:17]Read from MH i2c: E2 [21:04:17]MH_I2C_Read... [21:04:17]Read from MH i2c: E2 17 00 [21:04:17]MH_I2C_Read... [21:04:17]Read from MH i2c: E2 17 00 5D 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 83 [21:04:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [21:04:17]wFMCommunicate OK [21:04:17]requested_item fd.num is exist - process it [21:04:17]SAM_PROTO_GetFieldsCounters [21:04:17]wFMCommunicate request_size=4 [21:04:17]MH_SAM_APDU [21:04:17]CAPDU: 80 13 00 00 [21:04:17]Write to MH i2c: E2 08 00 5E 4E 80 13 00 00 00 00 00 00 28 [21:04:17]Write i2c OK [21:04:17]MH_I2C_Read... [21:04:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:04:17]Read from MH i2c: E2 [21:04:17]MH_I2C_Read... [21:04:17]Read from MH i2c: E2 62 00 [21:04:17]MH_I2C_Read... [21:04:17]Read from MH i2c: E2 62 00 5E 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 DC E1 01 00 0E 04 04 00 43 01 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 D4 [21: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 DC E1 01 00 0E 04 04 00 43 01 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 [21:04:17]wFMCommunicate OK [21:04:17]SAM_PROTO_GetFieldsCounters done [21:04:17]requested_item shift.num is exist - process it [21:04:17]requested_item shift.opened is exist - process it [21:04:17]req_shift_opened [21:04:17]FM_GetShiftState [21:04:17]SAM_PROTO_GetShiftState [21:04:17]wFMCommunicate request_size=4 [21:04:17]MH_SAM_APDU [21:04:17]CAPDU: 80 13 01 00 [21:04:17]Write to MH i2c: E2 08 00 5F 4E 80 13 01 00 00 00 00 00 2A [21:04:17]Write i2c OK [21:04:17]MH_I2C_Read... [21:04:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:04:17]Read from MH i2c: E2 [21:04:17]MH_I2C_Read... [21:04:17]Read from MH i2c: E2 0E 00 [21:04:17]MH_I2C_Read... [21:04:17]Read from MH i2c: E2 0E 00 5F 4E 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 EC [21:04:17]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [21:04:17]wFMCommunicate OK [21:04:17]SAM_PROTO_GetShiftState done [21:04:17]FM_GetShiftState done [21:04:17]req_shift_opened done [21:04:17]requested_item shift.open_date is exist - process it [21:04:17]req_shift_open_date [21:04:17]req_shift_open_date done [21:04:17]produce_requested_data done [21:04:17]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123356,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [21:04:17]process_action_free close_receipt [21:04:17]json_value_free [21:04:17]json_value_free done [21:04:17]process_json_proto returns [21:04:17]Send response to host [21:04:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123356,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [21:04:17]free response buf [21:04:17]execute_script done [21:04:17]execute_script returns [21:04:17]free content buf [21:04:17]Sock 7.Close socket [21:04:17]Sock 7.Thread stoped [21:04:20]OFD Sender: No OFD packet to send [21:04:25]OFD Sender: No OFD packet to send [21:04:30]OFD Sender: No OFD packet to send [21:04:35]OFD Sender: No OFD packet to send [21:04:40]OFD Sender: No OFD packet to send [21:04:45]OFD Sender: No OFD packet to send [21:04:50]OFD Sender: No OFD packet to send [21:04:51]accept exits with 9 [21:04:51]New connection [21:04:51]New thread 3067395428 created [21:04:51]Thread 3067252068 joined [21:04:51]Waiting for new connection... [21:04:51] Sock 9.Parse request [21:04:51]Sock 9.Check first char [21:04:51]Sock 9.First char is OK [21:04:51]request: POST /json_proto HTTP/1.0 [21:04:51]Method: POST [21:04:51]URL: /json_proto [21:04:51]Method is POST - this is cgi request [21:04:51]url: /json_proto [21:04:51]query_string will be loaded in cgi processing [21:04:51]execute_cgi json_proto POST (null) [21:04:51]execute_cgi path=json_proto method=POST [21:04:51]POST find Content-Length [21:04:51]Host: 172.17.48.197:8080 [21:04:51]Content-Length: 1208 [21:04:51]Content-Type: application/json [21:04:51] [21:04:51]POST finish read [21:04:51]Found Content-Length = 1208 [21:04:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106331\u000A03.03.2024 21:01\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 5.090 x 61.90\u000A\u0418\u0422\u041E\u0413: 315.07\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A01137\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:04:51]execute_script... [21:04:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106331\u000A03.03.2024 21:01\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 5.090 x 61.90\u000A\u0418\u0422\u041E\u0413: 315.07\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A01137\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:04:51]POST & json_proto [21:04:51]process_json_proto [21:04:51]json parsed OK: [21:04:51]protocol is kg_v1.0 [21:04:51]action value=print_text [21:04:51]process_action print_text [21:04:51]cmd_print_text [21:04:51]ExternCall_PrintAddStr [21:04:51]wPrintStart [21:04:51]Write to MH i2c: 01 00 00 60 4E AE [21:04:51]Write i2c OK [21:04:51]MH_I2C_Read... [21:04:51]Read from MH i2c: 01 [21:04:51]MH_I2C_Read... [21:04:51]Read from MH i2c: 01 07 00 [21:04:51]MH_I2C_Read... [21:04:51]Read from MH i2c: 01 07 00 60 4E 00 00 00 00 00 FF 0F C3 [21:04:51]RasterBufferAndPrint [21:04:51]line *****ТОВАРНЫЙ ЧЕК***** [21:04:51]line АЗС 25 [21:04:51]line Партнер нефть [21:04:51]line 02508201610067 [21:04:51]line Кассир : Турдумбек у. К. [21:04:51]line Счет N : (1)1106331 [21:04:51]line 03.03.2024 21:01 [21:04:51]line ПРОДАЖА [21:04:51]line ТРК (МРК, ГНК): 32 [21:04:51]line Вид ГСМ : 2710124130 [21:04:51]line Аи-92-К-5 [21:04:51]line 5.090 x 61.90 [21:04:51]line ИТОГ: 315.07 [21:04:51]line Тип оплаты: Талоны: Топливная Карта [21:04:51]line 01137 [21:04:51]line ______________________ [21:04:51]line (подпись) [21:04:51]written 0, free lines is 4095 [21:04:51]Write to MH i2c: 01 00 00 75 4E C3 [21:04:51]Write i2c OK [21:04:51]MH_I2C_Read... [21:04:51]Read from MH i2c: 01 [21:04:51]MH_I2C_Read... [21:04:51]Read from MH i2c: 01 07 00 [21:04:51]MH_I2C_Read... [21:04:51]Read from MH i2c: 01 07 00 75 4E 00 00 00 00 00 F4 0D CB [21:04:51]RasterBufferAndPrint [21:04:51]line [21:04:51]line [21:04:51]line [21:04:51]line [21:04:51]line [21:04:51]written 0, free lines is 3573 [21:04:51]MH_Cut [21:04:51]Write to MH i2c: D1 01 00 7C 4E 01 9C [21:04:51]Write i2c OK [21:04:51]MH_I2C_Read... [21:04:51]Read from MH i2c: D1 [21:04:51]MH_I2C_Read... [21:04:51]Read from MH i2c: D1 01 00 [21:04:51]MH_I2C_Read... [21:04:51]Read from MH i2c: D1 01 00 7C 4E 00 9B [21:04:51]Write to MH i2c: 01 00 00 7D 4E CB [21:04:51]Write i2c OK [21:04:51]MH_I2C_Read... [21:04:52]*** Cut start [21:04:52]*** Purtial cut [21:04:52]*** Stage 1: CUTSNS_PIN = 1 [21:04:54]Read from MH i2c: 01 [21:04:54]MH_I2C_Read... [21:04:54]*** Stop cut motor [21:04:54]*** Cut end [21:04:54]Read from MH i2c: 01 07 00 [21:04:54]MH_I2C_Read... [21:04:54]Read from MH i2c: 01 07 00 7D 4E 00 00 00 00 00 FF 0F E0 [21:04:54]process_action print_text done [21:04:54]requested_data is exist [21:04:54]produce_requested_data [21:04:54]requested_item fm.sn is exist - process it [21:04:54]wFMCommunicate request_size=4 [21:04:54]MH_SAM_APDU [21:04:54]CAPDU: 80 11 00 00 [21:04:54]Write to MH i2c: E2 08 00 7E 4E 80 11 00 00 00 00 00 00 46 [21:04:54]Write i2c OK [21:04:54]MH_I2C_Read... [21:04:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:04:54]Read from MH i2c: E2 [21:04:54]MH_I2C_Read... [21:04:54]Read from MH i2c: E2 17 00 [21:04:54]MH_I2C_Read... [21:04:54]Read from MH i2c: E2 17 00 7E 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 A4 [21:04:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [21:04:54]wFMCommunicate OK [21:04:54]requested_item fd.num is exist - process it [21:04:54]SAM_PROTO_GetFieldsCounters [21:04:54]wFMCommunicate request_size=4 [21:04:54]MH_SAM_APDU [21:04:54]CAPDU: 80 13 00 00 [21:04:54]Write to MH i2c: E2 08 00 7F 4E 80 13 00 00 00 00 00 00 49 [21:04:54]Write i2c OK [21:04:54]MH_I2C_Read... [21:04:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:04:54]Read from MH i2c: E2 [21:04:54]MH_I2C_Read... [21:04:54]Read from MH i2c: E2 62 00 [21:04:54]MH_I2C_Read... [21:04:54]Read from MH i2c: E2 62 00 7F 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 DC E1 01 00 0E 04 04 00 43 01 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 F5 [21:04:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 DC E1 01 00 0E 04 04 00 43 01 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 [21:04:54]wFMCommunicate OK [21:04:54]SAM_PROTO_GetFieldsCounters done [21:04:54]requested_item shift.num is exist - process it [21:04:54]requested_item shift.opened is exist - process it [21:04:54]req_shift_opened [21:04:54]FM_GetShiftState [21:04:54]SAM_PROTO_GetShiftState [21:04:54]wFMCommunicate request_size=4 [21:04:54]MH_SAM_APDU [21:04:54]CAPDU: 80 13 01 00 [21:04:54]Write to MH i2c: E2 08 00 80 4E 80 13 01 00 00 00 00 00 4B [21:04:54]Write i2c OK [21:04:54]MH_I2C_Read... [21:04:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:04:54]Read from MH i2c: E2 [21:04:54]MH_I2C_Read... [21:04:54]Read from MH i2c: E2 0E 00 [21:04:54]MH_I2C_Read... [21:04:54]Read from MH i2c: E2 0E 00 80 4E 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 0D [21:04:54]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [21:04:54]wFMCommunicate OK [21:04:54]SAM_PROTO_GetShiftState done [21:04:54]FM_GetShiftState done [21:04:54]req_shift_opened done [21:04:54]requested_item shift.open_date is exist - process it [21:04:54]req_shift_open_date [21:04:54]req_shift_open_date done [21:04:54]produce_requested_data done [21:04:54]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123356,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [21:04:54]process_action_free print_text [21:04:54]json_value_free [21:04:54]json_value_free done [21:04:54]process_json_proto returns [21:04:54]Send response to host [21:04:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123356,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [21:04:54]free response buf [21:04:54]execute_script done [21:04:54]execute_script returns [21:04:54]free content buf [21:04:54]Sock 9.Close socket [21:04:54]Sock 9.Thread stoped [21:04:55]OFD Sender: No OFD packet to send [21:05:00]OFD Sender: No OFD packet to send [21:05:05]OFD Sender: No OFD packet to send [21:05:10]OFD Sender: No OFD packet to send [21:05:12]accept exits with 7 [21:05:12]New connection [21:05:12]New thread 3067252068 created [21:05:12]Thread 3067395428 joined [21:05:12]Waiting for new connection... [21:05:12] Sock 7.Parse request [21:05:12]Sock 7.Check first char [21:05:12]Sock 7.First char is OK [21:05:12]request: POST /json_proto HTTP/1.0 [21:05:12]Method: POST [21:05:12]URL: /json_proto [21:05:12]Method is POST - this is cgi request [21:05:12]url: /json_proto [21:05:12]query_string will be loaded in cgi processing [21:05:12]execute_cgi json_proto POST (null) [21:05:12]execute_cgi path=json_proto method=POST [21:05:12]POST find Content-Length [21:05:12]Host: 172.17.48.197:8080 [21:05:12]Content-Length: 660 [21:05:12]Content-Type: application/json [21:05:12] [21:05:12]POST finish read [21:05:12]Found Content-Length = 660 [21:05:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106332", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 4.000, "sum" : 278.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "payments": [ { "type": 0, "sum" : 278.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:05:12]execute_script... [21:05:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106332", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 4.000, "sum" : 278.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "payments": [ { "type": 0, "sum" : 278.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:05:12]POST & json_proto [21:05:12]process_json_proto [21:05:12]json parsed OK: [21:05:12]protocol is kg_v1.0 [21:05:12]action value=close_receipt [21:05:12]process_action close_receipt [21:05:12]cmd_close_receipt [21:05:12]MH_GetDate [21:05:12]Write to MH i2c: F0 00 00 81 4E BE [21:05:12]Write i2c OK [21:05:12]MH_I2C_Read... [21:05:12]Read from MH i2c: F0 [21:05:12]MH_I2C_Read... [21:05:12]Read from MH i2c: F0 09 00 [21:05:12]MH_I2C_Read... [21:05:12]Read from MH i2c: F0 09 00 81 4E 00 0D E6 E4 65 6C AF E3 65 66 [21:05:12]GetLastDocTimeStamp 1709499857 [21:05:12]current date 1709499917 [21:05:12]FM_GetShiftState [21:05:12]SAM_PROTO_GetShiftState [21:05:12]wFMCommunicate request_size=4 [21:05:12]MH_SAM_APDU [21:05:12]CAPDU: 80 13 01 00 [21:05:12]Write to MH i2c: E2 08 00 82 4E 80 13 01 00 00 00 00 00 4D [21:05:12]Write i2c OK [21:05:12]MH_I2C_Read... [21:05:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:05:12]Read from MH i2c: E2 [21:05:12]MH_I2C_Read... [21:05:12]Read from MH i2c: E2 0E 00 [21:05:12]MH_I2C_Read... [21:05:12]Read from MH i2c: E2 0E 00 82 4E 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 0F [21:05:12]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [21:05:12]wFMCommunicate OK [21:05:12]SAM_PROTO_GetShiftState done [21:05:12]FM_GetShiftState done [21:05:12]opened in 1709425579 [21:05:12]opened+sec_in_day 1709511979 [21:05:12]quantity*price = 27800 [21:05:12]sum+1 = 27801 [21:05:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 278.00 Внесено: 400.00 СДАЧА: 122.00 НСП 1% : 2.46 НДС 12% : 29.52 Наличными: 278.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 214 03.03.2024 21:05 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123357 ФПД: 151201718235328 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T210517&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123357&fm=151201718235328&tin=02508201610067®Number=0000000000090573&sum=27800 [21:05:13]StoreToDocumentArchive [21:05:13]shift 323 fd 123357 [21:05:13]save to /storage/0323/doc_00123357 [21:05:13]save last doc name /storage/0323/doc_00123357 to /storage/kkm_last_doc_name [21:05:13]save OK [21:05:13]Clear old archive folders... [21:05:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:05:13]tlvbuf is 00E298D0 [21:05:13]SAM_PROTO_ClearQueue [21:05:13]wFMCommunicate request_size=4 [21:05:13]MH_SAM_APDU [21:05:13]CAPDU: 80 09 00 00 [21:05:13]Write to MH i2c: E2 08 00 8F 4E 80 09 00 00 00 00 00 00 4F [21:05:13]Write i2c OK [21:05:13]MH_I2C_Read... [21:05:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:05:13]Read from MH i2c: E2 [21:05:13]MH_I2C_Read... [21:05:13]Read from MH i2c: E2 03 00 [21:05:13]MH_I2C_Read... [21:05:13]Read from MH i2c: E2 03 00 8F 4E 00 90 00 51 [21:05:13]RAPDU: 90 00 [21:05:13]wFMCommunicate OK [21:05:13]SAM_PROTO_ClearQueue done [21:05:13]KKMCreateOFDPacket [21:05:13]OFDProtocolAddRootSTLVToBuf [21:05:13]FM_MakeSignedData [21:05:13]FM_MakeSignedData [21:05:13]SAM_PROTO_SignData [21:05:13]wFMCommunicate request_size=4 [21:05:13]MH_SAM_APDU [21:05:13]CAPDU: 80 0D 01 02 [21:05:13]Write to MH i2c: E2 08 00 90 4E 80 0D 01 02 00 00 00 00 57 [21:05:13]Write i2c OK [21:05:13]MH_I2C_Read... [21:05:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:05:13]Read from MH i2c: E2 [21:05:13]MH_I2C_Read... [21:05:13]Read from MH i2c: E2 03 00 [21:05:13]MH_I2C_Read... [21:05:13]Read from MH i2c: E2 03 00 90 4E 00 90 00 52 [21:05:13]RAPDU: 90 00 [21:05:13]wFMCommunicate OK [21:05:13]wFMCommunicate request_size=255 [21:05:13]MH_SAM_APDU [21:05:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 26 1B 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 D6 00 00 00 F4 03 04 00 0D E6 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 DD E1 01 00 35 04 06 00 89 [21:05:13]Write to MH i2c: E2 02 01 91 4E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 26 1B 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 D6 00 00 00 F4 03 04 00 0D E6 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 DD E1 01 00 35 04 06 00 89 00 00 92 [21:05:13]Write i2c OK [21:05:13]MH_I2C_Read... [21:05:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:05:13]Read from MH i2c: E2 [21:05:13]MH_I2C_Read... [21:05:13]Read from MH i2c: E2 03 00 [21:05:13]MH_I2C_Read... [21:05:13]Read from MH i2c: E2 03 00 91 4E 00 90 00 53 [21:05:13]RAPDU: 90 00 [21:05:13]wFMCommunicate OK [21:05:13]wFMCommunicate request_size=10 [21:05:13]MH_SAM_APDU [21:05:13]CAPDU: 80 0D 02 02 05 84 64 B4 70 C0 [21:05:13]Write to MH i2c: E2 0D 00 92 4E 80 0D 02 02 05 00 84 64 B4 70 C0 00 00 30 [21:05:13]Write i2c OK [21:05:13]MH_I2C_Read... [21:05:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:05:13]Read from MH i2c: E2 [21:05:13]MH_I2C_Read... [21:05:13]Read from MH i2c: E2 03 00 [21:05:13]MH_I2C_Read... [21:05:13]Read from MH i2c: E2 03 00 92 4E 00 90 00 54 [21:05:13]RAPDU: 90 00 [21:05:13]wFMCommunicate OK [21:05:13]wFMCommunicate request_size=4 [21:05:13]MH_SAM_APDU [21:05:13]CAPDU: 80 0D 03 02 [21:05:13]Write to MH i2c: E2 08 00 93 4E 80 0D 03 02 00 00 00 00 5C [21:05:13]Write i2c OK [21:05:13]MH_I2C_Read... [21:05:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:05:13]Read from MH i2c: E2 [21:05:13]MH_I2C_Read... [21:05:13]Read from MH i2c: E2 0B 00 [21:05:13]MH_I2C_Read... [21:05:13]Read from MH i2c: E2 0B 00 93 4E 00 C9 C7 9D E8 70 9D FB 3E 90 00 B8 [21:05:13]RAPDU: C9 C7 9D E8 70 9D FB 3E 90 00 [21:05:13]wFMCommunicate OK [21:05:13]SAM_PROTO_SignData done [21:05:13]FM_MakeSignedData done [21:05:13]CreateOFDProtocolMessage [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 94 4E 80 11 00 00 00 00 00 00 5C [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:14]MH_I2C_Read... [21:05:14]Read from MH i2c: E2 17 00 [21:05:14]MH_I2C_Read... [21:05:14]Read from MH i2c: E2 17 00 94 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 BA [21:05:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [21:05:14]wFMCommunicate OK [21:05:14]CreateOFDProtocolMessage done [21:05:14]OFDSenderStorePacket 123357 [21:05:14]StoreOFDPacket docnum=123357 [21:05:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 61 D4 07 01 7A 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 26 1B 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 D6 00 00 00 F4 03 04 00 0D E6 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 DD E1 01 00 35 04 06 00 89 84 64 B4 70 C0 C9 C7 9D E8 70 9D FB 3E [21:05:14]CheckFolder [21:05:14]dirname=/storage/ofd_packets [21:05:14]CheckFolder done [21:05:14]ProducePacketName [21:05:14]name=ofd_packets/00123357 [21:05:14]NVStorageSaveData ofd_packets/00123357 [21:05:14]File name is /storage/ofd_packets/00123357 [21:05:14]Write 301 bytes [21:05:14]NVStorageSaveData done [21:05:14]OFDSenderStorePacket done [21:05:14]KKMCreateOFDPacket done [21:05:14]NVStorageSaveData kkm_last_timestamp [21:05:14]File name is /storage/kkm_last_timestamp [21:05:14]Write 4 bytes [21:05:14]NVStorageSaveData done [21:05:14]ExternCall_PrintAddStr [21:05:14]wPrintStart [21:05:14]Write to MH i2c: 01 00 00 95 4E E3 [21:05:14]Write i2c OK [21:05:14]MH_I2C_Read... [21:05:14]Read from MH i2c: 01 [21:05:14]MH_I2C_Read... [21:05:14]Read from MH i2c: 01 07 00 [21:05:14]MH_I2C_Read... [21:05:14]Read from MH i2c: 01 07 00 95 4E 00 00 00 00 00 FF 0F F8 [21:05:14]RasterBufferAndPrint [21:05:14]line Счет N : (1)1106332 [21:05:14]line ИНН: 02508201610067 [21:05:14]line Контрольно-Кассовый Чек [21:05:14]line ПРОДАЖА [21:05:14]line ТРК (МРК, ГНК) : 63 [21:05:14]line Товар: 2710124500 [21:05:14]line Аи-95-К-5 [21:05:14]line 4.000 * 69.50 [21:05:14]line = 278.00 [21:05:14]line НДС 12% НСП 1% [21:05:14]line > о реализуемом товаре [21:05:14]line ИТОГО: 278.00 [21:05:14]line Внесено: 400.00 [21:05:14]line СДАЧА: 122.00 [21:05:14]line НСП 1% : 2.46 [21:05:14]line НДС 12% : 29.52 [21:05:14]line Наличными: 278.00 [21:05:14]line Безнал.: 0.00 [21:05:14]line Место: АЗС № 25 "Партнер Нефть" [21:05:14]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [21:05:14]line СНО: Общий режим [21:05:14]line Чек 214 03.03.2024 21:05 [21:05:14]line Смена: 323 ФФД: 1.0 [21:05:14]line ЗНМ: 0300000019 [21:05:14]line РНМ: 0000000000090573 [21:05:14]line Версия ККМ: 001 [21:05:14]line ФМ: 0000000000874798 [21:05:14]line ФД: 123357 [21:05:14]line ФПД: 151201718235328 [21:05:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T210517&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123357&fm=151201718235328&tin=02508201610067®Number=0000000000090573&sum=27800 [21:05:14]OFD Sender: Processing packet 123357 [packets to send 112, broken 111] [21:05:14]ProducePacketName [21:05:14]name=ofd_packets/00123357 [21:05:14]OFD Sender: To server: pG, [21:05:14]CommunicateWithHost lk.salyk.kg:30040 [21:05:14]ConnectInit lk.salyk.kg [21:05:14]written 0, free lines is 4095 [21:05:14]Connected sock=10 [21: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 37 39 38 0F 01 00 00 61 D4 07 01 7A 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 26 1B 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 D6 00 00 00 F4 03 04 00 0D E6 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 DD E1 01 00 35 04 06 00 89 84 64 B4 70 C0 C9 C7 9D E8 70 9D FB 3E [21: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 37 39 38 4F 00 00 00 2F BD 47 00 23 77 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 DD E1 01 00 F4 03 04 00 38 92 E4 65 B6 04 01 00 00 4A FE 9B DB EF CA 0C 8C [21:05:14]CommunicateWithHost err = 0 [21:05:14]CheckOFDResponse [21:05:14]1017 (14) - 77093643461234 [21:05:14]1041 (16) - 0000000000874798 [21:05:14]1040 (4) - 123357 [21:05:14]1012 (4) - 03.03.2024 15:07 [21:05:14]1206 (1) - 0 [21:05:14]OFD Sender: Remove packet 123357 [21:05:14]ProducePacketName [21:05:14]name=ofd_packets/00123357 [21:05:14]NVStorageDeleteData [21:05:14]Write to MH i2c: 01 00 00 BF 4E 0D [21:05:14]Write i2c OK [21:05:14]MH_I2C_Read... [21:05:14]Read from MH i2c: 01 [21:05:14]MH_I2C_Read... [21:05:14]Read from MH i2c: 01 07 00 [21:05:14]MH_I2C_Read... [21:05:14]Read from MH i2c: 01 07 00 BF 4E 00 00 00 00 00 FC 0C 1C [21:05:14]RasterBufferAndPrint [21:05:14]line [21:05:14]line [21:05:14]line [21:05:14]line [21:05:14]line [21:05:14]written 0, free lines is 3333 [21:05:14]MH_Cut [21:05:14]Write to MH i2c: D1 01 00 C6 4E 01 E6 [21:05:14]Write i2c OK [21:05:14]MH_I2C_Read... [21:05:14]Read from MH i2c: D1 [21:05:14]MH_I2C_Read... [21:05:14]Read from MH i2c: D1 01 00 [21:05:14]MH_I2C_Read... [21:05:14]Read from MH i2c: D1 01 00 C6 4E 00 E5 [21:05:14]Write to MH i2c: 01 00 00 C7 4E 15 [21:05:14]Write i2c OK [21:05:14]MH_I2C_Read... [21:05:15]OFD Sender: No OFD packet to send [21:05:15]*** Cut start [21:05:15]*** Purtial cut [21:05:15]*** Stage 1: CUTSNS_PIN = 1 [21:05:17]Read from MH i2c: 01 [21:05:17]MH_I2C_Read... [21:05:17]*** Stop cut motor [21:05:17]*** Cut end [21:05:17]Read from MH i2c: 01 07 00 [21:05:17]MH_I2C_Read... [21:05:17]Read from MH i2c: 01 07 00 C7 4E 00 00 00 00 00 FF 0F 2A [21:05:17]process_action close_receipt done [21:05:17]requested_data is exist [21:05:17]produce_requested_data [21:05:17]requested_item fm.sn is exist - process it [21:05:17]wFMCommunicate request_size=4 [21:05:17]MH_SAM_APDU [21:05:17]CAPDU: 80 11 00 00 [21:05:17]Write to MH i2c: E2 08 00 C8 4E 80 11 00 00 00 00 00 00 90 [21:05:17]Write i2c OK [21:05:17]MH_I2C_Read... [21:05:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:05:17]Read from MH i2c: E2 [21:05:17]MH_I2C_Read... [21:05:17]Read from MH i2c: E2 17 00 [21:05:17]MH_I2C_Read... [21:05:17]Read from MH i2c: E2 17 00 C8 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 EE [21:05:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [21:05:17]wFMCommunicate OK [21:05:17]requested_item fd.num is exist - process it [21:05:17]SAM_PROTO_GetFieldsCounters [21:05:17]wFMCommunicate request_size=4 [21:05:17]MH_SAM_APDU [21:05:17]CAPDU: 80 13 00 00 [21:05:17]Write to MH i2c: E2 08 00 C9 4E 80 13 00 00 00 00 00 00 93 [21:05:17]Write i2c OK [21:05:17]MH_I2C_Read... [21:05:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:05:17]Read from MH i2c: E2 [21:05:17]MH_I2C_Read... [21:05:17]Read from MH i2c: E2 62 00 [21:05:17]MH_I2C_Read... [21:05:17]Read from MH i2c: E2 62 00 C9 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 DD E1 01 00 0E 04 04 00 43 01 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 43 [21:05: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 DD E1 01 00 0E 04 04 00 43 01 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 [21:05:17]wFMCommunicate OK [21:05:17]SAM_PROTO_GetFieldsCounters done [21:05:17]requested_item shift.num is exist - process it [21:05:17]requested_item shift.opened is exist - process it [21:05:17]req_shift_opened [21:05:17]FM_GetShiftState [21:05:17]SAM_PROTO_GetShiftState [21:05:17]wFMCommunicate request_size=4 [21:05:17]MH_SAM_APDU [21:05:17]CAPDU: 80 13 01 00 [21:05:17]Write to MH i2c: E2 08 00 CA 4E 80 13 01 00 00 00 00 00 95 [21:05:17]Write i2c OK [21:05:17]MH_I2C_Read... [21:05:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:05:17]Read from MH i2c: E2 [21:05:17]MH_I2C_Read... [21:05:17]Read from MH i2c: E2 0E 00 [21:05:17]MH_I2C_Read... [21:05:17]Read from MH i2c: E2 0E 00 CA 4E 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 57 [21:05:17]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [21:05:17]wFMCommunicate OK [21:05:17]SAM_PROTO_GetShiftState done [21:05:17]FM_GetShiftState done [21:05:17]req_shift_opened done [21:05:17]requested_item shift.open_date is exist - process it [21:05:17]req_shift_open_date [21:05:17]req_shift_open_date done [21:05:17]produce_requested_data done [21:05:17]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123357,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [21:05:17]process_action_free close_receipt [21:05:17]json_value_free [21:05:17]json_value_free done [21:05:17]process_json_proto returns [21:05:17]Send response to host [21:05:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123357,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [21:05:17]free response buf [21:05:17]execute_script done [21:05:17]execute_script returns [21:05:17]free content buf [21:05:17]Sock 7.Close socket [21:05:17]Sock 7.Thread stoped [21:05:20]OFD Sender: No OFD packet to send [21:05:25]OFD Sender: No OFD packet to send [21:05:30]OFD Sender: No OFD packet to send [21:05:35]OFD Sender: No OFD packet to send [21:05:40]OFD Sender: No OFD packet to send [21:05:45]OFD Sender: No OFD packet to send [21:05:50]OFD Sender: No OFD packet to send [21:05:55]OFD Sender: No OFD packet to send [21:06:00]OFD Sender: No OFD packet to send [21:06:05]OFD Sender: No OFD packet to send [21:06:10]OFD Sender: No OFD packet to send [21:06:15]OFD Sender: No OFD packet to send [21:06:20]OFD Sender: No OFD packet to send [21:06:25]OFD Sender: No OFD packet to send [21:06:30]OFD Sender: No OFD packet to send [21:06:35]OFD Sender: No OFD packet to send [21:06:40]OFD Sender: No OFD packet to send [21:06:45]OFD Sender: No OFD packet to send [21:06:50]OFD Sender: No OFD packet to send [21:06:55]OFD Sender: No OFD packet to send [21:07:00]OFD Sender: No OFD packet to send [21:07:05]OFD Sender: No OFD packet to send [21:07:10]OFD Sender: No OFD packet to send [21:07:15]OFD Sender: No OFD packet to send [21:07:20]OFD Sender: No OFD packet to send [21:07:25]OFD Sender: No OFD packet to send [21:07:30]OFD Sender: No OFD packet to send [21:07:35]OFD Sender: No OFD packet to send [21:07:40]OFD Sender: No OFD packet to send [21:07:45]OFD Sender: No OFD packet to send [21:07:50]OFD Sender: No OFD packet to send [21:07:55]OFD Sender: No OFD packet to send [21:08:00]OFD Sender: No OFD packet to send [21:08:05]OFD Sender: No OFD packet to send [21:08:10]OFD Sender: No OFD packet to send [21:08:15]OFD Sender: No OFD packet to send [21:08:20]OFD Sender: No OFD packet to send [21:08:25]OFD Sender: No OFD packet to send [21:08:30]OFD Sender: No OFD packet to send [21:08:35]OFD Sender: No OFD packet to send [21:08:37]int [21:08:37]Write to MH i2c: 01 00 00 CB 4E 19 [21:08:37]*** FLAG_PRN_KEY set [21:08:37]Write i2c OK [21:08:37]MH_I2C_Read... [21:08:37]Read from MH i2c: 01 [21:08:37]MH_I2C_Read... [21:08:37]Read from MH i2c: 01 07 00 [21:08:37]MH_I2C_Read... [21:08:37]Read from MH i2c: 01 07 00 CB 4E 00 08 00 00 00 FF 0F 36 [21:08:37]state=0 [21:08:37]Key pressed [21:08:37]Feed [21:08:37]Write to MH i2c: D8 00 00 CC 4E F1 [21:08:37]Write i2c OK [21:08:37]MH_I2C_Read... [21:08:37]Read from MH i2c: D8 [21:08:37]MH_I2C_Read... [21:08:37]Read from MH i2c: D8 01 00 [21:08:37]MH_I2C_Read... [21:08:37]Read from MH i2c: D8 01 00 CC 4E 00 F2 [21:08:37]int [21:08:37]Write to MH i2c: 01 00 00 CD 4E 1B [21:08:37]Write i2c OK [21:08:37]MH_I2C_Read... [21:08:37]Read from MH i2c: 01 [21:08:37]MH_I2C_Read... [21:08:37]Read from MH i2c: 01 07 00 [21:08:37]MH_I2C_Read... [21:08:37]Read from MH i2c: 01 07 00 CD 4E 00 48 00 00 00 3C 00 A6 [21:08:37]state=2 [21:08:37]Key pressed [21:08:37]int [21:08:37]Write to MH i2c: 01 00 00 CE 4E 1C [21:08:37]*** FLAG_PRN_KEY reset [21:08:37]Write i2c OK [21:08:37]MH_I2C_Read... [21:08:37]Read from MH i2c: 01 [21:08:37]MH_I2C_Read... [21:08:37]Read from MH i2c: 01 07 00 [21:08:37]MH_I2C_Read... [21:08:37]Read from MH i2c: 01 07 00 CE 4E 00 00 00 00 00 F7 0F 29 [21:08:37]state=2 [21:08:37]Stop feed [21:08:37]int [21:08:37]Write to MH i2c: 01 00 00 CF 4E 1D [21:08:37]*** FLAG_PRN_KEY set [21:08:37]Write i2c OK [21:08:37]MH_I2C_Read... [21:08:37]Read from MH i2c: 01 [21:08:37]MH_I2C_Read... [21:08:37]Read from MH i2c: 01 07 00 [21:08:37]MH_I2C_Read... [21:08:37]Read from MH i2c: 01 07 00 CF 4E 00 08 00 00 00 FF 0F 3A [21:08:37]state=0 [21:08:37]Key pressed [21:08:37]Feed [21:08:37]Write to MH i2c: D8 00 00 D0 4E F5 [21:08:37]Write i2c OK [21:08:37]MH_I2C_Read... [21:08:37]Read from MH i2c: D8 [21:08:37]MH_I2C_Read... [21:08:37]Read from MH i2c: D8 01 00 [21:08:37]MH_I2C_Read... [21:08:37]Read from MH i2c: D8 01 00 D0 4E 00 F6 [21:08:37]int [21:08:37]Write to MH i2c: 01 00 00 D1 4E 1F [21:08:37]Write i2c OK [21:08:37]MH_I2C_Read... [21:08:37]Read from MH i2c: 01 [21:08:37]MH_I2C_Read... [21:08:37]Read from MH i2c: 01 07 00 [21:08:37]MH_I2C_Read... [21:08:37]Read from MH i2c: 01 07 00 D1 4E 00 48 00 00 00 3C 00 AA [21:08:37]state=2 [21:08:37]Key pressed [21:08:37]int [21:08:37]Write to MH i2c: 01 00 00 D2 4E 20 [21:08:37]*** FLAG_PRN_KEY reset [21:08:37]Write i2c OK [21:08:37]MH_I2C_Read... [21:08:37]Read from MH i2c: 01 [21:08:37]MH_I2C_Read... [21:08:37]Read from MH i2c: 01 07 00 [21:08:37]MH_I2C_Read... [21:08:37]Read from MH i2c: 01 07 00 D2 4E 00 00 00 00 00 F5 0F 2B [21:08:37]state=2 [21:08:37]Stop feed [21:08:37]int [21:08:37]Write to MH i2c: 01 00 00 D3 4E 21 [21:08:37]*** FLAG_PRN_KEY set [21:08:37]Write i2c OK [21:08:37]MH_I2C_Read... [21:08:37]Read from MH i2c: 01 [21:08:37]MH_I2C_Read... [21:08:37]Read from MH i2c: 01 07 00 [21:08:37]MH_I2C_Read... [21:08:37]Read from MH i2c: 01 07 00 D3 4E 00 08 00 00 00 FF 0F 3E [21:08:37]state=0 [21:08:37]Key pressed [21:08:37]Feed [21:08:37]Write to MH i2c: D8 00 00 D4 4E F9 [21:08:37]Write i2c OK [21:08:37]MH_I2C_Read... [21:08:37]Read from MH i2c: D8 [21:08:37]MH_I2C_Read... [21:08:37]Read from MH i2c: D8 01 00 [21:08:37]MH_I2C_Read... [21:08:37]Read from MH i2c: D8 01 00 D4 4E 00 FA [21:08:37]int [21:08:37]Write to MH i2c: 01 00 00 D5 4E 23 [21:08:37]Write i2c OK [21:08:37]MH_I2C_Read... [21:08:37]Read from MH i2c: 01 [21:08:37]MH_I2C_Read... [21:08:37]Read from MH i2c: 01 07 00 [21:08:37]MH_I2C_Read... [21:08:37]Read from MH i2c: 01 07 00 D5 4E 00 48 00 00 00 3C 00 AE [21:08:37]state=2 [21:08:37]Key pressed [21:08:37]int [21:08:37]Write to MH i2c: 01 00 00 D6 4E 24 [21:08:37]*** FLAG_PRN_KEY reset [21:08:37]Write i2c OK [21:08:37]MH_I2C_Read... [21:08:37]Read from MH i2c: 01 [21:08:37]MH_I2C_Read... [21:08:37]Read from MH i2c: 01 07 00 [21:08:37]MH_I2C_Read... [21:08:37]Read from MH i2c: 01 07 00 D6 4E 00 00 00 00 00 F5 0F 2F [21:08:37]state=2 [21:08:37]Stop feed [21:08:37]int [21:08:37]Write to MH i2c: 01 00 00 D7 4E 25 [21:08:37]*** FLAG_PRN_KEY set [21:08:37]Write i2c OK [21:08:37]MH_I2C_Read... [21:08:37]Read from MH i2c: 01 [21:08:37]MH_I2C_Read... [21:08:37]Read from MH i2c: 01 07 00 [21:08:37]MH_I2C_Read... [21:08:37]Read from MH i2c: 01 07 00 D7 4E 00 08 00 00 00 FF 0F 42 [21:08:37]state=0 [21:08:37]Key pressed [21:08:37]Feed [21:08:37]Write to MH i2c: D8 00 00 D8 4E FD [21:08:37]Write i2c OK [21:08:37]MH_I2C_Read... [21:08:37]Read from MH i2c: D8 [21:08:37]MH_I2C_Read... [21:08:37]Read from MH i2c: D8 01 00 [21:08:37]MH_I2C_Read... [21:08:37]Read from MH i2c: D8 01 00 D8 4E 00 FE [21:08:37]int [21:08:37]Write to MH i2c: 01 00 00 D9 4E 27 [21:08:37]Write i2c OK [21:08:37]MH_I2C_Read... [21:08:37]Read from MH i2c: 01 [21:08:37]MH_I2C_Read... [21:08:37]Read from MH i2c: 01 07 00 [21:08:37]MH_I2C_Read... [21:08:37]Read from MH i2c: 01 07 00 D9 4E 00 48 00 00 00 3C 00 B2 [21:08:37]state=2 [21:08:37]Key pressed [21:08:37]int [21:08:37]Write to MH i2c: 01 00 00 DA 4E 28 [21:08:37]*** FLAG_PRN_KEY reset [21:08:37]Write i2c OK [21:08:37]MH_I2C_Read... [21:08:37]Read from MH i2c: 01 [21:08:37]MH_I2C_Read... [21:08:37]Read from MH i2c: 01 07 00 [21:08:37]MH_I2C_Read... [21:08:37]Read from MH i2c: 01 07 00 DA 4E 00 00 00 00 00 F5 0F 33 [21:08:37]state=2 [21:08:37]Stop feed [21:08:40]OFD Sender: No OFD packet to send [21:08:45]OFD Sender: No OFD packet to send [21:08:50]OFD Sender: No OFD packet to send [21:08:55]OFD Sender: No OFD packet to send [21:09:00]OFD Sender: No OFD packet to send [21:09:05]OFD Sender: No OFD packet to send [21:09:10]OFD Sender: No OFD packet to send [21:09:15]OFD Sender: No OFD packet to send [21:09:20]OFD Sender: No OFD packet to send [21:09:25]OFD Sender: No OFD packet to send [21:09:30]OFD Sender: No OFD packet to send [21:09:35]OFD Sender: No OFD packet to send [21:09:40]OFD Sender: No OFD packet to send [21:09:41]accept exits with 9 [21:09:41]New connection [21:09:41]New thread 3067395428 created [21:09:41]Thread 3067252068 joined [21:09:41]Waiting for new connection... [21:09:41] Sock 9.Parse request [21:09:41]Sock 9.Check first char [21:09:41]Sock 9.First char is OK [21:09:41]request: POST /json_proto HTTP/1.0 [21:09:41]Method: POST [21:09:41]URL: /json_proto [21:09:41]Method is POST - this is cgi request [21:09:41]url: /json_proto [21:09:41]query_string will be loaded in cgi processing [21:09:41]execute_cgi json_proto POST (null) [21:09:41]execute_cgi path=json_proto method=POST [21:09:41]POST find Content-Length [21:09:41]Host: 172.17.48.197:8080 [21:09:41]Content-Length: 806 [21:09:41]Content-Type: application/json [21:09:41] [21:09:41]POST finish read [21:09:41]Found Content-Length = 806 [21:09:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106334", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:09:41]execute_script... [21:09: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)1106334", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:09:41]POST & json_proto [21:09:41]process_json_proto [21:09:41]json parsed OK: [21:09:41]protocol is kg_v1.0 [21:09:41]action value=close_receipt [21:09:41]process_action close_receipt [21:09:41]cmd_close_receipt [21:09:41]MH_GetDate [21:09:41]Write to MH i2c: F0 00 00 DB 4E 18 [21:09:41]Write i2c OK [21:09:41]MH_I2C_Read... [21:09:41]Read from MH i2c: F0 [21:09:41]MH_I2C_Read... [21:09:41]Read from MH i2c: F0 09 00 [21:09:41]MH_I2C_Read... [21:09:41]Read from MH i2c: F0 09 00 DB 4E 00 1B E7 E4 65 6C AF E3 65 CF [21:09:41]GetLastDocTimeStamp 1709499917 [21:09:41]current date 1709500187 [21:09:41]FM_GetShiftState [21:09:41]SAM_PROTO_GetShiftState [21:09:41]wFMCommunicate request_size=4 [21:09:41]MH_SAM_APDU [21:09:41]CAPDU: 80 13 01 00 [21:09:41]Write to MH i2c: E2 08 00 DC 4E 80 13 01 00 00 00 00 00 A7 [21:09:41]Write i2c OK [21:09:41]MH_I2C_Read... [21:09:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:09:41]Read from MH i2c: E2 [21:09:41]MH_I2C_Read... [21:09:41]Read from MH i2c: E2 0E 00 [21:09:41]MH_I2C_Read... [21:09:41]Read from MH i2c: E2 0E 00 DC 4E 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 69 [21:09:41]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [21:09:41]wFMCommunicate OK [21:09:41]SAM_PROTO_GetShiftState done [21:09:41]FM_GetShiftState done [21:09:41]opened in 1709425579 [21:09:41]opened+sec_in_day 1709511979 [21:09:41]quantity*price = 50015 [21:09:41]sum+1 = 50016 [21:09:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.15 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.15 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 215 03.03.2024 21:09 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874798 ФД: 123358 ФПД: 163871569347366 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T210947&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123358&fm=163871569347366&tin=02508201610067®Number=0000000000090573&sum=50015 [21:09:43]StoreToDocumentArchive [21:09:43]shift 323 fd 123358 [21:09:43]save to /storage/0323/doc_00123358 [21:09:43]save last doc name /storage/0323/doc_00123358 to /storage/kkm_last_doc_name [21:09:43]save OK [21:09:43]Clear old archive folders... [21:09:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:09:43]tlvbuf is 00E3F3E0 [21:09:43]SAM_PROTO_ClearQueue [21:09:43]wFMCommunicate request_size=4 [21:09:43]MH_SAM_APDU [21:09:43]CAPDU: 80 09 00 00 [21:09:43]Write to MH i2c: E2 08 00 E9 4E 80 09 00 00 00 00 00 00 A9 [21:09:43]Write i2c OK [21:09:43]MH_I2C_Read... [21:09:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:09:43]Read from MH i2c: E2 [21:09:43]MH_I2C_Read... [21:09:43]Read from MH i2c: E2 03 00 [21:09:43]MH_I2C_Read... [21:09:43]Read from MH i2c: E2 03 00 E9 4E 00 90 00 AB [21:09:43]RAPDU: 90 00 [21:09:43]wFMCommunicate OK [21:09:43]SAM_PROTO_ClearQueue done [21:09:43]KKMCreateOFDPacket [21:09:43]OFDProtocolAddRootSTLVToBuf [21:09:43]FM_MakeSignedData [21:09:43]FM_MakeSignedData [21:09:43]SAM_PROTO_SignData [21:09:43]wFMCommunicate request_size=4 [21:09:43]MH_SAM_APDU [21:09:43]CAPDU: 80 0D 01 02 [21:09:43]Write to MH i2c: E2 08 00 EA 4E 80 0D 01 02 00 00 00 00 B1 [21:09:43]Write i2c OK [21:09:43]MH_I2C_Read... [21:09:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:09:43]Read from MH i2c: E2 [21:09:43]MH_I2C_Read... [21:09:43]Read from MH i2c: E2 03 00 [21:09:43]MH_I2C_Read... [21:09:43]Read from MH i2c: E2 03 00 EA 4E 00 90 00 AC [21:09:43]RAPDU: 90 00 [21:09:43]wFMCommunicate OK [21:09:43]wFMCommunicate request_size=255 [21:09:43]MH_SAM_APDU [21:09:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 1B E7 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 DE E1 01 00 35 04 06 00 95 [21:09:43]Write to MH i2c: E2 02 01 EB 4E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 1B E7 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 DE E1 01 00 35 04 06 00 95 00 00 6A [21:09:43]Write i2c OK [21:09:43]MH_I2C_Read... [21:09:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:09:43]Read from MH i2c: E2 [21:09:43]MH_I2C_Read... [21:09:43]Read from MH i2c: E2 03 00 [21:09:43]MH_I2C_Read... [21:09:43]Read from MH i2c: E2 03 00 EB 4E 00 90 00 AD [21:09:43]RAPDU: 90 00 [21:09:43]wFMCommunicate OK [21:09:43]wFMCommunicate request_size=10 [21:09:43]MH_SAM_APDU [21:09:43]CAPDU: 80 0D 02 02 05 0A 52 AE 03 26 [21:09:43]Write to MH i2c: E2 0D 00 EC 4E 80 0D 02 02 05 00 0A 52 AE 03 26 00 00 F1 [21:09:43]Write i2c OK [21:09:43]MH_I2C_Read... [21:09:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:09:43]Read from MH i2c: E2 [21:09:43]MH_I2C_Read... [21:09:43]Read from MH i2c: E2 03 00 [21:09:43]MH_I2C_Read... [21:09:43]Read from MH i2c: E2 03 00 EC 4E 00 90 00 AE [21:09:43]RAPDU: 90 00 [21:09:43]wFMCommunicate OK [21:09:43]wFMCommunicate request_size=4 [21:09:43]MH_SAM_APDU [21:09:43]CAPDU: 80 0D 03 02 [21:09:43]Write to MH i2c: E2 08 00 ED 4E 80 0D 03 02 00 00 00 00 B6 [21:09:43]Write i2c OK [21:09:43]MH_I2C_Read... [21:09:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:09:43]Read from MH i2c: E2 [21:09:43]MH_I2C_Read... [21:09:43]Read from MH i2c: E2 0B 00 [21:09:43]MH_I2C_Read... [21:09:43]Read from MH i2c: E2 0B 00 ED 4E 00 0A 37 00 3F 04 63 E8 B9 90 00 3F [21:09:43]RAPDU: 0A 37 00 3F 04 63 E8 B9 90 00 [21:09:43]wFMCommunicate OK [21:09:43]SAM_PROTO_SignData done [21:09:43]FM_MakeSignedData done [21:09:43]CreateOFDProtocolMessage [21:09:43]wFMCommunicate request_size=4 [21:09:43]MH_SAM_APDU [21:09:43]CAPDU: 80 11 00 00 [21:09:43]Write to MH i2c: E2 08 00 EE 4E 80 11 00 00 00 00 00 00 B6 [21:09:43]Write i2c OK [21:09:43]MH_I2C_Read... [21:09:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:09:43]Read from MH i2c: E2 [21:09:43]MH_I2C_Read... [21:09:43]Read from MH i2c: E2 17 00 [21:09:43]MH_I2C_Read... [21:09:43]Read from MH i2c: E2 17 00 EE 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 14 [21:09:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [21:09:43]wFMCommunicate OK [21:09:43]CreateOFDProtocolMessage done [21:09:43]OFDSenderStorePacket 123358 [21:09:43]StoreOFDPacket docnum=123358 [21:09:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 B4 A4 07 01 8F 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 1B E7 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 DE E1 01 00 35 04 06 00 95 0A 52 AE 03 26 0A 37 00 3F 04 63 E8 B9 [21:09:43]CheckFolder [21:09:43]dirname=/storage/ofd_packets [21:09:43]CheckFolder done [21:09:43]ProducePacketName [21:09:43]name=ofd_packets/00123358 [21:09:43]NVStorageSaveData ofd_packets/00123358 [21:09:43]File name is /storage/ofd_packets/00123358 [21:09:43]Write 301 bytes [21:09:43]NVStorageSaveData done [21:09:43]OFDSenderStorePacket done [21:09:43]KKMCreateOFDPacket done [21:09:43]NVStorageSaveData kkm_last_timestamp [21:09:43]File name is /storage/kkm_last_timestamp [21:09:43]Write 4 bytes [21:09:43]NVStorageSaveData done [21:09:43]ExternCall_PrintAddStr [21:09:43]wPrintStart [21:09:43]Write to MH i2c: 01 00 00 EF 4E 3D [21:09:43]Write i2c OK [21:09:43]MH_I2C_Read... [21:09:43]Read from MH i2c: 01 [21:09:43]MH_I2C_Read... [21:09:43]Read from MH i2c: 01 07 00 [21:09:43]MH_I2C_Read... [21:09:43]Read from MH i2c: 01 07 00 EF 4E 00 00 00 00 00 FF 0F 52 [21:09:43]RasterBufferAndPrint [21:09:43]line Счет N : (1)1106334 [21:09:43]line ИНН: 02508201610067 [21:09:43]line Контрольно-Кассовый Чек [21:09:43]line ПРОДАЖА [21:09:43]line ТРК (МРК, ГНК) : 11 [21:09:43]line Товар: 2710124130 [21:09:43]line Аи-92-К-5 [21:09:43]line 8.080 * 61.90 [21:09:43]line = 500.15 [21:09:43]line НДС 12% НСП 1% [21:09:43]line > о реализуемом товаре [21:09:43]line ИТОГО: 500.15 [21:09:43]line НСП 1% : 4.43 [21:09:43]line НДС 12% : 53.11 [21:09:43]line Наличными: 0.00 [21:09:43]line Безнал.: 500.15 [21:09:43]line Место: АЗС № 25 "Партнер Нефть" [21:09:43]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [21:09:43]line СНО: Общий режим [21:09:43]line Чек 215 03.03.2024 21:09 [21:09:43]line Смена: 323 ФФД: 1.0 [21:09:43]line ЗНМ: 0300000019 [21:09:43]line РНМ: 0000000000090573 [21:09:43]line Версия ККМ: 001 [21:09:43]line Платежная система: О! деньги [21:09:43]line ФМ: 0000000000874798 [21:09:43]line ФД: 123358 [21:09:43]line ФПД: 163871569347366 [21:09:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T210947&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123358&fm=163871569347366&tin=02508201610067®Number=0000000000090573&sum=50015 [21:09:43]OFD Sender: Processing packet 123358 [packets to send 112, broken 111] [21:09:43]ProducePacketName [21:09:43]name=ofd_packets/00123358 [21:09:43]OFD Sender: To server: pG, [21:09:43]CommunicateWithHost lk.salyk.kg:30040 [21:09:43]ConnectInit lk.salyk.kg [21:09:43]written 0, free lines is 4095 [21:09:44]Connected sock=10 [21: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 37 39 38 0F 01 00 00 B4 A4 07 01 8F 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 1B E7 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 DE E1 01 00 35 04 06 00 95 0A 52 AE 03 26 0A 37 00 3F 04 63 E8 B9 [21:09:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 D1 5D 47 00 A8 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 37 39 38 10 04 04 00 DE E1 01 00 F4 03 04 00 45 93 E4 65 B6 04 01 00 00 23 37 03 A4 84 7F CF F1 [21:09:44]CommunicateWithHost err = 0 [21:09:44]CheckOFDResponse [21:09:44]1017 (14) - 77093643461234 [21:09:44]1041 (16) - 0000000000874798 [21:09:44]1040 (4) - 123358 [21:09:44]1012 (4) - 03.03.2024 15:12 [21:09:44]1206 (1) - 0 [21:09:44]OFD Sender: Remove packet 123358 [21:09:44]ProducePacketName [21:09:44]name=ofd_packets/00123358 [21:09:44]NVStorageDeleteData [21:09:44]Write to MH i2c: 01 00 00 19 4F 68 [21:09:44]Write i2c OK [21:09:44]MH_I2C_Read... [21:09:44]Read from MH i2c: 01 [21:09:44]MH_I2C_Read... [21:09:44]Read from MH i2c: 01 07 00 [21:09:44]MH_I2C_Read... [21:09:44]Read from MH i2c: 01 07 00 19 4F 00 00 00 00 00 07 0D 83 [21:09:44]RasterBufferAndPrint [21:09:44]line [21:09:44]line [21:09:44]line [21:09:44]line [21:09:44]line [21:09:44]written 0, free lines is 3341 [21:09:44]MH_Cut [21:09:44]Write to MH i2c: D1 01 00 20 4F 01 41 [21:09:44]Write i2c OK [21:09:44]MH_I2C_Read... [21:09:44]Read from MH i2c: D1 [21:09:44]MH_I2C_Read... [21:09:44]Read from MH i2c: D1 01 00 [21:09:44]MH_I2C_Read... [21:09:44]Read from MH i2c: D1 01 00 20 4F 00 40 [21:09:44]Write to MH i2c: 01 00 00 21 4F 70 [21:09:44]Write i2c OK [21:09:44]MH_I2C_Read... [21:09:44]OFD Sender: No OFD packet to send [21:09:45]*** Cut start [21:09:45]*** Purtial cut [21:09:45]*** Stage 1: CUTSNS_PIN = 1 [21:09:47]Read from MH i2c: 01 [21:09:47]MH_I2C_Read... [21:09:47]*** Stop cut motor [21:09:47]*** Cut end [21:09:47]Read from MH i2c: 01 07 00 [21:09:47]MH_I2C_Read... [21:09:47]Read from MH i2c: 01 07 00 21 4F 00 00 00 00 00 FF 0F 85 [21:09:47]process_action close_receipt done [21:09:47]requested_data is exist [21:09:47]produce_requested_data [21:09:47]requested_item fm.sn is exist - process it [21:09:47]wFMCommunicate request_size=4 [21:09:47]MH_SAM_APDU [21:09:47]CAPDU: 80 11 00 00 [21:09:47]Write to MH i2c: E2 08 00 22 4F 80 11 00 00 00 00 00 00 EB [21:09:47]Write i2c OK [21:09:47]MH_I2C_Read... [21:09:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:09:47]Read from MH i2c: E2 [21:09:47]MH_I2C_Read... [21:09:47]Read from MH i2c: E2 17 00 [21:09:47]MH_I2C_Read... [21:09:47]Read from MH i2c: E2 17 00 22 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 49 [21:09:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [21:09:47]wFMCommunicate OK [21:09:47]requested_item fd.num is exist - process it [21:09:47]SAM_PROTO_GetFieldsCounters [21:09:47]wFMCommunicate request_size=4 [21:09:47]MH_SAM_APDU [21:09:47]CAPDU: 80 13 00 00 [21:09:47]Write to MH i2c: E2 08 00 23 4F 80 13 00 00 00 00 00 00 EE [21:09:47]Write i2c OK [21:09:47]MH_I2C_Read... [21:09:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:09:47]Read from MH i2c: E2 [21:09:47]MH_I2C_Read... [21:09:47]Read from MH i2c: E2 62 00 [21:09:47]MH_I2C_Read... [21:09:47]Read from MH i2c: E2 62 00 23 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 DE E1 01 00 0E 04 04 00 43 01 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 A2 [21: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 DE E1 01 00 0E 04 04 00 43 01 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 [21:09:47]wFMCommunicate OK [21:09:47]SAM_PROTO_GetFieldsCounters done [21:09:47]requested_item shift.num is exist - process it [21:09:47]requested_item shift.opened is exist - process it [21:09:47]req_shift_opened [21:09:47]FM_GetShiftState [21:09:47]SAM_PROTO_GetShiftState [21:09:47]wFMCommunicate request_size=4 [21:09:47]MH_SAM_APDU [21:09:47]CAPDU: 80 13 01 00 [21:09:47]Write to MH i2c: E2 08 00 24 4F 80 13 01 00 00 00 00 00 F0 [21:09:47]Write i2c OK [21:09:47]MH_I2C_Read... [21:09:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:09:47]Read from MH i2c: E2 [21:09:47]MH_I2C_Read... [21:09:47]Read from MH i2c: E2 0E 00 [21:09:47]MH_I2C_Read... [21:09:47]Read from MH i2c: E2 0E 00 24 4F 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 B2 [21:09:47]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [21:09:47]wFMCommunicate OK [21:09:47]SAM_PROTO_GetShiftState done [21:09:47]FM_GetShiftState done [21:09:47]req_shift_opened done [21:09:47]requested_item shift.open_date is exist - process it [21:09:47]req_shift_open_date [21:09:47]req_shift_open_date done [21:09:47]produce_requested_data done [21:09:47]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123358,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [21:09:47]process_action_free close_receipt [21:09:47]json_value_free [21:09:47]json_value_free done [21:09:47]process_json_proto returns [21:09:47]Send response to host [21:09:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123358,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [21:09:47]free response buf [21:09:47]execute_script done [21:09:47]execute_script returns [21:09:47]free content buf [21:09:47]Sock 9.Close socket [21:09:47]Sock 9.Thread stoped [21:09:47]accept exits with 7 [21:09:47]New connection [21:09:47]New thread 3067252068 created [21:09:47]Thread 3067395428 joined [21:09:47]Waiting for new connection... [21:09:47] Sock 7.Parse request [21:09:47]Sock 7.Check first char [21:09:47]Sock 7.First char is OK [21:09:47]request: POST /json_proto HTTP/1.0 [21:09:47]Method: POST [21:09:47]URL: /json_proto [21:09:47]Method is POST - this is cgi request [21:09:47]url: /json_proto [21:09:47]query_string will be loaded in cgi processing [21:09:47]execute_cgi json_proto POST (null) [21:09:47]execute_cgi path=json_proto method=POST [21:09:47]POST find Content-Length [21:09:47]Host: 172.17.48.197:8080 [21:09:47]Content-Length: 820 [21:09:47]Content-Type: application/json [21:09:47] [21:09:47]POST finish read [21:09:47]Found Content-Length = 820 [21:09:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106333", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 68.880, "sum" : 4787.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 4787.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:09:47]execute_script... [21:09: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)1106333", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 68.880, "sum" : 4787.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 4787.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:09:47]POST & json_proto [21:09:47]process_json_proto [21:09:47]json parsed OK: [21:09:47]protocol is kg_v1.0 [21:09:47]action value=close_receipt [21:09:47]process_action close_receipt [21:09:47]cmd_close_receipt [21:09:47]MH_GetDate [21:09:47]Write to MH i2c: F0 00 00 25 4F 63 [21:09:47]Write i2c OK [21:09:47]MH_I2C_Read... [21:09:47]Read from MH i2c: F0 [21:09:47]MH_I2C_Read... [21:09:47]Read from MH i2c: F0 09 00 [21:09:47]MH_I2C_Read... [21:09:47]Read from MH i2c: F0 09 00 25 4F 00 20 E7 E4 65 6C AF E3 65 1F [21:09:47]GetLastDocTimeStamp 1709500187 [21:09:47]current date 1709500192 [21:09:47]FM_GetShiftState [21:09:47]SAM_PROTO_GetShiftState [21:09:47]wFMCommunicate request_size=4 [21:09:47]MH_SAM_APDU [21:09:47]CAPDU: 80 13 01 00 [21:09:47]Write to MH i2c: E2 08 00 26 4F 80 13 01 00 00 00 00 00 F2 [21:09:47]Write i2c OK [21:09:47]MH_I2C_Read... [21:09:47]Read from MH i2c: E2 [21:09:47]MH_I2C_Read... [21:09:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:09:47]Read from MH i2c: E2 0E 00 [21:09:47]MH_I2C_Read... [21:09:47]Read from MH i2c: E2 0E 00 26 4F 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 B4 [21:09:47]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [21:09:47]wFMCommunicate OK [21:09:47]SAM_PROTO_GetShiftState done [21:09:47]FM_GetShiftState done [21:09:47]opened in 1709425579 [21:09:47]opened+sec_in_day 1709511979 [21:09:47]quantity*price = 478716 [21:09:47]sum+1 = 478717 [21:09:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4787.16 НСП 1% : 42.36 НДС 12% : 508.37 Наличными: 0.00 Безнал.: 4787.16 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 216 03.03.2024 21:09 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874798 ФД: 123359 ФПД: 140758112776690 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T210952&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123359&fm=140758112776690&tin=02508201610067®Number=0000000000090573&sum=478716 [21:09:49]StoreToDocumentArchive [21:09:49]shift 323 fd 123359 [21:09:49]save to /storage/0323/doc_00123359 [21:09:49]save last doc name /storage/0323/doc_00123359 to /storage/kkm_last_doc_name [21:09:49]save OK [21:09:49]Clear old archive folders... [21:09:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:09:49]tlvbuf is 00E27A70 [21:09:49]SAM_PROTO_ClearQueue [21:09:49]wFMCommunicate request_size=4 [21:09:49]MH_SAM_APDU [21:09:49]CAPDU: 80 09 00 00 [21:09:49]Write to MH i2c: E2 08 00 33 4F 80 09 00 00 00 00 00 00 F4 [21:09:49]Write i2c OK [21:09:49]MH_I2C_Read... [21:09:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:09:49]Read from MH i2c: E2 [21:09:49]MH_I2C_Read... [21:09:49]Read from MH i2c: E2 03 00 [21:09:49]MH_I2C_Read... [21:09:49]Read from MH i2c: E2 03 00 33 4F 00 90 00 F6 [21:09:49]RAPDU: 90 00 [21:09:49]wFMCommunicate OK [21:09:49]SAM_PROTO_ClearQueue done [21:09:49]KKMCreateOFDPacket [21:09:49]OFDProtocolAddRootSTLVToBuf [21:09:49]FM_MakeSignedData [21:09:49]FM_MakeSignedData [21:09:49]SAM_PROTO_SignData [21:09:49]wFMCommunicate request_size=4 [21:09:49]MH_SAM_APDU [21:09:49]CAPDU: 80 0D 01 02 [21:09:49]Write to MH i2c: E2 08 00 34 4F 80 0D 01 02 00 00 00 00 FC [21:09:49]Write i2c OK [21:09:49]MH_I2C_Read... [21:09:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:09:49]Read from MH i2c: E2 [21:09:49]MH_I2C_Read... [21:09:49]Read from MH i2c: E2 03 00 [21:09:49]MH_I2C_Read... [21:09:49]Read from MH i2c: E2 03 00 34 4F 00 90 00 F7 [21:09:49]RAPDU: 90 00 [21:09:49]wFMCommunicate OK [21:09:49]wFMCommunicate request_size=255 [21:09:49]MH_SAM_APDU [21:09:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 10 0D 01 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 FC 4D 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 4D 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8C 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 C6 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 4D 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 20 E7 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 DF E1 01 00 35 04 06 00 80 [21:09:49]Write to MH i2c: E2 02 01 35 4F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 10 0D 01 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 FC 4D 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 4D 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8C 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 C6 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 4D 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 20 E7 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 DF E1 01 00 35 04 06 00 80 00 00 07 [21:09:49]Write i2c OK [21:09:49]MH_I2C_Read... [21:09:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:09:49]Read from MH i2c: E2 [21:09:49]MH_I2C_Read... [21:09:49]Read from MH i2c: E2 03 00 [21:09:49]MH_I2C_Read... [21:09:49]Read from MH i2c: E2 03 00 35 4F 00 90 00 F8 [21:09:49]RAPDU: 90 00 [21:09:49]wFMCommunicate OK [21:09:49]wFMCommunicate request_size=10 [21:09:49]MH_SAM_APDU [21:09:49]CAPDU: 80 0D 02 02 05 04 CD 4F B1 F2 [21:09:49]Write to MH i2c: E2 0D 00 36 4F 80 0D 02 02 05 00 04 CD 4F B1 F2 00 00 CC [21:09:49]Write i2c OK [21:09:49]MH_I2C_Read... [21:09:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:09:49]Read from MH i2c: E2 [21:09:49]MH_I2C_Read... [21:09:49]Read from MH i2c: E2 03 00 [21:09:49]MH_I2C_Read... [21:09:49]Read from MH i2c: E2 03 00 36 4F 00 90 00 F9 [21:09:49]RAPDU: 90 00 [21:09:49]wFMCommunicate OK [21:09:49]wFMCommunicate request_size=4 [21:09:49]MH_SAM_APDU [21:09:49]CAPDU: 80 0D 03 02 [21:09:49]Write to MH i2c: E2 08 00 37 4F 80 0D 03 02 00 00 00 00 01 [21:09:49]Write i2c OK [21:09:49]MH_I2C_Read... [21:09:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:09:49]Read from MH i2c: E2 [21:09:49]MH_I2C_Read... [21:09:49]Read from MH i2c: E2 0B 00 [21:09:49]MH_I2C_Read... [21:09:49]Read from MH i2c: E2 0B 00 37 4F 00 A1 7F 94 1D 08 09 52 FE 90 00 34 [21:09:49]RAPDU: A1 7F 94 1D 08 09 52 FE 90 00 [21:09:49]wFMCommunicate OK [21:09:49]SAM_PROTO_SignData done [21:09:49]FM_MakeSignedData done [21:09:49]CreateOFDProtocolMessage [21:09:49]wFMCommunicate request_size=4 [21:09:49]MH_SAM_APDU [21:09:49]CAPDU: 80 11 00 00 [21:09:49]Write to MH i2c: E2 08 00 38 4F 80 11 00 00 00 00 00 00 01 [21:09:49]Write i2c OK [21:09:49]MH_I2C_Read... [21:09:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:09:49]Read from MH i2c: E2 [21:09:49]MH_I2C_Read... [21:09:49]Read from MH i2c: E2 17 00 [21:09:49]MH_I2C_Read... [21:09:49]Read from MH i2c: E2 17 00 38 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 5F [21:09:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [21:09:49]wFMCommunicate OK [21:09:49]CreateOFDProtocolMessage done [21:09:49]OFDSenderStorePacket 123359 [21:09:49]StoreOFDPacket docnum=123359 [21:09:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 EB 57 07 01 3C C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 10 0D 01 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 FC 4D 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 4D 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8C 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 C6 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 4D 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 20 E7 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 DF E1 01 00 35 04 06 00 80 04 CD 4F B1 F2 A1 7F 94 1D 08 09 52 FE [21:09:49]CheckFolder [21:09:49]dirname=/storage/ofd_packets [21:09:49]CheckFolder done [21:09:49]ProducePacketName [21:09:49]name=ofd_packets/00123359 [21:09:49]NVStorageSaveData ofd_packets/00123359 [21:09:49]File name is /storage/ofd_packets/00123359 [21:09:49]Write 301 bytes [21:09:49]NVStorageSaveData done [21:09:49]OFDSenderStorePacket done [21:09:49]KKMCreateOFDPacket done [21:09:49]NVStorageSaveData kkm_last_timestamp [21:09:49]File name is /storage/kkm_last_timestamp [21:09:49]Write 4 bytes [21:09:49]NVStorageSaveData done [21:09:49]ExternCall_PrintAddStr [21:09:49]wPrintStart [21:09:49]Write to MH i2c: 01 00 00 39 4F 88 [21:09:49]Write i2c OK [21:09:49]MH_I2C_Read... [21:09:49]Read from MH i2c: 01 [21:09:49]MH_I2C_Read... [21:09:49]Read from MH i2c: 01 07 00 [21:09:49]MH_I2C_Read... [21:09:49]Read from MH i2c: 01 07 00 39 4F 00 00 00 00 00 FF 0F 9D [21:09:49]RasterBufferAndPrint [21:09:49]line Счет N : (1)1106333 [21:09:49]line ИНН: 02508201610067 [21:09:49]line Контрольно-Кассовый Чек [21:09:49]line ПРОДАЖА [21:09:49]line ТРК (МРК, ГНК) : 53 [21:09:49]line Товар: 2710124500 [21:09:49]line Аи-95-К-5 [21:09:49]line 68.880 * 69.50 [21:09:49]line = 4787.16 [21:09:49]line НДС 12% НСП 1% [21:09:49]line > о реализуемом товаре [21:09:50]line ИТОГО: 4787.16 [21:09:50]line НСП 1% : 42.36 [21:09:50]line НДС 12% : 508.37 [21:09:50]line Наличными: 0.00 [21:09:50]line Безнал.: 4787.16 [21:09:50]line Место: АЗС № 25 "Партнер Нефть" [21:09:50]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [21:09:50]line СНО: Общий режим [21:09:50]line Чек 216 03.03.2024 21:09 [21:09:50]line Смена: 323 ФФД: 1.0 [21:09:50]line ЗНМ: 0300000019 [21:09:50]line РНМ: 0000000000090573 [21:09:50]line Версия ККМ: 001 [21:09:50]line Платежная система: Бакай Банк [21:09:50]line ФМ: 0000000000874798 [21:09:50]line ФД: 123359 [21:09:50]line ФПД: 140758112776690 [21:09:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T210952&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123359&fm=140758112776690&tin=02508201610067®Number=0000000000090573&sum=478716 [21:09:50]OFD Sender: Processing packet 123359 [packets to send 112, broken 111] [21:09:50]ProducePacketName [21:09:50]name=ofd_packets/00123359 [21:09:50]OFD Sender: To server: pG, [21:09:50]CommunicateWithHost lk.salyk.kg:30040 [21:09:50]ConnectInit lk.salyk.kg [21:09:50]written 0, free lines is 4095 [21:09:50]Connected sock=10 [21: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 37 39 38 0F 01 00 00 EB 57 07 01 3C C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 10 0D 01 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 FC 4D 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 4D 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8C 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 C6 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 4D 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 20 E7 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 DF E1 01 00 35 04 06 00 80 04 CD 4F B1 F2 A1 7F 94 1D 08 09 52 FE [21: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 37 39 38 4F 00 00 00 2B FE 47 00 EB 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 37 39 38 10 04 04 00 DF E1 01 00 F4 03 04 00 4B 93 E4 65 B6 04 01 00 00 7F 6E 8E 51 9D 0F 79 84 [21:09:50]CommunicateWithHost err = 0 [21:09:50]CheckOFDResponse [21:09:50]1017 (14) - 77093643461234 [21:09:50]1041 (16) - 0000000000874798 [21:09:50]1040 (4) - 123359 [21:09:50]1012 (4) - 03.03.2024 15:12 [21:09:50]1206 (1) - 0 [21:09:50]OFD Sender: Remove packet 123359 [21:09:50]ProducePacketName [21:09:50]name=ofd_packets/00123359 [21:09:50]NVStorageDeleteData [21:09:50]Write to MH i2c: 01 00 00 63 4F B2 [21:09:50]Write i2c OK [21:09:50]MH_I2C_Read... [21:09:50]Read from MH i2c: 01 [21:09:50]MH_I2C_Read... [21:09:50]Read from MH i2c: 01 07 00 [21:09:50]MH_I2C_Read... [21:09:50]Read from MH i2c: 01 07 00 63 4F 00 00 00 00 00 16 0D DC [21:09:50]RasterBufferAndPrint [21:09:50]line [21:09:50]line [21:09:50]line [21:09:50]line [21:09:50]line [21:09:50]written 0, free lines is 3359 [21:09:50]MH_Cut [21:09:50]Write to MH i2c: D1 01 00 6A 4F 01 8B [21:09:50]Write i2c OK [21:09:50]MH_I2C_Read... [21:09:50]Read from MH i2c: D1 [21:09:50]MH_I2C_Read... [21:09:50]Read from MH i2c: D1 01 00 [21:09:50]MH_I2C_Read... [21:09:50]Read from MH i2c: D1 01 00 6A 4F 00 8A [21:09:50]Write to MH i2c: 01 00 00 6B 4F BA [21:09:50]Write i2c OK [21:09:50]MH_I2C_Read... [21:09:50]OFD Sender: No OFD packet to send [21:09:51]*** Cut start [21:09:51]*** Purtial cut [21:09:51]*** Stage 1: CUTSNS_PIN = 1 [21:09:53]Read from MH i2c: 01 [21:09:53]MH_I2C_Read... [21:09:53]*** Stop cut motor [21:09:53]*** Cut end [21:09:53]Read from MH i2c: 01 07 00 [21:09:53]MH_I2C_Read... [21:09:53]Read from MH i2c: 01 07 00 6B 4F 00 00 00 00 00 FF 0F CF [21:09:53]process_action close_receipt done [21:09:53]requested_data is exist [21:09:53]produce_requested_data [21:09:53]requested_item fm.sn is exist - process it [21:09:53]wFMCommunicate request_size=4 [21:09:53]MH_SAM_APDU [21:09:53]CAPDU: 80 11 00 00 [21:09:53]Write to MH i2c: E2 08 00 6C 4F 80 11 00 00 00 00 00 00 35 [21:09:53]Write i2c OK [21:09:53]MH_I2C_Read... [21:09:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:09:53]Read from MH i2c: E2 [21:09:53]MH_I2C_Read... [21:09:53]Read from MH i2c: E2 17 00 [21:09:53]MH_I2C_Read... [21:09:53]Read from MH i2c: E2 17 00 6C 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 93 [21:09:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [21:09:53]wFMCommunicate OK [21:09:53]requested_item fd.num is exist - process it [21:09:53]SAM_PROTO_GetFieldsCounters [21:09:53]wFMCommunicate request_size=4 [21:09:53]MH_SAM_APDU [21:09:53]CAPDU: 80 13 00 00 [21:09:53]Write to MH i2c: E2 08 00 6D 4F 80 13 00 00 00 00 00 00 38 [21:09:53]Write i2c OK [21:09:53]MH_I2C_Read... [21:09:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:09:53]Read from MH i2c: E2 [21:09:53]MH_I2C_Read... [21:09:53]Read from MH i2c: E2 62 00 [21:09:53]MH_I2C_Read... [21:09:53]Read from MH i2c: E2 62 00 6D 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 DF E1 01 00 0E 04 04 00 43 01 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 F0 [21:09:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 DF E1 01 00 0E 04 04 00 43 01 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 [21:09:53]wFMCommunicate OK [21:09:53]SAM_PROTO_GetFieldsCounters done [21:09:53]requested_item shift.num is exist - process it [21:09:53]requested_item shift.opened is exist - process it [21:09:53]req_shift_opened [21:09:53]FM_GetShiftState [21:09:53]SAM_PROTO_GetShiftState [21:09:53]wFMCommunicate request_size=4 [21:09:53]MH_SAM_APDU [21:09:53]CAPDU: 80 13 01 00 [21:09:53]Write to MH i2c: E2 08 00 6E 4F 80 13 01 00 00 00 00 00 3A [21:09:53]Write i2c OK [21:09:53]MH_I2C_Read... [21:09:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:09:53]Read from MH i2c: E2 [21:09:53]MH_I2C_Read... [21:09:53]Read from MH i2c: E2 0E 00 [21:09:53]MH_I2C_Read... [21:09:53]Read from MH i2c: E2 0E 00 6E 4F 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 FC [21:09:53]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [21:09:53]wFMCommunicate OK [21:09:53]SAM_PROTO_GetShiftState done [21:09:53]FM_GetShiftState done [21:09:53]req_shift_opened done [21:09:53]requested_item shift.open_date is exist - process it [21:09:53]req_shift_open_date [21:09:53]req_shift_open_date done [21:09:53]produce_requested_data done [21:09:53]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123359,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [21:09:53]process_action_free close_receipt [21:09:53]json_value_free [21:09:53]json_value_free done [21:09:53]process_json_proto returns [21:09:53]Send response to host [21:09:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123359,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [21:09:53]free response buf [21:09:53]execute_script done [21:09:53]execute_script returns [21:09:53]free content buf [21:09:53]Sock 7.Close socket [21:09:53]Sock 7.Thread stoped [21:09:55]OFD Sender: No OFD packet to send [21:10:00]OFD Sender: No OFD packet to send [21:10:05]OFD Sender: No OFD packet to send [21:10:10]OFD Sender: No OFD packet to send [21:10:15]OFD Sender: No OFD packet to send [21:10:20]OFD Sender: No OFD packet to send [21:10:25]OFD Sender: No OFD packet to send [21:10:30]OFD Sender: No OFD packet to send [21:10:35]OFD Sender: No OFD packet to send [21:10:40]OFD Sender: No OFD packet to send [21:10:45]OFD Sender: No OFD packet to send [21:10:50]OFD Sender: No OFD packet to send [21:10:55]OFD Sender: No OFD packet to send [21:11:00]OFD Sender: No OFD packet to send [21:11:05]OFD Sender: No OFD packet to send [21:11:10]OFD Sender: No OFD packet to send [21:11:15]OFD Sender: No OFD packet to send [21:11:20]OFD Sender: No OFD packet to send [21:11:21]accept exits with 9 [21:11:21]New connection [21:11:21]New thread 3067395428 created [21:11:21]Thread 3067252068 joined [21:11:21]Waiting for new connection... [21:11:21] Sock 9.Parse request [21:11:21]Sock 9.Check first char [21:11:21]Sock 9.First char is OK [21:11:21]request: POST /json_proto HTTP/1.0 [21:11:21]Method: POST [21:11:21]URL: /json_proto [21:11:21]Method is POST - this is cgi request [21:11:21]url: /json_proto [21:11:21]query_string will be loaded in cgi processing [21:11:21]execute_cgi json_proto POST (null) [21:11:21]execute_cgi path=json_proto method=POST [21:11:21]POST find Content-Length [21:11:21]Host: 172.17.48.197:8080 [21:11:21]Content-Length: 817 [21:11:21]Content-Type: application/json [21:11:21] [21:11:21]POST finish read [21:11:21]Found Content-Length = 817 [21:11:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106335", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 6.470, "sum" : 400.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 400.49 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:11:21]execute_script... [21:11:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106335", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 6.470, "sum" : 400.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 400.49 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:11:21]POST & json_proto [21:11:21]process_json_proto [21:11:21]json parsed OK: [21:11:21]protocol is kg_v1.0 [21:11:21]action value=close_receipt [21:11:21]process_action close_receipt [21:11:21]cmd_close_receipt [21:11:21]MH_GetDate [21:11:21]Write to MH i2c: F0 00 00 6F 4F AD [21:11:21]Write i2c OK [21:11:21]MH_I2C_Read... [21:11:21]Read from MH i2c: F0 [21:11:21]MH_I2C_Read... [21:11:21]Read from MH i2c: F0 09 00 [21:11:21]MH_I2C_Read... [21:11:21]Read from MH i2c: F0 09 00 6F 4F 00 7E E7 E4 65 6C AF E3 65 C7 [21:11:21]GetLastDocTimeStamp 1709500192 [21:11:21]current date 1709500286 [21:11:21]FM_GetShiftState [21:11:21]SAM_PROTO_GetShiftState [21:11:21]wFMCommunicate request_size=4 [21:11:21]MH_SAM_APDU [21:11:21]CAPDU: 80 13 01 00 [21:11:21]Write to MH i2c: E2 08 00 70 4F 80 13 01 00 00 00 00 00 3C [21:11:21]Write i2c OK [21:11:21]MH_I2C_Read... [21:11:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:11:21]Read from MH i2c: E2 [21:11:21]MH_I2C_Read... [21:11:21]Read from MH i2c: E2 0E 00 [21:11:21]MH_I2C_Read... [21:11:21]Read from MH i2c: E2 0E 00 70 4F 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 FE [21:11:21]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [21:11:21]wFMCommunicate OK [21:11:21]SAM_PROTO_GetShiftState done [21:11:21]FM_GetShiftState done [21:11:21]opened in 1709425579 [21:11:21]opened+sec_in_day 1709511979 [21:11:21]quantity*price = 40049 [21:11:21]sum+1 = 40050 [21:11:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.49 НСП 1% : 3.54 НДС 12% : 42.53 Наличными: 0.00 Безнал.: 400.49 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 217 03.03.2024 21:11 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874798 ФД: 123360 ФПД: 157798583634764 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T211126&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123360&fm=157798583634764&tin=02508201610067®Number=0000000000090573&sum=40049 [21:11:22]StoreToDocumentArchive [21:11:22]shift 323 fd 123360 [21:11:22]save to /storage/0323/doc_00123360 [21:11:22]save last doc name /storage/0323/doc_00123360 to /storage/kkm_last_doc_name [21:11:22]save OK [21:11:22]Clear old archive folders... [21:11:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:11:22]tlvbuf is 00E0D3D0 [21:11:22]SAM_PROTO_ClearQueue [21:11:22]wFMCommunicate request_size=4 [21:11:22]MH_SAM_APDU [21:11:22]CAPDU: 80 09 00 00 [21:11:22]Write to MH i2c: E2 08 00 7D 4F 80 09 00 00 00 00 00 00 3E [21:11:22]Write i2c OK [21:11:22]MH_I2C_Read... [21:11:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:11:22]Read from MH i2c: E2 [21:11:22]MH_I2C_Read... [21:11:22]Read from MH i2c: E2 03 00 [21:11:22]MH_I2C_Read... [21:11:22]Read from MH i2c: E2 03 00 7D 4F 00 90 00 40 [21:11:22]RAPDU: 90 00 [21:11:22]wFMCommunicate OK [21:11:22]SAM_PROTO_ClearQueue done [21:11:22]KKMCreateOFDPacket [21:11:22]OFDProtocolAddRootSTLVToBuf [21:11:22]FM_MakeSignedData [21:11:22]FM_MakeSignedData [21:11:22]SAM_PROTO_SignData [21:11:22]wFMCommunicate request_size=4 [21:11:22]MH_SAM_APDU [21:11:22]CAPDU: 80 0D 01 02 [21:11:22]Write to MH i2c: E2 08 00 7E 4F 80 0D 01 02 00 00 00 00 46 [21:11:22]Write i2c OK [21:11:22]MH_I2C_Read... [21:11:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:11:22]Read from MH i2c: E2 [21:11:22]MH_I2C_Read... [21:11:22]Read from MH i2c: E2 03 00 [21:11:22]MH_I2C_Read... [21:11:22]Read from MH i2c: E2 03 00 7E 4F 00 90 00 41 [21:11:22]RAPDU: 90 00 [21:11:22]wFMCommunicate OK [21:11:22]wFMCommunicate request_size=255 [21:11:22]MH_SAM_APDU [21:11:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 19 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 71 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 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 9D 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 7E E7 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 E0 E1 01 00 35 04 06 00 8F [21:11:22]Write to MH i2c: E2 02 01 7F 4F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 19 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 71 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 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 9D 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 7E E7 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 E0 E1 01 00 35 04 06 00 8F 00 00 52 [21:11:22]Write i2c OK [21:11:22]MH_I2C_Read... [21:11:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:11:22]Read from MH i2c: E2 [21:11:22]MH_I2C_Read... [21:11:22]Read from MH i2c: E2 03 00 [21:11:22]MH_I2C_Read... [21:11:22]Read from MH i2c: E2 03 00 7F 4F 00 90 00 42 [21:11:22]RAPDU: 90 00 [21:11:22]wFMCommunicate OK [21:11:22]wFMCommunicate request_size=10 [21:11:22]MH_SAM_APDU [21:11:22]CAPDU: 80 0D 02 02 05 84 58 86 0B 4C [21:11:22]Write to MH i2c: E2 0D 00 80 4F 80 0D 02 02 05 00 84 58 86 0B 4C 00 00 0C [21:11:22]Write i2c OK [21:11:22]MH_I2C_Read... [21:11:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:11:22]Read from MH i2c: E2 [21:11:22]MH_I2C_Read... [21:11:22]Read from MH i2c: E2 03 00 [21:11:22]MH_I2C_Read... [21:11:22]Read from MH i2c: E2 03 00 80 4F 00 90 00 43 [21:11:22]RAPDU: 90 00 [21:11:22]wFMCommunicate OK [21:11:22]wFMCommunicate request_size=4 [21:11:22]MH_SAM_APDU [21:11:22]CAPDU: 80 0D 03 02 [21:11:22]Write to MH i2c: E2 08 00 81 4F 80 0D 03 02 00 00 00 00 4B [21:11:22]Write i2c OK [21:11:22]MH_I2C_Read... [21:11:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:11:22]Read from MH i2c: E2 [21:11:22]MH_I2C_Read... [21:11:22]Read from MH i2c: E2 0B 00 [21:11:22]MH_I2C_Read... [21:11:22]Read from MH i2c: E2 0B 00 81 4F 00 B8 E9 A4 1E D0 67 D8 F3 90 00 B1 [21:11:22]RAPDU: B8 E9 A4 1E D0 67 D8 F3 90 00 [21:11:22]wFMCommunicate OK [21:11:22]SAM_PROTO_SignData done [21:11:22]FM_MakeSignedData done [21:11:22]CreateOFDProtocolMessage [21:11:22]wFMCommunicate request_size=4 [21:11:22]MH_SAM_APDU [21:11:22]CAPDU: 80 11 00 00 [21:11:22]Write to MH i2c: E2 08 00 82 4F 80 11 00 00 00 00 00 00 4B [21:11:22]Write i2c OK [21:11:22]MH_I2C_Read... [21:11:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:11:22]Read from MH i2c: E2 [21:11:22]MH_I2C_Read... [21:11:22]Read from MH i2c: E2 17 00 [21:11:22]MH_I2C_Read... [21:11:22]Read from MH i2c: E2 17 00 82 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 A9 [21:11:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [21:11:22]wFMCommunicate OK [21:11:22]CreateOFDProtocolMessage done [21:11:22]OFDSenderStorePacket 123360 [21:11:22]StoreOFDPacket docnum=123360 [21:11:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 5D 18 07 01 A4 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 19 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 71 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 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 9D 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 7E E7 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 E0 E1 01 00 35 04 06 00 8F 84 58 86 0B 4C B8 E9 A4 1E D0 67 D8 F3 [21:11:22]CheckFolder [21:11:22]dirname=/storage/ofd_packets [21:11:22]CheckFolder done [21:11:22]ProducePacketName [21:11:22]name=ofd_packets/00123360 [21:11:22]NVStorageSaveData ofd_packets/00123360 [21:11:22]File name is /storage/ofd_packets/00123360 [21:11:22]Write 301 bytes [21:11:22]NVStorageSaveData done [21:11:22]OFDSenderStorePacket done [21:11:22]KKMCreateOFDPacket done [21:11:22]NVStorageSaveData kkm_last_timestamp [21:11:22]File name is /storage/kkm_last_timestamp [21:11:22]Write 4 bytes [21:11:22]NVStorageSaveData done [21:11:22]ExternCall_PrintAddStr [21:11:22]wPrintStart [21:11:22]Write to MH i2c: 01 00 00 83 4F D2 [21:11:22]Write i2c OK [21:11:22]MH_I2C_Read... [21:11:22]Read from MH i2c: 01 [21:11:22]MH_I2C_Read... [21:11:22]Read from MH i2c: 01 07 00 [21:11:22]MH_I2C_Read... [21:11:22]Read from MH i2c: 01 07 00 83 4F 00 00 00 00 00 FF 0F E7 [21:11:22]RasterBufferAndPrint [21:11:22]line Счет N : (1)1106335 [21:11:22]line ИНН: 02508201610067 [21:11:22]line Контрольно-Кассовый Чек [21:11:22]line ПРОДАЖА [21:11:22]line ТРК (МРК, ГНК) : 52 [21:11:22]line Товар: 2710124130 [21:11:22]line Аи-92-К-5 [21:11:22]line 6.470 * 61.90 [21:11:22]line = 400.49 [21:11:22]line НДС 12% НСП 1% [21:11:22]line > о реализуемом товаре [21:11:22]line ИТОГО: 400.49 [21:11:22]line НСП 1% : 3.54 [21:11:22]line НДС 12% : 42.53 [21:11:22]line Наличными: 0.00 [21:11:22]line Безнал.: 400.49 [21:11:22]line Место: АЗС № 25 "Партнер Нефть" [21:11:22]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [21:11:22]line СНО: Общий режим [21:11:22]line Чек 217 03.03.2024 21:11 [21:11:22]line Смена: 323 ФФД: 1.0 [21:11:22]line ЗНМ: 0300000019 [21:11:22]line РНМ: 0000000000090573 [21:11:22]line Версия ККМ: 001 [21:11:22]line Платежная система: Бакай Банк [21:11:22]line ФМ: 0000000000874798 [21:11:22]line ФД: 123360 [21:11:22]line ФПД: 157798583634764 [21:11:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T211126&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123360&fm=157798583634764&tin=02508201610067®Number=0000000000090573&sum=40049 [21:11:23]OFD Sender: Processing packet 123360 [packets to send 112, broken 111] [21:11:23]ProducePacketName [21:11:23]name=ofd_packets/00123360 [21:11:23]OFD Sender: To server: pG, [21:11:23]CommunicateWithHost lk.salyk.kg:30040 [21:11:23]ConnectInit lk.salyk.kg [21:11:23]written 0, free lines is 4095 [21:11:23]Connected sock=10 [21:11: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 37 39 38 0F 01 00 00 5D 18 07 01 A4 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 19 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 71 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 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 9D 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 7E E7 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 E0 E1 01 00 35 04 06 00 8F 84 58 86 0B 4C B8 E9 A4 1E D0 67 D8 F3 [21:11:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 B6 AA 47 00 1F 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 E0 E1 01 00 F4 03 04 00 A8 93 E4 65 B6 04 01 00 00 40 6F 44 91 CA 62 3C DE [21:11:23]CommunicateWithHost err = 0 [21:11:23]CheckOFDResponse [21:11:23]1017 (14) - 77093643461234 [21:11:23]1041 (16) - 0000000000874798 [21:11:23]1040 (4) - 123360 [21:11:23]1012 (4) - 03.03.2024 15:13 [21:11:23]1206 (1) - 0 [21:11:23]OFD Sender: Remove packet 123360 [21:11:23]ProducePacketName [21:11:23]name=ofd_packets/00123360 [21:11:23]NVStorageDeleteData [21:11:23]Write to MH i2c: 01 00 00 AD 4F FC [21:11:23]Write i2c OK [21:11:23]MH_I2C_Read... [21:11:23]Read from MH i2c: 01 [21:11:23]MH_I2C_Read... [21:11:23]Read from MH i2c: 01 07 00 [21:11:23]MH_I2C_Read... [21:11:23]Read from MH i2c: 01 07 00 AD 4F 00 00 00 00 00 06 0D 16 [21:11:23]RasterBufferAndPrint [21:11:23]line [21:11:23]line [21:11:23]line [21:11:23]line [21:11:23]line [21:11:23]written 0, free lines is 3340 [21:11:23]MH_Cut [21:11:23]Write to MH i2c: D1 01 00 B4 4F 01 D5 [21:11:23]Write i2c OK [21:11:23]MH_I2C_Read... [21:11:23]Read from MH i2c: D1 [21:11:23]MH_I2C_Read... [21:11:23]Read from MH i2c: D1 01 00 [21:11:23]MH_I2C_Read... [21:11:23]Read from MH i2c: D1 01 00 B4 4F 00 D4 [21:11:23]Write to MH i2c: 01 00 00 B5 4F 04 [21:11:23]Write i2c OK [21:11:23]MH_I2C_Read... [21:11:23]OFD Sender: No OFD packet to send [21:11:24]*** Cut start [21:11:24]*** Purtial cut [21:11:24]*** Stage 1: CUTSNS_PIN = 1 [21:11:26]Read from MH i2c: 01 [21:11:26]MH_I2C_Read... [21:11:26]*** Stop cut motor [21:11:26]*** Cut end [21:11:26]Read from MH i2c: 01 07 00 [21:11:26]MH_I2C_Read... [21:11:26]Read from MH i2c: 01 07 00 B5 4F 00 00 00 00 00 FF 0F 19 [21:11:26]process_action close_receipt done [21:11:26]requested_data is exist [21:11:26]produce_requested_data [21:11:26]requested_item fm.sn is exist - process it [21:11:26]wFMCommunicate request_size=4 [21:11:26]MH_SAM_APDU [21:11:26]CAPDU: 80 11 00 00 [21:11:26]Write to MH i2c: E2 08 00 B6 4F 80 11 00 00 00 00 00 00 7F [21:11:26]Write i2c OK [21:11:26]MH_I2C_Read... [21:11:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:11:26]Read from MH i2c: E2 [21:11:26]MH_I2C_Read... [21:11:26]Read from MH i2c: E2 17 00 [21:11:26]MH_I2C_Read... [21:11:26]Read from MH i2c: E2 17 00 B6 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 DD [21:11:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [21:11:26]wFMCommunicate OK [21:11:26]requested_item fd.num is exist - process it [21:11:26]SAM_PROTO_GetFieldsCounters [21:11:26]wFMCommunicate request_size=4 [21:11:26]MH_SAM_APDU [21:11:26]CAPDU: 80 13 00 00 [21:11:26]Write to MH i2c: E2 08 00 B7 4F 80 13 00 00 00 00 00 00 82 [21:11:26]Write i2c OK [21:11:26]MH_I2C_Read... [21:11:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:11:26]Read from MH i2c: E2 [21:11:26]MH_I2C_Read... [21:11:26]Read from MH i2c: E2 62 00 [21:11:26]MH_I2C_Read... [21:11:26]Read from MH i2c: E2 62 00 B7 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 E0 E1 01 00 0E 04 04 00 43 01 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 3E [21:11: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 E0 E1 01 00 0E 04 04 00 43 01 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 [21:11:26]wFMCommunicate OK [21:11:26]SAM_PROTO_GetFieldsCounters done [21:11:26]requested_item shift.num is exist - process it [21:11:26]requested_item shift.opened is exist - process it [21:11:26]req_shift_opened [21:11:26]FM_GetShiftState [21:11:26]SAM_PROTO_GetShiftState [21:11:26]wFMCommunicate request_size=4 [21:11:26]MH_SAM_APDU [21:11:26]CAPDU: 80 13 01 00 [21:11:26]Write to MH i2c: E2 08 00 B8 4F 80 13 01 00 00 00 00 00 84 [21:11:26]Write i2c OK [21:11:26]MH_I2C_Read... [21:11:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:11:26]Read from MH i2c: E2 [21:11:26]MH_I2C_Read... [21:11:26]Read from MH i2c: E2 0E 00 [21:11:26]MH_I2C_Read... [21:11:26]Read from MH i2c: E2 0E 00 B8 4F 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 46 [21:11:26]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [21:11:26]wFMCommunicate OK [21:11:26]SAM_PROTO_GetShiftState done [21:11:26]FM_GetShiftState done [21:11:26]req_shift_opened done [21:11:26]requested_item shift.open_date is exist - process it [21:11:26]req_shift_open_date [21:11:26]req_shift_open_date done [21:11:26]produce_requested_data done [21:11:26]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123360,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [21:11:26]process_action_free close_receipt [21:11:26]json_value_free [21:11:26]json_value_free done [21:11:26]process_json_proto returns [21:11:26]Send response to host [21:11:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123360,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [21:11:26]free response buf [21:11:26]execute_script done [21:11:26]execute_script returns [21:11:26]free content buf [21:11:26]Sock 9.Close socket [21:11:26]Sock 9.Thread stoped [21:11:28]OFD Sender: No OFD packet to send [21:11:33]OFD Sender: No OFD packet to send [21:11:38]OFD Sender: No OFD packet to send [21:11:43]OFD Sender: No OFD packet to send [21:11:48]OFD Sender: No OFD packet to send [21:11:53]OFD Sender: No OFD packet to send [21:11:58]OFD Sender: No OFD packet to send [21:12:03]OFD Sender: No OFD packet to send [21:12:08]OFD Sender: No OFD packet to send [21:12:13]OFD Sender: No OFD packet to send [21:12:18]OFD Sender: No OFD packet to send [21:12:23]OFD Sender: No OFD packet to send [21:12:28]OFD Sender: No OFD packet to send [21:12:32]accept exits with 7 [21:12:32]New connection [21:12:32]New thread 3067252068 created [21:12:32]Thread 3067395428 joined [21:12:32]Waiting for new connection... [21:12:32] Sock 7.Parse request [21:12:32]Sock 7.Check first char [21:12:32]Sock 7.First char is OK [21:12:32]request: POST /json_proto HTTP/1.0 [21:12:32]Method: POST [21:12:32]URL: /json_proto [21:12:32]Method is POST - this is cgi request [21:12:32]url: /json_proto [21:12:32]query_string will be loaded in cgi processing [21:12:32]execute_cgi json_proto POST (null) [21:12:32]execute_cgi path=json_proto method=POST [21:12:32]POST find Content-Length [21:12:32]Host: 172.17.48.197:8080 [21:12:32]Content-Length: 1218 [21:12:32]Content-Type: application/json [21:12:32] [21:12:32]POST finish read [21:12:32]Found Content-Length = 1218 [21:12:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106337\u000A03.03.2024 21:08\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 24.240 x 61.90\u000A\u0418\u0422\u041E\u0413: 1500.46\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3860627\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:12:32]execute_script... [21:12:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106337\u000A03.03.2024 21:08\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 24.240 x 61.90\u000A\u0418\u0422\u041E\u0413: 1500.46\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3860627\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:12:32]POST & json_proto [21:12:32]process_json_proto [21:12:32]json parsed OK: [21:12:32]protocol is kg_v1.0 [21:12:32]action value=print_text [21:12:32]process_action print_text [21:12:32]cmd_print_text [21:12:32]ExternCall_PrintAddStr [21:12:32]wPrintStart [21:12:32]Write to MH i2c: 01 00 00 B9 4F 08 [21:12:32]Write i2c OK [21:12:32]MH_I2C_Read... [21:12:32]Read from MH i2c: 01 [21:12:32]MH_I2C_Read... [21:12:32]Read from MH i2c: 01 07 00 [21:12:32]MH_I2C_Read... [21:12:32]Read from MH i2c: 01 07 00 B9 4F 00 00 00 00 00 FF 0F 1D [21:12:32]RasterBufferAndPrint [21:12:32]line *****ТОВАРНЫЙ ЧЕК***** [21:12:32]line АЗС 25 [21:12:32]line Партнер нефть [21:12:32]line 02508201610067 [21:12:32]line Кассир : Турдумбек у. К. [21:12:32]line Счет N : (1)1106337 [21:12:32]line 03.03.2024 21:08 [21:12:32]line ПРОДАЖА [21:12:32]line ТРК (МРК, ГНК): 11 [21:12:32]line Вид ГСМ : 2710124130 [21:12:32]line Аи-92-К-5 [21:12:32]line 24.240 x 61.90 [21:12:32]line ИТОГ: 1500.46 [21:12:32]line Тип оплаты: Талоны: Топливные Талоны [21:12:32]line 3860627 [21:12:32]line ______________________ [21:12:32]line (подпись) [21:12:32]written 0, free lines is 4095 [21:12:32]Write to MH i2c: 01 00 00 CE 4F 1D [21:12:32]Write i2c OK [21:12:32]MH_I2C_Read... [21:12:32]Read from MH i2c: 01 [21:12:32]MH_I2C_Read... [21:12:32]Read from MH i2c: 01 07 00 [21:12:32]MH_I2C_Read... [21:12:32]Read from MH i2c: 01 07 00 CE 4F 00 00 00 00 00 F7 0D 28 [21:12:32]RasterBufferAndPrint [21:12:32]line [21:12:32]line [21:12:32]line [21:12:32]line [21:12:32]line [21:12:32]written 0, free lines is 3576 [21:12:32]MH_Cut [21:12:32]Write to MH i2c: D1 01 00 D5 4F 01 F6 [21:12:32]Write i2c OK [21:12:32]MH_I2C_Read... [21:12:32]Read from MH i2c: D1 [21:12:32]MH_I2C_Read... [21:12:32]Read from MH i2c: D1 01 00 [21:12:32]MH_I2C_Read... [21:12:32]Read from MH i2c: D1 01 00 D5 4F 00 F5 [21:12:32]Write to MH i2c: 01 00 00 D6 4F 25 [21:12:32]Write i2c OK [21:12:32]MH_I2C_Read... [21:12:33]*** Cut start [21:12:33]*** Purtial cut [21:12:33]*** Stage 1: CUTSNS_PIN = 1 [21:12:33]OFD Sender: No OFD packet to send [21:12:35]Read from MH i2c: 01 [21:12:35]MH_I2C_Read... [21:12:35]*** Stop cut motor [21:12:35]*** Cut end [21:12:35]Read from MH i2c: 01 07 00 [21:12:35]MH_I2C_Read... [21:12:35]Read from MH i2c: 01 07 00 D6 4F 00 00 00 00 00 FF 0F 3A [21:12:35]process_action print_text done [21:12:35]requested_data is exist [21:12:35]produce_requested_data [21:12:35]requested_item fm.sn is exist - process it [21:12:35]wFMCommunicate request_size=4 [21:12:35]MH_SAM_APDU [21:12:35]CAPDU: 80 11 00 00 [21:12:35]Write to MH i2c: E2 08 00 D7 4F 80 11 00 00 00 00 00 00 A0 [21:12:35]Write i2c OK [21:12:35]MH_I2C_Read... [21:12:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:12:35]Read from MH i2c: E2 [21:12:35]MH_I2C_Read... [21:12:35]Read from MH i2c: E2 17 00 [21:12:35]MH_I2C_Read... [21:12:35]Read from MH i2c: E2 17 00 D7 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 FE [21:12:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [21:12:35]wFMCommunicate OK [21:12:35]requested_item fd.num is exist - process it [21:12:35]SAM_PROTO_GetFieldsCounters [21:12:35]wFMCommunicate request_size=4 [21:12:35]MH_SAM_APDU [21:12:35]CAPDU: 80 13 00 00 [21:12:35]Write to MH i2c: E2 08 00 D8 4F 80 13 00 00 00 00 00 00 A3 [21:12:35]Write i2c OK [21:12:35]MH_I2C_Read... [21:12:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:12:35]Read from MH i2c: E2 [21:12:35]MH_I2C_Read... [21:12:35]Read from MH i2c: E2 62 00 [21:12:35]MH_I2C_Read... [21:12:35]Read from MH i2c: E2 62 00 D8 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 E0 E1 01 00 0E 04 04 00 43 01 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 5F [21:12: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 E0 E1 01 00 0E 04 04 00 43 01 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 [21:12:35]wFMCommunicate OK [21:12:35]SAM_PROTO_GetFieldsCounters done [21:12:35]requested_item shift.num is exist - process it [21:12:35]requested_item shift.opened is exist - process it [21:12:35]req_shift_opened [21:12:35]FM_GetShiftState [21:12:35]SAM_PROTO_GetShiftState [21:12:35]wFMCommunicate request_size=4 [21:12:35]MH_SAM_APDU [21:12:35]CAPDU: 80 13 01 00 [21:12:35]Write to MH i2c: E2 08 00 D9 4F 80 13 01 00 00 00 00 00 A5 [21:12:35]Write i2c OK [21:12:35]MH_I2C_Read... [21:12:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:12:35]Read from MH i2c: E2 [21:12:35]MH_I2C_Read... [21:12:35]Read from MH i2c: E2 0E 00 [21:12:35]MH_I2C_Read... [21:12:35]Read from MH i2c: E2 0E 00 D9 4F 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 67 [21:12:35]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [21:12:35]wFMCommunicate OK [21:12:35]SAM_PROTO_GetShiftState done [21:12:35]FM_GetShiftState done [21:12:35]req_shift_opened done [21:12:35]requested_item shift.open_date is exist - process it [21:12:35]req_shift_open_date [21:12:35]req_shift_open_date done [21:12:35]produce_requested_data done [21:12:35]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123360,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [21:12:35]process_action_free print_text [21:12:35]json_value_free [21:12:35]json_value_free done [21:12:35]process_json_proto returns [21:12:35]Send response to host [21:12:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123360,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [21:12:35]free response buf [21:12:35]execute_script done [21:12:35]execute_script returns [21:12:35]free content buf [21:12:35]Sock 7.Close socket [21:12:35]Sock 7.Thread stoped [21:12:37]accept exits with 9 [21:12:37]New connection [21:12:37]New thread 3067395428 created [21:12:37]Thread 3067252068 joined [21:12:37]Waiting for new connection... [21:12:37] Sock 9.Parse request [21:12:37]Sock 9.Check first char [21:12:37]Sock 9.First char is OK [21:12:37]request: POST /json_proto HTTP/1.0 [21:12:37]Method: POST [21:12:37]URL: /json_proto [21:12:37]Method is POST - this is cgi request [21:12:37]url: /json_proto [21:12:37]query_string will be loaded in cgi processing [21:12:37]execute_cgi json_proto POST (null) [21:12:37]execute_cgi path=json_proto method=POST [21:12:37]POST find Content-Length [21:12:37]Host: 172.17.48.197:8080 [21:12:37]Content-Length: 1210 [21:12:37]Content-Type: application/json [21:12:37] [21:12:37]POST finish read [21:12:37]Found Content-Length = 1210 [21:12:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106338\u000A03.03.2024 21:08\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 16.160 x 61.90\u000A\u0418\u0422\u041E\u0413: 1000.30\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A01137\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:12:37]execute_script... [21:12:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106338\u000A03.03.2024 21:08\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 16.160 x 61.90\u000A\u0418\u0422\u041E\u0413: 1000.30\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A01137\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:12:37]POST & json_proto [21:12:37]process_json_proto [21:12:37]json parsed OK: [21:12:37]protocol is kg_v1.0 [21:12:37]action value=print_text [21:12:37]process_action print_text [21:12:37]cmd_print_text [21:12:37]ExternCall_PrintAddStr [21:12:37]wPrintStart [21:12:37]Write to MH i2c: 01 00 00 DA 4F 29 [21:12:37]Write i2c OK [21:12:37]MH_I2C_Read... [21:12:37]Read from MH i2c: 01 [21:12:37]MH_I2C_Read... [21:12:37]Read from MH i2c: 01 07 00 [21:12:37]MH_I2C_Read... [21:12:37]Read from MH i2c: 01 07 00 DA 4F 00 00 00 00 00 FF 0F 3E [21:12:37]RasterBufferAndPrint [21:12:37]line *****ТОВАРНЫЙ ЧЕК***** [21:12:37]line АЗС 25 [21:12:37]line Партнер нефть [21:12:37]line 02508201610067 [21:12:37]line Кассир : Турдумбек у. К. [21:12:37]line Счет N : (1)1106338 [21:12:37]line 03.03.2024 21:08 [21:12:37]line ПРОДАЖА [21:12:37]line ТРК (МРК, ГНК): 32 [21:12:37]line Вид ГСМ : 2710124130 [21:12:37]line Аи-92-К-5 [21:12:37]line 16.160 x 61.90 [21:12:37]line ИТОГ: 1000.30 [21:12:37]line Тип оплаты: Талоны: Топливная Карта [21:12:37]line 01137 [21:12:37]line ______________________ [21:12:37]line (подпись) [21:12:37]written 0, free lines is 4095 [21:12:37]Write to MH i2c: 01 00 00 EF 4F 3E [21:12:37]Write i2c OK [21:12:37]MH_I2C_Read... [21:12:37]Read from MH i2c: 01 [21:12:37]MH_I2C_Read... [21:12:37]Read from MH i2c: 01 07 00 [21:12:37]MH_I2C_Read... [21:12:37]Read from MH i2c: 01 07 00 EF 4F 00 00 00 00 00 F6 0D 48 [21:12:37]RasterBufferAndPrint [21:12:37]line [21:12:37]line [21:12:37]line [21:12:37]line [21:12:37]line [21:12:37]written 0, free lines is 3576 [21:12:37]MH_Cut [21:12:37]Write to MH i2c: D1 01 00 F6 4F 01 17 [21:12:37]Write i2c OK [21:12:37]MH_I2C_Read... [21:12:37]Read from MH i2c: D1 [21:12:37]MH_I2C_Read... [21:12:37]Read from MH i2c: D1 01 00 [21:12:37]MH_I2C_Read... [21:12:37]Read from MH i2c: D1 01 00 F6 4F 00 16 [21:12:37]Write to MH i2c: 01 00 00 F7 4F 46 [21:12:37]Write i2c OK [21:12:37]MH_I2C_Read... [21:12:38]*** Cut start [21:12:38]*** Purtial cut [21:12:38]*** Stage 1: CUTSNS_PIN = 1 [21:12:38]OFD Sender: No OFD packet to send [21:12:40]Read from MH i2c: 01 [21:12:40]MH_I2C_Read... [21:12:40]*** Stop cut motor [21:12:40]*** Cut end [21:12:40]Read from MH i2c: 01 07 00 [21:12:40]MH_I2C_Read... [21:12:40]Read from MH i2c: 01 07 00 F7 4F 00 00 00 00 00 FF 0F 5B [21:12:40]process_action print_text done [21:12:40]requested_data is exist [21:12:40]produce_requested_data [21:12:40]requested_item fm.sn is exist - process it [21:12:40]wFMCommunicate request_size=4 [21:12:40]MH_SAM_APDU [21:12:40]CAPDU: 80 11 00 00 [21:12:40]Write to MH i2c: E2 08 00 F8 4F 80 11 00 00 00 00 00 00 C1 [21:12:40]Write i2c OK [21:12:40]MH_I2C_Read... [21:12:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:12:40]Read from MH i2c: E2 [21:12:40]MH_I2C_Read... [21:12:40]Read from MH i2c: E2 17 00 [21:12:40]MH_I2C_Read... [21:12:40]Read from MH i2c: E2 17 00 F8 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 1F [21:12:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [21:12:40]wFMCommunicate OK [21:12:40]requested_item fd.num is exist - process it [21:12:40]SAM_PROTO_GetFieldsCounters [21:12:40]wFMCommunicate request_size=4 [21:12:40]MH_SAM_APDU [21:12:40]CAPDU: 80 13 00 00 [21:12:40]Write to MH i2c: E2 08 00 F9 4F 80 13 00 00 00 00 00 00 C4 [21:12:40]Write i2c OK [21:12:40]MH_I2C_Read... [21:12:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:12:40]Read from MH i2c: E2 [21:12:40]MH_I2C_Read... [21:12:40]Read from MH i2c: E2 62 00 [21:12:40]MH_I2C_Read... [21:12:40]Read from MH i2c: E2 62 00 F9 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 E0 E1 01 00 0E 04 04 00 43 01 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 80 [21:12:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 E0 E1 01 00 0E 04 04 00 43 01 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 [21:12:40]wFMCommunicate OK [21:12:40]SAM_PROTO_GetFieldsCounters done [21:12:40]requested_item shift.num is exist - process it [21:12:40]requested_item shift.opened is exist - process it [21:12:40]req_shift_opened [21:12:40]FM_GetShiftState [21:12:40]SAM_PROTO_GetShiftState [21:12:40]wFMCommunicate request_size=4 [21:12:40]MH_SAM_APDU [21:12:40]CAPDU: 80 13 01 00 [21:12:40]Write to MH i2c: E2 08 00 FA 4F 80 13 01 00 00 00 00 00 C6 [21:12:40]Write i2c OK [21:12:40]MH_I2C_Read... [21:12:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:12:40]Read from MH i2c: E2 [21:12:40]MH_I2C_Read... [21:12:40]Read from MH i2c: E2 0E 00 [21:12:40]MH_I2C_Read... [21:12:40]Read from MH i2c: E2 0E 00 FA 4F 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 88 [21:12:40]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [21:12:40]wFMCommunicate OK [21:12:40]SAM_PROTO_GetShiftState done [21:12:40]FM_GetShiftState done [21:12:40]req_shift_opened done [21:12:40]requested_item shift.open_date is exist - process it [21:12:40]req_shift_open_date [21:12:40]req_shift_open_date done [21:12:40]produce_requested_data done [21:12:40]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123360,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [21:12:40]process_action_free print_text [21:12:40]json_value_free [21:12:40]json_value_free done [21:12:40]process_json_proto returns [21:12:40]Send response to host [21:12:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123360,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [21:12:40]free response buf [21:12:40]execute_script done [21:12:40]execute_script returns [21:12:40]free content buf [21:12:40]Sock 9.Close socket [21:12:40]Sock 9.Thread stoped [21:12:43]OFD Sender: No OFD packet to send [21:12:48]OFD Sender: No OFD packet to send [21:12:53]OFD Sender: No OFD packet to send [21:12:58]OFD Sender: No OFD packet to send [21:13:03]OFD Sender: No OFD packet to send [21:13:08]OFD Sender: No OFD packet to send [21:13:13]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:34]OFD Sender: No OFD packet to send [21:14:39]OFD Sender: No OFD packet to send [21:14:44]OFD Sender: No OFD packet to send [21:14:49]OFD Sender: No OFD packet to send [21:14:54]OFD Sender: No OFD packet to send [21:14:59]OFD Sender: No OFD packet to send [21:15:04]OFD Sender: No OFD packet to send [21:15:09]OFD Sender: No OFD packet to send [21:15:14]OFD Sender: No OFD packet to send [21:15:19]OFD Sender: No OFD packet to send [21:15:24]OFD Sender: No OFD packet to send [21:15:29]OFD Sender: No OFD packet to send [21:15:34]OFD Sender: No OFD packet to send [21:15:39]OFD Sender: No OFD packet to send [21:15:44]OFD Sender: No OFD packet to send [21:15:49]OFD Sender: No OFD packet to send [21:15:54]OFD Sender: No OFD packet to send [21:15:59]OFD Sender: No OFD packet to send [21:16:04]OFD Sender: No OFD packet to send [21:16:09]OFD Sender: No OFD packet to send [21:16:14]OFD Sender: No OFD packet to send [21:16:19]OFD Sender: No OFD packet to send [21:16:24]OFD Sender: No OFD packet to send [21:16:29]OFD Sender: No OFD packet to send [21:16:34]OFD Sender: No OFD packet to send [21:16:39]OFD Sender: No OFD packet to send [21:16:44]OFD Sender: No OFD packet to send [21:16:49]OFD Sender: No OFD packet to send [21:16:54]OFD Sender: No OFD packet to send [21:16:59]OFD Sender: No OFD packet to send [21:17:04]OFD Sender: No OFD packet to send [21:17:09]OFD Sender: No OFD packet to send [21:17:14]OFD Sender: No OFD packet to send [21:17:19]OFD Sender: No OFD packet to send [21:17:24]OFD Sender: No OFD packet to send [21:17:29]OFD Sender: No OFD packet to send [21:17:34]OFD Sender: No OFD packet to send [21:17:39]OFD Sender: No OFD packet to send [21:17:44]OFD Sender: No OFD packet to send [21:17:49]OFD Sender: No OFD packet to send [21:17:54]OFD Sender: No OFD packet to send [21:17:59]OFD Sender: No OFD packet to send [21:18:04]OFD Sender: No OFD packet to send [21:18:09]OFD Sender: No OFD packet to send [21:18:14]OFD Sender: No OFD packet to send [21:18:19]OFD Sender: No OFD packet to send [21:18:24]OFD Sender: No OFD packet to send [21:18:26]accept exits with 7 [21:18:26]New connection [21:18:26]New thread 3067252068 created [21:18:26]Thread 3067395428 joined [21:18:26]Waiting for new connection... [21:18:26] Sock 7.Parse request [21:18:26]Sock 7.Check first char [21:18:26]Sock 7.First char is OK [21:18:26]request: POST /json_proto HTTP/1.0 [21:18:26]Method: POST [21:18:26]URL: /json_proto [21:18:26]Method is POST - this is cgi request [21:18:26]url: /json_proto [21:18:26]query_string will be loaded in cgi processing [21:18:26]execute_cgi json_proto POST (null) [21:18:26]execute_cgi path=json_proto method=POST [21:18:26]POST find Content-Length [21:18:26]Host: 172.17.48.197:8080 [21:18:26]Content-Length: 1213 [21:18:26]Content-Type: application/json [21:18:26] [21:18:26]POST finish read [21:18:26]Found Content-Length = 1213 [21:18:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106339\u000A03.03.2024 21:14\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 8.470 x 70.90\u000A\u0418\u0422\u041E\u0413: 600.52\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A00350\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:18:26]execute_script... [21:18:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106339\u000A03.03.2024 21:14\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 8.470 x 70.90\u000A\u0418\u0422\u041E\u0413: 600.52\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A00350\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:18:26]POST & json_proto [21:18:26]process_json_proto [21:18:26]json parsed OK: [21:18:26]protocol is kg_v1.0 [21:18:26]action value=print_text [21:18:26]process_action print_text [21:18:26]cmd_print_text [21:18:26]ExternCall_PrintAddStr [21:18:26]wPrintStart [21:18:26]Write to MH i2c: 01 00 00 FB 4F 4A [21:18:26]Write i2c OK [21:18:26]MH_I2C_Read... [21:18:26]Read from MH i2c: 01 [21:18:26]MH_I2C_Read... [21:18:26]Read from MH i2c: 01 07 00 [21:18:26]MH_I2C_Read... [21:18:26]Read from MH i2c: 01 07 00 FB 4F 00 00 00 00 00 FF 0F 5F [21:18:26]RasterBufferAndPrint [21:18:26]line *****ТОВАРНЫЙ ЧЕК***** [21:18:26]line АЗС 25 [21:18:26]line Партнер нефть [21:18:26]line 02508201610067 [21:18:26]line Кассир : Турдумбек у. К. [21:18:26]line Счет N : (1)1106339 [21:18:26]line 03.03.2024 21:14 [21:18:26]line ПРОДАЖА [21:18:26]line ТРК (МРК, ГНК): 51 [21:18:26]line Вид ГСМ : 2710194210 [21:18:26]line ДТ(л)-К-5 [21:18:26]line 8.470 x 70.90 [21:18:26]line ИТОГ: 600.52 [21:18:26]line Тип оплаты: Талоны: Топливная Карта [21:18:26]line 00350 [21:18:26]line ______________________ [21:18:26]line (подпись) [21:18:26]written 0, free lines is 4095 [21:18:27]Write to MH i2c: 01 00 00 10 50 60 [21:18:27]Write i2c OK [21:18:27]MH_I2C_Read... [21:18:27]Read from MH i2c: 01 [21:18:27]MH_I2C_Read... [21:18:27]Read from MH i2c: 01 07 00 [21:18:27]MH_I2C_Read... [21:18:27]Read from MH i2c: 01 07 00 10 50 00 00 00 00 00 F4 0D 68 [21:18:27]RasterBufferAndPrint [21:18:27]line [21:18:27]line [21:18:27]line [21:18:27]line [21:18:27]line [21:18:27]written 0, free lines is 3574 [21:18:27]MH_Cut [21:18:27]Write to MH i2c: D1 01 00 17 50 01 39 [21:18:27]Write i2c OK [21:18:27]MH_I2C_Read... [21:18:27]Read from MH i2c: D1 [21:18:27]MH_I2C_Read... [21:18:27]Read from MH i2c: D1 01 00 [21:18:27]MH_I2C_Read... [21:18:27]Read from MH i2c: D1 01 00 17 50 00 38 [21:18:27]Write to MH i2c: 01 00 00 18 50 68 [21:18:27]Write i2c OK [21:18:27]MH_I2C_Read... [21:18:27]*** Cut start [21:18:27]*** Purtial cut [21:18:27]*** Stage 1: CUTSNS_PIN = 1 [21:18:29]OFD Sender: No OFD packet to send [21:18:29]Read from MH i2c: 01 [21:18:29]MH_I2C_Read... [21:18:29]Read from MH i2c: 01 07 00 [21:18:29]MH_I2C_Read... [21:18:29]*** Stop cut motor [21:18:29]*** Cut end [21:18:29]Read from MH i2c: 01 07 00 18 50 00 00 00 00 00 FF 0F 7D [21:18:29]process_action print_text done [21:18:29]requested_data is exist [21:18:29]produce_requested_data [21:18:29]requested_item fm.sn is exist - process it [21:18:29]wFMCommunicate request_size=4 [21:18:29]MH_SAM_APDU [21:18:29]CAPDU: 80 11 00 00 [21:18:29]Write to MH i2c: E2 08 00 19 50 80 11 00 00 00 00 00 00 E3 [21:18:29]Write i2c OK [21:18:29]MH_I2C_Read... [21:18:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:18:29]Read from MH i2c: E2 [21:18:29]MH_I2C_Read... [21:18:29]Read from MH i2c: E2 17 00 [21:18:29]MH_I2C_Read... [21:18:29]Read from MH i2c: E2 17 00 19 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 41 [21:18:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [21:18:29]wFMCommunicate OK [21:18:29]requested_item fd.num is exist - process it [21:18:29]SAM_PROTO_GetFieldsCounters [21:18:29]wFMCommunicate request_size=4 [21:18:29]MH_SAM_APDU [21:18:29]CAPDU: 80 13 00 00 [21:18:29]Write to MH i2c: E2 08 00 1A 50 80 13 00 00 00 00 00 00 E6 [21:18:29]Write i2c OK [21:18:29]MH_I2C_Read... [21:18:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:18:29]Read from MH i2c: E2 [21:18:29]MH_I2C_Read... [21:18:29]Read from MH i2c: E2 62 00 [21:18:29]MH_I2C_Read... [21:18:29]Read from MH i2c: E2 62 00 1A 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 E0 E1 01 00 0E 04 04 00 43 01 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 A2 [21: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 E0 E1 01 00 0E 04 04 00 43 01 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 [21:18:29]wFMCommunicate OK [21:18:29]SAM_PROTO_GetFieldsCounters done [21:18:29]requested_item shift.num is exist - process it [21:18:29]requested_item shift.opened is exist - process it [21:18:29]req_shift_opened [21:18:29]FM_GetShiftState [21:18:29]SAM_PROTO_GetShiftState [21:18:29]wFMCommunicate request_size=4 [21:18:29]MH_SAM_APDU [21:18:29]CAPDU: 80 13 01 00 [21:18:29]Write to MH i2c: E2 08 00 1B 50 80 13 01 00 00 00 00 00 E8 [21:18:29]Write i2c OK [21:18:29]MH_I2C_Read... [21:18:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:18:29]Read from MH i2c: E2 [21:18:29]MH_I2C_Read... [21:18:29]Read from MH i2c: E2 0E 00 [21:18:29]MH_I2C_Read... [21:18:29]Read from MH i2c: E2 0E 00 1B 50 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 AA [21:18:29]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [21:18:29]wFMCommunicate OK [21:18:29]SAM_PROTO_GetShiftState done [21:18:29]FM_GetShiftState done [21:18:29]req_shift_opened done [21:18:29]requested_item shift.open_date is exist - process it [21:18:29]req_shift_open_date [21:18:29]req_shift_open_date done [21:18:29]produce_requested_data done [21:18:29]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123360,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [21:18:29]process_action_free print_text [21:18:29]json_value_free [21:18:29]json_value_free done [21:18:29]process_json_proto returns [21:18:29]Send response to host [21:18:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123360,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [21:18:29]free response buf [21:18:29]execute_script done [21:18:29]execute_script returns [21:18:29]free content buf [21:18:29]Sock 7.Close socket [21:18:29]Sock 7.Thread stoped [21:18:34]OFD Sender: No OFD packet to send [21:18:39]OFD Sender: No OFD packet to send [21:18:44]OFD Sender: No OFD packet to send [21:18:49]OFD Sender: No OFD packet to send [21:18:54]OFD Sender: No OFD packet to send [21:18:59]OFD Sender: No OFD packet to send [21:19:04]OFD Sender: No OFD packet to send [21:19:08]accept exits with 9 [21:19:08]New connection [21:19:08]New thread 3067395428 created [21:19:08]Thread 3067252068 joined [21:19:08]Waiting for new connection... [21:19:08] Sock 9.Parse request [21:19:08]Sock 9.Check first char [21:19:08]Sock 9.First char is OK [21:19:08]request: POST /json_proto HTTP/1.0 [21:19:08]Method: POST [21:19:08]URL: /json_proto [21:19:08]Method is POST - this is cgi request [21:19:08]url: /json_proto [21:19:08]query_string will be loaded in cgi processing [21:19:08]execute_cgi json_proto POST (null) [21:19:08]execute_cgi path=json_proto method=POST [21:19:08]POST find Content-Length [21:19:08]Host: 172.17.48.197:8080 [21:19:08]Content-Length: 1221 [21:19:08]Content-Type: application/json [21:19:08] [21:19:08]POST finish read [21:19:08]Found Content-Length = 1221 [21:19:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106340\u000A03.03.2024 21:15\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 5.650 x 70.90\u000A\u0418\u0422\u041E\u0413: 400.59\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3431880\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:19:08]execute_script... [21:19:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106340\u000A03.03.2024 21:15\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 5.650 x 70.90\u000A\u0418\u0422\u041E\u0413: 400.59\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3431880\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:19:08]POST & json_proto [21:19:08]process_json_proto [21:19:08]json parsed OK: [21:19:08]protocol is kg_v1.0 [21:19:08]action value=print_text [21:19:08]process_action print_text [21:19:08]cmd_print_text [21:19:08]ExternCall_PrintAddStr [21:19:08]wPrintStart [21:19:08]Write to MH i2c: 01 00 00 1C 50 6C [21:19:08]Write i2c OK [21:19:08]MH_I2C_Read... [21:19:08]Read from MH i2c: 01 [21:19:08]MH_I2C_Read... [21:19:08]Read from MH i2c: 01 07 00 [21:19:08]MH_I2C_Read... [21:19:08]Read from MH i2c: 01 07 00 1C 50 00 00 00 00 00 FF 0F 81 [21:19:08]RasterBufferAndPrint [21:19:08]line *****ТОВАРНЫЙ ЧЕК***** [21:19:08]line АЗС 25 [21:19:08]line Партнер нефть [21:19:08]line 02508201610067 [21:19:08]line Кассир : Турдумбек у. К. [21:19:08]line Счет N : (1)1106340 [21:19:08]line 03.03.2024 21:15 [21:19:08]line ПРОДАЖА [21:19:08]line ТРК (МРК, ГНК): 51 [21:19:08]line Вид ГСМ : 2710194210 [21:19:08]line ДТ(л)-К-5 [21:19:08]line 5.650 x 70.90 [21:19:08]line ИТОГ: 400.59 [21:19:08]line Тип оплаты: Талоны: Топливные Талоны [21:19:08]line 3431880 [21:19:08]line ______________________ [21:19:08]line (подпись) [21:19:08]written 0, free lines is 4095 [21:19:08]Write to MH i2c: 01 00 00 31 50 81 [21:19:08]Write i2c OK [21:19:08]MH_I2C_Read... [21:19:08]Read from MH i2c: 01 [21:19:08]MH_I2C_Read... [21:19:08]Read from MH i2c: 01 07 00 [21:19:08]MH_I2C_Read... [21:19:08]Read from MH i2c: 01 07 00 31 50 00 00 00 00 00 F4 0D 89 [21:19:08]RasterBufferAndPrint [21:19:08]line [21:19:08]line [21:19:08]line [21:19:08]line [21:19:08]line [21:19:08]written 0, free lines is 3574 [21:19:08]MH_Cut [21:19:08]Write to MH i2c: D1 01 00 38 50 01 5A [21:19:08]Write i2c OK [21:19:08]MH_I2C_Read... [21:19:08]Read from MH i2c: D1 [21:19:08]MH_I2C_Read... [21:19:08]Read from MH i2c: D1 01 00 [21:19:08]MH_I2C_Read... [21:19:08]Read from MH i2c: D1 01 00 38 50 00 59 [21:19:08]Write to MH i2c: 01 00 00 39 50 89 [21:19:08]Write i2c OK [21:19:08]MH_I2C_Read... [21:19:09]*** Cut start [21:19:09]*** Purtial cut [21:19:09]*** Stage 1: CUTSNS_PIN = 1 [21:19:09]OFD Sender: No OFD packet to send [21:19:11]Read from MH i2c: 01 [21:19:11]MH_I2C_Read... [21:19:11]*** Stop cut motor [21:19:11]*** Cut end [21:19:11]Read from MH i2c: 01 07 00 [21:19:11]MH_I2C_Read... [21:19:11]Read from MH i2c: 01 07 00 39 50 00 00 00 00 00 FF 0F 9E [21:19:11]process_action print_text done [21:19:11]requested_data is exist [21:19:11]produce_requested_data [21:19:11]requested_item fm.sn is exist - process it [21:19:11]wFMCommunicate request_size=4 [21:19:11]MH_SAM_APDU [21:19:11]CAPDU: 80 11 00 00 [21:19:11]Write to MH i2c: E2 08 00 3A 50 80 11 00 00 00 00 00 00 04 [21:19:11]Write i2c OK [21:19:11]MH_I2C_Read... [21:19:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:19:11]Read from MH i2c: E2 [21:19:11]MH_I2C_Read... [21:19:11]Read from MH i2c: E2 17 00 [21:19:11]MH_I2C_Read... [21:19:11]Read from MH i2c: E2 17 00 3A 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 62 [21:19:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [21:19:11]wFMCommunicate OK [21:19:11]requested_item fd.num is exist - process it [21:19:11]SAM_PROTO_GetFieldsCounters [21:19:11]wFMCommunicate request_size=4 [21:19:11]MH_SAM_APDU [21:19:11]CAPDU: 80 13 00 00 [21:19:11]Write to MH i2c: E2 08 00 3B 50 80 13 00 00 00 00 00 00 07 [21:19:11]Write i2c OK [21:19:11]MH_I2C_Read... [21:19:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:19:11]Read from MH i2c: E2 [21:19:11]MH_I2C_Read... [21:19:11]Read from MH i2c: E2 62 00 [21:19:11]MH_I2C_Read... [21:19:11]Read from MH i2c: E2 62 00 3B 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 E0 E1 01 00 0E 04 04 00 43 01 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 C3 [21:19: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 E0 E1 01 00 0E 04 04 00 43 01 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 [21:19:11]wFMCommunicate OK [21:19:11]SAM_PROTO_GetFieldsCounters done [21:19:11]requested_item shift.num is exist - process it [21:19:11]requested_item shift.opened is exist - process it [21:19:11]req_shift_opened [21:19:11]FM_GetShiftState [21:19:11]SAM_PROTO_GetShiftState [21:19:11]wFMCommunicate request_size=4 [21:19:11]MH_SAM_APDU [21:19:11]CAPDU: 80 13 01 00 [21:19:11]Write to MH i2c: E2 08 00 3C 50 80 13 01 00 00 00 00 00 09 [21:19:11]Write i2c OK [21:19:11]MH_I2C_Read... [21:19:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:19:11]Read from MH i2c: E2 [21:19:11]MH_I2C_Read... [21:19:11]Read from MH i2c: E2 0E 00 [21:19:11]MH_I2C_Read... [21:19:11]Read from MH i2c: E2 0E 00 3C 50 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 CB [21:19:11]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [21:19:11]wFMCommunicate OK [21:19:11]SAM_PROTO_GetShiftState done [21:19:11]FM_GetShiftState done [21:19:11]req_shift_opened done [21:19:11]requested_item shift.open_date is exist - process it [21:19:11]req_shift_open_date [21:19:11]req_shift_open_date done [21:19:11]produce_requested_data done [21:19:11]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123360,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [21:19:11]process_action_free print_text [21:19:11]json_value_free [21:19:11]json_value_free done [21:19:11]process_json_proto returns [21:19:11]Send response to host [21:19:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123360,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [21:19:11]free response buf [21:19:11]execute_script done [21:19:11]execute_script returns [21:19:11]free content buf [21:19:11]Sock 9.Close socket [21:19:11]Sock 9.Thread stoped [21:19:14]OFD Sender: No OFD packet to send [21:19:19]OFD Sender: No OFD packet to send [21:19:24]OFD Sender: No OFD packet to send [21:19:29]OFD Sender: No OFD packet to send [21:19:34]OFD Sender: No OFD packet to send [21:19:39]OFD Sender: No OFD packet to send [21:19:44]OFD Sender: No OFD packet to send [21:19:49]OFD Sender: No OFD packet to send [21:19:54]OFD Sender: No OFD packet to send [21:19:59]OFD Sender: No OFD packet to send [21:20:04]OFD Sender: No OFD packet to send [21:20:09]OFD Sender: No OFD packet to send [21:20:14]OFD Sender: No OFD packet to send [21:20:19]OFD Sender: No OFD packet to send [21:20:24]OFD Sender: No OFD packet to send [21:20:29]OFD Sender: No OFD packet to send [21:20:34]OFD Sender: No OFD packet to send [21:20:39]OFD Sender: No OFD packet to send [21:20:44]OFD Sender: No OFD packet to send [21:20:49]OFD Sender: No OFD packet to send [21:20:54]OFD Sender: No OFD packet to send [21:20:59]OFD Sender: No OFD packet to send [21:21:04]OFD Sender: No OFD packet to send [21:21:09]OFD Sender: No OFD packet to send [21:21:14]OFD Sender: No OFD packet to send [21:21:19]OFD Sender: No OFD packet to send [21:21:24]OFD Sender: No OFD packet to send [21:21:29]OFD Sender: No OFD packet to send [21:21:34]OFD Sender: No OFD packet to send [21:21:39]OFD Sender: No OFD packet to send [21:21:44]OFD Sender: No OFD packet to send [21:21:49]OFD Sender: No OFD packet to send [21:21:54]OFD Sender: No OFD packet to send [21:21:59]OFD Sender: No OFD packet to send [21:22:04]OFD Sender: No OFD packet to send [21:22:09]OFD Sender: No OFD packet to send [21:22:14]OFD Sender: No OFD packet to send [21:22:19]OFD Sender: No OFD packet to send [21:22:24]OFD Sender: No OFD packet to send [21:22:29]OFD Sender: No OFD packet to send [21:22:34]OFD Sender: No OFD packet to send [21:22:39]OFD Sender: No OFD packet to send [21:22:44]OFD Sender: No OFD packet to send [21:22:49]OFD Sender: No OFD packet to send [21:22:54]OFD Sender: No OFD packet to send [21:22:59]OFD Sender: No OFD packet to send [21:23:04]OFD Sender: No OFD packet to send [21:23:09]OFD Sender: No OFD packet to send [21:23:14]OFD Sender: No OFD packet to send [21:23:19]OFD Sender: No OFD packet to send [21:23:24]OFD Sender: No OFD packet to send [21:23:29]accept exits with 7 [21:23:29]New connection [21:23:29]New thread 3067252068 created [21:23:29]Thread 3067395428 joined [21:23:29]Waiting for new connection... [21:23:29] Sock 7.Parse request [21:23:29]Sock 7.Check first char [21:23:29]Sock 7.First char is OK [21:23:29]request: POST /json_proto HTTP/1.0 [21:23:29]Method: POST [21:23:29]URL: /json_proto [21:23:29]Method is POST - this is cgi request [21:23:29]url: /json_proto [21:23:29]query_string will be loaded in cgi processing [21:23:29]execute_cgi json_proto POST (null) [21:23:29]execute_cgi path=json_proto method=POST [21:23:29]POST find Content-Length [21:23:29]Host: 172.17.48.197:8080 [21:23:29]Content-Length: 817 [21:23:29]Content-Type: application/json [21:23:29] [21:23:29]POST finish read [21:23:29]Found Content-Length = 817 [21:23:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106341", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:23:29]execute_script... [21:23: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)1106341", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:23:29]POST & json_proto [21:23:29]process_json_proto [21:23:29]json parsed OK: [21:23:29]protocol is kg_v1.0 [21:23:29]action value=close_receipt [21:23:29]process_action close_receipt [21:23:29]cmd_close_receipt [21:23:29]MH_GetDate [21:23:29]Write to MH i2c: F0 00 00 3D 50 7C [21:23:29]Write i2c OK [21:23:29]MH_I2C_Read... [21:23:29]Read from MH i2c: F0 [21:23:29]MH_I2C_Read... [21:23:29]Read from MH i2c: F0 09 00 [21:23:29]MH_I2C_Read... [21:23:29]Read from MH i2c: F0 09 00 3D 50 00 56 EA E4 65 6C AF E3 65 71 [21:23:29]GetLastDocTimeStamp 1709500286 [21:23:29]current date 1709501014 [21:23:29]FM_GetShiftState [21:23:29]SAM_PROTO_GetShiftState [21:23:29]wFMCommunicate request_size=4 [21:23:29]MH_SAM_APDU [21:23:29]CAPDU: 80 13 01 00 [21:23:29]Write to MH i2c: E2 08 00 3E 50 80 13 01 00 00 00 00 00 0B [21:23:29]Write i2c OK [21:23:29]MH_I2C_Read... [21:23:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:23:29]Read from MH i2c: E2 [21:23:29]MH_I2C_Read... [21:23:29]Read from MH i2c: E2 0E 00 [21:23:29]MH_I2C_Read... [21:23:29]Read from MH i2c: E2 0E 00 3E 50 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 CD [21:23:29]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [21:23:29]wFMCommunicate OK [21:23:29]SAM_PROTO_GetShiftState done [21:23:29]FM_GetShiftState done [21:23:29]opened in 1709425579 [21:23:29]opened+sec_in_day 1709511979 [21:23:29]quantity*price = 50015 [21:23:29]sum+1 = 50016 [21:23:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.15 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.15 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 218 03.03.2024 21:23 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874798 ФД: 123361 ФПД: 5726718312103 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T212334&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123361&fm=5726718312103&tin=02508201610067®Number=0000000000090573&sum=50015 [21:23:30]StoreToDocumentArchive [21:23:30]shift 323 fd 123361 [21:23:30]save to /storage/0323/doc_00123361 [21:23:30]save last doc name /storage/0323/doc_00123361 to /storage/kkm_last_doc_name [21:23:30]save OK [21:23:30]Clear old archive folders... [21:23:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:23:30]tlvbuf is 00DA2730 [21:23:30]SAM_PROTO_ClearQueue [21:23:30]wFMCommunicate request_size=4 [21:23:30]MH_SAM_APDU [21:23:30]CAPDU: 80 09 00 00 [21:23:30]Write to MH i2c: E2 08 00 4B 50 80 09 00 00 00 00 00 00 0D [21:23:30]Write i2c OK [21:23:30]MH_I2C_Read... [21:23:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:23:30]Read from MH i2c: E2 [21:23:30]MH_I2C_Read... [21:23:30]Read from MH i2c: E2 03 00 [21:23:30]MH_I2C_Read... [21:23:30]Read from MH i2c: E2 03 00 4B 50 00 90 00 0F [21:23:30]RAPDU: 90 00 [21:23:30]wFMCommunicate OK [21:23:30]SAM_PROTO_ClearQueue done [21:23:30]KKMCreateOFDPacket [21:23:30]OFDProtocolAddRootSTLVToBuf [21:23:30]FM_MakeSignedData [21:23:30]FM_MakeSignedData [21:23:30]SAM_PROTO_SignData [21:23:30]wFMCommunicate request_size=4 [21:23:30]MH_SAM_APDU [21:23:30]CAPDU: 80 0D 01 02 [21:23:30]Write to MH i2c: E2 08 00 4C 50 80 0D 01 02 00 00 00 00 15 [21:23:30]Write i2c OK [21:23:30]MH_I2C_Read... [21:23:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:23:30]Read from MH i2c: E2 [21:23:30]MH_I2C_Read... [21:23:30]Read from MH i2c: E2 03 00 [21:23:30]MH_I2C_Read... [21:23:30]Read from MH i2c: E2 03 00 4C 50 00 90 00 10 [21:23:30]RAPDU: 90 00 [21:23:30]wFMCommunicate OK [21:23:30]wFMCommunicate request_size=255 [21:23:30]MH_SAM_APDU [21:23:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 56 EA E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 E1 E1 01 00 35 04 06 00 05 [21:23:30]Write to MH i2c: E2 02 01 4D 50 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 56 EA E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 E1 E1 01 00 35 04 06 00 05 00 00 82 [21:23:30]Write i2c OK [21:23:30]MH_I2C_Read... [21:23:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:23:30]Read from MH i2c: E2 [21:23:30]MH_I2C_Read... [21:23:30]Read from MH i2c: E2 03 00 [21:23:30]MH_I2C_Read... [21:23:30]Read from MH i2c: E2 03 00 4D 50 00 90 00 11 [21:23:30]RAPDU: 90 00 [21:23:30]wFMCommunicate OK [21:23:30]wFMCommunicate request_size=10 [21:23:30]MH_SAM_APDU [21:23:30]CAPDU: 80 0D 02 02 05 35 5B 02 BE A7 [21:23:30]Write to MH i2c: E2 0D 00 4E 50 80 0D 02 02 05 00 35 5B 02 BE A7 00 00 19 [21:23:30]Write i2c OK [21:23:30]MH_I2C_Read... [21:23:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:23:30]Read from MH i2c: E2 [21:23:30]MH_I2C_Read... [21:23:30]Read from MH i2c: E2 03 00 [21:23:30]MH_I2C_Read... [21:23:30]Read from MH i2c: E2 03 00 4E 50 00 90 00 12 [21:23:30]RAPDU: 90 00 [21:23:30]wFMCommunicate OK [21:23:30]wFMCommunicate request_size=4 [21:23:30]MH_SAM_APDU [21:23:30]CAPDU: 80 0D 03 02 [21:23:30]Write to MH i2c: E2 08 00 4F 50 80 0D 03 02 00 00 00 00 1A [21:23:30]Write i2c OK [21:23:30]MH_I2C_Read... [21:23:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:23:30]Read from MH i2c: E2 [21:23:30]MH_I2C_Read... [21:23:30]Read from MH i2c: E2 0B 00 [21:23:30]MH_I2C_Read... [21:23:30]Read from MH i2c: E2 0B 00 4F 50 00 44 1B 32 F1 AE 67 B9 D5 90 00 40 [21:23:30]RAPDU: 44 1B 32 F1 AE 67 B9 D5 90 00 [21:23:30]wFMCommunicate OK [21:23:30]SAM_PROTO_SignData done [21:23:30]FM_MakeSignedData done [21:23:30]CreateOFDProtocolMessage [21:23:30]wFMCommunicate request_size=4 [21:23:30]MH_SAM_APDU [21:23:30]CAPDU: 80 11 00 00 [21:23:30]Write to MH i2c: E2 08 00 50 50 80 11 00 00 00 00 00 00 1A [21:23:30]Write i2c OK [21:23:30]MH_I2C_Read... [21:23:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:23:30]Read from MH i2c: E2 [21:23:30]MH_I2C_Read... [21:23:30]Read from MH i2c: E2 17 00 [21:23:30]MH_I2C_Read... [21:23:30]Read from MH i2c: E2 17 00 50 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 78 [21:23:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [21:23:30]wFMCommunicate OK [21:23:30]CreateOFDProtocolMessage done [21:23:30]OFDSenderStorePacket 123361 [21:23:30]StoreOFDPacket docnum=123361 [21:23:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 1A 93 07 01 85 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 56 EA E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 E1 E1 01 00 35 04 06 00 05 35 5B 02 BE A7 44 1B 32 F1 AE 67 B9 D5 [21:23:30]CheckFolder [21:23:30]dirname=/storage/ofd_packets [21:23:30]CheckFolder done [21:23:30]ProducePacketName [21:23:30]name=ofd_packets/00123361 [21:23:30]NVStorageSaveData ofd_packets/00123361 [21:23:30]File name is /storage/ofd_packets/00123361 [21:23:30]Write 301 bytes [21:23:30]NVStorageSaveData done [21:23:30]OFDSenderStorePacket done [21:23:30]KKMCreateOFDPacket done [21:23:30]NVStorageSaveData kkm_last_timestamp [21:23:30]File name is /storage/kkm_last_timestamp [21:23:30]Write 4 bytes [21:23:30]NVStorageSaveData done [21:23:30]ExternCall_PrintAddStr [21:23:30]wPrintStart [21:23:30]Write to MH i2c: 01 00 00 51 50 A1 [21:23:30]Write i2c OK [21:23:30]MH_I2C_Read... [21:23:30]Read from MH i2c: 01 [21:23:30]MH_I2C_Read... [21:23:30]Read from MH i2c: 01 07 00 [21:23:30]MH_I2C_Read... [21:23:30]Read from MH i2c: 01 07 00 51 50 00 00 00 00 00 FF 0F B6 [21:23:30]RasterBufferAndPrint [21:23:30]line Счет N : (1)1106341 [21:23:30]line ИНН: 02508201610067 [21:23:30]line Контрольно-Кассовый Чек [21:23:30]line ПРОДАЖА [21:23:30]line ТРК (МРК, ГНК) : 21 [21:23:30]line Товар: 2710124130 [21:23:30]line Аи-92-К-5 [21:23:30]line 8.080 * 61.90 [21:23:30]line = 500.15 [21:23:30]line НДС 12% НСП 1% [21:23:30]line > о реализуемом товаре [21:23:30]line ИТОГО: 500.15 [21:23:30]line НСП 1% : 4.43 [21:23:30]line НДС 12% : 53.11 [21:23:30]line Наличными: 0.00 [21:23:30]line Безнал.: 500.15 [21:23:30]line Место: АЗС № 25 "Партнер Нефть" [21:23:30]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [21:23:30]line СНО: Общий режим [21:23:30]line Чек 218 03.03.2024 21:23 [21:23:30]line Смена: 323 ФФД: 1.0 [21:23:30]line ЗНМ: 0300000019 [21:23:30]line РНМ: 0000000000090573 [21:23:30]line Версия ККМ: 001 [21:23:30]line Платежная система: Бакай Банк [21:23:30]line ФМ: 0000000000874798 [21:23:30]line ФД: 123361 [21:23:30]line ФПД: 5726718312103 [21:23:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T212334&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123361&fm=5726718312103&tin=02508201610067®Number=0000000000090573&sum=50015 [21:23:31]OFD Sender: Processing packet 123361 [packets to send 112, broken 111] [21:23:31]ProducePacketName [21:23:31]name=ofd_packets/00123361 [21:23:31]OFD Sender: To server: pG, [21:23:31]CommunicateWithHost lk.salyk.kg:30040 [21:23:31]ConnectInit lk.salyk.kg [21:23:31]written 0, free lines is 4095 [21:23:31]Connected sock=10 [21:23: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 37 39 38 0F 01 00 00 1A 93 07 01 85 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 56 EA E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 E1 E1 01 00 35 04 06 00 05 35 5B 02 BE A7 44 1B 32 F1 AE 67 B9 D5 [21:23:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 07 4D 47 00 48 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 37 39 38 10 04 04 00 E1 E1 01 00 F4 03 04 00 80 96 E4 65 B6 04 01 00 00 96 7E 1C 11 CF CE 89 06 [21:23:31]CommunicateWithHost err = 0 [21:23:31]CheckOFDResponse [21:23:31]1017 (14) - 77093643461234 [21:23:31]1041 (16) - 0000000000874798 [21:23:31]1040 (4) - 123361 [21:23:31]1012 (4) - 03.03.2024 15:25 [21:23:31]1206 (1) - 0 [21:23:31]OFD Sender: Remove packet 123361 [21:23:31]ProducePacketName [21:23:31]name=ofd_packets/00123361 [21:23:31]NVStorageDeleteData [21:23:31]Write to MH i2c: 01 00 00 7B 50 CB [21:23:31]Write i2c OK [21:23:31]MH_I2C_Read... [21:23:31]Read from MH i2c: 01 [21:23:31]MH_I2C_Read... [21:23:31]Read from MH i2c: 01 07 00 [21:23:31]MH_I2C_Read... [21:23:31]Read from MH i2c: 01 07 00 7B 50 00 00 00 00 00 05 0D E4 [21:23:31]RasterBufferAndPrint [21:23:31]line [21:23:31]line [21:23:31]line [21:23:31]line [21:23:31]line [21:23:31]written 0, free lines is 3339 [21:23:31]MH_Cut [21:23:31]Write to MH i2c: D1 01 00 82 50 01 A4 [21:23:31]Write i2c OK [21:23:31]MH_I2C_Read... [21:23:31]Read from MH i2c: D1 [21:23:31]MH_I2C_Read... [21:23:31]Read from MH i2c: D1 01 00 [21:23:31]MH_I2C_Read... [21:23:31]Read from MH i2c: D1 01 00 82 50 00 A3 [21:23:31]Write to MH i2c: 01 00 00 83 50 D3 [21:23:31]Write i2c OK [21:23:31]MH_I2C_Read... [21:23:31]OFD Sender: No OFD packet to send [21:23:32]*** Cut start [21:23:32]*** Purtial cut [21:23:32]*** Stage 1: CUTSNS_PIN = 1 [21:23:34]Read from MH i2c: 01 [21:23:34]MH_I2C_Read... [21:23:34]*** Stop cut motor [21:23:34]*** Cut end [21:23:34]Read from MH i2c: 01 07 00 [21:23:34]MH_I2C_Read... [21:23:34]Read from MH i2c: 01 07 00 83 50 00 00 00 00 00 FF 0F E8 [21:23:34]process_action close_receipt done [21:23:34]requested_data is exist [21:23:34]produce_requested_data [21:23:34]requested_item fm.sn is exist - process it [21:23:34]wFMCommunicate request_size=4 [21:23:34]MH_SAM_APDU [21:23:34]CAPDU: 80 11 00 00 [21:23:34]Write to MH i2c: E2 08 00 84 50 80 11 00 00 00 00 00 00 4E [21:23:34]Write i2c OK [21:23:34]MH_I2C_Read... [21:23:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:23:34]Read from MH i2c: E2 [21:23:34]MH_I2C_Read... [21:23:34]Read from MH i2c: E2 17 00 [21:23:34]MH_I2C_Read... [21:23:34]Read from MH i2c: E2 17 00 84 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 AC [21:23:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [21:23:34]wFMCommunicate OK [21:23:34]requested_item fd.num is exist - process it [21:23:34]SAM_PROTO_GetFieldsCounters [21:23:34]wFMCommunicate request_size=4 [21:23:34]MH_SAM_APDU [21:23:34]CAPDU: 80 13 00 00 [21:23:34]Write to MH i2c: E2 08 00 85 50 80 13 00 00 00 00 00 00 51 [21:23:34]Write i2c OK [21:23:34]MH_I2C_Read... [21:23:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:23:34]Read from MH i2c: E2 [21:23:34]MH_I2C_Read... [21:23:34]Read from MH i2c: E2 62 00 [21:23:34]MH_I2C_Read... [21:23:34]Read from MH i2c: E2 62 00 85 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 E1 E1 01 00 0E 04 04 00 43 01 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 11 [21:23: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 E1 E1 01 00 0E 04 04 00 43 01 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 [21:23:34]wFMCommunicate OK [21:23:34]SAM_PROTO_GetFieldsCounters done [21:23:34]requested_item shift.num is exist - process it [21:23:34]requested_item shift.opened is exist - process it [21:23:34]req_shift_opened [21:23:34]FM_GetShiftState [21:23:34]SAM_PROTO_GetShiftState [21:23:34]wFMCommunicate request_size=4 [21:23:34]MH_SAM_APDU [21:23:34]CAPDU: 80 13 01 00 [21:23:34]Write to MH i2c: E2 08 00 86 50 80 13 01 00 00 00 00 00 53 [21:23:34]Write i2c OK [21:23:34]MH_I2C_Read... [21:23:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:23:34]Read from MH i2c: E2 [21:23:34]MH_I2C_Read... [21:23:34]Read from MH i2c: E2 0E 00 [21:23:34]MH_I2C_Read... [21:23:34]Read from MH i2c: E2 0E 00 86 50 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 15 [21:23:34]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [21:23:34]wFMCommunicate OK [21:23:34]SAM_PROTO_GetShiftState done [21:23:34]FM_GetShiftState done [21:23:34]req_shift_opened done [21:23:34]requested_item shift.open_date is exist - process it [21:23:34]req_shift_open_date [21:23:34]req_shift_open_date done [21:23:34]produce_requested_data done [21:23:34]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123361,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [21:23:34]process_action_free close_receipt [21:23:34]json_value_free [21:23:34]json_value_free done [21:23:34]process_json_proto returns [21:23:34]Send response to host [21:23:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123361,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [21:23:34]free response buf [21:23:34]execute_script done [21:23:34]execute_script returns [21:23:34]free content buf [21:23:34]Sock 7.Close socket [21:23:34]Sock 7.Thread stoped [21:23:36]OFD Sender: No OFD packet to send [21:23:41]OFD Sender: No OFD packet to send [21:23:46]OFD Sender: No OFD packet to send [21:23:51]OFD Sender: No OFD packet to send [21:23:56]OFD Sender: No OFD packet to send [21:24:01]OFD Sender: No OFD packet to send [21:24:06]OFD Sender: No OFD packet to send [21:24:11]OFD Sender: No OFD packet to send [21:24:16]OFD Sender: No OFD packet to send [21:24:21]OFD Sender: No OFD packet to send [21:24:26]OFD Sender: No OFD packet to send [21:24:31]OFD Sender: No OFD packet to send [21:24:36]OFD Sender: No OFD packet to send [21:24:41]OFD Sender: No OFD packet to send [21:24:46]OFD Sender: No OFD packet to send [21:24:48]accept exits with 9 [21:24:48]New connection [21:24:48]New thread 3067395428 created [21:24:48]Thread 3067252068 joined [21:24:48]Waiting for new connection... [21:24:48] Sock 9.Parse request [21:24:48]Sock 9.Check first char [21:24:48]Sock 9.First char is OK [21:24:48]request: POST /json_proto HTTP/1.0 [21:24:48]Method: POST [21:24:48]URL: /json_proto [21:24:48]Method is POST - this is cgi request [21:24:48]url: /json_proto [21:24:48]query_string will be loaded in cgi processing [21:24:48]execute_cgi json_proto POST (null) [21:24:48]execute_cgi path=json_proto method=POST [21:24:48]POST find Content-Length [21:24:48]Host: 172.17.48.197:8080 [21:24:48]Content-Length: 1218 [21:24:48]Content-Type: application/json [21:24:48] [21:24:48]POST finish read [21:24:48]Found Content-Length = 1218 [21:24:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106342\u000A03.03.2024 21:21\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 52\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 16.160 x 61.90\u000A\u0418\u0422\u041E\u0413: 1000.30\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3860626\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:24:48]execute_script... [21:24:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106342\u000A03.03.2024 21:21\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 52\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 16.160 x 61.90\u000A\u0418\u0422\u041E\u0413: 1000.30\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3860626\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:24:48]POST & json_proto [21:24:48]process_json_proto [21:24:48]json parsed OK: [21:24:48]protocol is kg_v1.0 [21:24:48]action value=print_text [21:24:48]process_action print_text [21:24:48]cmd_print_text [21:24:48]ExternCall_PrintAddStr [21:24:48]wPrintStart [21:24:48]Write to MH i2c: 01 00 00 87 50 D7 [21:24:48]Write i2c OK [21:24:48]MH_I2C_Read... [21:24:48]Read from MH i2c: 01 [21:24:48]MH_I2C_Read... [21:24:48]Read from MH i2c: 01 07 00 [21:24:48]MH_I2C_Read... [21:24:48]Read from MH i2c: 01 07 00 87 50 00 00 00 00 00 FF 0F EC [21:24:48]RasterBufferAndPrint [21:24:48]line *****ТОВАРНЫЙ ЧЕК***** [21:24:48]line АЗС 25 [21:24:48]line Партнер нефть [21:24:48]line 02508201610067 [21:24:48]line Кассир : Турдумбек у. К. [21:24:48]line Счет N : (1)1106342 [21:24:48]line 03.03.2024 21:21 [21:24:48]line ПРОДАЖА [21:24:48]line ТРК (МРК, ГНК): 52 [21:24:48]line Вид ГСМ : 2710124130 [21:24:48]line Аи-92-К-5 [21:24:48]line 16.160 x 61.90 [21:24:48]line ИТОГ: 1000.30 [21:24:48]line Тип оплаты: Талоны: Топливные Талоны [21:24:48]line 3860626 [21:24:48]line ______________________ [21:24:48]line (подпись) [21:24:48]written 0, free lines is 4095 [21:24:48]Write to MH i2c: 01 00 00 9C 50 EC [21:24:48]Write i2c OK [21:24:48]MH_I2C_Read... [21:24:48]Read from MH i2c: 01 [21:24:48]MH_I2C_Read... [21:24:48]Read from MH i2c: 01 07 00 [21:24:48]MH_I2C_Read... [21:24:48]Read from MH i2c: 01 07 00 9C 50 00 00 00 00 00 F7 0D F7 [21:24:48]RasterBufferAndPrint [21:24:48]line [21:24:48]line [21:24:48]line [21:24:48]line [21:24:48]line [21:24:48]written 0, free lines is 3577 [21:24:48]MH_Cut [21:24:48]Write to MH i2c: D1 01 00 A3 50 01 C5 [21:24:48]Write i2c OK [21:24:48]MH_I2C_Read... [21:24:48]Read from MH i2c: D1 [21:24:48]MH_I2C_Read... [21:24:48]Read from MH i2c: D1 01 00 [21:24:48]MH_I2C_Read... [21:24:48]Read from MH i2c: D1 01 00 A3 50 00 C4 [21:24:48]Write to MH i2c: 01 00 00 A4 50 F4 [21:24:48]Write i2c OK [21:24:48]MH_I2C_Read... [21:24:48]*** Cut start [21:24:48]*** Purtial cut [21:24:48]*** Stage 1: CUTSNS_PIN = 1 [21:24:50]Read from MH i2c: 01 [21:24:50]MH_I2C_Read... [21:24:50]*** Stop cut motor [21:24:50]*** Cut end [21:24:50]Read from MH i2c: 01 07 00 [21:24:50]MH_I2C_Read... [21:24:50]Read from MH i2c: 01 07 00 A4 50 00 00 00 00 00 FF 0F 09 [21:24:50]process_action print_text done [21:24:50]requested_data is exist [21:24:50]produce_requested_data [21:24:50]requested_item fm.sn is exist - process it [21:24:50]wFMCommunicate request_size=4 [21:24:50]MH_SAM_APDU [21:24:50]CAPDU: 80 11 00 00 [21:24:50]Write to MH i2c: E2 08 00 A5 50 80 11 00 00 00 00 00 00 6F [21:24:50]Write i2c OK [21:24:50]MH_I2C_Read... [21:24:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:24:51]Read from MH i2c: E2 [21:24:51]MH_I2C_Read... [21:24:51]Read from MH i2c: E2 17 00 [21:24:51]MH_I2C_Read... [21:24:51]Read from MH i2c: E2 17 00 A5 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 CD [21:24:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [21:24:51]wFMCommunicate OK [21:24:51]requested_item fd.num is exist - process it [21:24:51]SAM_PROTO_GetFieldsCounters [21:24:51]wFMCommunicate request_size=4 [21:24:51]MH_SAM_APDU [21:24:51]CAPDU: 80 13 00 00 [21:24:51]Write to MH i2c: E2 08 00 A6 50 80 13 00 00 00 00 00 00 72 [21:24:51]Write i2c OK [21:24:51]MH_I2C_Read... [21:24:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:24:51]Read from MH i2c: E2 [21:24:51]MH_I2C_Read... [21:24:51]Read from MH i2c: E2 62 00 [21:24:51]MH_I2C_Read... [21:24:51]Read from MH i2c: E2 62 00 A6 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 E1 E1 01 00 0E 04 04 00 43 01 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 32 [21: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 E1 E1 01 00 0E 04 04 00 43 01 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 [21:24:51]wFMCommunicate OK [21:24:51]SAM_PROTO_GetFieldsCounters done [21:24:51]requested_item shift.num is exist - process it [21:24:51]requested_item shift.opened is exist - process it [21:24:51]req_shift_opened [21:24:51]FM_GetShiftState [21:24:51]SAM_PROTO_GetShiftState [21:24:51]wFMCommunicate request_size=4 [21:24:51]MH_SAM_APDU [21:24:51]CAPDU: 80 13 01 00 [21:24:51]Write to MH i2c: E2 08 00 A7 50 80 13 01 00 00 00 00 00 74 [21:24:51]Write i2c OK [21:24:51]MH_I2C_Read... [21:24:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:24:51]Read from MH i2c: E2 [21:24:51]MH_I2C_Read... [21:24:51]Read from MH i2c: E2 0E 00 [21:24:51]MH_I2C_Read... [21:24:51]Read from MH i2c: E2 0E 00 A7 50 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 36 [21:24:51]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [21:24:51]wFMCommunicate OK [21:24:51]SAM_PROTO_GetShiftState done [21:24:51]FM_GetShiftState done [21:24:51]req_shift_opened done [21:24:51]requested_item shift.open_date is exist - process it [21:24:51]req_shift_open_date [21:24:51]req_shift_open_date done [21:24:51]produce_requested_data done [21:24:51]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123361,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [21:24:51]process_action_free print_text [21:24:51]json_value_free [21:24:51]json_value_free done [21:24:51]process_json_proto returns [21:24:51]Send response to host [21:24:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123361,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [21:24:51]free response buf [21:24:51]execute_script done [21:24:51]execute_script returns [21:24:51]free content buf [21:24:51]Sock 9.Close socket [21:24:51]Sock 9.Thread stoped [21:24:51]OFD Sender: No OFD packet to send [21:24:56]OFD Sender: No OFD packet to send [21:25:01]OFD Sender: No OFD packet to send [21:25:06]OFD Sender: No OFD packet to send [21:25:11]OFD Sender: No OFD packet to send [21:25:17]OFD Sender: No OFD packet to send [21:25:22]OFD Sender: No OFD packet to send [21:25:27]OFD Sender: No OFD packet to send [21:25:32]OFD Sender: No OFD packet to send [21:25:37]OFD Sender: No OFD packet to send [21:25:42]OFD Sender: No OFD packet to send [21:25:47]OFD Sender: No OFD packet to send [21:25:52]OFD Sender: No OFD packet to send [21:25:57]OFD Sender: No OFD packet to send [21:26:02]OFD Sender: No OFD packet to send [21:26:07]OFD Sender: No OFD packet to send [21:26:12]OFD Sender: No OFD packet to send [21:26:17]OFD Sender: No OFD packet to send [21:26:22]OFD Sender: No OFD packet to send [21:26:27]OFD Sender: No OFD packet to send [21:26:32]OFD Sender: No OFD packet to send [21:26:37]OFD Sender: No OFD packet to send [21:26:42]OFD Sender: No OFD packet to send [21:26:47]OFD Sender: No OFD packet to send [21:26:52]OFD Sender: No OFD packet to send [21:26:57]OFD Sender: No OFD packet to send [21:27:02]OFD Sender: No OFD packet to send [21:27:07]OFD Sender: No OFD packet to send [21:27:12]OFD Sender: No OFD packet to send [21:27:17]OFD Sender: No OFD packet to send [21:27:22]OFD Sender: No OFD packet to send [21:27:27]OFD Sender: No OFD packet to send [21:27:32]OFD Sender: No OFD packet to send [21:27:37]OFD Sender: No OFD packet to send [21:27:42]OFD Sender: No OFD packet to send [21:27:47]OFD Sender: No OFD packet to send [21:27:52]OFD Sender: No OFD packet to send [21:27:57]OFD Sender: No OFD packet to send [21:28:02]OFD Sender: No OFD packet to send [21:28:07]OFD Sender: No OFD packet to send [21:28:12]OFD Sender: No OFD packet to send [21:28:17]OFD Sender: No OFD packet to send [21:28:22]OFD Sender: No OFD packet to send [21:28:27]OFD Sender: No OFD packet to send [21:28:32]OFD Sender: No OFD packet to send [21:28:37]OFD Sender: No OFD packet to send [21:28:42]OFD Sender: No OFD packet to send [21:28:47]OFD Sender: No OFD packet to send [21:28:52]OFD Sender: No OFD packet to send [21:28:57]OFD Sender: No OFD packet to send [21:29:02]OFD Sender: No OFD packet to send [21:29:07]OFD Sender: No OFD packet to send [21:29:12]OFD Sender: No OFD packet to send [21:29:17]OFD Sender: No OFD packet to send [21:29:22]OFD Sender: No OFD packet to send [21:29:27]OFD Sender: No OFD packet to send [21:29:32]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:13]accept exits with 7 [21:30:13]New connection [21:30:13]New thread 3067252068 created [21:30:13]Thread 3067395428 joined [21:30:13]Waiting for new connection... [21:30:13] Sock 7.Parse request [21:30:13]Sock 7.Check first char [21:30:13]Sock 7.First char is OK [21:30:13]request: POST /json_proto HTTP/1.0 [21:30:13]Method: POST [21:30:13]URL: /json_proto [21:30:13]Method is POST - this is cgi request [21:30:13]url: /json_proto [21:30:13]query_string will be loaded in cgi processing [21:30:13]execute_cgi json_proto POST (null) [21:30:13]execute_cgi path=json_proto method=POST [21:30:13]POST find Content-Length [21:30:13]Host: 172.17.48.197:8080 [21:30:13]Content-Length: 817 [21:30:13]Content-Type: application/json [21:30:13] [21:30:13]POST finish read [21:30:13]Found Content-Length = 817 [21:30:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106344", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 7.200, "sum" : 500.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:30:13]execute_script... [21:30: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)1106344", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 7.200, "sum" : 500.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:30:13]POST & json_proto [21:30:13]process_json_proto [21:30:13]json parsed OK: [21:30:13]protocol is kg_v1.0 [21:30:13]action value=close_receipt [21:30:13]process_action close_receipt [21:30:13]cmd_close_receipt [21:30:13]MH_GetDate [21:30:13]Write to MH i2c: F0 00 00 A8 50 E7 [21:30:13]Write i2c OK [21:30:13]MH_I2C_Read... [21:30:13]Read from MH i2c: F0 [21:30:13]MH_I2C_Read... [21:30:13]Read from MH i2c: F0 09 00 [21:30:13]MH_I2C_Read... [21:30:13]Read from MH i2c: F0 09 00 A8 50 00 EA EB E4 65 6C AF E3 65 71 [21:30:13]GetLastDocTimeStamp 1709501014 [21:30:13]current date 1709501418 [21:30:13]FM_GetShiftState [21:30:13]SAM_PROTO_GetShiftState [21:30:13]wFMCommunicate request_size=4 [21:30:13]MH_SAM_APDU [21:30:13]CAPDU: 80 13 01 00 [21:30:13]Write to MH i2c: E2 08 00 A9 50 80 13 01 00 00 00 00 00 76 [21:30:13]Write i2c OK [21:30:13]MH_I2C_Read... [21:30:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:30:13]Read from MH i2c: E2 [21:30:13]MH_I2C_Read... [21:30:13]Read from MH i2c: E2 0E 00 [21:30:13]MH_I2C_Read... [21:30:13]Read from MH i2c: E2 0E 00 A9 50 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 38 [21:30:13]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [21:30:13]wFMCommunicate OK [21:30:13]SAM_PROTO_GetShiftState done [21:30:13]FM_GetShiftState done [21:30:13]opened in 1709425579 [21:30:13]opened+sec_in_day 1709511979 [21:30:13]quantity*price = 50040 [21:30:13]sum+1 = 50041 [21:30:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.40 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.40 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 219 03.03.2024 21:30 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874798 ФД: 123362 ФПД: 144754834203913 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T213018&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123362&fm=144754834203913&tin=02508201610067®Number=0000000000090573&sum=50040 [21:30:14]StoreToDocumentArchive [21:30:14]shift 323 fd 123362 [21:30:14]save to /storage/0323/doc_00123362 [21:30:14]save last doc name /storage/0323/doc_00123362 to /storage/kkm_last_doc_name [21:30:14]save OK [21:30:14]Clear old archive folders... [21:30:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:30:14]tlvbuf is 00DA2670 [21:30:14]SAM_PROTO_ClearQueue [21:30:14]wFMCommunicate request_size=4 [21:30:14]MH_SAM_APDU [21:30:14]CAPDU: 80 09 00 00 [21:30:14]Write to MH i2c: E2 08 00 B6 50 80 09 00 00 00 00 00 00 78 [21:30:14]Write i2c OK [21:30:14]MH_I2C_Read... [21:30:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:30:14]Read from MH i2c: E2 [21:30:14]MH_I2C_Read... [21:30:14]Read from MH i2c: E2 03 00 [21:30:14]MH_I2C_Read... [21:30:14]Read from MH i2c: E2 03 00 B6 50 00 90 00 7A [21:30:14]RAPDU: 90 00 [21:30:14]wFMCommunicate OK [21:30:14]SAM_PROTO_ClearQueue done [21:30:14]KKMCreateOFDPacket [21:30:14]OFDProtocolAddRootSTLVToBuf [21:30:14]FM_MakeSignedData [21:30:14]FM_MakeSignedData [21:30:14]SAM_PROTO_SignData [21:30:14]wFMCommunicate request_size=4 [21:30:14]MH_SAM_APDU [21:30:14]CAPDU: 80 0D 01 02 [21:30:14]Write to MH i2c: E2 08 00 B7 50 80 0D 01 02 00 00 00 00 80 [21:30:14]Write i2c OK [21:30:14]MH_I2C_Read... [21:30:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:30:14]Read from MH i2c: E2 [21:30:14]MH_I2C_Read... [21:30:14]Read from MH i2c: E2 03 00 [21:30:14]MH_I2C_Read... [21:30:14]Read from MH i2c: E2 03 00 B7 50 00 90 00 7B [21:30:14]RAPDU: 90 00 [21:30:14]wFMCommunicate OK [21:30:14]wFMCommunicate request_size=255 [21:30:14]MH_SAM_APDU [21:30: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 35 FF 03 08 00 03 20 1C 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 78 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 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 78 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 EA EB E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 E2 E1 01 00 35 04 06 00 83 [21:30:14]Write to MH i2c: E2 02 01 B8 50 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 1C 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 78 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 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 78 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 EA EB E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 E2 E1 01 00 35 04 06 00 83 00 00 DC [21:30:14]Write i2c OK [21:30:14]MH_I2C_Read... [21:30:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:30:14]Read from MH i2c: E2 [21:30:14]MH_I2C_Read... [21:30:14]Read from MH i2c: E2 03 00 [21:30:14]MH_I2C_Read... [21:30:14]Read from MH i2c: E2 03 00 B8 50 00 90 00 7C [21:30:14]RAPDU: 90 00 [21:30:14]wFMCommunicate OK [21:30:14]wFMCommunicate request_size=10 [21:30:14]MH_SAM_APDU [21:30:14]CAPDU: 80 0D 02 02 05 A7 5C 78 E5 09 [21:30:14]Write to MH i2c: E2 0D 00 B9 50 80 0D 02 02 05 00 A7 5C 78 E5 09 00 00 F6 [21:30:14]Write i2c OK [21:30:14]MH_I2C_Read... [21:30:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:30:14]Read from MH i2c: E2 [21:30:14]MH_I2C_Read... [21:30:14]Read from MH i2c: E2 03 00 [21:30:14]MH_I2C_Read... [21:30:14]Read from MH i2c: E2 03 00 B9 50 00 90 00 7D [21:30:14]RAPDU: 90 00 [21:30:14]wFMCommunicate OK [21:30:14]wFMCommunicate request_size=4 [21:30:14]MH_SAM_APDU [21:30:14]CAPDU: 80 0D 03 02 [21:30:14]Write to MH i2c: E2 08 00 BA 50 80 0D 03 02 00 00 00 00 85 [21:30:14]Write i2c OK [21:30:14]MH_I2C_Read... [21:30:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:30:14]Read from MH i2c: E2 [21:30:14]MH_I2C_Read... [21:30:14]Read from MH i2c: E2 0B 00 [21:30:14]MH_I2C_Read... [21:30:14]Read from MH i2c: E2 0B 00 BA 50 00 3E 96 2C 78 8C 3B E8 41 90 00 EE [21:30:14]RAPDU: 3E 96 2C 78 8C 3B E8 41 90 00 [21:30:14]wFMCommunicate OK [21:30:14]SAM_PROTO_SignData done [21:30:14]FM_MakeSignedData done [21:30:14]CreateOFDProtocolMessage [21:30:14]wFMCommunicate request_size=4 [21:30:14]MH_SAM_APDU [21:30:14]CAPDU: 80 11 00 00 [21:30:14]Write to MH i2c: E2 08 00 BB 50 80 11 00 00 00 00 00 00 85 [21:30:14]Write i2c OK [21:30:14]MH_I2C_Read... [21:30:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:30:14]Read from MH i2c: E2 [21:30:14]MH_I2C_Read... [21:30:14]Read from MH i2c: E2 17 00 [21:30:14]MH_I2C_Read... [21:30:14]Read from MH i2c: E2 17 00 BB 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 E3 [21:30:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [21:30:14]wFMCommunicate OK [21:30:14]CreateOFDProtocolMessage done [21:30:14]OFDSenderStorePacket 123362 [21:30:14]StoreOFDPacket docnum=123362 [21:30:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 EA 0C 07 01 53 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 35 FF 03 08 00 03 20 1C 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 78 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 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 78 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 EA EB E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 E2 E1 01 00 35 04 06 00 83 A7 5C 78 E5 09 3E 96 2C 78 8C 3B E8 41 [21:30:14]CheckFolder [21:30:14]dirname=/storage/ofd_packets [21:30:14]CheckFolder done [21:30:14]ProducePacketName [21:30:14]name=ofd_packets/00123362 [21:30:14]NVStorageSaveData ofd_packets/00123362 [21:30:14]File name is /storage/ofd_packets/00123362 [21:30:14]Write 301 bytes [21:30:14]NVStorageSaveData done [21:30:14]OFDSenderStorePacket done [21:30:14]KKMCreateOFDPacket done [21:30:14]NVStorageSaveData kkm_last_timestamp [21:30:14]File name is /storage/kkm_last_timestamp [21:30:14]Write 4 bytes [21:30:14]NVStorageSaveData done [21:30:14]ExternCall_PrintAddStr [21:30:14]wPrintStart [21:30:14]Write to MH i2c: 01 00 00 BC 50 0C [21:30:14]Write i2c OK [21:30:14]MH_I2C_Read... [21:30:14]Read from MH i2c: 01 [21:30:14]MH_I2C_Read... [21:30:14]Read from MH i2c: 01 07 00 [21:30:14]MH_I2C_Read... [21:30:14]Read from MH i2c: 01 07 00 BC 50 00 00 00 00 00 FF 0F 21 [21:30:14]RasterBufferAndPrint [21:30:14]line Счет N : (1)1106344 [21:30:14]line ИНН: 02508201610067 [21:30:14]line Контрольно-Кассовый Чек [21:30:14]line ПРОДАЖА [21:30:14]line ТРК (МРК, ГНК) : 13 [21:30:14]line Товар: 2710124500 [21:30:14]line Аи-95-К-5 [21:30:14]line 7.200 * 69.50 [21:30:14]line = 500.40 [21:30:14]line НДС 12% НСП 1% [21:30:14]line > о реализуемом товаре [21:30:14]line ИТОГО: 500.40 [21:30:14]line НСП 1% : 4.43 [21:30:14]line НДС 12% : 53.14 [21:30:14]line Наличными: 0.00 [21:30:14]line Безнал.: 500.40 [21:30:14]line Место: АЗС № 25 "Партнер Нефть" [21:30:14]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [21:30:14]line СНО: Общий режим [21:30:14]line Чек 219 03.03.2024 21:30 [21:30:14]line Смена: 323 ФФД: 1.0 [21:30:14]line ЗНМ: 0300000019 [21:30:14]line РНМ: 0000000000090573 [21:30:14]line Версия ККМ: 001 [21:30:14]line Платежная система: Бакай Банк [21:30:14]line ФМ: 0000000000874798 [21:30:14]line ФД: 123362 [21:30:14]line ФПД: 144754834203913 [21:30:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T213018&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123362&fm=144754834203913&tin=02508201610067®Number=0000000000090573&sum=50040 [21:30:15]OFD Sender: Processing packet 123362 [packets to send 112, broken 111] [21:30:15]ProducePacketName [21:30:15]name=ofd_packets/00123362 [21:30:15]OFD Sender: To server: pG, [21:30:15]CommunicateWithHost lk.salyk.kg:30040 [21:30:15]ConnectInit lk.salyk.kg [21:30:15]written 0, free lines is 4095 [21:30:15]Connected sock=11 [21:30: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 37 39 38 0F 01 00 00 EA 0C 07 01 53 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 35 FF 03 08 00 03 20 1C 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 78 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 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 78 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 EA EB E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 E2 E1 01 00 35 04 06 00 83 A7 5C 78 E5 09 3E 96 2C 78 8C 3B E8 41 [21:30:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 AF 1A 47 00 D9 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 37 39 38 10 04 04 00 E2 E1 01 00 F4 03 04 00 14 98 E4 65 B6 04 01 00 00 07 09 2A D2 ED 96 00 90 [21:30:15]CommunicateWithHost err = 0 [21:30:15]CheckOFDResponse [21:30:15]1017 (14) - 77093643461234 [21:30:15]1041 (16) - 0000000000874798 [21:30:15]1040 (4) - 123362 [21:30:15]1012 (4) - 03.03.2024 15:32 [21:30:15]1206 (1) - 0 [21:30:15]OFD Sender: Remove packet 123362 [21:30:15]ProducePacketName [21:30:15]name=ofd_packets/00123362 [21:30:15]NVStorageDeleteData [21:30:15]Write to MH i2c: 01 00 00 E6 50 36 [21:30:15]Write i2c OK [21:30:15]MH_I2C_Read... [21:30:15]Read from MH i2c: 01 [21:30:15]MH_I2C_Read... [21:30:15]Read from MH i2c: 01 07 00 [21:30:15]MH_I2C_Read... [21:30:15]Read from MH i2c: 01 07 00 E6 50 00 00 00 00 00 07 0D 51 [21:30:15]RasterBufferAndPrint [21:30:15]line [21:30:15]line [21:30:15]line [21:30:15]line [21:30:15]line [21:30:15]written 0, free lines is 3341 [21:30:15]MH_Cut [21:30:15]Write to MH i2c: D1 01 00 ED 50 01 0F [21:30:15]Write i2c OK [21:30:15]MH_I2C_Read... [21:30:15]Read from MH i2c: D1 [21:30:15]MH_I2C_Read... [21:30:15]Read from MH i2c: D1 01 00 [21:30:15]MH_I2C_Read... [21:30:15]Read from MH i2c: D1 01 00 ED 50 00 0E [21:30:15]Write to MH i2c: 01 00 00 EE 50 3E [21:30:15]Write i2c OK [21:30:15]MH_I2C_Read... [21:30:15]OFD Sender: No OFD packet to send [21:30:16]*** Cut start [21:30:16]*** Purtial cut [21:30:16]*** Stage 1: CUTSNS_PIN = 1 [21:30:18]Read from MH i2c: 01 [21:30:18]MH_I2C_Read... [21:30:18]*** Stop cut motor [21:30:18]*** Cut end [21:30:18]Read from MH i2c: 01 07 00 [21:30:18]MH_I2C_Read... [21:30:18]Read from MH i2c: 01 07 00 EE 50 00 00 00 00 00 FF 0F 53 [21:30:18]process_action close_receipt done [21:30:18]requested_data is exist [21:30:18]produce_requested_data [21:30:18]requested_item fm.sn is exist - process it [21:30:18]wFMCommunicate request_size=4 [21:30:18]MH_SAM_APDU [21:30:18]CAPDU: 80 11 00 00 [21:30:18]Write to MH i2c: E2 08 00 EF 50 80 11 00 00 00 00 00 00 B9 [21:30:18]Write i2c OK [21:30:18]MH_I2C_Read... [21:30:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:30:18]Read from MH i2c: E2 [21:30:18]MH_I2C_Read... [21:30:18]Read from MH i2c: E2 17 00 [21:30:18]MH_I2C_Read... [21:30:18]Read from MH i2c: E2 17 00 EF 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 17 [21:30:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [21:30:18]wFMCommunicate OK [21:30:18]requested_item fd.num is exist - process it [21:30:18]SAM_PROTO_GetFieldsCounters [21:30:18]wFMCommunicate request_size=4 [21:30:18]MH_SAM_APDU [21:30:18]CAPDU: 80 13 00 00 [21:30:18]Write to MH i2c: E2 08 00 F0 50 80 13 00 00 00 00 00 00 BC [21:30:18]Write i2c OK [21:30:18]MH_I2C_Read... [21:30:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:30:18]Read from MH i2c: E2 [21:30:18]MH_I2C_Read... [21:30:18]Read from MH i2c: E2 62 00 [21:30:18]MH_I2C_Read... [21:30:18]Read from MH i2c: E2 62 00 F0 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 E2 E1 01 00 0E 04 04 00 43 01 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 80 [21:30: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 E2 E1 01 00 0E 04 04 00 43 01 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 [21:30:18]wFMCommunicate OK [21:30:18]SAM_PROTO_GetFieldsCounters done [21:30:18]requested_item shift.num is exist - process it [21:30:18]requested_item shift.opened is exist - process it [21:30:18]req_shift_opened [21:30:18]FM_GetShiftState [21:30:18]SAM_PROTO_GetShiftState [21:30:18]wFMCommunicate request_size=4 [21:30:18]MH_SAM_APDU [21:30:18]CAPDU: 80 13 01 00 [21:30:18]Write to MH i2c: E2 08 00 F1 50 80 13 01 00 00 00 00 00 BE [21:30:18]Write i2c OK [21:30:18]MH_I2C_Read... [21:30:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:30:18]Read from MH i2c: E2 [21:30:18]MH_I2C_Read... [21:30:18]Read from MH i2c: E2 0E 00 [21:30:18]MH_I2C_Read... [21:30:18]Read from MH i2c: E2 0E 00 F1 50 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 80 [21:30:18]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [21:30:18]wFMCommunicate OK [21:30:18]SAM_PROTO_GetShiftState done [21:30:18]FM_GetShiftState done [21:30:18]req_shift_opened done [21:30:18]requested_item shift.open_date is exist - process it [21:30:18]req_shift_open_date [21:30:18]req_shift_open_date done [21:30:18]produce_requested_data done [21:30:18]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123362,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [21:30:18]process_action_free close_receipt [21:30:18]json_value_free [21:30:18]json_value_free done [21:30:18]process_json_proto returns [21:30:18]Send response to host [21:30:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123362,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [21:30:18]free response buf [21:30:18]execute_script done [21:30:18]execute_script returns [21:30:18]free content buf [21:30:18]Sock 7.Close socket [21:30:18]Sock 7.Thread stoped [21:30:20]OFD Sender: No OFD packet to send [21:30:25]OFD Sender: No OFD packet to send [21:30:30]OFD Sender: No OFD packet to send [21:30:35]OFD Sender: No OFD packet to send [21:30:40]OFD Sender: No OFD packet to send [21:30:45]OFD Sender: No OFD packet to send [21:30:50]OFD Sender: No OFD packet to send [21:30:55]OFD Sender: No OFD packet to send [21:31:00]OFD Sender: No OFD packet to send [21:31:05]OFD Sender: No OFD packet to send [21:31:10]OFD Sender: No OFD packet to send [21:31:15]OFD Sender: No OFD packet to send [21:31:20]OFD Sender: No OFD packet to send [21:31:25]OFD Sender: No OFD packet to send [21:31:30]OFD Sender: No OFD packet to send [21:31:35]OFD Sender: No OFD packet to send [21:31:40]OFD Sender: No OFD packet to send [21:31:45]OFD Sender: No OFD packet to send [21:31:50]OFD Sender: No OFD packet to send [21:31:55]OFD Sender: No OFD packet to send [21:32:00]OFD Sender: No OFD packet to send [21:32:06]OFD Sender: No OFD packet to send [21:32:11]OFD Sender: No OFD packet to send [21:32:16]OFD Sender: No OFD packet to send [21:32:21]OFD Sender: No OFD packet to send [21:32:26]OFD Sender: No OFD packet to send [21:32:31]OFD Sender: No OFD packet to send [21:32:36]OFD Sender: No OFD packet to send [21:32:41]OFD Sender: No OFD packet to send [21:32:46]OFD Sender: No OFD packet to send [21:32:51]OFD Sender: No OFD packet to send [21:32:56]OFD Sender: No OFD packet to send [21:33:01]OFD Sender: No OFD packet to send [21:33:06]OFD Sender: No OFD packet to send [21:33:11]OFD Sender: No OFD packet to send [21:33:16]OFD Sender: No OFD packet to send [21:33:21]OFD Sender: No OFD packet to send [21:33:26]OFD Sender: No OFD packet to send [21:33:31]OFD Sender: No OFD packet to send [21:33:36]OFD Sender: No OFD packet to send [21:33:41]OFD Sender: No OFD packet to send [21:33:46]OFD Sender: No OFD packet to send [21:33:51]OFD Sender: No OFD packet to send [21:33:56]OFD Sender: No OFD packet to send [21:34:01]OFD Sender: No OFD packet to send [21:34:06]OFD Sender: No OFD packet to send [21:34:11]OFD Sender: No OFD packet to send [21:34:16]OFD Sender: No OFD packet to send [21:34:21]OFD Sender: No OFD packet to send [21:34:26]OFD Sender: No OFD packet to send [21:34:31]OFD Sender: No OFD packet to send [21:34:36]OFD Sender: No OFD packet to send [21:34:41]OFD Sender: No OFD packet to send [21:34:46]OFD Sender: No OFD packet to send [21:34:51]OFD Sender: No OFD packet to send [21:34:56]OFD Sender: No OFD packet to send [21:35:01]OFD Sender: No OFD packet to send [21:35:06]OFD Sender: No OFD packet to send [21:35:11]OFD Sender: No OFD packet to send [21:35:16]OFD Sender: No OFD packet to send [21:35:21]OFD Sender: No OFD packet to send [21:35:26]OFD Sender: No OFD packet to send [21:35:31]OFD Sender: No OFD packet to send [21:35:36]OFD Sender: No OFD packet to send [21:35:41]OFD Sender: No OFD packet to send [21:35:46]OFD Sender: No OFD packet to send [21:35:51]OFD Sender: No OFD packet to send [21:35:56]OFD Sender: No OFD packet to send [21:36:01]OFD Sender: No OFD packet to send [21:36:06]OFD Sender: No OFD packet to send [21:36:11]OFD Sender: No OFD packet to send [21:36:16]OFD Sender: No OFD packet to send [21:36:20]accept exits with 9 [21:36:20]New connection [21:36:20]New thread 3067395428 created [21:36:20]Thread 3067252068 joined [21:36:20]Waiting for new connection... [21:36:20] Sock 9.Parse request [21:36:20]Sock 9.Check first char [21:36:20]Sock 9.First char is OK [21:36:20]request: POST /json_proto HTTP/1.0 [21:36:20]Method: POST [21:36:20]URL: /json_proto [21:36:20]Method is POST - this is cgi request [21:36:20]url: /json_proto [21:36:20]query_string will be loaded in cgi processing [21:36:20]execute_cgi json_proto POST (null) [21:36:20]execute_cgi path=json_proto method=POST [21:36:20]POST find Content-Length [21:36:20]Host: 172.17.48.197:8080 [21:36:20]Content-Length: 818 [21:36:20]Content-Type: application/json [21:36:20] [21:36:20]POST finish read [21:36:20]Found Content-Length = 818 [21:36:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106345", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 11.310, "sum" : 700.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 700.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:36:20]execute_script... [21:36:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106345", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 11.310, "sum" : 700.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 700.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:36:20]POST & json_proto [21:36:20]process_json_proto [21:36:20]json parsed OK: [21:36:20]protocol is kg_v1.0 [21:36:20]action value=close_receipt [21:36:20]process_action close_receipt [21:36:20]cmd_close_receipt [21:36:20]MH_GetDate [21:36:20]Write to MH i2c: F0 00 00 F2 50 31 [21:36:20]Write i2c OK [21:36:20]MH_I2C_Read... [21:36:20]Read from MH i2c: F0 [21:36:20]MH_I2C_Read... [21:36:20]Read from MH i2c: F0 09 00 [21:36:20]MH_I2C_Read... [21:36:20]Read from MH i2c: F0 09 00 F2 50 00 59 ED E4 65 6C AF E3 65 2C [21:36:20]GetLastDocTimeStamp 1709501418 [21:36:20]current date 1709501785 [21:36:20]FM_GetShiftState [21:36:20]SAM_PROTO_GetShiftState [21:36:20]wFMCommunicate request_size=4 [21:36:20]MH_SAM_APDU [21:36:20]CAPDU: 80 13 01 00 [21:36:20]Write to MH i2c: E2 08 00 F3 50 80 13 01 00 00 00 00 00 C0 [21:36:20]Write i2c OK [21:36:20]MH_I2C_Read... [21:36:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:36:20]Read from MH i2c: E2 [21:36:20]MH_I2C_Read... [21:36:20]Read from MH i2c: E2 0E 00 [21:36:20]MH_I2C_Read... [21:36:20]Read from MH i2c: E2 0E 00 F3 50 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 82 [21:36:20]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [21:36:20]wFMCommunicate OK [21:36:20]SAM_PROTO_GetShiftState done [21:36:20]FM_GetShiftState done [21:36:20]opened in 1709425579 [21:36:20]opened+sec_in_day 1709511979 [21:36:20]quantity*price = 70008 [21:36:20]sum+1 = 70010 [21:36:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.09 НСП 1% : 6.19 НДС 12% : 74.35 Наличными: 0.00 Безнал.: 700.09 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 220 03.03.2024 21:36 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874798 ФД: 123363 ФПД: 122138195485305 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T213625&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123363&fm=122138195485305&tin=02508201610067®Number=0000000000090573&sum=70009 [21:36:21]StoreToDocumentArchive [21:36:21]shift 323 fd 123363 [21:36:21]save to /storage/0323/doc_00123363 [21:36:21]save last doc name /storage/0323/doc_00123363 to /storage/kkm_last_doc_name [21:36:21]save OK [21:36:21]Clear old archive folders... [21:36:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:36:21]tlvbuf is 00E1B370 [21:36:21]SAM_PROTO_ClearQueue [21:36:21]wFMCommunicate request_size=4 [21:36:21]MH_SAM_APDU [21:36:21]CAPDU: 80 09 00 00 [21:36:21]Write to MH i2c: E2 08 00 00 51 80 09 00 00 00 00 00 00 C3 [21:36:21]Write i2c OK [21:36:21]MH_I2C_Read... [21:36:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:36:21]Read from MH i2c: E2 [21:36:21]MH_I2C_Read... [21:36:21]Read from MH i2c: E2 03 00 [21:36:21]MH_I2C_Read... [21:36:21]Read from MH i2c: E2 03 00 00 51 00 90 00 C5 [21:36:21]RAPDU: 90 00 [21:36:21]wFMCommunicate OK [21:36:21]SAM_PROTO_ClearQueue done [21:36:21]KKMCreateOFDPacket [21:36:21]OFDProtocolAddRootSTLVToBuf [21:36:21]FM_MakeSignedData [21:36:21]FM_MakeSignedData [21:36:21]SAM_PROTO_SignData [21:36:21]wFMCommunicate request_size=4 [21:36:21]MH_SAM_APDU [21:36:21]CAPDU: 80 0D 01 02 [21:36:21]Write to MH i2c: E2 08 00 01 51 80 0D 01 02 00 00 00 00 CB [21:36:21]Write i2c OK [21:36:21]MH_I2C_Read... [21:36:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:36:21]Read from MH i2c: E2 [21:36:21]MH_I2C_Read... [21:36:21]Read from MH i2c: E2 03 00 [21:36:21]MH_I2C_Read... [21:36:21]Read from MH i2c: E2 03 00 01 51 00 90 00 C6 [21:36:21]RAPDU: 90 00 [21:36:21]wFMCommunicate OK [21:36:21]wFMCommunicate request_size=255 [21:36:21]MH_SAM_APDU [21:36:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 2C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 79 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 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 00 00 00 00 00 00 39 04 06 00 79 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 59 ED E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 E3 E1 01 00 35 04 06 00 6F [21:36:21]Write to MH i2c: E2 02 01 02 51 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 2C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 79 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 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 00 00 00 00 00 00 39 04 06 00 79 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 59 ED E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 E3 E1 01 00 35 04 06 00 6F 00 00 98 [21:36:21]Write i2c OK [21:36:21]MH_I2C_Read... [21:36:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:36:22]Read from MH i2c: E2 [21:36:22]MH_I2C_Read... [21:36:22]Read from MH i2c: E2 03 00 [21:36:22]MH_I2C_Read... [21:36:22]Read from MH i2c: E2 03 00 02 51 00 90 00 C7 [21:36:22]RAPDU: 90 00 [21:36:22]wFMCommunicate OK [21:36:22]wFMCommunicate request_size=10 [21:36:22]MH_SAM_APDU [21:36:22]CAPDU: 80 0D 02 02 05 15 83 C1 62 79 [21:36:22]Write to MH i2c: E2 0D 00 03 51 80 0D 02 02 05 00 15 83 C1 62 79 00 00 0C [21:36:22]Write i2c OK [21:36:22]MH_I2C_Read... [21:36:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:36:22]Read from MH i2c: E2 [21:36:22]MH_I2C_Read... [21:36:22]Read from MH i2c: E2 03 00 [21:36:22]MH_I2C_Read... [21:36:22]Read from MH i2c: E2 03 00 03 51 00 90 00 C8 [21:36:22]RAPDU: 90 00 [21:36:22]wFMCommunicate OK [21:36:22]wFMCommunicate request_size=4 [21:36:22]MH_SAM_APDU [21:36:22]CAPDU: 80 0D 03 02 [21:36:22]Write to MH i2c: E2 08 00 04 51 80 0D 03 02 00 00 00 00 D0 [21:36:22]Write i2c OK [21:36:22]MH_I2C_Read... [21:36:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:36:22]Read from MH i2c: E2 [21:36:22]MH_I2C_Read... [21:36:22]Read from MH i2c: E2 0B 00 [21:36:22]MH_I2C_Read... [21:36:22]Read from MH i2c: E2 0B 00 04 51 00 AE 60 7E C6 A3 AF 64 33 90 00 0C [21:36:22]RAPDU: AE 60 7E C6 A3 AF 64 33 90 00 [21:36:22]wFMCommunicate OK [21:36:22]SAM_PROTO_SignData done [21:36:22]FM_MakeSignedData done [21:36:22]CreateOFDProtocolMessage [21:36:22]wFMCommunicate request_size=4 [21:36:22]MH_SAM_APDU [21:36:22]CAPDU: 80 11 00 00 [21:36:22]Write to MH i2c: E2 08 00 05 51 80 11 00 00 00 00 00 00 D0 [21:36:22]Write i2c OK [21:36:22]MH_I2C_Read... [21:36:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:36:22]Read from MH i2c: E2 [21:36:22]MH_I2C_Read... [21:36:22]Read from MH i2c: E2 17 00 [21:36:22]MH_I2C_Read... [21:36:22]Read from MH i2c: E2 17 00 05 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 2E [21:36:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [21:36:22]wFMCommunicate OK [21:36:22]CreateOFDProtocolMessage done [21:36:22]OFDSenderStorePacket 123363 [21:36:22]StoreOFDPacket docnum=123363 [21:36:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 0C 01 07 01 5E C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 2C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 79 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 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 00 00 00 00 00 00 39 04 06 00 79 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 59 ED E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 E3 E1 01 00 35 04 06 00 6F 15 83 C1 62 79 AE 60 7E C6 A3 AF 64 33 [21:36:22]CheckFolder [21:36:22]dirname=/storage/ofd_packets [21:36:22]CheckFolder done [21:36:22]ProducePacketName [21:36:22]name=ofd_packets/00123363 [21:36:22]NVStorageSaveData ofd_packets/00123363 [21:36:22]File name is /storage/ofd_packets/00123363 [21:36:22]Write 301 bytes [21:36:22]NVStorageSaveData done [21:36:22]OFDSenderStorePacket done [21:36:22]KKMCreateOFDPacket done [21:36:22]NVStorageSaveData kkm_last_timestamp [21:36:22]File name is /storage/kkm_last_timestamp [21:36:22]Write 4 bytes [21:36:22]NVStorageSaveData done [21:36:22]ExternCall_PrintAddStr [21:36:22]wPrintStart [21:36:22]Write to MH i2c: 01 00 00 06 51 57 [21:36:22]Write i2c OK [21:36:22]MH_I2C_Read... [21:36:22]Read from MH i2c: 01 [21:36:22]MH_I2C_Read... [21:36:22]Read from MH i2c: 01 07 00 [21:36:22]MH_I2C_Read... [21:36:22]Read from MH i2c: 01 07 00 06 51 00 00 00 00 00 FF 0F 6C [21:36:22]RasterBufferAndPrint [21:36:22]line Счет N : (1)1106345 [21:36:22]line ИНН: 02508201610067 [21:36:22]line Контрольно-Кассовый Чек [21:36:22]line ПРОДАЖА [21:36:22]line ТРК (МРК, ГНК) : 62 [21:36:22]line Товар: 2710124130 [21:36:22]line Аи-92-К-5 [21:36:22]line 11.310 * 61.90 [21:36:22]line = 700.09 [21:36:22]line НДС 12% НСП 1% [21:36:22]line > о реализуемом товаре [21:36:22]line ИТОГО: 700.09 [21:36:22]line НСП 1% : 6.19 [21:36:22]line НДС 12% : 74.35 [21:36:22]line Наличными: 0.00 [21:36:22]line Безнал.: 700.09 [21:36:22]line Место: АЗС № 25 "Партнер Нефть" [21:36:22]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [21:36:22]line СНО: Общий режим [21:36:22]line Чек 220 03.03.2024 21:36 [21:36:22]line Смена: 323 ФФД: 1.0 [21:36:22]line ЗНМ: 0300000019 [21:36:22]line РНМ: 0000000000090573 [21:36:22]line Версия ККМ: 001 [21:36:22]line Платежная система: Бакай Банк [21:36:22]line ФМ: 0000000000874798 [21:36:22]line ФД: 123363 [21:36:22]line ФПД: 122138195485305 [21:36:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T213625&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123363&fm=122138195485305&tin=02508201610067®Number=0000000000090573&sum=70009 [21:36:22]OFD Sender: Processing packet 123363 [packets to send 112, broken 111] [21:36:22]ProducePacketName [21:36:22]name=ofd_packets/00123363 [21:36:22]OFD Sender: To server: pG, [21:36:22]CommunicateWithHost lk.salyk.kg:30040 [21:36:22]ConnectInit lk.salyk.kg [21:36:22]written 0, free lines is 4095 [21:36:22]Connected sock=10 [21:36:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 0C 01 07 01 5E C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 2C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 79 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 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 00 00 00 00 00 00 39 04 06 00 79 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 59 ED E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 E3 E1 01 00 35 04 06 00 6F 15 83 C1 62 79 AE 60 7E C6 A3 AF 64 33 [21:36:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 A2 56 47 00 A0 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 37 39 38 10 04 04 00 E3 E1 01 00 F4 03 04 00 84 99 E4 65 B6 04 01 00 00 76 85 16 E9 C5 EE D4 0D [21:36:22]CommunicateWithHost err = 0 [21:36:22]CheckOFDResponse [21:36:22]1017 (14) - 77093643461234 [21:36:22]1041 (16) - 0000000000874798 [21:36:22]1040 (4) - 123363 [21:36:22]1012 (4) - 03.03.2024 15:38 [21:36:22]1206 (1) - 0 [21:36:22]OFD Sender: Remove packet 123363 [21:36:22]ProducePacketName [21:36:22]name=ofd_packets/00123363 [21:36:22]NVStorageDeleteData [21:36:22]Write to MH i2c: 01 00 00 30 51 81 [21:36:22]Write i2c OK [21:36:22]MH_I2C_Read... [21:36:22]Read from MH i2c: 01 [21:36:22]MH_I2C_Read... [21:36:22]Read from MH i2c: 01 07 00 [21:36:22]MH_I2C_Read... [21:36:22]Read from MH i2c: 01 07 00 30 51 00 00 00 00 00 0F 0D A4 [21:36:22]RasterBufferAndPrint [21:36:22]line [21:36:22]line [21:36:22]line [21:36:22]line [21:36:22]line [21:36:22]written 0, free lines is 3350 [21:36:23]MH_Cut [21:36:23]Write to MH i2c: D1 01 00 37 51 01 5A [21:36:23]Write i2c OK [21:36:23]MH_I2C_Read... [21:36:23]Read from MH i2c: D1 [21:36:23]MH_I2C_Read... [21:36:23]Read from MH i2c: D1 01 00 [21:36:23]MH_I2C_Read... [21:36:23]Read from MH i2c: D1 01 00 37 51 00 59 [21:36:23]Write to MH i2c: 01 00 00 38 51 89 [21:36:23]Write i2c OK [21:36:23]MH_I2C_Read... [21:36:23]OFD Sender: No OFD packet to send [21:36:23]*** Cut start [21:36:23]*** Purtial cut [21:36:23]*** Stage 1: CUTSNS_PIN = 1 [21:36:25]Read from MH i2c: 01 [21:36:25]MH_I2C_Read... [21:36:25]*** Stop cut motor [21:36:25]*** Cut end [21:36:25]Read from MH i2c: 01 07 00 [21:36:25]MH_I2C_Read... [21:36:25]Read from MH i2c: 01 07 00 38 51 00 00 00 00 00 FF 0F 9E [21:36:25]process_action close_receipt done [21:36:25]requested_data is exist [21:36:25]produce_requested_data [21:36:25]requested_item fm.sn is exist - process it [21:36:25]wFMCommunicate request_size=4 [21:36:25]MH_SAM_APDU [21:36:25]CAPDU: 80 11 00 00 [21:36:25]Write to MH i2c: E2 08 00 39 51 80 11 00 00 00 00 00 00 04 [21:36:25]Write i2c OK [21:36:25]MH_I2C_Read... [21:36:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:36:25]Read from MH i2c: E2 [21:36:25]MH_I2C_Read... [21:36:25]Read from MH i2c: E2 17 00 [21:36:25]MH_I2C_Read... [21:36:25]Read from MH i2c: E2 17 00 39 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 62 [21:36:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [21:36:25]wFMCommunicate OK [21:36:25]requested_item fd.num is exist - process it [21:36:25]SAM_PROTO_GetFieldsCounters [21:36:25]wFMCommunicate request_size=4 [21:36:25]MH_SAM_APDU [21:36:25]CAPDU: 80 13 00 00 [21:36:25]Write to MH i2c: E2 08 00 3A 51 80 13 00 00 00 00 00 00 07 [21:36:25]Write i2c OK [21:36:25]MH_I2C_Read... [21:36:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:36:25]Read from MH i2c: E2 [21:36:25]MH_I2C_Read... [21:36:25]Read from MH i2c: E2 62 00 [21:36:25]MH_I2C_Read... [21:36:25]Read from MH i2c: E2 62 00 3A 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 E3 E1 01 00 0E 04 04 00 43 01 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 CF [21:36: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 E3 E1 01 00 0E 04 04 00 43 01 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 [21:36:25]wFMCommunicate OK [21:36:25]SAM_PROTO_GetFieldsCounters done [21:36:25]requested_item shift.num is exist - process it [21:36:25]requested_item shift.opened is exist - process it [21:36:25]req_shift_opened [21:36:25]FM_GetShiftState [21:36:25]SAM_PROTO_GetShiftState [21:36:25]wFMCommunicate request_size=4 [21:36:25]MH_SAM_APDU [21:36:25]CAPDU: 80 13 01 00 [21:36:25]Write to MH i2c: E2 08 00 3B 51 80 13 01 00 00 00 00 00 09 [21:36:25]Write i2c OK [21:36:25]MH_I2C_Read... [21:36:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:36:25]Read from MH i2c: E2 [21:36:25]MH_I2C_Read... [21:36:25]Read from MH i2c: E2 0E 00 [21:36:25]MH_I2C_Read... [21:36:25]Read from MH i2c: E2 0E 00 3B 51 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 CB [21:36:25]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [21:36:25]wFMCommunicate OK [21:36:25]SAM_PROTO_GetShiftState done [21:36:25]FM_GetShiftState done [21:36:25]req_shift_opened done [21:36:25]requested_item shift.open_date is exist - process it [21:36:25]req_shift_open_date [21:36:25]req_shift_open_date done [21:36:25]produce_requested_data done [21:36:25]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123363,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [21:36:25]process_action_free close_receipt [21:36:25]json_value_free [21:36:25]json_value_free done [21:36:25]process_json_proto returns [21:36:25]Send response to host [21:36:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123363,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [21:36:25]free response buf [21:36:25]execute_script done [21:36:25]execute_script returns [21:36:25]free content buf [21:36:25]Sock 9.Close socket [21:36:25]Sock 9.Thread stoped [21:36:28]OFD Sender: No OFD packet to send [21:36:33]OFD Sender: No OFD packet to send [21:36:38]OFD Sender: No OFD packet to send [21:36:43]OFD Sender: No OFD packet to send [21:36:48]OFD Sender: No OFD packet to send [21:36:53]OFD Sender: No OFD packet to send [21:36:58]OFD Sender: No OFD packet to send [21:37:03]OFD Sender: No OFD packet to send [21:37:08]OFD Sender: No OFD packet to send [21:37:13]OFD Sender: No OFD packet to send [21:37:18]OFD Sender: No OFD packet to send [21:37:23]OFD Sender: No OFD packet to send [21:37:28]OFD Sender: No OFD packet to send [21:37:33]OFD Sender: No OFD packet to send [21:37:38]OFD Sender: No OFD packet to send [21:37:43]OFD Sender: No OFD packet to send [21:37:48]OFD Sender: No OFD packet to send [21:37:53]OFD Sender: No OFD packet to send [21:37:58]OFD Sender: No OFD packet to send [21:38:03]OFD Sender: No OFD packet to send [21:38:08]OFD Sender: No OFD packet to send [21:38:13]OFD Sender: No OFD packet to send [21:38:18]OFD Sender: No OFD packet to send [21:38:23]OFD Sender: No OFD packet to send [21:38:28]OFD Sender: No OFD packet to send [21:38:33]OFD Sender: No OFD packet to send [21:38:38]OFD Sender: No OFD packet to send [21:38:43]OFD Sender: No OFD packet to send [21:38:48]OFD Sender: No OFD packet to send [21:38:53]OFD Sender: No OFD packet to send [21:38:58]OFD Sender: No OFD packet to send [21:39:03]OFD Sender: No OFD packet to send [21:39:08]OFD Sender: No OFD packet to send [21:39:13]OFD Sender: No OFD packet to send [21:39:18]OFD Sender: No OFD packet to send [21:39:23]OFD Sender: No OFD packet to send [21:39:28]OFD Sender: No OFD packet to send [21:39:33]OFD Sender: No OFD packet to send [21:39:38]OFD Sender: No OFD packet to send [21:39:43]OFD Sender: No OFD packet to send [21:39:48]OFD Sender: No OFD packet to send [21:39:53]OFD Sender: No OFD packet to send [21:39:58]OFD Sender: No OFD packet to send [21:40:03]OFD Sender: No OFD packet to send [21:40:08]OFD Sender: No OFD packet to send [21:40:13]OFD Sender: No OFD packet to send [21:40:18]OFD Sender: No OFD packet to send [21:40:23]accept exits with 7 [21:40:23]New connection [21:40:23]New thread 3067252068 created [21:40:23]Thread 3067395428 joined [21:40:23]Waiting for new connection... [21:40:23] Sock 7.Parse request [21:40:23]Sock 7.Check first char [21:40:23]Sock 7.First char is OK [21:40:23]request: POST /json_proto HTTP/1.0 [21:40:23]Method: POST [21:40:23]URL: /json_proto [21:40:23]Method is POST - this is cgi request [21:40:23]url: /json_proto [21:40:23]query_string will be loaded in cgi processing [21:40:23]execute_cgi json_proto POST (null) [21:40:23]execute_cgi path=json_proto method=POST [21:40:23]POST find Content-Length [21:40:23]Host: 172.17.48.197:8080 [21:40:23]Content-Length: 806 [21:40:23]Content-Type: application/json [21:40:23] [21:40:23]POST finish read [21:40:23]Found Content-Length = 806 [21:40:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106346", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:40:23]execute_script... [21:40:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106346", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:40:23]POST & json_proto [21:40:23]process_json_proto [21:40:23]json parsed OK: [21:40:23]protocol is kg_v1.0 [21:40:23]action value=close_receipt [21:40:23]process_action close_receipt [21:40:23]cmd_close_receipt [21:40:23]MH_GetDate [21:40:23]Write to MH i2c: F0 00 00 3C 51 7C [21:40:23]Write i2c OK [21:40:23]MH_I2C_Read... [21:40:23]Read from MH i2c: F0 [21:40:23]MH_I2C_Read... [21:40:23]Read from MH i2c: F0 09 00 [21:40:23]MH_I2C_Read... [21:40:23]Read from MH i2c: F0 09 00 3C 51 00 4C EE E4 65 6C AF E3 65 6B [21:40:23]GetLastDocTimeStamp 1709501785 [21:40:23]current date 1709502028 [21:40:23]FM_GetShiftState [21:40:23]SAM_PROTO_GetShiftState [21:40:23]wFMCommunicate request_size=4 [21:40:23]MH_SAM_APDU [21:40:23]CAPDU: 80 13 01 00 [21:40:23]Write to MH i2c: E2 08 00 3D 51 80 13 01 00 00 00 00 00 0B [21:40:23]Write i2c OK [21:40:23]MH_I2C_Read... [21:40:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:40:23]Read from MH i2c: E2 [21:40:23]MH_I2C_Read... [21:40:23]Read from MH i2c: E2 0E 00 [21:40:23]MH_I2C_Read... [21:40:23]Read from MH i2c: E2 0E 00 3D 51 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 CD [21:40:23]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [21:40:23]wFMCommunicate OK [21:40:23]SAM_PROTO_GetShiftState done [21:40:23]FM_GetShiftState done [21:40:23]opened in 1709425579 [21:40:23]opened+sec_in_day 1709511979 [21:40:23]quantity*price = 50015 [21:40:23]sum+1 = 50016 [21:40:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.15 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.15 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 221 03.03.2024 21:40 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874798 ФД: 123364 ФПД: 156497356218417 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T214028&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123364&fm=156497356218417&tin=02508201610067®Number=0000000000090573&sum=50015 [21:40:24]StoreToDocumentArchive [21:40:24]shift 323 fd 123364 [21:40:24]save to /storage/0323/doc_00123364 [21:40:24]save last doc name /storage/0323/doc_00123364 to /storage/kkm_last_doc_name [21:40:24]save OK [21:40:24]Clear old archive folders... [21:40:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:40:24]tlvbuf is 00E93CF0 [21:40:24]SAM_PROTO_ClearQueue [21:40:24]wFMCommunicate request_size=4 [21:40:24]MH_SAM_APDU [21:40:24]CAPDU: 80 09 00 00 [21:40:24]Write to MH i2c: E2 08 00 4A 51 80 09 00 00 00 00 00 00 0D [21:40:24]Write i2c OK [21:40:24]MH_I2C_Read... [21:40:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:40:24]Read from MH i2c: E2 [21:40:24]MH_I2C_Read... [21:40:24]Read from MH i2c: E2 03 00 [21:40:24]MH_I2C_Read... [21:40:24]Read from MH i2c: E2 03 00 4A 51 00 90 00 0F [21:40:24]RAPDU: 90 00 [21:40:24]wFMCommunicate OK [21:40:24]SAM_PROTO_ClearQueue done [21:40:24]KKMCreateOFDPacket [21:40:24]OFDProtocolAddRootSTLVToBuf [21:40:24]FM_MakeSignedData [21:40:24]FM_MakeSignedData [21:40:24]SAM_PROTO_SignData [21:40:24]wFMCommunicate request_size=4 [21:40:24]MH_SAM_APDU [21:40:24]CAPDU: 80 0D 01 02 [21:40:24]Write to MH i2c: E2 08 00 4B 51 80 0D 01 02 00 00 00 00 15 [21:40:24]Write i2c OK [21:40:24]MH_I2C_Read... [21:40:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:40:24]Read from MH i2c: E2 [21:40:24]MH_I2C_Read... [21:40:24]Read from MH i2c: E2 03 00 [21:40:24]MH_I2C_Read... [21:40:24]Read from MH i2c: E2 03 00 4B 51 00 90 00 10 [21:40:24]RAPDU: 90 00 [21:40:24]wFMCommunicate OK [21:40:24]wFMCommunicate request_size=255 [21:40:24]MH_SAM_APDU [21:40:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 4C EE E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 E4 E1 01 00 35 04 06 00 8E [21:40:24]Write to MH i2c: E2 02 01 4C 51 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 4C EE E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 E4 E1 01 00 35 04 06 00 8E 00 00 0B [21:40:24]Write i2c OK [21:40:24]MH_I2C_Read... [21:40:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:40:24]Read from MH i2c: E2 [21:40:24]MH_I2C_Read... [21:40:24]Read from MH i2c: E2 03 00 [21:40:24]MH_I2C_Read... [21:40:24]Read from MH i2c: E2 03 00 4C 51 00 90 00 11 [21:40:24]RAPDU: 90 00 [21:40:24]wFMCommunicate OK [21:40:24]wFMCommunicate request_size=10 [21:40:24]MH_SAM_APDU [21:40:24]CAPDU: 80 0D 02 02 05 55 61 53 60 31 [21:40:24]Write to MH i2c: E2 0D 00 4D 51 80 0D 02 02 05 00 55 61 53 60 31 00 00 BC [21:40:24]Write i2c OK [21:40:24]MH_I2C_Read... [21:40:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:40:25]Read from MH i2c: E2 [21:40:25]MH_I2C_Read... [21:40:25]Read from MH i2c: E2 03 00 [21:40:25]MH_I2C_Read... [21:40:25]Read from MH i2c: E2 03 00 4D 51 00 90 00 12 [21:40:25]RAPDU: 90 00 [21:40:25]wFMCommunicate OK [21:40:25]wFMCommunicate request_size=4 [21:40:25]MH_SAM_APDU [21:40:25]CAPDU: 80 0D 03 02 [21:40:25]Write to MH i2c: E2 08 00 4E 51 80 0D 03 02 00 00 00 00 1A [21:40:25]Write i2c OK [21:40:25]MH_I2C_Read... [21:40:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:40:25]Read from MH i2c: E2 [21:40:25]MH_I2C_Read... [21:40:25]Read from MH i2c: E2 0B 00 [21:40:25]MH_I2C_Read... [21:40:25]Read from MH i2c: E2 0B 00 4E 51 00 B1 CD 76 BD AA 5F 0E B7 90 00 9A [21:40:25]RAPDU: B1 CD 76 BD AA 5F 0E B7 90 00 [21:40:25]wFMCommunicate OK [21:40:25]SAM_PROTO_SignData done [21:40:25]FM_MakeSignedData done [21:40:25]CreateOFDProtocolMessage [21:40:25]wFMCommunicate request_size=4 [21:40:25]MH_SAM_APDU [21:40:25]CAPDU: 80 11 00 00 [21:40:25]Write to MH i2c: E2 08 00 4F 51 80 11 00 00 00 00 00 00 1A [21:40:25]Write i2c OK [21:40:25]MH_I2C_Read... [21:40:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:40:25]Read from MH i2c: E2 [21:40:25]MH_I2C_Read... [21:40:25]Read from MH i2c: E2 17 00 [21:40:25]MH_I2C_Read... [21:40:25]Read from MH i2c: E2 17 00 4F 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 78 [21:40:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [21:40:25]wFMCommunicate OK [21:40:25]CreateOFDProtocolMessage done [21:40:25]OFDSenderStorePacket 123364 [21:40:25]StoreOFDPacket docnum=123364 [21:40:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 19 99 07 01 91 B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 4C EE E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 E4 E1 01 00 35 04 06 00 8E 55 61 53 60 31 B1 CD 76 BD AA 5F 0E B7 [21:40:25]CheckFolder [21:40:25]dirname=/storage/ofd_packets [21:40:25]CheckFolder done [21:40:25]ProducePacketName [21:40:25]name=ofd_packets/00123364 [21:40:25]NVStorageSaveData ofd_packets/00123364 [21:40:25]File name is /storage/ofd_packets/00123364 [21:40:25]Write 301 bytes [21:40:25]NVStorageSaveData done [21:40:25]OFDSenderStorePacket done [21:40:25]KKMCreateOFDPacket done [21:40:25]NVStorageSaveData kkm_last_timestamp [21:40:25]File name is /storage/kkm_last_timestamp [21:40:25]Write 4 bytes [21:40:25]NVStorageSaveData done [21:40:25]ExternCall_PrintAddStr [21:40:25]wPrintStart [21:40:25]Write to MH i2c: 01 00 00 50 51 A1 [21:40:25]Write i2c OK [21:40:25]MH_I2C_Read... [21:40:25]Read from MH i2c: 01 [21:40:25]MH_I2C_Read... [21:40:25]Read from MH i2c: 01 07 00 [21:40:25]MH_I2C_Read... [21:40:25]Read from MH i2c: 01 07 00 50 51 00 00 00 00 00 FF 0F B6 [21:40:25]RasterBufferAndPrint [21:40:25]line Счет N : (1)1106346 [21:40:25]line ИНН: 02508201610067 [21:40:25]line Контрольно-Кассовый Чек [21:40:25]line ПРОДАЖА [21:40:25]line ТРК (МРК, ГНК) : 62 [21:40:25]line Товар: 2710124130 [21:40:25]line Аи-92-К-5 [21:40:25]line 8.080 * 61.90 [21:40:25]line = 500.15 [21:40:25]line НДС 12% НСП 1% [21:40:25]line > о реализуемом товаре [21:40:25]line ИТОГО: 500.15 [21:40:25]line НСП 1% : 4.43 [21:40:25]line НДС 12% : 53.11 [21:40:25]line Наличными: 0.00 [21:40:25]line Безнал.: 500.15 [21:40:25]line Место: АЗС № 25 "Партнер Нефть" [21:40:25]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [21:40:25]line СНО: Общий режим [21:40:25]line Чек 221 03.03.2024 21:40 [21:40:25]line Смена: 323 ФФД: 1.0 [21:40:25]line ЗНМ: 0300000019 [21:40:25]line РНМ: 0000000000090573 [21:40:25]line Версия ККМ: 001 [21:40:25]line Платежная система: О! деньги [21:40:25]line ФМ: 0000000000874798 [21:40:25]line ФД: 123364 [21:40:25]line ФПД: 156497356218417 [21:40:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T214028&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123364&fm=156497356218417&tin=02508201610067®Number=0000000000090573&sum=50015 [21:40:25]OFD Sender: Processing packet 123364 [packets to send 112, broken 111] [21:40:25]ProducePacketName [21:40:25]name=ofd_packets/00123364 [21:40:25]OFD Sender: To server: pG, [21:40:25]CommunicateWithHost lk.salyk.kg:30040 [21:40:25]ConnectInit lk.salyk.kg [21:40:25]written 0, free lines is 4095 [21:40:25]Connected sock=10 [21:40: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 37 39 38 0F 01 00 00 19 99 07 01 91 B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 4C EE E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 E4 E1 01 00 35 04 06 00 8E 55 61 53 60 31 B1 CD 76 BD AA 5F 0E B7 [21:40:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 25 27 47 00 0D E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 E4 E1 01 00 F4 03 04 00 77 9A E4 65 B6 04 01 00 00 70 F5 8F 90 D6 D9 16 CB [21:40:25]CommunicateWithHost err = 0 [21:40:25]CheckOFDResponse [21:40:25]1017 (14) - 77093643461234 [21:40:25]1041 (16) - 0000000000874798 [21:40:25]1040 (4) - 123364 [21:40:25]1012 (4) - 03.03.2024 15:42 [21:40:25]1206 (1) - 0 [21:40:25]OFD Sender: Remove packet 123364 [21:40:25]ProducePacketName [21:40:25]name=ofd_packets/00123364 [21:40:25]NVStorageDeleteData [21:40:25]Write to MH i2c: 01 00 00 7A 51 CB [21:40:25]Write i2c OK [21:40:25]MH_I2C_Read... [21:40:25]Read from MH i2c: 01 [21:40:25]MH_I2C_Read... [21:40:25]Read from MH i2c: 01 07 00 [21:40:25]MH_I2C_Read... [21:40:25]Read from MH i2c: 01 07 00 7A 51 00 00 00 00 00 04 0D E3 [21:40:25]RasterBufferAndPrint [21:40:25]line [21:40:25]line [21:40:25]line [21:40:25]line [21:40:25]line [21:40:25]written 0, free lines is 3338 [21:40:25]MH_Cut [21:40:25]Write to MH i2c: D1 01 00 81 51 01 A4 [21:40:25]Write i2c OK [21:40:25]MH_I2C_Read... [21:40:25]Read from MH i2c: D1 [21:40:25]MH_I2C_Read... [21:40:25]Read from MH i2c: D1 01 00 [21:40:25]MH_I2C_Read... [21:40:25]Read from MH i2c: D1 01 00 81 51 00 A3 [21:40:25]Write to MH i2c: 01 00 00 82 51 D3 [21:40:25]Write i2c OK [21:40:25]MH_I2C_Read... [21:40:26]OFD Sender: No OFD packet to send [21:40:26]*** Cut start [21:40:26]*** Purtial cut [21:40:26]*** Stage 1: CUTSNS_PIN = 1 [21:40:28]Read from MH i2c: 01 [21:40:28]MH_I2C_Read... [21:40:28]*** Stop cut motor [21:40:28]*** Cut end [21:40:28]Read from MH i2c: 01 07 00 [21:40:28]MH_I2C_Read... [21:40:28]Read from MH i2c: 01 07 00 82 51 00 00 00 00 00 FF 0F E8 [21:40:28]process_action close_receipt done [21:40:28]requested_data is exist [21:40:28]produce_requested_data [21:40:28]requested_item fm.sn is exist - process it [21:40:28]wFMCommunicate request_size=4 [21:40:28]MH_SAM_APDU [21:40:28]CAPDU: 80 11 00 00 [21:40:28]Write to MH i2c: E2 08 00 83 51 80 11 00 00 00 00 00 00 4E [21:40:28]Write i2c OK [21:40:28]MH_I2C_Read... [21:40:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:40:28]Read from MH i2c: E2 [21:40:28]MH_I2C_Read... [21:40:28]Read from MH i2c: E2 17 00 [21:40:28]MH_I2C_Read... [21:40:28]Read from MH i2c: E2 17 00 83 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 AC [21:40:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [21:40:28]wFMCommunicate OK [21:40:28]requested_item fd.num is exist - process it [21:40:28]SAM_PROTO_GetFieldsCounters [21:40:28]wFMCommunicate request_size=4 [21:40:28]MH_SAM_APDU [21:40:28]CAPDU: 80 13 00 00 [21:40:28]Write to MH i2c: E2 08 00 84 51 80 13 00 00 00 00 00 00 51 [21:40:28]Write i2c OK [21:40:28]MH_I2C_Read... [21:40:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:40:28]Read from MH i2c: E2 [21:40:28]MH_I2C_Read... [21:40:28]Read from MH i2c: E2 62 00 [21:40:28]MH_I2C_Read... [21:40:28]Read from MH i2c: E2 62 00 84 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 E4 E1 01 00 0E 04 04 00 43 01 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 [21:40: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 E4 E1 01 00 0E 04 04 00 43 01 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 [21:40:28]wFMCommunicate OK [21:40:28]SAM_PROTO_GetFieldsCounters done [21:40:28]requested_item shift.num is exist - process it [21:40:28]requested_item shift.opened is exist - process it [21:40:28]req_shift_opened [21:40:28]FM_GetShiftState [21:40:28]SAM_PROTO_GetShiftState [21:40:28]wFMCommunicate request_size=4 [21:40:28]MH_SAM_APDU [21:40:28]CAPDU: 80 13 01 00 [21:40:28]Write to MH i2c: E2 08 00 85 51 80 13 01 00 00 00 00 00 53 [21:40:28]Write i2c OK [21:40:28]MH_I2C_Read... [21:40:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:40:28]Read from MH i2c: E2 [21:40:28]MH_I2C_Read... [21:40:28]Read from MH i2c: E2 0E 00 [21:40:28]MH_I2C_Read... [21:40:28]Read from MH i2c: E2 0E 00 85 51 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 15 [21:40:28]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [21:40:28]wFMCommunicate OK [21:40:28]SAM_PROTO_GetShiftState done [21:40:28]FM_GetShiftState done [21:40:28]req_shift_opened done [21:40:28]requested_item shift.open_date is exist - process it [21:40:28]req_shift_open_date [21:40:28]req_shift_open_date done [21:40:28]produce_requested_data done [21:40:28]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123364,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [21:40:28]process_action_free close_receipt [21:40:28]json_value_free [21:40:28]json_value_free done [21:40:28]process_json_proto returns [21:40:28]Send response to host [21:40:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123364,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [21:40:28]free response buf [21:40:28]execute_script done [21:40:28]execute_script returns [21:40:28]free content buf [21:40:28]Sock 7.Close socket [21:40:28]Sock 7.Thread stoped [21:40:31]OFD Sender: No OFD packet to send [21:40:36]OFD Sender: No OFD packet to send [21:40:41]OFD Sender: No OFD packet to send [21:40:46]OFD Sender: No OFD packet to send [21:40:51]OFD Sender: No OFD packet to send [21:40:56]OFD Sender: No OFD packet to send [21:41:01]OFD Sender: No OFD packet to send [21:41:06]OFD Sender: No OFD packet to send [21:41:11]OFD Sender: No OFD packet to send [21:41:16]OFD Sender: No OFD packet to send [21:41:21]OFD Sender: No OFD packet to send [21:41:26]OFD Sender: No OFD packet to send [21:41:31]OFD Sender: No OFD packet to send [21:41:36]OFD Sender: No OFD packet to send [21:41:41]OFD Sender: No OFD packet to send [21:41:46]OFD Sender: No OFD packet to send [21:41:49]accept exits with 9 [21:41:49]New connection [21:41:49]New thread 3067395428 created [21:41:49]Thread 3067252068 joined [21:41:49]Waiting for new connection... [21:41:49] Sock 9.Parse request [21:41:49]Sock 9.Check first char [21:41:49]Sock 9.First char is OK [21:41:49]request: POST /json_proto HTTP/1.0 [21:41:49]Method: POST [21:41:49]URL: /json_proto [21:41:49]Method is POST - this is cgi request [21:41:49]url: /json_proto [21:41:49]query_string will be loaded in cgi processing [21:41:49]execute_cgi json_proto POST (null) [21:41:49]execute_cgi path=json_proto method=POST [21:41:49]POST find Content-Length [21:41:49]Host: 172.17.48.197:8080 [21:41:49]Content-Length: 678 [21:41:49]Content-Type: application/json [21:41:49] [21:41:49]POST finish read [21:41:49]Found Content-Length = 678 [21:41:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106347", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 4.850, "sum" : 300.22, "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" ] } } [21:41:49]execute_script... [21:41:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106347", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 4.850, "sum" : 300.22, "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" ] } } [21:41:49]POST & json_proto [21:41:49]process_json_proto [21:41:49]json parsed OK: [21:41:49]protocol is kg_v1.0 [21:41:49]action value=close_receipt [21:41:49]process_action close_receipt [21:41:49]cmd_close_receipt [21:41:49]MH_GetDate [21:41:49]Write to MH i2c: F0 00 00 86 51 C6 [21:41:49]Write i2c OK [21:41:49]MH_I2C_Read... [21:41:49]Read from MH i2c: F0 [21:41:49]MH_I2C_Read... [21:41:49]Read from MH i2c: F0 09 00 [21:41:49]MH_I2C_Read... [21:41:49]Read from MH i2c: F0 09 00 86 51 00 A2 EE E4 65 6C AF E3 65 0B [21:41:49]GetLastDocTimeStamp 1709502028 [21:41:49]current date 1709502114 [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 87 51 80 13 01 00 00 00 00 00 55 [21:41:49]Write i2c OK [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 [21:41:49]MH_I2C_Read... [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 87 51 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 17 [21:41:49]RAPDU: 09 00 01 AB C3 E3 65 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]opened in 1709425579 [21:41:49]opened+sec_in_day 1709511979 [21:41:49]quantity*price = 30021 [21:41:49]sum+1 = 30023 [21:41:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.88 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 222 03.03.2024 21:41 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123365 ФПД: 201769431271617 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T214154&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123365&fm=201769431271617&tin=02508201610067®Number=0000000000090573&sum=30000 [21:41:50]StoreToDocumentArchive [21:41:50]shift 323 fd 123365 [21:41:50]save to /storage/0323/doc_00123365 [21:41:50]save last doc name /storage/0323/doc_00123365 to /storage/kkm_last_doc_name [21:41:50]save OK [21:41:50]Clear old archive folders... [21:41:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:41:50]tlvbuf is 00F044C0 [21:41:50]SAM_PROTO_ClearQueue [21:41:50]wFMCommunicate request_size=4 [21:41:50]MH_SAM_APDU [21:41:50]CAPDU: 80 09 00 00 [21:41:50]Write to MH i2c: E2 08 00 94 51 80 09 00 00 00 00 00 00 57 [21:41:50]Write i2c OK [21:41:50]MH_I2C_Read... [21:41:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:41:50]Read from MH i2c: E2 [21:41:50]MH_I2C_Read... [21:41:50]Read from MH i2c: E2 03 00 [21:41:50]MH_I2C_Read... [21:41:50]Read from MH i2c: E2 03 00 94 51 00 90 00 59 [21:41:50]RAPDU: 90 00 [21:41:50]wFMCommunicate OK [21:41:50]SAM_PROTO_ClearQueue done [21:41:50]KKMCreateOFDPacket [21:41:50]OFDProtocolAddRootSTLVToBuf [21:41:50]FM_MakeSignedData [21:41:50]FM_MakeSignedData [21:41:50]SAM_PROTO_SignData [21:41:50]wFMCommunicate request_size=4 [21:41:50]MH_SAM_APDU [21:41:50]CAPDU: 80 0D 01 02 [21:41:50]Write to MH i2c: E2 08 00 95 51 80 0D 01 02 00 00 00 00 5F [21:41:50]Write i2c OK [21:41:50]MH_I2C_Read... [21:41:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:41:50]Read from MH i2c: E2 [21:41:50]MH_I2C_Read... [21:41:50]Read from MH i2c: E2 03 00 [21:41:50]MH_I2C_Read... [21:41:50]Read from MH i2c: E2 03 00 95 51 00 90 00 5A [21:41:50]RAPDU: 90 00 [21:41:50]wFMCommunicate OK [21:41:50]wFMCommunicate request_size=255 [21:41:50]MH_SAM_APDU [21:41:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 12 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 46 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 74 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 DE 00 00 00 F4 03 04 00 A2 EE E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 E5 E1 01 00 35 04 06 00 B7 [21:41:50]Write to MH i2c: E2 02 01 96 51 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 12 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 46 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 74 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 DE 00 00 00 F4 03 04 00 A2 EE E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 E5 E1 01 00 35 04 06 00 B7 00 00 C6 [21:41:50]Write i2c OK [21:41:50]MH_I2C_Read... [21:41:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:41:50]Read from MH i2c: E2 [21:41:50]MH_I2C_Read... [21:41:50]Read from MH i2c: E2 03 00 [21:41:50]MH_I2C_Read... [21:41:50]Read from MH i2c: E2 03 00 96 51 00 90 00 5B [21:41:50]RAPDU: 90 00 [21:41:50]wFMCommunicate OK [21:41:50]wFMCommunicate request_size=10 [21:41:50]MH_SAM_APDU [21:41:50]CAPDU: 80 0D 02 02 05 82 1B 47 08 C1 [21:41:50]Write to MH i2c: E2 0D 00 97 51 80 0D 02 02 05 00 82 1B 47 08 C1 00 00 19 [21:41:50]Write i2c OK [21:41:50]MH_I2C_Read... [21:41:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:41:50]Read from MH i2c: E2 [21:41:50]MH_I2C_Read... [21:41:50]Read from MH i2c: E2 03 00 [21:41:50]MH_I2C_Read... [21:41:50]Read from MH i2c: E2 03 00 97 51 00 90 00 5C [21:41:50]RAPDU: 90 00 [21:41:50]wFMCommunicate OK [21:41:50]wFMCommunicate request_size=4 [21:41:50]MH_SAM_APDU [21:41:50]CAPDU: 80 0D 03 02 [21:41:50]Write to MH i2c: E2 08 00 98 51 80 0D 03 02 00 00 00 00 64 [21:41:50]Write i2c OK [21:41:50]MH_I2C_Read... [21:41:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:41:50]Read from MH i2c: E2 [21:41:50]MH_I2C_Read... [21:41:50]Read from MH i2c: E2 0B 00 [21:41:50]MH_I2C_Read... [21:41:50]Read from MH i2c: E2 0B 00 98 51 00 09 AE 41 29 6B 83 38 E6 90 00 92 [21:41:50]RAPDU: 09 AE 41 29 6B 83 38 E6 90 00 [21:41:50]wFMCommunicate OK [21:41:50]SAM_PROTO_SignData done [21:41:50]FM_MakeSignedData done [21:41:50]CreateOFDProtocolMessage [21:41:50]wFMCommunicate request_size=4 [21:41:50]MH_SAM_APDU [21:41:50]CAPDU: 80 11 00 00 [21:41:50]Write to MH i2c: E2 08 00 99 51 80 11 00 00 00 00 00 00 64 [21:41:50]Write i2c OK [21:41:50]MH_I2C_Read... [21:41:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:41:51]Read from MH i2c: E2 [21:41:51]MH_I2C_Read... [21:41:51]Read from MH i2c: E2 17 00 [21:41:51]MH_I2C_Read... [21:41:51]Read from MH i2c: E2 17 00 99 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 C2 [21:41:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [21:41:51]wFMCommunicate OK [21:41:51]CreateOFDProtocolMessage done [21:41:51]OFDSenderStorePacket 123365 [21:41:51]StoreOFDPacket docnum=123365 [21:41:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 4F 33 07 01 13 E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 12 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 46 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 74 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 DE 00 00 00 F4 03 04 00 A2 EE E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 E5 E1 01 00 35 04 06 00 B7 82 1B 47 08 C1 09 AE 41 29 6B 83 38 E6 [21:41:51]CheckFolder [21:41:51]dirname=/storage/ofd_packets [21:41:51]CheckFolder done [21:41:51]ProducePacketName [21:41:51]name=ofd_packets/00123365 [21:41:51]NVStorageSaveData ofd_packets/00123365 [21:41:51]File name is /storage/ofd_packets/00123365 [21:41:51]Write 301 bytes [21:41:51]NVStorageSaveData done [21:41:51]OFDSenderStorePacket done [21:41:51]KKMCreateOFDPacket done [21:41:51]NVStorageSaveData kkm_last_timestamp [21:41:51]File name is /storage/kkm_last_timestamp [21:41:51]Write 4 bytes [21:41:51]NVStorageSaveData done [21:41:51]ExternCall_PrintAddStr [21:41:51]wPrintStart [21:41:51]Write to MH i2c: 01 00 00 9A 51 EB [21:41:51]Write i2c OK [21:41:51]MH_I2C_Read... [21:41:51]Read from MH i2c: 01 [21:41:51]MH_I2C_Read... [21:41:51]Read from MH i2c: 01 07 00 [21:41:51]MH_I2C_Read... [21:41:51]Read from MH i2c: 01 07 00 9A 51 00 00 00 00 00 FF 0F 00 [21:41:51]RasterBufferAndPrint [21:41:51]line Счет N : (1)1106347 [21:41:51]line ИНН: 02508201610067 [21:41:51]line Контрольно-Кассовый Чек [21:41:51]line ПРОДАЖА [21:41:51]line ТРК (МРК, ГНК) : 52 [21:41:51]line Товар: 2710124130 [21:41:51]line Аи-92-К-5 [21:41:51]line 4.850 * 61.90 [21:41:51]line = 300.22 [21:41:51]line НДС 12% НСП 1% [21:41:51]line > о реализуемом товаре [21:41:51]line ОКРУГЛЕНИЕ: -0.22 [21:41:51]line ИТОГО: 300.00 [21:41:51]line Внесено: 300.00 [21:41:51]line СДАЧА: 0.00 [21:41:51]line НСП 1% : 2.66 [21:41:51]line НДС 12% : 31.88 [21:41:51]line Наличными: 300.00 [21:41:51]line Безнал.: 0.00 [21:41:51]line Место: АЗС № 25 "Партнер Нефть" [21:41:51]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [21:41:51]line СНО: Общий режим [21:41:51]line Чек 222 03.03.2024 21:41 [21:41:51]line Смена: 323 ФФД: 1.0 [21:41:51]line ЗНМ: 0300000019 [21:41:51]line РНМ: 0000000000090573 [21:41:51]line Версия ККМ: 001 [21:41:51]line ФМ: 0000000000874798 [21:41:51]line ФД: 123365 [21:41:51]line ФПД: 201769431271617 [21:41:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T214154&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123365&fm=201769431271617&tin=02508201610067®Number=0000000000090573&sum=30000 [21:41:51]OFD Sender: Processing packet 123365 [packets to send 112, broken 111] [21:41:51]ProducePacketName [21:41:51]name=ofd_packets/00123365 [21:41:51]OFD Sender: To server: pG, [21:41:51]CommunicateWithHost lk.salyk.kg:30040 [21:41:51]ConnectInit lk.salyk.kg [21:41:51]written 0, free lines is 4095 [21:41:51]Connected sock=10 [21:41: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 37 39 38 0F 01 00 00 4F 33 07 01 13 E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 12 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 46 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 74 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 DE 00 00 00 F4 03 04 00 A2 EE E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 E5 E1 01 00 35 04 06 00 B7 82 1B 47 08 C1 09 AE 41 29 6B 83 38 E6 [21:41:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 C7 35 47 00 FE 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 37 39 38 10 04 04 00 E5 E1 01 00 F4 03 04 00 CD 9A E4 65 B6 04 01 00 00 C6 1C 3E 07 15 32 B4 FF [21:41:51]CommunicateWithHost err = 0 [21:41:51]CheckOFDResponse [21:41:51]1017 (14) - 77093643461234 [21:41:51]1041 (16) - 0000000000874798 [21:41:51]1040 (4) - 123365 [21:41:51]1012 (4) - 03.03.2024 15:44 [21:41:51]1206 (1) - 0 [21:41:51]OFD Sender: Remove packet 123365 [21:41:51]ProducePacketName [21:41:51]name=ofd_packets/00123365 [21:41:51]NVStorageDeleteData [21:41:51]Write to MH i2c: 01 00 00 C5 51 16 [21:41:51]Write i2c OK [21:41:51]MH_I2C_Read... [21:41:51]Read from MH i2c: 01 [21:41:51]MH_I2C_Read... [21:41:51]Read from MH i2c: 01 07 00 [21:41:51]MH_I2C_Read... [21:41:51]Read from MH i2c: 01 07 00 C5 51 00 00 00 00 00 FC 0C 25 [21:41:51]RasterBufferAndPrint [21:41:51]line [21:41:51]line [21:41:51]line [21:41:51]line [21:41:51]line [21:41:51]written 0, free lines is 3333 [21:41:51]MH_Cut [21:41:51]Write to MH i2c: D1 01 00 CC 51 01 EF [21:41:51]Write i2c OK [21:41:51]MH_I2C_Read... [21:41:51]Read from MH i2c: D1 [21:41:51]MH_I2C_Read... [21:41:51]Read from MH i2c: D1 01 00 [21:41:51]MH_I2C_Read... [21:41:51]Read from MH i2c: D1 01 00 CC 51 00 EE [21:41:51]Write to MH i2c: 01 00 00 CD 51 1E [21:41:51]Write i2c OK [21:41:51]MH_I2C_Read... [21:41:52]OFD Sender: No OFD packet to send [21:41:52]*** Cut start [21:41:52]*** Purtial cut [21:41:52]*** Stage 1: CUTSNS_PIN = 1 [21:41:54]Read from MH i2c: 01 [21:41:54]MH_I2C_Read... [21:41:54]*** Stop cut motor [21:41:54]*** Cut end [21:41:54]Read from MH i2c: 01 07 00 [21:41:54]MH_I2C_Read... [21:41:54]Read from MH i2c: 01 07 00 CD 51 00 00 00 00 00 FF 0F 33 [21:41:54]process_action close_receipt done [21:41:54]requested_data is exist [21:41:54]produce_requested_data [21:41:54]requested_item fm.sn is exist - process it [21:41:54]wFMCommunicate request_size=4 [21:41:54]MH_SAM_APDU [21:41:54]CAPDU: 80 11 00 00 [21:41:54]Write to MH i2c: E2 08 00 CE 51 80 11 00 00 00 00 00 00 99 [21:41:54]Write i2c OK [21:41:54]MH_I2C_Read... [21:41:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:41:54]Read from MH i2c: E2 [21:41:54]MH_I2C_Read... [21:41:54]Read from MH i2c: E2 17 00 [21:41:54]MH_I2C_Read... [21:41:54]Read from MH i2c: E2 17 00 CE 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 F7 [21:41:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [21:41:54]wFMCommunicate OK [21:41:54]requested_item fd.num is exist - process it [21:41:54]SAM_PROTO_GetFieldsCounters [21:41:54]wFMCommunicate request_size=4 [21:41:54]MH_SAM_APDU [21:41:54]CAPDU: 80 13 00 00 [21:41:54]Write to MH i2c: E2 08 00 CF 51 80 13 00 00 00 00 00 00 9C [21:41:54]Write i2c OK [21:41:54]MH_I2C_Read... [21:41:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:41:54]Read from MH i2c: E2 [21:41:54]MH_I2C_Read... [21:41:54]Read from MH i2c: E2 62 00 [21:41:54]MH_I2C_Read... [21:41:54]Read from MH i2c: E2 62 00 CF 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 E5 E1 01 00 0E 04 04 00 43 01 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 [21:41:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 E5 E1 01 00 0E 04 04 00 43 01 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 [21:41:54]wFMCommunicate OK [21:41:54]SAM_PROTO_GetFieldsCounters done [21:41:54]requested_item shift.num is exist - process it [21:41:54]requested_item shift.opened is exist - process it [21:41:54]req_shift_opened [21:41:54]FM_GetShiftState [21:41:54]SAM_PROTO_GetShiftState [21:41:54]wFMCommunicate request_size=4 [21:41:54]MH_SAM_APDU [21:41:54]CAPDU: 80 13 01 00 [21:41:54]Write to MH i2c: E2 08 00 D0 51 80 13 01 00 00 00 00 00 9E [21:41:54]Write i2c OK [21:41:54]MH_I2C_Read... [21:41:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:41:54]Read from MH i2c: E2 [21:41:54]MH_I2C_Read... [21:41:54]Read from MH i2c: E2 0E 00 [21:41:54]MH_I2C_Read... [21:41:54]Read from MH i2c: E2 0E 00 D0 51 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 60 [21:41:54]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [21:41:54]wFMCommunicate OK [21:41:54]SAM_PROTO_GetShiftState done [21:41:54]FM_GetShiftState done [21:41:54]req_shift_opened done [21:41:54]requested_item shift.open_date is exist - process it [21:41:54]req_shift_open_date [21:41:54]req_shift_open_date done [21:41:54]produce_requested_data done [21:41:54]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123365,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [21:41:54]process_action_free close_receipt [21:41:54]json_value_free [21:41:54]json_value_free done [21:41:54]process_json_proto returns [21:41:54]Send response to host [21:41:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123365,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [21:41:54]free response buf [21:41:54]execute_script done [21:41:54]execute_script returns [21:41:54]free content buf [21:41:54]Sock 9.Close socket [21:41:54]Sock 9.Thread stoped [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:27]OFD Sender: No OFD packet to send [21:43:32]OFD Sender: No OFD packet to send [21:43:37]OFD Sender: No OFD packet to send [21:43:42]OFD Sender: No OFD packet to send [21:43:47]OFD Sender: No OFD packet to send [21:43:52]OFD Sender: No OFD packet to send [21:43:57]OFD Sender: No OFD packet to send [21:44:02]OFD Sender: No OFD packet to send [21:44:07]OFD Sender: No OFD packet to send [21:44:12]OFD Sender: No OFD packet to send [21:44:17]OFD Sender: No OFD packet to send [21:44:22]OFD Sender: No OFD packet to send [21:44:27]OFD Sender: No OFD packet to send [21:44:32]OFD Sender: No OFD packet to send [21:44:37]OFD Sender: No OFD packet to send [21:44:42]OFD Sender: No OFD packet to send [21:44:47]OFD Sender: No OFD packet to send [21:44:52]OFD Sender: No OFD packet to send [21:44:57]OFD Sender: No OFD packet to send [21:45:02]OFD Sender: No OFD packet to send [21:45:07]OFD Sender: No OFD packet to send [21:45:12]OFD Sender: No OFD packet to send [21:45:17]OFD Sender: No OFD packet to send [21:45:22]OFD Sender: No OFD packet to send [21:45:27]OFD Sender: No OFD packet to send [21:45:32]OFD Sender: No OFD packet to send [21:45:37]OFD Sender: No OFD packet to send [21:45:42]OFD Sender: No OFD packet to send [21:45:47]OFD Sender: No OFD packet to send [21:45:48]accept exits with 7 [21:45:48]New connection [21:45:48]New thread 3067252068 created [21:45:48]Thread 3067395428 joined [21:45:48]Waiting for new connection... [21:45:48] Sock 7.Parse request [21:45:48]Sock 7.Check first char [21:45:48]Sock 7.First char is OK [21:45:48]request: POST /json_proto HTTP/1.0 [21:45:48]Method: POST [21:45:48]URL: /json_proto [21:45:48]Method is POST - this is cgi request [21:45:48]url: /json_proto [21:45:48]query_string will be loaded in cgi processing [21:45:48]execute_cgi json_proto POST (null) [21:45:48]execute_cgi path=json_proto method=POST [21:45:48]POST find Content-Length [21:45:48]Host: 172.17.48.197:8080 [21:45:48]Content-Length: 817 [21:45:48]Content-Type: application/json [21:45:48] [21:45:48]POST finish read [21:45:48]Found Content-Length = 817 [21:45:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106348", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 7.200, "sum" : 500.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:45:48]execute_script... [21:45:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106348", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 7.200, "sum" : 500.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:45:48]POST & json_proto [21:45:48]process_json_proto [21:45:48]json parsed OK: [21:45:48]protocol is kg_v1.0 [21:45:48]action value=close_receipt [21:45:48]process_action close_receipt [21:45:48]cmd_close_receipt [21:45:48]MH_GetDate [21:45:48]Write to MH i2c: F0 00 00 D1 51 11 [21:45:48]Write i2c OK [21:45:48]MH_I2C_Read... [21:45:48]Read from MH i2c: F0 [21:45:48]MH_I2C_Read... [21:45:48]Read from MH i2c: F0 09 00 [21:45:48]MH_I2C_Read... [21:45:48]Read from MH i2c: F0 09 00 D1 51 00 91 EF E4 65 6C AF E3 65 46 [21:45:48]GetLastDocTimeStamp 1709502114 [21:45:48]current date 1709502353 [21:45:48]FM_GetShiftState [21:45:48]SAM_PROTO_GetShiftState [21:45:48]wFMCommunicate request_size=4 [21:45:48]MH_SAM_APDU [21:45:48]CAPDU: 80 13 01 00 [21:45:48]Write to MH i2c: E2 08 00 D2 51 80 13 01 00 00 00 00 00 A0 [21:45:48]Write i2c OK [21:45:48]MH_I2C_Read... [21:45:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:45:48]Read from MH i2c: E2 [21:45:48]MH_I2C_Read... [21:45:48]Read from MH i2c: E2 0E 00 [21:45:48]MH_I2C_Read... [21:45:48]Read from MH i2c: E2 0E 00 D2 51 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 62 [21:45:48]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [21:45:48]wFMCommunicate OK [21:45:48]SAM_PROTO_GetShiftState done [21:45:48]FM_GetShiftState done [21:45:48]opened in 1709425579 [21:45:48]opened+sec_in_day 1709511979 [21:45:48]quantity*price = 50040 [21:45:48]sum+1 = 50041 [21:45:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.40 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.40 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 223 03.03.2024 21:45 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874798 ФД: 123366 ФПД: 1693612901850 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T214553&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123366&fm=1693612901850&tin=02508201610067®Number=0000000000090573&sum=50040 [21:45:49]StoreToDocumentArchive [21:45:49]shift 323 fd 123366 [21:45:49]save to /storage/0323/doc_00123366 [21:45:49]save last doc name /storage/0323/doc_00123366 to /storage/kkm_last_doc_name [21:45:49]save OK [21:45:49]Clear old archive folders... [21:45:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:45:49]tlvbuf is 00DB3B50 [21:45:49]SAM_PROTO_ClearQueue [21:45:49]wFMCommunicate request_size=4 [21:45:49]MH_SAM_APDU [21:45:49]CAPDU: 80 09 00 00 [21:45:49]Write to MH i2c: E2 08 00 DF 51 80 09 00 00 00 00 00 00 A2 [21:45:49]Write i2c OK [21:45:49]MH_I2C_Read... [21:45:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:45:49]Read from MH i2c: E2 [21:45:49]MH_I2C_Read... [21:45:49]Read from MH i2c: E2 03 00 [21:45:49]MH_I2C_Read... [21:45:49]Read from MH i2c: E2 03 00 DF 51 00 90 00 A4 [21:45:49]RAPDU: 90 00 [21:45:49]wFMCommunicate OK [21:45:49]SAM_PROTO_ClearQueue done [21:45:49]KKMCreateOFDPacket [21:45:49]OFDProtocolAddRootSTLVToBuf [21:45:49]FM_MakeSignedData [21:45:49]FM_MakeSignedData [21:45:49]SAM_PROTO_SignData [21:45:49]wFMCommunicate request_size=4 [21:45:49]MH_SAM_APDU [21:45:49]CAPDU: 80 0D 01 02 [21:45:49]Write to MH i2c: E2 08 00 E0 51 80 0D 01 02 00 00 00 00 AA [21:45:49]Write i2c OK [21:45:49]MH_I2C_Read... [21:45:49]Read from MH i2c: E2 [21:45:49]MH_I2C_Read... [21:45:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:45:49]Read from MH i2c: E2 03 00 [21:45:49]MH_I2C_Read... [21:45:49]Read from MH i2c: E2 03 00 E0 51 00 90 00 A5 [21:45:49]RAPDU: 90 00 [21:45:49]wFMCommunicate OK [21:45:49]wFMCommunicate request_size=255 [21:45:49]MH_SAM_APDU [21:45:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 1C 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 78 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 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 78 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 91 EF E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 E6 E1 01 00 35 04 06 00 01 [21:45:49]Write to MH i2c: E2 02 01 E1 51 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 1C 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 78 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 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 78 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 91 EF E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 E6 E1 01 00 35 04 06 00 01 00 00 37 [21:45:49]Write i2c OK [21:45:49]MH_I2C_Read... [21:45:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:45:50]Read from MH i2c: E2 [21:45:50]MH_I2C_Read... [21:45:50]Read from MH i2c: E2 03 00 [21:45:50]MH_I2C_Read... [21:45:50]Read from MH i2c: E2 03 00 E1 51 00 90 00 A6 [21:45:50]RAPDU: 90 00 [21:45:50]wFMCommunicate OK [21:45:50]wFMCommunicate request_size=10 [21:45:50]MH_SAM_APDU [21:45:50]CAPDU: 80 0D 02 02 05 8A 53 32 05 DA [21:45:50]Write to MH i2c: E2 0D 00 E2 51 80 0D 02 02 05 00 8A 53 32 05 DA 00 00 A5 [21:45:50]Write i2c OK [21:45:50]MH_I2C_Read... [21:45:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:45:50]Read from MH i2c: E2 [21:45:50]MH_I2C_Read... [21:45:50]Read from MH i2c: E2 03 00 [21:45:50]MH_I2C_Read... [21:45:50]Read from MH i2c: E2 03 00 E2 51 00 90 00 A7 [21:45:50]RAPDU: 90 00 [21:45:50]wFMCommunicate OK [21:45:50]wFMCommunicate request_size=4 [21:45:50]MH_SAM_APDU [21:45:50]CAPDU: 80 0D 03 02 [21:45:50]Write to MH i2c: E2 08 00 E3 51 80 0D 03 02 00 00 00 00 AF [21:45:50]Write i2c OK [21:45:50]MH_I2C_Read... [21:45:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:45:50]Read from MH i2c: E2 [21:45:50]MH_I2C_Read... [21:45:50]Read from MH i2c: E2 0B 00 [21:45:50]MH_I2C_Read... [21:45:50]Read from MH i2c: E2 0B 00 E3 51 00 8C 4E DD 2B FC 7A AE 64 90 00 1A [21:45:50]RAPDU: 8C 4E DD 2B FC 7A AE 64 90 00 [21:45:50]wFMCommunicate OK [21:45:50]SAM_PROTO_SignData done [21:45:50]FM_MakeSignedData done [21:45:50]CreateOFDProtocolMessage [21:45:50]wFMCommunicate request_size=4 [21:45:50]MH_SAM_APDU [21:45:50]CAPDU: 80 11 00 00 [21:45:50]Write to MH i2c: E2 08 00 E4 51 80 11 00 00 00 00 00 00 AF [21:45:50]Write i2c OK [21:45:50]MH_I2C_Read... [21:45:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:45:50]Read from MH i2c: E2 [21:45:50]MH_I2C_Read... [21:45:50]Read from MH i2c: E2 17 00 [21:45:50]MH_I2C_Read... [21:45:50]Read from MH i2c: E2 17 00 E4 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 0D [21:45:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [21:45:50]wFMCommunicate OK [21:45:50]CreateOFDProtocolMessage done [21:45:50]OFDSenderStorePacket 123366 [21:45:50]StoreOFDPacket docnum=123366 [21:45:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 45 B2 07 01 44 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 1C 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 78 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 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 78 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 91 EF E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 E6 E1 01 00 35 04 06 00 01 8A 53 32 05 DA 8C 4E DD 2B FC 7A AE 64 [21:45:50]CheckFolder [21:45:50]dirname=/storage/ofd_packets [21:45:50]CheckFolder done [21:45:50]ProducePacketName [21:45:50]name=ofd_packets/00123366 [21:45:50]NVStorageSaveData ofd_packets/00123366 [21:45:50]File name is /storage/ofd_packets/00123366 [21:45:50]Write 301 bytes [21:45:50]NVStorageSaveData done [21:45:50]OFDSenderStorePacket done [21:45:50]KKMCreateOFDPacket done [21:45:50]NVStorageSaveData kkm_last_timestamp [21:45:50]File name is /storage/kkm_last_timestamp [21:45:50]Write 4 bytes [21:45:50]NVStorageSaveData done [21:45:50]ExternCall_PrintAddStr [21:45:50]wPrintStart [21:45:50]Write to MH i2c: 01 00 00 E5 51 36 [21:45:50]Write i2c OK [21:45:50]MH_I2C_Read... [21:45:50]Read from MH i2c: 01 [21:45:50]MH_I2C_Read... [21:45:50]Read from MH i2c: 01 07 00 [21:45:50]MH_I2C_Read... [21:45:50]Read from MH i2c: 01 07 00 E5 51 00 00 00 00 00 FF 0F 4B [21:45:50]RasterBufferAndPrint [21:45:50]line Счет N : (1)1106348 [21:45:50]line ИНН: 02508201610067 [21:45:50]line Контрольно-Кассовый Чек [21:45:50]line ПРОДАЖА [21:45:50]line ТРК (МРК, ГНК) : 13 [21:45:50]line Товар: 2710124500 [21:45:50]line Аи-95-К-5 [21:45:50]line 7.200 * 69.50 [21:45:50]line = 500.40 [21:45:50]line НДС 12% НСП 1% [21:45:50]line > о реализуемом товаре [21:45:50]line ИТОГО: 500.40 [21:45:50]line НСП 1% : 4.43 [21:45:50]line НДС 12% : 53.14 [21:45:50]line Наличными: 0.00 [21:45:50]line Безнал.: 500.40 [21:45:50]line Место: АЗС № 25 "Партнер Нефть" [21:45:50]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [21:45:50]line СНО: Общий режим [21:45:50]line Чек 223 03.03.2024 21:45 [21:45:50]line Смена: 323 ФФД: 1.0 [21:45:50]line ЗНМ: 0300000019 [21:45:50]line РНМ: 0000000000090573 [21:45:50]line Версия ККМ: 001 [21:45:50]line Платежная система: Бакай Банк [21:45:50]line ФМ: 0000000000874798 [21:45:50]line ФД: 123366 [21:45:50]line ФПД: 1693612901850 [21:45:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T214553&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123366&fm=1693612901850&tin=02508201610067®Number=0000000000090573&sum=50040 [21:45:50]OFD Sender: Processing packet 123366 [packets to send 112, broken 111] [21:45:50]ProducePacketName [21:45:50]name=ofd_packets/00123366 [21:45:50]OFD Sender: To server: pG, [21:45:50]CommunicateWithHost lk.salyk.kg:30040 [21:45:50]ConnectInit lk.salyk.kg [21:45:50]written 0, free lines is 4095 [21:45:50]Connected sock=10 [21: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 37 39 38 0F 01 00 00 45 B2 07 01 44 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 1C 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 78 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 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 78 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 91 EF E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 E6 E1 01 00 35 04 06 00 01 8A 53 32 05 DA 8C 4E DD 2B FC 7A AE 64 [21: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 37 39 38 4F 00 00 00 8B 94 47 00 25 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 37 39 38 10 04 04 00 E6 E1 01 00 F4 03 04 00 BC 9B E4 65 B6 04 01 00 00 81 A7 C8 17 C0 9B 86 D3 [21:45:50]CommunicateWithHost err = 0 [21:45:50]CheckOFDResponse [21:45:50]1017 (14) - 77093643461234 [21:45:50]1041 (16) - 0000000000874798 [21:45:50]1040 (4) - 123366 [21:45:50]1012 (4) - 03.03.2024 15:48 [21:45:50]1206 (1) - 0 [21:45:50]OFD Sender: Remove packet 123366 [21:45:50]ProducePacketName [21:45:50]name=ofd_packets/00123366 [21:45:50]NVStorageDeleteData [21:45:51]Write to MH i2c: 01 00 00 0F 52 61 [21:45:51]Write i2c OK [21:45:51]MH_I2C_Read... [21:45:51]Read from MH i2c: 01 [21:45:51]MH_I2C_Read... [21:45:51]Read from MH i2c: 01 07 00 [21:45:51]MH_I2C_Read... [21:45:51]Read from MH i2c: 01 07 00 0F 52 00 00 00 00 00 F9 0C 6D [21:45:51]RasterBufferAndPrint [21:45:51]line [21:45:51]line [21:45:51]line [21:45:51]line [21:45:51]line [21:45:51]written 0, free lines is 3327 [21:45:51]MH_Cut [21:45:51]Write to MH i2c: D1 01 00 16 52 01 3A [21:45:51]Write i2c OK [21:45:51]MH_I2C_Read... [21:45:51]Read from MH i2c: D1 [21:45:51]MH_I2C_Read... [21:45:51]Read from MH i2c: D1 01 00 [21:45:51]MH_I2C_Read... [21:45:51]Read from MH i2c: D1 01 00 16 52 00 39 [21:45:51]Write to MH i2c: 01 00 00 17 52 69 [21:45:51]Write i2c OK [21:45:51]MH_I2C_Read... [21:45:51]OFD Sender: No OFD packet to send [21:45:51]*** Cut start [21:45:51]*** Purtial cut [21:45:51]*** Stage 1: CUTSNS_PIN = 1 [21:45:53]Read from MH i2c: 01 [21:45:53]MH_I2C_Read... [21:45:53]*** Stop cut motor [21:45:53]*** Cut end [21:45:53]Read from MH i2c: 01 07 00 [21:45:53]MH_I2C_Read... [21:45:53]Read from MH i2c: 01 07 00 17 52 00 00 00 00 00 FF 0F 7E [21:45:53]process_action close_receipt done [21:45:53]requested_data is exist [21:45:53]produce_requested_data [21:45:53]requested_item fm.sn is exist - process it [21:45:53]wFMCommunicate request_size=4 [21:45:53]MH_SAM_APDU [21:45:53]CAPDU: 80 11 00 00 [21:45:53]Write to MH i2c: E2 08 00 18 52 80 11 00 00 00 00 00 00 E4 [21:45:53]Write i2c OK [21:45:53]MH_I2C_Read... [21:45:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:45:53]Read from MH i2c: E2 [21:45:53]MH_I2C_Read... [21:45:53]Read from MH i2c: E2 17 00 [21:45:53]MH_I2C_Read... [21:45:53]Read from MH i2c: E2 17 00 18 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 42 [21:45:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [21:45:53]wFMCommunicate OK [21:45:53]requested_item fd.num is exist - process it [21:45:53]SAM_PROTO_GetFieldsCounters [21:45:53]wFMCommunicate request_size=4 [21:45:53]MH_SAM_APDU [21:45:53]CAPDU: 80 13 00 00 [21:45:53]Write to MH i2c: E2 08 00 19 52 80 13 00 00 00 00 00 00 E7 [21:45:53]Write i2c OK [21:45:53]MH_I2C_Read... [21:45:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:45:54]Read from MH i2c: E2 [21:45:54]MH_I2C_Read... [21:45:54]Read from MH i2c: E2 62 00 [21:45:54]MH_I2C_Read... [21:45:54]Read from MH i2c: E2 62 00 19 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 E6 E1 01 00 0E 04 04 00 43 01 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 BB [21:45: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 E6 E1 01 00 0E 04 04 00 43 01 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 [21:45:54]wFMCommunicate OK [21:45:54]SAM_PROTO_GetFieldsCounters done [21:45:54]requested_item shift.num is exist - process it [21:45:54]requested_item shift.opened is exist - process it [21:45:54]req_shift_opened [21:45:54]FM_GetShiftState [21:45:54]SAM_PROTO_GetShiftState [21:45:54]wFMCommunicate request_size=4 [21:45:54]MH_SAM_APDU [21:45:54]CAPDU: 80 13 01 00 [21:45:54]Write to MH i2c: E2 08 00 1A 52 80 13 01 00 00 00 00 00 E9 [21:45:54]Write i2c OK [21:45:54]MH_I2C_Read... [21:45:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:45:54]Read from MH i2c: E2 [21:45:54]MH_I2C_Read... [21:45:54]Read from MH i2c: E2 0E 00 [21:45:54]MH_I2C_Read... [21:45:54]Read from MH i2c: E2 0E 00 1A 52 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 AB [21:45:54]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [21:45:54]wFMCommunicate OK [21:45:54]SAM_PROTO_GetShiftState done [21:45:54]FM_GetShiftState done [21:45:54]req_shift_opened done [21:45:54]requested_item shift.open_date is exist - process it [21:45:54]req_shift_open_date [21:45:54]req_shift_open_date done [21:45:54]produce_requested_data done [21:45:54]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123366,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [21:45:54]process_action_free close_receipt [21:45:54]json_value_free [21:45:54]json_value_free done [21:45:54]process_json_proto returns [21:45:54]Send response to host [21:45:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123366,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [21:45:54]free response buf [21:45:54]execute_script done [21:45:54]execute_script returns [21:45:54]free content buf [21:45:54]Sock 7.Close socket [21:45:54]Sock 7.Thread stoped [21:45:56]OFD Sender: No OFD packet to send [21:46:01]OFD Sender: No OFD packet to send [21:46:06]OFD Sender: No OFD packet to send [21:46:11]OFD Sender: No OFD packet to send [21:46:16]OFD Sender: No OFD packet to send [21:46:21]OFD Sender: No OFD packet to send [21:46:26]OFD Sender: No OFD packet to send [21:46:31]OFD Sender: No OFD packet to send [21:46:36]OFD Sender: No OFD packet to send [21:46:41]OFD Sender: No OFD packet to send [21:46:46]OFD Sender: No OFD packet to send [21:46:51]OFD Sender: No OFD packet to send [21:46:56]OFD Sender: No OFD packet to send [21:47:01]OFD Sender: No OFD packet to send [21:47:06]OFD Sender: No OFD packet to send [21:47:11]OFD Sender: No OFD packet to send [21:47:16]OFD Sender: No OFD packet to send [21:47:21]OFD Sender: No OFD packet to send [21:47:26]OFD Sender: No OFD packet to send [21:47:31]OFD Sender: No OFD packet to send [21:47:36]OFD Sender: No OFD packet to send [21:47:41]OFD Sender: No OFD packet to send [21:47:46]OFD Sender: No OFD packet to send [21:47:51]OFD Sender: No OFD packet to send [21:47:56]OFD Sender: No OFD packet to send [21:48:01]OFD Sender: No OFD packet to send [21:48:06]OFD Sender: No OFD packet to send [21:48:11]OFD Sender: No OFD packet to send [21:48:16]OFD Sender: No OFD packet to send [21:48:21]OFD Sender: No OFD packet to send [21:48:26]OFD Sender: No OFD packet to send [21:48:31]OFD Sender: No OFD packet to send [21:48:36]OFD Sender: No OFD packet to send [21:48:41]OFD Sender: No OFD packet to send [21:48:41]accept exits with 9 [21:48:41]New connection [21:48:41]New thread 3067395428 created [21:48:41]Thread 3067252068 joined [21:48:41]Waiting for new connection... [21:48:41] Sock 9.Parse request [21:48:41]Sock 9.Check first char [21:48:41]Sock 9.First char is OK [21:48:41]request: POST /json_proto HTTP/1.0 [21:48:41]Method: POST [21:48:41]URL: /json_proto [21:48:41]Method is POST - this is cgi request [21:48:41]url: /json_proto [21:48:41]query_string will be loaded in cgi processing [21:48:41]execute_cgi json_proto POST (null) [21:48:41]execute_cgi path=json_proto method=POST [21:48:41]POST find Content-Length [21:48:41]Host: 172.17.48.197:8080 [21:48:41]Content-Length: 1217 [21:48:41]Content-Type: application/json [21:48:41] [21:48:41]POST finish read [21:48:41]Found Content-Length = 1217 [21:48:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106350\u000A03.03.2024 21:45\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 619.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3860623\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:48:41]execute_script... [21:48:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106350\u000A03.03.2024 21:45\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 619.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3860623\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:48:41]POST & json_proto [21:48:41]process_json_proto [21:48:41]json parsed OK: [21:48:41]protocol is kg_v1.0 [21:48:41]action value=print_text [21:48:41]process_action print_text [21:48:41]cmd_print_text [21:48:41]ExternCall_PrintAddStr [21:48:41]wPrintStart [21:48:41]Write to MH i2c: 01 00 00 1B 52 6D [21:48:41]Write i2c OK [21:48:41]MH_I2C_Read... [21:48:41]Read from MH i2c: 01 [21:48:41]MH_I2C_Read... [21:48:41]Read from MH i2c: 01 07 00 [21:48:41]MH_I2C_Read... [21:48:41]Read from MH i2c: 01 07 00 1B 52 00 00 00 00 00 FF 0F 82 [21:48:41]RasterBufferAndPrint [21:48:41]line *****ТОВАРНЫЙ ЧЕК***** [21:48:41]line АЗС 25 [21:48:41]line Партнер нефть [21:48:41]line 02508201610067 [21:48:41]line Кассир : Турдумбек у. К. [21:48:41]line Счет N : (1)1106350 [21:48:41]line 03.03.2024 21:45 [21:48:41]line ПРОДАЖА [21:48:41]line ТРК (МРК, ГНК): 11 [21:48:41]line Вид ГСМ : 2710124130 [21:48:41]line Аи-92-К-5 [21:48:41]line 10.000 x 61.90 [21:48:41]line ИТОГ: 619.00 [21:48:41]line Тип оплаты: Талоны: Топливные Талоны [21:48:41]line 3860623 [21:48:41]line ______________________ [21:48:41]line (подпись) [21:48:41]written 0, free lines is 4095 [21:48:42]Write to MH i2c: 01 00 00 30 52 82 [21:48:42]Write i2c OK [21:48:42]MH_I2C_Read... [21:48:42]Read from MH i2c: 01 [21:48:42]MH_I2C_Read... [21:48:42]Read from MH i2c: 01 07 00 [21:48:42]MH_I2C_Read... [21:48:42]Read from MH i2c: 01 07 00 30 52 00 00 00 00 00 F4 0D 8A [21:48:42]RasterBufferAndPrint [21:48:42]line [21:48:42]line [21:48:42]line [21:48:42]line [21:48:42]line [21:48:42]written 0, free lines is 3574 [21:48:42]MH_Cut [21:48:42]Write to MH i2c: D1 01 00 37 52 01 5B [21:48:42]Write i2c OK [21:48:42]MH_I2C_Read... [21:48:42]Read from MH i2c: D1 [21:48:42]MH_I2C_Read... [21:48:42]Read from MH i2c: D1 01 00 [21:48:42]MH_I2C_Read... [21:48:42]Read from MH i2c: D1 01 00 37 52 00 5A [21:48:42]Write to MH i2c: 01 00 00 38 52 8A [21:48:42]Write i2c OK [21:48:42]MH_I2C_Read... [21:48:42]*** Cut start [21:48:42]*** Purtial cut [21:48:42]*** Stage 1: CUTSNS_PIN = 1 [21:48:44]Read from MH i2c: 01 [21:48:44]MH_I2C_Read... [21:48:44]*** Stop cut motor [21:48:44]*** Cut end [21:48:44]Read from MH i2c: 01 07 00 [21:48:44]MH_I2C_Read... [21:48:44]Read from MH i2c: 01 07 00 38 52 00 00 00 00 00 FF 0F 9F [21:48:44]process_action print_text done [21:48:44]requested_data is exist [21:48:44]produce_requested_data [21:48:44]requested_item fm.sn is exist - process it [21:48:44]wFMCommunicate request_size=4 [21:48:44]MH_SAM_APDU [21:48:44]CAPDU: 80 11 00 00 [21:48:44]Write to MH i2c: E2 08 00 39 52 80 11 00 00 00 00 00 00 05 [21:48:44]Write i2c OK [21:48:44]MH_I2C_Read... [21:48:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:48:44]Read from MH i2c: E2 [21:48:44]MH_I2C_Read... [21:48:44]Read from MH i2c: E2 17 00 [21:48:44]MH_I2C_Read... [21:48:44]Read from MH i2c: E2 17 00 39 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 63 [21:48:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [21:48:44]wFMCommunicate OK [21:48:44]requested_item fd.num is exist - process it [21:48:44]SAM_PROTO_GetFieldsCounters [21:48:44]wFMCommunicate request_size=4 [21:48:44]MH_SAM_APDU [21:48:44]CAPDU: 80 13 00 00 [21:48:44]Write to MH i2c: E2 08 00 3A 52 80 13 00 00 00 00 00 00 08 [21:48:44]Write i2c OK [21:48:44]MH_I2C_Read... [21:48:44]Read from MH i2c: E2 [21:48:44]MH_I2C_Read... [21:48:44]Read from MH i2c: E2 62 00 [21:48:44]MH_I2C_Read... [21:48:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:48:44]Read from MH i2c: E2 62 00 3A 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 E6 E1 01 00 0E 04 04 00 43 01 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 DC [21:48: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 E6 E1 01 00 0E 04 04 00 43 01 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 [21:48:44]wFMCommunicate OK [21:48:44]SAM_PROTO_GetFieldsCounters done [21:48:44]requested_item shift.num is exist - process it [21:48:44]requested_item shift.opened is exist - process it [21:48:44]req_shift_opened [21:48:44]FM_GetShiftState [21:48:44]SAM_PROTO_GetShiftState [21:48:44]wFMCommunicate request_size=4 [21:48:44]MH_SAM_APDU [21:48:44]CAPDU: 80 13 01 00 [21:48:44]Write to MH i2c: E2 08 00 3B 52 80 13 01 00 00 00 00 00 0A [21:48:44]Write i2c OK [21:48:44]MH_I2C_Read... [21:48:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:48:44]Read from MH i2c: E2 [21:48:44]MH_I2C_Read... [21:48:44]Read from MH i2c: E2 0E 00 [21:48:44]MH_I2C_Read... [21:48:44]Read from MH i2c: E2 0E 00 3B 52 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 CC [21:48:44]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [21:48:44]wFMCommunicate OK [21:48:44]SAM_PROTO_GetShiftState done [21:48:44]FM_GetShiftState done [21:48:44]req_shift_opened done [21:48:44]requested_item shift.open_date is exist - process it [21:48:44]req_shift_open_date [21:48:44]req_shift_open_date done [21:48:44]produce_requested_data done [21:48:44]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123366,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [21:48:44]process_action_free print_text [21:48:44]json_value_free [21:48:44]json_value_free done [21:48:44]process_json_proto returns [21:48:44]Send response to host [21:48:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123366,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [21:48:44]free response buf [21:48:44]execute_script done [21:48:44]execute_script returns [21:48:44]free content buf [21:48:44]Sock 9.Close socket [21:48:44]Sock 9.Thread stoped [21:48:45]accept exits with 7 [21:48:45]New connection [21:48:45]New thread 3067252068 created [21:48:45]Thread 3067395428 joined [21:48:45]Waiting for new connection... [21:48:45] Sock 7.Parse request [21:48:45]Sock 7.Check first char [21:48:45]Sock 7.First char is OK [21:48:45]request: POST /json_proto HTTP/1.0 [21:48:45]Method: POST [21:48:45]URL: /json_proto [21:48:45]Method is POST - this is cgi request [21:48:45]url: /json_proto [21:48:45]query_string will be loaded in cgi processing [21:48:45]execute_cgi json_proto POST (null) [21:48:45]execute_cgi path=json_proto method=POST [21:48:45]POST find Content-Length [21:48:45]Host: 172.17.48.197:8080 [21:48:45]Content-Length: 806 [21:48:45]Content-Type: application/json [21:48:45] [21:48:45]POST finish read [21:48:45]Found Content-Length = 806 [21:48:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106349", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 6.470, "sum" : 400.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 400.49 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:48:45]execute_script... [21:48:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106349", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 6.470, "sum" : 400.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 400.49 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:48:45]POST & json_proto [21:48:45]process_json_proto [21:48:45]json parsed OK: [21:48:45]protocol is kg_v1.0 [21:48:45]action value=close_receipt [21:48:45]process_action close_receipt [21:48:45]cmd_close_receipt [21:48:45]MH_GetDate [21:48:45]Write to MH i2c: F0 00 00 3C 52 7D [21:48:45]Write i2c OK [21:48:45]MH_I2C_Read... [21:48:45]Read from MH i2c: F0 [21:48:45]MH_I2C_Read... [21:48:45]Read from MH i2c: F0 09 00 [21:48:45]MH_I2C_Read... [21:48:45]Read from MH i2c: F0 09 00 3C 52 00 42 F0 E4 65 6C AF E3 65 64 [21:48:45]GetLastDocTimeStamp 1709502353 [21:48:45]current date 1709502530 [21:48:45]FM_GetShiftState [21:48:45]SAM_PROTO_GetShiftState [21:48:45]wFMCommunicate request_size=4 [21:48:45]MH_SAM_APDU [21:48:45]CAPDU: 80 13 01 00 [21:48:45]Write to MH i2c: E2 08 00 3D 52 80 13 01 00 00 00 00 00 0C [21:48:45]Write i2c OK [21:48:45]MH_I2C_Read... [21:48:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:48:45]Read from MH i2c: E2 [21:48:45]MH_I2C_Read... [21:48:45]Read from MH i2c: E2 0E 00 [21:48:45]MH_I2C_Read... [21:48:45]Read from MH i2c: E2 0E 00 3D 52 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 CE [21:48:45]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [21:48:45]wFMCommunicate OK [21:48:45]SAM_PROTO_GetShiftState done [21:48:45]FM_GetShiftState done [21:48:45]opened in 1709425579 [21:48:45]opened+sec_in_day 1709511979 [21:48:45]quantity*price = 40049 [21:48:45]sum+1 = 40050 [21:48:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.49 НСП 1% : 3.54 НДС 12% : 42.53 Наличными: 0.00 Безнал.: 400.49 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 224 03.03.2024 21:48 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874798 ФД: 123367 ФПД: 105574198984284 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T214850&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123367&fm=105574198984284&tin=02508201610067®Number=0000000000090573&sum=40049 [21:48:46]StoreToDocumentArchive [21:48:46]shift 323 fd 123367 [21:48:46]save to /storage/0323/doc_00123367 [21:48:46]save last doc name /storage/0323/doc_00123367 to /storage/kkm_last_doc_name [21:48:46]save OK [21:48:46]Clear old archive folders... [21:48:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:48:46]tlvbuf is 00E82A50 [21:48:46]SAM_PROTO_ClearQueue [21:48:46]wFMCommunicate request_size=4 [21:48:46]MH_SAM_APDU [21:48:46]CAPDU: 80 09 00 00 [21:48:46]Write to MH i2c: E2 08 00 4A 52 80 09 00 00 00 00 00 00 0E [21:48:46]Write i2c OK [21:48:46]MH_I2C_Read... [21:48:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:48:46]Read from MH i2c: E2 [21:48:46]MH_I2C_Read... [21:48:46]Read from MH i2c: E2 03 00 [21:48:46]MH_I2C_Read... [21:48:46]Read from MH i2c: E2 03 00 4A 52 00 90 00 10 [21:48:46]RAPDU: 90 00 [21:48:46]wFMCommunicate OK [21:48:46]SAM_PROTO_ClearQueue done [21:48:46]KKMCreateOFDPacket [21:48:46]OFDProtocolAddRootSTLVToBuf [21:48:46]FM_MakeSignedData [21:48:46]FM_MakeSignedData [21:48:46]SAM_PROTO_SignData [21:48:46]wFMCommunicate request_size=4 [21:48:46]MH_SAM_APDU [21:48:46]CAPDU: 80 0D 01 02 [21:48:46]Write to MH i2c: E2 08 00 4B 52 80 0D 01 02 00 00 00 00 16 [21:48:46]Write i2c OK [21:48:46]MH_I2C_Read... [21:48:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:48:46]Read from MH i2c: E2 [21:48:46]MH_I2C_Read... [21:48:46]Read from MH i2c: E2 03 00 [21:48:46]MH_I2C_Read... [21:48:46]Read from MH i2c: E2 03 00 4B 52 00 90 00 11 [21:48:46]RAPDU: 90 00 [21:48:46]wFMCommunicate OK [21:48:46]wFMCommunicate request_size=255 [21:48:46]MH_SAM_APDU [21:48:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 19 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 71 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 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 9D 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 42 F0 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 E7 E1 01 00 35 04 06 00 60 [21:48:46]Write to MH i2c: E2 02 01 4C 52 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 19 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 71 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 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 9D 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 42 F0 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 E7 E1 01 00 35 04 06 00 60 00 00 CE [21:48:46]Write i2c OK [21:48:46]MH_I2C_Read... [21:48:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:48:47]Read from MH i2c: E2 [21:48:47]MH_I2C_Read... [21:48:47]Read from MH i2c: E2 03 00 [21:48:47]MH_I2C_Read... [21:48:47]Read from MH i2c: E2 03 00 4C 52 00 90 00 12 [21:48:47]RAPDU: 90 00 [21:48:47]wFMCommunicate OK [21:48:47]wFMCommunicate request_size=10 [21:48:47]MH_SAM_APDU [21:48:47]CAPDU: 80 0D 02 02 05 04 E8 A0 BE 5C [21:48:47]Write to MH i2c: E2 0D 00 4D 52 80 0D 02 02 05 00 04 E8 A0 BE 5C 00 00 C9 [21:48:47]Write i2c OK [21:48:47]MH_I2C_Read... [21:48:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:48:47]Read from MH i2c: E2 [21:48:47]MH_I2C_Read... [21:48:47]Read from MH i2c: E2 03 00 [21:48:47]MH_I2C_Read... [21:48:47]Read from MH i2c: E2 03 00 4D 52 00 90 00 13 [21:48:47]RAPDU: 90 00 [21:48:47]wFMCommunicate OK [21:48:47]wFMCommunicate request_size=4 [21:48:47]MH_SAM_APDU [21:48:47]CAPDU: 80 0D 03 02 [21:48:47]Write to MH i2c: E2 08 00 4E 52 80 0D 03 02 00 00 00 00 1B [21:48:47]Write i2c OK [21:48:47]MH_I2C_Read... [21:48:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:48:47]Read from MH i2c: E2 [21:48:47]MH_I2C_Read... [21:48:47]Read from MH i2c: E2 0B 00 [21:48:47]MH_I2C_Read... [21:48:47]Read from MH i2c: E2 0B 00 4E 52 00 26 32 DC 12 64 4C B5 02 90 00 C9 [21:48:47]RAPDU: 26 32 DC 12 64 4C B5 02 90 00 [21:48:47]wFMCommunicate OK [21:48:47]SAM_PROTO_SignData done [21:48:47]FM_MakeSignedData done [21:48:47]CreateOFDProtocolMessage [21:48:47]wFMCommunicate request_size=4 [21:48:47]MH_SAM_APDU [21:48:47]CAPDU: 80 11 00 00 [21:48:47]Write to MH i2c: E2 08 00 4F 52 80 11 00 00 00 00 00 00 1B [21:48:47]Write i2c OK [21:48:47]MH_I2C_Read... [21:48:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:48:47]Read from MH i2c: E2 [21:48:47]MH_I2C_Read... [21:48:47]Read from MH i2c: E2 17 00 [21:48:47]MH_I2C_Read... [21:48:47]Read from MH i2c: E2 17 00 4F 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 79 [21:48:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [21:48:47]wFMCommunicate OK [21:48:47]CreateOFDProtocolMessage done [21:48:47]OFDSenderStorePacket 123367 [21:48:47]StoreOFDPacket docnum=123367 [21:48:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 AD D4 07 01 D6 C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 19 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 71 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 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 9D 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 42 F0 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 E7 E1 01 00 35 04 06 00 60 04 E8 A0 BE 5C 26 32 DC 12 64 4C B5 02 [21:48:47]CheckFolder [21:48:47]dirname=/storage/ofd_packets [21:48:47]CheckFolder done [21:48:47]ProducePacketName [21:48:47]name=ofd_packets/00123367 [21:48:47]NVStorageSaveData ofd_packets/00123367 [21:48:47]File name is /storage/ofd_packets/00123367 [21:48:47]Write 301 bytes [21:48:47]NVStorageSaveData done [21:48:47]OFDSenderStorePacket done [21:48:47]KKMCreateOFDPacket done [21:48:47]NVStorageSaveData kkm_last_timestamp [21:48:47]File name is /storage/kkm_last_timestamp [21:48:47]Write 4 bytes [21:48:47]NVStorageSaveData done [21:48:47]ExternCall_PrintAddStr [21:48:47]wPrintStart [21:48:47]Write to MH i2c: 01 00 00 50 52 A2 [21:48:47]Write i2c OK [21:48:47]MH_I2C_Read... [21:48:47]Read from MH i2c: 01 [21:48:47]MH_I2C_Read... [21:48:47]Read from MH i2c: 01 07 00 [21:48:47]MH_I2C_Read... [21:48:47]Read from MH i2c: 01 07 00 50 52 00 00 00 00 00 FF 0F B7 [21:48:47]RasterBufferAndPrint [21:48:47]line Счет N : (1)1106349 [21:48:47]line ИНН: 02508201610067 [21:48:47]line Контрольно-Кассовый Чек [21:48:47]line ПРОДАЖА [21:48:47]line ТРК (МРК, ГНК) : 32 [21:48:47]line Товар: 2710124130 [21:48:47]line Аи-92-К-5 [21:48:47]line 6.470 * 61.90 [21:48:47]line = 400.49 [21:48:47]line НДС 12% НСП 1% [21:48:47]line > о реализуемом товаре [21:48:47]line ИТОГО: 400.49 [21:48:47]line НСП 1% : 3.54 [21:48:47]line НДС 12% : 42.53 [21:48:47]line Наличными: 0.00 [21:48:47]line Безнал.: 400.49 [21:48:47]line Место: АЗС № 25 "Партнер Нефть" [21:48:47]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [21:48:47]line СНО: Общий режим [21:48:47]line Чек 224 03.03.2024 21:48 [21:48:47]line Смена: 323 ФФД: 1.0 [21:48:47]line ЗНМ: 0300000019 [21:48:47]line РНМ: 0000000000090573 [21:48:47]line Версия ККМ: 001 [21:48:47]line Платежная система: О! деньги [21:48:47]line ФМ: 0000000000874798 [21:48:47]line ФД: 123367 [21:48:47]line ФПД: 105574198984284 [21:48:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T214850&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123367&fm=105574198984284&tin=02508201610067®Number=0000000000090573&sum=40049 [21:48:47]OFD Sender: Processing packet 123367 [packets to send 112, broken 111] [21:48:47]ProducePacketName [21:48:47]name=ofd_packets/00123367 [21:48:47]OFD Sender: To server: pG, [21:48:47]CommunicateWithHost lk.salyk.kg:30040 [21:48:47]ConnectInit lk.salyk.kg [21:48:47]written 0, free lines is 4095 [21:48:47]Connected sock=10 [21:48: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 37 39 38 0F 01 00 00 AD D4 07 01 D6 C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 19 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 71 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 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 9D 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 42 F0 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 E7 E1 01 00 35 04 06 00 60 04 E8 A0 BE 5C 26 32 DC 12 64 4C B5 02 [21:48:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 3A B9 47 00 77 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 37 39 38 10 04 04 00 E7 E1 01 00 F4 03 04 00 6D 9C E4 65 B6 04 01 00 00 EC 09 42 CF F2 1D 15 58 [21:48:47]CommunicateWithHost err = 0 [21:48:47]CheckOFDResponse [21:48:47]1017 (14) - 77093643461234 [21:48:47]1041 (16) - 0000000000874798 [21:48:47]1040 (4) - 123367 [21:48:47]1012 (4) - 03.03.2024 15:51 [21:48:47]1206 (1) - 0 [21:48:47]OFD Sender: Remove packet 123367 [21:48:47]ProducePacketName [21:48:47]name=ofd_packets/00123367 [21:48:47]NVStorageDeleteData [21:48:48]Write to MH i2c: 01 00 00 7A 52 CC [21:48:48]Write i2c OK [21:48:48]MH_I2C_Read... [21:48:48]Read from MH i2c: 01 [21:48:48]MH_I2C_Read... [21:48:48]Read from MH i2c: 01 07 00 [21:48:48]MH_I2C_Read... [21:48:48]Read from MH i2c: 01 07 00 7A 52 00 00 00 00 00 05 0D E5 [21:48:48]RasterBufferAndPrint [21:48:48]line [21:48:48]line [21:48:48]line [21:48:48]line [21:48:48]line [21:48:48]written 0, free lines is 3342 [21:48:48]MH_Cut [21:48:48]Write to MH i2c: D1 01 00 81 52 01 A5 [21:48:48]Write i2c OK [21:48:48]MH_I2C_Read... [21:48:48]Read from MH i2c: D1 [21:48:48]MH_I2C_Read... [21:48:48]Read from MH i2c: D1 01 00 [21:48:48]MH_I2C_Read... [21:48:48]Read from MH i2c: D1 01 00 81 52 00 A4 [21:48:48]Write to MH i2c: 01 00 00 82 52 D4 [21:48:48]Write i2c OK [21:48:48]MH_I2C_Read... [21:48:48]OFD Sender: No OFD packet to send [21:48:48]*** Cut start [21:48:48]*** Purtial cut [21:48:48]*** Stage 1: CUTSNS_PIN = 1 [21:48:50]Read from MH i2c: 01 [21:48:50]MH_I2C_Read... [21:48:50]*** Stop cut motor [21:48:50]*** Cut end [21:48:50]Read from MH i2c: 01 07 00 [21:48:50]MH_I2C_Read... [21:48:50]Read from MH i2c: 01 07 00 82 52 00 00 00 00 00 FF 0F E9 [21:48:50]process_action close_receipt done [21:48:50]requested_data is exist [21:48:50]produce_requested_data [21:48:50]requested_item fm.sn is exist - process it [21:48:50]wFMCommunicate request_size=4 [21:48:50]MH_SAM_APDU [21:48:50]CAPDU: 80 11 00 00 [21:48:50]Write to MH i2c: E2 08 00 83 52 80 11 00 00 00 00 00 00 4F [21:48:50]Write i2c OK [21:48:50]MH_I2C_Read... [21:48:50]Read from MH i2c: E2 [21:48:50]MH_I2C_Read... [21:48:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:48:50]Read from MH i2c: E2 17 00 [21:48:50]MH_I2C_Read... [21:48:50]Read from MH i2c: E2 17 00 83 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 AD [21:48:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [21:48:50]wFMCommunicate OK [21:48:50]requested_item fd.num is exist - process it [21:48:50]SAM_PROTO_GetFieldsCounters [21:48:50]wFMCommunicate request_size=4 [21:48:50]MH_SAM_APDU [21:48:50]CAPDU: 80 13 00 00 [21:48:50]Write to MH i2c: E2 08 00 84 52 80 13 00 00 00 00 00 00 52 [21:48:50]Write i2c OK [21:48:50]MH_I2C_Read... [21:48:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:48:50]Read from MH i2c: E2 [21:48:50]MH_I2C_Read... [21:48:50]Read from MH i2c: E2 62 00 [21:48:50]MH_I2C_Read... [21:48:50]Read from MH i2c: E2 62 00 84 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 E7 E1 01 00 0E 04 04 00 43 01 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 2A [21:48: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 E7 E1 01 00 0E 04 04 00 43 01 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 [21:48:50]wFMCommunicate OK [21:48:50]SAM_PROTO_GetFieldsCounters done [21:48:50]requested_item shift.num is exist - process it [21:48:50]requested_item shift.opened is exist - process it [21:48:50]req_shift_opened [21:48:50]FM_GetShiftState [21:48:50]SAM_PROTO_GetShiftState [21:48:50]wFMCommunicate request_size=4 [21:48:50]MH_SAM_APDU [21:48:50]CAPDU: 80 13 01 00 [21:48:50]Write to MH i2c: E2 08 00 85 52 80 13 01 00 00 00 00 00 54 [21:48:50]Write i2c OK [21:48:50]MH_I2C_Read... [21:48:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:48:51]Read from MH i2c: E2 [21:48:51]MH_I2C_Read... [21:48:51]Read from MH i2c: E2 0E 00 [21:48:51]MH_I2C_Read... [21:48:51]Read from MH i2c: E2 0E 00 85 52 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 16 [21:48:51]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [21:48:51]wFMCommunicate OK [21:48:51]SAM_PROTO_GetShiftState done [21:48:51]FM_GetShiftState done [21:48:51]req_shift_opened done [21:48:51]requested_item shift.open_date is exist - process it [21:48:51]req_shift_open_date [21:48:51]req_shift_open_date done [21:48:51]produce_requested_data done [21:48:51]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123367,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [21:48:51]process_action_free close_receipt [21:48:51]json_value_free [21:48:51]json_value_free done [21:48:51]process_json_proto returns [21:48:51]Send response to host [21:48:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123367,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [21:48:51]free response buf [21:48:51]execute_script done [21:48:51]execute_script returns [21:48:51]free content buf [21:48:51]Sock 7.Close socket [21:48:51]Sock 7.Thread stoped [21:48:53]OFD Sender: No OFD packet to send [21:48:58]int [21:48:58]Write to MH i2c: 01 00 00 86 52 D8 [21:48:58]*** FLAG_PRN_PAP1 set [21:48:58]Write i2c OK [21:48:58]MH_I2C_Read... [21:48:58]Read from MH i2c: 01 [21:48:58]MH_I2C_Read... [21:48:58]Read from MH i2c: 01 07 00 [21:48:58]MH_I2C_Read... [21:48:58]Read from MH i2c: 01 07 00 86 52 00 01 00 00 00 FF 0F EE [21:48:58]state=0 [21:48:58]No paper [21:48:58]int [21:48:58]Write to MH i2c: 01 00 00 87 52 D9 [21:48:58]*** FLAG_PRN_PAP2 set [21:48:58]Write i2c OK [21:48:58]MH_I2C_Read... [21:48:58]Read from MH i2c: 01 [21:48:58]MH_I2C_Read... [21:48:58]Read from MH i2c: 01 07 00 [21:48:58]MH_I2C_Read... [21:48:58]Read from MH i2c: 01 07 00 87 52 00 03 00 00 00 FF 0F F1 [21:48:58]state=0 [21:48:58]No paper [21:48:58]Cover opened [21:48:58]OFD Sender: No OFD packet to send [21:48:58]int [21:48:58]Write to MH i2c: 01 00 00 88 52 DA [21:48:58]*** FLAG_PRN_PAP2 reset [21:48:58]Write i2c OK [21:48:58]MH_I2C_Read... [21:48:58]Read from MH i2c: 01 [21:48:58]MH_I2C_Read... [21:48:58]Read from MH i2c: 01 07 00 [21:48:58]MH_I2C_Read... [21:48:58]Read from MH i2c: 01 07 00 88 52 00 01 00 00 00 FF 0F F0 [21:48:58]state=3 [21:48:58]No paper [21:48:58]Cover closed [21:48:59]int [21:48:59]Write to MH i2c: 01 00 00 89 52 DB [21:48:59]*** FLAG_PRN_PAP2 set [21:48:59]Write i2c OK [21:48:59]MH_I2C_Read... [21:48:59]Read from MH i2c: 01 [21:48:59]MH_I2C_Read... [21:48:59]Read from MH i2c: 01 07 00 [21:48:59]MH_I2C_Read... [21:48:59]Read from MH i2c: 01 07 00 89 52 00 03 00 00 00 FF 0F F3 [21:48:59]state=0 [21:48:59]No paper [21:48:59]Cover opened [21:49:03]OFD Sender: No OFD packet to send [21:49:04]Write to MH i2c: 01 00 00 8A 52 DC [21:49:04]Write i2c OK [21:49:04]MH_I2C_Read... [21:49:04]Read from MH i2c: 01 [21:49:04]MH_I2C_Read... [21:49:04]Read from MH i2c: 01 07 00 [21:49:04]MH_I2C_Read... [21:49:04]Read from MH i2c: 01 07 00 8A 52 00 03 00 00 00 FF 0F F4 [21:49:04]state=3 [21:49:04]No paper [21:49:04]Cover opened [21:49:08]OFD Sender: No OFD packet to send [21:49:09]Write to MH i2c: 01 00 00 8B 52 DD [21:49:09]Write i2c OK [21:49:09]MH_I2C_Read... [21:49:09]Read from MH i2c: 01 [21:49:09]MH_I2C_Read... [21:49:09]Read from MH i2c: 01 07 00 [21:49:09]MH_I2C_Read... [21:49:09]Read from MH i2c: 01 07 00 8B 52 00 03 00 00 00 FF 0F F5 [21:49:09]state=3 [21:49:09]No paper [21:49:09]Cover opened [21:49:13]OFD Sender: No OFD packet to send [21:49:14]Write to MH i2c: 01 00 00 8C 52 DE [21:49:14]Write i2c OK [21:49:14]MH_I2C_Read... [21:49:14]Read from MH i2c: 01 [21:49:14]MH_I2C_Read... [21:49:14]Read from MH i2c: 01 07 00 [21:49:14]MH_I2C_Read... [21:49:14]Read from MH i2c: 01 07 00 8C 52 00 03 00 00 00 FF 0F F6 [21:49:14]state=3 [21:49:14]No paper [21:49:14]Cover opened [21:49:18]OFD Sender: No OFD packet to send [21:49:19]Write to MH i2c: 01 00 00 8D 52 DF [21:49:19]Write i2c OK [21:49:19]MH_I2C_Read... [21:49:19]Read from MH i2c: 01 [21:49:19]MH_I2C_Read... [21:49:19]Read from MH i2c: 01 07 00 [21:49:19]MH_I2C_Read... [21:49:19]Read from MH i2c: 01 07 00 8D 52 00 03 00 00 00 FF 0F F7 [21:49:19]state=3 [21:49:19]No paper [21:49:19]Cover opened [21:49:21]int [21:49:21]Write to MH i2c: 01 00 00 8E 52 E0 [21:49:21]*** FLAG_PRN_PAP2 reset [21:49:21]Write i2c OK [21:49:21]MH_I2C_Read... [21:49:21]Read from MH i2c: 01 [21:49:21]MH_I2C_Read... [21:49:21]Read from MH i2c: 01 07 00 [21:49:21]MH_I2C_Read... [21:49:21]Read from MH i2c: 01 07 00 8E 52 00 01 00 00 00 FF 0F F6 [21:49:21]state=3 [21:49:21]No paper [21:49:21]Cover closed [21:49:21]int [21:49:21]Write to MH i2c: 01 00 00 8F 52 E1 [21:49:21]*** FLAG_PRN_PAP1 reset [21:49:21]Write i2c OK [21:49:21]MH_I2C_Read... [21:49:21]Read from MH i2c: 01 [21:49:21]MH_I2C_Read... [21:49:21]Read from MH i2c: 01 07 00 [21:49:21]MH_I2C_Read... [21:49:21]Read from MH i2c: 01 07 00 8F 52 00 00 00 00 00 FF 0F F6 [21:49:21]state=0 [21:49:22]int [21:49:22]Write to MH i2c: 01 00 00 90 52 E2 [21:49:22]*** FLAG_PRN_PAP1 set [21:49:22]Write i2c OK [21:49:22]MH_I2C_Read... [21:49:22]Read from MH i2c: 01 [21:49:22]MH_I2C_Read... [21:49:22]Read from MH i2c: 01 07 00 [21:49:22]MH_I2C_Read... [21:49:22]Read from MH i2c: 01 07 00 90 52 00 01 00 00 00 FF 0F F8 [21:49:22]state=0 [21:49:22]No paper [21:49:22]int [21:49:22]Write to MH i2c: 01 00 00 91 52 E3 [21:49:22]*** FLAG_PRN_PAP2 set [21:49:22]Write i2c OK [21:49:22]MH_I2C_Read... [21:49:22]Read from MH i2c: 01 [21:49:22]MH_I2C_Read... [21:49:22]Read from MH i2c: 01 07 00 [21:49:22]MH_I2C_Read... [21:49:22]Read from MH i2c: 01 07 00 91 52 00 03 00 00 00 FF 0F FB [21:49:22]state=0 [21:49:22]No paper [21:49:22]Cover opened [21:49:23]OFD Sender: No OFD packet to send [21:49:24]int [21:49:24]Write to MH i2c: 01 00 00 92 52 E4 [21:49:24]*** FLAG_PRN_PAP2 reset [21:49:24]Write i2c OK [21:49:24]MH_I2C_Read... [21:49:24]Read from MH i2c: 01 [21:49:24]MH_I2C_Read... [21:49:24]Read from MH i2c: 01 07 00 [21:49:24]MH_I2C_Read... [21:49:24]Read from MH i2c: 01 07 00 92 52 00 01 00 00 00 FF 0F FA [21:49:24]state=3 [21:49:24]No paper [21:49:24]Cover closed [21:49:24]int [21:49:24]Write to MH i2c: 01 00 00 93 52 E5 [21:49:24]*** FLAG_PRN_PAP1 reset [21:49:24]Write i2c OK [21:49:24]MH_I2C_Read... [21:49:24]Read from MH i2c: 01 [21:49:24]MH_I2C_Read... [21:49:24]Read from MH i2c: 01 07 00 [21:49:24]MH_I2C_Read... [21:49:24]Read from MH i2c: 01 07 00 93 52 00 00 00 00 00 FF 0F FA [21:49:24]state=0 [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:05]accept exits with 9 [21:51:05]New connection [21:51:05]New thread 3067395428 created [21:51:05]Thread 3067252068 joined [21:51:05]Waiting for new connection... [21:51:05] Sock 9.Parse request [21:51:05]Sock 9.Check first char [21:51:05]Sock 9.First char is OK [21:51:05]request: POST /json_proto HTTP/1.0 [21:51:05]Method: POST [21:51:05]URL: /json_proto [21:51:05]Method is POST - this is cgi request [21:51:05]url: /json_proto [21:51:05]query_string will be loaded in cgi processing [21:51:05]execute_cgi json_proto POST (null) [21:51:05]execute_cgi path=json_proto method=POST [21:51:05]POST find Content-Length [21:51:05]Host: 172.17.48.197:8080 [21:51:05]Content-Length: 678 [21:51:05]Content-Type: application/json [21:51:05] [21:51:05]POST finish read [21:51:05]Found Content-Length = 678 [21:51:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106352", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 3.240, "sum" : 200.56, "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" ] } } [21:51:05]execute_script... [21:51:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106352", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 3.240, "sum" : 200.56, "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" ] } } [21:51:05]POST & json_proto [21:51:05]process_json_proto [21:51:05]json parsed OK: [21:51:05]protocol is kg_v1.0 [21:51:05]action value=close_receipt [21:51:05]process_action close_receipt [21:51:05]cmd_close_receipt [21:51:05]MH_GetDate [21:51:05]Write to MH i2c: F0 00 00 94 52 D5 [21:51:05]Write i2c OK [21:51:05]MH_I2C_Read... [21:51:05]Read from MH i2c: F0 [21:51:05]MH_I2C_Read... [21:51:05]Read from MH i2c: F0 09 00 [21:51:05]MH_I2C_Read... [21:51:05]Read from MH i2c: F0 09 00 94 52 00 CE F0 E4 65 6C AF E3 65 48 [21:51:05]GetLastDocTimeStamp 1709502530 [21:51:05]current date 1709502670 [21:51:05]FM_GetShiftState [21:51:05]SAM_PROTO_GetShiftState [21:51:05]wFMCommunicate request_size=4 [21:51:05]MH_SAM_APDU [21:51:05]CAPDU: 80 13 01 00 [21:51:05]Write to MH i2c: E2 08 00 95 52 80 13 01 00 00 00 00 00 64 [21:51:05]Write i2c OK [21:51:05]MH_I2C_Read... [21:51:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:51:05]Read from MH i2c: E2 [21:51:05]MH_I2C_Read... [21:51:05]Read from MH i2c: E2 0E 00 [21:51:05]MH_I2C_Read... [21:51:05]Read from MH i2c: E2 0E 00 95 52 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 26 [21:51:05]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [21:51:05]wFMCommunicate OK [21:51:05]SAM_PROTO_GetShiftState done [21:51:05]FM_GetShiftState done [21:51:05]opened in 1709425579 [21:51:05]opened+sec_in_day 1709511979 [21:51:05]quantity*price = 20055 [21:51:05]sum+1 = 20057 [21:51:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.30 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 225 03.03.2024 21:51 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123368 ФПД: 104983680766622 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T215110&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123368&fm=104983680766622&tin=02508201610067®Number=0000000000090573&sum=20000 [21:51:06]StoreToDocumentArchive [21:51:06]shift 323 fd 123368 [21:51:06]save to /storage/0323/doc_00123368 [21:51:06]save last doc name /storage/0323/doc_00123368 to /storage/kkm_last_doc_name [21:51:06]save OK [21:51:06]Clear old archive folders... [21:51:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:51:06]tlvbuf is B6FC1120 [21:51:06]SAM_PROTO_ClearQueue [21:51:06]wFMCommunicate request_size=4 [21:51:06]MH_SAM_APDU [21:51:06]CAPDU: 80 09 00 00 [21:51:06]Write to MH i2c: E2 08 00 A2 52 80 09 00 00 00 00 00 00 66 [21:51:06]Write i2c OK [21:51:06]MH_I2C_Read... [21:51:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:51:06]Read from MH i2c: E2 [21:51:06]MH_I2C_Read... [21:51:06]Read from MH i2c: E2 03 00 [21:51:06]MH_I2C_Read... [21:51:06]Read from MH i2c: E2 03 00 A2 52 00 90 00 68 [21:51:06]RAPDU: 90 00 [21:51:06]wFMCommunicate OK [21:51:06]SAM_PROTO_ClearQueue done [21:51:06]KKMCreateOFDPacket [21:51:06]OFDProtocolAddRootSTLVToBuf [21:51:06]FM_MakeSignedData [21:51:06]FM_MakeSignedData [21:51:06]SAM_PROTO_SignData [21:51:06]wFMCommunicate request_size=4 [21:51:06]MH_SAM_APDU [21:51:06]CAPDU: 80 0D 01 02 [21:51:06]Write to MH i2c: E2 08 00 A3 52 80 0D 01 02 00 00 00 00 6E [21:51:06]Write i2c OK [21:51:06]MH_I2C_Read... [21:51:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:51:06]Read from MH i2c: E2 [21:51:06]MH_I2C_Read... [21:51:06]Read from MH i2c: E2 03 00 [21:51:06]MH_I2C_Read... [21:51:06]Read from MH i2c: E2 03 00 A3 52 00 90 00 69 [21:51:06]RAPDU: 90 00 [21:51:06]wFMCommunicate OK [21:51:06]wFMCommunicate request_size=255 [21:51:06]MH_SAM_APDU [21:51: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 35 FF 03 08 00 03 A8 0C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 58 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 52 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 E1 00 00 00 F4 03 04 00 CE F0 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 E8 E1 01 00 35 04 06 00 5F [21:51:06]Write to MH i2c: E2 02 01 A4 52 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 0C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 58 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 52 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 E1 00 00 00 F4 03 04 00 CE F0 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 E8 E1 01 00 35 04 06 00 5F 00 00 5E [21:51:06]Write i2c OK [21:51:06]MH_I2C_Read... [21:51:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:51:07]Read from MH i2c: E2 [21:51:07]MH_I2C_Read... [21:51:07]Read from MH i2c: E2 03 00 [21:51:07]MH_I2C_Read... [21:51:07]Read from MH i2c: E2 03 00 A4 52 00 90 00 6A [21:51:07]RAPDU: 90 00 [21:51:07]wFMCommunicate OK [21:51:07]wFMCommunicate request_size=10 [21:51:07]MH_SAM_APDU [21:51:07]CAPDU: 80 0D 02 02 05 7B 6A FF D2 9E [21:51:07]Write to MH i2c: E2 0D 00 A5 52 80 0D 02 02 05 00 7B 6A FF D2 9E 00 00 CF [21:51:07]Write i2c OK [21:51:07]MH_I2C_Read... [21:51:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:51:07]Read from MH i2c: E2 [21:51:07]MH_I2C_Read... [21:51:07]Read from MH i2c: E2 03 00 [21:51:07]MH_I2C_Read... [21:51:07]Read from MH i2c: E2 03 00 A5 52 00 90 00 6B [21:51:07]RAPDU: 90 00 [21:51:07]wFMCommunicate OK [21:51:07]wFMCommunicate request_size=4 [21:51:07]MH_SAM_APDU [21:51:07]CAPDU: 80 0D 03 02 [21:51:07]Write to MH i2c: E2 08 00 A6 52 80 0D 03 02 00 00 00 00 73 [21:51:07]Write i2c OK [21:51:07]MH_I2C_Read... [21:51:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:51:07]Read from MH i2c: E2 [21:51:07]MH_I2C_Read... [21:51:07]Read from MH i2c: E2 0B 00 [21:51:07]MH_I2C_Read... [21:51:07]Read from MH i2c: E2 0B 00 A6 52 00 FC B7 DF 0A C6 51 2A A2 90 00 F3 [21:51:07]RAPDU: FC B7 DF 0A C6 51 2A A2 90 00 [21:51:07]wFMCommunicate OK [21:51:07]SAM_PROTO_SignData done [21:51:07]FM_MakeSignedData done [21:51:07]CreateOFDProtocolMessage [21:51:07]wFMCommunicate request_size=4 [21:51:07]MH_SAM_APDU [21:51:07]CAPDU: 80 11 00 00 [21:51:07]Write to MH i2c: E2 08 00 A7 52 80 11 00 00 00 00 00 00 73 [21:51:07]Write i2c OK [21:51:07]MH_I2C_Read... [21:51:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:51:07]Read from MH i2c: E2 [21:51:07]MH_I2C_Read... [21:51:07]Read from MH i2c: E2 17 00 [21:51:07]MH_I2C_Read... [21:51:07]Read from MH i2c: E2 17 00 A7 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 D1 [21:51:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [21:51:07]wFMCommunicate OK [21:51:07]CreateOFDProtocolMessage done [21:51:07]OFDSenderStorePacket 123368 [21:51:07]StoreOFDPacket docnum=123368 [21:51:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 D6 66 07 01 4C 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 0C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 58 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 52 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 E1 00 00 00 F4 03 04 00 CE F0 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 E8 E1 01 00 35 04 06 00 5F 7B 6A FF D2 9E FC B7 DF 0A C6 51 2A A2 [21:51:07]CheckFolder [21:51:07]dirname=/storage/ofd_packets [21:51:07]CheckFolder done [21:51:07]ProducePacketName [21:51:07]name=ofd_packets/00123368 [21:51:07]NVStorageSaveData ofd_packets/00123368 [21:51:07]File name is /storage/ofd_packets/00123368 [21:51:07]Write 301 bytes [21:51:07]NVStorageSaveData done [21:51:07]OFDSenderStorePacket done [21:51:07]KKMCreateOFDPacket done [21:51:07]NVStorageSaveData kkm_last_timestamp [21:51:07]File name is /storage/kkm_last_timestamp [21:51:07]Write 4 bytes [21:51:07]NVStorageSaveData done [21:51:07]ExternCall_PrintAddStr [21:51:07]wPrintStart [21:51:07]Write to MH i2c: 01 00 00 A8 52 FA [21:51:07]Write i2c OK [21:51:07]MH_I2C_Read... [21:51:07]Read from MH i2c: 01 [21:51:07]MH_I2C_Read... [21:51:07]Read from MH i2c: 01 07 00 [21:51:07]MH_I2C_Read... [21:51:07]Read from MH i2c: 01 07 00 A8 52 00 00 00 00 00 FF 0F 0F [21:51:07]RasterBufferAndPrint [21:51:07]line Счет N : (1)1106352 [21:51:07]line ИНН: 02508201610067 [21:51:07]line Контрольно-Кассовый Чек [21:51:07]line ПРОДАЖА [21:51:07]line ТРК (МРК, ГНК) : 32 [21:51:07]line Товар: 2710124130 [21:51:07]line Аи-92-К-5 [21:51:07]line 3.240 * 61.90 [21:51:07]line = 200.56 [21:51:07]line НДС 12% НСП 1% [21:51:07]line > о реализуемом товаре [21:51:07]line ОКРУГЛЕНИЕ: -0.56 [21:51:07]line ИТОГО: 200.00 [21:51:07]line Внесено: 200.00 [21:51:07]line СДАЧА: 0.00 [21:51:07]line НСП 1% : 1.77 [21:51:07]line НДС 12% : 21.30 [21:51:07]line Наличными: 200.00 [21:51:07]line Безнал.: 0.00 [21:51:07]line Место: АЗС № 25 "Партнер Нефть" [21:51:07]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [21:51:07]line СНО: Общий режим [21:51:07]line Чек 225 03.03.2024 21:51 [21:51:07]line Смена: 323 ФФД: 1.0 [21:51:07]line ЗНМ: 0300000019 [21:51:07]line РНМ: 0000000000090573 [21:51:07]line Версия ККМ: 001 [21:51:07]line ФМ: 0000000000874798 [21:51:07]line ФД: 123368 [21:51:07]line ФПД: 104983680766622 [21:51:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T215110&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123368&fm=104983680766622&tin=02508201610067®Number=0000000000090573&sum=20000 [21:51:07]OFD Sender: Processing packet 123368 [packets to send 112, broken 111] [21:51:07]ProducePacketName [21:51:07]name=ofd_packets/00123368 [21:51:07]OFD Sender: To server: pG, [21:51:07]CommunicateWithHost lk.salyk.kg:30040 [21:51:07]ConnectInit lk.salyk.kg [21:51:07]written 0, free lines is 4095 [21:51:07]Connected sock=10 [21:51: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 37 39 38 0F 01 00 00 D6 66 07 01 4C 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 0C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 58 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 52 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 E1 00 00 00 F4 03 04 00 CE F0 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 E8 E1 01 00 35 04 06 00 5F 7B 6A FF D2 9E FC B7 DF 0A C6 51 2A A2 [21:51:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 E4 DF 47 00 9D 88 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 E8 E1 01 00 F4 03 04 00 F9 9C E4 65 B6 04 01 00 00 4E A9 51 C1 07 56 6C 44 [21:51:07]CommunicateWithHost err = 0 [21:51:07]CheckOFDResponse [21:51:07]1017 (14) - 77093643461234 [21:51:07]1041 (16) - 0000000000874798 [21:51:07]1040 (4) - 123368 [21:51:07]1012 (4) - 03.03.2024 15:53 [21:51:07]1206 (1) - 0 [21:51:07]OFD Sender: Remove packet 123368 [21:51:07]ProducePacketName [21:51:07]name=ofd_packets/00123368 [21:51:07]NVStorageDeleteData [21:51:08]Write to MH i2c: 01 00 00 D3 52 25 [21:51:08]Write i2c OK [21:51:08]MH_I2C_Read... [21:51:08]Read from MH i2c: 01 [21:51:08]MH_I2C_Read... [21:51:08]Read from MH i2c: 01 07 00 [21:51:08]MH_I2C_Read... [21:51:08]Read from MH i2c: 01 07 00 D3 52 00 00 00 00 00 FA 0C 32 [21:51:08]RasterBufferAndPrint [21:51:08]line [21:51:08]line [21:51:08]line [21:51:08]line [21:51:08]line [21:51:08]written 0, free lines is 3331 [21:51:08]MH_Cut [21:51:08]Write to MH i2c: D1 01 00 DA 52 01 FE [21:51:08]Write i2c OK [21:51:08]MH_I2C_Read... [21:51:08]Read from MH i2c: D1 [21:51:08]MH_I2C_Read... [21:51:08]Read from MH i2c: D1 01 00 [21:51:08]MH_I2C_Read... [21:51:08]Read from MH i2c: D1 01 00 DA 52 00 FD [21:51:08]Write to MH i2c: 01 00 00 DB 52 2D [21:51:08]Write i2c OK [21:51:08]MH_I2C_Read... [21:51:08]OFD Sender: No OFD packet to send [21:51:08]*** Cut start [21:51:08]*** Purtial cut [21:51:08]*** Stage 1: CUTSNS_PIN = 1 [21:51:10]Read from MH i2c: 01 [21:51:10]MH_I2C_Read... [21:51:10]*** Stop cut motor [21:51:10]*** Cut end [21:51:10]Read from MH i2c: 01 07 00 [21:51:10]MH_I2C_Read... [21:51:10]Read from MH i2c: 01 07 00 DB 52 00 00 00 00 00 FF 0F 42 [21:51:10]process_action close_receipt done [21:51:10]requested_data is exist [21:51:10]produce_requested_data [21:51:10]requested_item fm.sn is exist - process it [21:51:10]wFMCommunicate request_size=4 [21:51:10]MH_SAM_APDU [21:51:10]CAPDU: 80 11 00 00 [21:51:10]Write to MH i2c: E2 08 00 DC 52 80 11 00 00 00 00 00 00 A8 [21:51:10]Write i2c OK [21:51:10]MH_I2C_Read... [21:51:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:51:10]Read from MH i2c: E2 [21:51:10]MH_I2C_Read... [21:51:10]Read from MH i2c: E2 17 00 [21:51:10]MH_I2C_Read... [21:51:10]Read from MH i2c: E2 17 00 DC 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 06 [21:51:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [21:51:10]wFMCommunicate OK [21:51:10]requested_item fd.num is exist - process it [21:51:10]SAM_PROTO_GetFieldsCounters [21:51:10]wFMCommunicate request_size=4 [21:51:10]MH_SAM_APDU [21:51:10]CAPDU: 80 13 00 00 [21:51:10]Write to MH i2c: E2 08 00 DD 52 80 13 00 00 00 00 00 00 AB [21:51:10]Write i2c OK [21:51:10]MH_I2C_Read... [21:51:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:51:10]Read from MH i2c: E2 [21:51:10]MH_I2C_Read... [21:51:10]Read from MH i2c: E2 62 00 [21:51:10]MH_I2C_Read... [21:51:10]Read from MH i2c: E2 62 00 DD 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 E8 E1 01 00 0E 04 04 00 43 01 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 87 [21:51: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 E8 E1 01 00 0E 04 04 00 43 01 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 [21:51:10]wFMCommunicate OK [21:51:10]SAM_PROTO_GetFieldsCounters done [21:51:10]requested_item shift.num is exist - process it [21:51:10]requested_item shift.opened is exist - process it [21:51:10]req_shift_opened [21:51:10]FM_GetShiftState [21:51:10]SAM_PROTO_GetShiftState [21:51:10]wFMCommunicate request_size=4 [21:51:10]MH_SAM_APDU [21:51:10]CAPDU: 80 13 01 00 [21:51:10]Write to MH i2c: E2 08 00 DE 52 80 13 01 00 00 00 00 00 AD [21:51:10]Write i2c OK [21:51:10]MH_I2C_Read... [21:51:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:51:11]Read from MH i2c: E2 [21:51:11]MH_I2C_Read... [21:51:11]Read from MH i2c: E2 0E 00 [21:51:11]MH_I2C_Read... [21:51:11]Read from MH i2c: E2 0E 00 DE 52 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 6F [21:51:11]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [21:51:11]wFMCommunicate OK [21:51:11]SAM_PROTO_GetShiftState done [21:51:11]FM_GetShiftState done [21:51:11]req_shift_opened done [21:51:11]requested_item shift.open_date is exist - process it [21:51:11]req_shift_open_date [21:51:11]req_shift_open_date done [21:51:11]produce_requested_data done [21:51:11]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123368,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [21:51:11]process_action_free close_receipt [21:51:11]json_value_free [21:51:11]json_value_free done [21:51:11]process_json_proto returns [21:51:11]Send response to host [21:51:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123368,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [21:51:11]free response buf [21:51:11]execute_script done [21:51:11]execute_script returns [21:51:11]free content buf [21:51:11]Sock 9.Close socket [21:51:11]Sock 9.Thread stoped [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:20]accept exits with 7 [21:52:20]New connection [21:52:20]New thread 3067252068 created [21:52:20]Thread 3067395428 joined [21:52:20]Waiting for new connection... [21:52:20] Sock 7.Parse request [21:52:20]Sock 7.Check first char [21:52:20]Sock 7.First char is OK [21:52:20]request: POST /json_proto HTTP/1.0 [21:52:20]Method: POST [21:52:20]URL: /json_proto [21:52:20]Method is POST - this is cgi request [21:52:20]url: /json_proto [21:52:20]query_string will be loaded in cgi processing [21:52:20]execute_cgi json_proto POST (null) [21:52:20]execute_cgi path=json_proto method=POST [21:52:20]POST find Content-Length [21:52:20]Host: 172.17.48.197:8080 [21:52:20]Content-Length: 809 [21:52:20]Content-Type: application/json [21:52:20] [21:52:20]POST finish read [21:52:20]Found Content-Length = 809 [21:52:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106351", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 32.320, "sum" : 2000.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.61 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:52:20]execute_script... [21:52:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106351", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 32.320, "sum" : 2000.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.61 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:52:20]POST & json_proto [21:52:20]process_json_proto [21:52:20]json parsed OK: [21:52:20]protocol is kg_v1.0 [21:52:20]action value=close_receipt [21:52:20]process_action close_receipt [21:52:20]cmd_close_receipt [21:52:20]MH_GetDate [21:52:20]Write to MH i2c: F0 00 00 DF 52 20 [21:52:20]Write i2c OK [21:52:20]MH_I2C_Read... [21:52:20]Read from MH i2c: F0 [21:52:20]MH_I2C_Read... [21:52:20]Read from MH i2c: F0 09 00 [21:52:20]MH_I2C_Read... [21:52:20]Read from MH i2c: F0 09 00 DF 52 00 19 F1 E4 65 6C AF E3 65 DF [21:52:20]GetLastDocTimeStamp 1709502670 [21:52:20]current date 1709502745 [21:52:20]FM_GetShiftState [21:52:20]SAM_PROTO_GetShiftState [21:52:20]wFMCommunicate request_size=4 [21:52:20]MH_SAM_APDU [21:52:20]CAPDU: 80 13 01 00 [21:52:20]Write to MH i2c: E2 08 00 E0 52 80 13 01 00 00 00 00 00 AF [21:52:20]Write i2c OK [21:52:20]MH_I2C_Read... [21:52:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:52:20]Read from MH i2c: E2 [21:52:20]MH_I2C_Read... [21:52:20]Read from MH i2c: E2 0E 00 [21:52:20]MH_I2C_Read... [21:52:20]Read from MH i2c: E2 0E 00 E0 52 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 71 [21:52:20]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [21:52:20]wFMCommunicate OK [21:52:20]SAM_PROTO_GetShiftState done [21:52:20]FM_GetShiftState done [21:52:20]opened in 1709425579 [21:52:20]opened+sec_in_day 1709511979 [21:52:20]quantity*price = 200060 [21:52:20]sum+1 = 200062 [21:52:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.61 НСП 1% : 17.70 НДС 12% : 212.45 Наличными: 0.00 Безнал.: 2000.61 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 226 03.03.2024 21:52 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874798 ФД: 123369 ФПД: 258086413978363 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T215225&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123369&fm=258086413978363&tin=02508201610067®Number=0000000000090573&sum=200061 [21:52:21]StoreToDocumentArchive [21:52:21]shift 323 fd 123369 [21:52:21]save to /storage/0323/doc_00123369 [21:52:21]save last doc name /storage/0323/doc_00123369 to /storage/kkm_last_doc_name [21:52:21]save OK [21:52:21]Clear old archive folders... [21:52:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:52:21]tlvbuf is 00DC1180 [21:52:21]SAM_PROTO_ClearQueue [21:52:21]wFMCommunicate request_size=4 [21:52:21]MH_SAM_APDU [21:52:21]CAPDU: 80 09 00 00 [21:52:21]Write to MH i2c: E2 08 00 ED 52 80 09 00 00 00 00 00 00 B1 [21:52:21]Write i2c OK [21:52:21]MH_I2C_Read... [21:52:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:52:21]Read from MH i2c: E2 [21:52:21]MH_I2C_Read... [21:52:21]Read from MH i2c: E2 03 00 [21:52:21]MH_I2C_Read... [21:52:21]Read from MH i2c: E2 03 00 ED 52 00 90 00 B3 [21:52:21]RAPDU: 90 00 [21:52:21]wFMCommunicate OK [21:52:21]SAM_PROTO_ClearQueue done [21:52:21]KKMCreateOFDPacket [21:52:21]OFDProtocolAddRootSTLVToBuf [21:52:21]FM_MakeSignedData [21:52:21]FM_MakeSignedData [21:52:21]SAM_PROTO_SignData [21:52:21]wFMCommunicate request_size=4 [21:52:21]MH_SAM_APDU [21:52:21]CAPDU: 80 0D 01 02 [21:52:21]Write to MH i2c: E2 08 00 EE 52 80 0D 01 02 00 00 00 00 B9 [21:52:21]Write i2c OK [21:52:21]MH_I2C_Read... [21:52:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:52:21]Read from MH i2c: E2 [21:52:21]MH_I2C_Read... [21:52:21]Read from MH i2c: E2 03 00 [21:52:21]MH_I2C_Read... [21:52:21]Read from MH i2c: E2 03 00 EE 52 00 90 00 B4 [21:52:21]RAPDU: 90 00 [21:52:21]wFMCommunicate OK [21:52:21]wFMCommunicate request_size=255 [21:52:21]MH_SAM_APDU [21:52:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 7E 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 7D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7D 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 FD 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7D 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 19 F1 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 E9 E1 01 00 35 04 06 00 EA [21:52:21]Write to MH i2c: E2 02 01 EF 52 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 7E 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 7D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7D 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 FD 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7D 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 19 F1 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 E9 E1 01 00 35 04 06 00 EA 00 00 E5 [21:52:21]Write i2c OK [21:52:21]MH_I2C_Read... [21:52:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:52:21]Read from MH i2c: E2 [21:52:21]MH_I2C_Read... [21:52:21]Read from MH i2c: E2 03 00 [21:52:21]MH_I2C_Read... [21:52:21]Read from MH i2c: E2 03 00 EF 52 00 90 00 B5 [21:52:21]RAPDU: 90 00 [21:52:21]wFMCommunicate OK [21:52:21]wFMCommunicate request_size=10 [21:52:21]MH_SAM_APDU [21:52:21]CAPDU: 80 0D 02 02 05 BA 6D 06 CA FB [21:52:21]Write to MH i2c: E2 0D 00 F0 52 80 0D 02 02 05 00 BA 6D 06 CA FB 00 00 B8 [21:52:21]Write i2c OK [21:52:21]MH_I2C_Read... [21:52:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:52:21]Read from MH i2c: E2 [21:52:21]MH_I2C_Read... [21:52:21]Read from MH i2c: E2 03 00 [21:52:21]MH_I2C_Read... [21:52:21]Read from MH i2c: E2 03 00 F0 52 00 90 00 B6 [21:52:21]RAPDU: 90 00 [21:52:21]wFMCommunicate OK [21:52:21]wFMCommunicate request_size=4 [21:52:21]MH_SAM_APDU [21:52:21]CAPDU: 80 0D 03 02 [21:52:21]Write to MH i2c: E2 08 00 F1 52 80 0D 03 02 00 00 00 00 BE [21:52:21]Write i2c OK [21:52:21]MH_I2C_Read... [21:52:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:52:21]Read from MH i2c: E2 [21:52:21]MH_I2C_Read... [21:52:21]Read from MH i2c: E2 0B 00 [21:52:21]MH_I2C_Read... [21:52:21]Read from MH i2c: E2 0B 00 F1 52 00 5A 6C 00 EF C8 99 5E 67 90 00 9A [21:52:21]RAPDU: 5A 6C 00 EF C8 99 5E 67 90 00 [21:52:21]wFMCommunicate OK [21:52:21]SAM_PROTO_SignData done [21:52:21]FM_MakeSignedData done [21:52:21]CreateOFDProtocolMessage [21:52:21]wFMCommunicate request_size=4 [21:52:21]MH_SAM_APDU [21:52:21]CAPDU: 80 11 00 00 [21:52:21]Write to MH i2c: E2 08 00 F2 52 80 11 00 00 00 00 00 00 BE [21:52:21]Write i2c OK [21:52:21]MH_I2C_Read... [21:52:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:52:21]Read from MH i2c: E2 [21:52:21]MH_I2C_Read... [21:52:22]Read from MH i2c: E2 17 00 [21:52:22]MH_I2C_Read... [21:52:22]Read from MH i2c: E2 17 00 F2 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 1C [21:52:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [21:52:22]wFMCommunicate OK [21:52:22]CreateOFDProtocolMessage done [21:52:22]OFDSenderStorePacket 123369 [21:52:22]StoreOFDPacket docnum=123369 [21:52:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 6B 27 07 01 A2 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 7E 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 7D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7D 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 FD 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7D 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 19 F1 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 E9 E1 01 00 35 04 06 00 EA BA 6D 06 CA FB 5A 6C 00 EF C8 99 5E 67 [21:52:22]CheckFolder [21:52:22]dirname=/storage/ofd_packets [21:52:22]CheckFolder done [21:52:22]ProducePacketName [21:52:22]name=ofd_packets/00123369 [21:52:22]NVStorageSaveData ofd_packets/00123369 [21:52:22]File name is /storage/ofd_packets/00123369 [21:52:22]Write 301 bytes [21:52:22]NVStorageSaveData done [21:52:22]OFDSenderStorePacket done [21:52:22]KKMCreateOFDPacket done [21:52:22]NVStorageSaveData kkm_last_timestamp [21:52:22]File name is /storage/kkm_last_timestamp [21:52:22]Write 4 bytes [21:52:22]NVStorageSaveData done [21:52:22]ExternCall_PrintAddStr [21:52:22]wPrintStart [21:52:22]Write to MH i2c: 01 00 00 F3 52 45 [21:52:22]Write i2c OK [21:52:22]MH_I2C_Read... [21:52:22]Read from MH i2c: 01 [21:52:22]MH_I2C_Read... [21:52:22]Read from MH i2c: 01 07 00 [21:52:22]MH_I2C_Read... [21:52:22]Read from MH i2c: 01 07 00 F3 52 00 00 00 00 00 FF 0F 5A [21:52:22]RasterBufferAndPrint [21:52:22]line Счет N : (1)1106351 [21:52:22]line ИНН: 02508201610067 [21:52:22]line Контрольно-Кассовый Чек [21:52:22]line ПРОДАЖА [21:52:22]line ТРК (МРК, ГНК) : 11 [21:52:22]line Товар: 2710124130 [21:52:22]line Аи-92-К-5 [21:52:22]line 32.320 * 61.90 [21:52:22]line = 2000.61 [21:52:22]line НДС 12% НСП 1% [21:52:22]line > о реализуемом товаре [21:52:22]line ИТОГО: 2000.61 [21:52:22]line НСП 1% : 17.70 [21:52:22]line НДС 12% : 212.45 [21:52:22]line Наличными: 0.00 [21:52:22]line Безнал.: 2000.61 [21:52:22]line Место: АЗС № 25 "Партнер Нефть" [21:52:22]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [21:52:22]line СНО: Общий режим [21:52:22]line Чек 226 03.03.2024 21:52 [21:52:22]line Смена: 323 ФФД: 1.0 [21:52:22]line ЗНМ: 0300000019 [21:52:22]line РНМ: 0000000000090573 [21:52:22]line Версия ККМ: 001 [21:52:22]line Платежная система: О! деньги [21:52:22]line ФМ: 0000000000874798 [21:52:22]line ФД: 123369 [21:52:22]line ФПД: 258086413978363 [21:52:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T215225&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123369&fm=258086413978363&tin=02508201610067®Number=0000000000090573&sum=200061 [21:52:22]OFD Sender: Processing packet 123369 [packets to send 112, broken 111] [21:52:22]ProducePacketName [21:52:22]name=ofd_packets/00123369 [21:52:22]OFD Sender: To server: pG, [21:52:22]CommunicateWithHost lk.salyk.kg:30040 [21:52:22]ConnectInit lk.salyk.kg [21:52:22]written 0, free lines is 4095 [21:52:22]Connected sock=10 [21:52: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 37 39 38 0F 01 00 00 6B 27 07 01 A2 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 7E 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 7D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7D 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 FD 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7D 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 19 F1 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 E9 E1 01 00 35 04 06 00 EA BA 6D 06 CA FB 5A 6C 00 EF C8 99 5E 67 [21:52:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 A1 5A 47 00 3C B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 E9 E1 01 00 F4 03 04 00 44 9D E4 65 B6 04 01 00 00 49 A2 0D 10 49 BD F2 32 [21:52:22]CommunicateWithHost err = 0 [21:52:22]CheckOFDResponse [21:52:22]1017 (14) - 77093643461234 [21:52:22]1041 (16) - 0000000000874798 [21:52:22]1040 (4) - 123369 [21:52:22]1012 (4) - 03.03.2024 15:54 [21:52:22]1206 (1) - 0 [21:52:22]OFD Sender: Remove packet 123369 [21:52:22]ProducePacketName [21:52:22]name=ofd_packets/00123369 [21:52:22]NVStorageDeleteData [21:52:22]Write to MH i2c: 01 00 00 1D 53 70 [21:52:22]Write i2c OK [21:52:22]MH_I2C_Read... [21:52:22]Read from MH i2c: 01 [21:52:22]MH_I2C_Read... [21:52:22]Read from MH i2c: 01 07 00 [21:52:22]MH_I2C_Read... [21:52:22]Read from MH i2c: 01 07 00 1D 53 00 00 00 00 00 13 0D 97 [21:52:22]RasterBufferAndPrint [21:52:22]line [21:52:22]line [21:52:22]line [21:52:22]line [21:52:22]line [21:52:22]written 0, free lines is 3356 [21:52:22]MH_Cut [21:52:22]Write to MH i2c: D1 01 00 24 53 01 49 [21:52:22]Write i2c OK [21:52:22]MH_I2C_Read... [21:52:22]Read from MH i2c: D1 [21:52:22]MH_I2C_Read... [21:52:22]Read from MH i2c: D1 01 00 [21:52:22]MH_I2C_Read... [21:52:22]Read from MH i2c: D1 01 00 24 53 00 48 [21:52:22]Write to MH i2c: 01 00 00 25 53 78 [21:52:22]Write i2c OK [21:52:22]MH_I2C_Read... [21:52:23]OFD Sender: No OFD packet to send [21:52:23]*** Cut start [21:52:23]*** Purtial cut [21:52:23]*** Stage 1: CUTSNS_PIN = 1 [21:52:25]Read from MH i2c: 01 [21:52:25]MH_I2C_Read... [21:52:25]*** Stop cut motor [21:52:25]*** Cut end [21:52:25]Read from MH i2c: 01 07 00 [21:52:25]MH_I2C_Read... [21:52:25]Read from MH i2c: 01 07 00 25 53 00 00 00 00 00 FF 0F 8D [21:52:25]process_action close_receipt done [21:52:25]requested_data is exist [21:52:25]produce_requested_data [21:52:25]requested_item fm.sn is exist - process it [21:52:25]wFMCommunicate request_size=4 [21:52:25]MH_SAM_APDU [21:52:25]CAPDU: 80 11 00 00 [21:52:25]Write to MH i2c: E2 08 00 26 53 80 11 00 00 00 00 00 00 F3 [21:52:25]Write i2c OK [21:52:25]MH_I2C_Read... [21:52:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:52:25]Read from MH i2c: E2 [21:52:25]MH_I2C_Read... [21:52:25]Read from MH i2c: E2 17 00 [21:52:25]MH_I2C_Read... [21:52:25]Read from MH i2c: E2 17 00 26 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 51 [21:52:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [21:52:25]wFMCommunicate OK [21:52:25]requested_item fd.num is exist - process it [21:52:25]SAM_PROTO_GetFieldsCounters [21:52:25]wFMCommunicate request_size=4 [21:52:25]MH_SAM_APDU [21:52:25]CAPDU: 80 13 00 00 [21:52:25]Write to MH i2c: E2 08 00 27 53 80 13 00 00 00 00 00 00 F6 [21:52:25]Write i2c OK [21:52:25]MH_I2C_Read... [21:52:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:52:25]Read from MH i2c: E2 [21:52:25]MH_I2C_Read... [21:52:25]Read from MH i2c: E2 62 00 [21:52:25]MH_I2C_Read... [21:52:25]Read from MH i2c: E2 62 00 27 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 E9 E1 01 00 0E 04 04 00 43 01 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 D6 [21:52: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 E9 E1 01 00 0E 04 04 00 43 01 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 [21:52:25]wFMCommunicate OK [21:52:25]SAM_PROTO_GetFieldsCounters done [21:52:25]requested_item shift.num is exist - process it [21:52:25]requested_item shift.opened is exist - process it [21:52:25]req_shift_opened [21:52:25]FM_GetShiftState [21:52:25]SAM_PROTO_GetShiftState [21:52:25]wFMCommunicate request_size=4 [21:52:25]MH_SAM_APDU [21:52:25]CAPDU: 80 13 01 00 [21:52:25]Write to MH i2c: E2 08 00 28 53 80 13 01 00 00 00 00 00 F8 [21:52:25]Write i2c OK [21:52:25]MH_I2C_Read... [21:52:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:52:25]Read from MH i2c: E2 [21:52:25]MH_I2C_Read... [21:52:25]Read from MH i2c: E2 0E 00 [21:52:25]MH_I2C_Read... [21:52:25]Read from MH i2c: E2 0E 00 28 53 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 BA [21:52:25]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [21:52:25]wFMCommunicate OK [21:52:25]SAM_PROTO_GetShiftState done [21:52:25]FM_GetShiftState done [21:52:25]req_shift_opened done [21:52:25]requested_item shift.open_date is exist - process it [21:52:25]req_shift_open_date [21:52:25]req_shift_open_date done [21:52:25]produce_requested_data done [21:52:25]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123369,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [21:52:25]process_action_free close_receipt [21:52:25]json_value_free [21:52:25]json_value_free done [21:52:25]process_json_proto returns [21:52:25]Send response to host [21:52:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123369,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [21:52:25]free response buf [21:52:25]execute_script done [21:52:25]execute_script returns [21:52:25]free content buf [21:52:25]Sock 7.Close socket [21:52:25]Sock 7.Thread stoped [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:22]accept exits with 9 [21:55:22]New connection [21:55:22]New thread 3067395428 created [21:55:22]Thread 3067252068 joined [21:55:22]Waiting for new connection... [21:55:22] Sock 9.Parse request [21:55:22]Sock 9.Check first char [21:55:22]Sock 9.First char is OK [21:55:22]request: POST /json_proto HTTP/1.0 [21:55:22]Method: POST [21:55:22]URL: /json_proto [21:55:22]Method is POST - this is cgi request [21:55:22]url: /json_proto [21:55:22]query_string will be loaded in cgi processing [21:55:22]execute_cgi json_proto POST (null) [21:55:22]execute_cgi path=json_proto method=POST [21:55:22]POST find Content-Length [21:55:22]Host: 172.17.48.197:8080 [21:55:22]Content-Length: 806 [21:55:22]Content-Type: application/json [21:55:22] [21:55:22]POST finish read [21:55:22]Found Content-Length = 806 [21:55:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106353", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:55:22]execute_script... [21:55:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106353", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:55:22]POST & json_proto [21:55:22]process_json_proto [21:55:22]json parsed OK: [21:55:22]protocol is kg_v1.0 [21:55:22]action value=close_receipt [21:55:22]process_action close_receipt [21:55:22]cmd_close_receipt [21:55:22]MH_GetDate [21:55:22]Write to MH i2c: F0 00 00 29 53 6B [21:55:22]Write i2c OK [21:55:22]MH_I2C_Read... [21:55:22]Read from MH i2c: F0 [21:55:22]MH_I2C_Read... [21:55:22]Read from MH i2c: F0 09 00 [21:55:22]MH_I2C_Read... [21:55:22]Read from MH i2c: F0 09 00 29 53 00 CF F1 E4 65 6C AF E3 65 E0 [21:55:22]GetLastDocTimeStamp 1709502745 [21:55:22]current date 1709502927 [21:55:22]FM_GetShiftState [21:55:22]SAM_PROTO_GetShiftState [21:55:22]wFMCommunicate request_size=4 [21:55:22]MH_SAM_APDU [21:55:22]CAPDU: 80 13 01 00 [21:55:22]Write to MH i2c: E2 08 00 2A 53 80 13 01 00 00 00 00 00 FA [21:55:22]Write i2c OK [21:55:22]MH_I2C_Read... [21:55:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:55:22]Read from MH i2c: E2 [21:55:22]MH_I2C_Read... [21:55:22]Read from MH i2c: E2 0E 00 [21:55:22]MH_I2C_Read... [21:55:22]Read from MH i2c: E2 0E 00 2A 53 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 BC [21:55:22]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [21:55:22]wFMCommunicate OK [21:55:22]SAM_PROTO_GetShiftState done [21:55:22]FM_GetShiftState done [21:55:22]opened in 1709425579 [21:55:22]opened+sec_in_day 1709511979 [21:55:22]quantity*price = 50015 [21:55:22]sum+1 = 50016 [21:55:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.15 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.15 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 227 03.03.2024 21:55 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874798 ФД: 123370 ФПД: 130082954979860 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T215527&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123370&fm=130082954979860&tin=02508201610067®Number=0000000000090573&sum=50015 [21:55:23]StoreToDocumentArchive [21:55:23]shift 323 fd 123370 [21:55:23]save to /storage/0323/doc_00123370 [21:55:23]save last doc name /storage/0323/doc_00123370 to /storage/kkm_last_doc_name [21:55:23]save OK [21:55:23]Clear old archive folders... [21:55:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:55:23]tlvbuf is 00D9DF50 [21:55:23]SAM_PROTO_ClearQueue [21:55:23]wFMCommunicate request_size=4 [21:55:23]MH_SAM_APDU [21:55:23]CAPDU: 80 09 00 00 [21:55:23]Write to MH i2c: E2 08 00 37 53 80 09 00 00 00 00 00 00 FC [21:55:23]Write i2c OK [21:55:23]MH_I2C_Read... [21:55:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:55:23]Read from MH i2c: E2 [21:55:23]MH_I2C_Read... [21:55:23]Read from MH i2c: E2 03 00 [21:55:23]MH_I2C_Read... [21:55:23]Read from MH i2c: E2 03 00 37 53 00 90 00 FE [21:55:23]RAPDU: 90 00 [21:55:23]wFMCommunicate OK [21:55:23]SAM_PROTO_ClearQueue done [21:55:23]KKMCreateOFDPacket [21:55:23]OFDProtocolAddRootSTLVToBuf [21:55:23]FM_MakeSignedData [21:55:23]FM_MakeSignedData [21:55:23]SAM_PROTO_SignData [21:55:23]wFMCommunicate request_size=4 [21:55:23]MH_SAM_APDU [21:55:23]CAPDU: 80 0D 01 02 [21:55:23]Write to MH i2c: E2 08 00 38 53 80 0D 01 02 00 00 00 00 04 [21:55:23]Write i2c OK [21:55:23]MH_I2C_Read... [21:55:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:55:23]Read from MH i2c: E2 [21:55:23]MH_I2C_Read... [21:55:23]Read from MH i2c: E2 03 00 [21:55:23]MH_I2C_Read... [21:55:23]Read from MH i2c: E2 03 00 38 53 00 90 00 FF [21:55:23]RAPDU: 90 00 [21:55:23]wFMCommunicate OK [21:55:23]wFMCommunicate request_size=255 [21:55:23]MH_SAM_APDU [21:55: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 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 CF F1 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 EA E1 01 00 35 04 06 00 76 [21:55:23]Write to MH i2c: E2 02 01 39 53 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 CF F1 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 EA E1 01 00 35 04 06 00 76 00 00 74 [21:55:23]Write i2c OK [21:55:23]MH_I2C_Read... [21:55:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:55:23]Read from MH i2c: E2 [21:55:23]MH_I2C_Read... [21:55:23]Read from MH i2c: E2 03 00 [21:55:23]MH_I2C_Read... [21:55:23]Read from MH i2c: E2 03 00 39 53 00 90 00 00 [21:55:23]RAPDU: 90 00 [21:55:23]wFMCommunicate OK [21:55:23]wFMCommunicate request_size=10 [21:55:23]MH_SAM_APDU [21:55:23]CAPDU: 80 0D 02 02 05 4F 4C 52 AA 14 [21:55:23]Write to MH i2c: E2 0D 00 3A 53 80 0D 02 02 05 00 4F 4C 52 AA 14 00 00 BC [21:55:23]Write i2c OK [21:55:23]MH_I2C_Read... [21:55:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:55:23]Read from MH i2c: E2 [21:55:23]MH_I2C_Read... [21:55:23]Read from MH i2c: E2 03 00 [21:55:23]MH_I2C_Read... [21:55:23]Read from MH i2c: E2 03 00 3A 53 00 90 00 01 [21:55:23]RAPDU: 90 00 [21:55:23]wFMCommunicate OK [21:55:23]wFMCommunicate request_size=4 [21:55:23]MH_SAM_APDU [21:55:23]CAPDU: 80 0D 03 02 [21:55:23]Write to MH i2c: E2 08 00 3B 53 80 0D 03 02 00 00 00 00 09 [21:55:23]Write i2c OK [21:55:23]MH_I2C_Read... [21:55:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:55:23]Read from MH i2c: E2 [21:55:23]MH_I2C_Read... [21:55:23]Read from MH i2c: E2 0B 00 [21:55:23]MH_I2C_Read... [21:55:23]Read from MH i2c: E2 0B 00 3B 53 00 77 75 DE 3B D7 04 13 A9 90 00 A6 [21:55:23]RAPDU: 77 75 DE 3B D7 04 13 A9 90 00 [21:55:23]wFMCommunicate OK [21:55:23]SAM_PROTO_SignData done [21:55:23]FM_MakeSignedData done [21:55:23]CreateOFDProtocolMessage [21:55:23]wFMCommunicate request_size=4 [21:55:23]MH_SAM_APDU [21:55:23]CAPDU: 80 11 00 00 [21:55:23]Write to MH i2c: E2 08 00 3C 53 80 11 00 00 00 00 00 00 09 [21:55:23]Write i2c OK [21:55:23]MH_I2C_Read... [21:55:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:55:23]Read from MH i2c: E2 [21:55:23]MH_I2C_Read... [21:55:23]Read from MH i2c: E2 17 00 [21:55:23]MH_I2C_Read... [21:55:23]Read from MH i2c: E2 17 00 3C 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 67 [21:55:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [21:55:23]wFMCommunicate OK [21:55:23]CreateOFDProtocolMessage done [21:55:23]OFDSenderStorePacket 123370 [21:55:23]StoreOFDPacket docnum=123370 [21:55:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 7C 65 07 01 2F 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 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 CF F1 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 EA E1 01 00 35 04 06 00 76 4F 4C 52 AA 14 77 75 DE 3B D7 04 13 A9 [21:55:23]CheckFolder [21:55:23]dirname=/storage/ofd_packets [21:55:23]CheckFolder done [21:55:23]ProducePacketName [21:55:23]name=ofd_packets/00123370 [21:55:23]NVStorageSaveData ofd_packets/00123370 [21:55:23]File name is /storage/ofd_packets/00123370 [21:55:23]Write 301 bytes [21:55:23]NVStorageSaveData done [21:55:23]OFDSenderStorePacket done [21:55:23]KKMCreateOFDPacket done [21:55:23]NVStorageSaveData kkm_last_timestamp [21:55:23]File name is /storage/kkm_last_timestamp [21:55:23]Write 4 bytes [21:55:23]NVStorageSaveData done [21:55:23]ExternCall_PrintAddStr [21:55:23]wPrintStart [21:55:23]Write to MH i2c: 01 00 00 3D 53 90 [21:55:23]Write i2c OK [21:55:23]MH_I2C_Read... [21:55:23]Read from MH i2c: 01 [21:55:23]MH_I2C_Read... [21:55:23]Read from MH i2c: 01 07 00 [21:55:23]MH_I2C_Read... [21:55:23]Read from MH i2c: 01 07 00 3D 53 00 00 00 00 00 FF 0F A5 [21:55:23]RasterBufferAndPrint [21:55:23]line Счет N : (1)1106353 [21:55:23]line ИНН: 02508201610067 [21:55:23]line Контрольно-Кассовый Чек [21:55:23]line ПРОДАЖА [21:55:23]line ТРК (МРК, ГНК) : 11 [21:55:23]line Товар: 2710124130 [21:55:23]line Аи-92-К-5 [21:55:23]line 8.080 * 61.90 [21:55:23]line = 500.15 [21:55:23]line НДС 12% НСП 1% [21:55:23]line > о реализуемом товаре [21:55:23]line ИТОГО: 500.15 [21:55:23]line НСП 1% : 4.43 [21:55:23]line НДС 12% : 53.11 [21:55:23]line Наличными: 0.00 [21:55:23]line Безнал.: 500.15 [21:55:23]line Место: АЗС № 25 "Партнер Нефть" [21:55:23]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [21:55:23]line СНО: Общий режим [21:55:23]line Чек 227 03.03.2024 21:55 [21:55:23]line Смена: 323 ФФД: 1.0 [21:55:23]line ЗНМ: 0300000019 [21:55:23]line РНМ: 0000000000090573 [21:55:23]line Версия ККМ: 001 [21:55:23]line Платежная система: О! деньги [21:55:23]line ФМ: 0000000000874798 [21:55:23]line ФД: 123370 [21:55:23]line ФПД: 130082954979860 [21:55:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T215527&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123370&fm=130082954979860&tin=02508201610067®Number=0000000000090573&sum=50015 [21:55:24]OFD Sender: Processing packet 123370 [packets to send 112, broken 111] [21:55:24]ProducePacketName [21:55:24]name=ofd_packets/00123370 [21:55:24]OFD Sender: To server: pG, [21:55:24]CommunicateWithHost lk.salyk.kg:30040 [21:55:24]ConnectInit lk.salyk.kg [21:55:24]written 0, free lines is 4095 [21:55:24]Connected sock=10 [21:55:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 7C 65 07 01 2F 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 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 CF F1 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 EA E1 01 00 35 04 06 00 76 4F 4C 52 AA 14 77 75 DE 3B D7 04 13 A9 [21:55:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 8C EB 47 00 1D 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 EA E1 01 00 F4 03 04 00 F9 9D E4 65 B6 04 01 00 00 EC 47 D3 E4 5E B9 0C E3 [21:55:24]CommunicateWithHost err = 0 [21:55:24]CheckOFDResponse [21:55:24]1017 (14) - 77093643461234 [21:55:24]1041 (16) - 0000000000874798 [21:55:24]1040 (4) - 123370 [21:55:24]1012 (4) - 03.03.2024 15:57 [21:55:24]1206 (1) - 0 [21:55:24]OFD Sender: Remove packet 123370 [21:55:24]ProducePacketName [21:55:24]name=ofd_packets/00123370 [21:55:24]NVStorageDeleteData [21:55:24]Write to MH i2c: 01 00 00 67 53 BA [21:55:24]Write i2c OK [21:55:24]MH_I2C_Read... [21:55:24]Read from MH i2c: 01 [21:55:24]MH_I2C_Read... [21:55:24]Read from MH i2c: 01 07 00 [21:55:24]MH_I2C_Read... [21:55:24]Read from MH i2c: 01 07 00 67 53 00 00 00 00 00 0E 0D DC [21:55:24]RasterBufferAndPrint [21:55:24]line [21:55:24]line [21:55:24]line [21:55:24]line [21:55:24]line [21:55:24]written 0, free lines is 3351 [21:55:24]MH_Cut [21:55:24]Write to MH i2c: D1 01 00 6E 53 01 93 [21:55:24]Write i2c OK [21:55:24]MH_I2C_Read... [21:55:24]Read from MH i2c: D1 [21:55:24]MH_I2C_Read... [21:55:24]Read from MH i2c: D1 01 00 [21:55:24]MH_I2C_Read... [21:55:24]Read from MH i2c: D1 01 00 6E 53 00 92 [21:55:24]Write to MH i2c: 01 00 00 6F 53 C2 [21:55:24]Write i2c OK [21:55:24]MH_I2C_Read... [21:55:24]OFD Sender: No OFD packet to send [21:55:25]*** Cut start [21:55:25]*** Purtial cut [21:55:25]*** Stage 1: CUTSNS_PIN = 1 [21:55:27]Read from MH i2c: 01 [21:55:27]MH_I2C_Read... [21:55:27]*** Stop cut motor [21:55:27]*** Cut end [21:55:27]Read from MH i2c: 01 07 00 [21:55:27]MH_I2C_Read... [21:55:27]Read from MH i2c: 01 07 00 6F 53 00 00 00 00 00 FF 0F D7 [21:55:27]process_action close_receipt done [21:55:27]requested_data is exist [21:55:27]produce_requested_data [21:55:27]requested_item fm.sn is exist - process it [21:55:27]wFMCommunicate request_size=4 [21:55:27]MH_SAM_APDU [21:55:27]CAPDU: 80 11 00 00 [21:55:27]Write to MH i2c: E2 08 00 70 53 80 11 00 00 00 00 00 00 3D [21:55:27]Write i2c OK [21:55:27]MH_I2C_Read... [21:55:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:55:27]*** FLAG_PRN_KEY set [21:55:27]int [21:55:27]Read from MH i2c: E2 [21:55:27]MH_I2C_Read... [21:55:27]Read from MH i2c: E2 17 00 [21:55:27]MH_I2C_Read... [21:55:27]Read from MH i2c: E2 17 00 70 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 9B [21:55:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [21:55:27]wFMCommunicate OK [21:55:27]requested_item fd.num is exist - process it [21:55:27]SAM_PROTO_GetFieldsCounters [21:55:27]wFMCommunicate request_size=4 [21:55:27]MH_SAM_APDU [21:55:27]CAPDU: 80 13 00 00 [21:55:27]Write to MH i2c: E2 08 00 71 53 80 13 00 00 00 00 00 00 40 [21:55:27]Write i2c OK [21:55:27]MH_I2C_Read... [21:55:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:55:27]*** FLAG_PRN_KEY reset [21:55:27]Read from MH i2c: E2 [21:55:27]MH_I2C_Read... [21:55:27]Read from MH i2c: E2 62 00 [21:55:27]MH_I2C_Read... [21:55:27]Read from MH i2c: E2 62 00 71 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 EA E1 01 00 0E 04 04 00 43 01 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 24 [21:55:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 EA E1 01 00 0E 04 04 00 43 01 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 [21:55:27]wFMCommunicate OK [21:55:27]SAM_PROTO_GetFieldsCounters done [21:55:27]requested_item shift.num is exist - process it [21:55:27]requested_item shift.opened is exist - process it [21:55:27]req_shift_opened [21:55:27]FM_GetShiftState [21:55:27]SAM_PROTO_GetShiftState [21:55:27]wFMCommunicate request_size=4 [21:55:27]MH_SAM_APDU [21:55:27]CAPDU: 80 13 01 00 [21:55:27]Write to MH i2c: 01 00 00 72 53 C5 [21:55:27]Write i2c OK [21:55:27]MH_I2C_Read... [21:55:27]Read from MH i2c: 01 [21:55:27]MH_I2C_Read... [21:55:27]Read from MH i2c: 01 07 00 [21:55:27]MH_I2C_Read... [21:55:27]Read from MH i2c: 01 07 00 72 53 00 00 00 00 00 FF 0F DA [21:55:27]state=0 [21:55:27]Write to MH i2c: E2 08 00 73 53 80 13 01 00 00 00 00 00 43 [21:55:27]Write i2c OK [21:55:27]MH_I2C_Read... [21:55:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:55:27]Read from MH i2c: E2 [21:55:27]MH_I2C_Read... [21:55:27]Read from MH i2c: E2 0E 00 [21:55:27]MH_I2C_Read... [21:55:27]Read from MH i2c: E2 0E 00 73 53 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 05 [21:55:27]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [21:55:27]wFMCommunicate OK [21:55:27]SAM_PROTO_GetShiftState done [21:55:27]FM_GetShiftState done [21:55:27]req_shift_opened done [21:55:27]requested_item shift.open_date is exist - process it [21:55:27]req_shift_open_date [21:55:27]req_shift_open_date done [21:55:27]produce_requested_data done [21:55:27]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123370,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [21:55:27]process_action_free close_receipt [21:55:27]json_value_free [21:55:27]json_value_free done [21:55:27]process_json_proto returns [21:55:27]Send response to host [21:55:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123370,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [21:55:27]free response buf [21:55:27]execute_script done [21:55:27]execute_script returns [21:55:27]free content buf [21:55:27]Sock 9.Close socket [21:55:27]Sock 9.Thread stoped [21:55:29]OFD Sender: No OFD packet to send [21:55:34]OFD Sender: No OFD packet to send [21:55:39]OFD Sender: No OFD packet to send [21:55:44]OFD Sender: No OFD packet to send [21:55:49]OFD Sender: No OFD packet to send [21:55:55]OFD Sender: No OFD packet to send [21:56:00]OFD Sender: No OFD packet to send [21:56:05]OFD Sender: No OFD packet to send [21:56:10]OFD Sender: No OFD packet to send [21:56:15]OFD Sender: No OFD packet to send [21:56:20]OFD Sender: No OFD packet to send [21:56:25]OFD Sender: No OFD packet to send [21:56:30]OFD Sender: No OFD packet to send [21:56:35]OFD Sender: No OFD packet to send [21:56:40]OFD Sender: No OFD packet to send [21:56:45]OFD Sender: No OFD packet to send [21:56:50]OFD Sender: No OFD packet to send [21:56:55]OFD Sender: No OFD packet to send [21:57:00]OFD Sender: No OFD packet to send [21:57:05]OFD Sender: No OFD packet to send [21:57:10]OFD Sender: No OFD packet to send [21:57:15]OFD Sender: No OFD packet to send [21:57:20]OFD Sender: No OFD packet to send [21:57:25]OFD Sender: No OFD packet to send [21:57:30]OFD Sender: No OFD packet to send [21:57:35]OFD Sender: No OFD packet to send [21:57:40]OFD Sender: No OFD packet to send [21:57:45]OFD Sender: No OFD packet to send [21:57:50]OFD Sender: No OFD packet to send [21:57:55]OFD Sender: No OFD packet to send [21:58:00]OFD Sender: No OFD packet to send [21:58:05]OFD Sender: No OFD packet to send [21:58:10]OFD Sender: No OFD packet to send [21:58:15]OFD Sender: No OFD packet to send [21:58:20]OFD Sender: No OFD packet to send [21:58:20]accept exits with 7 [21:58:20]New connection [21:58:20]New thread 3067252068 created [21:58:20]Thread 3067395428 joined [21:58:20]Waiting for new connection... [21:58:20] Sock 7.Parse request [21:58:20]Sock 7.Check first char [21:58:20]Sock 7.First char is OK [21:58:20]request: POST /json_proto HTTP/1.0 [21:58:20]Method: POST [21:58:20]URL: /json_proto [21:58:20]Method is POST - this is cgi request [21:58:20]url: /json_proto [21:58:20]query_string will be loaded in cgi processing [21:58:20]execute_cgi json_proto POST (null) [21:58:20]execute_cgi path=json_proto method=POST [21:58:20]POST find Content-Length [21:58:20]Host: 172.17.48.197:8080 [21:58:20]Content-Length: 820 [21:58:20]Content-Type: application/json [21:58:20] [21:58:20]POST finish read [21:58:20]Found Content-Length = 820 [21:58:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106354", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.30 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:58:20]execute_script... [21:58:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106354", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.30 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:58:20]POST & json_proto [21:58:20]process_json_proto [21:58:20]json parsed OK: [21:58:20]protocol is kg_v1.0 [21:58:20]action value=close_receipt [21:58:20]process_action close_receipt [21:58:20]cmd_close_receipt [21:58:20]MH_GetDate [21:58:20]Write to MH i2c: F0 00 00 74 53 B6 [21:58:20]Write i2c OK [21:58:20]MH_I2C_Read... [21:58:20]Read from MH i2c: F0 [21:58:20]MH_I2C_Read... [21:58:20]Read from MH i2c: F0 09 00 [21:58:20]MH_I2C_Read... [21:58:20]Read from MH i2c: F0 09 00 74 53 00 82 F2 E4 65 6C AF E3 65 DF [21:58:20]GetLastDocTimeStamp 1709502927 [21:58:20]current date 1709503106 [21:58:20]FM_GetShiftState [21:58:20]SAM_PROTO_GetShiftState [21:58:20]wFMCommunicate request_size=4 [21:58:20]MH_SAM_APDU [21:58:20]CAPDU: 80 13 01 00 [21:58:20]Write to MH i2c: E2 08 00 75 53 80 13 01 00 00 00 00 00 45 [21:58:20]Write i2c OK [21:58:20]MH_I2C_Read... [21:58:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:58:20]Read from MH i2c: E2 [21:58:20]MH_I2C_Read... [21:58:20]Read from MH i2c: E2 0E 00 [21:58:20]MH_I2C_Read... [21:58:20]Read from MH i2c: E2 0E 00 75 53 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 07 [21:58:20]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [21:58:20]wFMCommunicate OK [21:58:20]SAM_PROTO_GetShiftState done [21:58:20]FM_GetShiftState done [21:58:20]opened in 1709425579 [21:58:20]opened+sec_in_day 1709511979 [21:58:20]quantity*price = 100030 [21:58:20]sum+1 = 100031 [21:58:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.30 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 0.00 Безнал.: 1000.30 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 228 03.03.2024 21:58 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874798 ФД: 123371 ФПД: 278195574400047 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T215826&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123371&fm=278195574400047&tin=02508201610067®Number=0000000000090573&sum=100030 [21:58:22]StoreToDocumentArchive [21:58:22]shift 323 fd 123371 [21:58:22]save to /storage/0323/doc_00123371 [21:58:22]save last doc name /storage/0323/doc_00123371 to /storage/kkm_last_doc_name [21:58:22]save OK [21:58:22]Clear old archive folders... [21:58:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:58:22]tlvbuf is 00E1B8E0 [21:58:22]SAM_PROTO_ClearQueue [21:58:22]wFMCommunicate request_size=4 [21:58:22]MH_SAM_APDU [21:58:22]CAPDU: 80 09 00 00 [21:58:22]Write to MH i2c: E2 08 00 82 53 80 09 00 00 00 00 00 00 47 [21:58:22]Write i2c OK [21:58:22]MH_I2C_Read... [21:58:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:58:22]Read from MH i2c: E2 [21:58:22]MH_I2C_Read... [21:58:22]Read from MH i2c: E2 03 00 [21:58:22]MH_I2C_Read... [21:58:22]Read from MH i2c: E2 03 00 82 53 00 90 00 49 [21:58:22]RAPDU: 90 00 [21:58:22]wFMCommunicate OK [21:58:22]SAM_PROTO_ClearQueue done [21:58:22]KKMCreateOFDPacket [21:58:22]OFDProtocolAddRootSTLVToBuf [21:58:22]FM_MakeSignedData [21:58:22]FM_MakeSignedData [21:58:22]SAM_PROTO_SignData [21:58:22]wFMCommunicate request_size=4 [21:58:22]MH_SAM_APDU [21:58:22]CAPDU: 80 0D 01 02 [21:58:22]Write to MH i2c: E2 08 00 83 53 80 0D 01 02 00 00 00 00 4F [21:58:22]Write i2c OK [21:58:22]MH_I2C_Read... [21:58:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:58:22]Read from MH i2c: E2 [21:58:22]MH_I2C_Read... [21:58:22]Read from MH i2c: E2 03 00 [21:58:22]MH_I2C_Read... [21:58:22]Read from MH i2c: E2 03 00 83 53 00 90 00 4A [21:58:22]RAPDU: 90 00 [21:58:22]wFMCommunicate OK [21:58:22]wFMCommunicate request_size=255 [21:58:22]MH_SAM_APDU [21:58:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 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 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 82 F2 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 EB E1 01 00 35 04 06 00 FD [21:58:22]Write to MH i2c: E2 02 01 84 53 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 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 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 82 F2 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 EB E1 01 00 35 04 06 00 FD 00 00 A6 [21:58:22]Write i2c OK [21:58:22]MH_I2C_Read... [21:58:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:58:22]Read from MH i2c: E2 [21:58:22]MH_I2C_Read... [21:58:22]Read from MH i2c: E2 03 00 [21:58:22]MH_I2C_Read... [21:58:22]Read from MH i2c: E2 03 00 84 53 00 90 00 4B [21:58:22]RAPDU: 90 00 [21:58:22]wFMCommunicate OK [21:58:22]wFMCommunicate request_size=10 [21:58:22]MH_SAM_APDU [21:58:22]CAPDU: 80 0D 02 02 05 04 74 63 E4 2F [21:58:22]Write to MH i2c: E2 0D 00 85 53 80 0D 02 02 05 00 04 74 63 E4 2F 00 00 4A [21:58:22]Write i2c OK [21:58:22]MH_I2C_Read... [21:58:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:58:22]Read from MH i2c: E2 [21:58:22]MH_I2C_Read... [21:58:22]Read from MH i2c: E2 03 00 [21:58:22]MH_I2C_Read... [21:58:22]Read from MH i2c: E2 03 00 85 53 00 90 00 4C [21:58:22]RAPDU: 90 00 [21:58:22]wFMCommunicate OK [21:58:22]wFMCommunicate request_size=4 [21:58:22]MH_SAM_APDU [21:58:22]CAPDU: 80 0D 03 02 [21:58:22]Write to MH i2c: E2 08 00 86 53 80 0D 03 02 00 00 00 00 54 [21:58:22]Write i2c OK [21:58:22]MH_I2C_Read... [21:58:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:58:22]Read from MH i2c: E2 [21:58:22]MH_I2C_Read... [21:58:22]Read from MH i2c: E2 0B 00 [21:58:22]MH_I2C_Read... [21:58:22]Read from MH i2c: E2 0B 00 86 53 00 2D BF 92 C1 10 07 03 5C 90 00 0A [21:58:22]RAPDU: 2D BF 92 C1 10 07 03 5C 90 00 [21:58:22]wFMCommunicate OK [21:58:22]SAM_PROTO_SignData done [21:58:22]FM_MakeSignedData done [21:58:22]CreateOFDProtocolMessage [21:58:22]wFMCommunicate request_size=4 [21:58:22]MH_SAM_APDU [21:58:22]CAPDU: 80 11 00 00 [21:58:22]Write to MH i2c: E2 08 00 87 53 80 11 00 00 00 00 00 00 54 [21:58:22]Write i2c OK [21:58:22]MH_I2C_Read... [21:58:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:58:22]Read from MH i2c: E2 [21:58:22]MH_I2C_Read... [21:58:22]Read from MH i2c: E2 17 00 [21:58:22]MH_I2C_Read... [21:58:22]Read from MH i2c: E2 17 00 87 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 B2 [21:58:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [21:58:22]wFMCommunicate OK [21:58:22]CreateOFDProtocolMessage done [21:58:22]OFDSenderStorePacket 123371 [21:58:22]StoreOFDPacket docnum=123371 [21:58:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 3B 7B 07 01 A3 AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 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 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 82 F2 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 EB E1 01 00 35 04 06 00 FD 04 74 63 E4 2F 2D BF 92 C1 10 07 03 5C [21:58:22]CheckFolder [21:58:22]dirname=/storage/ofd_packets [21:58:22]CheckFolder done [21:58:22]ProducePacketName [21:58:22]name=ofd_packets/00123371 [21:58:22]NVStorageSaveData ofd_packets/00123371 [21:58:22]File name is /storage/ofd_packets/00123371 [21:58:22]Write 301 bytes [21:58:22]NVStorageSaveData done [21:58:22]OFDSenderStorePacket done [21:58:22]KKMCreateOFDPacket done [21:58:22]NVStorageSaveData kkm_last_timestamp [21:58:22]File name is /storage/kkm_last_timestamp [21:58:22]Write 4 bytes [21:58:22]NVStorageSaveData done [21:58:22]ExternCall_PrintAddStr [21:58:22]wPrintStart [21:58:22]Write to MH i2c: 01 00 00 88 53 DB [21:58:22]Write i2c OK [21:58:22]MH_I2C_Read... [21:58:22]Read from MH i2c: 01 [21:58:22]MH_I2C_Read... [21:58:22]Read from MH i2c: 01 07 00 [21:58:22]MH_I2C_Read... [21:58:22]Read from MH i2c: 01 07 00 88 53 00 00 00 00 00 FF 0F F0 [21:58:22]RasterBufferAndPrint [21:58:22]line Счет N : (1)1106354 [21:58:22]line ИНН: 02508201610067 [21:58:22]line Контрольно-Кассовый Чек [21:58:22]line ПРОДАЖА [21:58:22]line ТРК (МРК, ГНК) : 11 [21:58:22]line Товар: 2710124130 [21:58:22]line Аи-92-К-5 [21:58:22]line 16.160 * 61.90 [21:58:22]line = 1000.30 [21:58:22]line НДС 12% НСП 1% [21:58:22]line > о реализуемом товаре [21:58:22]line ИТОГО: 1000.30 [21:58:22]line НСП 1% : 8.85 [21:58:22]line НДС 12% : 106.23 [21:58:22]line Наличными: 0.00 [21:58:22]line Безнал.: 1000.30 [21:58:22]line Место: АЗС № 25 "Партнер Нефть" [21:58:22]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [21:58:22]line СНО: Общий режим [21:58:22]line Чек 228 03.03.2024 21:58 [21:58:22]line Смена: 323 ФФД: 1.0 [21:58:22]line ЗНМ: 0300000019 [21:58:22]line РНМ: 0000000000090573 [21:58:22]line Версия ККМ: 001 [21:58:22]line Платежная система: Бакай Банк [21:58:22]line ФМ: 0000000000874798 [21:58:22]line ФД: 123371 [21:58:22]line ФПД: 278195574400047 [21:58:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T215826&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123371&fm=278195574400047&tin=02508201610067®Number=0000000000090573&sum=100030 [21:58:22]OFD Sender: Processing packet 123371 [packets to send 112, broken 111] [21:58:22]ProducePacketName [21:58:22]name=ofd_packets/00123371 [21:58:22]OFD Sender: To server: pG, [21:58:22]CommunicateWithHost lk.salyk.kg:30040 [21:58:22]ConnectInit lk.salyk.kg [21:58:22]written 0, free lines is 4095 [21:58:22]Connected sock=10 [21:58: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 37 39 38 0F 01 00 00 3B 7B 07 01 A3 AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 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 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 82 F2 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 EB E1 01 00 35 04 06 00 FD 04 74 63 E4 2F 2D BF 92 C1 10 07 03 5C [21:58:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 9E 1E 47 00 88 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 EB E1 01 00 F4 03 04 00 AC 9E E4 65 B6 04 01 00 00 D6 21 2F D4 C7 74 54 3B [21:58:23]CommunicateWithHost err = 0 [21:58:23]CheckOFDResponse [21:58:23]1017 (14) - 77093643461234 [21:58:23]1041 (16) - 0000000000874798 [21:58:23]1040 (4) - 123371 [21:58:23]1012 (4) - 03.03.2024 16:00 [21:58:23]1206 (1) - 0 [21:58:23]OFD Sender: Remove packet 123371 [21:58:23]ProducePacketName [21:58:23]name=ofd_packets/00123371 [21:58:23]NVStorageDeleteData [21:58:23]Write to MH i2c: 01 00 00 B2 53 05 [21:58:23]Write i2c OK [21:58:23]MH_I2C_Read... [21:58:23]Read from MH i2c: 01 [21:58:23]MH_I2C_Read... [21:58:23]Read from MH i2c: 01 07 00 [21:58:23]MH_I2C_Read... [21:58:23]Read from MH i2c: 01 07 00 B2 53 00 00 00 00 00 08 0D 21 [21:58:23]RasterBufferAndPrint [21:58:23]line [21:58:23]line [21:58:23]line [21:58:23]line [21:58:23]line [21:58:23]written 0, free lines is 3344 [21:58:23]MH_Cut [21:58:23]Write to MH i2c: D1 01 00 B9 53 01 DE [21:58:23]Write i2c OK [21:58:23]MH_I2C_Read... [21:58:23]Read from MH i2c: D1 [21:58:23]MH_I2C_Read... [21:58:23]Read from MH i2c: D1 01 00 [21:58:23]MH_I2C_Read... [21:58:23]Read from MH i2c: D1 01 00 B9 53 00 DD [21:58:23]Write to MH i2c: 01 00 00 BA 53 0D [21:58:23]Write i2c OK [21:58:23]MH_I2C_Read... [21:58:23]OFD Sender: No OFD packet to send [21:58:24]*** Cut start [21:58:24]*** Purtial cut [21:58:24]*** Stage 1: CUTSNS_PIN = 1 [21:58:26]Read from MH i2c: 01 [21:58:26]MH_I2C_Read... [21:58:26]*** Stop cut motor [21:58:26]*** Cut end [21:58:26]Read from MH i2c: 01 07 00 [21:58:26]MH_I2C_Read... [21:58:26]Read from MH i2c: 01 07 00 BA 53 00 00 00 00 00 FF 0F 22 [21:58:26]process_action close_receipt done [21:58:26]requested_data is exist [21:58:26]produce_requested_data [21:58:26]requested_item fm.sn is exist - process it [21:58:26]wFMCommunicate request_size=4 [21:58:26]MH_SAM_APDU [21:58:26]CAPDU: 80 11 00 00 [21:58:26]Write to MH i2c: E2 08 00 BB 53 80 11 00 00 00 00 00 00 88 [21:58:26]Write i2c OK [21:58:26]MH_I2C_Read... [21:58:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:58:26]Read from MH i2c: E2 [21:58:26]MH_I2C_Read... [21:58:26]Read from MH i2c: E2 17 00 [21:58:26]MH_I2C_Read... [21:58:26]Read from MH i2c: E2 17 00 BB 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 E6 [21:58:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [21:58:26]wFMCommunicate OK [21:58:26]requested_item fd.num is exist - process it [21:58:26]SAM_PROTO_GetFieldsCounters [21:58:26]wFMCommunicate request_size=4 [21:58:26]MH_SAM_APDU [21:58:26]CAPDU: 80 13 00 00 [21:58:26]Write to MH i2c: E2 08 00 BC 53 80 13 00 00 00 00 00 00 8B [21:58:26]Write i2c OK [21:58:26]MH_I2C_Read... [21:58:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:58:26]Read from MH i2c: E2 [21:58:26]MH_I2C_Read... [21:58:26]Read from MH i2c: E2 62 00 [21:58:26]MH_I2C_Read... [21:58:26]Read from MH i2c: E2 62 00 BC 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 EB E1 01 00 0E 04 04 00 43 01 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 73 [21:58: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 EB E1 01 00 0E 04 04 00 43 01 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 [21:58:26]wFMCommunicate OK [21:58:26]SAM_PROTO_GetFieldsCounters done [21:58:26]requested_item shift.num is exist - process it [21:58:26]requested_item shift.opened is exist - process it [21:58:26]req_shift_opened [21:58:26]FM_GetShiftState [21:58:26]SAM_PROTO_GetShiftState [21:58:26]wFMCommunicate request_size=4 [21:58:26]MH_SAM_APDU [21:58:26]CAPDU: 80 13 01 00 [21:58:26]Write to MH i2c: E2 08 00 BD 53 80 13 01 00 00 00 00 00 8D [21:58:26]Write i2c OK [21:58:26]MH_I2C_Read... [21:58:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:58:26]Read from MH i2c: E2 [21:58:26]MH_I2C_Read... [21:58:26]Read from MH i2c: E2 0E 00 [21:58:26]MH_I2C_Read... [21:58:26]Read from MH i2c: E2 0E 00 BD 53 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 4F [21:58:26]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [21:58:26]wFMCommunicate OK [21:58:26]SAM_PROTO_GetShiftState done [21:58:26]FM_GetShiftState done [21:58:26]req_shift_opened done [21:58:26]requested_item shift.open_date is exist - process it [21:58:26]req_shift_open_date [21:58:26]req_shift_open_date done [21:58:26]produce_requested_data done [21:58:26]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123371,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [21:58:26]process_action_free close_receipt [21:58:26]json_value_free [21:58:26]json_value_free done [21:58:26]process_json_proto returns [21:58:26]Send response to host [21:58:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123371,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [21:58:26]free response buf [21:58:26]execute_script done [21:58:26]execute_script returns [21:58:26]free content buf [21:58:26]Sock 7.Close socket [21:58:26]Sock 7.Thread stoped [21:58:28]OFD Sender: No OFD packet to send [21:58:33]OFD Sender: No OFD packet to send [21:58:38]OFD Sender: No OFD packet to send [21:58:43]OFD Sender: No OFD packet to send [21:58:48]OFD Sender: No OFD packet to send [21:58:53]OFD Sender: No OFD packet to send [21:58:58]OFD Sender: No OFD packet to send [21:59:03]OFD Sender: No OFD packet to send [21:59:08]OFD Sender: No OFD packet to send [21:59:13]OFD Sender: No OFD packet to send [21:59:18]OFD Sender: No OFD packet to send [21:59:23]OFD Sender: No OFD packet to send [21:59:28]OFD Sender: No OFD packet to send [21:59:33]OFD Sender: No OFD packet to send [21:59:38]OFD Sender: No OFD packet to send [21:59:43]OFD Sender: No OFD packet to send [21:59:48]OFD Sender: No OFD packet to send [21:59:53]OFD Sender: No OFD packet to send [21:59:58]OFD Sender: No OFD packet to send [22:00:03]OFD Sender: No OFD packet to send [22:00:08]OFD Sender: No OFD packet to send [22:00:13]OFD Sender: No OFD packet to send [22:00:18]OFD Sender: No OFD packet to send [22:00:23]OFD Sender: No OFD packet to send [22:00:28]OFD Sender: No OFD packet to send [22:00:33]OFD Sender: No OFD packet to send [22:00:38]OFD Sender: No OFD packet to send [22:00:43]OFD Sender: No OFD packet to send [22:00:48]OFD Sender: No OFD packet to send [22:00:53]OFD Sender: No OFD packet to send [22:00:58]OFD Sender: No OFD packet to send [22:01:03]OFD Sender: No OFD packet to send [22:01:08]OFD Sender: No OFD packet to send [22:01:13]OFD Sender: No OFD packet to send [22:01:18]OFD Sender: No OFD packet to send [22:01:23]OFD Sender: No OFD packet to send [22:01:28]OFD Sender: No OFD packet to send [22:01:33]OFD Sender: No OFD packet to send [22:01:38]OFD Sender: No OFD packet to send [22:01:43]OFD Sender: No OFD packet to send [22:01:48]OFD Sender: No OFD packet to send [22:01:53]OFD Sender: No OFD packet to send [22:01:58]OFD Sender: No OFD packet to send [22:02:03]OFD Sender: No OFD packet to send [22:02:08]accept exits with 9 [22:02:08]New connection [22:02:08]New thread 3067395428 created [22:02:08]Thread 3067252068 joined [22:02:08]Waiting for new connection... [22:02:08] Sock 9.Parse request [22:02:08]Sock 9.Check first char [22:02:08]Sock 9.First char is OK [22:02:08]request: POST /json_proto HTTP/1.0 [22:02:08]Method: POST [22:02:08]URL: /json_proto [22:02:08]Method is POST - this is cgi request [22:02:08]url: /json_proto [22:02:08]query_string will be loaded in cgi processing [22:02:08]execute_cgi json_proto POST (null) [22:02:08]execute_cgi path=json_proto method=POST [22:02:08]POST find Content-Length [22:02:08]Host: 172.17.48.197:8080 [22:02:08]Content-Length: 817 [22:02:08]Content-Type: application/json [22:02:08] [22:02:08]POST finish read [22:02:08]Found Content-Length = 817 [22:02:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106355", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 4.850, "sum" : 300.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 300.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:02:08]execute_script... [22:02: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)1106355", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 4.850, "sum" : 300.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 300.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:02:08]POST & json_proto [22:02:08]process_json_proto [22:02:08]json parsed OK: [22:02:08]protocol is kg_v1.0 [22:02:08]action value=close_receipt [22:02:08]process_action close_receipt [22:02:08]cmd_close_receipt [22:02:08]MH_GetDate [22:02:08]Write to MH i2c: F0 00 00 BE 53 00 [22:02:08]Write i2c OK [22:02:08]MH_I2C_Read... [22:02:08]Read from MH i2c: F0 [22:02:08]MH_I2C_Read... [22:02:08]Read from MH i2c: F0 09 00 [22:02:08]MH_I2C_Read... [22:02:08]Read from MH i2c: F0 09 00 BE 53 00 65 F3 E4 65 6C AF E3 65 0D [22:02:08]GetLastDocTimeStamp 1709503106 [22:02:08]current date 1709503333 [22:02:08]FM_GetShiftState [22:02:08]SAM_PROTO_GetShiftState [22:02:08]wFMCommunicate request_size=4 [22:02:08]MH_SAM_APDU [22:02:08]CAPDU: 80 13 01 00 [22:02:08]Write to MH i2c: E2 08 00 BF 53 80 13 01 00 00 00 00 00 8F [22:02:08]Write i2c OK [22:02:08]MH_I2C_Read... [22:02:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:02:08]Read from MH i2c: E2 [22:02:08]MH_I2C_Read... [22:02:08]Read from MH i2c: E2 0E 00 [22:02:08]MH_I2C_Read... [22:02:08]Read from MH i2c: E2 0E 00 BF 53 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 51 [22:02:08]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [22:02:08]wFMCommunicate OK [22:02:08]SAM_PROTO_GetShiftState done [22:02:08]FM_GetShiftState done [22:02:08]opened in 1709425579 [22:02:08]opened+sec_in_day 1709511979 [22:02:08]quantity*price = 30021 [22:02:08]sum+1 = 30023 [22:02:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.22 НСП 1% : 2.66 НДС 12% : 31.88 Наличными: 0.00 Безнал.: 300.22 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 229 03.03.2024 22:02 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874798 ФД: 123372 ФПД: 206529997653341 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T220213&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123372&fm=206529997653341&tin=02508201610067®Number=0000000000090573&sum=30022 [22:02:09]StoreToDocumentArchive [22:02:09]shift 323 fd 123372 [22:02:09]save to /storage/0323/doc_00123372 [22:02:09]save last doc name /storage/0323/doc_00123372 to /storage/kkm_last_doc_name [22:02:09]save OK [22:02:09]Clear old archive folders... [22:02:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:02:09]tlvbuf is 00F21250 [22:02:09]SAM_PROTO_ClearQueue [22:02:09]wFMCommunicate request_size=4 [22:02:09]MH_SAM_APDU [22:02:09]CAPDU: 80 09 00 00 [22:02:09]Write to MH i2c: E2 08 00 CC 53 80 09 00 00 00 00 00 00 91 [22:02:09]Write i2c OK [22:02:09]MH_I2C_Read... [22:02:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:02:09]Read from MH i2c: E2 [22:02:09]MH_I2C_Read... [22:02:09]Read from MH i2c: E2 03 00 [22:02:09]MH_I2C_Read... [22:02:09]Read from MH i2c: E2 03 00 CC 53 00 90 00 93 [22:02:09]RAPDU: 90 00 [22:02:09]wFMCommunicate OK [22:02:09]SAM_PROTO_ClearQueue done [22:02:09]KKMCreateOFDPacket [22:02:09]OFDProtocolAddRootSTLVToBuf [22:02:09]FM_MakeSignedData [22:02:09]FM_MakeSignedData [22:02:09]SAM_PROTO_SignData [22:02:09]wFMCommunicate request_size=4 [22:02:09]MH_SAM_APDU [22:02:09]CAPDU: 80 0D 01 02 [22:02:09]Write to MH i2c: E2 08 00 CD 53 80 0D 01 02 00 00 00 00 99 [22:02:09]Write i2c OK [22:02:09]MH_I2C_Read... [22:02:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:02:09]Read from MH i2c: E2 [22:02:09]MH_I2C_Read... [22:02:09]Read from MH i2c: E2 03 00 [22:02:09]MH_I2C_Read... [22:02:09]Read from MH i2c: E2 03 00 CD 53 00 90 00 94 [22:02:09]RAPDU: 90 00 [22:02:09]wFMCommunicate OK [22:02:09]wFMCommunicate request_size=255 [22:02:09]MH_SAM_APDU [22:02: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 35 FF 03 08 00 03 F2 12 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 46 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 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 74 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 65 F3 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 EC E1 01 00 35 04 06 00 BB [22:02:09]Write to MH i2c: E2 02 01 CE 53 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 12 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 46 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 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 74 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 65 F3 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 EC E1 01 00 35 04 06 00 BB 00 00 06 [22:02:09]Write i2c OK [22:02:09]MH_I2C_Read... [22:02:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:02:09]Read from MH i2c: E2 [22:02:09]MH_I2C_Read... [22:02:09]Read from MH i2c: E2 03 00 [22:02:09]MH_I2C_Read... [22:02:09]Read from MH i2c: E2 03 00 CE 53 00 90 00 95 [22:02:09]RAPDU: 90 00 [22:02:09]wFMCommunicate OK [22:02:09]wFMCommunicate request_size=10 [22:02:09]MH_SAM_APDU [22:02:09]CAPDU: 80 0D 02 02 05 D6 83 25 45 5D [22:02:09]Write to MH i2c: E2 0D 00 CF 53 80 0D 02 02 05 00 D6 83 25 45 5D 00 00 C6 [22:02:09]Write i2c OK [22:02:09]MH_I2C_Read... [22:02:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:02:09]Read from MH i2c: E2 [22:02:09]MH_I2C_Read... [22:02:09]Read from MH i2c: E2 03 00 [22:02:09]MH_I2C_Read... [22:02:09]Read from MH i2c: E2 03 00 CF 53 00 90 00 96 [22:02:09]RAPDU: 90 00 [22:02:09]wFMCommunicate OK [22:02:09]wFMCommunicate request_size=4 [22:02:09]MH_SAM_APDU [22:02:09]CAPDU: 80 0D 03 02 [22:02:09]Write to MH i2c: E2 08 00 D0 53 80 0D 03 02 00 00 00 00 9E [22:02:09]Write i2c OK [22:02:09]MH_I2C_Read... [22:02:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:02:09]Read from MH i2c: E2 [22:02:09]MH_I2C_Read... [22:02:09]Read from MH i2c: E2 0B 00 [22:02:09]MH_I2C_Read... [22:02:09]Read from MH i2c: E2 0B 00 D0 53 00 9D F5 EB 2E 16 67 36 A1 90 00 9E [22:02:09]RAPDU: 9D F5 EB 2E 16 67 36 A1 90 00 [22:02:09]wFMCommunicate OK [22:02:09]SAM_PROTO_SignData done [22:02:09]FM_MakeSignedData done [22:02:09]CreateOFDProtocolMessage [22:02:09]wFMCommunicate request_size=4 [22:02:09]MH_SAM_APDU [22:02:09]CAPDU: 80 11 00 00 [22:02:09]Write to MH i2c: E2 08 00 D1 53 80 11 00 00 00 00 00 00 9E [22:02:09]Write i2c OK [22:02:09]MH_I2C_Read... [22:02:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:02:09]Read from MH i2c: E2 [22:02:09]MH_I2C_Read... [22:02:09]Read from MH i2c: E2 17 00 [22:02:09]MH_I2C_Read... [22:02:09]Read from MH i2c: E2 17 00 D1 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 FC [22:02:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [22:02:09]wFMCommunicate OK [22:02:09]CreateOFDProtocolMessage done [22:02:09]OFDSenderStorePacket 123372 [22:02:09]StoreOFDPacket docnum=123372 [22:02:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 0C B5 07 01 5F 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 12 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 46 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 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 74 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 65 F3 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 EC E1 01 00 35 04 06 00 BB D6 83 25 45 5D 9D F5 EB 2E 16 67 36 A1 [22:02:09]CheckFolder [22:02:09]dirname=/storage/ofd_packets [22:02:09]CheckFolder done [22:02:09]ProducePacketName [22:02:09]name=ofd_packets/00123372 [22:02:09]NVStorageSaveData ofd_packets/00123372 [22:02:09]File name is /storage/ofd_packets/00123372 [22:02:09]Write 301 bytes [22:02:09]NVStorageSaveData done [22:02:09]OFDSenderStorePacket done [22:02:09]KKMCreateOFDPacket done [22:02:09]NVStorageSaveData kkm_last_timestamp [22:02:09]File name is /storage/kkm_last_timestamp [22:02:09]Write 4 bytes [22:02:09]NVStorageSaveData done [22:02:09]OFD Sender: Processing packet 123372 [packets to send 112, broken 111] [22:02:09]ProducePacketName [22:02:09]name=ofd_packets/00123372 [22:02:09]OFD Sender: To server: pG, [22:02:09]CommunicateWithHost lk.salyk.kg:30040 [22:02:09]ConnectInit lk.salyk.kg [22:02:09]ExternCall_PrintAddStr [22:02:09]wPrintStart [22:02:09]Write to MH i2c: 01 00 00 D2 53 25 [22:02:09]Write i2c OK [22:02:09]MH_I2C_Read... [22:02:09]Read from MH i2c: 01 [22:02:09]MH_I2C_Read... [22:02:09]Read from MH i2c: 01 07 00 [22:02:09]MH_I2C_Read... [22:02:09]Read from MH i2c: 01 07 00 D2 53 00 00 00 00 00 FF 0F 3A [22:02:09]RasterBufferAndPrint [22:02:09]line Счет N : (1)1106355 [22:02:09]line ИНН: 02508201610067 [22:02:09]line Контрольно-Кассовый Чек [22:02:09]line ПРОДАЖА [22:02:09]line ТРК (МРК, ГНК) : 52 [22:02:09]line Товар: 2710124130 [22:02:09]line Аи-92-К-5 [22:02:09]line 4.850 * 61.90 [22:02:09]line = 300.22 [22:02:09]line НДС 12% НСП 1% [22:02:09]line > о реализуемом товаре [22:02:09]line ИТОГО: 300.22 [22:02:09]line НСП 1% : 2.66 [22:02:09]line НДС 12% : 31.88 [22:02:09]line Наличными: 0.00 [22:02:09]line Безнал.: 300.22 [22:02:09]line Место: АЗС № 25 "Партнер Нефть" [22:02:09]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [22:02:09]line СНО: Общий режим [22:02:09]line Чек 229 03.03.2024 22:02 [22:02:09]line Смена: 323 ФФД: 1.0 [22:02:09]line ЗНМ: 0300000019 [22:02:09]line РНМ: 0000000000090573 [22:02:09]line Версия ККМ: 001 [22:02:09]line Платежная система: Бакай Банк [22:02:09]line ФМ: 0000000000874798 [22:02:09]line ФД: 123372 [22:02:10]line ФПД: 206529997653341 [22:02:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T220213&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123372&fm=206529997653341&tin=02508201610067®Number=0000000000090573&sum=30022 [22:02:10]Connected sock=12 [22:02: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 37 39 38 0F 01 00 00 0C B5 07 01 5F 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 12 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 46 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 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 74 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 65 F3 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 EC E1 01 00 35 04 06 00 BB D6 83 25 45 5D 9D F5 EB 2E 16 67 36 A1 [22:02:10]written 0, free lines is 4095 [22:02:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 AF F7 47 00 69 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 EC E1 01 00 F4 03 04 00 8F 9F E4 65 B6 04 01 00 00 34 21 BD A8 E4 D9 7A 15 [22:02:10]CommunicateWithHost err = 0 [22:02:10]CheckOFDResponse [22:02:10]1017 (14) - 77093643461234 [22:02:10]1041 (16) - 0000000000874798 [22:02:10]1040 (4) - 123372 [22:02:10]1012 (4) - 03.03.2024 16:04 [22:02:10]1206 (1) - 0 [22:02:10]OFD Sender: Remove packet 123372 [22:02:10]ProducePacketName [22:02:10]name=ofd_packets/00123372 [22:02:10]NVStorageDeleteData [22:02:10]Write to MH i2c: 01 00 00 FC 53 4F [22:02:10]Write i2c OK [22:02:10]MH_I2C_Read... [22:02:10]Read from MH i2c: 01 [22:02:10]MH_I2C_Read... [22:02:10]Read from MH i2c: 01 07 00 [22:02:10]MH_I2C_Read... [22:02:10]Read from MH i2c: 01 07 00 FC 53 00 00 00 00 00 04 0D 67 [22:02:10]RasterBufferAndPrint [22:02:10]line [22:02:10]line [22:02:10]line [22:02:10]line [22:02:10]line [22:02:10]written 0, free lines is 3338 [22:02:10]MH_Cut [22:02:10]Write to MH i2c: D1 01 00 03 54 01 29 [22:02:10]Write i2c OK [22:02:10]MH_I2C_Read... [22:02:10]Read from MH i2c: D1 [22:02:10]MH_I2C_Read... [22:02:10]Read from MH i2c: D1 01 00 [22:02:10]MH_I2C_Read... [22:02:10]Read from MH i2c: D1 01 00 03 54 00 28 [22:02:10]Write to MH i2c: 01 00 00 04 54 58 [22:02:10]Write i2c OK [22:02:10]MH_I2C_Read... [22:02:10]OFD Sender: No OFD packet to send [22:02:11]*** Cut start [22:02:11]*** Purtial cut [22:02:11]*** Stage 1: CUTSNS_PIN = 1 [22:02:13]Read from MH i2c: 01 [22:02:13]MH_I2C_Read... [22:02:13]*** Stop cut motor [22:02:13]*** Cut end [22:02:13]Read from MH i2c: 01 07 00 [22:02:13]MH_I2C_Read... [22:02:13]Read from MH i2c: 01 07 00 04 54 00 00 00 00 00 FF 0F 6D [22:02:13]process_action close_receipt done [22:02:13]requested_data is exist [22:02:13]produce_requested_data [22:02:13]requested_item fm.sn is exist - process it [22:02:13]wFMCommunicate request_size=4 [22:02:13]MH_SAM_APDU [22:02:13]CAPDU: 80 11 00 00 [22:02:13]Write to MH i2c: E2 08 00 05 54 80 11 00 00 00 00 00 00 D3 [22:02:13]Write i2c OK [22:02:13]MH_I2C_Read... [22:02:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:02:13]Read from MH i2c: E2 [22:02:13]MH_I2C_Read... [22:02:13]Read from MH i2c: E2 17 00 [22:02:13]MH_I2C_Read... [22:02:13]Read from MH i2c: E2 17 00 05 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 31 [22:02:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [22:02:13]wFMCommunicate OK [22:02:13]requested_item fd.num is exist - process it [22:02:13]SAM_PROTO_GetFieldsCounters [22:02:13]wFMCommunicate request_size=4 [22:02:13]MH_SAM_APDU [22:02:13]CAPDU: 80 13 00 00 [22:02:13]Write to MH i2c: E2 08 00 06 54 80 13 00 00 00 00 00 00 D6 [22:02:13]Write i2c OK [22:02:13]MH_I2C_Read... [22:02:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:02:13]Read from MH i2c: E2 [22:02:13]MH_I2C_Read... [22:02:13]Read from MH i2c: E2 62 00 [22:02:13]MH_I2C_Read... [22:02:13]Read from MH i2c: E2 62 00 06 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 EC E1 01 00 0E 04 04 00 43 01 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 C2 [22:02: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 EC E1 01 00 0E 04 04 00 43 01 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 [22:02:13]wFMCommunicate OK [22:02:13]SAM_PROTO_GetFieldsCounters done [22:02:13]requested_item shift.num is exist - process it [22:02:13]requested_item shift.opened is exist - process it [22:02:13]req_shift_opened [22:02:13]FM_GetShiftState [22:02:13]SAM_PROTO_GetShiftState [22:02:13]wFMCommunicate request_size=4 [22:02:13]MH_SAM_APDU [22:02:13]CAPDU: 80 13 01 00 [22:02:13]Write to MH i2c: E2 08 00 07 54 80 13 01 00 00 00 00 00 D8 [22:02:13]Write i2c OK [22:02:13]MH_I2C_Read... [22:02:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:02:13]Read from MH i2c: E2 [22:02:13]MH_I2C_Read... [22:02:13]Read from MH i2c: E2 0E 00 [22:02:13]MH_I2C_Read... [22:02:13]Read from MH i2c: E2 0E 00 07 54 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 9A [22:02:13]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [22:02:13]wFMCommunicate OK [22:02:13]SAM_PROTO_GetShiftState done [22:02:13]FM_GetShiftState done [22:02:13]req_shift_opened done [22:02:13]requested_item shift.open_date is exist - process it [22:02:13]req_shift_open_date [22:02:13]req_shift_open_date done [22:02:13]produce_requested_data done [22:02:13]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123372,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [22:02:13]process_action_free close_receipt [22:02:13]json_value_free [22:02:13]json_value_free done [22:02:13]process_json_proto returns [22:02:13]Send response to host [22:02:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123372,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [22:02:13]free response buf [22:02:13]execute_script done [22:02:13]execute_script returns [22:02:13]free content buf [22:02:13]Sock 9.Close socket [22:02:13]Sock 9.Thread stoped [22:02:15]OFD Sender: No OFD packet to send [22:02:20]OFD Sender: No OFD packet to send [22:02:25]OFD Sender: No OFD packet to send [22:02:30]OFD Sender: No OFD packet to send [22:02:35]OFD Sender: No OFD packet to send [22:02:40]OFD Sender: No OFD packet to send [22:02:45]OFD Sender: No OFD packet to send [22:02:50]OFD Sender: No OFD packet to send [22:02:56]OFD Sender: No OFD packet to send [22:03:01]OFD Sender: No OFD packet to send [22:03:06]OFD Sender: No OFD packet to send [22:03:11]OFD Sender: No OFD packet to send [22:03:16]OFD Sender: No OFD packet to send [22:03:21]OFD Sender: No OFD packet to send [22:03:26]OFD Sender: No OFD packet to send [22:03:31]OFD Sender: No OFD packet to send [22:03:36]OFD Sender: No OFD packet to send [22:03:41]OFD Sender: No OFD packet to send [22:03:46]OFD Sender: No OFD packet to send [22:03:51]OFD Sender: No OFD packet to send [22:03:56]OFD Sender: No OFD packet to send [22:04:01]OFD Sender: No OFD packet to send [22:04:06]OFD Sender: No OFD packet to send [22:04:11]OFD Sender: No OFD packet to send [22:04:16]OFD Sender: No OFD packet to send [22:04:21]OFD Sender: No OFD packet to send [22:04:26]OFD Sender: No OFD packet to send [22:04:31]OFD Sender: No OFD packet to send [22:04:36]OFD Sender: No OFD packet to send [22:04:41]OFD Sender: No OFD packet to send [22:04:46]OFD Sender: No OFD packet to send [22:04:51]OFD Sender: No OFD packet to send [22:04:51]accept exits with 7 [22:04:51]New connection [22:04:51]New thread 3067252068 created [22:04:51]Thread 3067395428 joined [22:04:51]Waiting for new connection... [22:04:51] Sock 7.Parse request [22:04:51]Sock 7.Check first char [22:04:51]Sock 7.First char is OK [22:04:51]request: POST /json_proto HTTP/1.0 [22:04:51]Method: POST [22:04:51]URL: /json_proto [22:04:51]Method is POST - this is cgi request [22:04:51]url: /json_proto [22:04:51]query_string will be loaded in cgi processing [22:04:51]execute_cgi json_proto POST (null) [22:04:51]execute_cgi path=json_proto method=POST [22:04:51]POST find Content-Length [22:04:51]Host: 172.17.48.197:8080 [22:04:51]Content-Length: 806 [22:04:51]Content-Type: application/json [22:04:51] [22:04:51]POST finish read [22:04:51]Found Content-Length = 806 [22:04:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106356", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:04:51]execute_script... [22:04: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)1106356", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:04:51]POST & json_proto [22:04:51]process_json_proto [22:04:51]json parsed OK: [22:04:51]protocol is kg_v1.0 [22:04:51]action value=close_receipt [22:04:51]process_action close_receipt [22:04:51]cmd_close_receipt [22:04:51]MH_GetDate [22:04:51]Write to MH i2c: F0 00 00 08 54 4B [22:04:51]Write i2c OK [22:04:51]MH_I2C_Read... [22:04:51]Read from MH i2c: F0 [22:04:51]MH_I2C_Read... [22:04:51]Read from MH i2c: F0 09 00 [22:04:51]MH_I2C_Read... [22:04:51]Read from MH i2c: F0 09 00 08 54 00 09 F4 E4 65 6C AF E3 65 FD [22:04:51]GetLastDocTimeStamp 1709503333 [22:04:51]current date 1709503497 [22:04:51]FM_GetShiftState [22:04:51]SAM_PROTO_GetShiftState [22:04:51]wFMCommunicate request_size=4 [22:04:51]MH_SAM_APDU [22:04:51]CAPDU: 80 13 01 00 [22:04:51]Write to MH i2c: E2 08 00 09 54 80 13 01 00 00 00 00 00 DA [22:04:51]Write i2c OK [22:04:51]MH_I2C_Read... [22:04:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:04:51]Read from MH i2c: E2 [22:04:51]MH_I2C_Read... [22:04:51]Read from MH i2c: E2 0E 00 [22:04:51]MH_I2C_Read... [22:04:51]Read from MH i2c: E2 0E 00 09 54 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 9C [22:04:51]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [22:04:51]wFMCommunicate OK [22:04:51]SAM_PROTO_GetShiftState done [22:04:51]FM_GetShiftState done [22:04:51]opened in 1709425579 [22:04:51]opened+sec_in_day 1709511979 [22:04:51]quantity*price = 50015 [22:04:51]sum+1 = 50016 [22:04:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.15 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.15 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 230 03.03.2024 22:04 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874798 ФД: 123373 ФПД: 200028293120403 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T220457&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123373&fm=200028293120403&tin=02508201610067®Number=0000000000090573&sum=50015 [22:04:52]StoreToDocumentArchive [22:04:52]shift 323 fd 123373 [22:04:52]save to /storage/0323/doc_00123373 [22:04:52]save last doc name /storage/0323/doc_00123373 to /storage/kkm_last_doc_name [22:04:52]save OK [22:04:52]Clear old archive folders... [22:04:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:04:52]tlvbuf is 00E4E160 [22:04:52]SAM_PROTO_ClearQueue [22:04:52]wFMCommunicate request_size=4 [22:04:52]MH_SAM_APDU [22:04:52]CAPDU: 80 09 00 00 [22:04:52]Write to MH i2c: E2 08 00 16 54 80 09 00 00 00 00 00 00 DC [22:04:52]Write i2c OK [22:04:52]MH_I2C_Read... [22:04:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:04:53]Read from MH i2c: E2 [22:04:53]MH_I2C_Read... [22:04:53]Read from MH i2c: E2 03 00 [22:04:53]MH_I2C_Read... [22:04:53]Read from MH i2c: E2 03 00 16 54 00 90 00 DE [22:04:53]RAPDU: 90 00 [22:04:53]wFMCommunicate OK [22:04:53]SAM_PROTO_ClearQueue done [22:04:53]KKMCreateOFDPacket [22:04:53]OFDProtocolAddRootSTLVToBuf [22:04:53]FM_MakeSignedData [22:04:53]FM_MakeSignedData [22:04:53]SAM_PROTO_SignData [22:04:53]wFMCommunicate request_size=4 [22:04:53]MH_SAM_APDU [22:04:53]CAPDU: 80 0D 01 02 [22:04:53]Write to MH i2c: E2 08 00 17 54 80 0D 01 02 00 00 00 00 E4 [22:04:53]Write i2c OK [22:04:53]MH_I2C_Read... [22:04:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:04:53]Read from MH i2c: E2 [22:04:53]MH_I2C_Read... [22:04:53]Read from MH i2c: E2 03 00 [22:04:53]MH_I2C_Read... [22:04:53]Read from MH i2c: E2 03 00 17 54 00 90 00 DF [22:04:53]RAPDU: 90 00 [22:04:53]wFMCommunicate OK [22:04:53]wFMCommunicate request_size=255 [22:04:53]MH_SAM_APDU [22:04:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 09 F4 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 ED E1 01 00 35 04 06 00 B5 [22:04:53]Write to MH i2c: E2 02 01 18 54 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 09 F4 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 ED E1 01 00 35 04 06 00 B5 00 00 D6 [22:04:53]Write i2c OK [22:04:53]MH_I2C_Read... [22:04:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:04:53]Read from MH i2c: E2 [22:04:53]MH_I2C_Read... [22:04:53]Read from MH i2c: E2 03 00 [22:04:53]MH_I2C_Read... [22:04:53]Read from MH i2c: E2 03 00 18 54 00 90 00 E0 [22:04:53]RAPDU: 90 00 [22:04:53]wFMCommunicate OK [22:04:53]wFMCommunicate request_size=10 [22:04:53]MH_SAM_APDU [22:04:53]CAPDU: 80 0D 02 02 05 EC B7 5B 41 93 [22:04:53]Write to MH i2c: E2 0D 00 19 54 80 0D 02 02 05 00 EC B7 5B 41 93 00 00 C3 [22:04:53]Write i2c OK [22:04:53]MH_I2C_Read... [22:04:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:04:53]Read from MH i2c: E2 [22:04:53]MH_I2C_Read... [22:04:53]Read from MH i2c: E2 03 00 [22:04:53]MH_I2C_Read... [22:04:53]Read from MH i2c: E2 03 00 19 54 00 90 00 E1 [22:04:53]RAPDU: 90 00 [22:04:53]wFMCommunicate OK [22:04:53]wFMCommunicate request_size=4 [22:04:53]MH_SAM_APDU [22:04:53]CAPDU: 80 0D 03 02 [22:04:53]Write to MH i2c: E2 08 00 1A 54 80 0D 03 02 00 00 00 00 E9 [22:04:53]Write i2c OK [22:04:53]MH_I2C_Read... [22:04:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:04:53]Read from MH i2c: E2 [22:04:53]MH_I2C_Read... [22:04:53]Read from MH i2c: E2 0B 00 [22:04:53]MH_I2C_Read... [22:04:53]Read from MH i2c: E2 0B 00 1A 54 00 49 4F 55 09 80 BA 8E AF 90 00 57 [22:04:53]RAPDU: 49 4F 55 09 80 BA 8E AF 90 00 [22:04:53]wFMCommunicate OK [22:04:53]SAM_PROTO_SignData done [22:04:53]FM_MakeSignedData done [22:04:53]CreateOFDProtocolMessage [22:04:53]wFMCommunicate request_size=4 [22:04:53]MH_SAM_APDU [22:04:53]CAPDU: 80 11 00 00 [22:04:53]Write to MH i2c: E2 08 00 1B 54 80 11 00 00 00 00 00 00 E9 [22:04:53]Write i2c OK [22:04:53]MH_I2C_Read... [22:04:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:04:53]Read from MH i2c: E2 [22:04:53]MH_I2C_Read... [22:04:53]Read from MH i2c: E2 17 00 [22:04:53]MH_I2C_Read... [22:04:53]Read from MH i2c: E2 17 00 1B 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 47 [22:04:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [22:04:53]wFMCommunicate OK [22:04:53]CreateOFDProtocolMessage done [22:04:53]OFDSenderStorePacket 123373 [22:04:53]StoreOFDPacket docnum=123373 [22:04:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 AE 8E 07 01 78 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 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 09 F4 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 ED E1 01 00 35 04 06 00 B5 EC B7 5B 41 93 49 4F 55 09 80 BA 8E AF [22:04:53]CheckFolder [22:04:53]dirname=/storage/ofd_packets [22:04:53]CheckFolder done [22:04:53]ProducePacketName [22:04:53]name=ofd_packets/00123373 [22:04:53]NVStorageSaveData ofd_packets/00123373 [22:04:53]File name is /storage/ofd_packets/00123373 [22:04:53]Write 301 bytes [22:04:53]NVStorageSaveData done [22:04:53]OFDSenderStorePacket done [22:04:53]KKMCreateOFDPacket done [22:04:53]NVStorageSaveData kkm_last_timestamp [22:04:53]File name is /storage/kkm_last_timestamp [22:04:53]Write 4 bytes [22:04:53]NVStorageSaveData done [22:04:53]ExternCall_PrintAddStr [22:04:53]wPrintStart [22:04:53]Write to MH i2c: 01 00 00 1C 54 70 [22:04:53]Write i2c OK [22:04:53]MH_I2C_Read... [22:04:53]Read from MH i2c: 01 [22:04:53]MH_I2C_Read... [22:04:53]Read from MH i2c: 01 07 00 [22:04:53]MH_I2C_Read... [22:04:53]Read from MH i2c: 01 07 00 1C 54 00 00 00 00 00 FF 0F 85 [22:04:53]RasterBufferAndPrint [22:04:53]line Счет N : (1)1106356 [22:04:53]line ИНН: 02508201610067 [22:04:53]line Контрольно-Кассовый Чек [22:04:53]line ПРОДАЖА [22:04:53]line ТРК (МРК, ГНК) : 11 [22:04:53]line Товар: 2710124130 [22:04:53]line Аи-92-К-5 [22:04:53]line 8.080 * 61.90 [22:04:53]line = 500.15 [22:04:53]line НДС 12% НСП 1% [22:04:53]line > о реализуемом товаре [22:04:53]line ИТОГО: 500.15 [22:04:53]line НСП 1% : 4.43 [22:04:53]line НДС 12% : 53.11 [22:04:53]line Наличными: 0.00 [22:04:53]line Безнал.: 500.15 [22:04:53]line Место: АЗС № 25 "Партнер Нефть" [22:04:53]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [22:04:53]line СНО: Общий режим [22:04:53]line Чек 230 03.03.2024 22:04 [22:04:53]line Смена: 323 ФФД: 1.0 [22:04:53]line ЗНМ: 0300000019 [22:04:53]line РНМ: 0000000000090573 [22:04:53]line Версия ККМ: 001 [22:04:53]line Платежная система: О! деньги [22:04:53]line ФМ: 0000000000874798 [22:04:53]line ФД: 123373 [22:04:53]line ФПД: 200028293120403 [22:04:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T220457&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123373&fm=200028293120403&tin=02508201610067®Number=0000000000090573&sum=50015 [22:04:53]OFD Sender: Processing packet 123373 [packets to send 112, broken 111] [22:04:53]ProducePacketName [22:04:53]name=ofd_packets/00123373 [22:04:53]OFD Sender: To server: pG, [22:04:53]CommunicateWithHost lk.salyk.kg:30040 [22:04:53]ConnectInit lk.salyk.kg [22:04:53]written 0, free lines is 4095 [22:04:53]Connected sock=10 [22:04: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 37 39 38 0F 01 00 00 AE 8E 07 01 78 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 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 09 F4 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 ED E1 01 00 35 04 06 00 B5 EC B7 5B 41 93 49 4F 55 09 80 BA 8E AF [22:04:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 1C BB 47 00 12 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 37 39 38 10 04 04 00 ED E1 01 00 F4 03 04 00 33 A0 E4 65 B6 04 01 00 00 FD B0 15 C7 13 CE 07 68 [22:04:54]CommunicateWithHost err = 0 [22:04:54]CheckOFDResponse [22:04:54]1017 (14) - 77093643461234 [22:04:54]1041 (16) - 0000000000874798 [22:04:54]1040 (4) - 123373 [22:04:54]1012 (4) - 03.03.2024 16:07 [22:04:54]1206 (1) - 0 [22:04:54]OFD Sender: Remove packet 123373 [22:04:54]ProducePacketName [22:04:54]name=ofd_packets/00123373 [22:04:54]NVStorageDeleteData [22:04:54]Write to MH i2c: 01 00 00 46 54 9A [22:04:54]Write i2c OK [22:04:54]MH_I2C_Read... [22:04:54]Read from MH i2c: 01 [22:04:54]MH_I2C_Read... [22:04:54]Read from MH i2c: 01 07 00 [22:04:54]MH_I2C_Read... [22:04:54]Read from MH i2c: 01 07 00 46 54 00 00 00 00 00 04 0D B2 [22:04:54]RasterBufferAndPrint [22:04:54]line [22:04:54]line [22:04:54]line [22:04:54]line [22:04:54]line [22:04:54]written 0, free lines is 3338 [22:04:54]MH_Cut [22:04:54]Write to MH i2c: D1 01 00 4D 54 01 73 [22:04:54]Write i2c OK [22:04:54]MH_I2C_Read... [22:04:54]Read from MH i2c: D1 [22:04:54]MH_I2C_Read... [22:04:54]Read from MH i2c: D1 01 00 [22:04:54]MH_I2C_Read... [22:04:54]Read from MH i2c: D1 01 00 4D 54 00 72 [22:04:54]Write to MH i2c: 01 00 00 4E 54 A2 [22:04:54]Write i2c OK [22:04:54]MH_I2C_Read... [22:04:54]OFD Sender: No OFD packet to send [22:04:54]*** Cut start [22:04:54]*** Purtial cut [22:04:54]*** Stage 1: CUTSNS_PIN = 1 [22:04:56]Read from MH i2c: 01 [22:04:56]MH_I2C_Read... [22:04:56]*** Stop cut motor [22:04:56]*** Cut end [22:04:56]Read from MH i2c: 01 07 00 [22:04:56]MH_I2C_Read... [22:04:56]Read from MH i2c: 01 07 00 4E 54 00 00 00 00 00 FF 0F B7 [22:04:57]process_action close_receipt done [22:04:57]requested_data is exist [22:04:57]produce_requested_data [22:04:57]requested_item fm.sn is exist - process it [22:04:57]wFMCommunicate request_size=4 [22:04:57]MH_SAM_APDU [22:04:57]CAPDU: 80 11 00 00 [22:04:57]Write to MH i2c: E2 08 00 4F 54 80 11 00 00 00 00 00 00 1D [22:04:57]Write i2c OK [22:04:57]MH_I2C_Read... [22:04:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:04:57]Read from MH i2c: E2 [22:04:57]MH_I2C_Read... [22:04:57]Read from MH i2c: E2 17 00 [22:04:57]MH_I2C_Read... [22:04:57]Read from MH i2c: E2 17 00 4F 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 7B [22:04:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [22:04:57]wFMCommunicate OK [22:04:57]requested_item fd.num is exist - process it [22:04:57]SAM_PROTO_GetFieldsCounters [22:04:57]wFMCommunicate request_size=4 [22:04:57]MH_SAM_APDU [22:04:57]CAPDU: 80 13 00 00 [22:04:57]Write to MH i2c: E2 08 00 50 54 80 13 00 00 00 00 00 00 20 [22:04:57]Write i2c OK [22:04:57]MH_I2C_Read... [22:04:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:04:57]Read from MH i2c: E2 [22:04:57]MH_I2C_Read... [22:04:57]Read from MH i2c: E2 62 00 [22:04:57]MH_I2C_Read... [22:04:57]Read from MH i2c: E2 62 00 50 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 ED E1 01 00 0E 04 04 00 43 01 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 10 [22:04: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 ED E1 01 00 0E 04 04 00 43 01 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 [22:04:57]wFMCommunicate OK [22:04:57]SAM_PROTO_GetFieldsCounters done [22:04:57]requested_item shift.num is exist - process it [22:04:57]requested_item shift.opened is exist - process it [22:04:57]req_shift_opened [22:04:57]FM_GetShiftState [22:04:57]SAM_PROTO_GetShiftState [22:04:57]wFMCommunicate request_size=4 [22:04:57]MH_SAM_APDU [22:04:57]CAPDU: 80 13 01 00 [22:04:57]Write to MH i2c: E2 08 00 51 54 80 13 01 00 00 00 00 00 22 [22:04:57]Write i2c OK [22:04:57]MH_I2C_Read... [22:04:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:04:57]Read from MH i2c: E2 [22:04:57]MH_I2C_Read... [22:04:57]Read from MH i2c: E2 0E 00 [22:04:57]MH_I2C_Read... [22:04:57]Read from MH i2c: E2 0E 00 51 54 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 E4 [22:04:57]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [22:04:57]wFMCommunicate OK [22:04:57]SAM_PROTO_GetShiftState done [22:04:57]FM_GetShiftState done [22:04:57]req_shift_opened done [22:04:57]requested_item shift.open_date is exist - process it [22:04:57]req_shift_open_date [22:04:57]req_shift_open_date done [22:04:57]produce_requested_data done [22:04:57]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123373,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [22:04:57]process_action_free close_receipt [22:04:57]json_value_free [22:04:57]json_value_free done [22:04:57]process_json_proto returns [22:04:57]Send response to host [22:04:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123373,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [22:04:57]free response buf [22:04:57]execute_script done [22:04:57]execute_script returns [22:04:57]free content buf [22:04:57]Sock 7.Close socket [22:04:57]Sock 7.Thread stoped [22:04:59]OFD Sender: No OFD packet to send [22:05:04]OFD Sender: No OFD packet to send [22:05:09]OFD Sender: No OFD packet to send [22:05:14]OFD Sender: No OFD packet to send [22:05:19]OFD Sender: No OFD packet to send [22:05:24]OFD Sender: No OFD packet to send [22:05:29]OFD Sender: No OFD packet to send [22:05:34]OFD Sender: No OFD packet to send [22:05:39]OFD Sender: No OFD packet to send [22:05:44]OFD Sender: No OFD packet to send [22:05:49]OFD Sender: No OFD packet to send [22:05:54]OFD Sender: No OFD packet to send [22:05:59]OFD Sender: No OFD packet to send [22:06:04]OFD Sender: No OFD packet to send [22:06:09]OFD Sender: No OFD packet to send [22:06:14]OFD Sender: No OFD packet to send [22:06:19]OFD Sender: No OFD packet to send [22:06:24]OFD Sender: No OFD packet to send [22:06:29]OFD Sender: No OFD packet to send [22:06:34]OFD Sender: No OFD packet to send [22:06:39]OFD Sender: No OFD packet to send [22:06:44]OFD Sender: No OFD packet to send [22:06:49]OFD Sender: No OFD packet to send [22:06:54]OFD Sender: No OFD packet to send [22:06:59]OFD Sender: No OFD packet to send [22:07:04]OFD Sender: No OFD packet to send [22:07:09]OFD Sender: No OFD packet to send [22:07:14]OFD Sender: No OFD packet to send [22:07:15]accept exits with 9 [22:07:15]New connection [22:07:15]New thread 3067395428 created [22:07:15]Thread 3067252068 joined [22:07:15]Waiting for new connection... [22:07:15] Sock 9.Parse request [22:07:15]Sock 9.Check first char [22:07:15]Sock 9.First char is OK [22:07:15]request: POST /json_proto HTTP/1.0 [22:07:15]Method: POST [22:07:15]URL: /json_proto [22:07:15]Method is POST - this is cgi request [22:07:15]url: /json_proto [22:07:15]query_string will be loaded in cgi processing [22:07:15]execute_cgi json_proto POST (null) [22:07:15]execute_cgi path=json_proto method=POST [22:07:15]POST find Content-Length [22:07:15]Host: 172.17.48.197:8080 [22:07:15]Content-Length: 1213 [22:07:15]Content-Type: application/json [22:07:15] [22:07:15]POST finish read [22:07:15]Found Content-Length = 1213 [22:07:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106357\u000A03.03.2024 22:03\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 7.060 x 70.90\u000A\u0418\u0422\u041E\u0413: 500.55\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02551\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:07:15]execute_script... [22:07:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106357\u000A03.03.2024 22:03\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 7.060 x 70.90\u000A\u0418\u0422\u041E\u0413: 500.55\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02551\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:07:15]POST & json_proto [22:07:15]process_json_proto [22:07:15]json parsed OK: [22:07:15]protocol is kg_v1.0 [22:07:15]action value=print_text [22:07:15]process_action print_text [22:07:15]cmd_print_text [22:07:15]ExternCall_PrintAddStr [22:07:15]wPrintStart [22:07:15]Write to MH i2c: 01 00 00 52 54 A6 [22:07:15]Write i2c OK [22:07:15]MH_I2C_Read... [22:07:15]Read from MH i2c: 01 [22:07:15]MH_I2C_Read... [22:07:15]Read from MH i2c: 01 07 00 [22:07:15]MH_I2C_Read... [22:07:15]Read from MH i2c: 01 07 00 52 54 00 00 00 00 00 FF 0F BB [22:07:15]RasterBufferAndPrint [22:07:15]line *****ТОВАРНЫЙ ЧЕК***** [22:07:15]line АЗС 25 [22:07:15]line Партнер нефть [22:07:15]line 02508201610067 [22:07:15]line Кассир : Турдумбек у. К. [22:07:15]line Счет N : (1)1106357 [22:07:15]line 03.03.2024 22:03 [22:07:15]line ПРОДАЖА [22:07:15]line ТРК (МРК, ГНК): 41 [22:07:15]line Вид ГСМ : 2710194210 [22:07:15]line ДТ(л)-К-5 [22:07:15]line 7.060 x 70.90 [22:07:15]line ИТОГ: 500.55 [22:07:15]line Тип оплаты: Талоны: Топливная Карта [22:07:15]line 02551 [22:07:15]line ______________________ [22:07:15]line (подпись) [22:07:15]written 0, free lines is 4095 [22:07:15]Write to MH i2c: 01 00 00 67 54 BB [22:07:15]Write i2c OK [22:07:15]MH_I2C_Read... [22:07:15]Read from MH i2c: 01 [22:07:15]MH_I2C_Read... [22:07:15]Read from MH i2c: 01 07 00 [22:07:15]MH_I2C_Read... [22:07:15]Read from MH i2c: 01 07 00 67 54 00 00 00 00 00 F4 0D C3 [22:07:15]RasterBufferAndPrint [22:07:15]line [22:07:15]line [22:07:15]line [22:07:15]line [22:07:15]line [22:07:15]written 0, free lines is 3574 [22:07:15]MH_Cut [22:07:15]Write to MH i2c: D1 01 00 6E 54 01 94 [22:07:15]Write i2c OK [22:07:15]MH_I2C_Read... [22:07:15]Read from MH i2c: D1 [22:07:15]MH_I2C_Read... [22:07:15]Read from MH i2c: D1 01 00 [22:07:15]MH_I2C_Read... [22:07:15]Read from MH i2c: D1 01 00 6E 54 00 93 [22:07:15]Write to MH i2c: 01 00 00 6F 54 C3 [22:07:15]Write i2c OK [22:07:15]MH_I2C_Read... [22:07:15]*** Cut start [22:07:15]*** Purtial cut [22:07:15]*** Stage 1: CUTSNS_PIN = 1 [22:07:17]Read from MH i2c: 01 [22:07:17]MH_I2C_Read... [22:07:17]*** Stop cut motor [22:07:17]*** Cut end [22:07:17]Read from MH i2c: 01 07 00 [22:07:17]MH_I2C_Read... [22:07:17]Read from MH i2c: 01 07 00 6F 54 00 00 00 00 00 FF 0F D8 [22:07:17]process_action print_text done [22:07:17]requested_data is exist [22:07:17]produce_requested_data [22:07:17]requested_item fm.sn is exist - process it [22:07:17]wFMCommunicate request_size=4 [22:07:17]MH_SAM_APDU [22:07:17]CAPDU: 80 11 00 00 [22:07:17]Write to MH i2c: E2 08 00 70 54 80 11 00 00 00 00 00 00 3E [22:07:17]Write i2c OK [22:07:17]MH_I2C_Read... [22:07:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:07:17]Read from MH i2c: E2 [22:07:17]MH_I2C_Read... [22:07:17]Read from MH i2c: E2 17 00 [22:07:17]MH_I2C_Read... [22:07:17]Read from MH i2c: E2 17 00 70 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 9C [22:07:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [22:07:17]wFMCommunicate OK [22:07:17]requested_item fd.num is exist - process it [22:07:17]SAM_PROTO_GetFieldsCounters [22:07:17]wFMCommunicate request_size=4 [22:07:17]MH_SAM_APDU [22:07:17]CAPDU: 80 13 00 00 [22:07:17]Write to MH i2c: E2 08 00 71 54 80 13 00 00 00 00 00 00 41 [22:07:17]Write i2c OK [22:07:17]MH_I2C_Read... [22:07:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:07:17]Read from MH i2c: E2 [22:07:17]MH_I2C_Read... [22:07:17]Read from MH i2c: E2 62 00 [22:07:17]MH_I2C_Read... [22:07:17]Read from MH i2c: E2 62 00 71 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 ED E1 01 00 0E 04 04 00 43 01 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 31 [22:07:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 ED E1 01 00 0E 04 04 00 43 01 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 [22:07:17]wFMCommunicate OK [22:07:17]SAM_PROTO_GetFieldsCounters done [22:07:17]requested_item shift.num is exist - process it [22:07:17]requested_item shift.opened is exist - process it [22:07:17]req_shift_opened [22:07:17]FM_GetShiftState [22:07:17]SAM_PROTO_GetShiftState [22:07:17]wFMCommunicate request_size=4 [22:07:17]MH_SAM_APDU [22:07:17]CAPDU: 80 13 01 00 [22:07:17]Write to MH i2c: E2 08 00 72 54 80 13 01 00 00 00 00 00 43 [22:07:17]Write i2c OK [22:07:17]MH_I2C_Read... [22:07:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:07:18]Read from MH i2c: E2 [22:07:18]MH_I2C_Read... [22:07:18]Read from MH i2c: E2 0E 00 [22:07:18]MH_I2C_Read... [22:07:18]Read from MH i2c: E2 0E 00 72 54 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 05 [22:07:18]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [22:07:18]wFMCommunicate OK [22:07:18]SAM_PROTO_GetShiftState done [22:07:18]FM_GetShiftState done [22:07:18]req_shift_opened done [22:07:18]requested_item shift.open_date is exist - process it [22:07:18]req_shift_open_date [22:07:18]req_shift_open_date done [22:07:18]produce_requested_data done [22:07:18]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123373,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [22:07:18]process_action_free print_text [22:07:18]json_value_free [22:07:18]json_value_free done [22:07:18]process_json_proto returns [22:07:18]Send response to host [22:07:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123373,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [22:07:18]free response buf [22:07:18]execute_script done [22:07:18]execute_script returns [22:07:18]free content buf [22:07:18]Sock 9.Close socket [22:07:18]Sock 9.Thread stoped [22:07:19]OFD Sender: No OFD packet to send [22:07:24]OFD Sender: No OFD packet to send [22:07:29]OFD Sender: No OFD packet to send [22:07:31]int [22:07:31]Write to MH i2c: 01 00 00 73 54 C7 [22:07:31]*** FLAG_PRN_KEY set [22:07:31]Write i2c OK [22:07:31]MH_I2C_Read... [22:07:31]Read from MH i2c: 01 [22:07:31]MH_I2C_Read... [22:07:31]Read from MH i2c: 01 07 00 [22:07:31]MH_I2C_Read... [22:07:31]Read from MH i2c: 01 07 00 73 54 00 08 00 00 00 FF 0F E4 [22:07:31]state=0 [22:07:31]Key pressed [22:07:31]Feed [22:07:31]Write to MH i2c: D8 00 00 74 54 9F [22:07:31]Write i2c OK [22:07:31]MH_I2C_Read... [22:07:31]Read from MH i2c: D8 [22:07:31]MH_I2C_Read... [22:07:31]Read from MH i2c: D8 01 00 [22:07:31]MH_I2C_Read... [22:07:31]Read from MH i2c: D8 01 00 74 54 00 A0 [22:07:31]int [22:07:31]Write to MH i2c: 01 00 00 75 54 C9 [22:07:31]Write i2c OK [22:07:31]MH_I2C_Read... [22:07:31]Read from MH i2c: 01 [22:07:31]MH_I2C_Read... [22:07:31]Read from MH i2c: 01 07 00 [22:07:31]MH_I2C_Read... [22:07:31]Read from MH i2c: 01 07 00 75 54 00 48 00 00 00 3C 00 54 [22:07:31]state=2 [22:07:31]Key pressed [22:07:31]int [22:07:31]Write to MH i2c: 01 00 00 76 54 CA [22:07:31]*** FLAG_PRN_KEY reset [22:07:31]Write i2c OK [22:07:31]MH_I2C_Read... [22:07:31]Read from MH i2c: 01 [22:07:31]MH_I2C_Read... [22:07:31]Read from MH i2c: 01 07 00 [22:07:31]MH_I2C_Read... [22:07:31]Read from MH i2c: 01 07 00 76 54 00 00 00 00 00 F5 0F D5 [22:07:31]state=2 [22:07:31]Stop feed [22:07:31]int [22:07:31]Write to MH i2c: 01 00 00 77 54 CB [22:07:31]*** FLAG_PRN_KEY set [22:07:31]Write i2c OK [22:07:31]MH_I2C_Read... [22:07:31]Read from MH i2c: 01 [22:07:31]MH_I2C_Read... [22:07:31]Read from MH i2c: 01 07 00 [22:07:31]MH_I2C_Read... [22:07:31]Read from MH i2c: 01 07 00 77 54 00 08 00 00 00 FF 0F E8 [22:07:31]state=0 [22:07:31]Key pressed [22:07:31]Feed [22:07:31]Write to MH i2c: D8 00 00 78 54 A3 [22:07:31]Write i2c OK [22:07:31]MH_I2C_Read... [22:07:31]Read from MH i2c: D8 [22:07:31]MH_I2C_Read... [22:07:31]Read from MH i2c: D8 01 00 [22:07:31]MH_I2C_Read... [22:07:31]Read from MH i2c: D8 01 00 78 54 00 A4 [22:07:31]int [22:07:31]Write to MH i2c: 01 00 00 79 54 CD [22:07:31]Write i2c OK [22:07:31]MH_I2C_Read... [22:07:31]Read from MH i2c: 01 [22:07:31]MH_I2C_Read... [22:07:31]Read from MH i2c: 01 07 00 [22:07:31]MH_I2C_Read... [22:07:31]Read from MH i2c: 01 07 00 79 54 00 48 00 00 00 3C 00 58 [22:07:31]state=2 [22:07:31]Key pressed [22:07:31]int [22:07:31]Write to MH i2c: 01 00 00 7A 54 CE [22:07:31]*** FLAG_PRN_KEY reset [22:07:31]Write i2c OK [22:07:31]MH_I2C_Read... [22:07:31]Read from MH i2c: 01 [22:07:31]MH_I2C_Read... [22:07:31]Read from MH i2c: 01 07 00 [22:07:31]MH_I2C_Read... [22:07:31]Read from MH i2c: 01 07 00 7A 54 00 00 00 00 00 F6 0F DA [22:07:31]state=2 [22:07:31]Stop feed [22:07:31]int [22:07:31]Write to MH i2c: 01 00 00 7B 54 CF [22:07:31]*** FLAG_PRN_KEY set [22:07:31]Write i2c OK [22:07:31]MH_I2C_Read... [22:07:31]Read from MH i2c: 01 [22:07:31]MH_I2C_Read... [22:07:31]Read from MH i2c: 01 07 00 [22:07:31]MH_I2C_Read... [22:07:31]Read from MH i2c: 01 07 00 7B 54 00 08 00 00 00 FF 0F EC [22:07:31]state=0 [22:07:31]Key pressed [22:07:31]Feed [22:07:31]Write to MH i2c: D8 00 00 7C 54 A7 [22:07:31]Write i2c OK [22:07:31]MH_I2C_Read... [22:07:31]Read from MH i2c: D8 [22:07:31]MH_I2C_Read... [22:07:31]Read from MH i2c: D8 01 00 [22:07:31]MH_I2C_Read... [22:07:31]Read from MH i2c: D8 01 00 7C 54 00 A8 [22:07:31]int [22:07:31]Write to MH i2c: 01 00 00 7D 54 D1 [22:07:31]Write i2c OK [22:07:31]MH_I2C_Read... [22:07:31]Read from MH i2c: 01 [22:07:31]MH_I2C_Read... [22:07:31]Read from MH i2c: 01 07 00 [22:07:31]MH_I2C_Read... [22:07:31]Read from MH i2c: 01 07 00 7D 54 00 48 00 00 00 3C 00 5C [22:07:31]state=2 [22:07:31]Key pressed [22:07:31]int [22:07:31]Write to MH i2c: 01 00 00 7E 54 D2 [22:07:31]*** FLAG_PRN_KEY reset [22:07:31]Write i2c OK [22:07:31]MH_I2C_Read... [22:07:31]Read from MH i2c: 01 [22:07:31]MH_I2C_Read... [22:07:31]Read from MH i2c: 01 07 00 [22:07:31]MH_I2C_Read... [22:07:31]Read from MH i2c: 01 07 00 7E 54 00 00 00 00 00 F5 0F DD [22:07:31]state=2 [22:07:31]Stop feed [22:07:31]int [22:07:31]Write to MH i2c: 01 00 00 7F 54 D3 [22:07:31]*** FLAG_PRN_KEY set [22:07:31]Write i2c OK [22:07:31]MH_I2C_Read... [22:07:31]Read from MH i2c: 01 [22:07:31]MH_I2C_Read... [22:07:31]Read from MH i2c: 01 07 00 [22:07:31]MH_I2C_Read... [22:07:31]Read from MH i2c: 01 07 00 7F 54 00 08 00 00 00 FF 0F F0 [22:07:31]state=0 [22:07:31]Key pressed [22:07:31]Feed [22:07:31]Write to MH i2c: D8 00 00 80 54 AB [22:07:31]Write i2c OK [22:07:31]MH_I2C_Read... [22:07:31]Read from MH i2c: D8 [22:07:31]MH_I2C_Read... [22:07:31]Read from MH i2c: D8 01 00 [22:07:31]MH_I2C_Read... [22:07:31]Read from MH i2c: D8 01 00 80 54 00 AC [22:07:31]int [22:07:31]Write to MH i2c: 01 00 00 81 54 D5 [22:07:32]Write i2c OK [22:07:32]MH_I2C_Read... [22:07:32]Read from MH i2c: 01 [22:07:32]MH_I2C_Read... [22:07:32]Read from MH i2c: 01 07 00 [22:07:32]MH_I2C_Read... [22:07:32]Read from MH i2c: 01 07 00 81 54 00 48 00 00 00 3C 00 60 [22:07:32]state=2 [22:07:32]Key pressed [22:07:32]int [22:07:32]Write to MH i2c: 01 00 00 82 54 D6 [22:07:32]*** FLAG_PRN_KEY reset [22:07:32]Write i2c OK [22:07:32]MH_I2C_Read... [22:07:32]Read from MH i2c: 01 [22:07:32]MH_I2C_Read... [22:07:32]Read from MH i2c: 01 07 00 [22:07:32]MH_I2C_Read... [22:07:32]Read from MH i2c: 01 07 00 82 54 00 00 00 00 00 F5 0F E1 [22:07:32]state=2 [22:07:32]Stop feed [22:07:34]OFD Sender: No OFD packet to send [22:07:39]OFD Sender: No OFD packet to send [22:07:44]OFD Sender: No OFD packet to send [22:07:49]OFD Sender: No OFD packet to send [22:07:54]OFD Sender: No OFD packet to send [22:07:59]OFD Sender: No OFD packet to send [22:08:04]OFD Sender: No OFD packet to send [22:08:09]OFD Sender: No OFD packet to send [22:08:14]OFD Sender: No OFD packet to send [22:08:19]OFD Sender: No OFD packet to send [22:08:24]OFD Sender: No OFD packet to send [22:08:29]OFD Sender: No OFD packet to send [22:08:34]OFD Sender: No OFD packet to send [22:08:39]OFD Sender: No OFD packet to send [22:08:44]OFD Sender: No OFD packet to send [22:08:46]accept exits with 7 [22:08:46]New connection [22:08:46]New thread 3067252068 created [22:08:46]Thread 3067395428 joined [22:08:46]Waiting for new connection... [22:08:46] Sock 7.Parse request [22:08:46]Sock 7.Check first char [22:08:46]Sock 7.First char is OK [22:08:46]request: POST /json_proto HTTP/1.0 [22:08:46]Method: POST [22:08:46]URL: /json_proto [22:08:46]Method is POST - this is cgi request [22:08:46]url: /json_proto [22:08:46]query_string will be loaded in cgi processing [22:08:46]execute_cgi json_proto POST (null) [22:08:46]execute_cgi path=json_proto method=POST [22:08:46]POST find Content-Length [22:08:46]Host: 172.17.48.197:8080 [22:08:46]Content-Length: 1217 [22:08:46]Content-Type: application/json [22:08:46] [22:08:46]POST finish read [22:08:46]Found Content-Length = 1217 [22:08:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106358\u000A03.03.2024 22:05\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 619.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3860622\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:08:46]execute_script... [22:08:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106358\u000A03.03.2024 22:05\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 619.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3860622\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:08:46]POST & json_proto [22:08:46]process_json_proto [22:08:46]json parsed OK: [22:08:46]protocol is kg_v1.0 [22:08:46]action value=print_text [22:08:46]process_action print_text [22:08:46]cmd_print_text [22:08:46]ExternCall_PrintAddStr [22:08:46]wPrintStart [22:08:46]Write to MH i2c: 01 00 00 83 54 D7 [22:08:46]Write i2c OK [22:08:46]MH_I2C_Read... [22:08:46]Read from MH i2c: 01 [22:08:46]MH_I2C_Read... [22:08:46]Read from MH i2c: 01 07 00 [22:08:46]MH_I2C_Read... [22:08:46]Read from MH i2c: 01 07 00 83 54 00 00 00 00 00 FF 0F EC [22:08:46]RasterBufferAndPrint [22:08:46]line *****ТОВАРНЫЙ ЧЕК***** [22:08:46]line АЗС 25 [22:08:46]line Партнер нефть [22:08:46]line 02508201610067 [22:08:46]line Кассир : Турдумбек у. К. [22:08:46]line Счет N : (1)1106358 [22:08:46]line 03.03.2024 22:05 [22:08:46]line ПРОДАЖА [22:08:46]line ТРК (МРК, ГНК): 21 [22:08:46]line Вид ГСМ : 2710124130 [22:08:46]line Аи-92-К-5 [22:08:46]line 10.000 x 61.90 [22:08:46]line ИТОГ: 619.00 [22:08:46]line Тип оплаты: Талоны: Топливные Талоны [22:08:46]line 3860622 [22:08:46]line ______________________ [22:08:46]line (подпись) [22:08:46]written 0, free lines is 4095 [22:08:46]Write to MH i2c: 01 00 00 98 54 EC [22:08:46]Write i2c OK [22:08:46]MH_I2C_Read... [22:08:46]Read from MH i2c: 01 [22:08:46]MH_I2C_Read... [22:08:46]Read from MH i2c: 01 07 00 [22:08:46]MH_I2C_Read... [22:08:46]Read from MH i2c: 01 07 00 98 54 00 00 00 00 00 FA 0D FA [22:08:46]RasterBufferAndPrint [22:08:46]line [22:08:46]line [22:08:46]line [22:08:46]line [22:08:46]line [22:08:46]written 0, free lines is 3580 [22:08:46]MH_Cut [22:08:46]Write to MH i2c: D1 01 00 9F 54 01 C5 [22:08:46]Write i2c OK [22:08:46]MH_I2C_Read... [22:08:46]Read from MH i2c: D1 [22:08:46]MH_I2C_Read... [22:08:46]Read from MH i2c: D1 01 00 [22:08:46]MH_I2C_Read... [22:08:46]Read from MH i2c: D1 01 00 9F 54 00 C4 [22:08:46]Write to MH i2c: 01 00 00 A0 54 F4 [22:08:46]Write i2c OK [22:08:46]MH_I2C_Read... [22:08:46]*** Cut start [22:08:46]*** Purtial cut [22:08:46]*** Stage 1: CUTSNS_PIN = 1 [22:08:48]Read from MH i2c: 01 [22:08:48]MH_I2C_Read... [22:08:48]*** Stop cut motor [22:08:48]*** Cut end [22:08:48]Read from MH i2c: 01 07 00 [22:08:48]MH_I2C_Read... [22:08:48]Read from MH i2c: 01 07 00 A0 54 00 00 00 00 00 FF 0F 09 [22:08:48]process_action print_text done [22:08:48]requested_data is exist [22:08:48]produce_requested_data [22:08:48]requested_item fm.sn is exist - process it [22:08:48]wFMCommunicate request_size=4 [22:08:48]MH_SAM_APDU [22:08:48]CAPDU: 80 11 00 00 [22:08:48]Write to MH i2c: E2 08 00 A1 54 80 11 00 00 00 00 00 00 6F [22:08:48]Write i2c OK [22:08:48]MH_I2C_Read... [22:08:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:08:48]Read from MH i2c: E2 [22:08:48]MH_I2C_Read... [22:08:48]Read from MH i2c: E2 17 00 [22:08:48]MH_I2C_Read... [22:08:48]Read from MH i2c: E2 17 00 A1 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 CD [22:08:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [22:08:48]wFMCommunicate OK [22:08:48]requested_item fd.num is exist - process it [22:08:48]SAM_PROTO_GetFieldsCounters [22:08:48]wFMCommunicate request_size=4 [22:08:48]MH_SAM_APDU [22:08:48]CAPDU: 80 13 00 00 [22:08:48]Write to MH i2c: E2 08 00 A2 54 80 13 00 00 00 00 00 00 72 [22:08:48]Write i2c OK [22:08:48]MH_I2C_Read... [22:08:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:08:49]Read from MH i2c: E2 [22:08:49]MH_I2C_Read... [22:08:49]Read from MH i2c: E2 62 00 [22:08:49]MH_I2C_Read... [22:08:49]Read from MH i2c: E2 62 00 A2 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 ED E1 01 00 0E 04 04 00 43 01 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 62 [22:08: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 ED E1 01 00 0E 04 04 00 43 01 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 [22:08:49]wFMCommunicate OK [22:08:49]SAM_PROTO_GetFieldsCounters done [22:08:49]requested_item shift.num is exist - process it [22:08:49]requested_item shift.opened is exist - process it [22:08:49]req_shift_opened [22:08:49]FM_GetShiftState [22:08:49]SAM_PROTO_GetShiftState [22:08:49]wFMCommunicate request_size=4 [22:08:49]MH_SAM_APDU [22:08:49]CAPDU: 80 13 01 00 [22:08:49]Write to MH i2c: E2 08 00 A3 54 80 13 01 00 00 00 00 00 74 [22:08:49]Write i2c OK [22:08:49]MH_I2C_Read... [22:08:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:08:49]Read from MH i2c: E2 [22:08:49]MH_I2C_Read... [22:08:49]Read from MH i2c: E2 0E 00 [22:08:49]MH_I2C_Read... [22:08:49]Read from MH i2c: E2 0E 00 A3 54 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 36 [22:08:49]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [22:08:49]wFMCommunicate OK [22:08:49]SAM_PROTO_GetShiftState done [22:08:49]FM_GetShiftState done [22:08:49]req_shift_opened done [22:08:49]requested_item shift.open_date is exist - process it [22:08:49]req_shift_open_date [22:08:49]req_shift_open_date done [22:08:49]produce_requested_data done [22:08:49]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123373,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [22:08:49]process_action_free print_text [22:08:49]json_value_free [22:08:49]json_value_free done [22:08:49]process_json_proto returns [22:08:49]Send response to host [22:08:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123373,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [22:08:49]free response buf [22:08:49]execute_script done [22:08:49]execute_script returns [22:08:49]free content buf [22:08:49]Sock 7.Close socket [22:08:49]Sock 7.Thread stoped [22:08:49]OFD Sender: No OFD packet to send [22:08:54]OFD Sender: No OFD packet to send [22:08:59]OFD Sender: No OFD packet to send [22:09:04]OFD Sender: No OFD packet to send [22:09:09]OFD Sender: No OFD packet to send [22:09:14]OFD Sender: No OFD packet to send [22:09:19]OFD Sender: No OFD packet to send [22:09:24]OFD Sender: No OFD packet to send [22:09:29]OFD Sender: No OFD packet to send [22:09:34]OFD Sender: No OFD packet to send [22:09:39]OFD Sender: No OFD packet to send [22:09:44]OFD Sender: No OFD packet to send [22:09:49]OFD Sender: No OFD packet to send [22:09:54]OFD Sender: No OFD packet to send [22:09:59]OFD Sender: No OFD packet to send [22:10:04]OFD Sender: No OFD packet to send [22:10:09]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:10:55]int [22:10:55]Write to MH i2c: 01 00 00 A4 54 F8 [22:10:55]*** FLAG_PRN_KEY set [22:10:55]Write i2c OK [22:10:55]MH_I2C_Read... [22:10:55]Read from MH i2c: 01 [22:10:55]MH_I2C_Read... [22:10:55]Read from MH i2c: 01 07 00 [22:10:55]MH_I2C_Read... [22:10:55]Read from MH i2c: 01 07 00 A4 54 00 08 00 00 00 FF 0F 15 [22:10:55]state=0 [22:10:55]Key pressed [22:10:55]Feed [22:10:55]Write to MH i2c: D8 00 00 A5 54 D0 [22:10:55]Write i2c OK [22:10:55]MH_I2C_Read... [22:10:55]Read from MH i2c: D8 [22:10:55]MH_I2C_Read... [22:10:55]Read from MH i2c: D8 01 00 [22:10:55]MH_I2C_Read... [22:10:55]Read from MH i2c: D8 01 00 A5 54 00 D1 [22:10:55]int [22:10:55]Write to MH i2c: 01 00 00 A6 54 FA [22:10:55]Write i2c OK [22:10:55]MH_I2C_Read... [22:10:55]Read from MH i2c: 01 [22:10:55]MH_I2C_Read... [22:10:55]Read from MH i2c: 01 07 00 [22:10:55]MH_I2C_Read... [22:10:55]Read from MH i2c: 01 07 00 A6 54 00 48 00 00 00 3C 00 85 [22:10:55]state=2 [22:10:55]Key pressed [22:10:55]int [22:10:55]Write to MH i2c: 01 00 00 A7 54 FB [22:10:55]*** FLAG_PRN_KEY reset [22:10:55]Write i2c OK [22:10:55]MH_I2C_Read... [22:10:55]Read from MH i2c: 01 [22:10:55]MH_I2C_Read... [22:10:55]Read from MH i2c: 01 07 00 [22:10:55]MH_I2C_Read... [22:10:55]Read from MH i2c: 01 07 00 A7 54 00 00 00 00 00 F5 0F 06 [22:10:55]state=2 [22:10:55]Stop feed [22:10:55]int [22:10:55]Write to MH i2c: 01 00 00 A8 54 FC [22:10:55]*** FLAG_PRN_KEY set [22:10:55]Write i2c OK [22:10:55]MH_I2C_Read... [22:10:55]Read from MH i2c: 01 [22:10:55]MH_I2C_Read... [22:10:55]Read from MH i2c: 01 07 00 [22:10:55]MH_I2C_Read... [22:10:55]Read from MH i2c: 01 07 00 A8 54 00 08 00 00 00 FF 0F 19 [22:10:55]state=0 [22:10:55]Key pressed [22:10:55]Feed [22:10:55]Write to MH i2c: D8 00 00 A9 54 D4 [22:10:55]Write i2c OK [22:10:55]MH_I2C_Read... [22:10:55]Read from MH i2c: D8 [22:10:55]MH_I2C_Read... [22:10:55]Read from MH i2c: D8 01 00 [22:10:55]MH_I2C_Read... [22:10:55]Read from MH i2c: D8 01 00 A9 54 00 D5 [22:10:55]int [22:10:55]Write to MH i2c: 01 00 00 AA 54 FE [22:10:55]Write i2c OK [22:10:55]MH_I2C_Read... [22:10:55]Read from MH i2c: 01 [22:10:55]MH_I2C_Read... [22:10:55]Read from MH i2c: 01 07 00 [22:10:55]MH_I2C_Read... [22:10:55]Read from MH i2c: 01 07 00 AA 54 00 48 00 00 00 3C 00 89 [22:10:55]state=2 [22:10:55]Key pressed [22:10:56]int [22:10:56]Write to MH i2c: 01 00 00 AB 54 FF [22:10:56]*** FLAG_PRN_KEY reset [22:10:56]Write i2c OK [22:10:56]MH_I2C_Read... [22:10:56]Read from MH i2c: 01 [22:10:56]MH_I2C_Read... [22:10:56]Read from MH i2c: 01 07 00 [22:10:56]MH_I2C_Read... [22:10:56]Read from MH i2c: 01 07 00 AB 54 00 00 00 00 00 F5 0F 0A [22:10:56]state=2 [22:10:56]Stop feed [22:10:56]int [22:10:56]Write to MH i2c: 01 00 00 AC 54 00 [22:10:56]*** FLAG_PRN_KEY set [22:10:56]Write i2c OK [22:10:56]MH_I2C_Read... [22:10:56]Read from MH i2c: 01 [22:10:56]MH_I2C_Read... [22:10:56]Read from MH i2c: 01 07 00 [22:10:56]MH_I2C_Read... [22:10:56]Read from MH i2c: 01 07 00 AC 54 00 08 00 00 00 FF 0F 1D [22:10:56]state=0 [22:10:56]Key pressed [22:10:56]Feed [22:10:56]Write to MH i2c: D8 00 00 AD 54 D8 [22:10:56]Write i2c OK [22:10:56]MH_I2C_Read... [22:10:56]Read from MH i2c: D8 [22:10:56]MH_I2C_Read... [22:10:56]Read from MH i2c: D8 01 00 [22:10:56]MH_I2C_Read... [22:10:56]Read from MH i2c: D8 01 00 AD 54 00 D9 [22:10:56]int [22:10:56]Write to MH i2c: 01 00 00 AE 54 02 [22:10:56]Write i2c OK [22:10:56]MH_I2C_Read... [22:10:56]Read from MH i2c: 01 [22:10:56]MH_I2C_Read... [22:10:56]Read from MH i2c: 01 07 00 [22:10:56]MH_I2C_Read... [22:10:56]Read from MH i2c: 01 07 00 AE 54 00 48 00 00 00 3C 00 8D [22:10:56]state=2 [22:10:56]Key pressed [22:10:56]int [22:10:56]Write to MH i2c: 01 00 00 AF 54 03 [22:10:56]*** FLAG_PRN_KEY reset [22:10:56]Write i2c OK [22:10:56]MH_I2C_Read... [22:10:56]Read from MH i2c: 01 [22:10:56]MH_I2C_Read... [22:10:56]Read from MH i2c: 01 07 00 [22:10:56]MH_I2C_Read... [22:10:56]Read from MH i2c: 01 07 00 AF 54 00 00 00 00 00 F5 0F 0E [22:10:56]state=2 [22:10:56]Stop feed [22:10:56]int [22:10:56]Write to MH i2c: 01 00 00 B0 54 04 [22:10:56]*** FLAG_PRN_KEY set [22:10:56]Write i2c OK [22:10:56]MH_I2C_Read... [22:10:56]Read from MH i2c: 01 [22:10:56]MH_I2C_Read... [22:10:56]Read from MH i2c: 01 07 00 [22:10:56]MH_I2C_Read... [22:10:56]Read from MH i2c: 01 07 00 B0 54 00 08 00 00 00 FF 0F 21 [22:10:56]state=0 [22:10:56]Key pressed [22:10:56]Feed [22:10:56]Write to MH i2c: D8 00 00 B1 54 DC [22:10:56]Write i2c OK [22:10:56]MH_I2C_Read... [22:10:56]Read from MH i2c: D8 [22:10:56]MH_I2C_Read... [22:10:56]Read from MH i2c: D8 01 00 [22:10:56]MH_I2C_Read... [22:10:56]Read from MH i2c: D8 01 00 B1 54 00 DD [22:10:56]int [22:10:56]Write to MH i2c: 01 00 00 B2 54 06 [22:10:56]Write i2c OK [22:10:56]MH_I2C_Read... [22:10:56]Read from MH i2c: 01 [22:10:56]MH_I2C_Read... [22:10:56]Read from MH i2c: 01 07 00 [22:10:56]MH_I2C_Read... [22:10:56]Read from MH i2c: 01 07 00 B2 54 00 48 00 00 00 3C 00 91 [22:10:56]state=2 [22:10:56]Key pressed [22:10:56]int [22:10:56]Write to MH i2c: 01 00 00 B3 54 07 [22:10:56]*** FLAG_PRN_KEY reset [22:10:56]Write i2c OK [22:10:56]MH_I2C_Read... [22:10:56]Read from MH i2c: 01 [22:10:56]MH_I2C_Read... [22:10:56]Read from MH i2c: 01 07 00 [22:10:56]MH_I2C_Read... [22:10:56]Read from MH i2c: 01 07 00 B3 54 00 00 00 00 00 F5 0F 12 [22:10:56]state=2 [22:10:56]Stop feed [22:10:56]int [22:10:56]Write to MH i2c: 01 00 00 B4 54 08 [22:10:56]*** FLAG_PRN_KEY set [22:10:56]Write i2c OK [22:10:56]MH_I2C_Read... [22:10:56]Read from MH i2c: 01 [22:10:56]MH_I2C_Read... [22:10:56]Read from MH i2c: 01 07 00 [22:10:56]MH_I2C_Read... [22:10:56]Read from MH i2c: 01 07 00 B4 54 00 08 00 00 00 FF 0F 25 [22:10:56]state=0 [22:10:56]Key pressed [22:10:56]Feed [22:10:56]Write to MH i2c: D8 00 00 B5 54 E0 [22:10:56]Write i2c OK [22:10:56]MH_I2C_Read... [22:10:56]Read from MH i2c: D8 [22:10:56]MH_I2C_Read... [22:10:56]Read from MH i2c: D8 01 00 [22:10:56]MH_I2C_Read... [22:10:56]Read from MH i2c: D8 01 00 B5 54 00 E1 [22:10:56]int [22:10:56]Write to MH i2c: 01 00 00 B6 54 0A [22:10:56]Write i2c OK [22:10:56]MH_I2C_Read... [22:10:56]Read from MH i2c: 01 [22:10:56]MH_I2C_Read... [22:10:56]Read from MH i2c: 01 07 00 [22:10:56]MH_I2C_Read... [22:10:56]Read from MH i2c: 01 07 00 B6 54 00 48 00 00 00 3C 00 95 [22:10:56]state=2 [22:10:56]Key pressed [22:10:56]int [22:10:56]Write to MH i2c: 01 00 00 B7 54 0B [22:10:56]*** FLAG_PRN_KEY reset [22:10:56]Write i2c OK [22:10:56]MH_I2C_Read... [22:10:56]Read from MH i2c: 01 [22:10:56]MH_I2C_Read... [22:10:56]Read from MH i2c: 01 07 00 [22:10:56]MH_I2C_Read... [22:10:56]Read from MH i2c: 01 07 00 B7 54 00 00 00 00 00 F5 0F 16 [22:10:56]state=2 [22:10:56]Stop feed [22:10:56]int [22:10:56]Write to MH i2c: 01 00 00 B8 54 0C [22:10:56]*** FLAG_PRN_KEY set [22:10:56]Write i2c OK [22:10:56]MH_I2C_Read... [22:10:56]Read from MH i2c: 01 [22:10:56]MH_I2C_Read... [22:10:56]Read from MH i2c: 01 07 00 [22:10:56]MH_I2C_Read... [22:10:56]Read from MH i2c: 01 07 00 B8 54 00 08 00 00 00 FF 0F 29 [22:10:56]state=0 [22:10:56]Key pressed [22:10:56]Feed [22:10:56]Write to MH i2c: D8 00 00 B9 54 E4 [22:10:56]Write i2c OK [22:10:56]MH_I2C_Read... [22:10:56]Read from MH i2c: D8 [22:10:56]MH_I2C_Read... [22:10:56]Read from MH i2c: D8 01 00 [22:10:56]MH_I2C_Read... [22:10:56]Read from MH i2c: D8 01 00 B9 54 00 E5 [22:10:56]int [22:10:56]Write to MH i2c: 01 00 00 BA 54 0E [22:10:56]Write i2c OK [22:10:56]MH_I2C_Read... [22:10:56]Read from MH i2c: 01 [22:10:56]MH_I2C_Read... [22:10:56]Read from MH i2c: 01 07 00 [22:10:56]MH_I2C_Read... [22:10:56]Read from MH i2c: 01 07 00 BA 54 00 48 00 00 00 3C 00 99 [22:10:56]state=2 [22:10:56]Key pressed [22:10:56]int [22:10:56]Write to MH i2c: 01 00 00 BB 54 0F [22:10:56]*** FLAG_PRN_KEY reset [22:10:56]Write i2c OK [22:10:56]MH_I2C_Read... [22:10:56]Read from MH i2c: 01 [22:10:56]MH_I2C_Read... [22:10:56]Read from MH i2c: 01 07 00 [22:10:56]MH_I2C_Read... [22:10:56]Read from MH i2c: 01 07 00 BB 54 00 00 00 00 00 F5 0F 1A [22:10:56]state=2 [22:10:56]Stop feed [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:12]accept exits with 9 [22:11:12]New connection [22:11:12]New thread 3067395428 created [22:11:12]Thread 3067252068 joined [22:11:12]Waiting for new connection... [22:11:12] Sock 9.Parse request [22:11:12]Sock 9.Check first char [22:11:12]Sock 9.First char is OK [22:11:12]request: POST /json_proto HTTP/1.0 [22:11:12]Method: POST [22:11:12]URL: /json_proto [22:11:12]Method is POST - this is cgi request [22:11:12]url: /json_proto [22:11:12]query_string will be loaded in cgi processing [22:11:12]execute_cgi json_proto POST (null) [22:11:12]execute_cgi path=json_proto method=POST [22:11:12]POST find Content-Length [22:11:12]Host: 172.17.48.197:8080 [22:11:12]Content-Length: 1217 [22:11:12]Content-Type: application/json [22:11:12] [22:11:12]POST finish read [22:11:12]Found Content-Length = 1217 [22:11:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106360\u000A03.03.2024 22:07\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 52\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 619.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3860621\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:11:12]execute_script... [22:11:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106360\u000A03.03.2024 22:07\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 52\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 619.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3860621\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:11:12]POST & json_proto [22:11:12]process_json_proto [22:11:12]json parsed OK: [22:11:12]protocol is kg_v1.0 [22:11:12]action value=print_text [22:11:12]process_action print_text [22:11:12]cmd_print_text [22:11:12]ExternCall_PrintAddStr [22:11:12]wPrintStart [22:11:12]Write to MH i2c: 01 00 00 BC 54 10 [22:11:12]Write i2c OK [22:11:12]MH_I2C_Read... [22:11:12]Read from MH i2c: 01 [22:11:12]MH_I2C_Read... [22:11:12]Read from MH i2c: 01 07 00 [22:11:12]MH_I2C_Read... [22:11:12]Read from MH i2c: 01 07 00 BC 54 00 00 00 00 00 FF 0F 25 [22:11:12]RasterBufferAndPrint [22:11:12]line *****ТОВАРНЫЙ ЧЕК***** [22:11:12]line АЗС 25 [22:11:12]line Партнер нефть [22:11:12]line 02508201610067 [22:11:12]line Кассир : Турдумбек у. К. [22:11:12]line Счет N : (1)1106360 [22:11:12]line 03.03.2024 22:07 [22:11:12]line ПРОДАЖА [22:11:12]line ТРК (МРК, ГНК): 52 [22:11:12]line Вид ГСМ : 2710124130 [22:11:12]line Аи-92-К-5 [22:11:12]line 10.000 x 61.90 [22:11:12]line ИТОГ: 619.00 [22:11:12]line Тип оплаты: Талоны: Топливные Талоны [22:11:12]line 3860621 [22:11:12]line ______________________ [22:11:12]line (подпись) [22:11:12]written 0, free lines is 4095 [22:11:12]Write to MH i2c: 01 00 00 D1 54 25 [22:11:12]Write i2c OK [22:11:12]MH_I2C_Read... [22:11:12]Read from MH i2c: 01 [22:11:12]MH_I2C_Read... [22:11:12]Read from MH i2c: 01 07 00 [22:11:12]MH_I2C_Read... [22:11:12]Read from MH i2c: 01 07 00 D1 54 00 00 00 00 00 FA 0D 33 [22:11:12]RasterBufferAndPrint [22:11:12]line [22:11:12]line [22:11:12]line [22:11:12]line [22:11:12]line [22:11:12]written 0, free lines is 3579 [22:11:12]MH_Cut [22:11:12]Write to MH i2c: D1 01 00 D8 54 01 FE [22:11:12]Write i2c OK [22:11:12]MH_I2C_Read... [22:11:12]Read from MH i2c: D1 [22:11:12]MH_I2C_Read... [22:11:12]Read from MH i2c: D1 01 00 [22:11:12]MH_I2C_Read... [22:11:12]Read from MH i2c: D1 01 00 D8 54 00 FD [22:11:12]Write to MH i2c: 01 00 00 D9 54 2D [22:11:12]Write i2c OK [22:11:12]MH_I2C_Read... [22:11:13]*** Cut start [22:11:13]*** Purtial cut [22:11:13]*** Stage 1: CUTSNS_PIN = 1 [22:11:15]Read from MH i2c: 01 [22:11:15]MH_I2C_Read... [22:11:15]*** Stop cut motor [22:11:15]*** Cut end [22:11:15]Read from MH i2c: 01 07 00 [22:11:15]MH_I2C_Read... [22:11:15]Read from MH i2c: 01 07 00 D9 54 00 00 00 00 00 FF 0F 42 [22:11:15]process_action print_text done [22:11:15]requested_data is exist [22:11:15]produce_requested_data [22:11:15]requested_item fm.sn is exist - process it [22:11:15]wFMCommunicate request_size=4 [22:11:15]MH_SAM_APDU [22:11:15]CAPDU: 80 11 00 00 [22:11:15]Write to MH i2c: E2 08 00 DA 54 80 11 00 00 00 00 00 00 A8 [22:11:15]Write i2c OK [22:11:15]MH_I2C_Read... [22:11:15]OFD Sender: No OFD packet to send [22:11:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:11:15]Read from MH i2c: E2 [22:11:15]MH_I2C_Read... [22:11:15]Read from MH i2c: E2 17 00 [22:11:15]MH_I2C_Read... [22:11:15]Read from MH i2c: E2 17 00 DA 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 06 [22:11:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [22:11:15]wFMCommunicate OK [22:11:15]requested_item fd.num is exist - process it [22:11:15]SAM_PROTO_GetFieldsCounters [22:11:15]wFMCommunicate request_size=4 [22:11:15]MH_SAM_APDU [22:11:15]CAPDU: 80 13 00 00 [22:11:15]Write to MH i2c: E2 08 00 DB 54 80 13 00 00 00 00 00 00 AB [22:11:15]Write i2c OK [22:11:15]MH_I2C_Read... [22:11:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:11:15]Read from MH i2c: E2 [22:11:15]MH_I2C_Read... [22:11:15]Read from MH i2c: E2 62 00 [22:11:15]MH_I2C_Read... [22:11:15]Read from MH i2c: E2 62 00 DB 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 ED E1 01 00 0E 04 04 00 43 01 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 9B [22: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 ED E1 01 00 0E 04 04 00 43 01 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 [22:11:15]wFMCommunicate OK [22:11:15]SAM_PROTO_GetFieldsCounters done [22:11:15]requested_item shift.num is exist - process it [22:11:15]requested_item shift.opened is exist - process it [22:11:15]req_shift_opened [22:11:15]FM_GetShiftState [22:11:15]SAM_PROTO_GetShiftState [22:11:15]wFMCommunicate request_size=4 [22:11:15]MH_SAM_APDU [22:11:15]CAPDU: 80 13 01 00 [22:11:15]Write to MH i2c: E2 08 00 DC 54 80 13 01 00 00 00 00 00 AD [22:11:15]Write i2c OK [22:11:15]MH_I2C_Read... [22:11:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:11:15]Read from MH i2c: E2 [22:11:15]MH_I2C_Read... [22:11:15]Read from MH i2c: E2 0E 00 [22:11:15]MH_I2C_Read... [22:11:15]Read from MH i2c: E2 0E 00 DC 54 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 6F [22:11:15]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [22:11:15]wFMCommunicate OK [22:11:15]SAM_PROTO_GetShiftState done [22:11:15]FM_GetShiftState done [22:11:15]req_shift_opened done [22:11:15]requested_item shift.open_date is exist - process it [22:11:15]req_shift_open_date [22:11:15]req_shift_open_date done [22:11:15]produce_requested_data done [22:11:15]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123373,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [22:11:15]process_action_free print_text [22:11:15]json_value_free [22:11:15]json_value_free done [22:11:15]process_json_proto returns [22:11:15]Send response to host [22:11:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123373,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [22:11:15]free response buf [22:11:15]execute_script done [22:11:15]execute_script returns [22:11:15]free content buf [22:11:15]Sock 9.Close socket [22:11:15]Sock 9.Thread stoped [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:34]accept exits with 7 [22:11:34]New connection [22:11:34]New thread 3067252068 created [22:11:34]Thread 3067395428 joined [22:11:34]Waiting for new connection... [22:11:34] Sock 7.Parse request [22:11:34]Sock 7.Check first char [22:11:34]Sock 7.First char is OK [22:11:34]request: POST /json_proto HTTP/1.0 [22:11:34]Method: POST [22:11:34]URL: /json_proto [22:11:34]Method is POST - this is cgi request [22:11:34]url: /json_proto [22:11:34]query_string will be loaded in cgi processing [22:11:34]execute_cgi json_proto POST (null) [22:11:34]execute_cgi path=json_proto method=POST [22:11:34]POST find Content-Length [22:11:34]Host: 172.17.48.197:8080 [22:11:34]Content-Length: 807 [22:11:34]Content-Type: application/json [22:11:34] [22:11:34]POST finish read [22:11:34]Found Content-Length = 807 [22:11:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106359", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 11.310, "sum" : 700.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 700.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:11:34]execute_script... [22:11:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106359", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 11.310, "sum" : 700.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 700.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:11:34]POST & json_proto [22:11:34]process_json_proto [22:11:34]json parsed OK: [22:11:34]protocol is kg_v1.0 [22:11:34]action value=close_receipt [22:11:34]process_action close_receipt [22:11:34]cmd_close_receipt [22:11:34]MH_GetDate [22:11:34]Write to MH i2c: F0 00 00 DD 54 20 [22:11:34]Write i2c OK [22:11:34]MH_I2C_Read... [22:11:34]Read from MH i2c: F0 [22:11:34]MH_I2C_Read... [22:11:34]Read from MH i2c: F0 09 00 [22:11:34]MH_I2C_Read... [22:11:34]Read from MH i2c: F0 09 00 DD 54 00 9B F5 E4 65 6C AF E3 65 65 [22:11:34]GetLastDocTimeStamp 1709503497 [22:11:34]current date 1709503899 [22:11:34]FM_GetShiftState [22:11:34]SAM_PROTO_GetShiftState [22:11:34]wFMCommunicate request_size=4 [22:11:34]MH_SAM_APDU [22:11:34]CAPDU: 80 13 01 00 [22:11:34]Write to MH i2c: E2 08 00 DE 54 80 13 01 00 00 00 00 00 AF [22:11:34]Write i2c OK [22:11:34]MH_I2C_Read... [22:11:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:11:34]Read from MH i2c: E2 [22:11:34]MH_I2C_Read... [22:11:34]Read from MH i2c: E2 0E 00 [22:11:34]MH_I2C_Read... [22:11:34]Read from MH i2c: E2 0E 00 DE 54 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 71 [22:11:34]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [22:11:34]wFMCommunicate OK [22:11:34]SAM_PROTO_GetShiftState done [22:11:34]FM_GetShiftState done [22:11:34]opened in 1709425579 [22:11:34]opened+sec_in_day 1709511979 [22:11:34]quantity*price = 70008 [22:11:34]sum+1 = 70010 [22:11:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.09 НСП 1% : 6.19 НДС 12% : 74.35 Наличными: 0.00 Безнал.: 700.09 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 231 03.03.2024 22:11 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874798 ФД: 123374 ФПД: 135344814238490 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T221139&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123374&fm=135344814238490&tin=02508201610067®Number=0000000000090573&sum=70009 [22:11:35]StoreToDocumentArchive [22:11:35]shift 323 fd 123374 [22:11:35]save to /storage/0323/doc_00123374 [22:11:35]save last doc name /storage/0323/doc_00123374 to /storage/kkm_last_doc_name [22:11:35]save OK [22:11:35]Clear old archive folders... [22:11:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:11:35]tlvbuf is 00F04400 [22:11:35]SAM_PROTO_ClearQueue [22:11:35]wFMCommunicate request_size=4 [22:11:35]MH_SAM_APDU [22:11:35]CAPDU: 80 09 00 00 [22:11:35]Write to MH i2c: E2 08 00 EB 54 80 09 00 00 00 00 00 00 B1 [22:11:35]Write i2c OK [22:11:35]MH_I2C_Read... [22:11:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:11:35]Read from MH i2c: E2 [22:11:35]MH_I2C_Read... [22:11:35]Read from MH i2c: E2 03 00 [22:11:35]MH_I2C_Read... [22:11:35]Read from MH i2c: E2 03 00 EB 54 00 90 00 B3 [22:11:35]RAPDU: 90 00 [22:11:35]wFMCommunicate OK [22:11:35]SAM_PROTO_ClearQueue done [22:11:35]KKMCreateOFDPacket [22:11:35]OFDProtocolAddRootSTLVToBuf [22:11:35]FM_MakeSignedData [22:11:35]FM_MakeSignedData [22:11:35]SAM_PROTO_SignData [22:11:35]wFMCommunicate request_size=4 [22:11:35]MH_SAM_APDU [22:11:35]CAPDU: 80 0D 01 02 [22:11:35]Write to MH i2c: E2 08 00 EC 54 80 0D 01 02 00 00 00 00 B9 [22:11:35]Write i2c OK [22:11:35]MH_I2C_Read... [22:11:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:11:35]Read from MH i2c: E2 [22:11:35]MH_I2C_Read... [22:11:35]Read from MH i2c: E2 03 00 [22:11:35]MH_I2C_Read... [22:11:35]Read from MH i2c: E2 03 00 EC 54 00 90 00 B4 [22:11:35]RAPDU: 90 00 [22:11:35]wFMCommunicate OK [22:11:35]wFMCommunicate request_size=255 [22:11:35]MH_SAM_APDU [22:11: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 35 FF 03 08 00 03 2E 2C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 79 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 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 00 00 00 00 00 00 39 04 06 00 79 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 9B F5 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 EE E1 01 00 35 04 06 00 7B [22:11:35]Write to MH i2c: E2 02 01 ED 54 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 2C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 79 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 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 00 00 00 00 00 00 39 04 06 00 79 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 9B F5 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 EE E1 01 00 35 04 06 00 7B 00 00 F2 [22:11:35]Write i2c OK [22:11:35]MH_I2C_Read... [22:11:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:11:36]Read from MH i2c: E2 [22:11:36]MH_I2C_Read... [22:11:36]Read from MH i2c: E2 03 00 [22:11:36]MH_I2C_Read... [22:11:36]Read from MH i2c: E2 03 00 ED 54 00 90 00 B5 [22:11:36]RAPDU: 90 00 [22:11:36]wFMCommunicate OK [22:11:36]wFMCommunicate request_size=10 [22:11:36]MH_SAM_APDU [22:11:36]CAPDU: 80 0D 02 02 05 18 6B 93 2B 1A [22:11:36]Write to MH i2c: E2 0D 00 EE 54 80 0D 02 02 05 00 18 6B 93 2B 1A 00 00 21 [22:11:36]Write i2c OK [22:11:36]MH_I2C_Read... [22:11:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:11:36]Read from MH i2c: E2 [22:11:36]MH_I2C_Read... [22:11:36]Read from MH i2c: E2 03 00 [22:11:36]MH_I2C_Read... [22:11:36]Read from MH i2c: E2 03 00 EE 54 00 90 00 B6 [22:11:36]RAPDU: 90 00 [22:11:36]wFMCommunicate OK [22:11:36]wFMCommunicate request_size=4 [22:11:36]MH_SAM_APDU [22:11:36]CAPDU: 80 0D 03 02 [22:11:36]Write to MH i2c: E2 08 00 EF 54 80 0D 03 02 00 00 00 00 BE [22:11:36]Write i2c OK [22:11:36]MH_I2C_Read... [22:11:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:11:36]Read from MH i2c: E2 [22:11:36]MH_I2C_Read... [22:11:36]Read from MH i2c: E2 0B 00 [22:11:36]MH_I2C_Read... [22:11:36]Read from MH i2c: E2 0B 00 EF 54 00 98 0F 19 66 90 8D 4F 2B 90 00 7C [22:11:36]RAPDU: 98 0F 19 66 90 8D 4F 2B 90 00 [22:11:36]wFMCommunicate OK [22:11:36]SAM_PROTO_SignData done [22:11:36]FM_MakeSignedData done [22:11:36]CreateOFDProtocolMessage [22:11:36]wFMCommunicate request_size=4 [22:11:36]MH_SAM_APDU [22:11:36]CAPDU: 80 11 00 00 [22:11:36]Write to MH i2c: E2 08 00 F0 54 80 11 00 00 00 00 00 00 BE [22:11:36]Write i2c OK [22:11:36]MH_I2C_Read... [22:11:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:11:36]Read from MH i2c: E2 [22:11:36]MH_I2C_Read... [22:11:36]Read from MH i2c: E2 17 00 [22:11:36]MH_I2C_Read... [22:11:36]Read from MH i2c: E2 17 00 F0 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 1C [22:11:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [22:11:36]wFMCommunicate OK [22:11:36]CreateOFDProtocolMessage done [22:11:36]OFDSenderStorePacket 123374 [22:11:36]StoreOFDPacket docnum=123374 [22:11:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 87 1F 07 01 7E 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 2C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 79 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 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 00 00 00 00 00 00 39 04 06 00 79 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 9B F5 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 EE E1 01 00 35 04 06 00 7B 18 6B 93 2B 1A 98 0F 19 66 90 8D 4F 2B [22:11:36]CheckFolder [22:11:36]dirname=/storage/ofd_packets [22:11:36]CheckFolder done [22:11:36]ProducePacketName [22:11:36]name=ofd_packets/00123374 [22:11:36]NVStorageSaveData ofd_packets/00123374 [22:11:36]File name is /storage/ofd_packets/00123374 [22:11:36]Write 301 bytes [22:11:36]NVStorageSaveData done [22:11:36]OFDSenderStorePacket done [22:11:36]KKMCreateOFDPacket done [22:11:36]NVStorageSaveData kkm_last_timestamp [22:11:36]File name is /storage/kkm_last_timestamp [22:11:36]Write 4 bytes [22:11:36]NVStorageSaveData done [22:11:36]ExternCall_PrintAddStr [22:11:36]wPrintStart [22:11:36]Write to MH i2c: 01 00 00 F1 54 45 [22:11:36]Write i2c OK [22:11:36]MH_I2C_Read... [22:11:36]Read from MH i2c: 01 [22:11:36]MH_I2C_Read... [22:11:36]Read from MH i2c: 01 07 00 [22:11:36]MH_I2C_Read... [22:11:36]Read from MH i2c: 01 07 00 F1 54 00 00 00 00 00 FF 0F 5A [22:11:36]RasterBufferAndPrint [22:11:36]line Счет N : (1)1106359 [22:11:36]line ИНН: 02508201610067 [22:11:36]line Контрольно-Кассовый Чек [22:11:36]line ПРОДАЖА [22:11:36]line ТРК (МРК, ГНК) : 11 [22:11:36]line Товар: 2710124130 [22:11:36]line Аи-92-К-5 [22:11:36]line 11.310 * 61.90 [22:11:36]line = 700.09 [22:11:36]line НДС 12% НСП 1% [22:11:36]line > о реализуемом товаре [22:11:36]line ИТОГО: 700.09 [22:11:36]line НСП 1% : 6.19 [22:11:36]line НДС 12% : 74.35 [22:11:36]line Наличными: 0.00 [22:11:36]line Безнал.: 700.09 [22:11:36]line Место: АЗС № 25 "Партнер Нефть" [22:11:36]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [22:11:36]line СНО: Общий режим [22:11:36]line Чек 231 03.03.2024 22:11 [22:11:36]line Смена: 323 ФФД: 1.0 [22:11:36]line ЗНМ: 0300000019 [22:11:36]line РНМ: 0000000000090573 [22:11:36]line Версия ККМ: 001 [22:11:36]line Платежная система: О! деньги [22:11:36]line ФМ: 0000000000874798 [22:11:36]line ФД: 123374 [22:11:36]line ФПД: 135344814238490 [22:11:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T221139&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123374&fm=135344814238490&tin=02508201610067®Number=0000000000090573&sum=70009 [22:11:36]written 0, free lines is 4095 [22:11:36]OFD Sender: Processing packet 123374 [packets to send 112, broken 111] [22:11:36]ProducePacketName [22:11:36]name=ofd_packets/00123374 [22:11:36]OFD Sender: To server: pG, [22:11:36]CommunicateWithHost lk.salyk.kg:30040 [22:11:36]ConnectInit lk.salyk.kg [22:11:36]Connected sock=11 [22:11: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 37 39 38 0F 01 00 00 87 1F 07 01 7E 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 2C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 79 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 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 00 00 00 00 00 00 39 04 06 00 79 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 9B F5 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 EE E1 01 00 35 04 06 00 7B 18 6B 93 2B 1A 98 0F 19 66 90 8D 4F 2B [22:11:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 B3 66 47 00 1E 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 37 39 38 10 04 04 00 EE E1 01 00 F4 03 04 00 C6 A1 E4 65 B6 04 01 00 00 AD 5C 91 71 24 D6 90 FC [22:11:36]CommunicateWithHost err = 0 [22:11:36]CheckOFDResponse [22:11:36]1017 (14) - 77093643461234 [22:11:36]1041 (16) - 0000000000874798 [22:11:36]1040 (4) - 123374 [22:11:36]1012 (4) - 03.03.2024 16:13 [22:11:36]1206 (1) - 0 [22:11:36]OFD Sender: Remove packet 123374 [22:11:36]ProducePacketName [22:11:36]name=ofd_packets/00123374 [22:11:36]NVStorageDeleteData [22:11:36]Write to MH i2c: 01 00 00 1B 55 70 [22:11:36]Write i2c OK [22:11:36]MH_I2C_Read... [22:11:36]Read from MH i2c: 01 [22:11:36]MH_I2C_Read... [22:11:36]Read from MH i2c: 01 07 00 [22:11:36]MH_I2C_Read... [22:11:36]Read from MH i2c: 01 07 00 1B 55 00 00 00 00 00 0A 0D 8E [22:11:36]RasterBufferAndPrint [22:11:36]line [22:11:36]line [22:11:36]line [22:11:36]line [22:11:36]line [22:11:36]written 0, free lines is 3343 [22:11:36]MH_Cut [22:11:36]Write to MH i2c: D1 01 00 22 55 01 49 [22:11:36]Write i2c OK [22:11:36]MH_I2C_Read... [22:11:36]Read from MH i2c: D1 [22:11:36]MH_I2C_Read... [22:11:36]Read from MH i2c: D1 01 00 [22:11:36]MH_I2C_Read... [22:11:36]Read from MH i2c: D1 01 00 22 55 00 48 [22:11:36]Write to MH i2c: 01 00 00 23 55 78 [22:11:36]Write i2c OK [22:11:36]MH_I2C_Read... [22:11:37]OFD Sender: No OFD packet to send [22:11:37]*** Cut start [22:11:37]*** Purtial cut [22:11:37]*** Stage 1: CUTSNS_PIN = 1 [22:11:39]Read from MH i2c: 01 [22:11:39]MH_I2C_Read... [22:11:39]*** Stop cut motor [22:11:39]*** Cut end [22:11:39]Read from MH i2c: 01 07 00 [22:11:39]MH_I2C_Read... [22:11:39]Read from MH i2c: 01 07 00 23 55 00 00 00 00 00 FF 0F 8D [22:11:39]process_action close_receipt done [22:11:39]requested_data is exist [22:11:39]produce_requested_data [22:11:39]requested_item fm.sn is exist - process it [22:11:39]wFMCommunicate request_size=4 [22:11:39]MH_SAM_APDU [22:11:39]CAPDU: 80 11 00 00 [22:11:39]Write to MH i2c: E2 08 00 24 55 80 11 00 00 00 00 00 00 F3 [22:11:39]Write i2c OK [22:11:39]MH_I2C_Read... [22:11:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:11:39]Read from MH i2c: E2 [22:11:39]MH_I2C_Read... [22:11:39]Read from MH i2c: E2 17 00 [22:11:39]MH_I2C_Read... [22:11:39]Read from MH i2c: E2 17 00 24 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 51 [22:11:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [22:11:39]wFMCommunicate OK [22:11:39]requested_item fd.num is exist - process it [22:11:39]SAM_PROTO_GetFieldsCounters [22:11:39]wFMCommunicate request_size=4 [22:11:39]MH_SAM_APDU [22:11:39]CAPDU: 80 13 00 00 [22:11:39]Write to MH i2c: E2 08 00 25 55 80 13 00 00 00 00 00 00 F6 [22:11:39]Write i2c OK [22:11:39]MH_I2C_Read... [22:11:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:11:39]Read from MH i2c: E2 [22:11:39]MH_I2C_Read... [22:11:39]Read from MH i2c: E2 62 00 [22:11:39]MH_I2C_Read... [22:11:39]Read from MH i2c: E2 62 00 25 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 EE E1 01 00 0E 04 04 00 43 01 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 EA [22:11:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 EE E1 01 00 0E 04 04 00 43 01 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 [22:11:39]wFMCommunicate OK [22:11:39]SAM_PROTO_GetFieldsCounters done [22:11:39]requested_item shift.num is exist - process it [22:11:39]requested_item shift.opened is exist - process it [22:11:39]req_shift_opened [22:11:39]FM_GetShiftState [22:11:39]SAM_PROTO_GetShiftState [22:11:39]wFMCommunicate request_size=4 [22:11:39]MH_SAM_APDU [22:11:39]CAPDU: 80 13 01 00 [22:11:39]Write to MH i2c: E2 08 00 26 55 80 13 01 00 00 00 00 00 F8 [22:11:39]Write i2c OK [22:11:39]MH_I2C_Read... [22:11:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:11:39]Read from MH i2c: E2 [22:11:39]MH_I2C_Read... [22:11:39]Read from MH i2c: E2 0E 00 [22:11:39]MH_I2C_Read... [22:11:39]Read from MH i2c: E2 0E 00 26 55 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 BA [22:11:39]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [22:11:39]wFMCommunicate OK [22:11:39]SAM_PROTO_GetShiftState done [22:11:39]FM_GetShiftState done [22:11:39]req_shift_opened done [22:11:39]requested_item shift.open_date is exist - process it [22:11:39]req_shift_open_date [22:11:39]req_shift_open_date done [22:11:39]produce_requested_data done [22:11:39]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123374,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [22:11:39]process_action_free close_receipt [22:11:39]json_value_free [22:11:39]json_value_free done [22:11:39]process_json_proto returns [22:11:39]Send response to host [22:11:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123374,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [22:11:39]free response buf [22:11:39]execute_script done [22:11:39]execute_script returns [22:11:39]free content buf [22:11:39]Sock 7.Close socket [22:11:39]Sock 7.Thread stoped [22:11:42]OFD Sender: No OFD packet to send [22:11:47]OFD Sender: No OFD packet to send [22:11:52]OFD Sender: No OFD packet to send [22:11:57]OFD Sender: No OFD packet to send [22:12:02]OFD Sender: No OFD packet to send [22:12:07]OFD Sender: No OFD packet to send [22:12:12]OFD Sender: No OFD packet to send [22:12:17]OFD Sender: No OFD packet to send [22:12:22]OFD Sender: No OFD packet to send [22:12:27]OFD Sender: No OFD packet to send [22:12:32]OFD Sender: No OFD packet to send [22:12:37]OFD Sender: No OFD packet to send [22:12:42]OFD Sender: No OFD packet to send [22:12:47]OFD Sender: No OFD packet to send [22:12:52]OFD Sender: No OFD packet to send [22:12:57]OFD Sender: No OFD packet to send [22:13:02]OFD Sender: No OFD packet to send [22:13:07]OFD Sender: No OFD packet to send [22:13:12]OFD Sender: No OFD packet to send [22:13:17]OFD Sender: No OFD packet to send [22:13:22]OFD Sender: No OFD packet to send [22:13:27]OFD Sender: No OFD packet to send [22:13:32]OFD Sender: No OFD packet to send [22:13:37]OFD Sender: No OFD packet to send [22:13:42]OFD Sender: No OFD packet to send [22:13:47]OFD Sender: No OFD packet to send [22:13:52]OFD Sender: No OFD packet to send [22:13:57]OFD Sender: No OFD packet to send [22:14:02]OFD Sender: No OFD packet to send [22:14:07]OFD Sender: No OFD packet to send [22:14:12]OFD Sender: No OFD packet to send [22:14:17]OFD Sender: No OFD packet to send [22:14:22]OFD Sender: No OFD packet to send [22:14:27]OFD Sender: No OFD packet to send [22:14:32]OFD Sender: No OFD packet to send [22:14:37]OFD Sender: No OFD packet to send [22:14:42]OFD Sender: No OFD packet to send [22:14:47]OFD Sender: No OFD packet to send [22:14:52]OFD Sender: No OFD packet to send [22:14:57]OFD Sender: No OFD packet to send [22:15:02]OFD Sender: No OFD packet to send [22:15:07]OFD Sender: No OFD packet to send [22:15:12]OFD Sender: No OFD packet to send [22:15:17]OFD Sender: No OFD packet to send [22:15:22]OFD Sender: No OFD packet to send [22:15:27]OFD Sender: No OFD packet to send [22:15:32]OFD Sender: No OFD packet to send [22:15:37]OFD Sender: No OFD packet to send [22:15:42]OFD Sender: No OFD packet to send [22:15:47]OFD Sender: No OFD packet to send [22:15:52]OFD Sender: No OFD packet to send [22:15:54]accept exits with 9 [22:15:54]New connection [22:15:54]New thread 3067395428 created [22:15:54]Thread 3067252068 joined [22:15:54]Waiting for new connection... [22:15:54] Sock 9.Parse request [22:15:54]Sock 9.Check first char [22:15:54]Sock 9.First char is OK [22:15:54]request: POST /json_proto HTTP/1.0 [22:15:54]Method: POST [22:15:54]URL: /json_proto [22:15:54]Method is POST - this is cgi request [22:15:54]url: /json_proto [22:15:54]query_string will be loaded in cgi processing [22:15:54]execute_cgi json_proto POST (null) [22:15:54]execute_cgi path=json_proto method=POST [22:15:54]POST find Content-Length [22:15:54]Host: 172.17.48.197:8080 [22:15:54]Content-Length: 806 [22:15:54]Content-Type: application/json [22:15:54] [22:15:54]POST finish read [22:15:54]Found Content-Length = 806 [22:15:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106361", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 6.000, "sum" : 371.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 371.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:15:54]execute_script... [22:15:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106361", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 6.000, "sum" : 371.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 371.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:15:54]POST & json_proto [22:15:54]process_json_proto [22:15:54]json parsed OK: [22:15:54]protocol is kg_v1.0 [22:15:54]action value=close_receipt [22:15:54]process_action close_receipt [22:15:54]cmd_close_receipt [22:15:54]MH_GetDate [22:15:54]Write to MH i2c: F0 00 00 27 55 6B [22:15:54]Write i2c OK [22:15:54]MH_I2C_Read... [22:15:54]Read from MH i2c: F0 [22:15:54]MH_I2C_Read... [22:15:54]Read from MH i2c: F0 09 00 [22:15:54]MH_I2C_Read... [22:15:54]Read from MH i2c: F0 09 00 27 55 00 9F F6 E4 65 6C AF E3 65 B5 [22:15:54]GetLastDocTimeStamp 1709503899 [22:15:54]current date 1709504159 [22:15:54]FM_GetShiftState [22:15:54]SAM_PROTO_GetShiftState [22:15:54]wFMCommunicate request_size=4 [22:15:54]MH_SAM_APDU [22:15:54]CAPDU: 80 13 01 00 [22:15:54]Write to MH i2c: E2 08 00 28 55 80 13 01 00 00 00 00 00 FA [22:15:54]Write i2c OK [22:15:54]MH_I2C_Read... [22:15:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:15:54]Read from MH i2c: E2 [22:15:54]MH_I2C_Read... [22:15:54]Read from MH i2c: E2 0E 00 [22:15:54]MH_I2C_Read... [22:15:54]Read from MH i2c: E2 0E 00 28 55 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 BC [22:15:54]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [22:15:54]wFMCommunicate OK [22:15:54]SAM_PROTO_GetShiftState done [22:15:54]FM_GetShiftState done [22:15:54]opened in 1709425579 [22:15:54]opened+sec_in_day 1709511979 [22:15:54]quantity*price = 37140 [22:15:54]sum+1 = 37141 [22:15:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 371.40 НСП 1% : 3.29 НДС 12% : 39.44 Наличными: 0.00 Безнал.: 371.40 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 232 03.03.2024 22:15 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874798 ФД: 123375 ФПД: 187871322513891 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T221559&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123375&fm=187871322513891&tin=02508201610067®Number=0000000000090573&sum=37140 [22:15:55]StoreToDocumentArchive [22:15:55]shift 323 fd 123375 [22:15:55]save to /storage/0323/doc_00123375 [22:15:55]save last doc name /storage/0323/doc_00123375 to /storage/kkm_last_doc_name [22:15:55]save OK [22:15:55]Clear old archive folders... [22:15:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:15:55]tlvbuf is 00DCB110 [22:15:55]SAM_PROTO_ClearQueue [22:15:55]wFMCommunicate request_size=4 [22:15:55]MH_SAM_APDU [22:15:55]CAPDU: 80 09 00 00 [22:15:55]Write to MH i2c: E2 08 00 35 55 80 09 00 00 00 00 00 00 FC [22:15:55]Write i2c OK [22:15:55]MH_I2C_Read... [22:15:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:15:55]Read from MH i2c: E2 [22:15:55]MH_I2C_Read... [22:15:55]Read from MH i2c: E2 03 00 [22:15:55]MH_I2C_Read... [22:15:55]Read from MH i2c: E2 03 00 35 55 00 90 00 FE [22:15:55]RAPDU: 90 00 [22:15:55]wFMCommunicate OK [22:15:55]SAM_PROTO_ClearQueue done [22:15:55]KKMCreateOFDPacket [22:15:55]OFDProtocolAddRootSTLVToBuf [22:15:55]FM_MakeSignedData [22:15:55]FM_MakeSignedData [22:15:55]SAM_PROTO_SignData [22:15:55]wFMCommunicate request_size=4 [22:15:55]MH_SAM_APDU [22:15:55]CAPDU: 80 0D 01 02 [22:15:55]Write to MH i2c: E2 08 00 36 55 80 0D 01 02 00 00 00 00 04 [22:15:55]Write i2c OK [22:15:55]MH_I2C_Read... [22:15:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:15:55]Read from MH i2c: E2 [22:15:55]MH_I2C_Read... [22:15:55]Read from MH i2c: E2 03 00 [22:15:55]MH_I2C_Read... [22:15:55]Read from MH i2c: E2 03 00 36 55 00 90 00 FF [22:15:55]RAPDU: 90 00 [22:15:55]wFMCommunicate OK [22:15:55]wFMCommunicate request_size=255 [22:15:55]MH_SAM_APDU [22:15:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 70 17 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 14 91 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 91 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 91 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 9F F6 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 EF E1 01 00 35 04 06 00 AA [22:15:55]Write to MH i2c: E2 02 01 37 55 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 70 17 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 14 91 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 91 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 91 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 9F F6 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 EF E1 01 00 35 04 06 00 AA 00 00 1A [22:15:55]Write i2c OK [22:15:55]MH_I2C_Read... [22:15:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:15:56]Read from MH i2c: E2 [22:15:56]MH_I2C_Read... [22:15:56]Read from MH i2c: E2 03 00 [22:15:56]MH_I2C_Read... [22:15:56]Read from MH i2c: E2 03 00 37 55 00 90 00 00 [22:15:56]RAPDU: 90 00 [22:15:56]wFMCommunicate OK [22:15:56]wFMCommunicate request_size=10 [22:15:56]MH_SAM_APDU [22:15:56]CAPDU: 80 0D 02 02 05 DE 33 71 21 E3 [22:15:56]Write to MH i2c: E2 0D 00 38 55 80 0D 02 02 05 00 DE 33 71 21 E3 00 00 97 [22:15:56]Write i2c OK [22:15:56]MH_I2C_Read... [22:15:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:15:56]Read from MH i2c: E2 [22:15:56]MH_I2C_Read... [22:15:56]Read from MH i2c: E2 03 00 [22:15:56]MH_I2C_Read... [22:15:56]Read from MH i2c: E2 03 00 38 55 00 90 00 01 [22:15:56]RAPDU: 90 00 [22:15:56]wFMCommunicate OK [22:15:56]wFMCommunicate request_size=4 [22:15:56]MH_SAM_APDU [22:15:56]CAPDU: 80 0D 03 02 [22:15:56]Write to MH i2c: E2 08 00 39 55 80 0D 03 02 00 00 00 00 09 [22:15:56]Write i2c OK [22:15:56]MH_I2C_Read... [22:15:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:15:56]Read from MH i2c: E2 [22:15:56]MH_I2C_Read... [22:15:56]Read from MH i2c: E2 0B 00 [22:15:56]MH_I2C_Read... [22:15:56]Read from MH i2c: E2 0B 00 39 55 00 CB 2F A4 20 9D 1F F2 6C 90 00 E2 [22:15:56]RAPDU: CB 2F A4 20 9D 1F F2 6C 90 00 [22:15:56]wFMCommunicate OK [22:15:56]SAM_PROTO_SignData done [22:15:56]FM_MakeSignedData done [22:15:56]CreateOFDProtocolMessage [22:15:56]wFMCommunicate request_size=4 [22:15:56]MH_SAM_APDU [22:15:56]CAPDU: 80 11 00 00 [22:15:56]Write to MH i2c: E2 08 00 3A 55 80 11 00 00 00 00 00 00 09 [22:15:56]Write i2c OK [22:15:56]MH_I2C_Read... [22:15:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:15:56]Read from MH i2c: E2 [22:15:56]MH_I2C_Read... [22:15:56]Read from MH i2c: E2 17 00 [22:15:56]MH_I2C_Read... [22:15:56]Read from MH i2c: E2 17 00 3A 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 67 [22:15:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [22:15:56]wFMCommunicate OK [22:15:56]CreateOFDProtocolMessage done [22:15:56]OFDSenderStorePacket 123375 [22:15:56]StoreOFDPacket docnum=123375 [22:15:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 06 0B 07 01 30 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 70 17 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 14 91 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 91 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 91 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 9F F6 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 EF E1 01 00 35 04 06 00 AA DE 33 71 21 E3 CB 2F A4 20 9D 1F F2 6C [22:15:56]CheckFolder [22:15:56]dirname=/storage/ofd_packets [22:15:56]CheckFolder done [22:15:56]ProducePacketName [22:15:56]name=ofd_packets/00123375 [22:15:56]NVStorageSaveData ofd_packets/00123375 [22:15:56]File name is /storage/ofd_packets/00123375 [22:15:56]Write 301 bytes [22:15:56]NVStorageSaveData done [22:15:56]OFDSenderStorePacket done [22:15:56]KKMCreateOFDPacket done [22:15:56]NVStorageSaveData kkm_last_timestamp [22:15:56]File name is /storage/kkm_last_timestamp [22:15:56]Write 4 bytes [22:15:56]NVStorageSaveData done [22:15:56]ExternCall_PrintAddStr [22:15:56]wPrintStart [22:15:56]Write to MH i2c: 01 00 00 3B 55 90 [22:15:56]Write i2c OK [22:15:56]MH_I2C_Read... [22:15:56]Read from MH i2c: 01 [22:15:56]MH_I2C_Read... [22:15:56]Read from MH i2c: 01 07 00 [22:15:56]MH_I2C_Read... [22:15:56]Read from MH i2c: 01 07 00 3B 55 00 00 00 00 00 FF 0F A5 [22:15:56]RasterBufferAndPrint [22:15:56]line Счет N : (1)1106361 [22:15:56]line ИНН: 02508201610067 [22:15:56]line Контрольно-Кассовый Чек [22:15:56]line ПРОДАЖА [22:15:56]line ТРК (МРК, ГНК) : 62 [22:15:56]line Товар: 2710124130 [22:15:56]line Аи-92-К-5 [22:15:56]line 6.000 * 61.90 [22:15:56]line = 371.40 [22:15:56]line НДС 12% НСП 1% [22:15:56]line > о реализуемом товаре [22:15:56]line ИТОГО: 371.40 [22:15:56]line НСП 1% : 3.29 [22:15:56]line НДС 12% : 39.44 [22:15:56]line Наличными: 0.00 [22:15:56]line Безнал.: 371.40 [22:15:56]line Место: АЗС № 25 "Партнер Нефть" [22:15:56]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [22:15:56]line СНО: Общий режим [22:15:56]line Чек 232 03.03.2024 22:15 [22:15:56]line Смена: 323 ФФД: 1.0 [22:15:56]line ЗНМ: 0300000019 [22:15:56]line РНМ: 0000000000090573 [22:15:56]line Версия ККМ: 001 [22:15:56]line Платежная система: О! деньги [22:15:56]line ФМ: 0000000000874798 [22:15:56]line ФД: 123375 [22:15:56]line ФПД: 187871322513891 [22:15:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T221559&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123375&fm=187871322513891&tin=02508201610067®Number=0000000000090573&sum=37140 [22:15:56]OFD Sender: Processing packet 123375 [packets to send 112, broken 111] [22:15:56]ProducePacketName [22:15:56]name=ofd_packets/00123375 [22:15:56]OFD Sender: To server: pG, [22:15:56]CommunicateWithHost lk.salyk.kg:30040 [22:15:56]ConnectInit lk.salyk.kg [22:15:56]written 0, free lines is 4095 [22:15:56]Connected sock=10 [22:15:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 06 0B 07 01 30 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 70 17 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 14 91 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 91 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 91 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 9F F6 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 EF E1 01 00 35 04 06 00 AA DE 33 71 21 E3 CB 2F A4 20 9D 1F F2 6C [22:15:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 FE 44 47 00 17 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 37 39 38 10 04 04 00 EF E1 01 00 F4 03 04 00 CA A2 E4 65 B6 04 01 00 00 FC 74 A2 B6 A0 71 2C FD [22:15:56]CommunicateWithHost err = 0 [22:15:56]CheckOFDResponse [22:15:56]1017 (14) - 77093643461234 [22:15:56]1041 (16) - 0000000000874798 [22:15:56]1040 (4) - 123375 [22:15:56]1012 (4) - 03.03.2024 16:18 [22:15:56]1206 (1) - 0 [22:15:56]OFD Sender: Remove packet 123375 [22:15:56]ProducePacketName [22:15:56]name=ofd_packets/00123375 [22:15:56]NVStorageDeleteData [22:15:57]Write to MH i2c: 01 00 00 65 55 BA [22:15:57]Write i2c OK [22:15:57]MH_I2C_Read... [22:15:57]Read from MH i2c: 01 [22:15:57]MH_I2C_Read... [22:15:57]Read from MH i2c: 01 07 00 [22:15:57]MH_I2C_Read... [22:15:57]Read from MH i2c: 01 07 00 65 55 00 00 00 00 00 07 0D D5 [22:15:57]RasterBufferAndPrint [22:15:57]line [22:15:57]line [22:15:57]line [22:15:57]line [22:15:57]line [22:15:57]written 0, free lines is 3343 [22:15:57]MH_Cut [22:15:57]Write to MH i2c: D1 01 00 6C 55 01 93 [22:15:57]Write i2c OK [22:15:57]MH_I2C_Read... [22:15:57]Read from MH i2c: D1 [22:15:57]MH_I2C_Read... [22:15:57]Read from MH i2c: D1 01 00 [22:15:57]MH_I2C_Read... [22:15:57]Read from MH i2c: D1 01 00 6C 55 00 92 [22:15:57]Write to MH i2c: 01 00 00 6D 55 C2 [22:15:57]Write i2c OK [22:15:57]MH_I2C_Read... [22:15:57]OFD Sender: No OFD packet to send [22:15:57]*** Cut start [22:15:57]*** Purtial cut [22:15:57]*** Stage 1: CUTSNS_PIN = 1 [22:15:59]Read from MH i2c: 01 [22:15:59]MH_I2C_Read... [22:15:59]*** Stop cut motor [22:15:59]*** Cut end [22:15:59]Read from MH i2c: 01 07 00 [22:15:59]MH_I2C_Read... [22:15:59]Read from MH i2c: 01 07 00 6D 55 00 00 00 00 00 FF 0F D7 [22:15:59]process_action close_receipt done [22:15:59]requested_data is exist [22:15:59]produce_requested_data [22:15:59]requested_item fm.sn is exist - process it [22:15:59]wFMCommunicate request_size=4 [22:15:59]MH_SAM_APDU [22:15:59]CAPDU: 80 11 00 00 [22:15:59]Write to MH i2c: E2 08 00 6E 55 80 11 00 00 00 00 00 00 3D [22:15:59]Write i2c OK [22:15:59]MH_I2C_Read... [22:15:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:15:59]Read from MH i2c: E2 [22:15:59]MH_I2C_Read... [22:15:59]Read from MH i2c: E2 17 00 [22:15:59]MH_I2C_Read... [22:15:59]Read from MH i2c: E2 17 00 6E 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 9B [22:15:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [22:15:59]wFMCommunicate OK [22:15:59]requested_item fd.num is exist - process it [22:15:59]SAM_PROTO_GetFieldsCounters [22:15:59]wFMCommunicate request_size=4 [22:15:59]MH_SAM_APDU [22:15:59]CAPDU: 80 13 00 00 [22:15:59]Write to MH i2c: E2 08 00 6F 55 80 13 00 00 00 00 00 00 40 [22:15:59]Write i2c OK [22:15:59]MH_I2C_Read... [22:15:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:15:59]Read from MH i2c: E2 [22:15:59]MH_I2C_Read... [22:15:59]Read from MH i2c: E2 62 00 [22:15:59]MH_I2C_Read... [22:15:59]Read from MH i2c: E2 62 00 6F 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 EF E1 01 00 0E 04 04 00 43 01 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 38 [22:15: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 EF E1 01 00 0E 04 04 00 43 01 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 [22:15:59]wFMCommunicate OK [22:15:59]SAM_PROTO_GetFieldsCounters done [22:15:59]requested_item shift.num is exist - process it [22:15:59]requested_item shift.opened is exist - process it [22:15:59]req_shift_opened [22:15:59]FM_GetShiftState [22:15:59]SAM_PROTO_GetShiftState [22:15:59]wFMCommunicate request_size=4 [22:15:59]MH_SAM_APDU [22:15:59]CAPDU: 80 13 01 00 [22:15:59]Write to MH i2c: E2 08 00 70 55 80 13 01 00 00 00 00 00 42 [22:15:59]Write i2c OK [22:15:59]MH_I2C_Read... [22:15:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:15:59]Read from MH i2c: E2 [22:15:59]MH_I2C_Read... [22:15:59]Read from MH i2c: E2 0E 00 [22:15:59]MH_I2C_Read... [22:15:59]Read from MH i2c: E2 0E 00 70 55 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 04 [22:15:59]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [22:15:59]wFMCommunicate OK [22:15:59]SAM_PROTO_GetShiftState done [22:15:59]FM_GetShiftState done [22:15:59]req_shift_opened done [22:15:59]requested_item shift.open_date is exist - process it [22:15:59]req_shift_open_date [22:15:59]req_shift_open_date done [22:15:59]produce_requested_data done [22:15:59]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123375,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [22:15:59]process_action_free close_receipt [22:15:59]json_value_free [22:15:59]json_value_free done [22:15:59]process_json_proto returns [22:15:59]Send response to host [22:15:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123375,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [22:15:59]free response buf [22:15:59]execute_script done [22:15:59]execute_script returns [22:15:59]free content buf [22:15:59]Sock 9.Close socket [22:15:59]Sock 9.Thread stoped [22:16:02]OFD Sender: No OFD packet to send [22:16:07]OFD Sender: No OFD packet to send [22:16:12]OFD Sender: No OFD packet to send [22:16:17]OFD Sender: No OFD packet to send [22:16:22]OFD Sender: No OFD packet to send [22:16:27]OFD Sender: No OFD packet to send [22:16:32]OFD Sender: No OFD packet to send [22:16:37]OFD Sender: No OFD packet to send [22:16:42]OFD Sender: No OFD packet to send [22:16:47]OFD Sender: No OFD packet to send [22:16:52]OFD Sender: No OFD packet to send [22:16:57]OFD Sender: No OFD packet to send [22:17:02]OFD Sender: No OFD packet to send [22:17:07]OFD Sender: No OFD packet to send [22:17:12]OFD Sender: No OFD packet to send [22:17:17]OFD Sender: No OFD packet to send [22:17:22]OFD Sender: No OFD packet to send [22:17:27]OFD Sender: No OFD packet to send [22:17:32]OFD Sender: No OFD packet to send [22:17:32]accept exits with 7 [22:17:32]New connection [22:17:32]New thread 3067252068 created [22:17:32]Thread 3067395428 joined [22:17:32]Waiting for new connection... [22:17:32] Sock 7.Parse request [22:17:32]Sock 7.Check first char [22:17:32]Sock 7.First char is OK [22:17:32]request: POST /json_proto HTTP/1.0 [22:17:32]Method: POST [22:17:32]URL: /json_proto [22:17:32]Method is POST - this is cgi request [22:17:32]url: /json_proto [22:17:32]query_string will be loaded in cgi processing [22:17:32]execute_cgi json_proto POST (null) [22:17:32]execute_cgi path=json_proto method=POST [22:17:32]POST find Content-Length [22:17:32]Host: 172.17.48.197:8080 [22:17:32]Content-Length: 1218 [22:17:32]Content-Type: application/json [22:17:32] [22:17:32]POST finish read [22:17:32]Found Content-Length = 1218 [22:17:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106362\u000A03.03.2024 22:13\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 619.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A38236645\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:17:32]execute_script... [22:17:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106362\u000A03.03.2024 22:13\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 61.90\u000A\u0418\u0422\u041E\u0413: 619.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A38236645\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:17:32]POST & json_proto [22:17:32]process_json_proto [22:17:32]json parsed OK: [22:17:32]protocol is kg_v1.0 [22:17:32]action value=print_text [22:17:32]process_action print_text [22:17:32]cmd_print_text [22:17:32]ExternCall_PrintAddStr [22:17:32]wPrintStart [22:17:32]Write to MH i2c: 01 00 00 71 55 C6 [22:17:32]Write i2c OK [22:17:32]MH_I2C_Read... [22:17:32]Read from MH i2c: 01 [22:17:32]MH_I2C_Read... [22:17:32]Read from MH i2c: 01 07 00 [22:17:32]MH_I2C_Read... [22:17:32]Read from MH i2c: 01 07 00 71 55 00 00 00 00 00 FF 0F DB [22:17:32]RasterBufferAndPrint [22:17:32]line *****ТОВАРНЫЙ ЧЕК***** [22:17:32]line АЗС 25 [22:17:32]line Партнер нефть [22:17:32]line 02508201610067 [22:17:32]line Кассир : Турдумбек у. К. [22:17:32]line Счет N : (1)1106362 [22:17:32]line 03.03.2024 22:13 [22:17:32]line ПРОДАЖА [22:17:32]line ТРК (МРК, ГНК): 11 [22:17:32]line Вид ГСМ : 2710124130 [22:17:32]line Аи-92-К-5 [22:17:32]line 10.000 x 61.90 [22:17:32]line ИТОГ: 619.00 [22:17:32]line Тип оплаты: Талоны: Топливные Талоны [22:17:32]line 38236645 [22:17:32]line ______________________ [22:17:32]line (подпись) [22:17:32]written 0, free lines is 4095 [22:17:32]Write to MH i2c: 01 00 00 86 55 DB [22:17:32]Write i2c OK [22:17:32]MH_I2C_Read... [22:17:32]Read from MH i2c: 01 [22:17:32]MH_I2C_Read... [22:17:32]Read from MH i2c: 01 07 00 [22:17:32]MH_I2C_Read... [22:17:32]Read from MH i2c: 01 07 00 86 55 00 00 00 00 00 F7 0D E6 [22:17:32]RasterBufferAndPrint [22:17:32]line [22:17:32]line [22:17:32]line [22:17:32]line [22:17:32]line [22:17:32]written 0, free lines is 3577 [22:17:32]MH_Cut [22:17:32]Write to MH i2c: D1 01 00 8D 55 01 B4 [22:17:32]Write i2c OK [22:17:32]MH_I2C_Read... [22:17:32]Read from MH i2c: D1 [22:17:32]MH_I2C_Read... [22:17:32]Read from MH i2c: D1 01 00 [22:17:32]MH_I2C_Read... [22:17:32]Read from MH i2c: D1 01 00 8D 55 00 B3 [22:17:32]Write to MH i2c: 01 00 00 8E 55 E3 [22:17:32]Write i2c OK [22:17:32]MH_I2C_Read... [22:17:33]*** Cut start [22:17:33]*** Purtial cut [22:17:33]*** Stage 1: CUTSNS_PIN = 1 [22:17:35]Read from MH i2c: 01 [22:17:35]MH_I2C_Read... [22:17:35]*** Stop cut motor [22:17:35]*** Cut end [22:17:35]Read from MH i2c: 01 07 00 [22:17:35]MH_I2C_Read... [22:17:35]Read from MH i2c: 01 07 00 8E 55 00 00 00 00 00 FF 0F F8 [22:17:35]process_action print_text done [22:17:35]requested_data is exist [22:17:35]produce_requested_data [22:17:35]requested_item fm.sn is exist - process it [22:17:35]wFMCommunicate request_size=4 [22:17:35]MH_SAM_APDU [22:17:35]CAPDU: 80 11 00 00 [22:17:35]Write to MH i2c: E2 08 00 8F 55 80 11 00 00 00 00 00 00 5E [22:17:35]Write i2c OK [22:17:35]MH_I2C_Read... [22:17:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:17:35]Read from MH i2c: E2 [22:17:35]MH_I2C_Read... [22:17:35]Read from MH i2c: E2 17 00 [22:17:35]MH_I2C_Read... [22:17:35]Read from MH i2c: E2 17 00 8F 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 BC [22:17:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [22:17:35]wFMCommunicate OK [22:17:35]requested_item fd.num is exist - process it [22:17:35]SAM_PROTO_GetFieldsCounters [22:17:35]wFMCommunicate request_size=4 [22:17:35]MH_SAM_APDU [22:17:35]CAPDU: 80 13 00 00 [22:17:35]Write to MH i2c: E2 08 00 90 55 80 13 00 00 00 00 00 00 61 [22:17:35]Write i2c OK [22:17:35]MH_I2C_Read... [22:17:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:17:35]Read from MH i2c: E2 [22:17:35]MH_I2C_Read... [22:17:35]Read from MH i2c: E2 62 00 [22:17:35]MH_I2C_Read... [22:17:35]Read from MH i2c: E2 62 00 90 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 EF E1 01 00 0E 04 04 00 43 01 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 59 [22:17: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 EF E1 01 00 0E 04 04 00 43 01 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 [22:17:35]wFMCommunicate OK [22:17:35]SAM_PROTO_GetFieldsCounters done [22:17:35]requested_item shift.num is exist - process it [22:17:35]requested_item shift.opened is exist - process it [22:17:35]req_shift_opened [22:17:35]FM_GetShiftState [22:17:35]SAM_PROTO_GetShiftState [22:17:35]wFMCommunicate request_size=4 [22:17:35]MH_SAM_APDU [22:17:35]CAPDU: 80 13 01 00 [22:17:35]Write to MH i2c: E2 08 00 91 55 80 13 01 00 00 00 00 00 63 [22:17:35]Write i2c OK [22:17:35]MH_I2C_Read... [22:17:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:17:35]Read from MH i2c: E2 [22:17:35]MH_I2C_Read... [22:17:35]Read from MH i2c: E2 0E 00 [22:17:35]MH_I2C_Read... [22:17:35]Read from MH i2c: E2 0E 00 91 55 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 25 [22:17:35]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [22:17:35]wFMCommunicate OK [22:17:35]SAM_PROTO_GetShiftState done [22:17:35]FM_GetShiftState done [22:17:35]req_shift_opened done [22:17:35]requested_item shift.open_date is exist - process it [22:17:35]req_shift_open_date [22:17:35]req_shift_open_date done [22:17:35]produce_requested_data done [22:17:35]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123375,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [22:17:35]process_action_free print_text [22:17:35]json_value_free [22:17:35]json_value_free done [22:17:35]process_json_proto returns [22:17:35]Send response to host [22:17:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123375,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [22:17:35]free response buf [22:17:35]execute_script done [22:17:35]execute_script returns [22:17:35]free content buf [22:17:35]Sock 7.Close socket [22:17:35]Sock 7.Thread stoped [22:17:37]OFD Sender: No OFD packet to send [22:17:42]OFD Sender: No OFD packet to send [22:17:47]OFD Sender: No OFD packet to send [22:17:52]OFD Sender: No OFD packet to send [22:17:57]OFD Sender: No OFD packet to send [22:18:02]OFD Sender: No OFD packet to send [22:18:07]OFD Sender: No OFD packet to send [22:18:12]OFD Sender: No OFD packet to send [22:18:17]OFD Sender: No OFD packet to send [22:18:22]OFD Sender: No OFD packet to send [22:18:27]OFD Sender: No OFD packet to send [22:18:32]OFD Sender: No OFD packet to send [22:18:37]OFD Sender: No OFD packet to send [22:18:42]OFD Sender: No OFD packet to send [22:18:47]OFD Sender: No OFD packet to send [22:18:52]OFD Sender: No OFD packet to send [22:18:57]OFD Sender: No OFD packet to send [22:19:02]OFD Sender: No OFD packet to send [22:19:07]OFD Sender: No OFD packet to send [22:19:12]OFD Sender: No OFD packet to send [22:19:17]OFD Sender: No OFD packet to send [22:19:22]OFD Sender: No OFD packet to send [22:19:27]OFD Sender: No OFD packet to send [22:19:32]OFD Sender: No OFD packet to send [22:19:37]OFD Sender: No OFD packet to send [22:19:42]OFD Sender: No OFD packet to send [22:19:47]OFD Sender: No OFD packet to send [22:19:52]OFD Sender: No OFD packet to send [22:19:57]OFD Sender: No OFD packet to send [22:20:02]OFD Sender: No OFD packet to send [22:20:07]OFD Sender: No OFD packet to send [22:20:12]OFD Sender: No OFD packet to send [22:20:17]OFD Sender: No OFD packet to send [22:20:22]OFD Sender: No OFD packet to send [22:20:27]OFD Sender: No OFD packet to send [22:20:32]OFD Sender: No OFD packet to send [22:20:37]OFD Sender: No OFD packet to send [22:20:42]OFD Sender: No OFD packet to send [22:20:47]OFD Sender: No OFD packet to send [22:20:52]OFD Sender: No OFD packet to send [22:20:57]OFD Sender: No OFD packet to send [22:21:02]OFD Sender: No OFD packet to send [22:21:07]OFD Sender: No OFD packet to send [22:21:12]OFD Sender: No OFD packet to send [22:21:17]OFD Sender: No OFD packet to send [22:21:22]OFD Sender: No OFD packet to send [22:21:27]OFD Sender: No OFD packet to send [22:21:32]OFD Sender: No OFD packet to send [22:21:37]OFD Sender: No OFD packet to send [22:21:42]OFD Sender: No OFD packet to send [22:21:47]OFD Sender: No OFD packet to send [22:21:52]OFD Sender: No OFD packet to send [22:21:57]OFD Sender: No OFD packet to send [22:22:02]OFD Sender: No OFD packet to send [22:22:07]OFD Sender: No OFD packet to send [22:22:12]OFD Sender: No OFD packet to send [22:22:17]OFD Sender: No OFD packet to send [22:22:22]OFD Sender: No OFD packet to send [22:22:27]OFD Sender: No OFD packet to send [22:22:28]accept exits with 9 [22:22:28]New connection [22:22:28]New thread 3067395428 created [22:22:28]Thread 3067252068 joined [22:22:28]Waiting for new connection... [22:22:28] Sock 9.Parse request [22:22:28]Sock 9.Check first char [22:22:28]Sock 9.First char is OK [22:22:28]request: POST /json_proto HTTP/1.0 [22:22:28]Method: POST [22:22:28]URL: /json_proto [22:22:28]Method is POST - this is cgi request [22:22:28]url: /json_proto [22:22:28]query_string will be loaded in cgi processing [22:22:28]execute_cgi json_proto POST (null) [22:22:28]execute_cgi path=json_proto method=POST [22:22:28]POST find Content-Length [22:22:28]Host: 172.17.48.197:8080 [22:22:28]Content-Length: 807 [22:22:28]Content-Type: application/json [22:22:28] [22:22:28]POST finish read [22:22:28]Found Content-Length = 807 [22:22:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106363", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 10.510, "sum" : 650.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 650.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:22:28]execute_script... [22:22: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)1106363", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 10.510, "sum" : 650.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 650.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:22:28]POST & json_proto [22:22:28]process_json_proto [22:22:28]json parsed OK: [22:22:28]protocol is kg_v1.0 [22:22:28]action value=close_receipt [22:22:28]process_action close_receipt [22:22:28]cmd_close_receipt [22:22:28]MH_GetDate [22:22:28]Write to MH i2c: F0 00 00 92 55 D6 [22:22:28]Write i2c OK [22:22:28]MH_I2C_Read... [22:22:28]Read from MH i2c: F0 [22:22:28]MH_I2C_Read... [22:22:28]Read from MH i2c: F0 09 00 [22:22:28]MH_I2C_Read... [22:22:28]Read from MH i2c: F0 09 00 92 55 00 2A F8 E4 65 6C AF E3 65 AD [22:22:28]GetLastDocTimeStamp 1709504159 [22:22:28]current date 1709504554 [22:22:28]FM_GetShiftState [22:22:28]SAM_PROTO_GetShiftState [22:22:28]wFMCommunicate request_size=4 [22:22:28]MH_SAM_APDU [22:22:28]CAPDU: 80 13 01 00 [22:22:28]Write to MH i2c: E2 08 00 93 55 80 13 01 00 00 00 00 00 65 [22:22:28]Write i2c OK [22:22:28]MH_I2C_Read... [22:22:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:22:28]Read from MH i2c: E2 [22:22:28]MH_I2C_Read... [22:22:28]Read from MH i2c: E2 0E 00 [22:22:28]MH_I2C_Read... [22:22:28]Read from MH i2c: E2 0E 00 93 55 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 27 [22:22:28]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [22:22:28]wFMCommunicate OK [22:22:28]SAM_PROTO_GetShiftState done [22:22:28]FM_GetShiftState done [22:22:28]opened in 1709425579 [22:22:28]opened+sec_in_day 1709511979 [22:22:28]quantity*price = 65056 [22:22:28]sum+1 = 65058 [22:22:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 650.57 НСП 1% : 5.76 НДС 12% : 69.09 Наличными: 0.00 Безнал.: 650.57 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 233 03.03.2024 22:22 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874798 ФД: 123376 ФПД: 70818035061400 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T222234&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123376&fm=70818035061400&tin=02508201610067®Number=0000000000090573&sum=65057 [22:22:30]StoreToDocumentArchive [22:22:30]shift 323 fd 123376 [22:22:30]save to /storage/0323/doc_00123376 [22:22:30]save last doc name /storage/0323/doc_00123376 to /storage/kkm_last_doc_name [22:22:30]save OK [22:22:30]Clear old archive folders... [22:22:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:22:30]tlvbuf is 00E0D3D0 [22:22:30]SAM_PROTO_ClearQueue [22:22:30]wFMCommunicate request_size=4 [22:22:30]MH_SAM_APDU [22:22:30]CAPDU: 80 09 00 00 [22:22:30]Write to MH i2c: E2 08 00 A0 55 80 09 00 00 00 00 00 00 67 [22:22:30]Write i2c OK [22:22:30]MH_I2C_Read... [22:22:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:22:30]Read from MH i2c: E2 [22:22:30]MH_I2C_Read... [22:22:30]Read from MH i2c: E2 03 00 [22:22:30]MH_I2C_Read... [22:22:30]Read from MH i2c: E2 03 00 A0 55 00 90 00 69 [22:22:30]RAPDU: 90 00 [22:22:30]wFMCommunicate OK [22:22:30]SAM_PROTO_ClearQueue done [22:22:30]KKMCreateOFDPacket [22:22:30]OFDProtocolAddRootSTLVToBuf [22:22:30]FM_MakeSignedData [22:22:30]FM_MakeSignedData [22:22:30]SAM_PROTO_SignData [22:22:30]wFMCommunicate request_size=4 [22:22:30]MH_SAM_APDU [22:22:30]CAPDU: 80 0D 01 02 [22:22:30]Write to MH i2c: E2 08 00 A1 55 80 0D 01 02 00 00 00 00 6F [22:22:30]Write i2c OK [22:22:30]MH_I2C_Read... [22:22:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:22:30]Read from MH i2c: E2 [22:22:30]MH_I2C_Read... [22:22:30]Read from MH i2c: E2 03 00 [22:22:30]MH_I2C_Read... [22:22:30]Read from MH i2c: E2 03 00 A1 55 00 90 00 6A [22:22:30]RAPDU: 90 00 [22:22:30]wFMCommunicate OK [22:22:30]wFMCommunicate request_size=255 [22:22:30]MH_SAM_APDU [22:22:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 29 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 21 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 2A F8 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 F0 E1 01 00 35 04 06 00 40 [22:22:30]Write to MH i2c: E2 02 01 A2 55 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 29 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 21 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 2A F8 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 F0 E1 01 00 35 04 06 00 40 00 00 60 [22:22:30]Write i2c OK [22:22:30]MH_I2C_Read... [22:22:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:22:30]Read from MH i2c: E2 [22:22:30]MH_I2C_Read... [22:22:30]Read from MH i2c: E2 03 00 [22:22:30]MH_I2C_Read... [22:22:30]Read from MH i2c: E2 03 00 A2 55 00 90 00 6B [22:22:30]RAPDU: 90 00 [22:22:30]wFMCommunicate OK [22:22:30]wFMCommunicate request_size=10 [22:22:30]MH_SAM_APDU [22:22:30]CAPDU: 80 0D 02 02 05 68 9B D2 D2 98 [22:22:30]Write to MH i2c: E2 0D 00 A3 55 80 0D 02 02 05 00 68 9B D2 D2 98 00 00 BB [22:22:30]Write i2c OK [22:22:30]MH_I2C_Read... [22:22:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:22:30]Read from MH i2c: E2 [22:22:30]MH_I2C_Read... [22:22:30]Read from MH i2c: E2 03 00 [22:22:30]MH_I2C_Read... [22:22:30]Read from MH i2c: E2 03 00 A3 55 00 90 00 6C [22:22:30]RAPDU: 90 00 [22:22:30]wFMCommunicate OK [22:22:30]wFMCommunicate request_size=4 [22:22:30]MH_SAM_APDU [22:22:30]CAPDU: 80 0D 03 02 [22:22:30]Write to MH i2c: E2 08 00 A4 55 80 0D 03 02 00 00 00 00 74 [22:22:30]Write i2c OK [22:22:30]MH_I2C_Read... [22:22:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:22:30]Read from MH i2c: E2 [22:22:30]MH_I2C_Read... [22:22:30]Read from MH i2c: E2 0B 00 [22:22:30]MH_I2C_Read... [22:22:30]Read from MH i2c: E2 0B 00 A4 55 00 ED 68 61 F0 7E 77 2D 15 90 00 52 [22:22:30]RAPDU: ED 68 61 F0 7E 77 2D 15 90 00 [22:22:30]wFMCommunicate OK [22:22:30]SAM_PROTO_SignData done [22:22:30]FM_MakeSignedData done [22:22:30]CreateOFDProtocolMessage [22:22:30]wFMCommunicate request_size=4 [22:22:30]MH_SAM_APDU [22:22:30]CAPDU: 80 11 00 00 [22:22:30]Write to MH i2c: E2 08 00 A5 55 80 11 00 00 00 00 00 00 74 [22:22:30]Write i2c OK [22:22:30]MH_I2C_Read... [22:22:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:22:30]Read from MH i2c: E2 [22:22:30]MH_I2C_Read... [22:22:30]Read from MH i2c: E2 17 00 [22:22:30]MH_I2C_Read... [22:22:30]Read from MH i2c: E2 17 00 A5 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 D2 [22:22:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [22:22:30]wFMCommunicate OK [22:22:30]CreateOFDProtocolMessage done [22:22:30]OFDSenderStorePacket 123376 [22:22:30]StoreOFDPacket docnum=123376 [22:22:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 72 F1 07 01 3A 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 29 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 21 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 2A F8 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 F0 E1 01 00 35 04 06 00 40 68 9B D2 D2 98 ED 68 61 F0 7E 77 2D 15 [22:22:30]CheckFolder [22:22:30]dirname=/storage/ofd_packets [22:22:30]CheckFolder done [22:22:30]ProducePacketName [22:22:30]name=ofd_packets/00123376 [22:22:30]NVStorageSaveData ofd_packets/00123376 [22:22:30]File name is /storage/ofd_packets/00123376 [22:22:30]Write 301 bytes [22:22:30]NVStorageSaveData done [22:22:30]OFDSenderStorePacket done [22:22:30]KKMCreateOFDPacket done [22:22:30]NVStorageSaveData kkm_last_timestamp [22:22:30]File name is /storage/kkm_last_timestamp [22:22:30]Write 4 bytes [22:22:30]NVStorageSaveData done [22:22:30]ExternCall_PrintAddStr [22:22:30]wPrintStart [22:22:30]Write to MH i2c: 01 00 00 A6 55 FB [22:22:30]Write i2c OK [22:22:30]MH_I2C_Read... [22:22:30]Read from MH i2c: 01 [22:22:30]MH_I2C_Read... [22:22:30]Read from MH i2c: 01 07 00 [22:22:30]MH_I2C_Read... [22:22:30]Read from MH i2c: 01 07 00 A6 55 00 00 00 00 00 FF 0F 10 [22:22:30]RasterBufferAndPrint [22:22:30]line Счет N : (1)1106363 [22:22:30]line ИНН: 02508201610067 [22:22:30]line Контрольно-Кассовый Чек [22:22:30]line ПРОДАЖА [22:22:30]line ТРК (МРК, ГНК) : 11 [22:22:30]line Товар: 2710124130 [22:22:30]line Аи-92-К-5 [22:22:30]line 10.510 * 61.90 [22:22:30]line = 650.57 [22:22:30]line НДС 12% НСП 1% [22:22:30]line > о реализуемом товаре [22:22:30]line ИТОГО: 650.57 [22:22:30]line НСП 1% : 5.76 [22:22:30]line НДС 12% : 69.09 [22:22:30]line Наличными: 0.00 [22:22:30]line Безнал.: 650.57 [22:22:30]line Место: АЗС № 25 "Партнер Нефть" [22:22:30]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [22:22:30]line СНО: Общий режим [22:22:30]line Чек 233 03.03.2024 22:22 [22:22:30]line Смена: 323 ФФД: 1.0 [22:22:30]line ЗНМ: 0300000019 [22:22:30]line РНМ: 0000000000090573 [22:22:30]line Версия ККМ: 001 [22:22:30]line Платежная система: О! деньги [22:22:30]line ФМ: 0000000000874798 [22:22:30]line ФД: 123376 [22:22:30]line ФПД: 70818035061400 [22:22:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T222234&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123376&fm=70818035061400&tin=02508201610067®Number=0000000000090573&sum=65057 [22:22:30]written 0, free lines is 4095 [22:22:30]OFD Sender: Processing packet 123376 [packets to send 112, broken 111] [22:22:30]ProducePacketName [22:22:30]name=ofd_packets/00123376 [22:22:30]OFD Sender: To server: pG, [22:22:30]CommunicateWithHost lk.salyk.kg:30040 [22:22:30]ConnectInit lk.salyk.kg [22:22:30]Connected sock=10 [22:22: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 37 39 38 0F 01 00 00 72 F1 07 01 3A 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 29 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 21 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 2A F8 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 F0 E1 01 00 35 04 06 00 40 68 9B D2 D2 98 ED 68 61 F0 7E 77 2D 15 [22:22:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 20 6A 47 00 1A A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 F0 E1 01 00 F4 03 04 00 54 A4 E4 65 B6 04 01 00 00 7C 9B 28 BE FF A2 41 90 [22:22:30]CommunicateWithHost err = 0 [22:22:30]CheckOFDResponse [22:22:30]1017 (14) - 77093643461234 [22:22:30]1041 (16) - 0000000000874798 [22:22:30]1040 (4) - 123376 [22:22:30]1012 (4) - 03.03.2024 16:24 [22:22:30]1206 (1) - 0 [22:22:30]OFD Sender: Remove packet 123376 [22:22:30]ProducePacketName [22:22:30]name=ofd_packets/00123376 [22:22:30]NVStorageDeleteData [22:22:31]Write to MH i2c: 01 00 00 D0 55 25 [22:22:31]Write i2c OK [22:22:31]MH_I2C_Read... [22:22:31]Read from MH i2c: 01 [22:22:31]MH_I2C_Read... [22:22:31]Read from MH i2c: 01 07 00 [22:22:31]MH_I2C_Read... [22:22:31]Read from MH i2c: 01 07 00 D0 55 00 00 00 00 00 07 0D 40 [22:22:31]RasterBufferAndPrint [22:22:31]line [22:22:31]line [22:22:31]line [22:22:31]line [22:22:31]line [22:22:31]written 0, free lines is 3343 [22:22:31]MH_Cut [22:22:31]Write to MH i2c: D1 01 00 D7 55 01 FE [22:22:31]Write i2c OK [22:22:31]MH_I2C_Read... [22:22:31]Read from MH i2c: D1 [22:22:31]MH_I2C_Read... [22:22:31]Read from MH i2c: D1 01 00 [22:22:31]MH_I2C_Read... [22:22:31]Read from MH i2c: D1 01 00 D7 55 00 FD [22:22:31]Write to MH i2c: 01 00 00 D8 55 2D [22:22:31]Write i2c OK [22:22:31]MH_I2C_Read... [22:22:31]OFD Sender: No OFD packet to send [22:22:31]*** Cut start [22:22:31]*** Purtial cut [22:22:31]*** Stage 1: CUTSNS_PIN = 1 [22:22:33]Read from MH i2c: 01 [22:22:33]MH_I2C_Read... [22:22:33]*** Stop cut motor [22:22:33]*** Cut end [22:22:33]Read from MH i2c: 01 07 00 [22:22:33]MH_I2C_Read... [22:22:33]Read from MH i2c: 01 07 00 D8 55 00 00 00 00 00 FF 0F 42 [22:22:33]process_action close_receipt done [22:22:33]requested_data is exist [22:22:33]produce_requested_data [22:22:33]requested_item fm.sn is exist - process it [22:22:33]wFMCommunicate request_size=4 [22:22:33]MH_SAM_APDU [22:22:33]CAPDU: 80 11 00 00 [22:22:33]Write to MH i2c: E2 08 00 D9 55 80 11 00 00 00 00 00 00 A8 [22:22:33]Write i2c OK [22:22:33]MH_I2C_Read... [22:22:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:22:33]Read from MH i2c: E2 [22:22:33]MH_I2C_Read... [22:22:33]Read from MH i2c: E2 17 00 [22:22:33]MH_I2C_Read... [22:22:33]Read from MH i2c: E2 17 00 D9 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 06 [22:22:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [22:22:33]wFMCommunicate OK [22:22:33]requested_item fd.num is exist - process it [22:22:33]SAM_PROTO_GetFieldsCounters [22:22:33]wFMCommunicate request_size=4 [22:22:33]MH_SAM_APDU [22:22:33]CAPDU: 80 13 00 00 [22:22:33]Write to MH i2c: E2 08 00 DA 55 80 13 00 00 00 00 00 00 AB [22:22:33]Write i2c OK [22:22:33]MH_I2C_Read... [22:22:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:22:33]Read from MH i2c: E2 [22:22:33]MH_I2C_Read... [22:22:33]Read from MH i2c: E2 62 00 [22:22:33]MH_I2C_Read... [22:22:33]Read from MH i2c: E2 62 00 DA 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 F0 E1 01 00 0E 04 04 00 43 01 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 A7 [22:22: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 F0 E1 01 00 0E 04 04 00 43 01 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 [22:22:33]wFMCommunicate OK [22:22:33]SAM_PROTO_GetFieldsCounters done [22:22:33]requested_item shift.num is exist - process it [22:22:33]requested_item shift.opened is exist - process it [22:22:33]req_shift_opened [22:22:33]FM_GetShiftState [22:22:33]SAM_PROTO_GetShiftState [22:22:33]wFMCommunicate request_size=4 [22:22:33]MH_SAM_APDU [22:22:33]CAPDU: 80 13 01 00 [22:22:33]Write to MH i2c: E2 08 00 DB 55 80 13 01 00 00 00 00 00 AD [22:22:33]Write i2c OK [22:22:33]MH_I2C_Read... [22:22:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:22:33]Read from MH i2c: E2 [22:22:33]MH_I2C_Read... [22:22:33]Read from MH i2c: E2 0E 00 [22:22:33]MH_I2C_Read... [22:22:33]Read from MH i2c: E2 0E 00 DB 55 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 6F [22:22:33]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [22:22:33]wFMCommunicate OK [22:22:33]SAM_PROTO_GetShiftState done [22:22:33]FM_GetShiftState done [22:22:33]req_shift_opened done [22:22:33]requested_item shift.open_date is exist - process it [22:22:33]req_shift_open_date [22:22:33]req_shift_open_date done [22:22:33]produce_requested_data done [22:22:33]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123376,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [22:22:33]process_action_free close_receipt [22:22:33]json_value_free [22:22:33]json_value_free done [22:22:33]process_json_proto returns [22:22:33]Send response to host [22:22:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123376,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [22:22:33]free response buf [22:22:33]execute_script done [22:22:33]execute_script returns [22:22:33]free content buf [22:22:33]Sock 9.Close socket [22:22:33]Sock 9.Thread stoped [22:22:36]OFD Sender: No OFD packet to send [22:22:41]OFD Sender: No OFD packet to send [22:22:46]OFD Sender: No OFD packet to send [22:22:51]OFD Sender: No OFD packet to send [22:22:56]OFD Sender: No OFD packet to send [22:23:01]OFD Sender: No OFD packet to send [22:23:06]OFD Sender: No OFD packet to send [22:23:11]OFD Sender: No OFD packet to send [22:23:16]OFD Sender: No OFD packet to send [22:23:21]OFD Sender: No OFD packet to send [22:23:26]OFD Sender: No OFD packet to send [22:23:31]OFD Sender: No OFD packet to send [22:23:36]OFD Sender: No OFD packet to send [22:23:41]OFD Sender: No OFD packet to send [22:23:46]OFD Sender: No OFD packet to send [22:23:51]OFD Sender: No OFD packet to send [22:23:56]OFD Sender: No OFD packet to send [22:24:01]OFD Sender: No OFD packet to send [22:24:06]OFD Sender: No OFD packet to send [22:24:11]OFD Sender: No OFD packet to send [22:24:16]OFD Sender: No OFD packet to send [22:24:21]OFD Sender: No OFD packet to send [22:24:23]int [22:24:23]Write to MH i2c: 01 00 00 DC 55 31 [22:24:23]*** FLAG_PRN_KEY set [22:24:23]Write i2c OK [22:24:23]MH_I2C_Read... [22:24:23]Read from MH i2c: 01 [22:24:23]MH_I2C_Read... [22:24:23]Read from MH i2c: 01 07 00 [22:24:23]MH_I2C_Read... [22:24:23]Read from MH i2c: 01 07 00 DC 55 00 08 00 00 00 FF 0F 4E [22:24:23]state=0 [22:24:23]Key pressed [22:24:23]Feed [22:24:23]Write to MH i2c: D8 00 00 DD 55 09 [22:24:23]Write i2c OK [22:24:23]MH_I2C_Read... [22:24:23]Read from MH i2c: D8 [22:24:23]MH_I2C_Read... [22:24:23]Read from MH i2c: D8 01 00 [22:24:23]MH_I2C_Read... [22:24:23]Read from MH i2c: D8 01 00 DD 55 00 0A [22:24:23]int [22:24:23]Write to MH i2c: 01 00 00 DE 55 33 [22:24:23]Write i2c OK [22:24:23]MH_I2C_Read... [22:24:23]Read from MH i2c: 01 [22:24:23]MH_I2C_Read... [22:24:23]Read from MH i2c: 01 07 00 [22:24:23]MH_I2C_Read... [22:24:23]Read from MH i2c: 01 07 00 DE 55 00 48 00 00 00 3C 00 BE [22:24:23]state=2 [22:24:23]Key pressed [22:24:23]int [22:24:23]Write to MH i2c: 01 00 00 DF 55 34 [22:24:23]*** FLAG_PRN_KEY reset [22:24:23]Write i2c OK [22:24:23]MH_I2C_Read... [22:24:23]Read from MH i2c: 01 [22:24:23]MH_I2C_Read... [22:24:23]Read from MH i2c: 01 07 00 [22:24:23]MH_I2C_Read... [22:24:23]Read from MH i2c: 01 07 00 DF 55 00 00 00 00 00 F6 0F 40 [22:24:23]state=2 [22:24:23]Stop feed [22:24:23]int [22:24:23]Write to MH i2c: 01 00 00 E0 55 35 [22:24:23]*** FLAG_PRN_KEY set [22:24:23]Write i2c OK [22:24:23]MH_I2C_Read... [22:24:23]Read from MH i2c: 01 [22:24:23]MH_I2C_Read... [22:24:23]Read from MH i2c: 01 07 00 [22:24:23]MH_I2C_Read... [22:24:23]Read from MH i2c: 01 07 00 E0 55 00 08 00 00 00 FF 0F 52 [22:24:23]state=0 [22:24:23]Key pressed [22:24:23]Feed [22:24:23]Write to MH i2c: D8 00 00 E1 55 0D [22:24:23]Write i2c OK [22:24:23]MH_I2C_Read... [22:24:23]Read from MH i2c: D8 [22:24:23]MH_I2C_Read... [22:24:23]Read from MH i2c: D8 01 00 [22:24:23]MH_I2C_Read... [22:24:23]Read from MH i2c: D8 01 00 E1 55 00 0E [22:24:23]int [22:24:23]Write to MH i2c: 01 00 00 E2 55 37 [22:24:23]Write i2c OK [22:24:23]MH_I2C_Read... [22:24:23]Read from MH i2c: 01 [22:24:23]MH_I2C_Read... [22:24:23]Read from MH i2c: 01 07 00 [22:24:23]MH_I2C_Read... [22:24:23]Read from MH i2c: 01 07 00 E2 55 00 48 00 00 00 3C 00 C2 [22:24:23]state=2 [22:24:23]Key pressed [22:24:23]int [22:24:23]Write to MH i2c: 01 00 00 E3 55 38 [22:24:23]*** FLAG_PRN_KEY reset [22:24:23]Write i2c OK [22:24:23]MH_I2C_Read... [22:24:23]Read from MH i2c: 01 [22:24:23]MH_I2C_Read... [22:24:23]Read from MH i2c: 01 07 00 [22:24:23]MH_I2C_Read... [22:24:23]Read from MH i2c: 01 07 00 E3 55 00 00 00 00 00 F5 0F 43 [22:24:23]state=2 [22:24:23]Stop feed [22:24:23]int [22:24:23]Write to MH i2c: 01 00 00 E4 55 39 [22:24:23]*** FLAG_PRN_KEY set [22:24:23]Write i2c OK [22:24:23]MH_I2C_Read... [22:24:23]Read from MH i2c: 01 [22:24:23]MH_I2C_Read... [22:24:23]Read from MH i2c: 01 07 00 [22:24:23]MH_I2C_Read... [22:24:23]Read from MH i2c: 01 07 00 E4 55 00 08 00 00 00 FF 0F 56 [22:24:23]state=0 [22:24:23]Key pressed [22:24:23]Feed [22:24:23]Write to MH i2c: D8 00 00 E5 55 11 [22:24:23]Write i2c OK [22:24:23]MH_I2C_Read... [22:24:23]Read from MH i2c: D8 [22:24:23]MH_I2C_Read... [22:24:23]Read from MH i2c: D8 01 00 [22:24:23]MH_I2C_Read... [22:24:23]Read from MH i2c: D8 01 00 E5 55 00 12 [22:24:23]int [22:24:23]Write to MH i2c: 01 00 00 E6 55 3B [22:24:23]Write i2c OK [22:24:23]MH_I2C_Read... [22:24:23]Read from MH i2c: 01 [22:24:23]MH_I2C_Read... [22:24:23]Read from MH i2c: 01 07 00 [22:24:23]MH_I2C_Read... [22:24:23]Read from MH i2c: 01 07 00 E6 55 00 48 00 00 00 3C 00 C6 [22:24:23]state=2 [22:24:23]Key pressed [22:24:23]int [22:24:23]Write to MH i2c: 01 00 00 E7 55 3C [22:24:23]*** FLAG_PRN_KEY reset [22:24:23]Write i2c OK [22:24:23]MH_I2C_Read... [22:24:23]Read from MH i2c: 01 [22:24:23]MH_I2C_Read... [22:24:23]Read from MH i2c: 01 07 00 [22:24:23]MH_I2C_Read... [22:24:23]Read from MH i2c: 01 07 00 E7 55 00 00 00 00 00 F5 0F 47 [22:24:23]state=2 [22:24:23]Stop feed [22:24:24]int [22:24:24]Write to MH i2c: 01 00 00 E8 55 3D [22:24:24]*** FLAG_PRN_KEY set [22:24:24]Write i2c OK [22:24:24]MH_I2C_Read... [22:24:24]Read from MH i2c: 01 [22:24:24]MH_I2C_Read... [22:24:24]Read from MH i2c: 01 07 00 [22:24:24]MH_I2C_Read... [22:24:24]Read from MH i2c: 01 07 00 E8 55 00 08 00 00 00 FF 0F 5A [22:24:24]state=0 [22:24:24]Key pressed [22:24:24]Feed [22:24:24]Write to MH i2c: D8 00 00 E9 55 15 [22:24:24]Write i2c OK [22:24:24]MH_I2C_Read... [22:24:24]Read from MH i2c: D8 [22:24:24]MH_I2C_Read... [22:24:24]Read from MH i2c: D8 01 00 [22:24:24]MH_I2C_Read... [22:24:24]Read from MH i2c: D8 01 00 E9 55 00 16 [22:24:24]int [22:24:24]Write to MH i2c: 01 00 00 EA 55 3F [22:24:24]Write i2c OK [22:24:24]MH_I2C_Read... [22:24:24]Read from MH i2c: 01 [22:24:24]MH_I2C_Read... [22:24:24]Read from MH i2c: 01 07 00 [22:24:24]MH_I2C_Read... [22:24:24]Read from MH i2c: 01 07 00 EA 55 00 48 00 00 00 3C 00 CA [22:24:24]state=2 [22:24:24]Key pressed [22:24:24]int [22:24:24]Write to MH i2c: 01 00 00 EB 55 40 [22:24:24]*** FLAG_PRN_KEY reset [22:24:24]Write i2c OK [22:24:24]MH_I2C_Read... [22:24:24]Read from MH i2c: 01 [22:24:24]MH_I2C_Read... [22:24:24]Read from MH i2c: 01 07 00 [22:24:24]MH_I2C_Read... [22:24:24]Read from MH i2c: 01 07 00 EB 55 00 00 00 00 00 F5 0F 4B [22:24:24]state=2 [22:24:24]Stop feed [22:24:26]OFD Sender: No OFD packet to send [22:24:31]OFD Sender: No OFD packet to send [22:24:36]OFD Sender: No OFD packet to send [22:24:41]OFD Sender: No OFD packet to send [22:24:46]OFD Sender: No OFD packet to send [22:24:51]OFD Sender: No OFD packet to send [22:24:56]OFD Sender: No OFD packet to send [22:25:01]OFD Sender: No OFD packet to send [22:25:06]OFD Sender: No OFD packet to send [22:25:11]OFD Sender: No OFD packet to send [22:25:16]OFD Sender: No OFD packet to send [22:25:21]OFD Sender: No OFD packet to send [22:25:26]OFD Sender: No OFD packet to send [22:25:31]OFD Sender: No OFD packet to send [22:25:36]OFD Sender: No OFD packet to send [22:25:41]OFD Sender: No OFD packet to send [22:25:46]OFD Sender: No OFD packet to send [22:25:51]OFD Sender: No OFD packet to send [22:25:56]OFD Sender: No OFD packet to send [22:26:01]OFD Sender: No OFD packet to send [22:26:06]OFD Sender: No OFD packet to send [22:26:11]OFD Sender: No OFD packet to send [22:26:12]accept exits with 7 [22:26:12]New connection [22:26:12]New thread 3067252068 created [22:26:12]Thread 3067395428 joined [22:26:12]Waiting for new connection... [22:26:12] Sock 7.Parse request [22:26:12]Sock 7.Check first char [22:26:12]Sock 7.First char is OK [22:26:12]request: POST /json_proto HTTP/1.0 [22:26:12]Method: POST [22:26:12]URL: /json_proto [22:26:12]Method is POST - this is cgi request [22:26:12]url: /json_proto [22:26:12]query_string will be loaded in cgi processing [22:26:12]execute_cgi json_proto POST (null) [22:26:12]execute_cgi path=json_proto method=POST [22:26:12]POST find Content-Length [22:26:12]Host: 172.17.48.197:8080 [22:26:12]Content-Length: 678 [22:26:12]Content-Type: application/json [22:26:12] [22:26:12]POST finish read [22:26:12]Found Content-Length = 678 [22:26:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106365", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 3.240, "sum" : 200.56, "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:26:12]execute_script... [22:26:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106365", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 3.240, "sum" : 200.56, "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:26:12]POST & json_proto [22:26:12]process_json_proto [22:26:12]json parsed OK: [22:26:12]protocol is kg_v1.0 [22:26:12]action value=close_receipt [22:26:12]process_action close_receipt [22:26:12]cmd_close_receipt [22:26:12]MH_GetDate [22:26:12]Write to MH i2c: F0 00 00 EC 55 30 [22:26:12]Write i2c OK [22:26:12]MH_I2C_Read... [22:26:12]Read from MH i2c: F0 [22:26:12]MH_I2C_Read... [22:26:12]Read from MH i2c: F0 09 00 [22:26:12]MH_I2C_Read... [22:26:12]Read from MH i2c: F0 09 00 EC 55 00 09 F9 E4 65 6C AF E3 65 E7 [22:26:12]GetLastDocTimeStamp 1709504554 [22:26:12]current date 1709504777 [22:26:12]FM_GetShiftState [22:26:12]SAM_PROTO_GetShiftState [22:26:12]wFMCommunicate request_size=4 [22:26:12]MH_SAM_APDU [22:26:12]CAPDU: 80 13 01 00 [22:26:12]Write to MH i2c: E2 08 00 ED 55 80 13 01 00 00 00 00 00 BF [22:26:12]Write i2c OK [22:26:12]MH_I2C_Read... [22:26:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:26:12]Read from MH i2c: E2 [22:26:12]MH_I2C_Read... [22:26:12]Read from MH i2c: E2 0E 00 [22:26:12]MH_I2C_Read... [22:26:12]Read from MH i2c: E2 0E 00 ED 55 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 81 [22:26:12]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [22:26:12]wFMCommunicate OK [22:26:12]SAM_PROTO_GetShiftState done [22:26:12]FM_GetShiftState done [22:26:12]opened in 1709425579 [22:26:12]opened+sec_in_day 1709511979 [22:26:12]quantity*price = 20055 [22:26:12]sum+1 = 20057 [22:26:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.30 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 234 03.03.2024 22:26 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123377 ФПД: 183007454851846 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T222617&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123377&fm=183007454851846&tin=02508201610067®Number=0000000000090573&sum=20000 [22:26:13]StoreToDocumentArchive [22:26:13]shift 323 fd 123377 [22:26:13]save to /storage/0323/doc_00123377 [22:26:13]save last doc name /storage/0323/doc_00123377 to /storage/kkm_last_doc_name [22:26:13]save OK [22:26:13]Clear old archive folders... [22:26:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:26:13]tlvbuf is 00DFC590 [22:26:13]SAM_PROTO_ClearQueue [22:26:13]wFMCommunicate request_size=4 [22:26:13]MH_SAM_APDU [22:26:13]CAPDU: 80 09 00 00 [22:26:13]Write to MH i2c: E2 08 00 FA 55 80 09 00 00 00 00 00 00 C1 [22:26:13]Write i2c OK [22:26:13]MH_I2C_Read... [22:26:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:26:13]Read from MH i2c: E2 [22:26:13]MH_I2C_Read... [22:26:13]Read from MH i2c: E2 03 00 [22:26:13]MH_I2C_Read... [22:26:13]Read from MH i2c: E2 03 00 FA 55 00 90 00 C3 [22:26:13]RAPDU: 90 00 [22:26:13]wFMCommunicate OK [22:26:13]SAM_PROTO_ClearQueue done [22:26:13]KKMCreateOFDPacket [22:26:13]OFDProtocolAddRootSTLVToBuf [22:26:13]FM_MakeSignedData [22:26:13]FM_MakeSignedData [22:26:13]SAM_PROTO_SignData [22:26:13]wFMCommunicate request_size=4 [22:26:13]MH_SAM_APDU [22:26:13]CAPDU: 80 0D 01 02 [22:26:13]Write to MH i2c: E2 08 00 FB 55 80 0D 01 02 00 00 00 00 C9 [22:26:13]Write i2c OK [22:26:13]MH_I2C_Read... [22:26:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:26:13]Read from MH i2c: E2 [22:26:13]MH_I2C_Read... [22:26:13]Read from MH i2c: E2 03 00 [22:26:13]MH_I2C_Read... [22:26:13]Read from MH i2c: E2 03 00 FB 55 00 90 00 C4 [22:26:13]RAPDU: 90 00 [22:26:13]wFMCommunicate OK [22:26:13]wFMCommunicate request_size=255 [22:26:13]MH_SAM_APDU [22:26:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 0C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 58 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 52 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 EA 00 00 00 F4 03 04 00 09 F9 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 F1 E1 01 00 35 04 06 00 A6 [22:26:13]Write to MH i2c: E2 02 01 FC 55 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 0C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 58 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 52 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 EA 00 00 00 F4 03 04 00 09 F9 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 F1 E1 01 00 35 04 06 00 A6 00 00 56 [22:26:13]Write i2c OK [22:26:13]MH_I2C_Read... [22:26:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:26:14]Read from MH i2c: E2 [22:26:14]MH_I2C_Read... [22:26:14]Read from MH i2c: E2 03 00 [22:26:14]MH_I2C_Read... [22:26:14]Read from MH i2c: E2 03 00 FC 55 00 90 00 C5 [22:26:14]RAPDU: 90 00 [22:26:14]wFMCommunicate OK [22:26:14]wFMCommunicate request_size=10 [22:26:14]MH_SAM_APDU [22:26:14]CAPDU: 80 0D 02 02 05 71 BE 56 73 06 [22:26:14]Write to MH i2c: E2 0D 00 FD 55 80 0D 02 02 05 00 71 BE 56 73 06 00 00 D4 [22:26:14]Write i2c OK [22:26:14]MH_I2C_Read... [22:26:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:26:14]Read from MH i2c: E2 [22:26:14]MH_I2C_Read... [22:26:14]Read from MH i2c: E2 03 00 [22:26:14]MH_I2C_Read... [22:26:14]Read from MH i2c: E2 03 00 FD 55 00 90 00 C6 [22:26:14]RAPDU: 90 00 [22:26:14]wFMCommunicate OK [22:26:14]wFMCommunicate request_size=4 [22:26:14]MH_SAM_APDU [22:26:14]CAPDU: 80 0D 03 02 [22:26:14]Write to MH i2c: E2 08 00 FE 55 80 0D 03 02 00 00 00 00 CE [22:26:14]Write i2c OK [22:26:14]MH_I2C_Read... [22:26:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:26:14]Read from MH i2c: E2 [22:26:14]MH_I2C_Read... [22:26:14]Read from MH i2c: E2 0B 00 [22:26:14]MH_I2C_Read... [22:26:14]Read from MH i2c: E2 0B 00 FE 55 00 41 33 31 F3 03 B9 7A 07 90 00 A4 [22:26:14]RAPDU: 41 33 31 F3 03 B9 7A 07 90 00 [22:26:14]wFMCommunicate OK [22:26:14]SAM_PROTO_SignData done [22:26:14]FM_MakeSignedData done [22:26:14]CreateOFDProtocolMessage [22:26:14]wFMCommunicate request_size=4 [22:26:14]MH_SAM_APDU [22:26:14]CAPDU: 80 11 00 00 [22:26:14]Write to MH i2c: E2 08 00 FF 55 80 11 00 00 00 00 00 00 CE [22:26:14]Write i2c OK [22:26:14]MH_I2C_Read... [22:26:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:26:14]Read from MH i2c: E2 [22:26:14]MH_I2C_Read... [22:26:14]Read from MH i2c: E2 17 00 [22:26:14]MH_I2C_Read... [22:26:14]Read from MH i2c: E2 17 00 FF 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 2C [22:26:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [22:26:14]wFMCommunicate OK [22:26:14]CreateOFDProtocolMessage done [22:26:14]OFDSenderStorePacket 123377 [22:26:14]StoreOFDPacket docnum=123377 [22:26:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 E3 1B 07 01 4C 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 0C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 58 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 52 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 EA 00 00 00 F4 03 04 00 09 F9 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 F1 E1 01 00 35 04 06 00 A6 71 BE 56 73 06 41 33 31 F3 03 B9 7A 07 [22:26:14]CheckFolder [22:26:14]dirname=/storage/ofd_packets [22:26:14]CheckFolder done [22:26:14]ProducePacketName [22:26:14]name=ofd_packets/00123377 [22:26:14]NVStorageSaveData ofd_packets/00123377 [22:26:14]File name is /storage/ofd_packets/00123377 [22:26:14]Write 301 bytes [22:26:14]NVStorageSaveData done [22:26:14]OFDSenderStorePacket done [22:26:14]KKMCreateOFDPacket done [22:26:14]NVStorageSaveData kkm_last_timestamp [22:26:14]File name is /storage/kkm_last_timestamp [22:26:14]Write 4 bytes [22:26:14]NVStorageSaveData done [22:26:14]ExternCall_PrintAddStr [22:26:14]wPrintStart [22:26:14]Write to MH i2c: 01 00 00 00 56 56 [22:26:14]Write i2c OK [22:26:14]MH_I2C_Read... [22:26:14]Read from MH i2c: 01 [22:26:14]MH_I2C_Read... [22:26:14]Read from MH i2c: 01 07 00 [22:26:14]MH_I2C_Read... [22:26:14]Read from MH i2c: 01 07 00 00 56 00 00 00 00 00 FF 0F 6B [22:26:14]RasterBufferAndPrint [22:26:14]line Счет N : (1)1106365 [22:26:14]line ИНН: 02508201610067 [22:26:14]line Контрольно-Кассовый Чек [22:26:14]line ПРОДАЖА [22:26:14]line ТРК (МРК, ГНК) : 52 [22:26:14]line Товар: 2710124130 [22:26:14]line Аи-92-К-5 [22:26:14]line 3.240 * 61.90 [22:26:14]line = 200.56 [22:26:14]line НДС 12% НСП 1% [22:26:14]line > о реализуемом товаре [22:26:14]line ОКРУГЛЕНИЕ: -0.56 [22:26:14]line ИТОГО: 200.00 [22:26:14]line Внесено: 200.00 [22:26:14]line СДАЧА: 0.00 [22:26:14]line НСП 1% : 1.77 [22:26:14]line НДС 12% : 21.30 [22:26:14]line Наличными: 200.00 [22:26:14]line Безнал.: 0.00 [22:26:14]line Место: АЗС № 25 "Партнер Нефть" [22:26:14]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [22:26:14]line СНО: Общий режим [22:26:14]line Чек 234 03.03.2024 22:26 [22:26:14]line Смена: 323 ФФД: 1.0 [22:26:14]line ЗНМ: 0300000019 [22:26:14]line РНМ: 0000000000090573 [22:26:14]line Версия ККМ: 001 [22:26:14]line ФМ: 0000000000874798 [22:26:14]line ФД: 123377 [22:26:14]line ФПД: 183007454851846 [22:26:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T222617&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123377&fm=183007454851846&tin=02508201610067®Number=0000000000090573&sum=20000 [22:26:14]OFD Sender: Processing packet 123377 [packets to send 112, broken 111] [22:26:14]ProducePacketName [22:26:14]name=ofd_packets/00123377 [22:26:14]OFD Sender: To server: pG, [22:26:14]CommunicateWithHost lk.salyk.kg:30040 [22:26:14]ConnectInit lk.salyk.kg [22:26:14]written 0, free lines is 4095 [22:26:14]Connected sock=10 [22:26: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 37 39 38 0F 01 00 00 E3 1B 07 01 4C 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 0C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 58 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 52 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 EA 00 00 00 F4 03 04 00 09 F9 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 F1 E1 01 00 35 04 06 00 A6 71 BE 56 73 06 41 33 31 F3 03 B9 7A 07 [22:26:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 18 45 47 00 FD 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 37 39 38 10 04 04 00 F1 E1 01 00 F4 03 04 00 34 A5 E4 65 B6 04 01 00 00 08 13 70 A2 5F E9 A9 0B [22:26:14]CommunicateWithHost err = 0 [22:26:14]CheckOFDResponse [22:26:14]1017 (14) - 77093643461234 [22:26:14]1041 (16) - 0000000000874798 [22:26:14]1040 (4) - 123377 [22:26:14]1012 (4) - 03.03.2024 16:28 [22:26:14]1206 (1) - 0 [22:26:14]OFD Sender: Remove packet 123377 [22:26:14]ProducePacketName [22:26:14]name=ofd_packets/00123377 [22:26:14]NVStorageDeleteData [22:26:14]Write to MH i2c: 01 00 00 2B 56 81 [22:26:14]Write i2c OK [22:26:14]MH_I2C_Read... [22:26:14]Read from MH i2c: 01 [22:26:14]MH_I2C_Read... [22:26:14]Read from MH i2c: 01 07 00 [22:26:14]MH_I2C_Read... [22:26:14]Read from MH i2c: 01 07 00 2B 56 00 00 00 00 00 F6 0C 8A [22:26:14]RasterBufferAndPrint [22:26:14]line [22:26:14]line [22:26:14]line [22:26:14]line [22:26:14]line [22:26:14]written 0, free lines is 3327 [22:26:15]MH_Cut [22:26:15]Write to MH i2c: D1 01 00 32 56 01 5A [22:26:15]Write i2c OK [22:26:15]MH_I2C_Read... [22:26:15]Read from MH i2c: D1 [22:26:15]MH_I2C_Read... [22:26:15]Read from MH i2c: D1 01 00 [22:26:15]MH_I2C_Read... [22:26:15]Read from MH i2c: D1 01 00 32 56 00 59 [22:26:15]Write to MH i2c: 01 00 00 33 56 89 [22:26:15]Write i2c OK [22:26:15]MH_I2C_Read... [22:26:15]OFD Sender: No OFD packet to send [22:26:15]*** Cut start [22:26:15]*** Purtial cut [22:26:15]*** Stage 1: CUTSNS_PIN = 1 [22:26:17]Read from MH i2c: 01 [22:26:17]MH_I2C_Read... [22:26:17]*** Stop cut motor [22:26:17]*** Cut end [22:26:17]Read from MH i2c: 01 07 00 [22:26:17]MH_I2C_Read... [22:26:17]Read from MH i2c: 01 07 00 33 56 00 00 00 00 00 FF 0F 9E [22:26:17]process_action close_receipt done [22:26:17]requested_data is exist [22:26:17]produce_requested_data [22:26:17]requested_item fm.sn is exist - process it [22:26:17]wFMCommunicate request_size=4 [22:26:17]MH_SAM_APDU [22:26:17]CAPDU: 80 11 00 00 [22:26:17]Write to MH i2c: E2 08 00 34 56 80 11 00 00 00 00 00 00 04 [22:26:17]Write i2c OK [22:26:17]MH_I2C_Read... [22:26:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:26:17]Read from MH i2c: E2 [22:26:17]MH_I2C_Read... [22:26:17]Read from MH i2c: E2 17 00 [22:26:17]MH_I2C_Read... [22:26:17]Read from MH i2c: E2 17 00 34 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 62 [22:26:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [22:26:17]wFMCommunicate OK [22:26:17]requested_item fd.num is exist - process it [22:26:17]SAM_PROTO_GetFieldsCounters [22:26:17]wFMCommunicate request_size=4 [22:26:17]MH_SAM_APDU [22:26:17]CAPDU: 80 13 00 00 [22:26:17]Write to MH i2c: E2 08 00 35 56 80 13 00 00 00 00 00 00 07 [22:26:17]Write i2c OK [22:26:17]MH_I2C_Read... [22:26:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:26:17]Read from MH i2c: E2 [22:26:17]MH_I2C_Read... [22:26:17]Read from MH i2c: E2 62 00 [22:26:17]MH_I2C_Read... [22:26:17]Read from MH i2c: E2 62 00 35 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 F1 E1 01 00 0E 04 04 00 43 01 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 07 [22:26: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 F1 E1 01 00 0E 04 04 00 43 01 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 [22:26:17]wFMCommunicate OK [22:26:17]SAM_PROTO_GetFieldsCounters done [22:26:17]requested_item shift.num is exist - process it [22:26:17]requested_item shift.opened is exist - process it [22:26:17]req_shift_opened [22:26:17]FM_GetShiftState [22:26:17]SAM_PROTO_GetShiftState [22:26:17]wFMCommunicate request_size=4 [22:26:17]MH_SAM_APDU [22:26:17]CAPDU: 80 13 01 00 [22:26:17]Write to MH i2c: E2 08 00 36 56 80 13 01 00 00 00 00 00 09 [22:26:17]Write i2c OK [22:26:17]MH_I2C_Read... [22:26:17]Read from MH i2c: E2 [22:26:17]MH_I2C_Read... [22:26:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:26:17]Read from MH i2c: E2 0E 00 [22:26:17]MH_I2C_Read... [22:26:17]Read from MH i2c: E2 0E 00 36 56 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 CB [22:26:17]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [22:26:17]wFMCommunicate OK [22:26:17]SAM_PROTO_GetShiftState done [22:26:17]FM_GetShiftState done [22:26:17]req_shift_opened done [22:26:17]requested_item shift.open_date is exist - process it [22:26:17]req_shift_open_date [22:26:17]req_shift_open_date done [22:26:17]produce_requested_data done [22:26:17]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123377,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [22:26:17]process_action_free close_receipt [22:26:17]json_value_free [22:26:17]json_value_free done [22:26:17]process_json_proto returns [22:26:17]Send response to host [22:26:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123377,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [22:26:17]free response buf [22:26:17]execute_script done [22:26:17]execute_script returns [22:26:17]free content buf [22:26:17]Sock 7.Close socket [22:26:17]Sock 7.Thread stoped [22:26:20]OFD Sender: No OFD packet to send [22:26:25]OFD Sender: No OFD packet to send [22:26:30]OFD Sender: No OFD packet to send [22:26:35]OFD Sender: No OFD packet to send [22:26:40]OFD Sender: No OFD packet to send [22:26:45]OFD Sender: No OFD packet to send [22:26:47]accept exits with 9 [22:26:47]New connection [22:26:47]New thread 3067395428 created [22:26:47]Thread 3067252068 joined [22:26:47]Waiting for new connection... [22:26:47] Sock 9.Parse request [22:26:47]Sock 9.Check first char [22:26:47]Sock 9.First char is OK [22:26:47]request: POST /json_proto HTTP/1.0 [22:26:47]Method: POST [22:26:47]URL: /json_proto [22:26:47]Method is POST - this is cgi request [22:26:47]url: /json_proto [22:26:47]query_string will be loaded in cgi processing [22:26:47]execute_cgi json_proto POST (null) [22:26:47]execute_cgi path=json_proto method=POST [22:26:47]POST find Content-Length [22:26:47]Host: 172.17.48.197:8080 [22:26:47]Content-Length: 809 [22:26:47]Content-Type: application/json [22:26:47] [22:26:47]POST finish read [22:26:47]Found Content-Length = 809 [22:26:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106364", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:26:47]execute_script... [22:26: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)1106364", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:26:47]POST & json_proto [22:26:47]process_json_proto [22:26:47]json parsed OK: [22:26:47]protocol is kg_v1.0 [22:26:47]action value=close_receipt [22:26:47]process_action close_receipt [22:26:47]cmd_close_receipt [22:26:47]MH_GetDate [22:26:47]Write to MH i2c: F0 00 00 37 56 7C [22:26:47]Write i2c OK [22:26:47]MH_I2C_Read... [22:26:47]Read from MH i2c: F0 [22:26:47]MH_I2C_Read... [22:26:47]Read from MH i2c: F0 09 00 [22:26:47]MH_I2C_Read... [22:26:47]Read from MH i2c: F0 09 00 37 56 00 2D F9 E4 65 6C AF E3 65 57 [22:26:47]GetLastDocTimeStamp 1709504777 [22:26:47]current date 1709504813 [22:26:47]FM_GetShiftState [22:26:47]SAM_PROTO_GetShiftState [22:26:47]wFMCommunicate request_size=4 [22:26:47]MH_SAM_APDU [22:26:47]CAPDU: 80 13 01 00 [22:26:47]Write to MH i2c: E2 08 00 38 56 80 13 01 00 00 00 00 00 0B [22:26:47]Write i2c OK [22:26:47]MH_I2C_Read... [22:26:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:26:47]Read from MH i2c: E2 [22:26:47]MH_I2C_Read... [22:26:47]Read from MH i2c: E2 0E 00 [22:26:47]MH_I2C_Read... [22:26:47]Read from MH i2c: E2 0E 00 38 56 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 CD [22:26:47]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [22:26:47]wFMCommunicate OK [22:26:47]SAM_PROTO_GetShiftState done [22:26:47]FM_GetShiftState done [22:26:47]opened in 1709425579 [22:26:47]opened+sec_in_day 1709511979 [22:26:47]quantity*price = 100010 [22:26:47]sum+1 = 100012 [22:26:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.11 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.11 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 235 03.03.2024 22:26 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874798 ФД: 123378 ФПД: 247233446763593 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T222653&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123378&fm=247233446763593&tin=02508201610067®Number=0000000000090573&sum=100011 [22:26:48]StoreToDocumentArchive [22:26:48]shift 323 fd 123378 [22:26:48]save to /storage/0323/doc_00123378 [22:26:48]save last doc name /storage/0323/doc_00123378 to /storage/kkm_last_doc_name [22:26:48]save OK [22:26:48]Clear old archive folders... [22:26:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:26:48]tlvbuf is 00E883C0 [22:26:48]SAM_PROTO_ClearQueue [22:26:48]wFMCommunicate request_size=4 [22:26:48]MH_SAM_APDU [22:26:48]CAPDU: 80 09 00 00 [22:26:48]Write to MH i2c: E2 08 00 45 56 80 09 00 00 00 00 00 00 0D [22:26:48]Write i2c OK [22:26:48]MH_I2C_Read... [22:26:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:26:48]Read from MH i2c: E2 [22:26:48]MH_I2C_Read... [22:26:48]Read from MH i2c: E2 03 00 [22:26:48]MH_I2C_Read... [22:26:48]Read from MH i2c: E2 03 00 45 56 00 90 00 0F [22:26:48]RAPDU: 90 00 [22:26:48]wFMCommunicate OK [22:26:48]SAM_PROTO_ClearQueue done [22:26:48]KKMCreateOFDPacket [22:26:48]OFDProtocolAddRootSTLVToBuf [22:26:48]FM_MakeSignedData [22:26:48]FM_MakeSignedData [22:26:48]SAM_PROTO_SignData [22:26:48]wFMCommunicate request_size=4 [22:26:48]MH_SAM_APDU [22:26:48]CAPDU: 80 0D 01 02 [22:26:48]Write to MH i2c: E2 08 00 46 56 80 0D 01 02 00 00 00 00 15 [22:26:48]Write i2c OK [22:26:48]MH_I2C_Read... [22:26:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:26:49]Read from MH i2c: E2 [22:26:49]MH_I2C_Read... [22:26:49]Read from MH i2c: E2 03 00 [22:26:49]MH_I2C_Read... [22:26:49]Read from MH i2c: E2 03 00 46 56 00 90 00 10 [22:26:49]RAPDU: 90 00 [22:26:49]wFMCommunicate OK [22:26:49]wFMCommunicate request_size=255 [22:26:49]MH_SAM_APDU [22:26:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 2D F9 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 F2 E1 01 00 35 04 06 00 E0 [22:26:49]Write to MH i2c: E2 02 01 47 56 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 2D F9 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 F2 E1 01 00 35 04 06 00 E0 00 00 E2 [22:26:49]Write i2c OK [22:26:49]MH_I2C_Read... [22:26:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:26:49]Read from MH i2c: E2 [22:26:49]MH_I2C_Read... [22:26:49]Read from MH i2c: E2 03 00 [22:26:49]MH_I2C_Read... [22:26:49]Read from MH i2c: E2 03 00 47 56 00 90 00 11 [22:26:49]RAPDU: 90 00 [22:26:49]wFMCommunicate OK [22:26:49]wFMCommunicate request_size=10 [22:26:49]MH_SAM_APDU [22:26:49]CAPDU: 80 0D 02 02 05 DB 85 C5 5C 49 [22:26:49]Write to MH i2c: E2 0D 00 48 56 80 0D 02 02 05 00 DB 85 C5 5C 49 00 00 EC [22:26:49]Write i2c OK [22:26:49]MH_I2C_Read... [22:26:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:26:49]Read from MH i2c: E2 [22:26:49]MH_I2C_Read... [22:26:49]Read from MH i2c: E2 03 00 [22:26:49]MH_I2C_Read... [22:26:49]Read from MH i2c: E2 03 00 48 56 00 90 00 12 [22:26:49]RAPDU: 90 00 [22:26:49]wFMCommunicate OK [22:26:49]wFMCommunicate request_size=4 [22:26:49]MH_SAM_APDU [22:26:49]CAPDU: 80 0D 03 02 [22:26:49]Write to MH i2c: E2 08 00 49 56 80 0D 03 02 00 00 00 00 1A [22:26:49]Write i2c OK [22:26:49]MH_I2C_Read... [22:26:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:26:49]Read from MH i2c: E2 [22:26:49]MH_I2C_Read... [22:26:49]Read from MH i2c: E2 0B 00 [22:26:49]MH_I2C_Read... [22:26:49]Read from MH i2c: E2 0B 00 49 56 00 42 4C 81 96 DA B5 69 05 90 00 BD [22:26:49]RAPDU: 42 4C 81 96 DA B5 69 05 90 00 [22:26:49]wFMCommunicate OK [22:26:49]SAM_PROTO_SignData done [22:26:49]FM_MakeSignedData done [22:26:49]CreateOFDProtocolMessage [22:26:49]wFMCommunicate request_size=4 [22:26:49]MH_SAM_APDU [22:26:49]CAPDU: 80 11 00 00 [22:26:49]Write to MH i2c: E2 08 00 4A 56 80 11 00 00 00 00 00 00 1A [22:26:49]Write i2c OK [22:26:49]MH_I2C_Read... [22:26:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:26:49]Read from MH i2c: E2 [22:26:49]MH_I2C_Read... [22:26:49]Read from MH i2c: E2 17 00 [22:26:49]MH_I2C_Read... [22:26:49]Read from MH i2c: E2 17 00 4A 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 78 [22:26:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [22:26:49]wFMCommunicate OK [22:26:49]CreateOFDProtocolMessage done [22:26:49]OFDSenderStorePacket 123378 [22:26:49]StoreOFDPacket docnum=123378 [22:26:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 7A BE 07 01 D3 C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 2D F9 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 F2 E1 01 00 35 04 06 00 E0 DB 85 C5 5C 49 42 4C 81 96 DA B5 69 05 [22:26:49]CheckFolder [22:26:49]dirname=/storage/ofd_packets [22:26:49]CheckFolder done [22:26:49]ProducePacketName [22:26:49]name=ofd_packets/00123378 [22:26:49]NVStorageSaveData ofd_packets/00123378 [22:26:49]File name is /storage/ofd_packets/00123378 [22:26:49]Write 301 bytes [22:26:49]NVStorageSaveData done [22:26:49]OFDSenderStorePacket done [22:26:49]KKMCreateOFDPacket done [22:26:49]NVStorageSaveData kkm_last_timestamp [22:26:49]File name is /storage/kkm_last_timestamp [22:26:49]Write 4 bytes [22:26:49]NVStorageSaveData done [22:26:49]ExternCall_PrintAddStr [22:26:49]wPrintStart [22:26:49]Write to MH i2c: 01 00 00 4B 56 A1 [22:26:49]Write i2c OK [22:26:49]MH_I2C_Read... [22:26:49]Read from MH i2c: 01 [22:26:49]MH_I2C_Read... [22:26:49]Read from MH i2c: 01 07 00 [22:26:49]MH_I2C_Read... [22:26:49]Read from MH i2c: 01 07 00 4B 56 00 00 00 00 00 FF 0F B6 [22:26:49]RasterBufferAndPrint [22:26:49]line Счет N : (1)1106364 [22:26:49]line ИНН: 02508201610067 [22:26:49]line Контрольно-Кассовый Чек [22:26:49]line ПРОДАЖА [22:26:49]line ТРК (МРК, ГНК) : 63 [22:26:49]line Товар: 2710124500 [22:26:49]line Аи-95-К-5 [22:26:49]line 14.390 * 69.50 [22:26:49]line = 1000.11 [22:26:49]line НДС 12% НСП 1% [22:26:49]line > о реализуемом товаре [22:26:49]line ИТОГО: 1000.11 [22:26:49]line НСП 1% : 8.85 [22:26:49]line НДС 12% : 106.21 [22:26:49]line Наличными: 0.00 [22:26:49]line Безнал.: 1000.11 [22:26:49]line Место: АЗС № 25 "Партнер Нефть" [22:26:49]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [22:26:49]line СНО: Общий режим [22:26:49]line Чек 235 03.03.2024 22:26 [22:26:49]line Смена: 323 ФФД: 1.0 [22:26:49]line ЗНМ: 0300000019 [22:26:49]line РНМ: 0000000000090573 [22:26:49]line Версия ККМ: 001 [22:26:49]line Платежная система: О! деньги [22:26:49]line ФМ: 0000000000874798 [22:26:49]line ФД: 123378 [22:26:49]line ФПД: 247233446763593 [22:26:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T222653&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123378&fm=247233446763593&tin=02508201610067®Number=0000000000090573&sum=100011 [22:26:49]OFD Sender: Processing packet 123378 [packets to send 112, broken 111] [22:26:49]ProducePacketName [22:26:49]name=ofd_packets/00123378 [22:26:49]OFD Sender: To server: pG, [22:26:49]CommunicateWithHost lk.salyk.kg:30040 [22:26:49]ConnectInit lk.salyk.kg [22:26:49]written 0, free lines is 4095 [22:26:49]Connected sock=10 [22:26: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 37 39 38 0F 01 00 00 7A BE 07 01 D3 C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 2D F9 E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 F2 E1 01 00 35 04 06 00 E0 DB 85 C5 5C 49 42 4C 81 96 DA B5 69 05 [22:26:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 25 5F 47 00 E3 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 F2 E1 01 00 F4 03 04 00 57 A5 E4 65 B6 04 01 00 00 0D B8 DE D4 0C B1 30 EA [22:26:50]CommunicateWithHost err = 0 [22:26:50]CheckOFDResponse [22:26:50]1017 (14) - 77093643461234 [22:26:50]1041 (16) - 0000000000874798 [22:26:50]1040 (4) - 123378 [22:26:50]1012 (4) - 03.03.2024 16:29 [22:26:50]1206 (1) - 0 [22:26:50]OFD Sender: Remove packet 123378 [22:26:50]ProducePacketName [22:26:50]name=ofd_packets/00123378 [22:26:50]NVStorageDeleteData [22:26:50]Write to MH i2c: 01 00 00 75 56 CB [22:26:50]Write i2c OK [22:26:50]MH_I2C_Read... [22:26:50]Read from MH i2c: 01 [22:26:50]MH_I2C_Read... [22:26:50]Read from MH i2c: 01 07 00 [22:26:50]MH_I2C_Read... [22:26:50]Read from MH i2c: 01 07 00 75 56 00 00 00 00 00 10 0D EF [22:26:50]RasterBufferAndPrint [22:26:50]line [22:26:50]line [22:26:50]line [22:26:50]line [22:26:50]line [22:26:50]written 0, free lines is 3354 [22:26:50]MH_Cut [22:26:50]Write to MH i2c: D1 01 00 7C 56 01 A4 [22:26:50]Write i2c OK [22:26:50]MH_I2C_Read... [22:26:50]Read from MH i2c: D1 [22:26:50]MH_I2C_Read... [22:26:50]Read from MH i2c: D1 01 00 [22:26:50]MH_I2C_Read... [22:26:50]Read from MH i2c: D1 01 00 7C 56 00 A3 [22:26:50]Write to MH i2c: 01 00 00 7D 56 D3 [22:26:50]Write i2c OK [22:26:50]MH_I2C_Read... [22:26:50]OFD Sender: No OFD packet to send [22:26:50]*** Cut start [22:26:50]*** Purtial cut [22:26:50]*** Stage 1: CUTSNS_PIN = 1 [22:26:52]Read from MH i2c: 01 [22:26:52]MH_I2C_Read... [22:26:52]*** Stop cut motor [22:26:52]*** Cut end [22:26:52]Read from MH i2c: 01 07 00 [22:26:52]MH_I2C_Read... [22:26:52]Read from MH i2c: 01 07 00 7D 56 00 00 00 00 00 FF 0F E8 [22:26:52]process_action close_receipt done [22:26:52]requested_data is exist [22:26:52]produce_requested_data [22:26:52]requested_item fm.sn is exist - process it [22:26:52]wFMCommunicate request_size=4 [22:26:52]MH_SAM_APDU [22:26:52]CAPDU: 80 11 00 00 [22:26:52]Write to MH i2c: E2 08 00 7E 56 80 11 00 00 00 00 00 00 4E [22:26:52]Write i2c OK [22:26:52]MH_I2C_Read... [22:26:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:26:53]Read from MH i2c: E2 [22:26:53]MH_I2C_Read... [22:26:53]Read from MH i2c: E2 17 00 [22:26:53]MH_I2C_Read... [22:26:53]Read from MH i2c: E2 17 00 7E 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 AC [22:26:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [22:26:53]wFMCommunicate OK [22:26:53]requested_item fd.num is exist - process it [22:26:53]SAM_PROTO_GetFieldsCounters [22:26:53]wFMCommunicate request_size=4 [22:26:53]MH_SAM_APDU [22:26:53]CAPDU: 80 13 00 00 [22:26:53]Write to MH i2c: E2 08 00 7F 56 80 13 00 00 00 00 00 00 51 [22:26:53]Write i2c OK [22:26:53]MH_I2C_Read... [22:26:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:26:53]Read from MH i2c: E2 [22:26:53]MH_I2C_Read... [22:26:53]Read from MH i2c: E2 62 00 [22:26:53]MH_I2C_Read... [22:26:53]Read from MH i2c: E2 62 00 7F 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 F2 E1 01 00 0E 04 04 00 43 01 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 55 [22:26: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 F2 E1 01 00 0E 04 04 00 43 01 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 [22:26:53]wFMCommunicate OK [22:26:53]SAM_PROTO_GetFieldsCounters done [22:26:53]requested_item shift.num is exist - process it [22:26:53]requested_item shift.opened is exist - process it [22:26:53]req_shift_opened [22:26:53]FM_GetShiftState [22:26:53]SAM_PROTO_GetShiftState [22:26:53]wFMCommunicate request_size=4 [22:26:53]MH_SAM_APDU [22:26:53]CAPDU: 80 13 01 00 [22:26:53]Write to MH i2c: E2 08 00 80 56 80 13 01 00 00 00 00 00 53 [22:26:53]Write i2c OK [22:26:53]MH_I2C_Read... [22:26:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:26:53]Read from MH i2c: E2 [22:26:53]MH_I2C_Read... [22:26:53]Read from MH i2c: E2 0E 00 [22:26:53]MH_I2C_Read... [22:26:53]Read from MH i2c: E2 0E 00 80 56 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 15 [22:26:53]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [22:26:53]wFMCommunicate OK [22:26:53]SAM_PROTO_GetShiftState done [22:26:53]FM_GetShiftState done [22:26:53]req_shift_opened done [22:26:53]requested_item shift.open_date is exist - process it [22:26:53]req_shift_open_date [22:26:53]req_shift_open_date done [22:26:53]produce_requested_data done [22:26:53]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123378,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [22:26:53]process_action_free close_receipt [22:26:53]json_value_free [22:26:53]json_value_free done [22:26:53]process_json_proto returns [22:26:53]Send response to host [22:26:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123378,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [22:26:53]free response buf [22:26:53]execute_script done [22:26:53]execute_script returns [22:26:53]free content buf [22:26:53]Sock 9.Close socket [22:26:53]Sock 9.Thread stoped [22:26:55]OFD Sender: No OFD packet to send [22:27:00]OFD Sender: No OFD packet to send [22:27:05]OFD Sender: No OFD packet to send [22:27:10]OFD Sender: No OFD packet to send [22:27:15]OFD Sender: No OFD packet to send [22:27:20]OFD Sender: No OFD packet to send [22:27:25]OFD Sender: No OFD packet to send [22:27:30]OFD Sender: No OFD packet to send [22:27:35]OFD Sender: No OFD packet to send [22:27:40]OFD Sender: No OFD packet to send [22:27:45]OFD Sender: No OFD packet to send [22:27:50]OFD Sender: No OFD packet to send [22:27:55]OFD Sender: No OFD packet to send [22:28:00]OFD Sender: No OFD packet to send [22:28:05]OFD Sender: No OFD packet to send [22:28:10]OFD Sender: No OFD packet to send [22:28:15]OFD Sender: No OFD packet to send [22:28:20]OFD Sender: No OFD packet to send [22:28:25]OFD Sender: No OFD packet to send [22:28:30]OFD Sender: No OFD packet to send [22:28:35]OFD Sender: No OFD packet to send [22:28:40]OFD Sender: No OFD packet to send [22:28:45]OFD Sender: No OFD packet to send [22:28:50]OFD Sender: No OFD packet to send [22:28:55]OFD Sender: No OFD packet to send [22:29:00]OFD Sender: No OFD packet to send [22:29:05]OFD Sender: No OFD packet to send [22:29:10]OFD Sender: No OFD packet to send [22:29:15]OFD Sender: No OFD packet to send [22:29:20]OFD Sender: No OFD packet to send [22:29:25]OFD Sender: No OFD packet to send [22:29:30]OFD Sender: No OFD packet to send [22:29:35]OFD Sender: No OFD packet to send [22:29:40]OFD Sender: No OFD packet to send [22:29:45]OFD Sender: No OFD packet to send [22:29:50]OFD Sender: No OFD packet to send [22:29:55]OFD Sender: No OFD packet to send [22:30:00]OFD Sender: No OFD packet to send [22:30:05]OFD Sender: No OFD packet to send [22:30:10]OFD Sender: No OFD packet to send [22:30:15]OFD Sender: No OFD packet to send [22:30:20]OFD Sender: No OFD packet to send [22:30:25]OFD Sender: No OFD packet to send [22:30:30]OFD Sender: No OFD packet to send [22:30:35]OFD Sender: No OFD packet to send [22:30:40]OFD Sender: No OFD packet to send [22:30:45]OFD Sender: No OFD packet to send [22:30:50]OFD Sender: No OFD packet to send [22:30:55]OFD Sender: No OFD packet to send [22:31:00]OFD Sender: No OFD packet to send [22:31:05]OFD Sender: No OFD packet to send [22:31:10]OFD Sender: No OFD packet to send [22:31:15]OFD Sender: No OFD packet to send [22:31:20]OFD Sender: No OFD packet to send [22:31:25]OFD Sender: No OFD packet to send [22:31:30]OFD Sender: No OFD packet to send [22:31:35]OFD Sender: No OFD packet to send [22:31:40]OFD Sender: No OFD packet to send [22:31:45]OFD Sender: No OFD packet to send [22:31:50]OFD Sender: No OFD packet to send [22:31:55]OFD Sender: No OFD packet to send [22:32:00]OFD Sender: No OFD packet to send [22:32:05]OFD Sender: No OFD packet to send [22:32:10]OFD Sender: No OFD packet to send [22:32:15]OFD Sender: No OFD packet to send [22:32:20]OFD Sender: No OFD packet to send [22:32:25]OFD Sender: No OFD packet to send [22:32:30]OFD Sender: No OFD packet to send [22:32:35]OFD Sender: No OFD packet to send [22:32:40]OFD Sender: No OFD packet to send [22:32:45]OFD Sender: No OFD packet to send [22:32:50]OFD Sender: No OFD packet to send [22:32:55]OFD Sender: No OFD packet to send [22:33:01]OFD Sender: No OFD packet to send [22:33:06]OFD Sender: No OFD packet to send [22:33:11]OFD Sender: No OFD packet to send [22:33:16]OFD Sender: No OFD packet to send [22:33:16]accept exits with 7 [22:33:16]New connection [22:33:16]New thread 3067252068 created [22:33:16]Thread 3067395428 joined [22:33:16]Waiting for new connection... [22:33:16] Sock 7.Parse request [22:33:16]Sock 7.Check first char [22:33:16]Sock 7.First char is OK [22:33:16]request: POST /json_proto HTTP/1.0 [22:33:16]Method: POST [22:33:16]URL: /json_proto [22:33:16]Method is POST - this is cgi request [22:33:16]url: /json_proto [22:33:16]query_string will be loaded in cgi processing [22:33:16]execute_cgi json_proto POST (null) [22:33:16]execute_cgi path=json_proto method=POST [22:33:16]POST find Content-Length [22:33:16]Host: 172.17.48.197:8080 [22:33:16]Content-Length: 683 [22:33:16]Content-Type: application/json [22:33:16] [22:33:16]POST finish read [22:33:16]Found Content-Length = 683 [22:33:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106367", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "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" ] } } [22:33:16]execute_script... [22:33: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)1106367", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "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" ] } } [22:33:16]POST & json_proto [22:33:16]process_json_proto [22:33:16]json parsed OK: [22:33:16]protocol is kg_v1.0 [22:33:16]action value=close_receipt [22:33:16]process_action close_receipt [22:33:16]cmd_close_receipt [22:33:16]MH_GetDate [22:33:16]Write to MH i2c: F0 00 00 81 56 C6 [22:33:16]Write i2c OK [22:33:16]MH_I2C_Read... [22:33:16]Read from MH i2c: F0 [22:33:16]MH_I2C_Read... [22:33:16]Read from MH i2c: F0 09 00 [22:33:16]MH_I2C_Read... [22:33:16]Read from MH i2c: F0 09 00 81 56 00 B2 FA E4 65 6C AF E3 65 27 [22:33:16]GetLastDocTimeStamp 1709504813 [22:33:16]current date 1709505202 [22:33:16]FM_GetShiftState [22:33:16]SAM_PROTO_GetShiftState [22:33:16]wFMCommunicate request_size=4 [22:33:16]MH_SAM_APDU [22:33:16]CAPDU: 80 13 01 00 [22:33:16]Write to MH i2c: E2 08 00 82 56 80 13 01 00 00 00 00 00 55 [22:33:16]Write i2c OK [22:33:16]MH_I2C_Read... [22:33:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:33:16]Read from MH i2c: E2 [22:33:16]MH_I2C_Read... [22:33:16]Read from MH i2c: E2 0E 00 [22:33:16]MH_I2C_Read... [22:33:16]Read from MH i2c: E2 0E 00 82 56 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 17 [22:33:16]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [22:33:16]wFMCommunicate OK [22:33:16]SAM_PROTO_GetShiftState done [22:33:16]FM_GetShiftState done [22:33:16]opened in 1709425579 [22:33:16]opened+sec_in_day 1709511979 [22:33:16]quantity*price = 100030 [22:33:16]sum+1 = 100031 [22:33:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 236 03.03.2024 22:33 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123379 ФПД: 58989521274549 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T223322&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123379&fm=58989521274549&tin=02508201610067®Number=0000000000090573&sum=100000 [22:33:18]StoreToDocumentArchive [22:33:18]shift 323 fd 123379 [22:33:18]save to /storage/0323/doc_00123379 [22:33:18]save last doc name /storage/0323/doc_00123379 to /storage/kkm_last_doc_name [22:33:18]save OK [22:33:18]Clear old archive folders... [22:33:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:33:18]tlvbuf is 00F45B50 [22:33:18]SAM_PROTO_ClearQueue [22:33:18]wFMCommunicate request_size=4 [22:33:18]MH_SAM_APDU [22:33:18]CAPDU: 80 09 00 00 [22:33:18]Write to MH i2c: E2 08 00 8F 56 80 09 00 00 00 00 00 00 57 [22:33:18]Write i2c OK [22:33:18]MH_I2C_Read... [22:33:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:33:18]Read from MH i2c: E2 [22:33:18]MH_I2C_Read... [22:33:18]Read from MH i2c: E2 03 00 [22:33:18]MH_I2C_Read... [22:33:18]Read from MH i2c: E2 03 00 8F 56 00 90 00 59 [22:33:18]RAPDU: 90 00 [22:33:18]wFMCommunicate OK [22:33:18]SAM_PROTO_ClearQueue done [22:33:18]KKMCreateOFDPacket [22:33:18]OFDProtocolAddRootSTLVToBuf [22:33:18]FM_MakeSignedData [22:33:18]FM_MakeSignedData [22:33:18]SAM_PROTO_SignData [22:33:18]wFMCommunicate request_size=4 [22:33:18]MH_SAM_APDU [22:33:18]CAPDU: 80 0D 01 02 [22:33:18]Write to MH i2c: E2 08 00 90 56 80 0D 01 02 00 00 00 00 5F [22:33:18]Write i2c OK [22:33:18]MH_I2C_Read... [22:33:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:33:18]Read from MH i2c: E2 [22:33:18]MH_I2C_Read... [22:33:18]Read from MH i2c: E2 03 00 [22:33:18]MH_I2C_Read... [22:33:18]Read from MH i2c: E2 03 00 90 56 00 90 00 5A [22:33:18]RAPDU: 90 00 [22:33:18]wFMCommunicate OK [22:33:18]wFMCommunicate request_size=255 [22:33:18]MH_SAM_APDU [22:33:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 EC 00 00 00 F4 03 04 00 B2 FA E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 F3 E1 01 00 35 04 06 00 35 [22:33:18]Write to MH i2c: E2 02 01 91 56 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 EC 00 00 00 F4 03 04 00 B2 FA E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 F3 E1 01 00 35 04 06 00 35 00 00 FA [22:33:18]Write i2c OK [22:33:18]MH_I2C_Read... [22:33:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:33:18]Read from MH i2c: E2 [22:33:18]MH_I2C_Read... [22:33:18]Read from MH i2c: E2 03 00 [22:33:18]MH_I2C_Read... [22:33:18]Read from MH i2c: E2 03 00 91 56 00 90 00 5B [22:33:18]RAPDU: 90 00 [22:33:18]wFMCommunicate OK [22:33:18]wFMCommunicate request_size=10 [22:33:18]MH_SAM_APDU [22:33:18]CAPDU: 80 0D 02 02 05 A6 91 76 06 B5 [22:33:18]Write to MH i2c: E2 0D 00 92 56 80 0D 02 02 05 00 A6 91 76 06 B5 00 00 D4 [22:33:18]Write i2c OK [22:33:18]MH_I2C_Read... [22:33:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:33:18]Read from MH i2c: E2 [22:33:18]MH_I2C_Read... [22:33:18]Read from MH i2c: E2 03 00 [22:33:18]MH_I2C_Read... [22:33:18]Read from MH i2c: E2 03 00 92 56 00 90 00 5C [22:33:18]RAPDU: 90 00 [22:33:18]wFMCommunicate OK [22:33:18]wFMCommunicate request_size=4 [22:33:18]MH_SAM_APDU [22:33:18]CAPDU: 80 0D 03 02 [22:33:18]Write to MH i2c: E2 08 00 93 56 80 0D 03 02 00 00 00 00 64 [22:33:18]Write i2c OK [22:33:18]MH_I2C_Read... [22:33:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:33:18]Read from MH i2c: E2 [22:33:18]MH_I2C_Read... [22:33:18]Read from MH i2c: E2 0B 00 [22:33:18]MH_I2C_Read... [22:33:18]Read from MH i2c: E2 0B 00 93 56 00 86 69 19 18 30 82 64 FF 90 00 9A [22:33:18]RAPDU: 86 69 19 18 30 82 64 FF 90 00 [22:33:18]wFMCommunicate OK [22:33:18]SAM_PROTO_SignData done [22:33:18]FM_MakeSignedData done [22:33:18]CreateOFDProtocolMessage [22:33:18]wFMCommunicate request_size=4 [22:33:18]MH_SAM_APDU [22:33:18]CAPDU: 80 11 00 00 [22:33:18]Write to MH i2c: E2 08 00 94 56 80 11 00 00 00 00 00 00 64 [22:33:18]Write i2c OK [22:33:18]MH_I2C_Read... [22:33:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:33:18]Read from MH i2c: E2 [22:33:18]MH_I2C_Read... [22:33:18]Read from MH i2c: E2 17 00 [22:33:18]MH_I2C_Read... [22:33:18]Read from MH i2c: E2 17 00 94 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 C2 [22:33:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [22:33:18]wFMCommunicate OK [22:33:18]CreateOFDProtocolMessage done [22:33:18]OFDSenderStorePacket 123379 [22:33:18]StoreOFDPacket docnum=123379 [22:33:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 C1 71 07 01 DE 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 EC 00 00 00 F4 03 04 00 B2 FA E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 F3 E1 01 00 35 04 06 00 35 A6 91 76 06 B5 86 69 19 18 30 82 64 FF [22:33:18]CheckFolder [22:33:18]dirname=/storage/ofd_packets [22:33:18]CheckFolder done [22:33:18]ProducePacketName [22:33:18]name=ofd_packets/00123379 [22:33:18]NVStorageSaveData ofd_packets/00123379 [22:33:18]File name is /storage/ofd_packets/00123379 [22:33:18]Write 301 bytes [22:33:18]NVStorageSaveData done [22:33:18]OFDSenderStorePacket done [22:33:18]KKMCreateOFDPacket done [22:33:18]NVStorageSaveData kkm_last_timestamp [22:33:18]File name is /storage/kkm_last_timestamp [22:33:18]Write 4 bytes [22:33:18]NVStorageSaveData done [22:33:18]ExternCall_PrintAddStr [22:33:18]wPrintStart [22:33:18]Write to MH i2c: 01 00 00 95 56 EB [22:33:18]Write i2c OK [22:33:18]MH_I2C_Read... [22:33:18]Read from MH i2c: 01 [22:33:18]MH_I2C_Read... [22:33:18]Read from MH i2c: 01 07 00 [22:33:18]MH_I2C_Read... [22:33:18]Read from MH i2c: 01 07 00 95 56 00 00 00 00 00 FF 0F 00 [22:33:18]RasterBufferAndPrint [22:33:18]line Счет N : (1)1106367 [22:33:18]line ИНН: 02508201610067 [22:33:18]line Контрольно-Кассовый Чек [22:33:18]line ПРОДАЖА [22:33:18]line ТРК (МРК, ГНК) : 52 [22:33:18]line Товар: 2710124130 [22:33:18]line Аи-92-К-5 [22:33:18]line 16.160 * 61.90 [22:33:18]line = 1000.30 [22:33:18]line НДС 12% НСП 1% [22:33:18]line > о реализуемом товаре [22:33:18]line ОКРУГЛЕНИЕ: -0.30 [22:33:18]line ИТОГО: 1000.00 [22:33:18]line Внесено: 1000.00 [22:33:18]line СДАЧА: 0.00 [22:33:18]line НСП 1% : 8.85 [22:33:18]line НДС 12% : 106.23 [22:33:18]line Наличными: 1000.00 [22:33:18]line Безнал.: 0.00 [22:33:18]line Место: АЗС № 25 "Партнер Нефть" [22:33:18]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [22:33:18]line СНО: Общий режим [22:33:18]line Чек 236 03.03.2024 22:33 [22:33:18]line Смена: 323 ФФД: 1.0 [22:33:18]line ЗНМ: 0300000019 [22:33:18]line РНМ: 0000000000090573 [22:33:18]line Версия ККМ: 001 [22:33:18]line ФМ: 0000000000874798 [22:33:18]line ФД: 123379 [22:33:18]line ФПД: 58989521274549 [22:33:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T223322&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123379&fm=58989521274549&tin=02508201610067®Number=0000000000090573&sum=100000 [22:33:18]OFD Sender: Processing packet 123379 [packets to send 112, broken 111] [22:33:18]ProducePacketName [22:33:18]name=ofd_packets/00123379 [22:33:18]OFD Sender: To server: pG, [22:33:18]CommunicateWithHost lk.salyk.kg:30040 [22:33:18]ConnectInit lk.salyk.kg [22:33:18]written 0, free lines is 4095 [22:33:18]Connected sock=10 [22:33: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 37 39 38 0F 01 00 00 C1 71 07 01 DE 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 EC 00 00 00 F4 03 04 00 B2 FA E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 F3 E1 01 00 35 04 06 00 35 A6 91 76 06 B5 86 69 19 18 30 82 64 FF [22:33:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 D1 15 47 00 09 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 37 39 38 10 04 04 00 F3 E1 01 00 F4 03 04 00 DC A6 E4 65 B6 04 01 00 00 0F 11 CB 80 36 75 68 3D [22:33:19]CommunicateWithHost err = 0 [22:33:19]CheckOFDResponse [22:33:19]1017 (14) - 77093643461234 [22:33:19]1041 (16) - 0000000000874798 [22:33:19]1040 (4) - 123379 [22:33:19]1012 (4) - 03.03.2024 16:35 [22:33:19]1206 (1) - 0 [22:33:19]OFD Sender: Remove packet 123379 [22:33:19]ProducePacketName [22:33:19]name=ofd_packets/00123379 [22:33:19]NVStorageDeleteData [22:33:19]Write to MH i2c: 01 00 00 C0 56 16 [22:33:19]Write i2c OK [22:33:19]MH_I2C_Read... [22:33:19]Read from MH i2c: 01 [22:33:19]MH_I2C_Read... [22:33:19]Read from MH i2c: 01 07 00 [22:33:19]MH_I2C_Read... [22:33:19]Read from MH i2c: 01 07 00 C0 56 00 00 00 00 00 FC 0C 25 [22:33:19]RasterBufferAndPrint [22:33:19]line [22:33:19]line [22:33:19]line [22:33:19]line [22:33:19]line [22:33:19]written 0, free lines is 3333 [22:33:19]MH_Cut [22:33:19]Write to MH i2c: D1 01 00 C7 56 01 EF [22:33:19]Write i2c OK [22:33:19]MH_I2C_Read... [22:33:19]Read from MH i2c: D1 [22:33:19]MH_I2C_Read... [22:33:19]Read from MH i2c: D1 01 00 [22:33:19]MH_I2C_Read... [22:33:19]Read from MH i2c: D1 01 00 C7 56 00 EE [22:33:19]Write to MH i2c: 01 00 00 C8 56 1E [22:33:19]Write i2c OK [22:33:19]MH_I2C_Read... [22:33:19]OFD Sender: No OFD packet to send [22:33:20]*** Cut start [22:33:20]*** Purtial cut [22:33:20]*** Stage 1: CUTSNS_PIN = 1 [22:33:22]Read from MH i2c: 01 [22:33:22]MH_I2C_Read... [22:33:22]*** Stop cut motor [22:33:22]*** Cut end [22:33:22]Read from MH i2c: 01 07 00 [22:33:22]MH_I2C_Read... [22:33:22]Read from MH i2c: 01 07 00 C8 56 00 00 00 00 00 FF 0F 33 [22:33:22]process_action close_receipt done [22:33:22]requested_data is exist [22:33:22]produce_requested_data [22:33:22]requested_item fm.sn is exist - process it [22:33:22]wFMCommunicate request_size=4 [22:33:22]MH_SAM_APDU [22:33:22]CAPDU: 80 11 00 00 [22:33:22]Write to MH i2c: E2 08 00 C9 56 80 11 00 00 00 00 00 00 99 [22:33:22]Write i2c OK [22:33:22]MH_I2C_Read... [22:33:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:33:22]Read from MH i2c: E2 [22:33:22]MH_I2C_Read... [22:33:22]Read from MH i2c: E2 17 00 [22:33:22]MH_I2C_Read... [22:33:22]Read from MH i2c: E2 17 00 C9 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 F7 [22:33:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [22:33:22]wFMCommunicate OK [22:33:22]requested_item fd.num is exist - process it [22:33:22]SAM_PROTO_GetFieldsCounters [22:33:22]wFMCommunicate request_size=4 [22:33:22]MH_SAM_APDU [22:33:22]CAPDU: 80 13 00 00 [22:33:22]Write to MH i2c: E2 08 00 CA 56 80 13 00 00 00 00 00 00 9C [22:33:22]Write i2c OK [22:33:22]MH_I2C_Read... [22:33:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:33:22]Read from MH i2c: E2 [22:33:22]MH_I2C_Read... [22:33:22]Read from MH i2c: E2 62 00 [22:33:22]MH_I2C_Read... [22:33:22]Read from MH i2c: E2 62 00 CA 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 F3 E1 01 00 0E 04 04 00 43 01 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 A4 [22:33: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 F3 E1 01 00 0E 04 04 00 43 01 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 [22:33:22]wFMCommunicate OK [22:33:22]SAM_PROTO_GetFieldsCounters done [22:33:22]requested_item shift.num is exist - process it [22:33:22]requested_item shift.opened is exist - process it [22:33:22]req_shift_opened [22:33:22]FM_GetShiftState [22:33:22]SAM_PROTO_GetShiftState [22:33:22]wFMCommunicate request_size=4 [22:33:22]MH_SAM_APDU [22:33:22]CAPDU: 80 13 01 00 [22:33:22]Write to MH i2c: E2 08 00 CB 56 80 13 01 00 00 00 00 00 9E [22:33:22]Write i2c OK [22:33:22]MH_I2C_Read... [22:33:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:33:22]Read from MH i2c: E2 [22:33:22]MH_I2C_Read... [22:33:22]Read from MH i2c: E2 0E 00 [22:33:22]MH_I2C_Read... [22:33:22]Read from MH i2c: E2 0E 00 CB 56 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 60 [22:33:22]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [22:33:22]wFMCommunicate OK [22:33:22]SAM_PROTO_GetShiftState done [22:33:22]FM_GetShiftState done [22:33:22]req_shift_opened done [22:33:22]requested_item shift.open_date is exist - process it [22:33:22]req_shift_open_date [22:33:22]req_shift_open_date done [22:33:22]produce_requested_data done [22:33:22]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123379,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [22:33:22]process_action_free close_receipt [22:33:22]json_value_free [22:33:22]json_value_free done [22:33:22]process_json_proto returns [22:33:22]Send response to host [22:33:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123379,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [22:33:22]free response buf [22:33:22]execute_script done [22:33:22]execute_script returns [22:33:22]free content buf [22:33:22]Sock 7.Close socket [22:33:22]Sock 7.Thread stoped [22:33:24]OFD Sender: No OFD packet to send [22:33:26]accept exits with 9 [22:33:26]New connection [22:33:26]New thread 3067395428 created [22:33:26]Thread 3067252068 joined [22:33:26]Waiting for new connection... [22:33:26] Sock 9.Parse request [22:33:26]Sock 9.Check first char [22:33:26]Sock 9.First char is OK [22:33:26]request: POST /json_proto HTTP/1.0 [22:33:26]Method: POST [22:33:26]URL: /json_proto [22:33:26]Method is POST - this is cgi request [22:33:26]url: /json_proto [22:33:26]query_string will be loaded in cgi processing [22:33:26]execute_cgi json_proto POST (null) [22:33:26]execute_cgi path=json_proto method=POST [22:33:26]POST find Content-Length [22:33:26]Host: 172.17.48.197:8080 [22:33:26]Content-Length: 740 [22:33:26]Content-Type: application/json [22:33:26] [22:33:26]POST finish read [22:33:26]Found Content-Length = 740 [22:33:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 123379, "base_FM": "0000000000874798", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106367", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "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" ] } } [22:33:26]execute_script... [22:33:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 123379, "base_FM": "0000000000874798", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106367", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "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" ] } } [22:33:26]POST & json_proto [22:33:26]process_json_proto [22:33:26]json parsed OK: [22:33:26]protocol is kg_v1.0 [22:33:26]action value=close_receipt [22:33:26]process_action close_receipt [22:33:26]cmd_close_receipt [22:33:26]MH_GetDate [22:33:26]Write to MH i2c: F0 00 00 CC 56 11 [22:33:26]Write i2c OK [22:33:26]MH_I2C_Read... [22:33:26]Read from MH i2c: F0 [22:33:26]MH_I2C_Read... [22:33:26]Read from MH i2c: F0 09 00 [22:33:26]MH_I2C_Read... [22:33:26]Read from MH i2c: F0 09 00 CC 56 00 BC FA E4 65 6C AF E3 65 7C [22:33:26]GetLastDocTimeStamp 1709505202 [22:33:26]current date 1709505212 [22:33:26]FM_GetShiftState [22:33:26]SAM_PROTO_GetShiftState [22:33:26]wFMCommunicate request_size=4 [22:33:26]MH_SAM_APDU [22:33:26]CAPDU: 80 13 01 00 [22:33:26]Write to MH i2c: E2 08 00 CD 56 80 13 01 00 00 00 00 00 A0 [22:33:26]Write i2c OK [22:33:26]MH_I2C_Read... [22:33:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:33:26]Read from MH i2c: E2 [22:33:26]MH_I2C_Read... [22:33:26]Read from MH i2c: E2 0E 00 [22:33:26]MH_I2C_Read... [22:33:26]Read from MH i2c: E2 0E 00 CD 56 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 62 [22:33:26]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [22:33:26]wFMCommunicate OK [22:33:26]SAM_PROTO_GetShiftState done [22:33:26]FM_GetShiftState done [22:33:26]opened in 1709425579 [22:33:26]opened+sec_in_day 1709511979 [22:33:26]quantity*price = 100030 [22:33:26]sum+1 = 100031 [22:33:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 237 03.03.2024 22:33 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФД осн.: 123379 ФМ осн.: 0000000000874798 ФМ: 0000000000874798 ФД: 123380 ФПД: 68742218407820 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T223332&type=2&operation_type=1&fn_number=0000000000874798&fd_number=123380&fm=68742218407820&tin=02508201610067®Number=0000000000090573&sum=100000 [22:33:27]StoreToDocumentArchive [22:33:27]shift 323 fd 123380 [22:33:27]save to /storage/0323/doc_00123380 [22:33:27]save last doc name /storage/0323/doc_00123380 to /storage/kkm_last_doc_name [22:33:27]save OK [22:33:27]Clear old archive folders... [22:33:27]ProcessDocumentItem done err = 0, tmpTLVsize=279 [22:33:27]tlvbuf is 00E021A0 [22:33:27]SAM_PROTO_ClearQueue [22:33:27]wFMCommunicate request_size=4 [22:33:27]MH_SAM_APDU [22:33:27]CAPDU: 80 09 00 00 [22:33:27]Write to MH i2c: E2 08 00 DC 56 80 09 00 00 00 00 00 00 A4 [22:33:28]Write i2c OK [22:33:28]MH_I2C_Read... [22:33:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:33:28]Read from MH i2c: E2 [22:33:28]MH_I2C_Read... [22:33:28]Read from MH i2c: E2 03 00 [22:33:28]MH_I2C_Read... [22:33:28]Read from MH i2c: E2 03 00 DC 56 00 90 00 A6 [22:33:28]RAPDU: 90 00 [22:33:28]wFMCommunicate OK [22:33:28]SAM_PROTO_ClearQueue done [22:33:28]KKMCreateOFDPacket [22:33:28]OFDProtocolAddRootSTLVToBuf [22:33:28]FM_MakeSignedData [22:33:28]FM_MakeSignedData [22:33:28]SAM_PROTO_SignData [22:33:28]wFMCommunicate request_size=4 [22:33:28]MH_SAM_APDU [22:33:28]CAPDU: 80 0D 01 02 [22:33:28]Write to MH i2c: E2 08 00 DD 56 80 0D 01 02 00 00 00 00 AC [22:33:28]Write i2c OK [22:33:28]MH_I2C_Read... [22:33:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:33:28]Read from MH i2c: E2 [22:33:28]MH_I2C_Read... [22:33:28]Read from MH i2c: E2 03 00 [22:33:28]MH_I2C_Read... [22:33:28]Read from MH i2c: E2 03 00 DD 56 00 90 00 A7 [22:33:28]RAPDU: 90 00 [22:33:28]wFMCommunicate OK [22:33:28]wFMCommunicate request_size=255 [22:33:28]MH_SAM_APDU [22:33:28]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 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 ED 00 00 00 F4 03 04 00 BC FA E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 27 04 04 00 F3 E1 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 11 04 10 00 30 [22:33:28]Write to MH i2c: E2 02 01 DE 56 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 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 ED 00 00 00 F4 03 04 00 BC FA E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 27 04 04 00 F3 E1 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 11 04 10 00 30 00 00 7F [22:33:28]Write i2c OK [22:33:28]MH_I2C_Read... [22:33:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:33:28]Read from MH i2c: E2 [22:33:28]MH_I2C_Read... [22:33:28]Read from MH i2c: E2 03 00 [22:33:28]MH_I2C_Read... [22:33:28]Read from MH i2c: E2 03 00 DE 56 00 90 00 A8 [22:33:28]RAPDU: 90 00 [22:33:28]wFMCommunicate OK [22:33:28]wFMCommunicate request_size=38 [22:33:28]MH_SAM_APDU [22:33:28]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 F4 E1 01 00 35 04 06 00 3E 85 4B 82 5F 8C [22:33:28]Write to MH i2c: E2 29 00 DF 56 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 F4 E1 01 00 35 04 06 00 3E 85 4B 82 5F 8C 00 00 94 [22:33:28]Write i2c OK [22:33:28]MH_I2C_Read... [22:33:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:33:28]Read from MH i2c: E2 [22:33:28]MH_I2C_Read... [22:33:28]Read from MH i2c: E2 03 00 [22:33:28]MH_I2C_Read... [22:33:28]Read from MH i2c: E2 03 00 DF 56 00 90 00 A9 [22:33:28]RAPDU: 90 00 [22:33:28]wFMCommunicate OK [22:33:28]wFMCommunicate request_size=4 [22:33:28]MH_SAM_APDU [22:33:28]CAPDU: 80 0D 03 02 [22:33:28]Write to MH i2c: E2 08 00 E0 56 80 0D 03 02 00 00 00 00 B1 [22:33:28]Write i2c OK [22:33:28]MH_I2C_Read... [22:33:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:33:28]Read from MH i2c: E2 [22:33:28]MH_I2C_Read... [22:33:28]Read from MH i2c: E2 0B 00 [22:33:28]MH_I2C_Read... [22:33:28]Read from MH i2c: E2 0B 00 E0 56 00 89 AF B4 3D 83 0E 9B A4 90 00 AB [22:33:28]RAPDU: 89 AF B4 3D 83 0E 9B A4 90 00 [22:33:28]wFMCommunicate OK [22:33:28]SAM_PROTO_SignData done [22:33:28]FM_MakeSignedData done [22:33:28]CreateOFDProtocolMessage [22:33:28]wFMCommunicate request_size=4 [22:33:28]MH_SAM_APDU [22:33:28]CAPDU: 80 11 00 00 [22:33:28]Write to MH i2c: E2 08 00 E1 56 80 11 00 00 00 00 00 00 B1 [22:33:28]Write i2c OK [22:33:28]MH_I2C_Read... [22:33:28]Read from MH i2c: E2 [22:33:28]MH_I2C_Read... [22:33:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:33:28]Read from MH i2c: E2 17 00 [22:33:28]MH_I2C_Read... [22:33:28]Read from MH i2c: E2 17 00 E1 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 0F [22:33:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [22:33:28]wFMCommunicate OK [22:33:28]CreateOFDProtocolMessage done [22:33:28]OFDSenderStorePacket 123380 [22:33:28]StoreOFDPacket docnum=123380 [22:33:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 2B 01 00 00 26 F6 23 01 1A A7 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 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 ED 00 00 00 F4 03 04 00 BC FA E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 27 04 04 00 F3 E1 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 F4 E1 01 00 35 04 06 00 3E 85 4B 82 5F 8C 89 AF B4 3D 83 0E 9B A4 [22:33:28]CheckFolder [22:33:28]dirname=/storage/ofd_packets [22:33:28]CheckFolder done [22:33:28]ProducePacketName [22:33:28]name=ofd_packets/00123380 [22:33:28]NVStorageSaveData ofd_packets/00123380 [22:33:28]File name is /storage/ofd_packets/00123380 [22:33:28]Write 329 bytes [22:33:28]NVStorageSaveData done [22:33:28]OFDSenderStorePacket done [22:33:28]KKMCreateOFDPacket done [22:33:28]NVStorageSaveData kkm_last_timestamp [22:33:28]File name is /storage/kkm_last_timestamp [22:33:28]Write 4 bytes [22:33:28]NVStorageSaveData done [22:33:28]ExternCall_PrintAddStr [22:33:28]wPrintStart [22:33:28]Write to MH i2c: 01 00 00 E2 56 38 [22:33:28]Write i2c OK [22:33:28]MH_I2C_Read... [22:33:28]Read from MH i2c: 01 [22:33:28]MH_I2C_Read... [22:33:28]Read from MH i2c: 01 07 00 [22:33:28]MH_I2C_Read... [22:33:28]Read from MH i2c: 01 07 00 E2 56 00 00 00 00 00 FF 0F 4D [22:33:28]RasterBufferAndPrint [22:33:28]line Счет N : (1)1106367 [22:33:28]line ИНН: 02508201610067 [22:33:28]line Контрольно-Кассовый Чек [22:33:28]line ВОЗВРАТ ПРОДАЖИ [22:33:28]line ТРК (МРК, ГНК) : 52 [22:33:28]line Товар: 2710124130 [22:33:28]line Аи-92-К-5 [22:33:28]line 16.160 * 61.90 [22:33:28]line = 1000.30 [22:33:28]line НДС 12% НСП 1% [22:33:28]line > о реализуемом товаре [22:33:28]line ОКРУГЛЕНИЕ: -0.30 [22:33:28]line ИТОГО: 1000.00 [22:33:28]line НСП 1% : 8.85 [22:33:28]line НДС 12% : 106.23 [22:33:28]line Наличными: 1000.00 [22:33:28]line Безнал.: 0.00 [22:33:28]line Место: АЗС № 25 "Партнер Нефть" [22:33:28]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [22:33:28]line СНО: Общий режим [22:33:28]line Чек 237 03.03.2024 22:33 [22:33:28]line Смена: 323 ФФД: 1.0 [22:33:28]line ЗНМ: 0300000019 [22:33:28]line РНМ: 0000000000090573 [22:33:28]line Версия ККМ: 001 [22:33:28]line ФД осн.: 123379 [22:33:28]line ФМ осн.: 0000000000874798 [22:33:28]line ФМ: 0000000000874798 [22:33:28]line ФД: 123380 [22:33:28]line ФПД: 68742218407820 [22:33:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T223332&type=2&operation_type=1&fn_number=0000000000874798&fd_number=123380&fm=68742218407820&tin=02508201610067®Number=0000000000090573&sum=100000 [22:33:28]written 0, free lines is 4095 [22:33:28]OFD Sender: Processing packet 123380 [packets to send 112, broken 111] [22:33:28]ProducePacketName [22:33:28]name=ofd_packets/00123380 [22:33:28]OFD Sender: To server: pG, [22:33:28]CommunicateWithHost lk.salyk.kg:30040 [22:33:28]ConnectInit lk.salyk.kg [22:33:28]Connected sock=10 [22:33: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 37 39 38 2B 01 00 00 26 F6 23 01 1A A7 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 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 ED 00 00 00 F4 03 04 00 BC FA E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 27 04 04 00 F3 E1 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 F4 E1 01 00 35 04 06 00 3E 85 4B 82 5F 8C 89 AF B4 3D 83 0E 9B A4 [22:33:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 0B 5C 47 00 8D 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 F4 E1 01 00 F4 03 04 00 E6 A6 E4 65 B6 04 01 00 00 21 8F EC D3 A9 B4 31 A1 [22:33:28]CommunicateWithHost err = 0 [22:33:28]CheckOFDResponse [22:33:28]1017 (14) - 77093643461234 [22:33:28]1041 (16) - 0000000000874798 [22:33:28]1040 (4) - 123380 [22:33:28]1012 (4) - 03.03.2024 16:35 [22:33:28]1206 (1) - 0 [22:33:28]OFD Sender: Remove packet 123380 [22:33:28]ProducePacketName [22:33:28]name=ofd_packets/00123380 [22:33:28]NVStorageDeleteData [22:33:29]Write to MH i2c: 01 00 00 0D 57 64 [22:33:29]Write i2c OK [22:33:29]MH_I2C_Read... [22:33:29]Read from MH i2c: 01 [22:33:29]MH_I2C_Read... [22:33:29]Read from MH i2c: 01 07 00 [22:33:29]MH_I2C_Read... [22:33:29]Read from MH i2c: 01 07 00 0D 57 00 00 00 00 00 29 0D A1 [22:33:29]RasterBufferAndPrint [22:33:29]line [22:33:29]line [22:33:29]line [22:33:29]line [22:33:29]line [22:33:29]written 0, free lines is 3378 [22:33:29]MH_Cut [22:33:29]Write to MH i2c: D1 01 00 14 57 01 3D [22:33:29]Write i2c OK [22:33:29]MH_I2C_Read... [22:33:29]Read from MH i2c: D1 [22:33:29]MH_I2C_Read... [22:33:29]Read from MH i2c: D1 01 00 [22:33:29]MH_I2C_Read... [22:33:29]Read from MH i2c: D1 01 00 14 57 00 3C [22:33:29]Write to MH i2c: 01 00 00 15 57 6C [22:33:29]Write i2c OK [22:33:29]MH_I2C_Read... [22:33:29]OFD Sender: No OFD packet to send [22:33:29]*** Cut start [22:33:29]*** Purtial cut [22:33:29]*** Stage 1: CUTSNS_PIN = 1 [22:33:31]Read from MH i2c: 01 [22:33:31]MH_I2C_Read... [22:33:31]*** Stop cut motor [22:33:31]*** Cut end [22:33:31]Read from MH i2c: 01 07 00 [22:33:31]MH_I2C_Read... [22:33:31]Read from MH i2c: 01 07 00 15 57 00 00 00 00 00 FF 0F 81 [22:33:31]process_action close_receipt done [22:33:31]requested_data is exist [22:33:31]produce_requested_data [22:33:31]requested_item fm.sn is exist - process it [22:33:31]wFMCommunicate request_size=4 [22:33:31]MH_SAM_APDU [22:33:31]CAPDU: 80 11 00 00 [22:33:31]Write to MH i2c: E2 08 00 16 57 80 11 00 00 00 00 00 00 E7 [22:33:31]Write i2c OK [22:33:31]MH_I2C_Read... [22:33:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:33:31]Read from MH i2c: E2 [22:33:31]MH_I2C_Read... [22:33:31]Read from MH i2c: E2 17 00 [22:33:31]MH_I2C_Read... [22:33:31]Read from MH i2c: E2 17 00 16 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 45 [22:33:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [22:33:31]wFMCommunicate OK [22:33:31]requested_item fd.num is exist - process it [22:33:31]SAM_PROTO_GetFieldsCounters [22:33:31]wFMCommunicate request_size=4 [22:33:31]MH_SAM_APDU [22:33:31]CAPDU: 80 13 00 00 [22:33:31]Write to MH i2c: E2 08 00 17 57 80 13 00 00 00 00 00 00 EA [22:33:31]Write i2c OK [22:33:31]MH_I2C_Read... [22:33:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:33:31]Read from MH i2c: E2 [22:33:31]MH_I2C_Read... [22:33:31]Read from MH i2c: E2 62 00 [22:33:31]MH_I2C_Read... [22:33:31]Read from MH i2c: E2 62 00 17 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 F4 E1 01 00 0E 04 04 00 43 01 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 F6 [22:33: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 F4 E1 01 00 0E 04 04 00 43 01 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 [22:33:31]wFMCommunicate OK [22:33:31]SAM_PROTO_GetFieldsCounters done [22:33:31]requested_item shift.num is exist - process it [22:33:31]requested_item shift.opened is exist - process it [22:33:31]req_shift_opened [22:33:31]FM_GetShiftState [22:33:31]SAM_PROTO_GetShiftState [22:33:31]wFMCommunicate request_size=4 [22:33:31]MH_SAM_APDU [22:33:31]CAPDU: 80 13 01 00 [22:33:31]Write to MH i2c: E2 08 00 18 57 80 13 01 00 00 00 00 00 EC [22:33:31]Write i2c OK [22:33:31]MH_I2C_Read... [22:33:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:33:32]Read from MH i2c: E2 [22:33:32]MH_I2C_Read... [22:33:32]Read from MH i2c: E2 0E 00 [22:33:32]MH_I2C_Read... [22:33:32]Read from MH i2c: E2 0E 00 18 57 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 AE [22:33:32]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [22:33:32]wFMCommunicate OK [22:33:32]SAM_PROTO_GetShiftState done [22:33:32]FM_GetShiftState done [22:33:32]req_shift_opened done [22:33:32]requested_item shift.open_date is exist - process it [22:33:32]req_shift_open_date [22:33:32]req_shift_open_date done [22:33:32]produce_requested_data done [22:33:32]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123380,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [22:33:32]process_action_free close_receipt [22:33:32]json_value_free [22:33:32]json_value_free done [22:33:32]process_json_proto returns [22:33:32]Send response to host [22:33:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123380,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [22:33:32]free response buf [22:33:32]execute_script done [22:33:32]execute_script returns [22:33:32]free content buf [22:33:32]Sock 9.Close socket [22:33:32]Sock 9.Thread stoped [22:33:34]OFD Sender: No OFD packet to send [22:33:39]OFD Sender: No OFD packet to send [22:33:44]OFD Sender: No OFD packet to send [22:33:49]OFD Sender: No OFD packet to send [22:33:54]OFD Sender: No OFD packet to send [22:33:59]OFD Sender: No OFD packet to send [22:34:04]OFD Sender: No OFD packet to send [22:34:09]OFD Sender: No OFD packet to send [22:34:11]accept exits with 7 [22:34:11]New connection [22:34:11]New thread 3067252068 created [22:34:11]Thread 3067395428 joined [22:34:11]Waiting for new connection... [22:34:11] Sock 7.Parse request [22:34:11]Sock 7.Check first char [22:34:11]Sock 7.First char is OK [22:34:11]request: POST /json_proto HTTP/1.0 [22:34:11]Method: POST [22:34:11]URL: /json_proto [22:34:11]Method is POST - this is cgi request [22:34:11]url: /json_proto [22:34:11]query_string will be loaded in cgi processing [22:34:11]execute_cgi json_proto POST (null) [22:34:11]execute_cgi path=json_proto method=POST [22:34:11]POST find Content-Length [22:34:11]Host: 172.17.48.197:8080 [22:34:11]Content-Length: 809 [22:34:11]Content-Type: application/json [22:34:11] [22:34:11]POST finish read [22:34:11]Found Content-Length = 809 [22:34:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106366", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.30 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:34:11]execute_script... [22:34: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)1106366", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.30 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:34:11]POST & json_proto [22:34:11]process_json_proto [22:34:11]json parsed OK: [22:34:11]protocol is kg_v1.0 [22:34:11]action value=close_receipt [22:34:11]process_action close_receipt [22:34:11]cmd_close_receipt [22:34:11]MH_GetDate [22:34:11]Write to MH i2c: F0 00 00 19 57 5F [22:34:11]Write i2c OK [22:34:11]MH_I2C_Read... [22:34:11]Read from MH i2c: F0 [22:34:11]MH_I2C_Read... [22:34:11]Read from MH i2c: F0 09 00 [22:34:11]MH_I2C_Read... [22:34:11]Read from MH i2c: F0 09 00 19 57 00 E8 FA E4 65 6C AF E3 65 F6 [22:34:11]GetLastDocTimeStamp 1709505212 [22:34:11]current date 1709505256 [22:34:11]FM_GetShiftState [22:34:11]SAM_PROTO_GetShiftState [22:34:11]wFMCommunicate request_size=4 [22:34:11]MH_SAM_APDU [22:34:11]CAPDU: 80 13 01 00 [22:34:11]Write to MH i2c: E2 08 00 1A 57 80 13 01 00 00 00 00 00 EE [22:34:11]Write i2c OK [22:34:11]MH_I2C_Read... [22:34:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:34:11]Read from MH i2c: E2 [22:34:11]MH_I2C_Read... [22:34:11]Read from MH i2c: E2 0E 00 [22:34:11]MH_I2C_Read... [22:34:11]Read from MH i2c: E2 0E 00 1A 57 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 B0 [22:34:11]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [22:34:11]wFMCommunicate OK [22:34:11]SAM_PROTO_GetShiftState done [22:34:11]FM_GetShiftState done [22:34:11]opened in 1709425579 [22:34:11]opened+sec_in_day 1709511979 [22:34:11]quantity*price = 100030 [22:34:11]sum+1 = 100031 [22:34:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.30 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 0.00 Безнал.: 1000.30 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 238 03.03.2024 22:34 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874798 ФД: 123381 ФПД: 86667383537876 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T223416&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123381&fm=86667383537876&tin=02508201610067®Number=0000000000090573&sum=100030 [22:34:12]StoreToDocumentArchive [22:34:12]shift 323 fd 123381 [22:34:12]save to /storage/0323/doc_00123381 [22:34:12]save last doc name /storage/0323/doc_00123381 to /storage/kkm_last_doc_name [22:34:12]save OK [22:34:12]Clear old archive folders... [22:34:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:34:12]tlvbuf is 00DFCD40 [22:34:12]SAM_PROTO_ClearQueue [22:34:12]wFMCommunicate request_size=4 [22:34:12]MH_SAM_APDU [22:34:12]CAPDU: 80 09 00 00 [22:34:12]Write to MH i2c: E2 08 00 27 57 80 09 00 00 00 00 00 00 F0 [22:34:12]Write i2c OK [22:34:12]MH_I2C_Read... [22:34:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:34:12]Read from MH i2c: E2 [22:34:12]MH_I2C_Read... [22:34:12]Read from MH i2c: E2 03 00 [22:34:12]MH_I2C_Read... [22:34:12]Read from MH i2c: E2 03 00 27 57 00 90 00 F2 [22:34:12]RAPDU: 90 00 [22:34:12]wFMCommunicate OK [22:34:12]SAM_PROTO_ClearQueue done [22:34:12]KKMCreateOFDPacket [22:34:12]OFDProtocolAddRootSTLVToBuf [22:34:12]FM_MakeSignedData [22:34:12]FM_MakeSignedData [22:34:12]SAM_PROTO_SignData [22:34:12]wFMCommunicate request_size=4 [22:34:12]MH_SAM_APDU [22:34:12]CAPDU: 80 0D 01 02 [22:34:12]Write to MH i2c: E2 08 00 28 57 80 0D 01 02 00 00 00 00 F8 [22:34:12]Write i2c OK [22:34:12]MH_I2C_Read... [22:34:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:34:12]Read from MH i2c: E2 [22:34:12]MH_I2C_Read... [22:34:12]Read from MH i2c: E2 03 00 [22:34:12]MH_I2C_Read... [22:34:12]Read from MH i2c: E2 03 00 28 57 00 90 00 F3 [22:34:12]RAPDU: 90 00 [22:34:12]wFMCommunicate OK [22:34:12]wFMCommunicate request_size=255 [22:34:12]MH_SAM_APDU [22:34:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 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 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 E8 FA E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 F5 E1 01 00 35 04 06 00 4E [22:34:12]Write to MH i2c: E2 02 01 29 57 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 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 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 E8 FA E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 F5 E1 01 00 35 04 06 00 4E 00 00 22 [22:34:12]Write i2c OK [22:34:12]MH_I2C_Read... [22:34:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:34:12]Read from MH i2c: E2 [22:34:12]MH_I2C_Read... [22:34:12]Read from MH i2c: E2 03 00 [22:34:12]MH_I2C_Read... [22:34:12]Read from MH i2c: E2 03 00 29 57 00 90 00 F4 [22:34:12]RAPDU: 90 00 [22:34:12]wFMCommunicate OK [22:34:12]wFMCommunicate request_size=10 [22:34:12]MH_SAM_APDU [22:34:12]CAPDU: 80 0D 02 02 05 D2 D2 9C 00 D4 [22:34:12]Write to MH i2c: E2 0D 00 2A 57 80 0D 02 02 05 00 D2 D2 9C 00 D4 00 00 19 [22:34:12]Write i2c OK [22:34:12]MH_I2C_Read... [22:34:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:34:12]Read from MH i2c: E2 [22:34:12]MH_I2C_Read... [22:34:12]Read from MH i2c: E2 03 00 [22:34:12]MH_I2C_Read... [22:34:12]Read from MH i2c: E2 03 00 2A 57 00 90 00 F5 [22:34:12]RAPDU: 90 00 [22:34:12]wFMCommunicate OK [22:34:12]wFMCommunicate request_size=4 [22:34:12]MH_SAM_APDU [22:34:12]CAPDU: 80 0D 03 02 [22:34:12]Write to MH i2c: E2 08 00 2B 57 80 0D 03 02 00 00 00 00 FD [22:34:12]Write i2c OK [22:34:12]MH_I2C_Read... [22:34:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:34:12]Read from MH i2c: E2 [22:34:12]MH_I2C_Read... [22:34:12]Read from MH i2c: E2 0B 00 [22:34:12]MH_I2C_Read... [22:34:12]Read from MH i2c: E2 0B 00 2B 57 00 C7 A9 A6 F2 03 34 E5 41 90 00 63 [22:34:12]RAPDU: C7 A9 A6 F2 03 34 E5 41 90 00 [22:34:12]wFMCommunicate OK [22:34:12]SAM_PROTO_SignData done [22:34:12]FM_MakeSignedData done [22:34:12]CreateOFDProtocolMessage [22:34:12]wFMCommunicate request_size=4 [22:34:12]MH_SAM_APDU [22:34:12]CAPDU: 80 11 00 00 [22:34:12]Write to MH i2c: E2 08 00 2C 57 80 11 00 00 00 00 00 00 FD [22:34:12]Write i2c OK [22:34:12]MH_I2C_Read... [22:34:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:34:12]Read from MH i2c: E2 [22:34:12]MH_I2C_Read... [22:34:12]Read from MH i2c: E2 17 00 [22:34:12]MH_I2C_Read... [22:34:12]Read from MH i2c: E2 17 00 2C 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 5B [22:34:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [22:34:12]wFMCommunicate OK [22:34:12]CreateOFDProtocolMessage done [22:34:12]OFDSenderStorePacket 123381 [22:34:12]StoreOFDPacket docnum=123381 [22:34:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 08 E1 07 01 FE 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 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 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 E8 FA E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 F5 E1 01 00 35 04 06 00 4E D2 D2 9C 00 D4 C7 A9 A6 F2 03 34 E5 41 [22:34:12]CheckFolder [22:34:12]dirname=/storage/ofd_packets [22:34:12]CheckFolder done [22:34:12]ProducePacketName [22:34:12]name=ofd_packets/00123381 [22:34:12]NVStorageSaveData ofd_packets/00123381 [22:34:12]File name is /storage/ofd_packets/00123381 [22:34:12]Write 301 bytes [22:34:12]NVStorageSaveData done [22:34:12]OFDSenderStorePacket done [22:34:12]KKMCreateOFDPacket done [22:34:12]NVStorageSaveData kkm_last_timestamp [22:34:12]File name is /storage/kkm_last_timestamp [22:34:12]Write 4 bytes [22:34:12]NVStorageSaveData done [22:34:12]ExternCall_PrintAddStr [22:34:12]wPrintStart [22:34:12]Write to MH i2c: 01 00 00 2D 57 84 [22:34:12]Write i2c OK [22:34:12]MH_I2C_Read... [22:34:12]Read from MH i2c: 01 [22:34:12]MH_I2C_Read... [22:34:12]Read from MH i2c: 01 07 00 [22:34:12]MH_I2C_Read... [22:34:12]Read from MH i2c: 01 07 00 2D 57 00 00 00 00 00 FF 0F 99 [22:34:12]RasterBufferAndPrint [22:34:12]line Счет N : (1)1106366 [22:34:12]line ИНН: 02508201610067 [22:34:12]line Контрольно-Кассовый Чек [22:34:12]line ПРОДАЖА [22:34:12]line ТРК (МРК, ГНК) : 11 [22:34:12]line Товар: 2710124130 [22:34:12]line Аи-92-К-5 [22:34:12]line 16.160 * 61.90 [22:34:12]line = 1000.30 [22:34:12]line НДС 12% НСП 1% [22:34:12]line > о реализуемом товаре [22:34:12]line ИТОГО: 1000.30 [22:34:12]line НСП 1% : 8.85 [22:34:12]line НДС 12% : 106.23 [22:34:12]line Наличными: 0.00 [22:34:12]line Безнал.: 1000.30 [22:34:12]line Место: АЗС № 25 "Партнер Нефть" [22:34:12]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [22:34:12]line СНО: Общий режим [22:34:12]line Чек 238 03.03.2024 22:34 [22:34:12]line Смена: 323 ФФД: 1.0 [22:34:12]line ЗНМ: 0300000019 [22:34:12]line РНМ: 0000000000090573 [22:34:12]line Версия ККМ: 001 [22:34:12]line Платежная система: О! деньги [22:34:12]line ФМ: 0000000000874798 [22:34:12]line ФД: 123381 [22:34:12]line ФПД: 86667383537876 [22:34:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T223416&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123381&fm=86667383537876&tin=02508201610067®Number=0000000000090573&sum=100030 [22:34:13]OFD Sender: Processing packet 123381 [packets to send 112, broken 111] [22:34:13]ProducePacketName [22:34:13]name=ofd_packets/00123381 [22:34:13]OFD Sender: To server: pG, [22:34:13]CommunicateWithHost lk.salyk.kg:30040 [22:34:13]ConnectInit lk.salyk.kg [22:34:13]written 0, free lines is 4095 [22:34:13]Connected sock=11 [22:34: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 37 39 38 0F 01 00 00 08 E1 07 01 FE 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 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 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 E8 FA E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 F5 E1 01 00 35 04 06 00 4E D2 D2 9C 00 D4 C7 A9 A6 F2 03 34 E5 41 [22:34:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 77 29 47 00 D3 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 37 39 38 10 04 04 00 F5 E1 01 00 F4 03 04 00 12 A7 E4 65 B6 04 01 00 00 C2 BB DB 4A D9 C0 5E F8 [22:34:13]CommunicateWithHost err = 0 [22:34:13]CheckOFDResponse [22:34:13]1017 (14) - 77093643461234 [22:34:13]1041 (16) - 0000000000874798 [22:34:13]1040 (4) - 123381 [22:34:13]1012 (4) - 03.03.2024 16:36 [22:34:13]1206 (1) - 0 [22:34:13]OFD Sender: Remove packet 123381 [22:34:13]ProducePacketName [22:34:13]name=ofd_packets/00123381 [22:34:13]NVStorageDeleteData [22:34:13]Write to MH i2c: 01 00 00 57 57 AE [22:34:13]Write i2c OK [22:34:13]MH_I2C_Read... [22:34:13]Read from MH i2c: 01 [22:34:13]MH_I2C_Read... [22:34:13]Read from MH i2c: 01 07 00 [22:34:13]MH_I2C_Read... [22:34:13]Read from MH i2c: 01 07 00 57 57 00 00 00 00 00 0E 0D D0 [22:34:13]RasterBufferAndPrint [22:34:13]line [22:34:13]line [22:34:13]line [22:34:13]line [22:34:13]line [22:34:13]written 0, free lines is 3348 [22:34:13]MH_Cut [22:34:13]Write to MH i2c: D1 01 00 5E 57 01 87 [22:34:13]Write i2c OK [22:34:13]MH_I2C_Read... [22:34:13]Read from MH i2c: D1 [22:34:13]MH_I2C_Read... [22:34:13]Read from MH i2c: D1 01 00 [22:34:13]MH_I2C_Read... [22:34:13]Read from MH i2c: D1 01 00 5E 57 00 86 [22:34:13]Write to MH i2c: 01 00 00 5F 57 B6 [22:34:13]Write i2c OK [22:34:13]MH_I2C_Read... [22:34:13]OFD Sender: No OFD packet to send [22:34:14]*** Cut start [22:34:14]*** Purtial cut [22:34:14]*** Stage 1: CUTSNS_PIN = 1 [22:34:16]Read from MH i2c: 01 [22:34:16]MH_I2C_Read... [22:34:16]*** Stop cut motor [22:34:16]*** Cut end [22:34:16]Read from MH i2c: 01 07 00 [22:34:16]MH_I2C_Read... [22:34:16]Read from MH i2c: 01 07 00 5F 57 00 00 00 00 00 FF 0F CB [22:34:16]process_action close_receipt done [22:34:16]requested_data is exist [22:34:16]produce_requested_data [22:34:16]requested_item fm.sn is exist - process it [22:34:16]wFMCommunicate request_size=4 [22:34:16]MH_SAM_APDU [22:34:16]CAPDU: 80 11 00 00 [22:34:16]Write to MH i2c: E2 08 00 60 57 80 11 00 00 00 00 00 00 31 [22:34:16]Write i2c OK [22:34:16]MH_I2C_Read... [22:34:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:34:16]Read from MH i2c: E2 [22:34:16]MH_I2C_Read... [22:34:16]Read from MH i2c: E2 17 00 [22:34:16]MH_I2C_Read... [22:34:16]Read from MH i2c: E2 17 00 60 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 8F [22:34:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [22:34:16]wFMCommunicate OK [22:34:16]requested_item fd.num is exist - process it [22:34:16]SAM_PROTO_GetFieldsCounters [22:34:16]wFMCommunicate request_size=4 [22:34:16]MH_SAM_APDU [22:34:16]CAPDU: 80 13 00 00 [22:34:16]Write to MH i2c: E2 08 00 61 57 80 13 00 00 00 00 00 00 34 [22:34:16]Write i2c OK [22:34:16]MH_I2C_Read... [22:34:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:34:16]Read from MH i2c: E2 [22:34:16]MH_I2C_Read... [22:34:16]Read from MH i2c: E2 62 00 [22:34:16]MH_I2C_Read... [22:34:16]Read from MH i2c: E2 62 00 61 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 F5 E1 01 00 0E 04 04 00 43 01 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 44 [22:34: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 F5 E1 01 00 0E 04 04 00 43 01 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 [22:34:16]wFMCommunicate OK [22:34:16]SAM_PROTO_GetFieldsCounters done [22:34:16]requested_item shift.num is exist - process it [22:34:16]requested_item shift.opened is exist - process it [22:34:16]req_shift_opened [22:34:16]FM_GetShiftState [22:34:16]SAM_PROTO_GetShiftState [22:34:16]wFMCommunicate request_size=4 [22:34:16]MH_SAM_APDU [22:34:16]CAPDU: 80 13 01 00 [22:34:16]Write to MH i2c: E2 08 00 62 57 80 13 01 00 00 00 00 00 36 [22:34:16]Write i2c OK [22:34:16]MH_I2C_Read... [22:34:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:34:16]Read from MH i2c: E2 [22:34:16]MH_I2C_Read... [22:34:16]Read from MH i2c: E2 0E 00 [22:34:16]MH_I2C_Read... [22:34:16]Read from MH i2c: E2 0E 00 62 57 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 F8 [22:34:16]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [22:34:16]wFMCommunicate OK [22:34:16]SAM_PROTO_GetShiftState done [22:34:16]FM_GetShiftState done [22:34:16]req_shift_opened done [22:34:16]requested_item shift.open_date is exist - process it [22:34:16]req_shift_open_date [22:34:16]req_shift_open_date done [22:34:16]produce_requested_data done [22:34:16]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123381,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [22:34:16]process_action_free close_receipt [22:34:16]json_value_free [22:34:16]json_value_free done [22:34:16]process_json_proto returns [22:34:16]Send response to host [22:34:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123381,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [22:34:16]free response buf [22:34:16]execute_script done [22:34:16]execute_script returns [22:34:16]free content buf [22:34:16]Sock 7.Close socket [22:34:16]Sock 7.Thread stoped [22:34:18]OFD Sender: No OFD packet to send [22:34:23]OFD Sender: No OFD packet to send [22:34:28]OFD Sender: No OFD packet to send [22:34:33]OFD Sender: No OFD packet to send [22:34:38]OFD Sender: No OFD packet to send [22:34:43]OFD Sender: No OFD packet to send [22:34:48]OFD Sender: No OFD packet to send [22:34:53]OFD Sender: No OFD packet to send [22:34:58]OFD Sender: No OFD packet to send [22:35:03]OFD Sender: No OFD packet to send [22:35:08]OFD Sender: No OFD packet to send [22:35:13]OFD Sender: No OFD packet to send [22:35:18]OFD Sender: No OFD packet to send [22:35:20]accept exits with 9 [22:35:20]New connection [22:35:20]New thread 3067395428 created [22:35:20]Thread 3067252068 joined [22:35:20]Waiting for new connection... [22:35:20] Sock 9.Parse request [22:35:20]Sock 9.Check first char [22:35:20]Sock 9.First char is OK [22:35:20]request: POST /json_proto HTTP/1.0 [22:35:20]Method: POST [22:35:20]URL: /json_proto [22:35:20]Method is POST - this is cgi request [22:35:20]url: /json_proto [22:35:20]query_string will be loaded in cgi processing [22:35:20]execute_cgi json_proto POST (null) [22:35:20]execute_cgi path=json_proto method=POST [22:35:20]POST find Content-Length [22:35:20]Host: 172.17.48.197:8080 [22:35:20]Content-Length: 1221 [22:35:20]Content-Type: application/json [22:35:20] [22:35:20]POST finish read [22:35:20]Found Content-Length = 1221 [22:35:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106368\u000A03.03.2024 22:31\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 7.060 x 70.90\u000A\u0418\u0422\u041E\u0413: 500.55\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3431881\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:35:20]execute_script... [22:35:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106368\u000A03.03.2024 22:31\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 7.060 x 70.90\u000A\u0418\u0422\u041E\u0413: 500.55\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3431881\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:35:20]POST & json_proto [22:35:20]process_json_proto [22:35:20]json parsed OK: [22:35:20]protocol is kg_v1.0 [22:35:20]action value=print_text [22:35:20]process_action print_text [22:35:20]cmd_print_text [22:35:20]ExternCall_PrintAddStr [22:35:20]wPrintStart [22:35:20]Write to MH i2c: 01 00 00 63 57 BA [22:35:20]Write i2c OK [22:35:20]MH_I2C_Read... [22:35:20]Read from MH i2c: 01 [22:35:20]MH_I2C_Read... [22:35:20]Read from MH i2c: 01 07 00 [22:35:20]MH_I2C_Read... [22:35:20]Read from MH i2c: 01 07 00 63 57 00 00 00 00 00 FF 0F CF [22:35:20]RasterBufferAndPrint [22:35:20]line *****ТОВАРНЫЙ ЧЕК***** [22:35:20]line АЗС 25 [22:35:20]line Партнер нефть [22:35:20]line 02508201610067 [22:35:20]line Кассир : Турдумбек у. К. [22:35:20]line Счет N : (1)1106368 [22:35:20]line 03.03.2024 22:31 [22:35:20]line ПРОДАЖА [22:35:20]line ТРК (МРК, ГНК): 31 [22:35:20]line Вид ГСМ : 2710194210 [22:35:20]line ДТ(л)-К-5 [22:35:20]line 7.060 x 70.90 [22:35:20]line ИТОГ: 500.55 [22:35:20]line Тип оплаты: Талоны: Топливные Талоны [22:35:20]line 3431881 [22:35:20]line ______________________ [22:35:20]line (подпись) [22:35:20]written 0, free lines is 4095 [22:35:20]Write to MH i2c: 01 00 00 78 57 CF [22:35:20]Write i2c OK [22:35:20]MH_I2C_Read... [22:35:20]Read from MH i2c: 01 [22:35:20]MH_I2C_Read... [22:35:20]Read from MH i2c: 01 07 00 [22:35:20]MH_I2C_Read... [22:35:20]Read from MH i2c: 01 07 00 78 57 00 00 00 00 00 F5 0D D8 [22:35:20]RasterBufferAndPrint [22:35:20]line [22:35:20]line [22:35:20]line [22:35:20]line [22:35:20]line [22:35:20]written 0, free lines is 3574 [22:35:20]MH_Cut [22:35:20]Write to MH i2c: D1 01 00 7F 57 01 A8 [22:35:20]Write i2c OK [22:35:20]MH_I2C_Read... [22:35:20]Read from MH i2c: D1 [22:35:20]MH_I2C_Read... [22:35:20]Read from MH i2c: D1 01 00 [22:35:20]MH_I2C_Read... [22:35:20]Read from MH i2c: D1 01 00 7F 57 00 A7 [22:35:20]Write to MH i2c: 01 00 00 80 57 D7 [22:35:20]Write i2c OK [22:35:20]MH_I2C_Read... [22:35:21]*** Cut start [22:35:21]*** Purtial cut [22:35:21]*** Stage 1: CUTSNS_PIN = 1 [22:35:23]Read from MH i2c: 01 [22:35:23]MH_I2C_Read... [22:35:23]*** Stop cut motor [22:35:23]*** Cut end [22:35:23]Read from MH i2c: 01 07 00 [22:35:23]MH_I2C_Read... [22:35:23]Read from MH i2c: 01 07 00 80 57 00 00 00 00 00 FF 0F EC [22:35:23]process_action print_text done [22:35:23]requested_data is exist [22:35:23]produce_requested_data [22:35:23]requested_item fm.sn is exist - process it [22:35:23]wFMCommunicate request_size=4 [22:35:23]MH_SAM_APDU [22:35:23]CAPDU: 80 11 00 00 [22:35:23]Write to MH i2c: E2 08 00 81 57 80 11 00 00 00 00 00 00 52 [22:35:23]Write i2c OK [22:35:23]MH_I2C_Read... [22:35:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:35:23]Read from MH i2c: E2 [22:35:23]MH_I2C_Read... [22:35:23]Read from MH i2c: E2 17 00 [22:35:23]MH_I2C_Read... [22:35:23]Read from MH i2c: E2 17 00 81 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 B0 [22:35:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [22:35:23]wFMCommunicate OK [22:35:23]requested_item fd.num is exist - process it [22:35:23]SAM_PROTO_GetFieldsCounters [22:35:23]wFMCommunicate request_size=4 [22:35:23]MH_SAM_APDU [22:35:23]CAPDU: 80 13 00 00 [22:35:23]Write to MH i2c: E2 08 00 82 57 80 13 00 00 00 00 00 00 55 [22:35:23]Write i2c OK [22:35:23]MH_I2C_Read... [22:35:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:35:23]Read from MH i2c: E2 [22:35:23]MH_I2C_Read... [22:35:23]Read from MH i2c: E2 62 00 [22:35:23]MH_I2C_Read... [22:35:23]Read from MH i2c: E2 62 00 82 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 F5 E1 01 00 0E 04 04 00 43 01 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 65 [22:35: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 F5 E1 01 00 0E 04 04 00 43 01 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 [22:35:23]wFMCommunicate OK [22:35:23]SAM_PROTO_GetFieldsCounters done [22:35:23]requested_item shift.num is exist - process it [22:35:23]requested_item shift.opened is exist - process it [22:35:23]req_shift_opened [22:35:23]FM_GetShiftState [22:35:23]SAM_PROTO_GetShiftState [22:35:23]wFMCommunicate request_size=4 [22:35:23]MH_SAM_APDU [22:35:23]CAPDU: 80 13 01 00 [22:35:23]Write to MH i2c: E2 08 00 83 57 80 13 01 00 00 00 00 00 57 [22:35:23]Write i2c OK [22:35:23]MH_I2C_Read... [22:35:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:35:23]Read from MH i2c: E2 [22:35:23]MH_I2C_Read... [22:35:23]Read from MH i2c: E2 0E 00 [22:35:23]MH_I2C_Read... [22:35:23]Read from MH i2c: E2 0E 00 83 57 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 19 [22:35:23]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [22:35:23]wFMCommunicate OK [22:35:23]SAM_PROTO_GetShiftState done [22:35:23]FM_GetShiftState done [22:35:23]req_shift_opened done [22:35:23]requested_item shift.open_date is exist - process it [22:35:23]req_shift_open_date [22:35:23]req_shift_open_date done [22:35:23]produce_requested_data done [22:35:23]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123381,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [22:35:23]process_action_free print_text [22:35:23]json_value_free [22:35:23]json_value_free done [22:35:23]process_json_proto returns [22:35:23]Send response to host [22:35:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123381,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [22:35:23]free response buf [22:35:23]execute_script done [22:35:23]execute_script returns [22:35:23]free content buf [22:35:23]Sock 9.Close socket [22:35:23]Sock 9.Thread stoped [22:35:23]OFD Sender: No OFD packet to send [22:35:28]OFD Sender: No OFD packet to send [22:35:33]OFD Sender: No OFD packet to send [22:35:38]OFD Sender: No OFD packet to send [22:35:43]OFD Sender: No OFD packet to send [22:35:48]OFD Sender: No OFD packet to send [22:35:53]OFD Sender: No OFD packet to send [22:35:58]OFD Sender: No OFD packet to send [22:36:03]OFD Sender: No OFD packet to send [22:36:08]OFD Sender: No OFD packet to send [22:36:13]OFD Sender: No OFD packet to send [22:36:18]OFD Sender: No OFD packet to send [22:36:23]OFD Sender: No OFD packet to send [22:36:28]OFD Sender: No OFD packet to send [22:36:33]OFD Sender: No OFD packet to send [22:36:38]OFD Sender: No OFD packet to send [22:36:44]OFD Sender: No OFD packet to send [22:36:49]OFD Sender: No OFD packet to send [22:36:54]OFD Sender: No OFD packet to send [22:36:59]OFD Sender: No OFD packet to send [22:37:02]accept exits with 7 [22:37:02]New connection [22:37:02]New thread 3067252068 created [22:37:02]Thread 3067395428 joined [22:37:02]Waiting for new connection... [22:37:02] Sock 7.Parse request [22:37:02]Sock 7.Check first char [22:37:02]Sock 7.First char is OK [22:37:02]request: POST /json_proto HTTP/1.0 [22:37:02]Method: POST [22:37:02]URL: /json_proto [22:37:02]Method is POST - this is cgi request [22:37:02]url: /json_proto [22:37:02]query_string will be loaded in cgi processing [22:37:02]execute_cgi json_proto POST (null) [22:37:02]execute_cgi path=json_proto method=POST [22:37:02]POST find Content-Length [22:37:02]Host: 172.17.48.197:8080 [22:37:02]Content-Length: 678 [22:37:02]Content-Type: application/json [22:37:02] [22:37:02]POST finish read [22:37:02]Found Content-Length = 678 [22:37:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106369", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 6.470, "sum" : 400.49, "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" ] } } [22:37:02]execute_script... [22:37: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)1106369", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 6.470, "sum" : 400.49, "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" ] } } [22:37:02]POST & json_proto [22:37:02]process_json_proto [22:37:02]json parsed OK: [22:37:02]protocol is kg_v1.0 [22:37:02]action value=close_receipt [22:37:02]process_action close_receipt [22:37:02]cmd_close_receipt [22:37:02]MH_GetDate [22:37:02]Write to MH i2c: F0 00 00 84 57 CA [22:37:02]Write i2c OK [22:37:02]MH_I2C_Read... [22:37:02]Read from MH i2c: F0 [22:37:02]MH_I2C_Read... [22:37:02]Read from MH i2c: F0 09 00 [22:37:02]MH_I2C_Read... [22:37:02]Read from MH i2c: F0 09 00 84 57 00 93 FB E4 65 6C AF E3 65 0D [22:37:02]GetLastDocTimeStamp 1709505256 [22:37:02]current date 1709505427 [22:37:02]FM_GetShiftState [22:37:02]SAM_PROTO_GetShiftState [22:37:02]wFMCommunicate request_size=4 [22:37:02]MH_SAM_APDU [22:37:02]CAPDU: 80 13 01 00 [22:37:02]Write to MH i2c: E2 08 00 85 57 80 13 01 00 00 00 00 00 59 [22:37:02]Write i2c OK [22:37:02]MH_I2C_Read... [22:37:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:37:02]Read from MH i2c: E2 [22:37:02]MH_I2C_Read... [22:37:02]Read from MH i2c: E2 0E 00 [22:37:02]MH_I2C_Read... [22:37:02]Read from MH i2c: E2 0E 00 85 57 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 1B [22:37:02]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [22:37:02]wFMCommunicate OK [22:37:02]SAM_PROTO_GetShiftState done [22:37:02]FM_GetShiftState done [22:37:02]opened in 1709425579 [22:37:02]opened+sec_in_day 1709511979 [22:37:02]quantity*price = 40049 [22:37:02]sum+1 = 40050 [22:37:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.53 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 239 03.03.2024 22:37 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123382 ФПД: 102460529407950 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T223707&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123382&fm=102460529407950&tin=02508201610067®Number=0000000000090573&sum=40000 [22:37:03]StoreToDocumentArchive [22:37:03]shift 323 fd 123382 [22:37:03]save to /storage/0323/doc_00123382 [22:37:03]save last doc name /storage/0323/doc_00123382 to /storage/kkm_last_doc_name [22:37:03]save OK [22:37:03]Clear old archive folders... [22:37:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:37:03]tlvbuf is 00DC0EA0 [22:37:03]SAM_PROTO_ClearQueue [22:37:03]wFMCommunicate request_size=4 [22:37:03]MH_SAM_APDU [22:37:03]CAPDU: 80 09 00 00 [22:37:03]Write to MH i2c: E2 08 00 92 57 80 09 00 00 00 00 00 00 5B [22:37:03]Write i2c OK [22:37:03]MH_I2C_Read... [22:37:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:37:03]Read from MH i2c: E2 [22:37:03]MH_I2C_Read... [22:37:03]Read from MH i2c: E2 03 00 [22:37:03]MH_I2C_Read... [22:37:03]Read from MH i2c: E2 03 00 92 57 00 90 00 5D [22:37:03]RAPDU: 90 00 [22:37:03]wFMCommunicate OK [22:37:03]SAM_PROTO_ClearQueue done [22:37:03]KKMCreateOFDPacket [22:37:03]OFDProtocolAddRootSTLVToBuf [22:37:03]FM_MakeSignedData [22:37:03]FM_MakeSignedData [22:37:03]SAM_PROTO_SignData [22:37:03]wFMCommunicate request_size=4 [22:37:03]MH_SAM_APDU [22:37:03]CAPDU: 80 0D 01 02 [22:37:03]Write to MH i2c: E2 08 00 93 57 80 0D 01 02 00 00 00 00 63 [22:37:03]Write i2c OK [22:37:03]MH_I2C_Read... [22:37:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:37:03]Read from MH i2c: E2 [22:37:03]MH_I2C_Read... [22:37:03]Read from MH i2c: E2 03 00 [22:37:03]MH_I2C_Read... [22:37:03]Read from MH i2c: E2 03 00 93 57 00 90 00 5E [22:37:03]RAPDU: 90 00 [22:37:03]wFMCommunicate OK [22:37:03]wFMCommunicate request_size=255 [22:37:03]MH_SAM_APDU [22:37: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 35 FF 03 08 00 03 46 19 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 71 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 9D 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 EF 00 00 00 F4 03 04 00 93 FB E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 F6 E1 01 00 35 04 06 00 5D [22:37:03]Write to MH i2c: E2 02 01 94 57 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 19 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 71 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 9D 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 EF 00 00 00 F4 03 04 00 93 FB E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 F6 E1 01 00 35 04 06 00 5D 00 00 30 [22:37:03]Write i2c OK [22:37:03]MH_I2C_Read... [22:37:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:37:03]Read from MH i2c: E2 [22:37:03]MH_I2C_Read... [22:37:03]Read from MH i2c: E2 03 00 [22:37:03]MH_I2C_Read... [22:37:03]Read from MH i2c: E2 03 00 94 57 00 90 00 5F [22:37:03]RAPDU: 90 00 [22:37:03]wFMCommunicate OK [22:37:03]wFMCommunicate request_size=10 [22:37:03]MH_SAM_APDU [22:37:03]CAPDU: 80 0D 02 02 05 2F F3 75 77 CE [22:37:03]Write to MH i2c: E2 0D 00 95 57 80 0D 02 02 05 00 2F F3 75 77 CE 00 00 4C [22:37:03]Write i2c OK [22:37:03]MH_I2C_Read... [22:37:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:37:03]Read from MH i2c: E2 [22:37:03]MH_I2C_Read... [22:37:03]Read from MH i2c: E2 03 00 [22:37:03]MH_I2C_Read... [22:37:03]Read from MH i2c: E2 03 00 95 57 00 90 00 60 [22:37:03]RAPDU: 90 00 [22:37:03]wFMCommunicate OK [22:37:03]wFMCommunicate request_size=4 [22:37:03]MH_SAM_APDU [22:37:03]CAPDU: 80 0D 03 02 [22:37:03]Write to MH i2c: E2 08 00 96 57 80 0D 03 02 00 00 00 00 68 [22:37:03]Write i2c OK [22:37:03]MH_I2C_Read... [22:37:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:37:04]Read from MH i2c: E2 [22:37:04]MH_I2C_Read... [22:37:04]Read from MH i2c: E2 0B 00 [22:37:04]MH_I2C_Read... [22:37:04]Read from MH i2c: E2 0B 00 96 57 00 82 21 BB 34 EB E5 C7 EE 90 00 80 [22:37:04]RAPDU: 82 21 BB 34 EB E5 C7 EE 90 00 [22:37:04]wFMCommunicate OK [22:37:04]SAM_PROTO_SignData done [22:37:04]FM_MakeSignedData done [22:37:04]CreateOFDProtocolMessage [22:37:04]wFMCommunicate request_size=4 [22:37:04]MH_SAM_APDU [22:37:04]CAPDU: 80 11 00 00 [22:37:04]Write to MH i2c: E2 08 00 97 57 80 11 00 00 00 00 00 00 68 [22:37:04]Write i2c OK [22:37:04]MH_I2C_Read... [22:37:04]OFD Sender: No OFD packet to send [22:37:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:37:04]Read from MH i2c: E2 [22:37:04]MH_I2C_Read... [22:37:04]Read from MH i2c: E2 17 00 [22:37:04]MH_I2C_Read... [22:37:04]Read from MH i2c: E2 17 00 97 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 C6 [22:37:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [22:37:04]wFMCommunicate OK [22:37:04]CreateOFDProtocolMessage done [22:37:04]OFDSenderStorePacket 123382 [22:37:04]StoreOFDPacket docnum=123382 [22:37:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 E8 EF 07 01 92 2F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 19 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 71 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 9D 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 EF 00 00 00 F4 03 04 00 93 FB E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 F6 E1 01 00 35 04 06 00 5D 2F F3 75 77 CE 82 21 BB 34 EB E5 C7 EE [22:37:04]CheckFolder [22:37:04]dirname=/storage/ofd_packets [22:37:04]CheckFolder done [22:37:04]ProducePacketName [22:37:04]name=ofd_packets/00123382 [22:37:04]NVStorageSaveData ofd_packets/00123382 [22:37:04]File name is /storage/ofd_packets/00123382 [22:37:04]Write 301 bytes [22:37:04]NVStorageSaveData done [22:37:04]OFDSenderStorePacket done [22:37:04]KKMCreateOFDPacket done [22:37:04]NVStorageSaveData kkm_last_timestamp [22:37:04]File name is /storage/kkm_last_timestamp [22:37:04]Write 4 bytes [22:37:04]NVStorageSaveData done [22:37:04]ExternCall_PrintAddStr [22:37:04]wPrintStart [22:37:04]Write to MH i2c: 01 00 00 98 57 EF [22:37:04]Write i2c OK [22:37:04]MH_I2C_Read... [22:37:04]Read from MH i2c: 01 [22:37:04]MH_I2C_Read... [22:37:04]Read from MH i2c: 01 07 00 [22:37:04]MH_I2C_Read... [22:37:04]Read from MH i2c: 01 07 00 98 57 00 00 00 00 00 FF 0F 04 [22:37:04]RasterBufferAndPrint [22:37:04]line Счет N : (1)1106369 [22:37:04]line ИНН: 02508201610067 [22:37:04]line Контрольно-Кассовый Чек [22:37:04]line ПРОДАЖА [22:37:04]line ТРК (МРК, ГНК) : 52 [22:37:04]line Товар: 2710124130 [22:37:04]line Аи-92-К-5 [22:37:04]line 6.470 * 61.90 [22:37:04]line = 400.49 [22:37:04]line НДС 12% НСП 1% [22:37:04]line > о реализуемом товаре [22:37:04]line ОКРУГЛЕНИЕ: -0.49 [22:37:04]line ИТОГО: 400.00 [22:37:04]line Внесено: 400.00 [22:37:04]line СДАЧА: 0.00 [22:37:04]line НСП 1% : 3.54 [22:37:04]line НДС 12% : 42.53 [22:37:04]line Наличными: 400.00 [22:37:04]line Безнал.: 0.00 [22:37:04]line Место: АЗС № 25 "Партнер Нефть" [22:37:04]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [22:37:04]line СНО: Общий режим [22:37:04]line Чек 239 03.03.2024 22:37 [22:37:04]line Смена: 323 ФФД: 1.0 [22:37:04]line ЗНМ: 0300000019 [22:37:04]line РНМ: 0000000000090573 [22:37:04]line Версия ККМ: 001 [22:37:04]line ФМ: 0000000000874798 [22:37:04]line ФД: 123382 [22:37:04]line ФПД: 102460529407950 [22:37:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T223707&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123382&fm=102460529407950&tin=02508201610067®Number=0000000000090573&sum=40000 [22:37:04]OFD Sender: Processing packet 123382 [packets to send 112, broken 111] [22:37:04]ProducePacketName [22:37:04]name=ofd_packets/00123382 [22:37:04]OFD Sender: To server: pG, [22:37:04]CommunicateWithHost lk.salyk.kg:30040 [22:37:04]written 0, free lines is 4095 [22:37:04]ConnectInit lk.salyk.kg [22:37:04]Connected sock=10 [22:37: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 37 39 38 0F 01 00 00 E8 EF 07 01 92 2F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 19 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 71 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 9D 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 EF 00 00 00 F4 03 04 00 93 FB E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 F6 E1 01 00 35 04 06 00 5D 2F F3 75 77 CE 82 21 BB 34 EB E5 C7 EE [22:37:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 8D 07 47 00 BE 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 37 39 38 10 04 04 00 F6 E1 01 00 F4 03 04 00 BE A7 E4 65 B6 04 01 00 00 C2 10 3B D6 07 0E 52 A5 [22:37:04]CommunicateWithHost err = 0 [22:37:04]CheckOFDResponse [22:37:04]1017 (14) - 77093643461234 [22:37:04]1041 (16) - 0000000000874798 [22:37:04]1040 (4) - 123382 [22:37:04]1012 (4) - 03.03.2024 16:39 [22:37:04]1206 (1) - 0 [22:37:04]OFD Sender: Remove packet 123382 [22:37:04]ProducePacketName [22:37:04]name=ofd_packets/00123382 [22:37:04]NVStorageDeleteData [22:37:04]Write to MH i2c: 01 00 00 C3 57 1A [22:37:04]Write i2c OK [22:37:04]MH_I2C_Read... [22:37:04]Read from MH i2c: 01 [22:37:04]MH_I2C_Read... [22:37:04]Read from MH i2c: 01 07 00 [22:37:04]MH_I2C_Read... [22:37:04]Read from MH i2c: 01 07 00 C3 57 00 00 00 00 00 FA 0C 27 [22:37:04]RasterBufferAndPrint [22:37:04]line [22:37:04]line [22:37:04]line [22:37:04]line [22:37:04]line [22:37:04]written 0, free lines is 3331 [22:37:04]MH_Cut [22:37:04]Write to MH i2c: D1 01 00 CA 57 01 F3 [22:37:04]Write i2c OK [22:37:04]MH_I2C_Read... [22:37:04]Read from MH i2c: D1 [22:37:04]MH_I2C_Read... [22:37:04]Read from MH i2c: D1 01 00 [22:37:04]MH_I2C_Read... [22:37:04]Read from MH i2c: D1 01 00 CA 57 00 F2 [22:37:04]Write to MH i2c: 01 00 00 CB 57 22 [22:37:04]Write i2c OK [22:37:04]MH_I2C_Read... [22:37:05]OFD Sender: No OFD packet to send [22:37:05]*** Cut start [22:37:05]*** Purtial cut [22:37:05]*** Stage 1: CUTSNS_PIN = 1 [22:37:07]Read from MH i2c: 01 [22:37:07]MH_I2C_Read... [22:37:07]*** Stop cut motor [22:37:07]*** Cut end [22:37:07]Read from MH i2c: 01 07 00 [22:37:07]MH_I2C_Read... [22:37:07]Read from MH i2c: 01 07 00 CB 57 00 00 00 00 00 FF 0F 37 [22:37:07]process_action close_receipt done [22:37:07]requested_data is exist [22:37:07]produce_requested_data [22:37:07]requested_item fm.sn is exist - process it [22:37:07]wFMCommunicate request_size=4 [22:37:07]MH_SAM_APDU [22:37:07]CAPDU: 80 11 00 00 [22:37:07]Write to MH i2c: E2 08 00 CC 57 80 11 00 00 00 00 00 00 9D [22:37:07]Write i2c OK [22:37:07]MH_I2C_Read... [22:37:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:37:07]Read from MH i2c: E2 [22:37:07]MH_I2C_Read... [22:37:07]Read from MH i2c: E2 17 00 [22:37:07]MH_I2C_Read... [22:37:07]Read from MH i2c: E2 17 00 CC 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 FB [22:37:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [22:37:07]wFMCommunicate OK [22:37:07]requested_item fd.num is exist - process it [22:37:07]SAM_PROTO_GetFieldsCounters [22:37:07]wFMCommunicate request_size=4 [22:37:07]MH_SAM_APDU [22:37:07]CAPDU: 80 13 00 00 [22:37:07]Write to MH i2c: E2 08 00 CD 57 80 13 00 00 00 00 00 00 A0 [22:37:07]Write i2c OK [22:37:07]MH_I2C_Read... [22:37:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:37:07]Read from MH i2c: E2 [22:37:07]MH_I2C_Read... [22:37:07]Read from MH i2c: E2 62 00 [22:37:07]MH_I2C_Read... [22:37:07]Read from MH i2c: E2 62 00 CD 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 F6 E1 01 00 0E 04 04 00 43 01 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 B4 [22:37: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 F6 E1 01 00 0E 04 04 00 43 01 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 [22:37:07]wFMCommunicate OK [22:37:07]SAM_PROTO_GetFieldsCounters done [22:37:07]requested_item shift.num is exist - process it [22:37:07]requested_item shift.opened is exist - process it [22:37:07]req_shift_opened [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 CE 57 80 13 01 00 00 00 00 00 A2 [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 CE 57 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 64 [22:37:07]RAPDU: 09 00 01 AB C3 E3 65 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]req_shift_opened done [22:37:07]requested_item shift.open_date is exist - process it [22:37:07]req_shift_open_date [22:37:07]req_shift_open_date done [22:37:07]produce_requested_data done [22:37:07]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123382,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [22:37:07]process_action_free close_receipt [22:37:07]json_value_free [22:37:07]json_value_free done [22:37:07]process_json_proto returns [22:37:07]Send response to host [22:37:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123382,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [22:37:07]free response buf [22:37:07]execute_script done [22:37:07]execute_script returns [22:37:07]free content buf [22:37:07]Sock 7.Close socket [22:37:07]Sock 7.Thread stoped [22:37:10]OFD Sender: No OFD packet to send [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:43]accept exits with 9 [22:38:43]New connection [22:38:43]New thread 3067395428 created [22:38:43]Thread 3067252068 joined [22:38:43]Waiting for new connection... [22:38:43] Sock 9.Parse request [22:38:43]Sock 9.Check first char [22:38:43]Sock 9.First char is OK [22:38:43]request: POST /json_proto HTTP/1.0 [22:38:43]Method: POST [22:38:43]URL: /json_proto [22:38:43]Method is POST - this is cgi request [22:38:43]url: /json_proto [22:38:43]query_string will be loaded in cgi processing [22:38:43]execute_cgi json_proto POST (null) [22:38:43]execute_cgi path=json_proto method=POST [22:38:43]POST find Content-Length [22:38:43]Host: 172.17.48.197:8080 [22:38:43]Content-Length: 683 [22:38:43]Content-Type: application/json [22:38:43] [22:38:43]POST finish read [22:38:43]Found Content-Length = 683 [22:38:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106371", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "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" ] } } [22:38:43]execute_script... [22:38: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)1106371", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "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" ] } } [22:38:43]POST & json_proto [22:38:43]process_json_proto [22:38:43]json parsed OK: [22:38:43]protocol is kg_v1.0 [22:38:43]action value=close_receipt [22:38:43]process_action close_receipt [22:38:43]cmd_close_receipt [22:38:43]MH_GetDate [22:38:43]Write to MH i2c: F0 00 00 CF 57 15 [22:38:43]Write i2c OK [22:38:43]MH_I2C_Read... [22:38:43]Read from MH i2c: F0 [22:38:43]MH_I2C_Read... [22:38:43]Read from MH i2c: F0 09 00 [22:38:43]MH_I2C_Read... [22:38:43]Read from MH i2c: F0 09 00 CF 57 00 F9 FB E4 65 6C AF E3 65 BE [22:38:43]GetLastDocTimeStamp 1709505427 [22:38:43]current date 1709505529 [22:38:43]FM_GetShiftState [22:38:43]SAM_PROTO_GetShiftState [22:38:43]wFMCommunicate request_size=4 [22:38:43]MH_SAM_APDU [22:38:43]CAPDU: 80 13 01 00 [22:38:43]Write to MH i2c: E2 08 00 D0 57 80 13 01 00 00 00 00 00 A4 [22:38:43]Write i2c OK [22:38:43]MH_I2C_Read... [22:38:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:38:43]Read from MH i2c: E2 [22:38:43]MH_I2C_Read... [22:38:43]Read from MH i2c: E2 0E 00 [22:38:43]MH_I2C_Read... [22:38:43]Read from MH i2c: E2 0E 00 D0 57 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 66 [22:38:43]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [22:38:43]wFMCommunicate OK [22:38:43]SAM_PROTO_GetShiftState done [22:38:43]FM_GetShiftState done [22:38:43]opened in 1709425579 [22:38:43]opened+sec_in_day 1709511979 [22:38:43]quantity*price = 100030 [22:38:43]sum+1 = 100031 [22:38:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 240 03.03.2024 22:38 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123383 ФПД: 272237139215753 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T223849&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123383&fm=272237139215753&tin=02508201610067®Number=0000000000090573&sum=100000 [22:38:44]StoreToDocumentArchive [22:38:44]shift 323 fd 123383 [22:38:44]save to /storage/0323/doc_00123383 [22:38:44]save last doc name /storage/0323/doc_00123383 to /storage/kkm_last_doc_name [22:38:44]save OK [22:38:44]Clear old archive folders... [22:38:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:38:44]tlvbuf is 00D9DEF0 [22:38:44]SAM_PROTO_ClearQueue [22:38:44]wFMCommunicate request_size=4 [22:38:44]MH_SAM_APDU [22:38:44]CAPDU: 80 09 00 00 [22:38:44]Write to MH i2c: E2 08 00 DD 57 80 09 00 00 00 00 00 00 A6 [22:38:44]Write i2c OK [22:38:44]MH_I2C_Read... [22:38:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:38:44]Read from MH i2c: E2 [22:38:44]MH_I2C_Read... [22:38:44]Read from MH i2c: E2 03 00 [22:38:44]MH_I2C_Read... [22:38:44]Read from MH i2c: E2 03 00 DD 57 00 90 00 A8 [22:38:44]RAPDU: 90 00 [22:38:44]wFMCommunicate OK [22:38:44]SAM_PROTO_ClearQueue done [22:38:44]KKMCreateOFDPacket [22:38:44]OFDProtocolAddRootSTLVToBuf [22:38:44]FM_MakeSignedData [22:38:44]FM_MakeSignedData [22:38:44]SAM_PROTO_SignData [22:38:44]wFMCommunicate request_size=4 [22:38:44]MH_SAM_APDU [22:38:44]CAPDU: 80 0D 01 02 [22:38:44]Write to MH i2c: E2 08 00 DE 57 80 0D 01 02 00 00 00 00 AE [22:38:44]Write i2c OK [22:38:44]MH_I2C_Read... [22:38:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:38:45]Read from MH i2c: E2 [22:38:45]MH_I2C_Read... [22:38:45]Read from MH i2c: E2 03 00 [22:38:45]MH_I2C_Read... [22:38:45]Read from MH i2c: E2 03 00 DE 57 00 90 00 A9 [22:38:45]RAPDU: 90 00 [22:38:45]wFMCommunicate OK [22:38:45]wFMCommunicate request_size=255 [22:38:45]MH_SAM_APDU [22:38: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 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 F0 00 00 00 F4 03 04 00 F9 FB E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 F7 E1 01 00 35 04 06 00 F7 [22:38:45]Write to MH i2c: E2 02 01 DF 57 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 F0 00 00 00 F4 03 04 00 F9 FB E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 F7 E1 01 00 35 04 06 00 F7 00 00 5B [22:38:45]Write i2c OK [22:38:45]MH_I2C_Read... [22:38:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:38:45]Read from MH i2c: E2 [22:38:45]MH_I2C_Read... [22:38:45]Read from MH i2c: E2 03 00 [22:38:45]MH_I2C_Read... [22:38:45]Read from MH i2c: E2 03 00 DF 57 00 90 00 AA [22:38:45]RAPDU: 90 00 [22:38:45]wFMCommunicate OK [22:38:45]wFMCommunicate request_size=10 [22:38:45]MH_SAM_APDU [22:38:45]CAPDU: 80 0D 02 02 05 99 25 FA 45 89 [22:38:45]Write to MH i2c: E2 0D 00 E0 57 80 0D 02 02 05 00 99 25 FA 45 89 00 00 41 [22:38:45]Write i2c OK [22:38:45]MH_I2C_Read... [22:38:45]OFD Sender: No OFD packet to send [22:38:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:38:45]Read from MH i2c: E2 [22:38:45]MH_I2C_Read... [22:38:45]Read from MH i2c: E2 03 00 [22:38:45]MH_I2C_Read... [22:38:45]Read from MH i2c: E2 03 00 E0 57 00 90 00 AB [22:38:45]RAPDU: 90 00 [22:38:45]wFMCommunicate OK [22:38:45]wFMCommunicate request_size=4 [22:38:45]MH_SAM_APDU [22:38:45]CAPDU: 80 0D 03 02 [22:38:45]Write to MH i2c: E2 08 00 E1 57 80 0D 03 02 00 00 00 00 B3 [22:38:45]Write i2c OK [22:38:45]MH_I2C_Read... [22:38:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:38:45]Read from MH i2c: E2 [22:38:45]MH_I2C_Read... [22:38:45]Read from MH i2c: E2 0B 00 [22:38:45]MH_I2C_Read... [22:38:45]Read from MH i2c: E2 0B 00 E1 57 00 EE B0 02 FC B4 29 86 3A 90 00 ED [22:38:45]RAPDU: EE B0 02 FC B4 29 86 3A 90 00 [22:38:45]wFMCommunicate OK [22:38:45]SAM_PROTO_SignData done [22:38:45]FM_MakeSignedData done [22:38:45]CreateOFDProtocolMessage [22:38:45]wFMCommunicate request_size=4 [22:38:45]MH_SAM_APDU [22:38:45]CAPDU: 80 11 00 00 [22:38:45]Write to MH i2c: E2 08 00 E2 57 80 11 00 00 00 00 00 00 B3 [22:38:45]Write i2c OK [22:38:45]MH_I2C_Read... [22:38:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:38:45]Read from MH i2c: E2 [22:38:45]MH_I2C_Read... [22:38:45]Read from MH i2c: E2 17 00 [22:38:45]MH_I2C_Read... [22:38:45]Read from MH i2c: E2 17 00 E2 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 11 [22:38:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [22:38:45]wFMCommunicate OK [22:38:45]CreateOFDProtocolMessage done [22:38:45]OFDSenderStorePacket 123383 [22:38:45]StoreOFDPacket docnum=123383 [22:38:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 05 7A 07 01 DD 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 F0 00 00 00 F4 03 04 00 F9 FB E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 F7 E1 01 00 35 04 06 00 F7 99 25 FA 45 89 EE B0 02 FC B4 29 86 3A [22:38:45]CheckFolder [22:38:45]dirname=/storage/ofd_packets [22:38:45]CheckFolder done [22:38:45]ProducePacketName [22:38:45]name=ofd_packets/00123383 [22:38:45]NVStorageSaveData ofd_packets/00123383 [22:38:45]File name is /storage/ofd_packets/00123383 [22:38:45]Write 301 bytes [22:38:45]NVStorageSaveData done [22:38:45]OFDSenderStorePacket done [22:38:45]KKMCreateOFDPacket done [22:38:45]NVStorageSaveData kkm_last_timestamp [22:38:45]File name is /storage/kkm_last_timestamp [22:38:45]Write 4 bytes [22:38:45]NVStorageSaveData done [22:38:45]ExternCall_PrintAddStr [22:38:45]wPrintStart [22:38:45]Write to MH i2c: 01 00 00 E3 57 3A [22:38:45]Write i2c OK [22:38:45]MH_I2C_Read... [22:38:45]Read from MH i2c: 01 [22:38:45]MH_I2C_Read... [22:38:45]Read from MH i2c: 01 07 00 [22:38:45]MH_I2C_Read... [22:38:45]Read from MH i2c: 01 07 00 E3 57 00 00 00 00 00 FF 0F 4F [22:38:45]RasterBufferAndPrint [22:38:45]line Счет N : (1)1106371 [22:38:45]line ИНН: 02508201610067 [22:38:45]line Контрольно-Кассовый Чек [22:38:45]line ПРОДАЖА [22:38:45]line ТРК (МРК, ГНК) : 52 [22:38:45]line Товар: 2710124130 [22:38:45]line Аи-92-К-5 [22:38:45]line 16.160 * 61.90 [22:38:45]line = 1000.30 [22:38:45]line НДС 12% НСП 1% [22:38:45]line > о реализуемом товаре [22:38:45]line ОКРУГЛЕНИЕ: -0.30 [22:38:45]line ИТОГО: 1000.00 [22:38:45]line Внесено: 1000.00 [22:38:45]line СДАЧА: 0.00 [22:38:45]line НСП 1% : 8.85 [22:38:45]line НДС 12% : 106.23 [22:38:45]line Наличными: 1000.00 [22:38:45]line Безнал.: 0.00 [22:38:45]line Место: АЗС № 25 "Партнер Нефть" [22:38:45]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [22:38:45]line СНО: Общий режим [22:38:45]line Чек 240 03.03.2024 22:38 [22:38:45]line Смена: 323 ФФД: 1.0 [22:38:45]line ЗНМ: 0300000019 [22:38:45]line РНМ: 0000000000090573 [22:38:45]line Версия ККМ: 001 [22:38:45]line ФМ: 0000000000874798 [22:38:45]line ФД: 123383 [22:38:45]line ФПД: 272237139215753 [22:38:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T223849&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123383&fm=272237139215753&tin=02508201610067®Number=0000000000090573&sum=100000 [22:38:45]OFD Sender: Processing packet 123383 [packets to send 112, broken 111] [22:38:45]ProducePacketName [22:38:45]name=ofd_packets/00123383 [22:38:45]OFD Sender: To server: pG, [22:38:45]CommunicateWithHost lk.salyk.kg:30040 [22:38:45]ConnectInit lk.salyk.kg [22:38:45]written 0, free lines is 4095 [22:38:45]Connected sock=10 [22:38:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 05 7A 07 01 DD 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 F0 00 00 00 F4 03 04 00 F9 FB E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 F7 E1 01 00 35 04 06 00 F7 99 25 FA 45 89 EE B0 02 FC B4 29 86 3A [22:38:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 0F 67 47 00 ED 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 37 39 38 10 04 04 00 F7 E1 01 00 F4 03 04 00 23 A8 E4 65 B6 04 01 00 00 C7 E0 C6 46 81 D8 A4 66 [22:38:46]CommunicateWithHost err = 0 [22:38:46]CheckOFDResponse [22:38:46]1017 (14) - 77093643461234 [22:38:46]1041 (16) - 0000000000874798 [22:38:46]1040 (4) - 123383 [22:38:46]1012 (4) - 03.03.2024 16:41 [22:38:46]1206 (1) - 0 [22:38:46]OFD Sender: Remove packet 123383 [22:38:46]ProducePacketName [22:38:46]name=ofd_packets/00123383 [22:38:46]NVStorageDeleteData [22:38:46]Write to MH i2c: 01 00 00 0E 58 66 [22:38:46]Write i2c OK [22:38:46]MH_I2C_Read... [22:38:46]Read from MH i2c: 01 [22:38:46]MH_I2C_Read... [22:38:46]Read from MH i2c: 01 07 00 [22:38:46]MH_I2C_Read... [22:38:46]Read from MH i2c: 01 07 00 0E 58 00 00 00 00 00 FB 0C 74 [22:38:46]RasterBufferAndPrint [22:38:46]line [22:38:46]line [22:38:46]line [22:38:46]line [22:38:46]line [22:38:46]written 0, free lines is 3332 [22:38:46]MH_Cut [22:38:46]Write to MH i2c: D1 01 00 15 58 01 3F [22:38:46]Write i2c OK [22:38:46]MH_I2C_Read... [22:38:46]Read from MH i2c: D1 [22:38:46]MH_I2C_Read... [22:38:46]Read from MH i2c: D1 01 00 [22:38:46]MH_I2C_Read... [22:38:46]Read from MH i2c: D1 01 00 15 58 00 3E [22:38:46]Write to MH i2c: 01 00 00 16 58 6E [22:38:46]Write i2c OK [22:38:46]MH_I2C_Read... [22:38:46]OFD Sender: No OFD packet to send [22:38:46]*** Cut start [22:38:46]*** Purtial cut [22:38:46]*** Stage 1: CUTSNS_PIN = 1 [22:38:48]Read from MH i2c: 01 [22:38:48]MH_I2C_Read... [22:38:48]*** Stop cut motor [22:38:48]*** Cut end [22:38:48]Read from MH i2c: 01 07 00 [22:38:48]MH_I2C_Read... [22:38:48]Read from MH i2c: 01 07 00 16 58 00 00 00 00 00 FF 0F 83 [22:38:48]process_action close_receipt done [22:38:48]requested_data is exist [22:38:48]produce_requested_data [22:38:48]requested_item fm.sn is exist - process it [22:38:48]wFMCommunicate request_size=4 [22:38:48]MH_SAM_APDU [22:38:48]CAPDU: 80 11 00 00 [22:38:48]Write to MH i2c: E2 08 00 17 58 80 11 00 00 00 00 00 00 E9 [22:38:48]Write i2c OK [22:38:48]MH_I2C_Read... [22:38:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:38:49]Read from MH i2c: E2 [22:38:49]MH_I2C_Read... [22:38:49]Read from MH i2c: E2 17 00 [22:38:49]MH_I2C_Read... [22:38:49]Read from MH i2c: E2 17 00 17 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 47 [22:38:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [22:38:49]wFMCommunicate OK [22:38:49]requested_item fd.num is exist - process it [22:38:49]SAM_PROTO_GetFieldsCounters [22:38:49]wFMCommunicate request_size=4 [22:38:49]MH_SAM_APDU [22:38:49]CAPDU: 80 13 00 00 [22:38:49]Write to MH i2c: E2 08 00 18 58 80 13 00 00 00 00 00 00 EC [22:38:49]Write i2c OK [22:38:49]MH_I2C_Read... [22:38:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:38:49]Read from MH i2c: E2 [22:38:49]MH_I2C_Read... [22:38:49]Read from MH i2c: E2 62 00 [22:38:49]MH_I2C_Read... [22:38:49]Read from MH i2c: E2 62 00 18 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 F7 E1 01 00 0E 04 04 00 43 01 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 04 [22:38: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 F7 E1 01 00 0E 04 04 00 43 01 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 [22:38:49]wFMCommunicate OK [22:38:49]SAM_PROTO_GetFieldsCounters done [22:38:49]requested_item shift.num is exist - process it [22:38:49]requested_item shift.opened is exist - process it [22:38:49]req_shift_opened [22:38:49]FM_GetShiftState [22:38:49]SAM_PROTO_GetShiftState [22:38:49]wFMCommunicate request_size=4 [22:38:49]MH_SAM_APDU [22:38:49]CAPDU: 80 13 01 00 [22:38:49]Write to MH i2c: E2 08 00 19 58 80 13 01 00 00 00 00 00 EE [22:38:49]Write i2c OK [22:38:49]MH_I2C_Read... [22:38:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:38:49]Read from MH i2c: E2 [22:38:49]MH_I2C_Read... [22:38:49]Read from MH i2c: E2 0E 00 [22:38:49]MH_I2C_Read... [22:38:49]Read from MH i2c: E2 0E 00 19 58 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 B0 [22:38:49]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [22:38:49]wFMCommunicate OK [22:38:49]SAM_PROTO_GetShiftState done [22:38:49]FM_GetShiftState done [22:38:49]req_shift_opened done [22:38:49]requested_item shift.open_date is exist - process it [22:38:49]req_shift_open_date [22:38:49]req_shift_open_date done [22:38:49]produce_requested_data done [22:38:49]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123383,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [22:38:49]process_action_free close_receipt [22:38:49]json_value_free [22:38:49]json_value_free done [22:38:49]process_json_proto returns [22:38:49]Send response to host [22:38:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123383,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [22:38:49]free response buf [22:38:49]execute_script done [22:38:49]execute_script returns [22:38:49]free content buf [22:38:49]Sock 9.Close socket [22:38:49]Sock 9.Thread stoped [22:38:51]OFD Sender: No OFD packet to send [22:38:52]accept exits with 7 [22:38:52]New connection [22:38:52]New thread 3067252068 created [22:38:52]Thread 3067395428 joined [22:38:52]Waiting for new connection... [22:38:52] Sock 7.Parse request [22:38:52]Sock 7.Check first char [22:38:52]Sock 7.First char is OK [22:38:52]request: POST /json_proto HTTP/1.0 [22:38:52]Method: POST [22:38:52]URL: /json_proto [22:38:52]Method is POST - this is cgi request [22:38:52]url: /json_proto [22:38:52]query_string will be loaded in cgi processing [22:38:52]execute_cgi json_proto POST (null) [22:38:52]execute_cgi path=json_proto method=POST [22:38:52]POST find Content-Length [22:38:52]Host: 172.17.48.197:8080 [22:38:52]Content-Length: 740 [22:38:52]Content-Type: application/json [22:38:52] [22:38:52]POST finish read [22:38:52]Found Content-Length = 740 [22:38:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 123383, "base_FM": "0000000000874798", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106371", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "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" ] } } [22:38:52]execute_script... [22:38:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 123383, "base_FM": "0000000000874798", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106371", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "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" ] } } [22:38:52]POST & json_proto [22:38:52]process_json_proto [22:38:52]json parsed OK: [22:38:52]protocol is kg_v1.0 [22:38:52]action value=close_receipt [22:38:52]process_action close_receipt [22:38:52]cmd_close_receipt [22:38:52]MH_GetDate [22:38:52]Write to MH i2c: F0 00 00 1A 58 61 [22:38:52]Write i2c OK [22:38:52]MH_I2C_Read... [22:38:52]Read from MH i2c: F0 [22:38:52]MH_I2C_Read... [22:38:52]Read from MH i2c: F0 09 00 [22:38:52]MH_I2C_Read... [22:38:52]Read from MH i2c: F0 09 00 1A 58 00 01 FC E4 65 6C AF E3 65 13 [22:38:52]GetLastDocTimeStamp 1709505529 [22:38:52]current date 1709505537 [22:38:52]FM_GetShiftState [22:38:52]SAM_PROTO_GetShiftState [22:38:52]wFMCommunicate request_size=4 [22:38:52]MH_SAM_APDU [22:38:52]CAPDU: 80 13 01 00 [22:38:52]Write to MH i2c: E2 08 00 1B 58 80 13 01 00 00 00 00 00 F0 [22:38:52]Write i2c OK [22:38:52]MH_I2C_Read... [22:38:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:38:52]Read from MH i2c: E2 [22:38:52]MH_I2C_Read... [22:38:52]Read from MH i2c: E2 0E 00 [22:38:52]MH_I2C_Read... [22:38:52]Read from MH i2c: E2 0E 00 1B 58 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 B2 [22:38:52]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [22:38:52]wFMCommunicate OK [22:38:52]SAM_PROTO_GetShiftState done [22:38:52]FM_GetShiftState done [22:38:52]opened in 1709425579 [22:38:52]opened+sec_in_day 1709511979 [22:38:52]quantity*price = 100030 [22:38:52]sum+1 = 100031 [22:38:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 241 03.03.2024 22:38 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФД осн.: 123383 ФМ осн.: 0000000000874798 ФМ: 0000000000874798 ФД: 123384 ФПД: 8270902907567 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T223857&type=2&operation_type=1&fn_number=0000000000874798&fd_number=123384&fm=8270902907567&tin=02508201610067®Number=0000000000090573&sum=100000 [22:38:53]StoreToDocumentArchive [22:38:53]shift 323 fd 123384 [22:38:53]save to /storage/0323/doc_00123384 [22:38:53]save last doc name /storage/0323/doc_00123384 to /storage/kkm_last_doc_name [22:38:53]save OK [22:38:53]Clear old archive folders... [22:38:53]ProcessDocumentItem done err = 0, tmpTLVsize=279 [22:38:53]tlvbuf is 00F67360 [22:38:53]SAM_PROTO_ClearQueue [22:38:53]wFMCommunicate request_size=4 [22:38:53]MH_SAM_APDU [22:38:53]CAPDU: 80 09 00 00 [22:38:53]Write to MH i2c: E2 08 00 2A 58 80 09 00 00 00 00 00 00 F4 [22:38:53]Write i2c OK [22:38:53]MH_I2C_Read... [22:38:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:38:53]Read from MH i2c: E2 [22:38:53]MH_I2C_Read... [22:38:53]Read from MH i2c: E2 03 00 [22:38:53]MH_I2C_Read... [22:38:53]Read from MH i2c: E2 03 00 2A 58 00 90 00 F6 [22:38:53]RAPDU: 90 00 [22:38:53]wFMCommunicate OK [22:38:53]SAM_PROTO_ClearQueue done [22:38:53]KKMCreateOFDPacket [22:38:53]OFDProtocolAddRootSTLVToBuf [22:38:53]FM_MakeSignedData [22:38:53]FM_MakeSignedData [22:38:53]SAM_PROTO_SignData [22:38:53]wFMCommunicate request_size=4 [22:38:53]MH_SAM_APDU [22:38:53]CAPDU: 80 0D 01 02 [22:38:53]Write to MH i2c: E2 08 00 2B 58 80 0D 01 02 00 00 00 00 FC [22:38:53]Write i2c OK [22:38:53]MH_I2C_Read... [22:38:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:38:53]Read from MH i2c: E2 [22:38:53]MH_I2C_Read... [22:38:53]Read from MH i2c: E2 03 00 [22:38:53]MH_I2C_Read... [22:38:53]Read from MH i2c: E2 03 00 2B 58 00 90 00 F7 [22:38:53]RAPDU: 90 00 [22:38:53]wFMCommunicate OK [22:38:53]wFMCommunicate request_size=255 [22:38:53]MH_SAM_APDU [22:38:53]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 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 F1 00 00 00 F4 03 04 00 01 FC E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 27 04 04 00 F7 E1 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 11 04 10 00 30 [22:38:53]Write to MH i2c: E2 02 01 2C 58 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 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 F1 00 00 00 F4 03 04 00 01 FC E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 27 04 04 00 F7 E1 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 11 04 10 00 30 00 00 1E [22:38:53]Write i2c OK [22:38:53]MH_I2C_Read... [22:38:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:38:54]Read from MH i2c: E2 [22:38:54]MH_I2C_Read... [22:38:54]Read from MH i2c: E2 03 00 [22:38:54]MH_I2C_Read... [22:38:54]Read from MH i2c: E2 03 00 2C 58 00 90 00 F8 [22:38:54]RAPDU: 90 00 [22:38:54]wFMCommunicate OK [22:38:54]wFMCommunicate request_size=38 [22:38:54]MH_SAM_APDU [22:38:54]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 F8 E1 01 00 35 04 06 00 07 85 B8 3A D2 AF [22:38:54]Write to MH i2c: E2 29 00 2D 58 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 F8 E1 01 00 35 04 06 00 07 85 B8 3A D2 AF 00 00 6C [22:38:54]Write i2c OK [22:38:54]MH_I2C_Read... [22:38:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:38:54]Read from MH i2c: E2 [22:38:54]MH_I2C_Read... [22:38:54]Read from MH i2c: E2 03 00 [22:38:54]MH_I2C_Read... [22:38:54]Read from MH i2c: E2 03 00 2D 58 00 90 00 F9 [22:38:54]RAPDU: 90 00 [22:38:54]wFMCommunicate OK [22:38:54]wFMCommunicate request_size=4 [22:38:54]MH_SAM_APDU [22:38:54]CAPDU: 80 0D 03 02 [22:38:54]Write to MH i2c: E2 08 00 2E 58 80 0D 03 02 00 00 00 00 01 [22:38:54]Write i2c OK [22:38:54]MH_I2C_Read... [22:38:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:38:54]Read from MH i2c: E2 [22:38:54]MH_I2C_Read... [22:38:54]Read from MH i2c: E2 0B 00 [22:38:54]MH_I2C_Read... [22:38:54]Read from MH i2c: E2 0B 00 2E 58 00 51 44 AC 89 A0 CC EB 22 90 00 45 [22:38:54]RAPDU: 51 44 AC 89 A0 CC EB 22 90 00 [22:38:54]wFMCommunicate OK [22:38:54]SAM_PROTO_SignData done [22:38:54]FM_MakeSignedData done [22:38:54]CreateOFDProtocolMessage [22:38:54]wFMCommunicate request_size=4 [22:38:54]MH_SAM_APDU [22:38:54]CAPDU: 80 11 00 00 [22:38:54]Write to MH i2c: E2 08 00 2F 58 80 11 00 00 00 00 00 00 01 [22:38:54]Write i2c OK [22:38:54]MH_I2C_Read... [22:38:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:38:54]Read from MH i2c: E2 [22:38:54]MH_I2C_Read... [22:38:54]Read from MH i2c: E2 17 00 [22:38:54]MH_I2C_Read... [22:38:54]Read from MH i2c: E2 17 00 2F 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 5F [22:38:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [22:38:54]wFMCommunicate OK [22:38:54]CreateOFDProtocolMessage done [22:38:54]OFDSenderStorePacket 123384 [22:38:54]StoreOFDPacket docnum=123384 [22:38:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 2B 01 00 00 02 7E 23 01 46 09 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 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 F1 00 00 00 F4 03 04 00 01 FC E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 27 04 04 00 F7 E1 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 F8 E1 01 00 35 04 06 00 07 85 B8 3A D2 AF 51 44 AC 89 A0 CC EB 22 [22:38:54]CheckFolder [22:38:54]dirname=/storage/ofd_packets [22:38:54]CheckFolder done [22:38:54]ProducePacketName [22:38:54]name=ofd_packets/00123384 [22:38:54]NVStorageSaveData ofd_packets/00123384 [22:38:54]File name is /storage/ofd_packets/00123384 [22:38:54]Write 329 bytes [22:38:54]NVStorageSaveData done [22:38:54]OFDSenderStorePacket done [22:38:54]KKMCreateOFDPacket done [22:38:54]NVStorageSaveData kkm_last_timestamp [22:38:54]File name is /storage/kkm_last_timestamp [22:38:54]Write 4 bytes [22:38:54]NVStorageSaveData done [22:38:54]ExternCall_PrintAddStr [22:38:54]wPrintStart [22:38:54]Write to MH i2c: 01 00 00 30 58 88 [22:38:54]Write i2c OK [22:38:54]MH_I2C_Read... [22:38:54]Read from MH i2c: 01 [22:38:54]MH_I2C_Read... [22:38:54]Read from MH i2c: 01 07 00 [22:38:54]MH_I2C_Read... [22:38:54]Read from MH i2c: 01 07 00 30 58 00 00 00 00 00 FF 0F 9D [22:38:54]RasterBufferAndPrint [22:38:54]line Счет N : (1)1106371 [22:38:54]line ИНН: 02508201610067 [22:38:54]line Контрольно-Кассовый Чек [22:38:54]line ВОЗВРАТ ПРОДАЖИ [22:38:54]line ТРК (МРК, ГНК) : 52 [22:38:54]line Товар: 2710124130 [22:38:54]line Аи-92-К-5 [22:38:54]line 16.160 * 61.90 [22:38:54]line = 1000.30 [22:38:54]line НДС 12% НСП 1% [22:38:54]line > о реализуемом товаре [22:38:54]line ОКРУГЛЕНИЕ: -0.30 [22:38:54]line ИТОГО: 1000.00 [22:38:54]line НСП 1% : 8.85 [22:38:54]line НДС 12% : 106.23 [22:38:54]line Наличными: 1000.00 [22:38:54]line Безнал.: 0.00 [22:38:54]line Место: АЗС № 25 "Партнер Нефть" [22:38:54]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [22:38:54]line СНО: Общий режим [22:38:54]line Чек 241 03.03.2024 22:38 [22:38:54]line Смена: 323 ФФД: 1.0 [22:38:54]line ЗНМ: 0300000019 [22:38:54]line РНМ: 0000000000090573 [22:38:54]line Версия ККМ: 001 [22:38:54]line ФД осн.: 123383 [22:38:54]line ФМ осн.: 0000000000874798 [22:38:54]line ФМ: 0000000000874798 [22:38:54]line ФД: 123384 [22:38:54]line ФПД: 8270902907567 [22:38:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T223857&type=2&operation_type=1&fn_number=0000000000874798&fd_number=123384&fm=8270902907567&tin=02508201610067®Number=0000000000090573&sum=100000 [22:38:54]written 0, free lines is 4095 [22:38:54]OFD Sender: Processing packet 123384 [packets to send 112, broken 111] [22:38:54]ProducePacketName [22:38:54]name=ofd_packets/00123384 [22:38:54]OFD Sender: To server: pG, [22:38:54]CommunicateWithHost lk.salyk.kg:30040 [22:38:54]ConnectInit lk.salyk.kg [22:38:54]Connected sock=10 [22:38: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 37 39 38 2B 01 00 00 02 7E 23 01 46 09 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 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 F1 00 00 00 F4 03 04 00 01 FC E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 27 04 04 00 F7 E1 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 F8 E1 01 00 35 04 06 00 07 85 B8 3A D2 AF 51 44 AC 89 A0 CC EB 22 [22:38:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 8F AC 47 00 D4 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 37 39 38 10 04 04 00 F8 E1 01 00 F4 03 04 00 2C A8 E4 65 B6 04 01 00 00 D5 3F 49 1B B7 7A D8 A4 [22:38:54]CommunicateWithHost err = 0 [22:38:54]CheckOFDResponse [22:38:54]1017 (14) - 77093643461234 [22:38:54]1041 (16) - 0000000000874798 [22:38:54]1040 (4) - 123384 [22:38:54]1012 (4) - 03.03.2024 16:41 [22:38:54]1206 (1) - 0 [22:38:54]OFD Sender: Remove packet 123384 [22:38:54]ProducePacketName [22:38:54]name=ofd_packets/00123384 [22:38:54]NVStorageDeleteData [22:38:54]Write to MH i2c: 01 00 00 5B 58 B3 [22:38:54]Write i2c OK [22:38:54]MH_I2C_Read... [22:38:54]Read from MH i2c: 01 [22:38:54]MH_I2C_Read... [22:38:54]Read from MH i2c: 01 07 00 [22:38:54]MH_I2C_Read... [22:38:54]Read from MH i2c: 01 07 00 5B 58 00 00 00 00 00 0E 0D D5 [22:38:54]RasterBufferAndPrint [22:38:54]line [22:38:54]line [22:38:54]line [22:38:54]line [22:38:54]line [22:38:54]written 0, free lines is 3354 [22:38:54]MH_Cut [22:38:54]Write to MH i2c: D1 01 00 62 58 01 8C [22:38:54]Write i2c OK [22:38:54]MH_I2C_Read... [22:38:54]Read from MH i2c: D1 [22:38:54]MH_I2C_Read... [22:38:54]Read from MH i2c: D1 01 00 [22:38:54]MH_I2C_Read... [22:38:54]Read from MH i2c: D1 01 00 62 58 00 8B [22:38:54]Write to MH i2c: 01 00 00 63 58 BB [22:38:54]Write i2c OK [22:38:54]MH_I2C_Read... [22:38:55]OFD Sender: No OFD packet to send [22:38:55]*** Cut start [22:38:55]*** Purtial cut [22:38:55]*** Stage 1: CUTSNS_PIN = 1 [22:38:57]Read from MH i2c: 01 [22:38:57]MH_I2C_Read... [22:38:57]*** Stop cut motor [22:38:57]*** Cut end [22:38:57]Read from MH i2c: 01 07 00 [22:38:57]MH_I2C_Read... [22:38:57]Read from MH i2c: 01 07 00 63 58 00 00 00 00 00 FF 0F D0 [22:38:57]process_action close_receipt done [22:38:57]requested_data is exist [22:38:57]produce_requested_data [22:38:57]requested_item fm.sn is exist - process it [22:38:57]wFMCommunicate request_size=4 [22:38:57]MH_SAM_APDU [22:38:57]CAPDU: 80 11 00 00 [22:38:57]Write to MH i2c: E2 08 00 64 58 80 11 00 00 00 00 00 00 36 [22:38:57]Write i2c OK [22:38:57]MH_I2C_Read... [22:38:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:38:57]Read from MH i2c: E2 [22:38:57]MH_I2C_Read... [22:38:57]Read from MH i2c: E2 17 00 [22:38:57]MH_I2C_Read... [22:38:57]Read from MH i2c: E2 17 00 64 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 94 [22:38:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [22:38:57]wFMCommunicate OK [22:38:57]requested_item fd.num is exist - process it [22:38:57]SAM_PROTO_GetFieldsCounters [22:38:57]wFMCommunicate request_size=4 [22:38:57]MH_SAM_APDU [22:38:57]CAPDU: 80 13 00 00 [22:38:57]Write to MH i2c: E2 08 00 65 58 80 13 00 00 00 00 00 00 39 [22:38:57]Write i2c OK [22:38:57]MH_I2C_Read... [22:38:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:38:57]Read from MH i2c: E2 [22:38:57]MH_I2C_Read... [22:38:57]Read from MH i2c: E2 62 00 [22:38:57]MH_I2C_Read... [22:38:57]Read from MH i2c: E2 62 00 65 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 F8 E1 01 00 0E 04 04 00 43 01 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 55 [22:38: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 F8 E1 01 00 0E 04 04 00 43 01 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 [22:38:57]wFMCommunicate OK [22:38:57]SAM_PROTO_GetFieldsCounters done [22:38:57]requested_item shift.num is exist - process it [22:38:57]requested_item shift.opened is exist - process it [22:38:57]req_shift_opened [22:38:57]FM_GetShiftState [22:38:57]SAM_PROTO_GetShiftState [22:38:57]wFMCommunicate request_size=4 [22:38:57]MH_SAM_APDU [22:38:57]CAPDU: 80 13 01 00 [22:38:57]Write to MH i2c: E2 08 00 66 58 80 13 01 00 00 00 00 00 3B [22:38:57]Write i2c OK [22:38:57]MH_I2C_Read... [22:38:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:38:57]Read from MH i2c: E2 [22:38:57]MH_I2C_Read... [22:38:57]Read from MH i2c: E2 0E 00 [22:38:57]MH_I2C_Read... [22:38:57]Read from MH i2c: E2 0E 00 66 58 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 FD [22:38:57]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [22:38:57]wFMCommunicate OK [22:38:57]SAM_PROTO_GetShiftState done [22:38:57]FM_GetShiftState done [22:38:57]req_shift_opened done [22:38:57]requested_item shift.open_date is exist - process it [22:38:57]req_shift_open_date [22:38:57]req_shift_open_date done [22:38:57]produce_requested_data done [22:38:57]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123384,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [22:38:57]process_action_free close_receipt [22:38:57]json_value_free [22:38:57]json_value_free done [22:38:57]process_json_proto returns [22:38:57]Send response to host [22:38:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123384,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [22:38:57]free response buf [22:38:57]execute_script done [22:38:57]execute_script returns [22:38:57]free content buf [22:38:57]Sock 7.Close socket [22:38:57]Sock 7.Thread stoped [22:39:00]OFD Sender: No OFD packet to send [22:39:03]int [22:39:03]Write to MH i2c: 01 00 00 67 58 BF [22:39:03]*** FLAG_PRN_KEY set [22:39:03]Write i2c OK [22:39:03]MH_I2C_Read... [22:39:03]Read from MH i2c: 01 [22:39:03]MH_I2C_Read... [22:39:03]Read from MH i2c: 01 07 00 [22:39:03]MH_I2C_Read... [22:39:03]*** FLAG_PRN_KEY reset [22:39:03]Read from MH i2c: 01 07 00 67 58 00 08 00 00 00 FF 0F DC [22:39:03]state=0 [22:39:03]Key pressed [22:39:03]Feed [22:39:03]Write to MH i2c: D8 00 00 68 58 97 [22:39:03]*** FLAG_PRN_KEY set [22:39:03]Write i2c OK [22:39:03]MH_I2C_Read... [22:39:03]Read from MH i2c: D8 [22:39:03]MH_I2C_Read... [22:39:03]Read from MH i2c: D8 01 00 [22:39:03]MH_I2C_Read... [22:39:03]Read from MH i2c: D8 01 00 68 58 00 98 [22:39:03]int line is 0 - check status [22:39:03]Write to MH i2c: 01 00 00 69 58 C1 [22:39:03]Write i2c OK [22:39:03]MH_I2C_Read... [22:39:03]Read from MH i2c: 01 [22:39:03]MH_I2C_Read... [22:39:03]Read from MH i2c: 01 07 00 [22:39:03]MH_I2C_Read... [22:39:03]Read from MH i2c: 01 07 00 69 58 00 48 00 00 00 3C 00 4C [22:39:03]state=2 [22:39:03]Key pressed [22:39:03]int [22:39:03]Write to MH i2c: 01 00 00 6A 58 C2 [22:39:03]Write i2c OK [22:39:03]MH_I2C_Read... [22:39:03]Read from MH i2c: 01 [22:39:03]MH_I2C_Read... [22:39:03]Read from MH i2c: 01 07 00 [22:39:03]MH_I2C_Read... [22:39:03]Read from MH i2c: 01 07 00 6A 58 00 48 00 00 00 3C 00 4D [22:39:03]state=2 [22:39:03]Key pressed [22:39:03]int [22:39:03]Write to MH i2c: 01 00 00 6B 58 C3 [22:39:03]*** FLAG_PRN_KEY reset [22:39:03]Write i2c OK [22:39:03]MH_I2C_Read... [22:39:03]Read from MH i2c: 01 [22:39:03]MH_I2C_Read... [22:39:03]Read from MH i2c: 01 07 00 [22:39:03]MH_I2C_Read... [22:39:03]Read from MH i2c: 01 07 00 6B 58 00 00 00 00 00 F6 0F CF [22:39:03]state=2 [22:39:03]Stop feed [22:39:03]int [22:39:03]Write to MH i2c: 01 00 00 6C 58 C4 [22:39:03]*** FLAG_PRN_KEY set [22:39:03]Write i2c OK [22:39:03]MH_I2C_Read... [22:39:03]Read from MH i2c: 01 [22:39:03]MH_I2C_Read... [22:39:03]Read from MH i2c: 01 07 00 [22:39:03]MH_I2C_Read... [22:39:03]Read from MH i2c: 01 07 00 6C 58 00 08 00 00 00 FF 0F E1 [22:39:03]state=0 [22:39:03]Key pressed [22:39:03]Feed [22:39:03]Write to MH i2c: D8 00 00 6D 58 9C [22:39:03]Write i2c OK [22:39:03]MH_I2C_Read... [22:39:03]Read from MH i2c: D8 [22:39:03]MH_I2C_Read... [22:39:03]Read from MH i2c: D8 01 00 [22:39:03]MH_I2C_Read... [22:39:03]Read from MH i2c: D8 01 00 6D 58 00 9D [22:39:03]int [22:39:03]Write to MH i2c: 01 00 00 6E 58 C6 [22:39:03]Write i2c OK [22:39:03]MH_I2C_Read... [22:39:03]Read from MH i2c: 01 [22:39:03]MH_I2C_Read... [22:39:03]Read from MH i2c: 01 07 00 [22:39:03]MH_I2C_Read... [22:39:03]Read from MH i2c: 01 07 00 6E 58 00 48 00 00 00 3C 00 51 [22:39:03]state=2 [22:39:03]Key pressed [22:39:03]int [22:39:03]Write to MH i2c: 01 00 00 6F 58 C7 [22:39:03]*** FLAG_PRN_KEY reset [22:39:03]Write i2c OK [22:39:03]MH_I2C_Read... [22:39:03]Read from MH i2c: 01 [22:39:03]MH_I2C_Read... [22:39:03]Read from MH i2c: 01 07 00 [22:39:03]MH_I2C_Read... [22:39:03]Read from MH i2c: 01 07 00 6F 58 00 00 00 00 00 FA 0F D7 [22:39:03]state=2 [22:39:03]Stop feed [22:39:03]int [22:39:03]Write to MH i2c: 01 00 00 70 58 C8 [22:39:03]*** FLAG_PRN_KEY set [22:39:03]Write i2c OK [22:39:03]MH_I2C_Read... [22:39:03]Read from MH i2c: 01 [22:39:03]MH_I2C_Read... [22:39:03]Read from MH i2c: 01 07 00 [22:39:03]MH_I2C_Read... [22:39:03]Read from MH i2c: 01 07 00 70 58 00 08 00 00 00 FF 0F E5 [22:39:03]state=0 [22:39:03]Key pressed [22:39:03]Feed [22:39:03]Write to MH i2c: D8 00 00 71 58 A0 [22:39:03]Write i2c OK [22:39:03]MH_I2C_Read... [22:39:03]Read from MH i2c: D8 [22:39:03]MH_I2C_Read... [22:39:03]Read from MH i2c: D8 01 00 [22:39:03]MH_I2C_Read... [22:39:03]Read from MH i2c: D8 01 00 71 58 00 A1 [22:39:03]int [22:39:03]Write to MH i2c: 01 00 00 72 58 CA [22:39:03]Write i2c OK [22:39:03]MH_I2C_Read... [22:39:03]Read from MH i2c: 01 [22:39:03]MH_I2C_Read... [22:39:03]Read from MH i2c: 01 07 00 [22:39:03]MH_I2C_Read... [22:39:03]Read from MH i2c: 01 07 00 72 58 00 48 00 00 00 3C 00 55 [22:39:03]state=2 [22:39:03]Key pressed [22:39:03]int [22:39:03]Write to MH i2c: 01 00 00 73 58 CB [22:39:03]*** FLAG_PRN_KEY reset [22:39:03]Write i2c OK [22:39:03]MH_I2C_Read... [22:39:03]Read from MH i2c: 01 [22:39:03]MH_I2C_Read... [22:39:03]Read from MH i2c: 01 07 00 [22:39:03]MH_I2C_Read... [22:39:03]Read from MH i2c: 01 07 00 73 58 00 00 00 00 00 F7 0F D8 [22:39:03]state=2 [22:39:03]Stop feed [22:39:03]int [22:39:03]Write to MH i2c: 01 00 00 74 58 CC [22:39:03]*** FLAG_PRN_KEY set [22:39:03]Write i2c OK [22:39:03]MH_I2C_Read... [22:39:03]Read from MH i2c: 01 [22:39:03]MH_I2C_Read... [22:39:03]Read from MH i2c: 01 07 00 [22:39:03]MH_I2C_Read... [22:39:03]Read from MH i2c: 01 07 00 74 58 00 08 00 00 00 FF 0F E9 [22:39:03]state=0 [22:39:03]Key pressed [22:39:03]Feed [22:39:03]Write to MH i2c: D8 00 00 75 58 A4 [22:39:03]Write i2c OK [22:39:03]MH_I2C_Read... [22:39:03]Read from MH i2c: D8 [22:39:03]MH_I2C_Read... [22:39:03]Read from MH i2c: D8 01 00 [22:39:03]MH_I2C_Read... [22:39:03]Read from MH i2c: D8 01 00 75 58 00 A5 [22:39:03]int [22:39:03]Write to MH i2c: 01 00 00 76 58 CE [22:39:03]Write i2c OK [22:39:03]MH_I2C_Read... [22:39:03]Read from MH i2c: 01 [22:39:03]MH_I2C_Read... [22:39:03]Read from MH i2c: 01 07 00 [22:39:03]MH_I2C_Read... [22:39:03]Read from MH i2c: 01 07 00 76 58 00 48 00 00 00 3C 00 59 [22:39:03]state=2 [22:39:03]Key pressed [22:39:03]int [22:39:03]Write to MH i2c: 01 00 00 77 58 CF [22:39:03]*** FLAG_PRN_KEY reset [22:39:03]Write i2c OK [22:39:03]MH_I2C_Read... [22:39:03]Read from MH i2c: 01 [22:39:03]MH_I2C_Read... [22:39:03]Read from MH i2c: 01 07 00 [22:39:03]MH_I2C_Read... [22:39:03]Read from MH i2c: 01 07 00 77 58 00 00 00 00 00 F9 0F DE [22:39:03]state=2 [22:39:03]Stop feed [22:39:04]int [22:39:04]Write to MH i2c: 01 00 00 78 58 D0 [22:39:04]*** FLAG_PRN_KEY set [22:39:04]Write i2c OK [22:39:04]MH_I2C_Read... [22:39:04]Read from MH i2c: 01 [22:39:04]MH_I2C_Read... [22:39:04]Read from MH i2c: 01 07 00 [22:39:04]MH_I2C_Read... [22:39:04]Read from MH i2c: 01 07 00 78 58 00 08 00 00 00 FF 0F ED [22:39:04]state=0 [22:39:04]Key pressed [22:39:04]Feed [22:39:04]Write to MH i2c: D8 00 00 79 58 A8 [22:39:04]Write i2c OK [22:39:04]MH_I2C_Read... [22:39:04]Read from MH i2c: D8 [22:39:04]MH_I2C_Read... [22:39:04]Read from MH i2c: D8 01 00 [22:39:04]MH_I2C_Read... [22:39:04]Read from MH i2c: D8 01 00 79 58 00 A9 [22:39:04]int [22:39:04]Write to MH i2c: 01 00 00 7A 58 D2 [22:39:04]Write i2c OK [22:39:04]MH_I2C_Read... [22:39:04]Read from MH i2c: 01 [22:39:04]MH_I2C_Read... [22:39:04]Read from MH i2c: 01 07 00 [22:39:04]MH_I2C_Read... [22:39:04]Read from MH i2c: 01 07 00 7A 58 00 48 00 00 00 3C 00 5D [22:39:04]state=2 [22:39:04]Key pressed [22:39:04]int [22:39:04]Write to MH i2c: 01 00 00 7B 58 D3 [22:39:04]*** FLAG_PRN_KEY reset [22:39:04]Write i2c OK [22:39:04]MH_I2C_Read... [22:39:04]Read from MH i2c: 01 [22:39:04]MH_I2C_Read... [22:39:04]Read from MH i2c: 01 07 00 [22:39:04]MH_I2C_Read... [22:39:04]Read from MH i2c: 01 07 00 7B 58 00 00 00 00 00 F8 0F E1 [22:39:04]state=2 [22:39:04]Stop feed [22:39:04]int [22:39:04]Write to MH i2c: 01 00 00 7C 58 D4 [22:39:04]*** FLAG_PRN_KEY set [22:39:04]Write i2c OK [22:39:04]MH_I2C_Read... [22:39:04]Read from MH i2c: 01 [22:39:04]MH_I2C_Read... [22:39:04]Read from MH i2c: 01 07 00 [22:39:04]MH_I2C_Read... [22:39:04]Read from MH i2c: 01 07 00 7C 58 00 08 00 00 00 FF 0F F1 [22:39:04]state=0 [22:39:04]Key pressed [22:39:04]Feed [22:39:04]Write to MH i2c: D8 00 00 7D 58 AC [22:39:04]Write i2c OK [22:39:04]MH_I2C_Read... [22:39:04]Read from MH i2c: D8 [22:39:04]MH_I2C_Read... [22:39:04]Read from MH i2c: D8 01 00 [22:39:04]MH_I2C_Read... [22:39:04]Read from MH i2c: D8 01 00 7D 58 00 AD [22:39:04]int [22:39:04]Write to MH i2c: 01 00 00 7E 58 D6 [22:39:04]Write i2c OK [22:39:04]MH_I2C_Read... [22:39:04]Read from MH i2c: 01 [22:39:04]MH_I2C_Read... [22:39:04]Read from MH i2c: 01 07 00 [22:39:04]MH_I2C_Read... [22:39:04]Read from MH i2c: 01 07 00 7E 58 00 48 00 00 00 3C 00 61 [22:39:04]state=2 [22:39:04]Key pressed [22:39:04]int [22:39:04]Write to MH i2c: 01 00 00 7F 58 D7 [22:39:04]*** FLAG_PRN_KEY reset [22:39:04]Write i2c OK [22:39:04]MH_I2C_Read... [22:39:04]Read from MH i2c: 01 [22:39:04]MH_I2C_Read... [22:39:04]Read from MH i2c: 01 07 00 [22:39:04]MH_I2C_Read... [22:39:04]Read from MH i2c: 01 07 00 7F 58 00 00 00 00 00 F8 0F E5 [22:39:04]state=2 [22:39:04]Stop feed [22:39:05]OFD Sender: No OFD packet to send [22:39:10]OFD Sender: No OFD packet to send [22:39:15]OFD Sender: No OFD packet to send [22:39:20]OFD Sender: No OFD packet to send [22:39:25]OFD Sender: No OFD packet to send [22:39:30]OFD Sender: No OFD packet to send [22:39:35]OFD Sender: No OFD packet to send [22:39:40]OFD Sender: No OFD packet to send [22:39:45]OFD Sender: No OFD packet to send [22:39:50]OFD Sender: No OFD packet to send [22:39:55]OFD Sender: No OFD packet to send [22:40:00]OFD Sender: No OFD packet to send [22:40:05]OFD Sender: No OFD packet to send [22:40:10]OFD Sender: No OFD packet to send [22:40:15]OFD Sender: No OFD packet to send [22:40:20]OFD Sender: No OFD packet to send [22:40:25]OFD Sender: No OFD packet to send [22:40:30]OFD Sender: No OFD packet to send [22:40:35]OFD Sender: No OFD packet to send [22:40:40]OFD Sender: No OFD packet to send [22:40:44]accept exits with 9 [22:40:44]New connection [22:40:44]New thread 3067395428 created [22:40:44]Thread 3067252068 joined [22:40:44]Waiting for new connection... [22:40:44] Sock 9.Parse request [22:40:44]Sock 9.Check first char [22:40:44]Sock 9.First char is OK [22:40:44]request: POST /json_proto HTTP/1.0 [22:40:44]Method: POST [22:40:44]URL: /json_proto [22:40:44]Method is POST - this is cgi request [22:40:44]url: /json_proto [22:40:44]query_string will be loaded in cgi processing [22:40:44]execute_cgi json_proto POST (null) [22:40:44]execute_cgi path=json_proto method=POST [22:40:44]POST find Content-Length [22:40:44]Host: 172.17.48.197:8080 [22:40:44]Content-Length: 820 [22:40:44]Content-Type: application/json [22:40:44] [22:40:44]POST finish read [22:40:44]Found Content-Length = 820 [22:40:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106372", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 19.390, "sum" : 1200.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1200.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:40:44]execute_script... [22:40: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)1106372", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 19.390, "sum" : 1200.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1200.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:40:44]POST & json_proto [22:40:44]process_json_proto [22:40:44]json parsed OK: [22:40:44]protocol is kg_v1.0 [22:40:44]action value=close_receipt [22:40:44]process_action close_receipt [22:40:44]cmd_close_receipt [22:40:44]MH_GetDate [22:40:44]Write to MH i2c: F0 00 00 80 58 C7 [22:40:44]Write i2c OK [22:40:44]MH_I2C_Read... [22:40:44]Read from MH i2c: F0 [22:40:44]MH_I2C_Read... [22:40:44]Read from MH i2c: F0 09 00 [22:40:44]MH_I2C_Read... [22:40:44]Read from MH i2c: F0 09 00 80 58 00 71 FC E4 65 6C AF E3 65 E9 [22:40:44]GetLastDocTimeStamp 1709505537 [22:40:44]current date 1709505649 [22:40:44]FM_GetShiftState [22:40:44]SAM_PROTO_GetShiftState [22:40:44]wFMCommunicate request_size=4 [22:40:44]MH_SAM_APDU [22:40:44]CAPDU: 80 13 01 00 [22:40:44]Write to MH i2c: E2 08 00 81 58 80 13 01 00 00 00 00 00 56 [22:40:44]Write i2c OK [22:40:44]MH_I2C_Read... [22:40:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:40:44]Read from MH i2c: E2 [22:40:44]MH_I2C_Read... [22:40:44]Read from MH i2c: E2 0E 00 [22:40:44]MH_I2C_Read... [22:40:44]Read from MH i2c: E2 0E 00 81 58 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 18 [22:40:44]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [22:40:44]wFMCommunicate OK [22:40:44]SAM_PROTO_GetShiftState done [22:40:44]FM_GetShiftState done [22:40:44]opened in 1709425579 [22:40:44]opened+sec_in_day 1709511979 [22:40:44]quantity*price = 120024 [22:40:44]sum+1 = 120025 [22:40:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1200.24 НСП 1% : 10.62 НДС 12% : 127.46 Наличными: 0.00 Безнал.: 1200.24 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 242 03.03.2024 22:40 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874798 ФД: 123385 ФПД: 273118455396327 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T224049&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123385&fm=273118455396327&tin=02508201610067®Number=0000000000090573&sum=120024 [22:40:45]StoreToDocumentArchive [22:40:45]shift 323 fd 123385 [22:40:45]save to /storage/0323/doc_00123385 [22:40:45]save last doc name /storage/0323/doc_00123385 to /storage/kkm_last_doc_name [22:40:45]save OK [22:40:45]Clear old archive folders... [22:40:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:40:45]tlvbuf is 00E29BC0 [22:40:45]SAM_PROTO_ClearQueue [22:40:45]wFMCommunicate request_size=4 [22:40:45]MH_SAM_APDU [22:40:45]CAPDU: 80 09 00 00 [22:40:45]Write to MH i2c: E2 08 00 8E 58 80 09 00 00 00 00 00 00 58 [22:40:45]Write i2c OK [22:40:45]MH_I2C_Read... [22:40:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:40:45]Read from MH i2c: E2 [22:40:45]MH_I2C_Read... [22:40:45]Read from MH i2c: E2 03 00 [22:40:45]MH_I2C_Read... [22:40:45]Read from MH i2c: E2 03 00 8E 58 00 90 00 5A [22:40:45]RAPDU: 90 00 [22:40:45]wFMCommunicate OK [22:40:45]SAM_PROTO_ClearQueue done [22:40:45]KKMCreateOFDPacket [22:40:45]OFDProtocolAddRootSTLVToBuf [22:40:45]FM_MakeSignedData [22:40:45]FM_MakeSignedData [22:40:45]SAM_PROTO_SignData [22:40:45]wFMCommunicate request_size=4 [22:40:45]MH_SAM_APDU [22:40:45]CAPDU: 80 0D 01 02 [22:40:45]Write to MH i2c: E2 08 00 8F 58 80 0D 01 02 00 00 00 00 60 [22:40:45]Write i2c OK [22:40:45]MH_I2C_Read... [22:40:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:40:45]Read from MH i2c: E2 [22:40:45]MH_I2C_Read... [22:40:45]Read from MH i2c: E2 03 00 [22:40:45]MH_I2C_Read... [22:40:45]Read from MH i2c: E2 03 00 8F 58 00 90 00 5B [22:40:45]RAPDU: 90 00 [22:40:45]wFMCommunicate OK [22:40:45]wFMCommunicate request_size=255 [22:40:45]MH_SAM_APDU [22:40: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 35 FF 03 08 00 03 BE 4B 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 D8 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CA 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D8 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 71 FC E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 F9 E1 01 00 35 04 06 00 F8 [22:40:45]Write to MH i2c: E2 02 01 90 58 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BE 4B 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 D8 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CA 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D8 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 71 FC E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 F9 E1 01 00 35 04 06 00 F8 00 00 AE [22:40:45]Write i2c OK [22:40:45]MH_I2C_Read... [22:40:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:40:45]Read from MH i2c: E2 [22:40:45]MH_I2C_Read... [22:40:45]Read from MH i2c: E2 03 00 [22:40:45]MH_I2C_Read... [22:40:45]Read from MH i2c: E2 03 00 90 58 00 90 00 5C [22:40:45]RAPDU: 90 00 [22:40:45]wFMCommunicate OK [22:40:45]wFMCommunicate request_size=10 [22:40:45]MH_SAM_APDU [22:40:45]CAPDU: 80 0D 02 02 05 66 58 83 F7 E7 [22:40:45]Write to MH i2c: E2 0D 00 91 58 80 0D 02 02 05 00 66 58 83 F7 E7 00 00 8C [22:40:45]Write i2c OK [22:40:45]MH_I2C_Read... [22:40:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:40:45]Read from MH i2c: E2 [22:40:45]MH_I2C_Read... [22:40:45]Read from MH i2c: E2 03 00 [22:40:45]MH_I2C_Read... [22:40:45]Read from MH i2c: E2 03 00 91 58 00 90 00 5D [22:40:45]RAPDU: 90 00 [22:40:45]wFMCommunicate OK [22:40:45]wFMCommunicate request_size=4 [22:40:45]MH_SAM_APDU [22:40:45]CAPDU: 80 0D 03 02 [22:40:45]Write to MH i2c: E2 08 00 92 58 80 0D 03 02 00 00 00 00 65 [22:40:45]Write i2c OK [22:40:45]MH_I2C_Read... [22:40:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:40:45]Read from MH i2c: E2 [22:40:45]MH_I2C_Read... [22:40:45]Read from MH i2c: E2 0B 00 [22:40:45]MH_I2C_Read... [22:40:45]Read from MH i2c: E2 0B 00 92 58 00 A6 48 EB E7 73 04 06 DC 90 00 7F [22:40:45]RAPDU: A6 48 EB E7 73 04 06 DC 90 00 [22:40:45]wFMCommunicate OK [22:40:45]SAM_PROTO_SignData done [22:40:45]FM_MakeSignedData done [22:40:45]CreateOFDProtocolMessage [22:40:45]wFMCommunicate request_size=4 [22:40:45]MH_SAM_APDU [22:40:45]CAPDU: 80 11 00 00 [22:40:45]Write to MH i2c: E2 08 00 93 58 80 11 00 00 00 00 00 00 65 [22:40:45]Write i2c OK [22:40:45]MH_I2C_Read... [22:40:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:40:45]Read from MH i2c: E2 [22:40:45]MH_I2C_Read... [22:40:45]Read from MH i2c: E2 17 00 [22:40:45]MH_I2C_Read... [22:40:45]Read from MH i2c: E2 17 00 93 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 C3 [22:40:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [22:40:45]wFMCommunicate OK [22:40:45]CreateOFDProtocolMessage done [22:40:45]OFDSenderStorePacket 123385 [22:40:45]StoreOFDPacket docnum=123385 [22:40:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 77 E9 07 01 16 AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BE 4B 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 D8 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CA 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D8 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 71 FC E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 F9 E1 01 00 35 04 06 00 F8 66 58 83 F7 E7 A6 48 EB E7 73 04 06 DC [22:40:45]CheckFolder [22:40:45]dirname=/storage/ofd_packets [22:40:45]CheckFolder done [22:40:45]ProducePacketName [22:40:45]name=ofd_packets/00123385 [22:40:45]NVStorageSaveData ofd_packets/00123385 [22:40:45]File name is /storage/ofd_packets/00123385 [22:40:45]Write 301 bytes [22:40:45]NVStorageSaveData done [22:40:45]OFDSenderStorePacket done [22:40:45]KKMCreateOFDPacket done [22:40:45]NVStorageSaveData kkm_last_timestamp [22:40:45]File name is /storage/kkm_last_timestamp [22:40:45]Write 4 bytes [22:40:45]NVStorageSaveData done [22:40:45]ExternCall_PrintAddStr [22:40:45]wPrintStart [22:40:45]Write to MH i2c: 01 00 00 94 58 EC [22:40:45]Write i2c OK [22:40:46]MH_I2C_Read... [22:40:46]Read from MH i2c: 01 [22:40:46]MH_I2C_Read... [22:40:46]Read from MH i2c: 01 07 00 [22:40:46]MH_I2C_Read... [22:40:46]Read from MH i2c: 01 07 00 94 58 00 00 00 00 00 FF 0F 01 [22:40:46]RasterBufferAndPrint [22:40:46]line Счет N : (1)1106372 [22:40:46]line ИНН: 02508201610067 [22:40:46]line Контрольно-Кассовый Чек [22:40:46]line ПРОДАЖА [22:40:46]line ТРК (МРК, ГНК) : 32 [22:40:46]line Товар: 2710124130 [22:40:46]line Аи-92-К-5 [22:40:46]line 19.390 * 61.90 [22:40:46]line = 1200.24 [22:40:46]line НДС 12% НСП 1% [22:40:46]line > о реализуемом товаре [22:40:46]line ИТОГО: 1200.24 [22:40:46]line НСП 1% : 10.62 [22:40:46]line НДС 12% : 127.46 [22:40:46]line Наличными: 0.00 [22:40:46]line Безнал.: 1200.24 [22:40:46]line Место: АЗС № 25 "Партнер Нефть" [22:40:46]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [22:40:46]line СНО: Общий режим [22:40:46]line Чек 242 03.03.2024 22:40 [22:40:46]line Смена: 323 ФФД: 1.0 [22:40:46]line ЗНМ: 0300000019 [22:40:46]line РНМ: 0000000000090573 [22:40:46]line Версия ККМ: 001 [22:40:46]line Платежная система: Бакай Банк [22:40:46]line ФМ: 0000000000874798 [22:40:46]line ФД: 123385 [22:40:46]line ФПД: 273118455396327 [22:40:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T224049&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123385&fm=273118455396327&tin=02508201610067®Number=0000000000090573&sum=120024 [22:40:46]OFD Sender: Processing packet 123385 [packets to send 112, broken 111] [22:40:46]ProducePacketName [22:40:46]name=ofd_packets/00123385 [22:40:46]OFD Sender: To server: pG, [22:40:46]CommunicateWithHost lk.salyk.kg:30040 [22:40:46]ConnectInit lk.salyk.kg [22:40:46]written 0, free lines is 4095 [22:40:46]Connected sock=10 [22:40: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 37 39 38 0F 01 00 00 77 E9 07 01 16 AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BE 4B 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 D8 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CA 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D8 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 71 FC E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 F9 E1 01 00 35 04 06 00 F8 66 58 83 F7 E7 A6 48 EB E7 73 04 06 DC [22:40:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 15 1D 47 00 A9 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 F9 E1 01 00 F4 03 04 00 9C A8 E4 65 B6 04 01 00 00 51 37 EA 75 36 5C 00 9C [22:40:46]CommunicateWithHost err = 0 [22:40:46]CheckOFDResponse [22:40:46]1017 (14) - 77093643461234 [22:40:46]1041 (16) - 0000000000874798 [22:40:46]1040 (4) - 123385 [22:40:46]1012 (4) - 03.03.2024 16:43 [22:40:46]1206 (1) - 0 [22:40:46]OFD Sender: Remove packet 123385 [22:40:46]ProducePacketName [22:40:46]name=ofd_packets/00123385 [22:40:46]NVStorageDeleteData [22:40:46]Write to MH i2c: 01 00 00 BE 58 16 [22:40:46]Write i2c OK [22:40:46]MH_I2C_Read... [22:40:46]Read from MH i2c: 01 [22:40:46]MH_I2C_Read... [22:40:46]Read from MH i2c: 01 07 00 [22:40:46]MH_I2C_Read... [22:40:46]Read from MH i2c: 01 07 00 BE 58 00 00 00 00 00 17 0D 41 [22:40:46]RasterBufferAndPrint [22:40:46]line [22:40:46]line [22:40:46]line [22:40:46]line [22:40:46]line [22:40:46]written 0, free lines is 3360 [22:40:46]MH_Cut [22:40:46]Write to MH i2c: D1 01 00 C5 58 01 EF [22:40:46]Write i2c OK [22:40:46]MH_I2C_Read... [22:40:46]Read from MH i2c: D1 [22:40:46]MH_I2C_Read... [22:40:46]Read from MH i2c: D1 01 00 [22:40:46]MH_I2C_Read... [22:40:46]Read from MH i2c: D1 01 00 C5 58 00 EE [22:40:46]Write to MH i2c: 01 00 00 C6 58 1E [22:40:46]Write i2c OK [22:40:46]MH_I2C_Read... [22:40:47]OFD Sender: No OFD packet to send [22:40:47]*** Cut start [22:40:47]*** Purtial cut [22:40:47]*** Stage 1: CUTSNS_PIN = 1 [22:40:49]Read from MH i2c: 01 [22:40:49]MH_I2C_Read... [22:40:49]*** Stop cut motor [22:40:49]*** Cut end [22:40:49]Read from MH i2c: 01 07 00 [22:40:49]MH_I2C_Read... [22:40:49]Read from MH i2c: 01 07 00 C6 58 00 00 00 00 00 FF 0F 33 [22:40:49]process_action close_receipt done [22:40:49]requested_data is exist [22:40:49]produce_requested_data [22:40:49]requested_item fm.sn is exist - process it [22:40:49]wFMCommunicate request_size=4 [22:40:49]MH_SAM_APDU [22:40:49]CAPDU: 80 11 00 00 [22:40:49]Write to MH i2c: E2 08 00 C7 58 80 11 00 00 00 00 00 00 99 [22:40:49]Write i2c OK [22:40:49]MH_I2C_Read... [22:40:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:40:49]Read from MH i2c: E2 [22:40:49]MH_I2C_Read... [22:40:49]Read from MH i2c: E2 17 00 [22:40:49]MH_I2C_Read... [22:40:49]Read from MH i2c: E2 17 00 C7 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 F7 [22:40:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [22:40:49]wFMCommunicate OK [22:40:49]requested_item fd.num is exist - process it [22:40:49]SAM_PROTO_GetFieldsCounters [22:40:49]wFMCommunicate request_size=4 [22:40:49]MH_SAM_APDU [22:40:49]CAPDU: 80 13 00 00 [22:40:49]Write to MH i2c: E2 08 00 C8 58 80 13 00 00 00 00 00 00 9C [22:40:49]Write i2c OK [22:40:49]MH_I2C_Read... [22:40:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:40:49]Read from MH i2c: E2 [22:40:49]MH_I2C_Read... [22:40:49]Read from MH i2c: E2 62 00 [22:40:49]MH_I2C_Read... [22:40:49]Read from MH i2c: E2 62 00 C8 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 F9 E1 01 00 0E 04 04 00 43 01 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 BC [22:40: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 F9 E1 01 00 0E 04 04 00 43 01 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 [22:40:49]wFMCommunicate OK [22:40:49]SAM_PROTO_GetFieldsCounters done [22:40:49]requested_item shift.num is exist - process it [22:40:49]requested_item shift.opened is exist - process it [22:40:49]req_shift_opened [22:40:49]FM_GetShiftState [22:40:49]SAM_PROTO_GetShiftState [22:40:49]wFMCommunicate request_size=4 [22:40:49]MH_SAM_APDU [22:40:49]CAPDU: 80 13 01 00 [22:40:49]Write to MH i2c: E2 08 00 C9 58 80 13 01 00 00 00 00 00 9E [22:40:49]Write i2c OK [22:40:49]MH_I2C_Read... [22:40:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:40:49]Read from MH i2c: E2 [22:40:49]MH_I2C_Read... [22:40:49]Read from MH i2c: E2 0E 00 [22:40:49]MH_I2C_Read... [22:40:49]Read from MH i2c: E2 0E 00 C9 58 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 60 [22:40:49]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [22:40:49]wFMCommunicate OK [22:40:49]SAM_PROTO_GetShiftState done [22:40:49]FM_GetShiftState done [22:40:49]req_shift_opened done [22:40:49]requested_item shift.open_date is exist - process it [22:40:49]req_shift_open_date [22:40:49]req_shift_open_date done [22:40:49]produce_requested_data done [22:40:49]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123385,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [22:40:49]process_action_free close_receipt [22:40:49]json_value_free [22:40:49]json_value_free done [22:40:49]process_json_proto returns [22:40:49]Send response to host [22:40:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123385,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [22:40:49]free response buf [22:40:49]execute_script done [22:40:49]execute_script returns [22:40:49]free content buf [22:40:49]Sock 9.Close socket [22:40:49]Sock 9.Thread stoped [22:40:52]OFD Sender: No OFD packet to send [22:40:57]OFD Sender: No OFD packet to send [22:41:02]OFD Sender: No OFD packet to send [22:41:07]OFD Sender: No OFD packet to send [22:41:12]OFD Sender: No OFD packet to send [22:41:17]OFD Sender: No OFD packet to send [22:41:20]accept exits with 7 [22:41:20]New connection [22:41:20]New thread 3067252068 created [22:41:20]Thread 3067395428 joined [22:41:20]Waiting for new connection... [22:41:20] Sock 7.Parse request [22:41:20]Sock 7.Check first char [22:41:20]Sock 7.First char is OK [22:41:20]request: POST /json_proto HTTP/1.0 [22:41:20]Method: POST [22:41:20]URL: /json_proto [22:41:20]Method is POST - this is cgi request [22:41:20]url: /json_proto [22:41:20]query_string will be loaded in cgi processing [22:41:20]execute_cgi json_proto POST (null) [22:41:20]execute_cgi path=json_proto method=POST [22:41:20]POST find Content-Length [22:41:20]Host: 172.17.48.197:8080 [22:41:20]Content-Length: 818 [22:41:20]Content-Type: application/json [22:41:20] [22:41:20]POST finish read [22:41:20]Found Content-Length = 818 [22:41:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106373", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 10.000, "sum" : 619.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 619.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:41:20]execute_script... [22: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 : (1)1106373", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 10.000, "sum" : 619.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 619.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:41:20]POST & json_proto [22:41:20]process_json_proto [22:41:20]json parsed OK: [22:41:20]protocol is kg_v1.0 [22:41:20]action value=close_receipt [22:41:20]process_action close_receipt [22:41:20]cmd_close_receipt [22:41:20]MH_GetDate [22:41:20]Write to MH i2c: F0 00 00 CA 58 11 [22:41:20]Write i2c OK [22:41:20]MH_I2C_Read... [22:41:20]Read from MH i2c: F0 [22:41:20]MH_I2C_Read... [22:41:20]Read from MH i2c: F0 09 00 [22:41:20]MH_I2C_Read... [22:41:20]Read from MH i2c: F0 09 00 CA 58 00 95 FC E4 65 6C AF E3 65 57 [22:41:20]GetLastDocTimeStamp 1709505649 [22:41:20]current date 1709505685 [22:41:20]FM_GetShiftState [22:41:20]SAM_PROTO_GetShiftState [22:41:20]wFMCommunicate request_size=4 [22:41:20]MH_SAM_APDU [22:41:20]CAPDU: 80 13 01 00 [22:41:20]Write to MH i2c: E2 08 00 CB 58 80 13 01 00 00 00 00 00 A0 [22:41:20]Write i2c OK [22:41:20]MH_I2C_Read... [22:41:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:41:20]Read from MH i2c: E2 [22:41:20]MH_I2C_Read... [22:41:20]Read from MH i2c: E2 0E 00 [22:41:20]MH_I2C_Read... [22:41:20]Read from MH i2c: E2 0E 00 CB 58 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 62 [22:41:20]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [22:41:20]wFMCommunicate OK [22:41:20]SAM_PROTO_GetShiftState done [22:41:20]FM_GetShiftState done [22:41:20]opened in 1709425579 [22:41:20]opened+sec_in_day 1709511979 [22:41:20]quantity*price = 61900 [22:41:20]sum+1 = 61901 [22:41:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 619.00 НСП 1% : 5.48 НДС 12% : 65.73 Наличными: 0.00 Безнал.: 619.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 243 03.03.2024 22:41 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874798 ФД: 123386 ФПД: 155639921012030 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T224125&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123386&fm=155639921012030&tin=02508201610067®Number=0000000000090573&sum=61900 [22:41:21]StoreToDocumentArchive [22:41:21]shift 323 fd 123386 [22:41:21]save to /storage/0323/doc_00123386 [22:41:21]save last doc name /storage/0323/doc_00123386 to /storage/kkm_last_doc_name [22:41:21]save OK [22:41:21]Clear old archive folders... [22:41:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:41:21]tlvbuf is B6FC1010 [22:41:21]SAM_PROTO_ClearQueue [22:41:21]wFMCommunicate request_size=4 [22:41:21]MH_SAM_APDU [22:41:21]CAPDU: 80 09 00 00 [22:41:21]Write to MH i2c: E2 08 00 D8 58 80 09 00 00 00 00 00 00 A2 [22:41:21]Write i2c OK [22:41:21]MH_I2C_Read... [22:41:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:41:21]Read from MH i2c: E2 [22:41:21]MH_I2C_Read... [22:41:21]Read from MH i2c: E2 03 00 [22:41:21]MH_I2C_Read... [22:41:21]Read from MH i2c: E2 03 00 D8 58 00 90 00 A4 [22:41:21]RAPDU: 90 00 [22:41:21]wFMCommunicate OK [22:41:21]SAM_PROTO_ClearQueue done [22:41:21]KKMCreateOFDPacket [22:41:21]OFDProtocolAddRootSTLVToBuf [22:41:21]FM_MakeSignedData [22:41:21]FM_MakeSignedData [22:41:21]SAM_PROTO_SignData [22:41:21]wFMCommunicate request_size=4 [22:41:21]MH_SAM_APDU [22:41:21]CAPDU: 80 0D 01 02 [22:41:21]Write to MH i2c: E2 08 00 D9 58 80 0D 01 02 00 00 00 00 AA [22:41:21]Write i2c OK [22:41:21]MH_I2C_Read... [22:41:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:41:21]Read from MH i2c: E2 [22:41:21]MH_I2C_Read... [22:41:21]Read from MH i2c: E2 03 00 [22:41:21]MH_I2C_Read... [22:41:21]Read from MH i2c: E2 03 00 D9 58 00 90 00 A5 [22:41:21]RAPDU: 90 00 [22:41:21]wFMCommunicate OK [22:41:21]wFMCommunicate request_size=255 [22:41:21]MH_SAM_APDU [22:41:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 CC F1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC F1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 19 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CC F1 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 95 FC E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 FA E1 01 00 35 04 06 00 8D [22:41:21]Write to MH i2c: E2 02 01 DA 58 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 CC F1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC F1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 19 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CC F1 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 95 FC E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 FA E1 01 00 35 04 06 00 8D 00 00 D8 [22:41:21]Write i2c OK [22:41:21]MH_I2C_Read... [22:41:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:41:21]Read from MH i2c: E2 [22:41:21]MH_I2C_Read... [22:41:21]Read from MH i2c: E2 03 00 [22:41:21]MH_I2C_Read... [22:41:21]Read from MH i2c: E2 03 00 DA 58 00 90 00 A6 [22:41:21]RAPDU: 90 00 [22:41:21]wFMCommunicate OK [22:41:21]wFMCommunicate request_size=10 [22:41:21]MH_SAM_APDU [22:41:21]CAPDU: 80 0D 02 02 05 8D BE 34 6D 3E [22:41:21]Write to MH i2c: E2 0D 00 DB 58 80 0D 02 02 05 00 8D BE 34 6D 3E 00 00 E1 [22:41:21]Write i2c OK [22:41:21]MH_I2C_Read... [22:41:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:41:21]Read from MH i2c: E2 [22:41:21]MH_I2C_Read... [22:41:21]Read from MH i2c: E2 03 00 [22:41:21]MH_I2C_Read... [22:41:21]Read from MH i2c: E2 03 00 DB 58 00 90 00 A7 [22:41:21]RAPDU: 90 00 [22:41:21]wFMCommunicate OK [22:41:21]wFMCommunicate request_size=4 [22:41:21]MH_SAM_APDU [22:41:21]CAPDU: 80 0D 03 02 [22:41:21]Write to MH i2c: E2 08 00 DC 58 80 0D 03 02 00 00 00 00 AF [22:41:21]Write i2c OK [22:41:21]MH_I2C_Read... [22:41:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:41:21]Read from MH i2c: E2 [22:41:21]MH_I2C_Read... [22:41:21]Read from MH i2c: E2 0B 00 [22:41:21]MH_I2C_Read... [22:41:21]Read from MH i2c: E2 0B 00 DC 58 00 44 87 D5 E9 0C C3 B3 89 90 00 44 [22:41:21]RAPDU: 44 87 D5 E9 0C C3 B3 89 90 00 [22:41:21]wFMCommunicate OK [22:41:21]SAM_PROTO_SignData done [22:41:21]FM_MakeSignedData done [22:41:21]CreateOFDProtocolMessage [22:41:21]wFMCommunicate request_size=4 [22:41:21]MH_SAM_APDU [22:41:21]CAPDU: 80 11 00 00 [22:41:21]Write to MH i2c: E2 08 00 DD 58 80 11 00 00 00 00 00 00 AF [22:41:21]Write i2c OK [22:41:21]MH_I2C_Read... [22:41:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:41:21]Read from MH i2c: E2 [22:41:21]MH_I2C_Read... [22:41:21]Read from MH i2c: E2 17 00 [22:41:21]MH_I2C_Read... [22:41:21]Read from MH i2c: E2 17 00 DD 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 0D [22:41:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [22:41:21]wFMCommunicate OK [22:41:21]CreateOFDProtocolMessage done [22:41:21]OFDSenderStorePacket 123386 [22:41:21]StoreOFDPacket docnum=123386 [22:41:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 01 AF 07 01 AA 45 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 CC F1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC F1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 19 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CC F1 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 95 FC E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 FA E1 01 00 35 04 06 00 8D 8D BE 34 6D 3E 44 87 D5 E9 0C C3 B3 89 [22:41:21]CheckFolder [22:41:21]dirname=/storage/ofd_packets [22:41:21]CheckFolder done [22:41:21]ProducePacketName [22:41:21]name=ofd_packets/00123386 [22:41:21]NVStorageSaveData ofd_packets/00123386 [22:41:21]File name is /storage/ofd_packets/00123386 [22:41:21]Write 301 bytes [22:41:21]NVStorageSaveData done [22:41:21]OFDSenderStorePacket done [22:41:21]KKMCreateOFDPacket done [22:41:21]NVStorageSaveData kkm_last_timestamp [22:41:21]File name is /storage/kkm_last_timestamp [22:41:21]Write 4 bytes [22:41:21]NVStorageSaveData done [22:41:21]ExternCall_PrintAddStr [22:41:21]wPrintStart [22:41:21]Write to MH i2c: 01 00 00 DE 58 36 [22:41:21]Write i2c OK [22:41:21]MH_I2C_Read... [22:41:21]Read from MH i2c: 01 [22:41:21]MH_I2C_Read... [22:41:21]Read from MH i2c: 01 07 00 [22:41:21]MH_I2C_Read... [22:41:21]Read from MH i2c: 01 07 00 DE 58 00 00 00 00 00 FF 0F 4B [22:41:21]RasterBufferAndPrint [22:41:21]line Счет N : (1)1106373 [22:41:21]line ИНН: 02508201610067 [22:41:21]line Контрольно-Кассовый Чек [22:41:21]line ПРОДАЖА [22:41:21]line ТРК (МРК, ГНК) : 52 [22:41:21]line Товар: 2710124130 [22:41:21]line Аи-92-К-5 [22:41:21]line 10.000 * 61.90 [22:41:21]line = 619.00 [22:41:21]line НДС 12% НСП 1% [22:41:21]line > о реализуемом товаре [22:41:21]line ИТОГО: 619.00 [22:41:21]line НСП 1% : 5.48 [22:41:21]line НДС 12% : 65.73 [22:41:21]line Наличными: 0.00 [22:41:21]line Безнал.: 619.00 [22:41:21]line Место: АЗС № 25 "Партнер Нефть" [22:41:21]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [22:41:21]line СНО: Общий режим [22:41:21]line Чек 243 03.03.2024 22:41 [22:41:21]line Смена: 323 ФФД: 1.0 [22:41:21]line ЗНМ: 0300000019 [22:41:21]line РНМ: 0000000000090573 [22:41:21]line Версия ККМ: 001 [22:41:21]line Платежная система: Бакай Банк [22:41:21]line ФМ: 0000000000874798 [22:41:21]line ФД: 123386 [22:41:21]line ФПД: 155639921012030 [22:41:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T224125&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123386&fm=155639921012030&tin=02508201610067®Number=0000000000090573&sum=61900 [22:41:22]OFD Sender: Processing packet 123386 [packets to send 112, broken 111] [22:41:22]ProducePacketName [22:41:22]name=ofd_packets/00123386 [22:41:22]OFD Sender: To server: pG, [22:41:22]CommunicateWithHost lk.salyk.kg:30040 [22:41:22]ConnectInit lk.salyk.kg [22:41:22]written 0, free lines is 4095 [22:41:22]Connected sock=10 [22: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 37 39 38 0F 01 00 00 01 AF 07 01 AA 45 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 CC F1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC F1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 19 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CC F1 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 95 FC E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 FA E1 01 00 35 04 06 00 8D 8D BE 34 6D 3E 44 87 D5 E9 0C C3 B3 89 [22: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 37 39 38 4F 00 00 00 F0 B6 47 00 7C 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 37 39 38 10 04 04 00 FA E1 01 00 F4 03 04 00 C0 A8 E4 65 B6 04 01 00 00 40 27 93 F5 61 C9 97 BB [22:41:22]CommunicateWithHost err = 0 [22:41:22]CheckOFDResponse [22:41:22]1017 (14) - 77093643461234 [22:41:22]1041 (16) - 0000000000874798 [22:41:22]1040 (4) - 123386 [22:41:22]1012 (4) - 03.03.2024 16:43 [22:41:22]1206 (1) - 0 [22:41:22]OFD Sender: Remove packet 123386 [22:41:22]ProducePacketName [22:41:22]name=ofd_packets/00123386 [22:41:22]NVStorageDeleteData [22:41:22]Write to MH i2c: 01 00 00 08 59 61 [22:41:22]Write i2c OK [22:41:22]MH_I2C_Read... [22:41:22]Read from MH i2c: 01 [22:41:22]MH_I2C_Read... [22:41:22]Read from MH i2c: 01 07 00 [22:41:22]MH_I2C_Read... [22:41:22]Read from MH i2c: 01 07 00 08 59 00 00 00 00 00 02 0D 77 [22:41:22]RasterBufferAndPrint [22:41:22]line [22:41:22]line [22:41:22]line [22:41:22]line [22:41:22]line [22:41:22]written 0, free lines is 3339 [22:41:22]MH_Cut [22:41:22]Write to MH i2c: D1 01 00 0F 59 01 3A [22:41:22]Write i2c OK [22:41:22]MH_I2C_Read... [22:41:22]Read from MH i2c: D1 [22:41:22]MH_I2C_Read... [22:41:22]Read from MH i2c: D1 01 00 [22:41:22]MH_I2C_Read... [22:41:22]Read from MH i2c: D1 01 00 0F 59 00 39 [22:41:22]Write to MH i2c: 01 00 00 10 59 69 [22:41:22]Write i2c OK [22:41:22]MH_I2C_Read... [22:41:23]OFD Sender: No OFD packet to send [22:41:23]*** Cut start [22:41:23]*** Purtial cut [22:41:23]*** Stage 1: CUTSNS_PIN = 1 [22:41:25]Read from MH i2c: 01 [22:41:25]MH_I2C_Read... [22:41:25]*** Stop cut motor [22:41:25]*** Cut end [22:41:25]Read from MH i2c: 01 07 00 [22:41:25]MH_I2C_Read... [22:41:25]Read from MH i2c: 01 07 00 10 59 00 00 00 00 00 FF 0F 7E [22:41:25]process_action close_receipt done [22:41:25]requested_data is exist [22:41:25]produce_requested_data [22:41:25]requested_item fm.sn is exist - process it [22:41:25]wFMCommunicate request_size=4 [22:41:25]MH_SAM_APDU [22:41:25]CAPDU: 80 11 00 00 [22:41:25]Write to MH i2c: E2 08 00 11 59 80 11 00 00 00 00 00 00 E4 [22:41:25]Write i2c OK [22:41:25]MH_I2C_Read... [22:41:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:41:25]Read from MH i2c: E2 [22:41:25]MH_I2C_Read... [22:41:25]Read from MH i2c: E2 17 00 [22:41:25]MH_I2C_Read... [22:41:25]Read from MH i2c: E2 17 00 11 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 42 [22:41:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [22:41:25]wFMCommunicate OK [22:41:25]requested_item fd.num is exist - process it [22:41:25]SAM_PROTO_GetFieldsCounters [22:41:25]wFMCommunicate request_size=4 [22:41:25]MH_SAM_APDU [22:41:25]CAPDU: 80 13 00 00 [22:41:25]Write to MH i2c: E2 08 00 12 59 80 13 00 00 00 00 00 00 E7 [22:41:25]Write i2c OK [22:41:25]MH_I2C_Read... [22:41:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:41:25]Read from MH i2c: E2 [22:41:25]MH_I2C_Read... [22:41:25]Read from MH i2c: E2 62 00 [22:41:25]MH_I2C_Read... [22:41:25]Read from MH i2c: E2 62 00 12 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 FA E1 01 00 0E 04 04 00 43 01 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 0B [22:41: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 FA E1 01 00 0E 04 04 00 43 01 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 [22:41:25]wFMCommunicate OK [22:41:25]SAM_PROTO_GetFieldsCounters done [22:41:25]requested_item shift.num is exist - process it [22:41:25]requested_item shift.opened is exist - process it [22:41:25]req_shift_opened [22:41:25]FM_GetShiftState [22:41:25]SAM_PROTO_GetShiftState [22:41:25]wFMCommunicate request_size=4 [22:41:25]MH_SAM_APDU [22:41:25]CAPDU: 80 13 01 00 [22:41:25]Write to MH i2c: E2 08 00 13 59 80 13 01 00 00 00 00 00 E9 [22:41:25]Write i2c OK [22:41:25]MH_I2C_Read... [22:41:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:41:25]Read from MH i2c: E2 [22:41:25]MH_I2C_Read... [22:41:25]Read from MH i2c: E2 0E 00 [22:41:25]MH_I2C_Read... [22:41:25]Read from MH i2c: E2 0E 00 13 59 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 AB [22:41:25]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [22:41:25]wFMCommunicate OK [22:41:25]SAM_PROTO_GetShiftState done [22:41:25]FM_GetShiftState done [22:41:25]req_shift_opened done [22:41:25]requested_item shift.open_date is exist - process it [22:41:25]req_shift_open_date [22:41:25]req_shift_open_date done [22:41:25]produce_requested_data done [22:41:25]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123386,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [22:41:25]process_action_free close_receipt [22:41:25]json_value_free [22:41:25]json_value_free done [22:41:25]process_json_proto returns [22:41:25]Send response to host [22:41:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123386,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [22:41:25]free response buf [22:41:25]execute_script done [22:41:25]execute_script returns [22:41:25]free content buf [22:41:25]Sock 7.Close socket [22:41:25]Sock 7.Thread stoped [22:41:28]OFD Sender: No OFD packet to send [22:41:33]OFD Sender: No OFD packet to send [22:41:38]OFD Sender: No OFD packet to send [22:41:43]OFD Sender: No OFD packet to send [22:41:44]accept exits with 9 [22:41:44]New connection [22:41:44]New thread 3067395428 created [22:41:44]Thread 3067252068 joined [22:41:44]Waiting for new connection... [22:41:44] Sock 9.Parse request [22:41:44]Sock 9.Check first char [22:41:44]Sock 9.First char is OK [22:41:44]request: POST /json_proto HTTP/1.0 [22:41:44]Method: POST [22:41:44]URL: /json_proto [22:41:44]Method is POST - this is cgi request [22:41:44]url: /json_proto [22:41:44]query_string will be loaded in cgi processing [22:41:44]execute_cgi json_proto POST (null) [22:41:44]execute_cgi path=json_proto method=POST [22:41:44]POST find Content-Length [22:41:44]Host: 172.17.48.197:8080 [22:41:44]Content-Length: 809 [22:41:44]Content-Type: application/json [22:41:44] [22:41:44]POST finish read [22:41:44]Found Content-Length = 809 [22:41:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106370", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.30 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:41:44]execute_script... [22: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 : (1)1106370", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.30 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:41:44]POST & json_proto [22:41:44]process_json_proto [22:41:44]json parsed OK: [22:41:44]protocol is kg_v1.0 [22:41:44]action value=close_receipt [22:41:44]process_action close_receipt [22:41:44]cmd_close_receipt [22:41:44]MH_GetDate [22:41:44]Write to MH i2c: F0 00 00 14 59 5C [22:41:44]Write i2c OK [22:41:44]MH_I2C_Read... [22:41:44]Read from MH i2c: F0 [22:41:44]MH_I2C_Read... [22:41:44]Read from MH i2c: F0 09 00 [22:41:44]MH_I2C_Read... [22:41:44]Read from MH i2c: F0 09 00 14 59 00 AD FC E4 65 6C AF E3 65 BA [22:41:44]GetLastDocTimeStamp 1709505685 [22:41:44]current date 1709505709 [22:41:44]FM_GetShiftState [22:41:44]SAM_PROTO_GetShiftState [22:41:44]wFMCommunicate request_size=4 [22:41:44]MH_SAM_APDU [22:41:44]CAPDU: 80 13 01 00 [22:41:44]Write to MH i2c: E2 08 00 15 59 80 13 01 00 00 00 00 00 EB [22:41:44]Write i2c OK [22:41:44]MH_I2C_Read... [22:41:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:41:44]Read from MH i2c: E2 [22:41:44]MH_I2C_Read... [22:41:44]Read from MH i2c: E2 0E 00 [22:41:44]MH_I2C_Read... [22:41:44]Read from MH i2c: E2 0E 00 15 59 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 AD [22:41:44]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [22:41:44]wFMCommunicate OK [22:41:44]SAM_PROTO_GetShiftState done [22:41:44]FM_GetShiftState done [22:41:44]opened in 1709425579 [22:41:44]opened+sec_in_day 1709511979 [22:41:44]quantity*price = 100030 [22:41:44]sum+1 = 100031 [22:41:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.30 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 0.00 Безнал.: 1000.30 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 244 03.03.2024 22:41 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874798 ФД: 123387 ФПД: 163372003196547 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T224149&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123387&fm=163372003196547&tin=02508201610067®Number=0000000000090573&sum=100030 [22:41:45]StoreToDocumentArchive [22:41:45]shift 323 fd 123387 [22:41:45]save to /storage/0323/doc_00123387 [22:41:45]save last doc name /storage/0323/doc_00123387 to /storage/kkm_last_doc_name [22:41:45]save OK [22:41:45]Clear old archive folders... [22:41:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:41:45]tlvbuf is 00DC4FE0 [22:41:45]SAM_PROTO_ClearQueue [22:41:45]wFMCommunicate request_size=4 [22:41:45]MH_SAM_APDU [22:41:45]CAPDU: 80 09 00 00 [22:41:45]Write to MH i2c: E2 08 00 22 59 80 09 00 00 00 00 00 00 ED [22:41:45]Write i2c OK [22:41:45]MH_I2C_Read... [22:41:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:41:45]Read from MH i2c: E2 [22:41:45]MH_I2C_Read... [22:41:45]Read from MH i2c: E2 03 00 [22:41:45]MH_I2C_Read... [22:41:45]Read from MH i2c: E2 03 00 22 59 00 90 00 EF [22:41:45]RAPDU: 90 00 [22:41:45]wFMCommunicate OK [22:41:45]SAM_PROTO_ClearQueue done [22:41:45]KKMCreateOFDPacket [22:41:45]OFDProtocolAddRootSTLVToBuf [22:41:45]FM_MakeSignedData [22:41:45]FM_MakeSignedData [22:41:45]SAM_PROTO_SignData [22:41:45]wFMCommunicate request_size=4 [22:41:45]MH_SAM_APDU [22:41:45]CAPDU: 80 0D 01 02 [22:41:45]Write to MH i2c: E2 08 00 23 59 80 0D 01 02 00 00 00 00 F5 [22:41:45]Write i2c OK [22:41:45]MH_I2C_Read... [22:41:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:41:45]Read from MH i2c: E2 [22:41:45]MH_I2C_Read... [22:41:45]Read from MH i2c: E2 03 00 [22:41:45]MH_I2C_Read... [22:41:45]Read from MH i2c: E2 03 00 23 59 00 90 00 F0 [22:41:45]RAPDU: 90 00 [22:41:45]wFMCommunicate OK [22:41:45]wFMCommunicate request_size=255 [22:41:45]MH_SAM_APDU [22:41: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 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 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 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 AD FC E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 FB E1 01 00 35 04 06 00 94 [22:41:45]Write to MH i2c: E2 02 01 24 59 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 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 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 AD FC E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 FB E1 01 00 35 04 06 00 94 00 00 38 [22:41:45]Write i2c OK [22:41:45]MH_I2C_Read... [22:41:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:41:45]Read from MH i2c: E2 [22:41:45]MH_I2C_Read... [22:41:45]Read from MH i2c: E2 03 00 [22:41:45]MH_I2C_Read... [22:41:45]Read from MH i2c: E2 03 00 24 59 00 90 00 F1 [22:41:45]RAPDU: 90 00 [22:41:45]wFMCommunicate OK [22:41:45]wFMCommunicate request_size=10 [22:41:45]MH_SAM_APDU [22:41:45]CAPDU: 80 0D 02 02 05 96 02 37 7E 83 [22:41:45]Write to MH i2c: E2 0D 00 25 59 80 0D 02 02 05 00 96 02 37 7E 83 00 00 D2 [22:41:45]Write i2c OK [22:41:45]MH_I2C_Read... [22:41:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:41:45]Read from MH i2c: E2 [22:41:45]MH_I2C_Read... [22:41:45]Read from MH i2c: E2 03 00 [22:41:45]MH_I2C_Read... [22:41:45]Read from MH i2c: E2 03 00 25 59 00 90 00 F2 [22:41:45]RAPDU: 90 00 [22:41:45]wFMCommunicate OK [22:41:45]wFMCommunicate request_size=4 [22:41:45]MH_SAM_APDU [22:41:45]CAPDU: 80 0D 03 02 [22:41:45]Write to MH i2c: E2 08 00 26 59 80 0D 03 02 00 00 00 00 FA [22:41:45]Write i2c OK [22:41:45]MH_I2C_Read... [22:41:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:41:45]Read from MH i2c: E2 [22:41:45]MH_I2C_Read... [22:41:45]Read from MH i2c: E2 0B 00 [22:41:45]MH_I2C_Read... [22:41:45]Read from MH i2c: E2 0B 00 26 59 00 87 92 6E A8 64 AC CC 67 90 00 6D [22:41:45]RAPDU: 87 92 6E A8 64 AC CC 67 90 00 [22:41:45]wFMCommunicate OK [22:41:45]SAM_PROTO_SignData done [22:41:45]FM_MakeSignedData done [22:41:45]CreateOFDProtocolMessage [22:41:45]wFMCommunicate request_size=4 [22:41:45]MH_SAM_APDU [22:41:45]CAPDU: 80 11 00 00 [22:41:45]Write to MH i2c: E2 08 00 27 59 80 11 00 00 00 00 00 00 FA [22:41:45]Write i2c OK [22:41:45]MH_I2C_Read... [22:41:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:41:46]Read from MH i2c: E2 [22:41:46]MH_I2C_Read... [22:41:46]Read from MH i2c: E2 17 00 [22:41:46]MH_I2C_Read... [22:41:46]Read from MH i2c: E2 17 00 27 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 58 [22:41:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [22:41:46]wFMCommunicate OK [22:41:46]CreateOFDProtocolMessage done [22:41:46]OFDSenderStorePacket 123387 [22:41:46]StoreOFDPacket docnum=123387 [22:41:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 6A CD 07 01 69 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 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 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 AD FC E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 FB E1 01 00 35 04 06 00 94 96 02 37 7E 83 87 92 6E A8 64 AC CC 67 [22:41:46]CheckFolder [22:41:46]dirname=/storage/ofd_packets [22:41:46]CheckFolder done [22:41:46]ProducePacketName [22:41:46]name=ofd_packets/00123387 [22:41:46]NVStorageSaveData ofd_packets/00123387 [22:41:46]File name is /storage/ofd_packets/00123387 [22:41:46]Write 301 bytes [22:41:46]NVStorageSaveData done [22:41:46]OFDSenderStorePacket done [22:41:46]KKMCreateOFDPacket done [22:41:46]NVStorageSaveData kkm_last_timestamp [22:41:46]File name is /storage/kkm_last_timestamp [22:41:46]Write 4 bytes [22:41:46]NVStorageSaveData done [22:41:46]ExternCall_PrintAddStr [22:41:46]wPrintStart [22:41:46]Write to MH i2c: 01 00 00 28 59 81 [22:41:46]Write i2c OK [22:41:46]MH_I2C_Read... [22:41:46]Read from MH i2c: 01 [22:41:46]MH_I2C_Read... [22:41:46]Read from MH i2c: 01 07 00 [22:41:46]MH_I2C_Read... [22:41:46]Read from MH i2c: 01 07 00 28 59 00 00 00 00 00 FF 0F 96 [22:41:46]RasterBufferAndPrint [22:41:46]line Счет N : (1)1106370 [22:41:46]line ИНН: 02508201610067 [22:41:46]line Контрольно-Кассовый Чек [22:41:46]line ПРОДАЖА [22:41:46]line ТРК (МРК, ГНК) : 11 [22:41:46]line Товар: 2710124130 [22:41:46]line Аи-92-К-5 [22:41:46]line 16.160 * 61.90 [22:41:46]line = 1000.30 [22:41:46]line НДС 12% НСП 1% [22:41:46]line > о реализуемом товаре [22:41:46]line ИТОГО: 1000.30 [22:41:46]line НСП 1% : 8.85 [22:41:46]line НДС 12% : 106.23 [22:41:46]line Наличными: 0.00 [22:41:46]line Безнал.: 1000.30 [22:41:46]line Место: АЗС № 25 "Партнер Нефть" [22:41:46]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [22:41:46]line СНО: Общий режим [22:41:46]line Чек 244 03.03.2024 22:41 [22:41:46]line Смена: 323 ФФД: 1.0 [22:41:46]line ЗНМ: 0300000019 [22:41:46]line РНМ: 0000000000090573 [22:41:46]line Версия ККМ: 001 [22:41:46]line Платежная система: О! деньги [22:41:46]line ФМ: 0000000000874798 [22:41:46]line ФД: 123387 [22:41:46]line ФПД: 163372003196547 [22:41:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T224149&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123387&fm=163372003196547&tin=02508201610067®Number=0000000000090573&sum=100030 [22:41:46]OFD Sender: Processing packet 123387 [packets to send 112, broken 111] [22:41:46]ProducePacketName [22:41:46]name=ofd_packets/00123387 [22:41:46]OFD Sender: To server: pG, [22:41:46]CommunicateWithHost lk.salyk.kg:30040 [22:41:46]ConnectInit lk.salyk.kg [22:41:46]written 0, free lines is 4095 [22:41:46]Connected sock=10 [22:41: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 37 39 38 0F 01 00 00 6A CD 07 01 69 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 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 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 AD FC E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 FB E1 01 00 35 04 06 00 94 96 02 37 7E 83 87 92 6E A8 64 AC CC 67 [22:41:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 6A 43 47 00 98 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 FB E1 01 00 F4 03 04 00 D8 A8 E4 65 B6 04 01 00 00 C2 FC 6C 98 D8 A6 5D 49 [22:41:46]CommunicateWithHost err = 0 [22:41:46]CheckOFDResponse [22:41:46]1017 (14) - 77093643461234 [22:41:46]1041 (16) - 0000000000874798 [22:41:46]1040 (4) - 123387 [22:41:46]1012 (4) - 03.03.2024 16:44 [22:41:46]1206 (1) - 0 [22:41:46]OFD Sender: Remove packet 123387 [22:41:46]ProducePacketName [22:41:46]name=ofd_packets/00123387 [22:41:46]NVStorageDeleteData [22:41:46]Write to MH i2c: 01 00 00 52 59 AB [22:41:46]Write i2c OK [22:41:46]MH_I2C_Read... [22:41:46]Read from MH i2c: 01 [22:41:46]MH_I2C_Read... [22:41:46]Read from MH i2c: 01 07 00 [22:41:46]MH_I2C_Read... [22:41:46]Read from MH i2c: 01 07 00 52 59 00 00 00 00 00 04 0D C3 [22:41:46]RasterBufferAndPrint [22:41:46]line [22:41:46]line [22:41:46]line [22:41:46]line [22:41:46]line [22:41:46]written 0, free lines is 3341 [22:41:46]MH_Cut [22:41:46]Write to MH i2c: D1 01 00 59 59 01 84 [22:41:46]Write i2c OK [22:41:46]MH_I2C_Read... [22:41:46]Read from MH i2c: D1 [22:41:46]MH_I2C_Read... [22:41:46]Read from MH i2c: D1 01 00 [22:41:46]MH_I2C_Read... [22:41:46]Read from MH i2c: D1 01 00 59 59 00 83 [22:41:46]Write to MH i2c: 01 00 00 5A 59 B3 [22:41:46]Write i2c OK [22:41:46]MH_I2C_Read... [22:41:47]OFD Sender: No OFD packet to send [22:41:47]*** Cut start [22:41:47]*** Purtial cut [22:41:47]*** Stage 1: CUTSNS_PIN = 1 [22:41:49]Read from MH i2c: 01 [22:41:49]MH_I2C_Read... [22:41:49]*** Stop cut motor [22:41:49]*** Cut end [22:41:49]Read from MH i2c: 01 07 00 [22:41:49]MH_I2C_Read... [22:41:49]Read from MH i2c: 01 07 00 5A 59 00 00 00 00 00 FF 0F C8 [22:41:49]process_action close_receipt done [22:41:49]requested_data is exist [22:41:49]produce_requested_data [22:41:49]requested_item fm.sn is exist - process it [22:41:49]wFMCommunicate request_size=4 [22:41:49]MH_SAM_APDU [22:41:49]CAPDU: 80 11 00 00 [22:41:49]Write to MH i2c: E2 08 00 5B 59 80 11 00 00 00 00 00 00 2E [22:41:49]Write i2c OK [22:41:49]MH_I2C_Read... [22:41:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:41:49]Read from MH i2c: E2 [22:41:49]MH_I2C_Read... [22:41:49]Read from MH i2c: E2 17 00 [22:41:49]MH_I2C_Read... [22:41:49]Read from MH i2c: E2 17 00 5B 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 8C [22:41:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [22:41:49]wFMCommunicate OK [22:41:49]requested_item fd.num is exist - process it [22:41:49]SAM_PROTO_GetFieldsCounters [22:41:49]wFMCommunicate request_size=4 [22:41:49]MH_SAM_APDU [22:41:49]CAPDU: 80 13 00 00 [22:41:49]Write to MH i2c: E2 08 00 5C 59 80 13 00 00 00 00 00 00 31 [22:41:49]Write i2c OK [22:41:49]MH_I2C_Read... [22:41:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:41:49]Read from MH i2c: E2 [22:41:49]MH_I2C_Read... [22:41:49]Read from MH i2c: E2 62 00 [22:41:49]MH_I2C_Read... [22:41:49]Read from MH i2c: E2 62 00 5C 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 FB E1 01 00 0E 04 04 00 43 01 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 59 [22: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 FB E1 01 00 0E 04 04 00 43 01 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 [22:41:49]wFMCommunicate OK [22:41:49]SAM_PROTO_GetFieldsCounters done [22:41:49]requested_item shift.num is exist - process it [22:41:49]requested_item shift.opened is exist - process it [22:41:49]req_shift_opened [22:41:49]FM_GetShiftState [22:41:49]SAM_PROTO_GetShiftState [22:41:49]wFMCommunicate request_size=4 [22:41:49]MH_SAM_APDU [22:41:49]CAPDU: 80 13 01 00 [22:41:49]Write to MH i2c: E2 08 00 5D 59 80 13 01 00 00 00 00 00 33 [22:41:49]Write i2c OK [22:41:49]MH_I2C_Read... [22:41:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:41:49]Read from MH i2c: E2 [22:41:49]MH_I2C_Read... [22:41:49]Read from MH i2c: E2 0E 00 [22:41:49]MH_I2C_Read... [22:41:49]Read from MH i2c: E2 0E 00 5D 59 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 F5 [22:41:49]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [22:41:49]wFMCommunicate OK [22:41:49]SAM_PROTO_GetShiftState done [22:41:49]FM_GetShiftState done [22:41:49]req_shift_opened done [22:41:49]requested_item shift.open_date is exist - process it [22:41:49]req_shift_open_date [22:41:49]req_shift_open_date done [22:41:49]produce_requested_data done [22:41:49]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123387,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [22:41:49]process_action_free close_receipt [22:41:49]json_value_free [22:41:49]json_value_free done [22:41:49]process_json_proto returns [22:41:49]Send response to host [22:41:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123387,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [22:41:49]free response buf [22:41:49]execute_script done [22:41:49]execute_script returns [22:41:49]free content buf [22:41:49]Sock 9.Close socket [22:41:49]Sock 9.Thread stoped [22:41:52]OFD Sender: No OFD packet to send [22:41:57]OFD Sender: No OFD packet to send [22:42:02]OFD Sender: No OFD packet to send [22:42:07]OFD Sender: No OFD packet to send [22:42:12]OFD Sender: No OFD packet to send [22:42:17]OFD Sender: No OFD packet to send [22:42:22]OFD Sender: No OFD packet to send [22:42:27]OFD Sender: No OFD packet to send [22:42:32]OFD Sender: No OFD packet to send [22:42:37]OFD Sender: No OFD packet to send [22:42:42]OFD Sender: No OFD packet to send [22:42:47]OFD Sender: No OFD packet to send [22:42:52]OFD Sender: No OFD packet to send [22:42:57]OFD Sender: No OFD packet to send [22:43:02]OFD Sender: No OFD packet to send [22:43:07]OFD Sender: No OFD packet to send [22:43:12]OFD Sender: No OFD packet to send [22:43:17]OFD Sender: No OFD packet to send [22:43:22]OFD Sender: No OFD packet to send [22:43:27]OFD Sender: No OFD packet to send [22:43:32]OFD Sender: No OFD packet to send [22:43:37]OFD Sender: No OFD packet to send [22:43:42]OFD Sender: No OFD packet to send [22:43:47]OFD Sender: No OFD packet to send [22:43:52]OFD Sender: No OFD packet to send [22:43:57]OFD Sender: No OFD packet to send [22:44:02]OFD Sender: No OFD packet to send [22:44:07]OFD Sender: No OFD packet to send [22:44:12]OFD Sender: No OFD packet to send [22:44:17]OFD Sender: No OFD packet to send [22:44:22]OFD Sender: No OFD packet to send [22:44:27]OFD Sender: No OFD packet to send [22:44:31]accept exits with 7 [22:44:31]New connection [22:44:31]New thread 3067252068 created [22:44:31]Thread 3067395428 joined [22:44:31]Waiting for new connection... [22:44:31] Sock 7.Parse request [22:44:31]Sock 7.Check first char [22:44:31]Sock 7.First char is OK [22:44:31]request: POST /json_proto HTTP/1.0 [22:44:31]Method: POST [22:44:31]URL: /json_proto [22:44:31]Method is POST - this is cgi request [22:44:31]url: /json_proto [22:44:31]query_string will be loaded in cgi processing [22:44:31]execute_cgi json_proto POST (null) [22:44:31]execute_cgi path=json_proto method=POST [22:44:31]POST find Content-Length [22:44:31]Host: 172.17.48.197:8080 [22:44:31]Content-Length: 806 [22:44:31]Content-Type: application/json [22:44:31] [22:44:31]POST finish read [22:44:31]Found Content-Length = 806 [22:44:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106374", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 4.850, "sum" : 300.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:44:31]execute_script... [22:44:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106374", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 4.850, "sum" : 300.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:44:31]POST & json_proto [22:44:31]process_json_proto [22:44:31]json parsed OK: [22:44:31]protocol is kg_v1.0 [22:44:31]action value=close_receipt [22:44:31]process_action close_receipt [22:44:31]cmd_close_receipt [22:44:31]MH_GetDate [22:44:31]Write to MH i2c: F0 00 00 5E 59 A6 [22:44:31]Write i2c OK [22:44:31]MH_I2C_Read... [22:44:31]Read from MH i2c: F0 [22:44:31]MH_I2C_Read... [22:44:31]Read from MH i2c: F0 09 00 [22:44:31]MH_I2C_Read... [22:44:31]Read from MH i2c: F0 09 00 5E 59 00 54 FD E4 65 6C AF E3 65 AC [22:44:31]GetLastDocTimeStamp 1709505709 [22:44:31]current date 1709505876 [22:44:31]FM_GetShiftState [22:44:31]SAM_PROTO_GetShiftState [22:44:31]wFMCommunicate request_size=4 [22:44:31]MH_SAM_APDU [22:44:31]CAPDU: 80 13 01 00 [22:44:31]Write to MH i2c: E2 08 00 5F 59 80 13 01 00 00 00 00 00 35 [22:44:31]Write i2c OK [22:44:31]MH_I2C_Read... [22:44:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:44:31]Read from MH i2c: E2 [22:44:31]MH_I2C_Read... [22:44:31]Read from MH i2c: E2 0E 00 [22:44:31]MH_I2C_Read... [22:44:31]Read from MH i2c: E2 0E 00 5F 59 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 F7 [22:44:31]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [22:44:31]wFMCommunicate OK [22:44:31]SAM_PROTO_GetShiftState done [22:44:31]FM_GetShiftState done [22:44:31]opened in 1709425579 [22:44:31]opened+sec_in_day 1709511979 [22:44:31]quantity*price = 30021 [22:44:31]sum+1 = 30023 [22:44:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.22 НСП 1% : 2.66 НДС 12% : 31.88 Наличными: 0.00 Безнал.: 300.22 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 245 03.03.2024 22:44 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874798 ФД: 123388 ФПД: 54667515451724 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T224436&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123388&fm=54667515451724&tin=02508201610067®Number=0000000000090573&sum=30022 [22:44:32]StoreToDocumentArchive [22:44:32]shift 323 fd 123388 [22:44:32]save to /storage/0323/doc_00123388 [22:44:32]save last doc name /storage/0323/doc_00123388 to /storage/kkm_last_doc_name [22:44:32]save OK [22:44:32]Clear old archive folders... [22:44:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:44:32]tlvbuf is 00E2C480 [22:44:32]SAM_PROTO_ClearQueue [22:44:32]wFMCommunicate request_size=4 [22:44:32]MH_SAM_APDU [22:44:32]CAPDU: 80 09 00 00 [22:44:32]Write to MH i2c: E2 08 00 6C 59 80 09 00 00 00 00 00 00 37 [22:44:32]Write i2c OK [22:44:32]MH_I2C_Read... [22:44:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:44:32]Read from MH i2c: E2 [22:44:32]MH_I2C_Read... [22:44:32]Read from MH i2c: E2 03 00 [22:44:32]MH_I2C_Read... [22:44:32]Read from MH i2c: E2 03 00 6C 59 00 90 00 39 [22:44:32]RAPDU: 90 00 [22:44:32]wFMCommunicate OK [22:44:32]SAM_PROTO_ClearQueue done [22:44:32]KKMCreateOFDPacket [22:44:32]OFDProtocolAddRootSTLVToBuf [22:44:32]FM_MakeSignedData [22:44:32]FM_MakeSignedData [22:44:32]SAM_PROTO_SignData [22:44:32]wFMCommunicate request_size=4 [22:44:32]MH_SAM_APDU [22:44:32]CAPDU: 80 0D 01 02 [22:44:32]Write to MH i2c: E2 08 00 6D 59 80 0D 01 02 00 00 00 00 3F [22:44:32]Write i2c OK [22:44:32]MH_I2C_Read... [22:44:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:44:32]Read from MH i2c: E2 [22:44:32]MH_I2C_Read... [22:44:32]Read from MH i2c: E2 03 00 [22:44:32]MH_I2C_Read... [22:44:32]Read from MH i2c: E2 03 00 6D 59 00 90 00 3A [22:44:32]RAPDU: 90 00 [22:44:32]wFMCommunicate OK [22:44:32]wFMCommunicate request_size=255 [22:44:32]MH_SAM_APDU [22:44:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 12 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 46 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 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 74 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 54 FD E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 FC E1 01 00 35 04 06 00 31 [22:44:32]Write to MH i2c: E2 02 01 6E 59 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 12 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 46 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 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 74 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 54 FD E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 FC E1 01 00 35 04 06 00 31 00 00 3B [22:44:32]OFD Sender: No OFD packet to send [22:44:32]Write i2c OK [22:44:32]MH_I2C_Read... [22:44:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:44:32]Read from MH i2c: E2 [22:44:32]MH_I2C_Read... [22:44:32]Read from MH i2c: E2 03 00 [22:44:32]MH_I2C_Read... [22:44:32]Read from MH i2c: E2 03 00 6E 59 00 90 00 3B [22:44:32]RAPDU: 90 00 [22:44:32]wFMCommunicate OK [22:44:32]wFMCommunicate request_size=10 [22:44:32]MH_SAM_APDU [22:44:32]CAPDU: 80 0D 02 02 05 B8 45 D6 D9 4C [22:44:32]Write to MH i2c: E2 0D 00 6F 59 80 0D 02 02 05 00 B8 45 D6 D9 4C 00 00 44 [22:44:32]Write i2c OK [22:44:32]MH_I2C_Read... [22:44:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:44:32]Read from MH i2c: E2 [22:44:32]MH_I2C_Read... [22:44:32]Read from MH i2c: E2 03 00 [22:44:32]MH_I2C_Read... [22:44:32]Read from MH i2c: E2 03 00 6F 59 00 90 00 3C [22:44:32]RAPDU: 90 00 [22:44:32]wFMCommunicate OK [22:44:32]wFMCommunicate request_size=4 [22:44:32]MH_SAM_APDU [22:44:32]CAPDU: 80 0D 03 02 [22:44:32]Write to MH i2c: E2 08 00 70 59 80 0D 03 02 00 00 00 00 44 [22:44:32]Write i2c OK [22:44:32]MH_I2C_Read... [22:44:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:44:32]Read from MH i2c: E2 [22:44:32]MH_I2C_Read... [22:44:32]Read from MH i2c: E2 0B 00 [22:44:32]MH_I2C_Read... [22:44:32]Read from MH i2c: E2 0B 00 70 59 00 96 9E 15 CD EE B2 53 FC 90 00 4A [22:44:32]RAPDU: 96 9E 15 CD EE B2 53 FC 90 00 [22:44:32]wFMCommunicate OK [22:44:32]SAM_PROTO_SignData done [22:44:32]FM_MakeSignedData done [22:44:32]CreateOFDProtocolMessage [22:44:32]wFMCommunicate request_size=4 [22:44:32]MH_SAM_APDU [22:44:32]CAPDU: 80 11 00 00 [22:44:32]Write to MH i2c: E2 08 00 71 59 80 11 00 00 00 00 00 00 44 [22:44:32]Write i2c OK [22:44:32]MH_I2C_Read... [22:44:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:44:32]Read from MH i2c: E2 [22:44:32]MH_I2C_Read... [22:44:32]Read from MH i2c: E2 17 00 [22:44:32]MH_I2C_Read... [22:44:32]Read from MH i2c: E2 17 00 71 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 A2 [22:44:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [22:44:32]wFMCommunicate OK [22:44:32]CreateOFDProtocolMessage done [22:44:32]OFDSenderStorePacket 123388 [22:44:32]StoreOFDPacket docnum=123388 [22:44:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 CB 33 07 01 25 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 12 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 46 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 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 74 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 54 FD E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 FC E1 01 00 35 04 06 00 31 B8 45 D6 D9 4C 96 9E 15 CD EE B2 53 FC [22:44:32]CheckFolder [22:44:32]dirname=/storage/ofd_packets [22:44:32]CheckFolder done [22:44:32]ProducePacketName [22:44:32]name=ofd_packets/00123388 [22:44:32]NVStorageSaveData ofd_packets/00123388 [22:44:32]File name is /storage/ofd_packets/00123388 [22:44:32]Write 301 bytes [22:44:32]NVStorageSaveData done [22:44:32]OFDSenderStorePacket done [22:44:32]KKMCreateOFDPacket done [22:44:32]NVStorageSaveData kkm_last_timestamp [22:44:32]File name is /storage/kkm_last_timestamp [22:44:32]Write 4 bytes [22:44:32]NVStorageSaveData done [22:44:32]ExternCall_PrintAddStr [22:44:32]wPrintStart [22:44:32]Write to MH i2c: 01 00 00 72 59 CB [22:44:32]Write i2c OK [22:44:32]MH_I2C_Read... [22:44:32]Read from MH i2c: 01 [22:44:32]MH_I2C_Read... [22:44:32]Read from MH i2c: 01 07 00 [22:44:32]MH_I2C_Read... [22:44:32]Read from MH i2c: 01 07 00 72 59 00 00 00 00 00 FF 0F E0 [22:44:32]RasterBufferAndPrint [22:44:32]line Счет N : (1)1106374 [22:44:32]line ИНН: 02508201610067 [22:44:32]line Контрольно-Кассовый Чек [22:44:32]line ПРОДАЖА [22:44:32]line ТРК (МРК, ГНК) : 21 [22:44:32]line Товар: 2710124130 [22:44:32]line Аи-92-К-5 [22:44:32]line 4.850 * 61.90 [22:44:32]line = 300.22 [22:44:32]line НДС 12% НСП 1% [22:44:32]line > о реализуемом товаре [22:44:32]line ИТОГО: 300.22 [22:44:32]line НСП 1% : 2.66 [22:44:32]line НДС 12% : 31.88 [22:44:32]line Наличными: 0.00 [22:44:32]line Безнал.: 300.22 [22:44:32]line Место: АЗС № 25 "Партнер Нефть" [22:44:32]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [22:44:32]line СНО: Общий режим [22:44:32]line Чек 245 03.03.2024 22:44 [22:44:32]line Смена: 323 ФФД: 1.0 [22:44:32]line ЗНМ: 0300000019 [22:44:32]line РНМ: 0000000000090573 [22:44:32]line Версия ККМ: 001 [22:44:32]line Платежная система: О! деньги [22:44:32]line ФМ: 0000000000874798 [22:44:32]line ФД: 123388 [22:44:32]line ФПД: 54667515451724 [22:44:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T224436&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123388&fm=54667515451724&tin=02508201610067®Number=0000000000090573&sum=30022 [22:44:33]OFD Sender: Processing packet 123388 [packets to send 112, broken 111] [22:44:33]ProducePacketName [22:44:33]name=ofd_packets/00123388 [22:44:33]OFD Sender: To server: pG, [22:44:33]CommunicateWithHost lk.salyk.kg:30040 [22:44:33]ConnectInit lk.salyk.kg [22:44:33]written 0, free lines is 4095 [22:44:33]Connected sock=10 [22:44: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 37 39 38 0F 01 00 00 CB 33 07 01 25 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 12 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 46 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 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 74 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 54 FD E4 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 FC E1 01 00 35 04 06 00 31 B8 45 D6 D9 4C 96 9E 15 CD EE B2 53 FC [22:44:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 59 45 47 00 A9 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 37 39 38 10 04 04 00 FC E1 01 00 F4 03 04 00 7E A9 E4 65 B6 04 01 00 00 F2 0E 74 D5 8A 6C 17 CE [22:44:33]CommunicateWithHost err = 0 [22:44:33]CheckOFDResponse [22:44:33]1017 (14) - 77093643461234 [22:44:33]1041 (16) - 0000000000874798 [22:44:33]1040 (4) - 123388 [22:44:33]1012 (4) - 03.03.2024 16:46 [22:44:33]1206 (1) - 0 [22:44:33]OFD Sender: Remove packet 123388 [22:44:33]ProducePacketName [22:44:33]name=ofd_packets/00123388 [22:44:33]NVStorageDeleteData [22:44:33]Write to MH i2c: 01 00 00 9C 59 F5 [22:44:33]Write i2c OK [22:44:33]MH_I2C_Read... [22:44:33]Read from MH i2c: 01 [22:44:33]MH_I2C_Read... [22:44:33]Read from MH i2c: 01 07 00 [22:44:33]MH_I2C_Read... [22:44:33]Read from MH i2c: 01 07 00 9C 59 00 00 00 00 00 02 0D 0B [22:44:33]RasterBufferAndPrint [22:44:33]line [22:44:33]line [22:44:33]line [22:44:33]line [22:44:33]line [22:44:33]written 0, free lines is 3336 [22:44:33]MH_Cut [22:44:33]Write to MH i2c: D1 01 00 A3 59 01 CE [22:44:33]Write i2c OK [22:44:33]MH_I2C_Read... [22:44:33]Read from MH i2c: D1 [22:44:33]MH_I2C_Read... [22:44:33]Read from MH i2c: D1 01 00 [22:44:33]MH_I2C_Read... [22:44:33]Read from MH i2c: D1 01 00 A3 59 00 CD [22:44:33]Write to MH i2c: 01 00 00 A4 59 FD [22:44:33]Write i2c OK [22:44:33]MH_I2C_Read... [22:44:33]OFD Sender: No OFD packet to send [22:44:34]*** Cut start [22:44:34]*** Purtial cut [22:44:34]*** Stage 1: CUTSNS_PIN = 1 [22:44:36]Read from MH i2c: 01 [22:44:36]MH_I2C_Read... [22:44:36]*** Stop cut motor [22:44:36]*** Cut end [22:44:36]Read from MH i2c: 01 07 00 [22:44:36]MH_I2C_Read... [22:44:36]Read from MH i2c: 01 07 00 A4 59 00 00 00 00 00 FF 0F 12 [22:44:36]process_action close_receipt done [22:44:36]requested_data is exist [22:44:36]produce_requested_data [22:44:36]requested_item fm.sn is exist - process it [22:44:36]wFMCommunicate request_size=4 [22:44:36]MH_SAM_APDU [22:44:36]CAPDU: 80 11 00 00 [22:44:36]Write to MH i2c: E2 08 00 A5 59 80 11 00 00 00 00 00 00 78 [22:44:36]Write i2c OK [22:44:36]MH_I2C_Read... [22:44:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:44:36]Read from MH i2c: E2 [22:44:36]MH_I2C_Read... [22:44:36]Read from MH i2c: E2 17 00 [22:44:36]MH_I2C_Read... [22:44:36]Read from MH i2c: E2 17 00 A5 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 D6 [22:44:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [22:44:36]wFMCommunicate OK [22:44:36]requested_item fd.num is exist - process it [22:44:36]SAM_PROTO_GetFieldsCounters [22:44:36]wFMCommunicate request_size=4 [22:44:36]MH_SAM_APDU [22:44:36]CAPDU: 80 13 00 00 [22:44:36]Write to MH i2c: E2 08 00 A6 59 80 13 00 00 00 00 00 00 7B [22:44:36]Write i2c OK [22:44:36]MH_I2C_Read... [22:44:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:44:36]Read from MH i2c: E2 [22:44:36]MH_I2C_Read... [22:44:36]Read from MH i2c: E2 62 00 [22:44:36]MH_I2C_Read... [22:44:36]Read from MH i2c: E2 62 00 A6 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 FC E1 01 00 0E 04 04 00 43 01 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 A7 [22:44: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 FC E1 01 00 0E 04 04 00 43 01 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 [22:44:36]wFMCommunicate OK [22:44:36]SAM_PROTO_GetFieldsCounters done [22:44:36]requested_item shift.num is exist - process it [22:44:36]requested_item shift.opened is exist - process it [22:44:36]req_shift_opened [22:44:36]FM_GetShiftState [22:44:36]SAM_PROTO_GetShiftState [22:44:36]wFMCommunicate request_size=4 [22:44:36]MH_SAM_APDU [22:44:36]CAPDU: 80 13 01 00 [22:44:36]Write to MH i2c: E2 08 00 A7 59 80 13 01 00 00 00 00 00 7D [22:44:36]Write i2c OK [22:44:36]MH_I2C_Read... [22:44:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:44:36]Read from MH i2c: E2 [22:44:36]MH_I2C_Read... [22:44:36]Read from MH i2c: E2 0E 00 [22:44:36]MH_I2C_Read... [22:44:36]Read from MH i2c: E2 0E 00 A7 59 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 3F [22:44:36]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [22:44:36]wFMCommunicate OK [22:44:36]SAM_PROTO_GetShiftState done [22:44:36]FM_GetShiftState done [22:44:36]req_shift_opened done [22:44:36]requested_item shift.open_date is exist - process it [22:44:36]req_shift_open_date [22:44:36]req_shift_open_date done [22:44:36]produce_requested_data done [22:44:36]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123388,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [22:44:36]process_action_free close_receipt [22:44:36]json_value_free [22:44:36]json_value_free done [22:44:36]process_json_proto returns [22:44:36]Send response to host [22:44:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123388,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [22:44:36]free response buf [22:44:36]execute_script done [22:44:36]execute_script returns [22:44:36]free content buf [22:44:36]Sock 7.Close socket [22:44:36]Sock 7.Thread stoped [22:44:38]OFD Sender: No OFD packet to send [22:44:43]OFD Sender: No OFD packet to send [22:44:48]OFD Sender: No OFD packet to send [22:44:53]OFD Sender: No OFD packet to send [22:44:58]OFD Sender: No OFD packet to send [22:45:03]OFD Sender: No OFD packet to send [22:45:08]OFD Sender: No OFD packet to send [22:45:13]OFD Sender: No OFD packet to send [22:45:18]OFD Sender: No OFD packet to send [22:45:23]OFD Sender: No OFD packet to send [22:45:28]OFD Sender: No OFD packet to send [22:45:33]OFD Sender: No OFD packet to send [22:45:38]OFD Sender: No OFD packet to send [22:45:43]OFD Sender: No OFD packet to send [22:45:48]OFD Sender: No OFD packet to send [22:45:53]OFD Sender: No OFD packet to send [22:45:59]OFD Sender: No OFD packet to send [22:46:04]OFD Sender: No OFD packet to send [22:46:09]OFD Sender: No OFD packet to send [22:46:14]OFD Sender: No OFD packet to send [22:46:19]OFD Sender: No OFD packet to send [22:46:24]OFD Sender: No OFD packet to send [22:46:29]OFD Sender: No OFD packet to send [22:46:34]OFD Sender: No OFD packet to send [22:46:39]OFD Sender: No OFD packet to send [22:46:44]OFD Sender: No OFD packet to send [22:46:49]OFD Sender: No OFD packet to send [22:46:54]OFD Sender: No OFD packet to send [22:46:59]OFD Sender: No OFD packet to send [22:47:04]OFD Sender: No OFD packet to send [22:47:09]OFD Sender: No OFD packet to send [22:47:14]OFD Sender: No OFD packet to send [22:47:19]OFD Sender: No OFD packet to send [22:47:24]OFD Sender: No OFD packet to send [22:47:29]OFD Sender: No OFD packet to send [22:47:34]OFD Sender: No OFD packet to send [22:47:39]OFD Sender: No OFD packet to send [22:47:44]OFD Sender: No OFD packet to send [22:47:49]OFD Sender: No OFD packet to send [22:47:54]OFD Sender: No OFD packet to send [22:47:59]OFD Sender: No OFD packet to send [22:48:04]OFD Sender: No OFD packet to send [22:48:09]OFD Sender: No OFD packet to send [22:48:14]OFD Sender: No OFD packet to send [22:48:19]OFD Sender: No OFD packet to send [22:48:24]OFD Sender: No OFD packet to send [22:48:29]OFD Sender: No OFD packet to send [22:48:34]OFD Sender: No OFD packet to send [22:48:39]OFD Sender: No OFD packet to send [22:48:44]OFD Sender: No OFD packet to send [22:48:49]OFD Sender: No OFD packet to send [22:48:54]OFD Sender: No OFD packet to send [22:48:59]OFD Sender: No OFD packet to send [22:49:04]OFD Sender: No OFD packet to send [22:49:09]OFD Sender: No OFD packet to send [22:49:14]OFD Sender: No OFD packet to send [22:49:19]OFD Sender: No OFD packet to send [22:49:24]OFD Sender: No OFD packet to send [22:49:29]OFD Sender: No OFD packet to send [22:49:34]OFD Sender: No OFD packet to send [22:49:39]OFD Sender: No OFD packet to send [22:49:44]OFD Sender: No OFD packet to send [22:49:49]OFD Sender: No OFD packet to send [22:49:54]OFD Sender: No OFD packet to send [22:49:59]OFD Sender: No OFD packet to send [22:50:04]OFD Sender: No OFD packet to send [22:50:09]OFD Sender: No OFD packet to send [22:50:14]OFD Sender: No OFD packet to send [22:50:19]OFD Sender: No OFD packet to send [22:50:24]OFD Sender: No OFD packet to send [22:50:29]OFD Sender: No OFD packet to send [22:50:34]OFD Sender: No OFD packet to send [22:50:39]OFD Sender: No OFD packet to send [22:50:44]OFD Sender: No OFD packet to send [22:50:49]OFD Sender: No OFD packet to send [22:50:54]OFD Sender: No OFD packet to send [22:50:59]OFD Sender: No OFD packet to send [22:51:04]OFD Sender: No OFD packet to send [22:51:09]OFD Sender: No OFD packet to send [22:51:14]OFD Sender: No OFD packet to send [22:51:19]OFD Sender: No OFD packet to send [22:51:24]OFD Sender: No OFD packet to send [22:51:29]OFD Sender: No OFD packet to send [22:51:34]OFD Sender: No OFD packet to send [22:51:39]OFD Sender: No OFD packet to send [22:51:44]OFD Sender: No OFD packet to send [22:51:49]OFD Sender: No OFD packet to send [22:51:54]OFD Sender: No OFD packet to send [22:51:59]OFD Sender: No OFD packet to send [22:52:04]OFD Sender: No OFD packet to send [22:52:09]OFD Sender: No OFD packet to send [22:52:14]OFD Sender: No OFD packet to send [22:52:19]OFD Sender: No OFD packet to send [22:52:24]OFD Sender: No OFD packet to send [22:52:29]OFD Sender: No OFD packet to send [22:52:34]OFD Sender: No OFD packet to send [22:52:39]OFD Sender: No OFD packet to send [22:52:44]OFD Sender: No OFD packet to send [22:52:49]OFD Sender: No OFD packet to send [22:52:54]OFD Sender: No OFD packet to send [22:52:59]OFD Sender: No OFD packet to send [22:53:04]OFD Sender: No OFD packet to send [22:53:09]OFD Sender: No OFD packet to send [22:53:14]OFD Sender: No OFD packet to send [22:53:19]OFD Sender: No OFD packet to send [22:53:24]OFD Sender: No OFD packet to send [22:53:29]OFD Sender: No OFD packet to send [22:53:34]OFD Sender: No OFD packet to send [22:53:39]OFD Sender: No OFD packet to send [22:53:44]OFD Sender: No OFD packet to send [22:53:49]OFD Sender: No OFD packet to send [22:53:54]OFD Sender: No OFD packet to send [22:53:59]OFD Sender: No OFD packet to send [22:54:04]OFD Sender: No OFD packet to send [22:54:09]OFD Sender: No OFD packet to send [22:54:14]OFD Sender: No OFD packet to send [22:54:19]OFD Sender: No OFD packet to send [22:54:24]OFD Sender: No OFD packet to send [22:54:29]OFD Sender: No OFD packet to send [22:54:34]OFD Sender: No OFD packet to send [22:54:39]OFD Sender: No OFD packet to send [22:54:44]OFD Sender: No OFD packet to send [22:54:49]OFD Sender: No OFD packet to send [22:54:54]OFD Sender: No OFD packet to send [22:54:59]OFD Sender: No OFD packet to send [22:55:04]OFD Sender: No OFD packet to send [22:55:09]OFD Sender: No OFD packet to send [22:55:14]OFD Sender: No OFD packet to send [22:55:19]OFD Sender: No OFD packet to send [22:55:24]OFD Sender: No OFD packet to send [22:55:29]OFD Sender: No OFD packet to send [22:55:34]OFD Sender: No OFD packet to send [22:55:39]OFD Sender: No OFD packet to send [22:55:44]OFD Sender: No OFD packet to send [22:55:49]OFD Sender: No OFD packet to send [22:55:54]OFD Sender: No OFD packet to send [22:55:59]OFD Sender: No OFD packet to send [22:56:04]OFD Sender: No OFD packet to send [22:56:09]OFD Sender: No OFD packet to send [22:56:14]OFD Sender: No OFD packet to send [22:56:19]OFD Sender: No OFD packet to send [22:56:24]OFD Sender: No OFD packet to send [22:56:29]OFD Sender: No OFD packet to send [22:56:34]OFD Sender: No OFD packet to send [22:56:39]OFD Sender: No OFD packet to send [22:56:44]OFD Sender: No OFD packet to send [22:56:49]OFD Sender: No OFD packet to send [22:56:54]OFD Sender: No OFD packet to send [22:56:59]OFD Sender: No OFD packet to send [22:57:04]OFD Sender: No OFD packet to send [22:57:09]OFD Sender: No OFD packet to send [22:57:14]OFD Sender: No OFD packet to send [22:57:19]OFD Sender: No OFD packet to send [22:57:24]OFD Sender: No OFD packet to send [22:57:29]OFD Sender: No OFD packet to send [22:57:34]OFD Sender: No OFD packet to send [22:57:39]OFD Sender: No OFD packet to send [22:57:44]OFD Sender: No OFD packet to send [22:57:49]OFD Sender: No OFD packet to send [22:57:54]OFD Sender: No OFD packet to send [22:57:59]OFD Sender: No OFD packet to send [22:58:04]OFD Sender: No OFD packet to send [22:58:09]OFD Sender: No OFD packet to send [22:58:14]OFD Sender: No OFD packet to send [22:58:19]OFD Sender: No OFD packet to send [22:58:24]OFD Sender: No OFD packet to send [22:58:29]OFD Sender: No OFD packet to send [22:58:30]accept exits with 9 [22:58:30]New connection [22:58:30]New thread 3067395428 created [22:58:30]Thread 3067252068 joined [22:58:30]Waiting for new connection... [22:58:30] Sock 9.Parse request [22:58:30]Sock 9.Check first char [22:58:30]Sock 9.First char is OK [22:58:30]request: POST /json_proto HTTP/1.0 [22:58:30]Method: POST [22:58:30]URL: /json_proto [22:58:30]Method is POST - this is cgi request [22:58:30]url: /json_proto [22:58:30]query_string will be loaded in cgi processing [22:58:30]execute_cgi json_proto POST (null) [22:58:30]execute_cgi path=json_proto method=POST [22:58:30]POST find Content-Length [22:58:30]Host: 172.17.48.197:8080 [22:58:30]Content-Length: 807 [22:58:30]Content-Type: application/json [22:58:30] [22:58:30]POST finish read [22:58:30]Found Content-Length = 807 [22:58:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106375", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 12.950, "sum" : 900.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 900.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:58:30]execute_script... [22:58: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)1106375", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 12.950, "sum" : 900.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 900.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:58:30]POST & json_proto [22:58:30]process_json_proto [22:58:30]json parsed OK: [22:58:30]protocol is kg_v1.0 [22:58:30]action value=close_receipt [22:58:30]process_action close_receipt [22:58:30]cmd_close_receipt [22:58:30]MH_GetDate [22:58:30]Write to MH i2c: F0 00 00 A8 59 F0 [22:58:30]Write i2c OK [22:58:30]MH_I2C_Read... [22:58:30]Read from MH i2c: F0 [22:58:30]MH_I2C_Read... [22:58:30]Read from MH i2c: F0 09 00 [22:58:30]MH_I2C_Read... [22:58:30]Read from MH i2c: F0 09 00 A8 59 00 9B 00 E5 65 6C AF E3 65 41 [22:58:30]GetLastDocTimeStamp 1709505876 [22:58:30]current date 1709506715 [22:58:30]FM_GetShiftState [22:58:30]SAM_PROTO_GetShiftState [22:58:30]wFMCommunicate request_size=4 [22:58:30]MH_SAM_APDU [22:58:30]CAPDU: 80 13 01 00 [22:58:30]Write to MH i2c: E2 08 00 A9 59 80 13 01 00 00 00 00 00 7F [22:58:30]Write i2c OK [22:58:30]MH_I2C_Read... [22:58:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:58:30]Read from MH i2c: E2 [22:58:30]MH_I2C_Read... [22:58:30]Read from MH i2c: E2 0E 00 [22:58:30]MH_I2C_Read... [22:58:30]Read from MH i2c: E2 0E 00 A9 59 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 41 [22:58:30]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [22:58:30]wFMCommunicate OK [22:58:30]SAM_PROTO_GetShiftState done [22:58:30]FM_GetShiftState done [22:58:30]opened in 1709425579 [22:58:30]opened+sec_in_day 1709511979 [22:58:30]quantity*price = 90002 [22:58:30]sum+1 = 90004 [22:58:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 900.03 НСП 1% : 7.96 НДС 12% : 95.58 Наличными: 0.00 Безнал.: 900.03 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 246 03.03.2024 22:58 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874798 ФД: 123389 ФПД: 134297653528334 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T225835&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123389&fm=134297653528334&tin=02508201610067®Number=0000000000090573&sum=90003 [22:58:31]StoreToDocumentArchive [22:58:31]shift 323 fd 123389 [22:58:31]save to /storage/0323/doc_00123389 [22:58:31]save last doc name /storage/0323/doc_00123389 to /storage/kkm_last_doc_name [22:58:31]save OK [22:58:31]Clear old archive folders... [22:58:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:58:31]tlvbuf is 00DB3A90 [22:58:31]SAM_PROTO_ClearQueue [22:58:31]wFMCommunicate request_size=4 [22:58:31]MH_SAM_APDU [22:58:31]CAPDU: 80 09 00 00 [22:58:31]Write to MH i2c: E2 08 00 B6 59 80 09 00 00 00 00 00 00 81 [22:58:31]Write i2c OK [22:58:31]MH_I2C_Read... [22:58:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:58:31]Read from MH i2c: E2 [22:58:31]MH_I2C_Read... [22:58:31]Read from MH i2c: E2 03 00 [22:58:31]MH_I2C_Read... [22:58:31]Read from MH i2c: E2 03 00 B6 59 00 90 00 83 [22:58:31]RAPDU: 90 00 [22:58:31]wFMCommunicate OK [22:58:31]SAM_PROTO_ClearQueue done [22:58:31]KKMCreateOFDPacket [22:58:31]OFDProtocolAddRootSTLVToBuf [22:58:31]FM_MakeSignedData [22:58:31]FM_MakeSignedData [22:58:31]SAM_PROTO_SignData [22:58:31]wFMCommunicate request_size=4 [22:58:31]MH_SAM_APDU [22:58:31]CAPDU: 80 0D 01 02 [22:58:31]Write to MH i2c: E2 08 00 B7 59 80 0D 01 02 00 00 00 00 89 [22:58:31]Write i2c OK [22:58:31]MH_I2C_Read... [22:58:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:58:31]Read from MH i2c: E2 [22:58:31]MH_I2C_Read... [22:58:31]Read from MH i2c: E2 03 00 [22:58:31]MH_I2C_Read... [22:58:31]Read from MH i2c: E2 03 00 B7 59 00 90 00 84 [22:58:31]RAPDU: 90 00 [22:58:31]wFMCommunicate OK [22:58:31]wFMCommunicate request_size=255 [22:58:31]MH_SAM_APDU [22:58: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 96 32 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 93 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 93 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 93 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 9B 00 E5 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 FD E1 01 00 35 04 06 00 7A [22:58:31]Write to MH i2c: E2 02 01 B8 59 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 96 32 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 93 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 93 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 93 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 9B 00 E5 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 FD E1 01 00 35 04 06 00 7A 00 00 95 [22:58:31]Write i2c OK [22:58:31]MH_I2C_Read... [22:58:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:58:31]Read from MH i2c: E2 [22:58:31]MH_I2C_Read... [22:58:31]Read from MH i2c: E2 03 00 [22:58:31]MH_I2C_Read... [22:58:31]Read from MH i2c: E2 03 00 B8 59 00 90 00 85 [22:58:31]RAPDU: 90 00 [22:58:31]wFMCommunicate OK [22:58:31]wFMCommunicate request_size=10 [22:58:31]MH_SAM_APDU [22:58:31]CAPDU: 80 0D 02 02 05 24 9B EE C7 0E [22:58:31]Write to MH i2c: E2 0D 00 B9 59 80 0D 02 02 05 00 24 9B EE C7 0E 00 00 18 [22:58:31]Write i2c OK [22:58:31]MH_I2C_Read... [22:58:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:58:31]Read from MH i2c: E2 [22:58:31]MH_I2C_Read... [22:58:31]Read from MH i2c: E2 03 00 [22:58:31]MH_I2C_Read... [22:58:31]Read from MH i2c: E2 03 00 B9 59 00 90 00 86 [22:58:31]RAPDU: 90 00 [22:58:31]wFMCommunicate OK [22:58:31]wFMCommunicate request_size=4 [22:58:31]MH_SAM_APDU [22:58:31]CAPDU: 80 0D 03 02 [22:58:31]Write to MH i2c: E2 08 00 BA 59 80 0D 03 02 00 00 00 00 8E [22:58:31]Write i2c OK [22:58:31]MH_I2C_Read... [22:58:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:58:32]Read from MH i2c: E2 [22:58:32]MH_I2C_Read... [22:58:32]Read from MH i2c: E2 0B 00 [22:58:32]MH_I2C_Read... [22:58:32]Read from MH i2c: E2 0B 00 BA 59 00 75 FA 14 70 DA 39 2D CC 90 00 8E [22:58:32]RAPDU: 75 FA 14 70 DA 39 2D CC 90 00 [22:58:32]wFMCommunicate OK [22:58:32]SAM_PROTO_SignData done [22:58:32]FM_MakeSignedData done [22:58:32]CreateOFDProtocolMessage [22:58:32]wFMCommunicate request_size=4 [22:58:32]MH_SAM_APDU [22:58:32]CAPDU: 80 11 00 00 [22:58:32]Write to MH i2c: E2 08 00 BB 59 80 11 00 00 00 00 00 00 8E [22:58:32]Write i2c OK [22:58:32]MH_I2C_Read... [22:58:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:58:32]Read from MH i2c: E2 [22:58:32]MH_I2C_Read... [22:58:32]Read from MH i2c: E2 17 00 [22:58:32]MH_I2C_Read... [22:58:32]Read from MH i2c: E2 17 00 BB 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 EC [22:58:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [22:58:32]wFMCommunicate OK [22:58:32]CreateOFDProtocolMessage done [22:58:32]OFDSenderStorePacket 123389 [22:58:32]StoreOFDPacket docnum=123389 [22:58:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 62 90 07 01 C7 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 96 32 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 93 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 93 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 93 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 9B 00 E5 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 FD E1 01 00 35 04 06 00 7A 24 9B EE C7 0E 75 FA 14 70 DA 39 2D CC [22:58:32]CheckFolder [22:58:32]dirname=/storage/ofd_packets [22:58:32]CheckFolder done [22:58:32]ProducePacketName [22:58:32]name=ofd_packets/00123389 [22:58:32]NVStorageSaveData ofd_packets/00123389 [22:58:32]File name is /storage/ofd_packets/00123389 [22:58:32]Write 301 bytes [22:58:32]NVStorageSaveData done [22:58:32]OFDSenderStorePacket done [22:58:32]KKMCreateOFDPacket done [22:58:32]NVStorageSaveData kkm_last_timestamp [22:58:32]File name is /storage/kkm_last_timestamp [22:58:32]Write 4 bytes [22:58:32]NVStorageSaveData done [22:58:32]ExternCall_PrintAddStr [22:58:32]wPrintStart [22:58:32]Write to MH i2c: 01 00 00 BC 59 15 [22:58:32]Write i2c OK [22:58:32]MH_I2C_Read... [22:58:32]Read from MH i2c: 01 [22:58:32]MH_I2C_Read... [22:58:32]Read from MH i2c: 01 07 00 [22:58:32]MH_I2C_Read... [22:58:32]Read from MH i2c: 01 07 00 BC 59 00 00 00 00 00 FF 0F 2A [22:58:32]RasterBufferAndPrint [22:58:32]line Счет N : (1)1106375 [22:58:32]line ИНН: 02508201610067 [22:58:32]line Контрольно-Кассовый Чек [22:58:32]line ПРОДАЖА [22:58:32]line ТРК (МРК, ГНК) : 53 [22:58:32]line Товар: 2710124500 [22:58:32]line Аи-95-К-5 [22:58:32]line 12.950 * 69.50 [22:58:32]line = 900.03 [22:58:32]line НДС 12% НСП 1% [22:58:32]line > о реализуемом товаре [22:58:32]line ИТОГО: 900.03 [22:58:32]line НСП 1% : 7.96 [22:58:32]line НДС 12% : 95.58 [22:58:32]line Наличными: 0.00 [22:58:32]line Безнал.: 900.03 [22:58:32]line Место: АЗС № 25 "Партнер Нефть" [22:58:32]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [22:58:32]line СНО: Общий режим [22:58:32]line Чек 246 03.03.2024 22:58 [22:58:32]line Смена: 323 ФФД: 1.0 [22:58:32]line ЗНМ: 0300000019 [22:58:32]line РНМ: 0000000000090573 [22:58:32]line Версия ККМ: 001 [22:58:32]line Платежная система: О! деньги [22:58:32]line ФМ: 0000000000874798 [22:58:32]line ФД: 123389 [22:58:32]line ФПД: 134297653528334 [22:58:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T225835&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123389&fm=134297653528334&tin=02508201610067®Number=0000000000090573&sum=90003 [22:58:32]OFD Sender: Processing packet 123389 [packets to send 112, broken 111] [22:58:32]ProducePacketName [22:58:32]name=ofd_packets/00123389 [22:58:32]OFD Sender: To server: pG, [22:58:32]CommunicateWithHost lk.salyk.kg:30040 [22:58:32]ConnectInit lk.salyk.kg [22:58:32]written 0, free lines is 4095 [22:58:32]Connected sock=10 [22:58: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 37 39 38 0F 01 00 00 62 90 07 01 C7 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 96 32 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 93 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 93 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 93 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 9B 00 E5 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 FD E1 01 00 35 04 06 00 7A 24 9B EE C7 0E 75 FA 14 70 DA 39 2D CC [22:58:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 41 02 47 00 2D 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 37 39 38 10 04 04 00 FD E1 01 00 F4 03 04 00 C6 AC E4 65 B6 04 01 00 00 BE 91 C8 0C D7 3C FB E0 [22:58:32]CommunicateWithHost err = 0 [22:58:32]CheckOFDResponse [22:58:32]1017 (14) - 77093643461234 [22:58:32]1041 (16) - 0000000000874798 [22:58:32]1040 (4) - 123389 [22:58:32]1012 (4) - 03.03.2024 17:00 [22:58:32]1206 (1) - 0 [22:58:32]OFD Sender: Remove packet 123389 [22:58:32]ProducePacketName [22:58:32]name=ofd_packets/00123389 [22:58:32]NVStorageDeleteData [22:58:32]Write to MH i2c: 01 00 00 E6 59 3F [22:58:32]Write i2c OK [22:58:32]MH_I2C_Read... [22:58:32]Read from MH i2c: 01 [22:58:32]MH_I2C_Read... [22:58:32]Read from MH i2c: 01 07 00 [22:58:32]MH_I2C_Read... [22:58:32]Read from MH i2c: 01 07 00 E6 59 00 00 00 00 00 04 0D 57 [22:58:32]RasterBufferAndPrint [22:58:32]line [22:58:32]line [22:58:32]line [22:58:32]line [22:58:32]line [22:58:32]written 0, free lines is 3341 [22:58:32]MH_Cut [22:58:32]Write to MH i2c: D1 01 00 ED 59 01 18 [22:58:32]Write i2c OK [22:58:32]MH_I2C_Read... [22:58:32]Read from MH i2c: D1 [22:58:32]MH_I2C_Read... [22:58:32]Read from MH i2c: D1 01 00 [22:58:32]MH_I2C_Read... [22:58:32]Read from MH i2c: D1 01 00 ED 59 00 17 [22:58:32]Write to MH i2c: 01 00 00 EE 59 47 [22:58:32]Write i2c OK [22:58:32]MH_I2C_Read... [22:58:33]OFD Sender: No OFD packet to send [22:58:33]*** Cut start [22:58:33]*** Purtial cut [22:58:33]*** Stage 1: CUTSNS_PIN = 1 [22:58:35]Read from MH i2c: 01 [22:58:35]MH_I2C_Read... [22:58:35]*** Stop cut motor [22:58:35]*** Cut end [22:58:35]Read from MH i2c: 01 07 00 [22:58:35]MH_I2C_Read... [22:58:35]Read from MH i2c: 01 07 00 EE 59 00 00 00 00 00 FF 0F 5C [22:58:35]process_action close_receipt done [22:58:35]requested_data is exist [22:58:35]produce_requested_data [22:58:35]requested_item fm.sn is exist - process it [22:58:35]wFMCommunicate request_size=4 [22:58:35]MH_SAM_APDU [22:58:35]CAPDU: 80 11 00 00 [22:58:35]Write to MH i2c: E2 08 00 EF 59 80 11 00 00 00 00 00 00 C2 [22:58:35]Write i2c OK [22:58:35]MH_I2C_Read... [22:58:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:58:35]Read from MH i2c: E2 [22:58:35]MH_I2C_Read... [22:58:35]Read from MH i2c: E2 17 00 [22:58:35]MH_I2C_Read... [22:58:35]Read from MH i2c: E2 17 00 EF 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 20 [22:58:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [22:58:35]wFMCommunicate OK [22:58:35]requested_item fd.num is exist - process it [22:58:35]SAM_PROTO_GetFieldsCounters [22:58:35]wFMCommunicate request_size=4 [22:58:35]MH_SAM_APDU [22:58:35]CAPDU: 80 13 00 00 [22:58:35]Write to MH i2c: E2 08 00 F0 59 80 13 00 00 00 00 00 00 C5 [22:58:35]Write i2c OK [22:58:35]MH_I2C_Read... [22:58:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:58:35]Read from MH i2c: E2 [22:58:35]MH_I2C_Read... [22:58:35]Read from MH i2c: E2 62 00 [22:58:35]MH_I2C_Read... [22:58:35]Read from MH i2c: E2 62 00 F0 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 FD E1 01 00 0E 04 04 00 43 01 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 F5 [22:58: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 FD E1 01 00 0E 04 04 00 43 01 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 [22:58:35]wFMCommunicate OK [22:58:35]SAM_PROTO_GetFieldsCounters done [22:58:35]requested_item shift.num is exist - process it [22:58:35]requested_item shift.opened is exist - process it [22:58:35]req_shift_opened [22:58:35]FM_GetShiftState [22:58:35]SAM_PROTO_GetShiftState [22:58:35]wFMCommunicate request_size=4 [22:58:35]MH_SAM_APDU [22:58:35]CAPDU: 80 13 01 00 [22:58:35]Write to MH i2c: E2 08 00 F1 59 80 13 01 00 00 00 00 00 C7 [22:58:35]Write i2c OK [22:58:35]MH_I2C_Read... [22:58:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:58:35]Read from MH i2c: E2 [22:58:35]MH_I2C_Read... [22:58:35]Read from MH i2c: E2 0E 00 [22:58:35]MH_I2C_Read... [22:58:35]Read from MH i2c: E2 0E 00 F1 59 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 89 [22:58:35]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [22:58:35]wFMCommunicate OK [22:58:35]SAM_PROTO_GetShiftState done [22:58:35]FM_GetShiftState done [22:58:35]req_shift_opened done [22:58:35]requested_item shift.open_date is exist - process it [22:58:35]req_shift_open_date [22:58:35]req_shift_open_date done [22:58:35]produce_requested_data done [22:58:35]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123389,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [22:58:35]process_action_free close_receipt [22:58:35]json_value_free [22:58:35]json_value_free done [22:58:35]process_json_proto returns [22:58:35]Send response to host [22:58:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123389,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [22:58:35]free response buf [22:58:35]execute_script done [22:58:35]execute_script returns [22:58:35]free content buf [22:58:35]Sock 9.Close socket [22:58:35]Sock 9.Thread stoped [22:58:38]OFD Sender: No OFD packet to send [22:58:43]OFD Sender: No OFD packet to send [22:58:48]OFD Sender: No OFD packet to send [22:58:53]OFD Sender: No OFD packet to send [22:58:58]OFD Sender: No OFD packet to send [22:59:03]OFD Sender: No OFD packet to send [22:59:08]OFD Sender: No OFD packet to send [22:59:13]OFD Sender: No OFD packet to send [22:59:18]OFD Sender: No OFD packet to send [22:59:23]OFD Sender: No OFD packet to send [22:59:28]OFD Sender: No OFD packet to send [22:59:33]OFD Sender: No OFD packet to send [22:59:38]OFD Sender: No OFD packet to send [22:59:43]OFD Sender: No OFD packet to send [22:59:48]OFD Sender: No OFD packet to send [22:59:53]OFD Sender: No OFD packet to send [22:59:58]OFD Sender: No OFD packet to send [23:00:03]OFD Sender: No OFD packet to send [23:00:08]OFD Sender: No OFD packet to send [23:00:13]OFD Sender: No OFD packet to send [23:00:18]OFD Sender: No OFD packet to send [23:00:23]OFD Sender: No OFD packet to send [23:00:28]OFD Sender: No OFD packet to send [23:00:33]OFD Sender: No OFD packet to send [23:00:38]OFD Sender: No OFD packet to send [23:00:43]OFD Sender: No OFD packet to send [23:00:48]OFD Sender: No OFD packet to send [23:00:53]OFD Sender: No OFD packet to send [23:00:58]OFD Sender: No OFD packet to send [23:01:03]OFD Sender: No OFD packet to send [23:01:08]OFD Sender: No OFD packet to send [23:01:13]OFD Sender: No OFD packet to send [23:01:18]OFD Sender: No OFD packet to send [23:01:23]OFD Sender: No OFD packet to send [23:01:28]OFD Sender: No OFD packet to send [23:01:33]OFD Sender: No OFD packet to send [23:01:38]OFD Sender: No OFD packet to send [23:01:38]accept exits with 7 [23:01:38]New connection [23:01:38]New thread 3067252068 created [23:01:38]Thread 3067395428 joined [23:01:38]Waiting for new connection... [23:01:38] Sock 7.Parse request [23:01:38]Sock 7.Check first char [23:01:38]Sock 7.First char is OK [23:01:38]request: POST /json_proto HTTP/1.0 [23:01:38]Method: POST [23:01:38]URL: /json_proto [23:01:38]Method is POST - this is cgi request [23:01:38]url: /json_proto [23:01:38]query_string will be loaded in cgi processing [23:01:38]execute_cgi json_proto POST (null) [23:01:38]execute_cgi path=json_proto method=POST [23:01:38]POST find Content-Length [23:01:38]Host: 172.17.48.197:8080 [23:01:38]Content-Length: 807 [23:01:38]Content-Type: application/json [23:01:38] [23:01:38]POST finish read [23:01:38]Found Content-Length = 807 [23:01:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106376", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 11.310, "sum" : 700.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 700.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:01:38]execute_script... [23:01: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)1106376", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 11.310, "sum" : 700.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 700.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:01:38]POST & json_proto [23:01:38]process_json_proto [23:01:38]json parsed OK: [23:01:38]protocol is kg_v1.0 [23:01:38]action value=close_receipt [23:01:38]process_action close_receipt [23:01:38]cmd_close_receipt [23:01:38]MH_GetDate [23:01:38]Write to MH i2c: F0 00 00 F2 59 3A [23:01:38]Write i2c OK [23:01:38]MH_I2C_Read... [23:01:38]Read from MH i2c: F0 [23:01:38]MH_I2C_Read... [23:01:38]Read from MH i2c: F0 09 00 [23:01:38]MH_I2C_Read... [23:01:38]Read from MH i2c: F0 09 00 F2 59 00 58 01 E5 65 6C AF E3 65 49 [23:01:38]GetLastDocTimeStamp 1709506715 [23:01:38]current date 1709506904 [23:01:38]FM_GetShiftState [23:01:38]SAM_PROTO_GetShiftState [23:01:38]wFMCommunicate request_size=4 [23:01:38]MH_SAM_APDU [23:01:38]CAPDU: 80 13 01 00 [23:01:38]Write to MH i2c: E2 08 00 F3 59 80 13 01 00 00 00 00 00 C9 [23:01:38]Write i2c OK [23:01:38]MH_I2C_Read... [23:01:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:01:38]Read from MH i2c: E2 [23:01:38]MH_I2C_Read... [23:01:38]Read from MH i2c: E2 0E 00 [23:01:38]MH_I2C_Read... [23:01:38]Read from MH i2c: E2 0E 00 F3 59 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 8B [23:01:38]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [23:01:38]wFMCommunicate OK [23:01:38]SAM_PROTO_GetShiftState done [23:01:38]FM_GetShiftState done [23:01:38]opened in 1709425579 [23:01:38]opened+sec_in_day 1709511979 [23:01:38]quantity*price = 70008 [23:01:38]sum+1 = 70010 [23:01:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.09 НСП 1% : 6.19 НДС 12% : 74.35 Наличными: 0.00 Безнал.: 700.09 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 247 03.03.2024 23:01 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874798 ФД: 123390 ФПД: 133357398025190 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T230144&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123390&fm=133357398025190&tin=02508201610067®Number=0000000000090573&sum=70009 [23:01:39]StoreToDocumentArchive [23:01:39]shift 323 fd 123390 [23:01:39]save to /storage/0323/doc_00123390 [23:01:39]save last doc name /storage/0323/doc_00123390 to /storage/kkm_last_doc_name [23:01:39]save OK [23:01:39]Clear old archive folders... [23:01:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:01:39]tlvbuf is 00F8DA70 [23:01:39]SAM_PROTO_ClearQueue [23:01:39]wFMCommunicate request_size=4 [23:01:39]MH_SAM_APDU [23:01:39]CAPDU: 80 09 00 00 [23:01:39]Write to MH i2c: E2 08 00 00 5A 80 09 00 00 00 00 00 00 CC [23:01:39]Write i2c OK [23:01:39]MH_I2C_Read... [23:01:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:01:39]Read from MH i2c: E2 [23:01:39]MH_I2C_Read... [23:01:39]Read from MH i2c: E2 03 00 [23:01:39]MH_I2C_Read... [23:01:39]Read from MH i2c: E2 03 00 00 5A 00 90 00 CE [23:01:39]RAPDU: 90 00 [23:01:39]wFMCommunicate OK [23:01:39]SAM_PROTO_ClearQueue done [23:01:39]KKMCreateOFDPacket [23:01:39]OFDProtocolAddRootSTLVToBuf [23:01:39]FM_MakeSignedData [23:01:39]FM_MakeSignedData [23:01:39]SAM_PROTO_SignData [23:01:39]wFMCommunicate request_size=4 [23:01:39]MH_SAM_APDU [23:01:39]CAPDU: 80 0D 01 02 [23:01:39]Write to MH i2c: E2 08 00 01 5A 80 0D 01 02 00 00 00 00 D4 [23:01:39]Write i2c OK [23:01:39]MH_I2C_Read... [23:01:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:01:39]Read from MH i2c: E2 [23:01:39]MH_I2C_Read... [23:01:39]Read from MH i2c: E2 03 00 [23:01:39]MH_I2C_Read... [23:01:39]Read from MH i2c: E2 03 00 01 5A 00 90 00 CF [23:01:39]RAPDU: 90 00 [23:01:39]wFMCommunicate OK [23:01:39]wFMCommunicate request_size=255 [23:01:39]MH_SAM_APDU [23:01: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 35 FF 03 08 00 03 2E 2C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 79 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 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 00 00 00 00 00 00 39 04 06 00 79 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 58 01 E5 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 FE E1 01 00 35 04 06 00 79 [23:01:39]Write to MH i2c: E2 02 01 02 5A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 2C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 79 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 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 00 00 00 00 00 00 39 04 06 00 79 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 58 01 E5 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 FE E1 01 00 35 04 06 00 79 00 00 F5 [23:01:39]Write i2c OK [23:01:39]MH_I2C_Read... [23:01:40]*** iso7816_exchange 80 0D 02 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 02 5A 00 90 00 D0 [23:01:40]RAPDU: 90 00 [23:01:40]wFMCommunicate OK [23:01:40]wFMCommunicate request_size=10 [23:01:40]MH_SAM_APDU [23:01:40]CAPDU: 80 0D 02 02 05 49 B0 56 63 E6 [23:01:40]Write to MH i2c: E2 0D 00 03 5A 80 0D 02 02 05 00 49 B0 56 63 E6 00 00 79 [23:01:40]Write i2c OK [23:01:40]MH_I2C_Read... [23:01:40]*** iso7816_exchange 80 0D 02 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 03 5A 00 90 00 D1 [23:01:40]RAPDU: 90 00 [23:01:40]wFMCommunicate OK [23:01:40]wFMCommunicate request_size=4 [23:01:40]MH_SAM_APDU [23:01:40]CAPDU: 80 0D 03 02 [23:01:40]Write to MH i2c: E2 08 00 04 5A 80 0D 03 02 00 00 00 00 D9 [23:01:40]Write i2c OK [23:01:40]MH_I2C_Read... [23:01:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:01:40]Read from MH i2c: E2 [23:01:40]MH_I2C_Read... [23:01:40]Read from MH i2c: E2 0B 00 [23:01:40]MH_I2C_Read... [23:01:40]Read from MH i2c: E2 0B 00 04 5A 00 5A 4B 7D 47 ED 74 3D 3D 90 00 1E [23:01:40]RAPDU: 5A 4B 7D 47 ED 74 3D 3D 90 00 [23:01:40]wFMCommunicate OK [23:01:40]SAM_PROTO_SignData done [23:01:40]FM_MakeSignedData done [23:01:40]CreateOFDProtocolMessage [23:01:40]wFMCommunicate request_size=4 [23:01:40]MH_SAM_APDU [23:01:40]CAPDU: 80 11 00 00 [23:01:40]Write to MH i2c: E2 08 00 05 5A 80 11 00 00 00 00 00 00 D9 [23:01:40]Write i2c OK [23:01:40]MH_I2C_Read... [23:01:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:01:40]Read from MH i2c: E2 [23:01:40]MH_I2C_Read... [23:01:40]Read from MH i2c: E2 17 00 [23:01:40]MH_I2C_Read... [23:01:40]Read from MH i2c: E2 17 00 05 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 37 [23:01:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [23:01:40]wFMCommunicate OK [23:01:40]CreateOFDProtocolMessage done [23:01:40]OFDSenderStorePacket 123390 [23:01:40]StoreOFDPacket docnum=123390 [23:01:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 65 92 07 01 1B 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 35 FF 03 08 00 03 2E 2C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 79 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 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 00 00 00 00 00 00 39 04 06 00 79 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 58 01 E5 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 FE E1 01 00 35 04 06 00 79 49 B0 56 63 E6 5A 4B 7D 47 ED 74 3D 3D [23:01:40]CheckFolder [23:01:40]dirname=/storage/ofd_packets [23:01:40]CheckFolder done [23:01:40]ProducePacketName [23:01:40]name=ofd_packets/00123390 [23:01:40]NVStorageSaveData ofd_packets/00123390 [23:01:40]File name is /storage/ofd_packets/00123390 [23:01:40]Write 301 bytes [23:01:40]NVStorageSaveData done [23:01:40]OFDSenderStorePacket done [23:01:40]KKMCreateOFDPacket done [23:01:40]NVStorageSaveData kkm_last_timestamp [23:01:40]File name is /storage/kkm_last_timestamp [23:01:40]Write 4 bytes [23:01:40]NVStorageSaveData done [23:01:40]ExternCall_PrintAddStr [23:01:40]wPrintStart [23:01:40]Write to MH i2c: 01 00 00 06 5A 60 [23:01:40]Write i2c OK [23:01:40]MH_I2C_Read... [23:01:40]Read from MH i2c: 01 [23:01:40]MH_I2C_Read... [23:01:40]Read from MH i2c: 01 07 00 [23:01:40]MH_I2C_Read... [23:01:40]Read from MH i2c: 01 07 00 06 5A 00 00 00 00 00 FF 0F 75 [23:01:40]RasterBufferAndPrint [23:01:40]line Счет N : (1)1106376 [23:01:40]line ИНН: 02508201610067 [23:01:40]line Контрольно-Кассовый Чек [23:01:40]line ПРОДАЖА [23:01:40]line ТРК (МРК, ГНК) : 52 [23:01:40]line Товар: 2710124130 [23:01:40]line Аи-92-К-5 [23:01:40]line 11.310 * 61.90 [23:01:40]line = 700.09 [23:01:40]line НДС 12% НСП 1% [23:01:40]line > о реализуемом товаре [23:01:40]line ИТОГО: 700.09 [23:01:40]line НСП 1% : 6.19 [23:01:40]line НДС 12% : 74.35 [23:01:40]line Наличными: 0.00 [23:01:40]line Безнал.: 700.09 [23:01:40]line Место: АЗС № 25 "Партнер Нефть" [23:01:40]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [23:01:40]line СНО: Общий режим [23:01:40]line Чек 247 03.03.2024 23:01 [23:01:40]line Смена: 323 ФФД: 1.0 [23:01:40]line ЗНМ: 0300000019 [23:01:40]line РНМ: 0000000000090573 [23:01:40]line Версия ККМ: 001 [23:01:40]line Платежная система: О! деньги [23:01:40]line ФМ: 0000000000874798 [23:01:40]line ФД: 123390 [23:01:40]line ФПД: 133357398025190 [23:01:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T230144&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123390&fm=133357398025190&tin=02508201610067®Number=0000000000090573&sum=70009 [23:01:40]OFD Sender: Processing packet 123390 [packets to send 112, broken 111] [23:01:40]ProducePacketName [23:01:40]name=ofd_packets/00123390 [23:01:40]OFD Sender: To server: pG, [23:01:40]CommunicateWithHost lk.salyk.kg:30040 [23:01:40]ConnectInit lk.salyk.kg [23:01:40]written 0, free lines is 4095 [23:01:40]Connected sock=10 [23:01: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 37 39 38 0F 01 00 00 65 92 07 01 1B 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 35 FF 03 08 00 03 2E 2C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 79 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 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 00 00 00 00 00 00 39 04 06 00 79 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 58 01 E5 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 FE E1 01 00 35 04 06 00 79 49 B0 56 63 E6 5A 4B 7D 47 ED 74 3D 3D [23:01:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 86 B4 47 00 D9 B6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 FE E1 01 00 F4 03 04 00 82 AD E4 65 B6 04 01 00 00 E9 29 37 06 39 E0 94 29 [23:01:40]CommunicateWithHost err = 0 [23:01:40]CheckOFDResponse [23:01:40]1017 (14) - 77093643461234 [23:01:40]1041 (16) - 0000000000874798 [23:01:40]1040 (4) - 123390 [23:01:40]1012 (4) - 03.03.2024 17:04 [23:01:40]1206 (1) - 0 [23:01:40]OFD Sender: Remove packet 123390 [23:01:40]ProducePacketName [23:01:40]name=ofd_packets/00123390 [23:01:40]NVStorageDeleteData [23:01:40]Write to MH i2c: 01 00 00 30 5A 8A [23:01:40]Write i2c OK [23:01:40]MH_I2C_Read... [23:01:40]Read from MH i2c: 01 [23:01:40]MH_I2C_Read... [23:01:40]Read from MH i2c: 01 07 00 [23:01:40]MH_I2C_Read... [23:01:40]Read from MH i2c: 01 07 00 30 5A 00 00 00 00 00 FC 0C 99 [23:01:40]RasterBufferAndPrint [23:01:40]line [23:01:40]line [23:01:40]line [23:01:40]line [23:01:40]line [23:01:40]written 0, free lines is 3330 [23:01:40]MH_Cut [23:01:40]Write to MH i2c: D1 01 00 37 5A 01 63 [23:01:40]Write i2c OK [23:01:40]MH_I2C_Read... [23:01:40]Read from MH i2c: D1 [23:01:40]MH_I2C_Read... [23:01:40]Read from MH i2c: D1 01 00 [23:01:40]MH_I2C_Read... [23:01:40]Read from MH i2c: D1 01 00 37 5A 00 62 [23:01:40]Write to MH i2c: 01 00 00 38 5A 92 [23:01:40]Write i2c OK [23:01:40]MH_I2C_Read... [23:01:41]OFD Sender: No OFD packet to send [23:01:41]*** Cut start [23:01:41]*** Purtial cut [23:01:41]*** Stage 1: CUTSNS_PIN = 1 [23:01:43]Read from MH i2c: 01 [23:01:43]MH_I2C_Read... [23:01:43]*** Stop cut motor [23:01:43]*** Cut end [23:01:43]Read from MH i2c: 01 07 00 [23:01:43]MH_I2C_Read... [23:01:43]Read from MH i2c: 01 07 00 38 5A 00 00 00 00 00 FF 0F A7 [23:01:43]process_action close_receipt done [23:01:43]requested_data is exist [23:01:43]produce_requested_data [23:01:43]requested_item fm.sn is exist - process it [23:01:43]wFMCommunicate request_size=4 [23:01:43]MH_SAM_APDU [23:01:43]CAPDU: 80 11 00 00 [23:01:43]Write to MH i2c: E2 08 00 39 5A 80 11 00 00 00 00 00 00 0D [23:01:43]Write i2c OK [23:01:43]MH_I2C_Read... [23:01:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:01:43]Read from MH i2c: E2 [23:01:43]MH_I2C_Read... [23:01:43]Read from MH i2c: E2 17 00 [23:01:43]MH_I2C_Read... [23:01:43]Read from MH i2c: E2 17 00 39 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 6B [23:01:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [23:01:43]wFMCommunicate OK [23:01:43]requested_item fd.num is exist - process it [23:01:43]SAM_PROTO_GetFieldsCounters [23:01:43]wFMCommunicate request_size=4 [23:01:43]MH_SAM_APDU [23:01:43]CAPDU: 80 13 00 00 [23:01:43]Write to MH i2c: E2 08 00 3A 5A 80 13 00 00 00 00 00 00 10 [23:01:43]Write i2c OK [23:01:43]MH_I2C_Read... [23:01:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:01:43]Read from MH i2c: E2 [23:01:43]MH_I2C_Read... [23:01:43]Read from MH i2c: E2 62 00 [23:01:43]MH_I2C_Read... [23:01:43]Read from MH i2c: E2 62 00 3A 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 FE E1 01 00 0E 04 04 00 43 01 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 44 [23:01: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 FE E1 01 00 0E 04 04 00 43 01 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 [23:01:43]wFMCommunicate OK [23:01:43]SAM_PROTO_GetFieldsCounters done [23:01:43]requested_item shift.num is exist - process it [23:01:43]requested_item shift.opened is exist - process it [23:01:43]req_shift_opened [23:01:43]FM_GetShiftState [23:01:43]SAM_PROTO_GetShiftState [23:01:43]wFMCommunicate request_size=4 [23:01:43]MH_SAM_APDU [23:01:43]CAPDU: 80 13 01 00 [23:01:43]Write to MH i2c: E2 08 00 3B 5A 80 13 01 00 00 00 00 00 12 [23:01:43]Write i2c OK [23:01:43]MH_I2C_Read... [23:01:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:01:43]Read from MH i2c: E2 [23:01:43]MH_I2C_Read... [23:01:43]Read from MH i2c: E2 0E 00 [23:01:43]MH_I2C_Read... [23:01:43]Read from MH i2c: E2 0E 00 3B 5A 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 D4 [23:01:43]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [23:01:43]wFMCommunicate OK [23:01:43]SAM_PROTO_GetShiftState done [23:01:43]FM_GetShiftState done [23:01:43]req_shift_opened done [23:01:43]requested_item shift.open_date is exist - process it [23:01:43]req_shift_open_date [23:01:43]req_shift_open_date done [23:01:43]produce_requested_data done [23:01:43]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123390,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [23:01:43]process_action_free close_receipt [23:01:43]json_value_free [23:01:43]json_value_free done [23:01:43]process_json_proto returns [23:01:43]Send response to host [23:01:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123390,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [23:01:43]free response buf [23:01:43]execute_script done [23:01:43]execute_script returns [23:01:43]free content buf [23:01:43]Sock 7.Close socket [23:01:43]Sock 7.Thread stoped [23:01:46]OFD Sender: No OFD packet to send [23:01:51]OFD Sender: No OFD packet to send [23:01:56]OFD Sender: No OFD packet to send [23:02:01]OFD Sender: No OFD packet to send [23:02:06]OFD Sender: No OFD packet to send [23:02:11]OFD Sender: No OFD packet to send [23:02:16]OFD Sender: No OFD packet to send [23:02:21]OFD Sender: No OFD packet to send [23:02:26]OFD Sender: No OFD packet to send [23:02:31]OFD Sender: No OFD packet to send [23:02:36]OFD Sender: No OFD packet to send [23:02:41]OFD Sender: No OFD packet to send [23:02:46]OFD Sender: No OFD packet to send [23:02:51]OFD Sender: No OFD packet to send [23:02:56]OFD Sender: No OFD packet to send [23:03:01]OFD Sender: No OFD packet to send [23:03:06]OFD Sender: No OFD packet to send [23:03:11]OFD Sender: No OFD packet to send [23:03:16]OFD Sender: No OFD packet to send [23:03:21]OFD Sender: No OFD packet to send [23:03:26]OFD Sender: No OFD packet to send [23:03:31]OFD Sender: No OFD packet to send [23:03:36]OFD Sender: No OFD packet to send [23:03:41]OFD Sender: No OFD packet to send [23:03:46]OFD Sender: No OFD packet to send [23:03:51]OFD Sender: No OFD packet to send [23:03:56]OFD Sender: No OFD packet to send [23:04:01]OFD Sender: No OFD packet to send [23:04:06]OFD Sender: No OFD packet to send [23:04:11]OFD Sender: No OFD packet to send [23:04:16]OFD Sender: No OFD packet to send [23:04:21]OFD Sender: No OFD packet to send [23:04:26]OFD Sender: No OFD packet to send [23:04:31]OFD Sender: No OFD packet to send [23:04:36]OFD Sender: No OFD packet to send [23:04:41]OFD Sender: No OFD packet to send [23:04:46]OFD Sender: No OFD packet to send [23:04:51]OFD Sender: No OFD packet to send [23:04:56]OFD Sender: No OFD packet to send [23:05:01]OFD Sender: No OFD packet to send [23:05:06]OFD Sender: No OFD packet to send [23:05:11]OFD Sender: No OFD packet to send [23:05:16]OFD Sender: No OFD packet to send [23:05:21]OFD Sender: No OFD packet to send [23:05:26]OFD Sender: No OFD packet to send [23:05:31]OFD Sender: No OFD packet to send [23:05:36]OFD Sender: No OFD packet to send [23:05:41]OFD Sender: No OFD packet to send [23:05:46]OFD Sender: No OFD packet to send [23:05:51]OFD Sender: No OFD packet to send [23:05:56]OFD Sender: No OFD packet to send [23:06:01]OFD Sender: No OFD packet to send [23:06:06]OFD Sender: No OFD packet to send [23:06:11]OFD Sender: No OFD packet to send [23:06:16]OFD Sender: No OFD packet to send [23:06:21]OFD Sender: No OFD packet to send [23:06:26]OFD Sender: No OFD packet to send [23:06:31]OFD Sender: No OFD packet to send [23:06:36]OFD Sender: No OFD packet to send [23:06:41]OFD Sender: No OFD packet to send [23:06:46]OFD Sender: No OFD packet to send [23:06:51]OFD Sender: No OFD packet to send [23:06:56]OFD Sender: No OFD packet to send [23:07:01]OFD Sender: No OFD packet to send [23:07:06]OFD Sender: No OFD packet to send [23:07:11]OFD Sender: No OFD packet to send [23:07:16]OFD Sender: No OFD packet to send [23:07:21]OFD Sender: No OFD packet to send [23:07:26]OFD Sender: No OFD packet to send [23:07:31]OFD Sender: No OFD packet to send [23:07:36]OFD Sender: No OFD packet to send [23:07:41]OFD Sender: No OFD packet to send [23:07:46]OFD Sender: No OFD packet to send [23:07:51]OFD Sender: No OFD packet to send [23:07:56]OFD Sender: No OFD packet to send [23:08:01]OFD Sender: No OFD packet to send [23:08:06]OFD Sender: No OFD packet to send [23:08:11]OFD Sender: No OFD packet to send [23:08:16]OFD Sender: No OFD packet to send [23:08:21]OFD Sender: No OFD packet to send [23:08:26]OFD Sender: No OFD packet to send [23:08:31]OFD Sender: No OFD packet to send [23:08:36]OFD Sender: No OFD packet to send [23:08:41]OFD Sender: No OFD packet to send [23:08:46]OFD Sender: No OFD packet to send [23:08:51]OFD Sender: No OFD packet to send [23:08:56]OFD Sender: No OFD packet to send [23:09:01]OFD Sender: No OFD packet to send [23:09:06]OFD Sender: No OFD packet to send [23:09:11]OFD Sender: No OFD packet to send [23:09:16]OFD Sender: No OFD packet to send [23:09:21]OFD Sender: No OFD packet to send [23:09:26]OFD Sender: No OFD packet to send [23:09:31]OFD Sender: No OFD packet to send [23:09:36]OFD Sender: No OFD packet to send [23:09:41]OFD Sender: No OFD packet to send [23:09:46]OFD Sender: No OFD packet to send [23:09:51]OFD Sender: No OFD packet to send [23:09:56]OFD Sender: No OFD packet to send [23:10:01]OFD Sender: No OFD packet to send [23:10:06]OFD Sender: No OFD packet to send [23:10:11]OFD Sender: No OFD packet to send [23:10:16]OFD Sender: No OFD packet to send [23:10:21]OFD Sender: No OFD packet to send [23:10:26]OFD Sender: No OFD packet to send [23:10:31]OFD Sender: No OFD packet to send [23:10:36]OFD Sender: No OFD packet to send [23:10:41]OFD Sender: No OFD packet to send [23:10:46]OFD Sender: No OFD packet to send [23:10:51]OFD Sender: No OFD packet to send [23:10:56]OFD Sender: No OFD packet to send [23:10:58]accept exits with 9 [23:10:58]New connection [23:10:58]New thread 3067395428 created [23:10:58]Thread 3067252068 joined [23:10:58]Waiting for new connection... [23:10:58] Sock 9.Parse request [23:10:58]Sock 9.Check first char [23:10:58]Sock 9.First char is OK [23:10:58]request: POST /json_proto HTTP/1.0 [23:10:58]Method: POST [23:10:58]URL: /json_proto [23:10:58]Method is POST - this is cgi request [23:10:58]url: /json_proto [23:10:58]query_string will be loaded in cgi processing [23:10:58]execute_cgi json_proto POST (null) [23:10:58]execute_cgi path=json_proto method=POST [23:10:58]POST find Content-Length [23:10:58]Host: 172.17.48.197:8080 [23:10:58]Content-Length: 820 [23:10:58]Content-Type: application/json [23:10:58] [23:10:58]POST finish read [23:10:58]Found Content-Length = 820 [23:10:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106377", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.30 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:10:58]execute_script... [23:10: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)1106377", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.30 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:10:58]POST & json_proto [23:10:58]process_json_proto [23:10:58]json parsed OK: [23:10:58]protocol is kg_v1.0 [23:10:58]action value=close_receipt [23:10:58]process_action close_receipt [23:10:58]cmd_close_receipt [23:10:58]MH_GetDate [23:10:58]Write to MH i2c: F0 00 00 3C 5A 85 [23:10:58]Write i2c OK [23:10:58]MH_I2C_Read... [23:10:58]Read from MH i2c: F0 [23:10:58]MH_I2C_Read... [23:10:58]Read from MH i2c: F0 09 00 [23:10:58]MH_I2C_Read... [23:10:58]Read from MH i2c: F0 09 00 3C 5A 00 87 03 E5 65 6C AF E3 65 C5 [23:10:58]GetLastDocTimeStamp 1709506904 [23:10:58]current date 1709507463 [23:10:58]FM_GetShiftState [23:10:58]SAM_PROTO_GetShiftState [23:10:58]wFMCommunicate request_size=4 [23:10:58]MH_SAM_APDU [23:10:58]CAPDU: 80 13 01 00 [23:10:58]Write to MH i2c: E2 08 00 3D 5A 80 13 01 00 00 00 00 00 14 [23:10:58]Write i2c OK [23:10:58]MH_I2C_Read... [23:10:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:10:58]Read from MH i2c: E2 [23:10:58]MH_I2C_Read... [23:10:58]Read from MH i2c: E2 0E 00 [23:10:58]MH_I2C_Read... [23:10:58]Read from MH i2c: E2 0E 00 3D 5A 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 D6 [23:10:58]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [23:10:58]wFMCommunicate OK [23:10:58]SAM_PROTO_GetShiftState done [23:10:58]FM_GetShiftState done [23:10:58]opened in 1709425579 [23:10:58]opened+sec_in_day 1709511979 [23:10:58]quantity*price = 100030 [23:10:58]sum+1 = 100031 [23:10:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.30 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 0.00 Безнал.: 1000.30 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 248 03.03.2024 23:11 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874798 ФД: 123391 ФПД: 21153756410949 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T231103&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123391&fm=21153756410949&tin=02508201610067®Number=0000000000090573&sum=100030 [23:10:59]StoreToDocumentArchive [23:10:59]shift 323 fd 123391 [23:10:59]save to /storage/0323/doc_00123391 [23:10:59]save last doc name /storage/0323/doc_00123391 to /storage/kkm_last_doc_name [23:10:59]save OK [23:10:59]Clear old archive folders... [23:10:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:10:59]tlvbuf is 00E0DC40 [23:10:59]SAM_PROTO_ClearQueue [23:10:59]wFMCommunicate request_size=4 [23:10:59]MH_SAM_APDU [23:10:59]CAPDU: 80 09 00 00 [23:10:59]Write to MH i2c: E2 08 00 4A 5A 80 09 00 00 00 00 00 00 16 [23:10:59]Write i2c OK [23:10:59]MH_I2C_Read... [23:10:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:10:59]Read from MH i2c: E2 [23:10:59]MH_I2C_Read... [23:10:59]Read from MH i2c: E2 03 00 [23:10:59]MH_I2C_Read... [23:10:59]Read from MH i2c: E2 03 00 4A 5A 00 90 00 18 [23:10:59]RAPDU: 90 00 [23:10:59]wFMCommunicate OK [23:10:59]SAM_PROTO_ClearQueue done [23:10:59]KKMCreateOFDPacket [23:10:59]OFDProtocolAddRootSTLVToBuf [23:10:59]FM_MakeSignedData [23:10:59]FM_MakeSignedData [23:10:59]SAM_PROTO_SignData [23:10:59]wFMCommunicate request_size=4 [23:10:59]MH_SAM_APDU [23:10:59]CAPDU: 80 0D 01 02 [23:10:59]Write to MH i2c: E2 08 00 4B 5A 80 0D 01 02 00 00 00 00 1E [23:10:59]Write i2c OK [23:10:59]MH_I2C_Read... [23:10:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:10:59]Read from MH i2c: E2 [23:10:59]MH_I2C_Read... [23:10:59]Read from MH i2c: E2 03 00 [23:10:59]MH_I2C_Read... [23:10:59]Read from MH i2c: E2 03 00 4B 5A 00 90 00 19 [23:10:59]RAPDU: 90 00 [23:10:59]wFMCommunicate OK [23:10:59]wFMCommunicate request_size=255 [23:10:59]MH_SAM_APDU [23:10:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 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 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 87 03 E5 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 FF E1 01 00 35 04 06 00 13 [23:10:59]Write to MH i2c: E2 02 01 4C 5A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 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 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 87 03 E5 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 FF E1 01 00 35 04 06 00 13 00 00 CA [23:10:59]Write i2c OK [23:10:59]MH_I2C_Read... [23:10:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:10:59]Read from MH i2c: E2 [23:10:59]MH_I2C_Read... [23:10:59]Read from MH i2c: E2 03 00 [23:10:59]MH_I2C_Read... [23:10:59]Read from MH i2c: E2 03 00 4C 5A 00 90 00 1A [23:10:59]RAPDU: 90 00 [23:10:59]wFMCommunicate OK [23:10:59]wFMCommunicate request_size=10 [23:10:59]MH_SAM_APDU [23:10:59]CAPDU: 80 0D 02 02 05 3D 3E 22 F4 45 [23:10:59]Write to MH i2c: E2 0D 00 4D 5A 80 0D 02 02 05 00 3D 3E 22 F4 45 00 00 01 [23:10:59]Write i2c OK [23:10:59]MH_I2C_Read... [23:10:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:10:59]Read from MH i2c: E2 [23:10:59]MH_I2C_Read... [23:10:59]Read from MH i2c: E2 03 00 [23:10:59]MH_I2C_Read... [23:10:59]Read from MH i2c: E2 03 00 4D 5A 00 90 00 1B [23:10:59]RAPDU: 90 00 [23:10:59]wFMCommunicate OK [23:10:59]wFMCommunicate request_size=4 [23:10:59]MH_SAM_APDU [23:10:59]CAPDU: 80 0D 03 02 [23:10:59]Write to MH i2c: E2 08 00 4E 5A 80 0D 03 02 00 00 00 00 23 [23:10:59]Write i2c OK [23:10:59]MH_I2C_Read... [23:10:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:10:59]Read from MH i2c: E2 [23:10:59]MH_I2C_Read... [23:10:59]Read from MH i2c: E2 0B 00 [23:10:59]MH_I2C_Read... [23:10:59]Read from MH i2c: E2 0B 00 4E 5A 00 77 9F 03 B5 8C FF 22 43 90 00 E2 [23:10:59]RAPDU: 77 9F 03 B5 8C FF 22 43 90 00 [23:10:59]wFMCommunicate OK [23:10:59]SAM_PROTO_SignData done [23:10:59]FM_MakeSignedData done [23:10:59]CreateOFDProtocolMessage [23:10:59]wFMCommunicate request_size=4 [23:10:59]MH_SAM_APDU [23:10:59]CAPDU: 80 11 00 00 [23:10:59]Write to MH i2c: E2 08 00 4F 5A 80 11 00 00 00 00 00 00 23 [23:10:59]Write i2c OK [23:10:59]MH_I2C_Read... [23:11:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:11:00]Read from MH i2c: E2 [23:11:00]MH_I2C_Read... [23:11:00]Read from MH i2c: E2 17 00 [23:11:00]MH_I2C_Read... [23:11:00]Read from MH i2c: E2 17 00 4F 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 81 [23:11:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [23:11:00]wFMCommunicate OK [23:11:00]CreateOFDProtocolMessage done [23:11:00]OFDSenderStorePacket 123391 [23:11:00]StoreOFDPacket docnum=123391 [23:11:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 B8 E5 07 01 92 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 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 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 87 03 E5 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 FF E1 01 00 35 04 06 00 13 3D 3E 22 F4 45 77 9F 03 B5 8C FF 22 43 [23:11:00]CheckFolder [23:11:00]dirname=/storage/ofd_packets [23:11:00]CheckFolder done [23:11:00]ProducePacketName [23:11:00]name=ofd_packets/00123391 [23:11:00]NVStorageSaveData ofd_packets/00123391 [23:11:00]File name is /storage/ofd_packets/00123391 [23:11:00]Write 301 bytes [23:11:00]NVStorageSaveData done [23:11:00]OFDSenderStorePacket done [23:11:00]KKMCreateOFDPacket done [23:11:00]NVStorageSaveData kkm_last_timestamp [23:11:00]File name is /storage/kkm_last_timestamp [23:11:00]Write 4 bytes [23:11:00]NVStorageSaveData done [23:11:00]ExternCall_PrintAddStr [23:11:00]wPrintStart [23:11:00]Write to MH i2c: 01 00 00 50 5A AA [23:11:00]Write i2c OK [23:11:00]MH_I2C_Read... [23:11:00]Read from MH i2c: 01 [23:11:00]MH_I2C_Read... [23:11:00]Read from MH i2c: 01 07 00 [23:11:00]MH_I2C_Read... [23:11:00]Read from MH i2c: 01 07 00 50 5A 00 00 00 00 00 FF 0F BF [23:11:00]RasterBufferAndPrint [23:11:00]line Счет N : (1)1106377 [23:11:00]line ИНН: 02508201610067 [23:11:00]line Контрольно-Кассовый Чек [23:11:00]line ПРОДАЖА [23:11:00]line ТРК (МРК, ГНК) : 52 [23:11:00]line Товар: 2710124130 [23:11:00]line Аи-92-К-5 [23:11:00]line 16.160 * 61.90 [23:11:00]line = 1000.30 [23:11:00]line НДС 12% НСП 1% [23:11:00]line > о реализуемом товаре [23:11:00]line ИТОГО: 1000.30 [23:11:00]line НСП 1% : 8.85 [23:11:00]line НДС 12% : 106.23 [23:11:00]line Наличными: 0.00 [23:11:00]line Безнал.: 1000.30 [23:11:00]line Место: АЗС № 25 "Партнер Нефть" [23:11:00]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [23:11:00]line СНО: Общий режим [23:11:00]line Чек 248 03.03.2024 23:11 [23:11:00]line Смена: 323 ФФД: 1.0 [23:11:00]line ЗНМ: 0300000019 [23:11:00]line РНМ: 0000000000090573 [23:11:00]line Версия ККМ: 001 [23:11:00]line Платежная система: Бакай Банк [23:11:00]line ФМ: 0000000000874798 [23:11:00]line ФД: 123391 [23:11:00]line ФПД: 21153756410949 [23:11:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T231103&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123391&fm=21153756410949&tin=02508201610067®Number=0000000000090573&sum=100030 [23:11:00]OFD Sender: Processing packet 123391 [packets to send 112, broken 111] [23:11:00]ProducePacketName [23:11:00]name=ofd_packets/00123391 [23:11:00]OFD Sender: To server: pG, [23:11:00]CommunicateWithHost lk.salyk.kg:30040 [23:11:00]ConnectInit lk.salyk.kg [23:11:00]written 0, free lines is 4095 [23:11:00]Connected sock=10 [23:11: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 37 39 38 0F 01 00 00 B8 E5 07 01 92 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 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 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 87 03 E5 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 FF E1 01 00 35 04 06 00 13 3D 3E 22 F4 45 77 9F 03 B5 8C FF 22 43 [23:11:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 D2 94 47 00 FD 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 37 39 38 10 04 04 00 FF E1 01 00 F4 03 04 00 B2 AF E4 65 B6 04 01 00 00 8C 9C B6 20 F1 F4 D3 0A [23:11:00]CommunicateWithHost err = 0 [23:11:00]CheckOFDResponse [23:11:00]1017 (14) - 77093643461234 [23:11:00]1041 (16) - 0000000000874798 [23:11:00]1040 (4) - 123391 [23:11:00]1012 (4) - 03.03.2024 17:13 [23:11:00]1206 (1) - 0 [23:11:00]OFD Sender: Remove packet 123391 [23:11:00]ProducePacketName [23:11:00]name=ofd_packets/00123391 [23:11:00]NVStorageDeleteData [23:11:00]Write to MH i2c: 01 00 00 7A 5A D4 [23:11:00]Write i2c OK [23:11:00]MH_I2C_Read... [23:11:00]Read from MH i2c: 01 [23:11:00]MH_I2C_Read... [23:11:00]Read from MH i2c: 01 07 00 [23:11:00]MH_I2C_Read... [23:11:00]Read from MH i2c: 01 07 00 7A 5A 00 00 00 00 00 01 0D E9 [23:11:00]RasterBufferAndPrint [23:11:00]line [23:11:00]line [23:11:00]line [23:11:00]line [23:11:00]line [23:11:00]written 0, free lines is 3335 [23:11:00]MH_Cut [23:11:00]Write to MH i2c: D1 01 00 81 5A 01 AD [23:11:00]Write i2c OK [23:11:00]MH_I2C_Read... [23:11:00]Read from MH i2c: D1 [23:11:00]MH_I2C_Read... [23:11:00]Read from MH i2c: D1 01 00 [23:11:00]MH_I2C_Read... [23:11:00]Read from MH i2c: D1 01 00 81 5A 00 AC [23:11:00]Write to MH i2c: 01 00 00 82 5A DC [23:11:00]Write i2c OK [23:11:00]MH_I2C_Read... [23:11:01]OFD Sender: No OFD packet to send [23:11:01]*** Cut start [23:11:01]*** Purtial cut [23:11:01]*** Stage 1: CUTSNS_PIN = 1 [23:11:03]Read from MH i2c: 01 [23:11:03]MH_I2C_Read... [23:11:03]*** Stop cut motor [23:11:03]*** Cut end [23:11:03]Read from MH i2c: 01 07 00 [23:11:03]MH_I2C_Read... [23:11:03]Read from MH i2c: 01 07 00 82 5A 00 00 00 00 00 FF 0F F1 [23:11:03]process_action close_receipt done [23:11:03]requested_data is exist [23:11:03]produce_requested_data [23:11:03]requested_item fm.sn is exist - process it [23:11:03]wFMCommunicate request_size=4 [23:11:03]MH_SAM_APDU [23:11:03]CAPDU: 80 11 00 00 [23:11:03]Write to MH i2c: E2 08 00 83 5A 80 11 00 00 00 00 00 00 57 [23:11:03]Write i2c OK [23:11:03]MH_I2C_Read... [23:11:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:11:03]Read from MH i2c: E2 [23:11:03]MH_I2C_Read... [23:11:03]Read from MH i2c: E2 17 00 [23:11:03]MH_I2C_Read... [23:11:03]Read from MH i2c: E2 17 00 83 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 B5 [23:11:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [23:11:03]wFMCommunicate OK [23:11:03]requested_item fd.num is exist - process it [23:11:03]SAM_PROTO_GetFieldsCounters [23:11:03]wFMCommunicate request_size=4 [23:11:03]MH_SAM_APDU [23:11:03]CAPDU: 80 13 00 00 [23:11:03]Write to MH i2c: E2 08 00 84 5A 80 13 00 00 00 00 00 00 5A [23:11:03]Write i2c OK [23:11:03]MH_I2C_Read... [23:11:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:11:03]Read from MH i2c: E2 [23:11:03]MH_I2C_Read... [23:11:03]Read from MH i2c: E2 62 00 [23:11:03]MH_I2C_Read... [23:11:03]Read from MH i2c: E2 62 00 84 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 FF E1 01 00 0E 04 04 00 43 01 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 92 [23:11:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 FF E1 01 00 0E 04 04 00 43 01 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 [23:11:03]wFMCommunicate OK [23:11:03]SAM_PROTO_GetFieldsCounters done [23:11:03]requested_item shift.num is exist - process it [23:11:03]requested_item shift.opened is exist - process it [23:11:03]req_shift_opened [23:11:03]FM_GetShiftState [23:11:03]SAM_PROTO_GetShiftState [23:11:03]wFMCommunicate request_size=4 [23:11:03]MH_SAM_APDU [23:11:03]CAPDU: 80 13 01 00 [23:11:03]Write to MH i2c: E2 08 00 85 5A 80 13 01 00 00 00 00 00 5C [23:11:03]Write i2c OK [23:11:03]MH_I2C_Read... [23:11:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:11:03]Read from MH i2c: E2 [23:11:03]MH_I2C_Read... [23:11:03]Read from MH i2c: E2 0E 00 [23:11:03]MH_I2C_Read... [23:11:03]Read from MH i2c: E2 0E 00 85 5A 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 1E [23:11:03]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [23:11:03]wFMCommunicate OK [23:11:03]SAM_PROTO_GetShiftState done [23:11:03]FM_GetShiftState done [23:11:03]req_shift_opened done [23:11:03]requested_item shift.open_date is exist - process it [23:11:03]req_shift_open_date [23:11:03]req_shift_open_date done [23:11:03]produce_requested_data done [23:11:03]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123391,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [23:11:03]process_action_free close_receipt [23:11:03]json_value_free [23:11:03]json_value_free done [23:11:03]process_json_proto returns [23:11:03]Send response to host [23:11:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123391,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [23:11:03]free response buf [23:11:03]execute_script done [23:11:03]execute_script returns [23:11:03]free content buf [23:11:03]Sock 9.Close socket [23:11:03]Sock 9.Thread stoped [23:11:06]OFD Sender: No OFD packet to send [23:11:11]OFD Sender: No OFD packet to send [23:11:16]OFD Sender: No OFD packet to send [23:11:21]OFD Sender: No OFD packet to send [23:11:26]OFD Sender: No OFD packet to send [23:11:31]OFD Sender: No OFD packet to send [23:11:36]OFD Sender: No OFD packet to send [23:11:41]OFD Sender: No OFD packet to send [23:11:46]OFD Sender: No OFD packet to send [23:11:51]OFD Sender: No OFD packet to send [23:11:56]OFD Sender: No OFD packet to send [23:12:01]OFD Sender: No OFD packet to send [23:12:06]OFD Sender: No OFD packet to send [23:12:11]OFD Sender: No OFD packet to send [23:12:16]OFD Sender: No OFD packet to send [23:12:21]OFD Sender: No OFD packet to send [23:12:26]OFD Sender: No OFD packet to send [23:12:31]OFD Sender: No OFD packet to send [23:12:36]OFD Sender: No OFD packet to send [23:12:41]OFD Sender: No OFD packet to send [23:12:46]OFD Sender: No OFD packet to send [23:12:51]OFD Sender: No OFD packet to send [23:12:56]OFD Sender: No OFD packet to send [23:13:01]OFD Sender: No OFD packet to send [23:13:06]OFD Sender: No OFD packet to send [23:13:11]OFD Sender: No OFD packet to send [23:13:16]OFD Sender: No OFD packet to send [23:13:21]OFD Sender: No OFD packet to send [23:13:26]OFD Sender: No OFD packet to send [23:13:31]OFD Sender: No OFD packet to send [23:13:36]OFD Sender: No OFD packet to send [23:13:41]OFD Sender: No OFD packet to send [23:13:46]OFD Sender: No OFD packet to send [23:13:51]OFD Sender: No OFD packet to send [23:13:56]OFD Sender: No OFD packet to send [23:14:01]OFD Sender: No OFD packet to send [23:14:06]OFD Sender: No OFD packet to send [23:14:11]OFD Sender: No OFD packet to send [23:14:16]OFD Sender: No OFD packet to send [23:14:21]OFD Sender: No OFD packet to send [23:14:26]OFD Sender: No OFD packet to send [23:14:31]OFD Sender: No OFD packet to send [23:14:36]OFD Sender: No OFD packet to send [23:14:41]OFD Sender: No OFD packet to send [23:14:46]OFD Sender: No OFD packet to send [23:14:51]OFD Sender: No OFD packet to send [23:14:56]OFD Sender: No OFD packet to send [23:15:01]OFD Sender: No OFD packet to send [23:15:06]OFD Sender: No OFD packet to send [23:15:11]OFD Sender: No OFD packet to send [23:15:16]OFD Sender: No OFD packet to send [23:15:21]OFD Sender: No OFD packet to send [23:15:26]OFD Sender: No OFD packet to send [23:15:31]OFD Sender: No OFD packet to send [23:15:36]OFD Sender: No OFD packet to send [23:15:41]OFD Sender: No OFD packet to send [23:15:46]OFD Sender: No OFD packet to send [23:15:51]OFD Sender: No OFD packet to send [23:15:56]OFD Sender: No OFD packet to send [23:15:56]accept exits with 7 [23:15:56]New connection [23:15:56]New thread 3067252068 created [23:15:56]Thread 3067395428 joined [23:15:56]Waiting for new connection... [23:15:56] Sock 7.Parse request [23:15:56]Sock 7.Check first char [23:15:56]Sock 7.First char is OK [23:15:56]request: POST /json_proto HTTP/1.0 [23:15:56]Method: POST [23:15:56]URL: /json_proto [23:15:56]Method is POST - this is cgi request [23:15:56]url: /json_proto [23:15:56]query_string will be loaded in cgi processing [23:15:56]execute_cgi json_proto POST (null) [23:15:56]execute_cgi path=json_proto method=POST [23:15:56]POST find Content-Length [23:15:56]Host: 172.17.48.197:8080 [23:15:56]Content-Length: 806 [23:15:56]Content-Type: application/json [23:15:56] [23:15:56]POST finish read [23:15:56]Found Content-Length = 806 [23:15:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106378", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 6.470, "sum" : 400.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 400.49 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:15:56]execute_script... [23:15: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)1106378", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 6.470, "sum" : 400.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 400.49 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:15:56]POST & json_proto [23:15:56]process_json_proto [23:15:56]json parsed OK: [23:15:56]protocol is kg_v1.0 [23:15:56]action value=close_receipt [23:15:56]process_action close_receipt [23:15:56]cmd_close_receipt [23:15:56]MH_GetDate [23:15:56]Write to MH i2c: F0 00 00 86 5A CF [23:15:56]Write i2c OK [23:15:56]MH_I2C_Read... [23:15:56]Read from MH i2c: F0 [23:15:56]MH_I2C_Read... [23:15:56]Read from MH i2c: F0 09 00 [23:15:56]MH_I2C_Read... [23:15:56]Read from MH i2c: F0 09 00 86 5A 00 B2 04 E5 65 6C AF E3 65 3B [23:15:56]GetLastDocTimeStamp 1709507463 [23:15:56]current date 1709507762 [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 87 5A 80 13 01 00 00 00 00 00 5E [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 87 5A 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 20 [23:15:56]RAPDU: 09 00 01 AB C3 E3 65 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]opened in 1709425579 [23:15:56]opened+sec_in_day 1709511979 [23:15:56]quantity*price = 40049 [23:15:56]sum+1 = 40050 [23:15:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.49 НСП 1% : 3.54 НДС 12% : 42.53 Наличными: 0.00 Безнал.: 400.49 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 249 03.03.2024 23:16 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874798 ФД: 123392 ФПД: 124630024295384 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T231602&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123392&fm=124630024295384&tin=02508201610067®Number=0000000000090573&sum=40049 [23:15:58]StoreToDocumentArchive [23:15:58]shift 323 fd 123392 [23:15:58]save to /storage/0323/doc_00123392 [23:15:58]save last doc name /storage/0323/doc_00123392 to /storage/kkm_last_doc_name [23:15:58]save OK [23:15:58]Clear old archive folders... [23:15:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:15:58]tlvbuf is 00E450C0 [23:15:58]SAM_PROTO_ClearQueue [23:15:58]wFMCommunicate request_size=4 [23:15:58]MH_SAM_APDU [23:15:58]CAPDU: 80 09 00 00 [23:15:58]Write to MH i2c: E2 08 00 94 5A 80 09 00 00 00 00 00 00 60 [23:15:58]Write i2c OK [23:15:58]MH_I2C_Read... [23:15:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:15:58]Read from MH i2c: E2 [23:15:58]MH_I2C_Read... [23:15:58]Read from MH i2c: E2 03 00 [23:15:58]MH_I2C_Read... [23:15:58]Read from MH i2c: E2 03 00 94 5A 00 90 00 62 [23:15:58]RAPDU: 90 00 [23:15:58]wFMCommunicate OK [23:15:58]SAM_PROTO_ClearQueue done [23:15:58]KKMCreateOFDPacket [23:15:58]OFDProtocolAddRootSTLVToBuf [23:15:58]FM_MakeSignedData [23:15:58]FM_MakeSignedData [23:15:58]SAM_PROTO_SignData [23:15:58]wFMCommunicate request_size=4 [23:15:58]MH_SAM_APDU [23:15:58]CAPDU: 80 0D 01 02 [23:15:58]Write to MH i2c: E2 08 00 95 5A 80 0D 01 02 00 00 00 00 68 [23:15:58]Write i2c OK [23:15:58]MH_I2C_Read... [23:15:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:15:58]Read from MH i2c: E2 [23:15:58]MH_I2C_Read... [23:15:58]Read from MH i2c: E2 03 00 [23:15:58]MH_I2C_Read... [23:15:58]Read from MH i2c: E2 03 00 95 5A 00 90 00 63 [23:15:58]RAPDU: 90 00 [23:15:58]wFMCommunicate OK [23:15:58]wFMCommunicate request_size=255 [23:15:58]MH_SAM_APDU [23:15:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 19 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 71 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 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 9D 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 B2 04 E5 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 00 E2 01 00 35 04 06 00 71 [23:15:58]Write to MH i2c: E2 02 01 96 5A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 19 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 71 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 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 9D 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 B2 04 E5 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 00 E2 01 00 35 04 06 00 71 00 00 E9 [23:15:58]Write i2c OK [23:15:58]MH_I2C_Read... [23:15:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:15:58]Read from MH i2c: E2 [23:15:58]MH_I2C_Read... [23:15:58]Read from MH i2c: E2 03 00 [23:15:58]MH_I2C_Read... [23:15:58]Read from MH i2c: E2 03 00 96 5A 00 90 00 64 [23:15:58]RAPDU: 90 00 [23:15:58]wFMCommunicate OK [23:15:58]wFMCommunicate request_size=10 [23:15:58]MH_SAM_APDU [23:15:58]CAPDU: 80 0D 02 02 05 59 B0 53 93 D8 [23:15:58]Write to MH i2c: E2 0D 00 97 5A 80 0D 02 02 05 00 59 B0 53 93 D8 00 00 3C [23:15:58]Write i2c OK [23:15:58]MH_I2C_Read... [23:15:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:15:58]Read from MH i2c: E2 [23:15:58]MH_I2C_Read... [23:15:58]Read from MH i2c: E2 03 00 [23:15:58]MH_I2C_Read... [23:15:58]Read from MH i2c: E2 03 00 97 5A 00 90 00 65 [23:15:58]RAPDU: 90 00 [23:15:58]wFMCommunicate OK [23:15:58]wFMCommunicate request_size=4 [23:15:58]MH_SAM_APDU [23:15:58]CAPDU: 80 0D 03 02 [23:15:58]Write to MH i2c: E2 08 00 98 5A 80 0D 03 02 00 00 00 00 6D [23:15:58]Write i2c OK [23:15:58]MH_I2C_Read... [23:15:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:15:58]Read from MH i2c: E2 [23:15:58]MH_I2C_Read... [23:15:58]Read from MH i2c: E2 0B 00 [23:15:58]MH_I2C_Read... [23:15:58]Read from MH i2c: E2 0B 00 98 5A 00 33 A2 E1 71 53 21 ED 62 90 00 58 [23:15:58]RAPDU: 33 A2 E1 71 53 21 ED 62 90 00 [23:15:58]wFMCommunicate OK [23:15:58]SAM_PROTO_SignData done [23:15:58]FM_MakeSignedData done [23:15:58]CreateOFDProtocolMessage [23:15:58]wFMCommunicate request_size=4 [23:15:58]MH_SAM_APDU [23:15:58]CAPDU: 80 11 00 00 [23:15:58]Write to MH i2c: E2 08 00 99 5A 80 11 00 00 00 00 00 00 6D [23:15:58]Write i2c OK [23:15:58]MH_I2C_Read... [23:15:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:15:58]Read from MH i2c: E2 [23:15:58]MH_I2C_Read... [23:15:58]Read from MH i2c: E2 17 00 [23:15:58]MH_I2C_Read... [23:15:58]Read from MH i2c: E2 17 00 99 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 CB [23:15:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [23:15:58]wFMCommunicate OK [23:15:58]CreateOFDProtocolMessage done [23:15:58]OFDSenderStorePacket 123392 [23:15:58]StoreOFDPacket docnum=123392 [23:15:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 84 58 07 01 DD B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 19 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 71 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 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 9D 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 B2 04 E5 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 00 E2 01 00 35 04 06 00 71 59 B0 53 93 D8 33 A2 E1 71 53 21 ED 62 [23:15:58]CheckFolder [23:15:58]dirname=/storage/ofd_packets [23:15:58]CheckFolder done [23:15:58]ProducePacketName [23:15:58]name=ofd_packets/00123392 [23:15:58]NVStorageSaveData ofd_packets/00123392 [23:15:58]File name is /storage/ofd_packets/00123392 [23:15:58]Write 301 bytes [23:15:58]NVStorageSaveData done [23:15:58]OFDSenderStorePacket done [23:15:58]KKMCreateOFDPacket done [23:15:58]NVStorageSaveData kkm_last_timestamp [23:15:58]File name is /storage/kkm_last_timestamp [23:15:58]Write 4 bytes [23:15:58]NVStorageSaveData done [23:15:58]ExternCall_PrintAddStr [23:15:58]wPrintStart [23:15:58]Write to MH i2c: 01 00 00 9A 5A F4 [23:15:58]Write i2c OK [23:15:58]MH_I2C_Read... [23:15:58]Read from MH i2c: 01 [23:15:58]MH_I2C_Read... [23:15:58]Read from MH i2c: 01 07 00 [23:15:58]MH_I2C_Read... [23:15:58]Read from MH i2c: 01 07 00 9A 5A 00 00 00 00 00 FF 0F 09 [23:15:58]RasterBufferAndPrint [23:15:58]line Счет N : (1)1106378 [23:15:58]line ИНН: 02508201610067 [23:15:58]line Контрольно-Кассовый Чек [23:15:58]line ПРОДАЖА [23:15:58]line ТРК (МРК, ГНК) : 52 [23:15:58]line Товар: 2710124130 [23:15:58]line Аи-92-К-5 [23:15:58]line 6.470 * 61.90 [23:15:58]line = 400.49 [23:15:58]line НДС 12% НСП 1% [23:15:58]line > о реализуемом товаре [23:15:58]line ИТОГО: 400.49 [23:15:58]line НСП 1% : 3.54 [23:15:58]line НДС 12% : 42.53 [23:15:58]line Наличными: 0.00 [23:15:58]line Безнал.: 400.49 [23:15:58]line Место: АЗС № 25 "Партнер Нефть" [23:15:58]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [23:15:58]line СНО: Общий режим [23:15:58]line Чек 249 03.03.2024 23:16 [23:15:58]line Смена: 323 ФФД: 1.0 [23:15:58]line ЗНМ: 0300000019 [23:15:58]line РНМ: 0000000000090573 [23:15:58]line Версия ККМ: 001 [23:15:58]line Платежная система: О! деньги [23:15:58]line ФМ: 0000000000874798 [23:15:58]line ФД: 123392 [23:15:58]line ФПД: 124630024295384 [23:15:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T231602&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123392&fm=124630024295384&tin=02508201610067®Number=0000000000090573&sum=40049 [23:15:58]written 0, free lines is 4095 [23:15:58]OFD Sender: Processing packet 123392 [packets to send 112, broken 111] [23:15:58]ProducePacketName [23:15:58]name=ofd_packets/00123392 [23:15:58]OFD Sender: To server: pG, [23:15:58]CommunicateWithHost lk.salyk.kg:30040 [23:15:58]ConnectInit lk.salyk.kg [23:15:59]Connected sock=10 [23:15: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 37 39 38 0F 01 00 00 84 58 07 01 DD B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 19 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 71 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 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 9D 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 B2 04 E5 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 00 E2 01 00 35 04 06 00 71 59 B0 53 93 D8 33 A2 E1 71 53 21 ED 62 [23:15:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 05 91 47 00 23 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 37 39 38 10 04 04 00 00 E2 01 00 F4 03 04 00 DC B0 E4 65 B6 04 01 00 00 B2 C5 F9 48 2A E0 CD 3C [23:15:59]CommunicateWithHost err = 0 [23:15:59]CheckOFDResponse [23:15:59]1017 (14) - 77093643461234 [23:15:59]1041 (16) - 0000000000874798 [23:15:59]1040 (4) - 123392 [23:15:59]1012 (4) - 03.03.2024 17:18 [23:15:59]1206 (1) - 0 [23:15:59]OFD Sender: Remove packet 123392 [23:15:59]ProducePacketName [23:15:59]name=ofd_packets/00123392 [23:15:59]NVStorageDeleteData [23:15:59]Write to MH i2c: 01 00 00 C4 5A 1E [23:15:59]Write i2c OK [23:15:59]MH_I2C_Read... [23:15:59]Read from MH i2c: 01 [23:15:59]MH_I2C_Read... [23:15:59]Read from MH i2c: 01 07 00 [23:15:59]MH_I2C_Read... [23:15:59]Read from MH i2c: 01 07 00 C4 5A 00 00 00 00 00 04 0D 36 [23:15:59]RasterBufferAndPrint [23:15:59]line [23:15:59]line [23:15:59]line [23:15:59]line [23:15:59]line [23:15:59]written 0, free lines is 3338 [23:15:59]MH_Cut [23:15:59]Write to MH i2c: D1 01 00 CB 5A 01 F7 [23:15:59]Write i2c OK [23:15:59]MH_I2C_Read... [23:15:59]Read from MH i2c: D1 [23:15:59]MH_I2C_Read... [23:15:59]Read from MH i2c: D1 01 00 [23:15:59]MH_I2C_Read... [23:15:59]Read from MH i2c: D1 01 00 CB 5A 00 F6 [23:15:59]Write to MH i2c: 01 00 00 CC 5A 26 [23:15:59]Write i2c OK [23:15:59]MH_I2C_Read... [23:15:59]OFD Sender: No OFD packet to send [23:16:00]*** Cut start [23:16:00]*** Purtial cut [23:16:00]*** Stage 1: CUTSNS_PIN = 1 [23:16:02]Read from MH i2c: 01 [23:16:02]MH_I2C_Read... [23:16:02]*** Stop cut motor [23:16:02]*** Cut end [23:16:02]Read from MH i2c: 01 07 00 [23:16:02]MH_I2C_Read... [23:16:02]Read from MH i2c: 01 07 00 CC 5A 00 00 00 00 00 FF 0F 3B [23:16:02]process_action close_receipt done [23:16:02]requested_data is exist [23:16:02]produce_requested_data [23:16:02]requested_item fm.sn is exist - process it [23:16:02]wFMCommunicate request_size=4 [23:16:02]MH_SAM_APDU [23:16:02]CAPDU: 80 11 00 00 [23:16:02]Write to MH i2c: E2 08 00 CD 5A 80 11 00 00 00 00 00 00 A1 [23:16:02]Write i2c OK [23:16:02]MH_I2C_Read... [23:16:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:16:02]Read from MH i2c: E2 [23:16:02]MH_I2C_Read... [23:16:02]Read from MH i2c: E2 17 00 [23:16:02]MH_I2C_Read... [23:16:02]Read from MH i2c: E2 17 00 CD 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 FF [23:16:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [23:16:02]wFMCommunicate OK [23:16:02]requested_item fd.num is exist - process it [23:16:02]SAM_PROTO_GetFieldsCounters [23:16:02]wFMCommunicate request_size=4 [23:16:02]MH_SAM_APDU [23:16:02]CAPDU: 80 13 00 00 [23:16:02]Write to MH i2c: E2 08 00 CE 5A 80 13 00 00 00 00 00 00 A4 [23:16:02]Write i2c OK [23:16:02]MH_I2C_Read... [23:16:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:16:02]Read from MH i2c: E2 [23:16:02]MH_I2C_Read... [23:16:02]Read from MH i2c: E2 62 00 [23:16:02]MH_I2C_Read... [23:16:02]Read from MH i2c: E2 62 00 CE 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 00 E2 01 00 0E 04 04 00 43 01 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 E1 [23:16: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 00 E2 01 00 0E 04 04 00 43 01 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 [23:16:02]wFMCommunicate OK [23:16:02]SAM_PROTO_GetFieldsCounters done [23:16:02]requested_item shift.num is exist - process it [23:16:02]requested_item shift.opened is exist - process it [23:16:02]req_shift_opened [23:16:02]FM_GetShiftState [23:16:02]SAM_PROTO_GetShiftState [23:16:02]wFMCommunicate request_size=4 [23:16:02]MH_SAM_APDU [23:16:02]CAPDU: 80 13 01 00 [23:16:02]Write to MH i2c: E2 08 00 CF 5A 80 13 01 00 00 00 00 00 A6 [23:16:02]Write i2c OK [23:16:02]MH_I2C_Read... [23:16:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:16:02]Read from MH i2c: E2 [23:16:02]MH_I2C_Read... [23:16:02]Read from MH i2c: E2 0E 00 [23:16:02]MH_I2C_Read... [23:16:02]Read from MH i2c: E2 0E 00 CF 5A 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 68 [23:16:02]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [23:16:02]wFMCommunicate OK [23:16:02]SAM_PROTO_GetShiftState done [23:16:02]FM_GetShiftState done [23:16:02]req_shift_opened done [23:16:02]requested_item shift.open_date is exist - process it [23:16:02]req_shift_open_date [23:16:02]req_shift_open_date done [23:16:02]produce_requested_data done [23:16:02]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123392,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [23:16:02]process_action_free close_receipt [23:16:02]json_value_free [23:16:02]json_value_free done [23:16:02]process_json_proto returns [23:16:02]Send response to host [23:16:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123392,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [23:16:02]free response buf [23:16:02]execute_script done [23:16:02]execute_script returns [23:16:02]free content buf [23:16:02]Sock 7.Close socket [23:16:02]Sock 7.Thread stoped [23:16:04]OFD Sender: No OFD packet to send [23:16:09]OFD Sender: No OFD packet to send [23:16:11]accept exits with 9 [23:16:11]New connection [23:16:11]New thread 3067395428 created [23:16:11]Thread 3067252068 joined [23:16:11]Waiting for new connection... [23:16:11] Sock 9.Parse request [23:16:11]Sock 9.Check first char [23:16:11]Sock 9.First char is OK [23:16:11]request: POST /json_proto HTTP/1.0 [23:16:11]Method: POST [23:16:11]URL: /json_proto [23:16:11]Method is POST - this is cgi request [23:16:11]url: /json_proto [23:16:11]query_string will be loaded in cgi processing [23:16:11]execute_cgi json_proto POST (null) [23:16:11]execute_cgi path=json_proto method=POST [23:16:11]POST find Content-Length [23:16:11]Host: 172.17.48.197:8080 [23:16:11]Content-Length: 817 [23:16:11]Content-Type: application/json [23:16:11] [23:16:11]POST finish read [23:16:11]Found Content-Length = 817 [23:16:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106379", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:16:11]execute_script... [23:16: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)1106379", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:16:11]POST & json_proto [23:16:11]process_json_proto [23:16:11]json parsed OK: [23:16:11]protocol is kg_v1.0 [23:16:11]action value=close_receipt [23:16:11]process_action close_receipt [23:16:11]cmd_close_receipt [23:16:11]MH_GetDate [23:16:11]Write to MH i2c: F0 00 00 D0 5A 19 [23:16:11]Write i2c OK [23:16:11]MH_I2C_Read... [23:16:11]Read from MH i2c: F0 [23:16:11]MH_I2C_Read... [23:16:11]Read from MH i2c: F0 09 00 [23:16:11]MH_I2C_Read... [23:16:11]Read from MH i2c: F0 09 00 D0 5A 00 C0 04 E5 65 6C AF E3 65 93 [23:16:11]GetLastDocTimeStamp 1709507762 [23:16:11]current date 1709507776 [23:16:11]FM_GetShiftState [23:16:11]SAM_PROTO_GetShiftState [23:16:11]wFMCommunicate request_size=4 [23:16:11]MH_SAM_APDU [23:16:11]CAPDU: 80 13 01 00 [23:16:11]Write to MH i2c: E2 08 00 D1 5A 80 13 01 00 00 00 00 00 A8 [23:16:11]Write i2c OK [23:16:11]MH_I2C_Read... [23:16:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:16:11]Read from MH i2c: E2 [23:16:11]MH_I2C_Read... [23:16:11]Read from MH i2c: E2 0E 00 [23:16:11]MH_I2C_Read... [23:16:11]Read from MH i2c: E2 0E 00 D1 5A 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 6A [23:16:11]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [23:16:11]wFMCommunicate OK [23:16:11]SAM_PROTO_GetShiftState done [23:16:11]FM_GetShiftState done [23:16:11]opened in 1709425579 [23:16:11]opened+sec_in_day 1709511979 [23:16:11]quantity*price = 50015 [23:16:11]sum+1 = 50016 [23:16:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.15 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.15 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 250 03.03.2024 23:16 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874798 ФД: 123393 ФПД: 188824962240933 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T231617&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123393&fm=188824962240933&tin=02508201610067®Number=0000000000090573&sum=50015 [23:16:12]StoreToDocumentArchive [23:16:12]shift 323 fd 123393 [23:16:12]save to /storage/0323/doc_00123393 [23:16:12]save last doc name /storage/0323/doc_00123393 to /storage/kkm_last_doc_name [23:16:12]save OK [23:16:12]Clear old archive folders... [23:16:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:16:12]tlvbuf is 00E65930 [23:16:12]SAM_PROTO_ClearQueue [23:16:12]wFMCommunicate request_size=4 [23:16:12]MH_SAM_APDU [23:16:12]CAPDU: 80 09 00 00 [23:16:12]Write to MH i2c: E2 08 00 DE 5A 80 09 00 00 00 00 00 00 AA [23:16:12]Write i2c OK [23:16:12]MH_I2C_Read... [23:16:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:16:12]Read from MH i2c: E2 [23:16:12]MH_I2C_Read... [23:16:12]Read from MH i2c: E2 03 00 [23:16:12]MH_I2C_Read... [23:16:12]Read from MH i2c: E2 03 00 DE 5A 00 90 00 AC [23:16:12]RAPDU: 90 00 [23:16:12]wFMCommunicate OK [23:16:12]SAM_PROTO_ClearQueue done [23:16:12]KKMCreateOFDPacket [23:16:12]OFDProtocolAddRootSTLVToBuf [23:16:12]FM_MakeSignedData [23:16:12]FM_MakeSignedData [23:16:12]SAM_PROTO_SignData [23:16:12]wFMCommunicate request_size=4 [23:16:12]MH_SAM_APDU [23:16:12]CAPDU: 80 0D 01 02 [23:16:12]Write to MH i2c: E2 08 00 DF 5A 80 0D 01 02 00 00 00 00 B2 [23:16:12]Write i2c OK [23:16:12]MH_I2C_Read... [23:16:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:16:12]Read from MH i2c: E2 [23:16:12]MH_I2C_Read... [23:16:12]Read from MH i2c: E2 03 00 [23:16:12]MH_I2C_Read... [23:16:12]Read from MH i2c: E2 03 00 DF 5A 00 90 00 AD [23:16:12]RAPDU: 90 00 [23:16:12]wFMCommunicate OK [23:16:12]wFMCommunicate request_size=255 [23:16:12]MH_SAM_APDU [23:16:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 C1 04 E5 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 01 E2 01 00 35 04 06 00 AB [23:16:12]Write to MH i2c: E2 02 01 E0 5A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 C1 04 E5 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 01 E2 01 00 35 04 06 00 AB 00 00 8C [23:16:12]Write i2c OK [23:16:12]MH_I2C_Read... [23:16:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:16:12]Read from MH i2c: E2 [23:16:12]MH_I2C_Read... [23:16:12]Read from MH i2c: E2 03 00 [23:16:12]MH_I2C_Read... [23:16:12]Read from MH i2c: E2 03 00 E0 5A 00 90 00 AE [23:16:12]RAPDU: 90 00 [23:16:12]wFMCommunicate OK [23:16:12]wFMCommunicate request_size=10 [23:16:12]MH_SAM_APDU [23:16:12]CAPDU: 80 0D 02 02 05 BC 3C CC 91 A5 [23:16:12]Write to MH i2c: E2 0D 00 E1 5A 80 0D 02 02 05 00 BC 3C CC 91 A5 00 00 B9 [23:16:12]Write i2c OK [23:16:12]MH_I2C_Read... [23:16:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:16:12]Read from MH i2c: E2 [23:16:12]MH_I2C_Read... [23:16:12]Read from MH i2c: E2 03 00 [23:16:12]MH_I2C_Read... [23:16:12]Read from MH i2c: E2 03 00 E1 5A 00 90 00 AF [23:16:12]RAPDU: 90 00 [23:16:12]wFMCommunicate OK [23:16:12]wFMCommunicate request_size=4 [23:16:12]MH_SAM_APDU [23:16:12]CAPDU: 80 0D 03 02 [23:16:12]Write to MH i2c: E2 08 00 E2 5A 80 0D 03 02 00 00 00 00 B7 [23:16:13]Write i2c OK [23:16:13]MH_I2C_Read... [23:16:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:16:13]Read from MH i2c: E2 [23:16:13]MH_I2C_Read... [23:16:13]Read from MH i2c: E2 0B 00 [23:16:13]MH_I2C_Read... [23:16:13]Read from MH i2c: E2 0B 00 E2 5A 00 77 DB 7C 12 0F 6D DA 55 90 00 43 [23:16:13]RAPDU: 77 DB 7C 12 0F 6D DA 55 90 00 [23:16:13]wFMCommunicate OK [23:16:13]SAM_PROTO_SignData done [23:16:13]FM_MakeSignedData done [23:16:13]CreateOFDProtocolMessage [23:16:13]wFMCommunicate request_size=4 [23:16:13]MH_SAM_APDU [23:16:13]CAPDU: 80 11 00 00 [23:16:13]Write to MH i2c: E2 08 00 E3 5A 80 11 00 00 00 00 00 00 B7 [23:16:13]Write i2c OK [23:16:13]MH_I2C_Read... [23:16:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:16:13]Read from MH i2c: E2 [23:16:13]MH_I2C_Read... [23:16:13]Read from MH i2c: E2 17 00 [23:16:13]MH_I2C_Read... [23:16:13]Read from MH i2c: E2 17 00 E3 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 15 [23:16:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [23:16:13]wFMCommunicate OK [23:16:13]CreateOFDProtocolMessage done [23:16:13]OFDSenderStorePacket 123393 [23:16:13]StoreOFDPacket docnum=123393 [23:16:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 B9 42 07 01 69 3A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 C1 04 E5 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 01 E2 01 00 35 04 06 00 AB BC 3C CC 91 A5 77 DB 7C 12 0F 6D DA 55 [23:16:13]CheckFolder [23:16:13]dirname=/storage/ofd_packets [23:16:13]CheckFolder done [23:16:13]ProducePacketName [23:16:13]name=ofd_packets/00123393 [23:16:13]NVStorageSaveData ofd_packets/00123393 [23:16:13]File name is /storage/ofd_packets/00123393 [23:16:13]Write 301 bytes [23:16:13]NVStorageSaveData done [23:16:13]OFDSenderStorePacket done [23:16:13]KKMCreateOFDPacket done [23:16:13]NVStorageSaveData kkm_last_timestamp [23:16:13]File name is /storage/kkm_last_timestamp [23:16:13]Write 4 bytes [23:16:13]NVStorageSaveData done [23:16:13]ExternCall_PrintAddStr [23:16:13]wPrintStart [23:16:13]Write to MH i2c: 01 00 00 E4 5A 3E [23:16:13]Write i2c OK [23:16:13]MH_I2C_Read... [23:16:13]Read from MH i2c: 01 [23:16:13]MH_I2C_Read... [23:16:13]Read from MH i2c: 01 07 00 [23:16:13]MH_I2C_Read... [23:16:13]Read from MH i2c: 01 07 00 E4 5A 00 00 00 00 00 FF 0F 53 [23:16:13]RasterBufferAndPrint [23:16:13]line Счет N : (1)1106379 [23:16:13]line ИНН: 02508201610067 [23:16:13]line Контрольно-Кассовый Чек [23:16:13]line ПРОДАЖА [23:16:13]line ТРК (МРК, ГНК) : 21 [23:16:13]line Товар: 2710124130 [23:16:13]line Аи-92-К-5 [23:16:13]line 8.080 * 61.90 [23:16:13]line = 500.15 [23:16:13]line НДС 12% НСП 1% [23:16:13]line > о реализуемом товаре [23:16:13]line ИТОГО: 500.15 [23:16:13]line НСП 1% : 4.43 [23:16:13]line НДС 12% : 53.11 [23:16:13]line Наличными: 0.00 [23:16:13]line Безнал.: 500.15 [23:16:13]line Место: АЗС № 25 "Партнер Нефть" [23:16:13]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [23:16:13]line СНО: Общий режим [23:16:13]line Чек 250 03.03.2024 23:16 [23:16:13]line Смена: 323 ФФД: 1.0 [23:16:13]line ЗНМ: 0300000019 [23:16:13]line РНМ: 0000000000090573 [23:16:13]line Версия ККМ: 001 [23:16:13]line Платежная система: Бакай Банк [23:16:13]line ФМ: 0000000000874798 [23:16:13]line ФД: 123393 [23:16:13]line ФПД: 188824962240933 [23:16:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T231617&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123393&fm=188824962240933&tin=02508201610067®Number=0000000000090573&sum=50015 [23:16:13]OFD Sender: Processing packet 123393 [packets to send 112, broken 111] [23:16:13]ProducePacketName [23:16:13]name=ofd_packets/00123393 [23:16:13]OFD Sender: To server: pG, [23:16:13]CommunicateWithHost lk.salyk.kg:30040 [23:16:13]ConnectInit lk.salyk.kg [23:16:13]written 0, free lines is 4095 [23:16:13]Connected sock=10 [23:16: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 37 39 38 0F 01 00 00 B9 42 07 01 69 3A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 C1 04 E5 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 01 E2 01 00 35 04 06 00 AB BC 3C CC 91 A5 77 DB 7C 12 0F 6D DA 55 [23:16:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 5C 38 47 00 D2 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 37 39 38 10 04 04 00 01 E2 01 00 F4 03 04 00 EB B0 E4 65 B6 04 01 00 00 79 CE 7F B1 7F 27 DB EF [23:16:13]CommunicateWithHost err = 0 [23:16:13]CheckOFDResponse [23:16:13]1017 (14) - 77093643461234 [23:16:13]1041 (16) - 0000000000874798 [23:16:13]1040 (4) - 123393 [23:16:13]1012 (4) - 03.03.2024 17:18 [23:16:13]1206 (1) - 0 [23:16:13]OFD Sender: Remove packet 123393 [23:16:13]ProducePacketName [23:16:13]name=ofd_packets/00123393 [23:16:13]NVStorageDeleteData [23:16:13]Write to MH i2c: 01 00 00 0E 5B 69 [23:16:13]Write i2c OK [23:16:13]MH_I2C_Read... [23:16:13]Read from MH i2c: 01 [23:16:13]MH_I2C_Read... [23:16:13]Read from MH i2c: 01 07 00 [23:16:13]MH_I2C_Read... [23:16:13]Read from MH i2c: 01 07 00 0E 5B 00 00 00 00 00 0F 0D 8C [23:16:13]RasterBufferAndPrint [23:16:13]line [23:16:13]line [23:16:13]line [23:16:13]line [23:16:13]line [23:16:13]written 0, free lines is 3353 [23:16:13]MH_Cut [23:16:13]Write to MH i2c: D1 01 00 15 5B 01 42 [23:16:13]Write i2c OK [23:16:13]MH_I2C_Read... [23:16:13]Read from MH i2c: D1 [23:16:13]MH_I2C_Read... [23:16:13]Read from MH i2c: D1 01 00 [23:16:13]MH_I2C_Read... [23:16:13]Read from MH i2c: D1 01 00 15 5B 00 41 [23:16:13]Write to MH i2c: 01 00 00 16 5B 71 [23:16:13]Write i2c OK [23:16:13]MH_I2C_Read... [23:16:14]OFD Sender: No OFD packet to send [23:16:14]*** Cut start [23:16:14]*** Purtial cut [23:16:14]*** Stage 1: CUTSNS_PIN = 1 [23:16:16]Read from MH i2c: 01 [23:16:16]MH_I2C_Read... [23:16:16]*** Stop cut motor [23:16:16]*** Cut end [23:16:16]Read from MH i2c: 01 07 00 [23:16:16]MH_I2C_Read... [23:16:16]Read from MH i2c: 01 07 00 16 5B 00 00 00 00 00 FF 0F 86 [23:16:16]process_action close_receipt done [23:16:16]requested_data is exist [23:16:16]produce_requested_data [23:16:16]requested_item fm.sn is exist - process it [23:16:16]wFMCommunicate request_size=4 [23:16:16]MH_SAM_APDU [23:16:16]CAPDU: 80 11 00 00 [23:16:16]Write to MH i2c: E2 08 00 17 5B 80 11 00 00 00 00 00 00 EC [23:16:16]Write i2c OK [23:16:16]MH_I2C_Read... [23:16:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:16:16]Read from MH i2c: E2 [23:16:16]MH_I2C_Read... [23:16:16]Read from MH i2c: E2 17 00 [23:16:16]MH_I2C_Read... [23:16:16]Read from MH i2c: E2 17 00 17 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 4A [23:16:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [23:16:16]wFMCommunicate OK [23:16:16]requested_item fd.num is exist - process it [23:16:16]SAM_PROTO_GetFieldsCounters [23:16:16]wFMCommunicate request_size=4 [23:16:16]MH_SAM_APDU [23:16:16]CAPDU: 80 13 00 00 [23:16:16]Write to MH i2c: E2 08 00 18 5B 80 13 00 00 00 00 00 00 EF [23:16:16]Write i2c OK [23:16:16]MH_I2C_Read... [23:16:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:16:16]Read from MH i2c: E2 [23:16:16]MH_I2C_Read... [23:16:16]Read from MH i2c: E2 62 00 [23:16:16]MH_I2C_Read... [23:16:16]Read from MH i2c: E2 62 00 18 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 01 E2 01 00 0E 04 04 00 43 01 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 30 [23:16: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 01 E2 01 00 0E 04 04 00 43 01 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 [23:16:16]wFMCommunicate OK [23:16:16]SAM_PROTO_GetFieldsCounters done [23:16:16]requested_item shift.num is exist - process it [23:16:16]requested_item shift.opened is exist - process it [23:16:16]req_shift_opened [23:16:16]FM_GetShiftState [23:16:16]SAM_PROTO_GetShiftState [23:16:16]wFMCommunicate request_size=4 [23:16:16]MH_SAM_APDU [23:16:16]CAPDU: 80 13 01 00 [23:16:16]Write to MH i2c: E2 08 00 19 5B 80 13 01 00 00 00 00 00 F1 [23:16:16]Write i2c OK [23:16:16]MH_I2C_Read... [23:16:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:16:16]Read from MH i2c: E2 [23:16:16]MH_I2C_Read... [23:16:16]Read from MH i2c: E2 0E 00 [23:16:16]MH_I2C_Read... [23:16:16]Read from MH i2c: E2 0E 00 19 5B 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 B3 [23:16:16]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [23:16:16]wFMCommunicate OK [23:16:16]SAM_PROTO_GetShiftState done [23:16:16]FM_GetShiftState done [23:16:16]req_shift_opened done [23:16:16]requested_item shift.open_date is exist - process it [23:16:16]req_shift_open_date [23:16:16]req_shift_open_date done [23:16:16]produce_requested_data done [23:16:16]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123393,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [23:16:16]process_action_free close_receipt [23:16:16]json_value_free [23:16:16]json_value_free done [23:16:16]process_json_proto returns [23:16:16]Send response to host [23:16:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123393,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [23:16:16]free response buf [23:16:16]execute_script done [23:16:16]execute_script returns [23:16:16]free content buf [23:16:16]Sock 9.Close socket [23:16:16]Sock 9.Thread stoped [23:16:19]OFD Sender: No OFD packet to send [23:16:24]OFD Sender: No OFD packet to send [23:16:29]OFD Sender: No OFD packet to send [23:16:34]OFD Sender: No OFD packet to send [23:16:39]OFD Sender: No OFD packet to send [23:16:44]OFD Sender: No OFD packet to send [23:16:49]OFD Sender: No OFD packet to send [23:16:54]OFD Sender: No OFD packet to send [23:16:59]OFD Sender: No OFD packet to send [23:17:04]OFD Sender: No OFD packet to send [23:17:09]OFD Sender: No OFD packet to send [23:17:14]OFD Sender: No OFD packet to send [23:17:19]OFD Sender: No OFD packet to send [23:17:24]OFD Sender: No OFD packet to send [23:17:29]OFD Sender: No OFD packet to send [23:17:34]OFD Sender: No OFD packet to send [23:17:39]OFD Sender: No OFD packet to send [23:17:44]OFD Sender: No OFD packet to send [23:17:49]OFD Sender: No OFD packet to send [23:17:54]OFD Sender: No OFD packet to send [23:17:59]OFD Sender: No OFD packet to send [23:18:04]OFD Sender: No OFD packet to send [23:18:09]OFD Sender: No OFD packet to send [23:18:14]OFD Sender: No OFD packet to send [23:18:19]OFD Sender: No OFD packet to send [23:18:24]OFD Sender: No OFD packet to send [23:18:29]OFD Sender: No OFD packet to send [23:18:34]OFD Sender: No OFD packet to send [23:18:39]OFD Sender: No OFD packet to send [23:18:44]OFD Sender: No OFD packet to send [23:18:49]OFD Sender: No OFD packet to send [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:34]OFD Sender: No OFD packet to send [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:30]accept exits with 7 [23:20:30]New connection [23:20:30]New thread 3067252068 created [23:20:30]Thread 3067395428 joined [23:20:30]Waiting for new connection... [23:20:30] Sock 7.Parse request [23:20:30]Sock 7.Check first char [23:20:30]Sock 7.First char is OK [23:20:30]request: POST /json_proto HTTP/1.0 [23:20:30]Method: POST [23:20:30]URL: /json_proto [23:20:30]Method is POST - this is cgi request [23:20:30]url: /json_proto [23:20:30]query_string will be loaded in cgi processing [23:20:30]execute_cgi json_proto POST (null) [23:20:30]execute_cgi path=json_proto method=POST [23:20:30]POST find Content-Length [23:20:30]Host: 172.17.48.197:8080 [23:20:30]Content-Length: 809 [23:20:30]Content-Type: application/json [23:20:30] [23:20:30]POST finish read [23:20:30]Found Content-Length = 809 [23:20:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106380", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:20:30]execute_script... [23:20: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)1106380", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:20:30]POST & json_proto [23:20:30]process_json_proto [23:20:30]json parsed OK: [23:20:30]protocol is kg_v1.0 [23:20:30]action value=close_receipt [23:20:30]process_action close_receipt [23:20:30]cmd_close_receipt [23:20:30]MH_GetDate [23:20:30]Write to MH i2c: F0 00 00 1A 5B 64 [23:20:30]Write i2c OK [23:20:30]MH_I2C_Read... [23:20:30]Read from MH i2c: F0 [23:20:30]MH_I2C_Read... [23:20:30]Read from MH i2c: F0 09 00 [23:20:30]MH_I2C_Read... [23:20:30]Read from MH i2c: F0 09 00 1A 5B 00 C3 05 E5 65 6C AF E3 65 E2 [23:20:30]GetLastDocTimeStamp 1709507777 [23:20:30]current date 1709508035 [23:20:30]FM_GetShiftState [23:20:30]SAM_PROTO_GetShiftState [23:20:30]wFMCommunicate request_size=4 [23:20:30]MH_SAM_APDU [23:20:30]CAPDU: 80 13 01 00 [23:20:30]Write to MH i2c: E2 08 00 1B 5B 80 13 01 00 00 00 00 00 F3 [23:20:30]Write i2c OK [23:20:30]MH_I2C_Read... [23:20:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:20:30]Read from MH i2c: E2 [23:20:30]MH_I2C_Read... [23:20:30]Read from MH i2c: E2 0E 00 [23:20:30]MH_I2C_Read... [23:20:30]Read from MH i2c: E2 0E 00 1B 5B 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 B5 [23:20:30]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [23:20:30]wFMCommunicate OK [23:20:30]SAM_PROTO_GetShiftState done [23:20:30]FM_GetShiftState done [23:20:30]opened in 1709425579 [23:20:30]opened+sec_in_day 1709511979 [23:20:30]quantity*price = 100010 [23:20:30]sum+1 = 100012 [23:20:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.11 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.11 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 251 03.03.2024 23:20 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874798 ФД: 123394 ФПД: 162681377923483 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T232035&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123394&fm=162681377923483&tin=02508201610067®Number=0000000000090573&sum=100011 [23:20:31]StoreToDocumentArchive [23:20:31]shift 323 fd 123394 [23:20:31]save to /storage/0323/doc_00123394 [23:20:31]save last doc name /storage/0323/doc_00123394 to /storage/kkm_last_doc_name [23:20:31]save OK [23:20:31]Clear old archive folders... [23:20:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:20:31]tlvbuf is 00E29890 [23:20:31]SAM_PROTO_ClearQueue [23:20:31]wFMCommunicate request_size=4 [23:20:31]MH_SAM_APDU [23:20:31]CAPDU: 80 09 00 00 [23:20:31]Write to MH i2c: E2 08 00 28 5B 80 09 00 00 00 00 00 00 F5 [23:20:31]Write i2c OK [23:20:31]MH_I2C_Read... [23:20:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:20:31]Read from MH i2c: E2 [23:20:31]MH_I2C_Read... [23:20:31]Read from MH i2c: E2 03 00 [23:20:31]MH_I2C_Read... [23:20:31]Read from MH i2c: E2 03 00 28 5B 00 90 00 F7 [23:20:31]RAPDU: 90 00 [23:20:31]wFMCommunicate OK [23:20:31]SAM_PROTO_ClearQueue done [23:20:31]KKMCreateOFDPacket [23:20:31]OFDProtocolAddRootSTLVToBuf [23:20:31]FM_MakeSignedData [23:20:31]FM_MakeSignedData [23:20:31]SAM_PROTO_SignData [23:20:31]wFMCommunicate request_size=4 [23:20:31]MH_SAM_APDU [23:20:31]CAPDU: 80 0D 01 02 [23:20:31]Write to MH i2c: E2 08 00 29 5B 80 0D 01 02 00 00 00 00 FD [23:20:31]Write i2c OK [23:20:31]MH_I2C_Read... [23:20:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:20:31]Read from MH i2c: E2 [23:20:31]MH_I2C_Read... [23:20:31]Read from MH i2c: E2 03 00 [23:20:31]MH_I2C_Read... [23:20:31]Read from MH i2c: E2 03 00 29 5B 00 90 00 F8 [23:20:31]RAPDU: 90 00 [23:20:31]wFMCommunicate OK [23:20:31]wFMCommunicate request_size=255 [23:20:31]MH_SAM_APDU [23:20: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 C3 05 E5 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 02 E2 01 00 35 04 06 00 93 [23:20:31]Write to MH i2c: E2 02 01 2A 5B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 C3 05 E5 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 02 E2 01 00 35 04 06 00 93 00 00 41 [23:20:31]Write i2c OK [23:20:31]MH_I2C_Read... [23:20:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:20:31]Read from MH i2c: E2 [23:20:31]MH_I2C_Read... [23:20:31]Read from MH i2c: E2 03 00 [23:20:31]MH_I2C_Read... [23:20:31]Read from MH i2c: E2 03 00 2A 5B 00 90 00 F9 [23:20:31]RAPDU: 90 00 [23:20:31]wFMCommunicate OK [23:20:31]wFMCommunicate request_size=10 [23:20:31]MH_SAM_APDU [23:20:31]CAPDU: 80 0D 02 02 05 F5 35 BE 21 9B [23:20:31]Write to MH i2c: E2 0D 00 2B 5B 80 0D 02 02 05 00 F5 35 BE 21 9B 00 00 AE [23:20:31]Write i2c OK [23:20:31]MH_I2C_Read... [23:20:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:20:31]Read from MH i2c: E2 [23:20:31]MH_I2C_Read... [23:20:31]Read from MH i2c: E2 03 00 [23:20:31]MH_I2C_Read... [23:20:31]Read from MH i2c: E2 03 00 2B 5B 00 90 00 FA [23:20:31]RAPDU: 90 00 [23:20:31]wFMCommunicate OK [23:20:31]wFMCommunicate request_size=4 [23:20:31]MH_SAM_APDU [23:20:31]CAPDU: 80 0D 03 02 [23:20:31]Write to MH i2c: E2 08 00 2C 5B 80 0D 03 02 00 00 00 00 02 [23:20:31]Write i2c OK [23:20:31]MH_I2C_Read... [23:20:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:20:31]Read from MH i2c: E2 [23:20:31]MH_I2C_Read... [23:20:31]Read from MH i2c: E2 0B 00 [23:20:31]MH_I2C_Read... [23:20:31]Read from MH i2c: E2 0B 00 2C 5B 00 81 6F 52 F3 74 89 CE 96 90 00 99 [23:20:31]RAPDU: 81 6F 52 F3 74 89 CE 96 90 00 [23:20:31]wFMCommunicate OK [23:20:31]SAM_PROTO_SignData done [23:20:31]FM_MakeSignedData done [23:20:31]CreateOFDProtocolMessage [23:20:31]wFMCommunicate request_size=4 [23:20:31]MH_SAM_APDU [23:20:31]CAPDU: 80 11 00 00 [23:20:31]Write to MH i2c: E2 08 00 2D 5B 80 11 00 00 00 00 00 00 02 [23:20:31]Write i2c OK [23:20:31]MH_I2C_Read... [23:20:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:20:31]Read from MH i2c: E2 [23:20:31]MH_I2C_Read... [23:20:31]Read from MH i2c: E2 17 00 [23:20:31]MH_I2C_Read... [23:20:31]Read from MH i2c: E2 17 00 2D 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 60 [23:20:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [23:20:31]wFMCommunicate OK [23:20:31]CreateOFDProtocolMessage done [23:20:31]OFDSenderStorePacket 123394 [23:20:31]StoreOFDPacket docnum=123394 [23:20:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 72 26 07 01 ED 79 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 C3 05 E5 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 02 E2 01 00 35 04 06 00 93 F5 35 BE 21 9B 81 6F 52 F3 74 89 CE 96 [23:20:31]CheckFolder [23:20:31]dirname=/storage/ofd_packets [23:20:31]CheckFolder done [23:20:31]ProducePacketName [23:20:31]name=ofd_packets/00123394 [23:20:31]NVStorageSaveData ofd_packets/00123394 [23:20:31]File name is /storage/ofd_packets/00123394 [23:20:31]Write 301 bytes [23:20:31]NVStorageSaveData done [23:20:31]OFDSenderStorePacket done [23:20:31]KKMCreateOFDPacket done [23:20:31]NVStorageSaveData kkm_last_timestamp [23:20:31]File name is /storage/kkm_last_timestamp [23:20:31]Write 4 bytes [23:20:31]NVStorageSaveData done [23:20:31]ExternCall_PrintAddStr [23:20:31]wPrintStart [23:20:31]Write to MH i2c: 01 00 00 2E 5B 89 [23:20:31]Write i2c OK [23:20:31]MH_I2C_Read... [23:20:31]Read from MH i2c: 01 [23:20:31]MH_I2C_Read... [23:20:31]Read from MH i2c: 01 07 00 [23:20:31]MH_I2C_Read... [23:20:31]Read from MH i2c: 01 07 00 2E 5B 00 00 00 00 00 FF 0F 9E [23:20:31]RasterBufferAndPrint [23:20:31]line Счет N : (1)1106380 [23:20:31]line ИНН: 02508201610067 [23:20:31]line Контрольно-Кассовый Чек [23:20:31]line ПРОДАЖА [23:20:31]line ТРК (МРК, ГНК) : 63 [23:20:31]line Товар: 2710124500 [23:20:31]line Аи-95-К-5 [23:20:31]line 14.390 * 69.50 [23:20:31]line = 1000.11 [23:20:31]line НДС 12% НСП 1% [23:20:31]line > о реализуемом товаре [23:20:31]line ИТОГО: 1000.11 [23:20:31]line НСП 1% : 8.85 [23:20:31]line НДС 12% : 106.21 [23:20:31]line Наличными: 0.00 [23:20:31]line Безнал.: 1000.11 [23:20:31]line Место: АЗС № 25 "Партнер Нефть" [23:20:31]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [23:20:31]line СНО: Общий режим [23:20:31]line Чек 251 03.03.2024 23:20 [23:20:31]line Смена: 323 ФФД: 1.0 [23:20:31]line ЗНМ: 0300000019 [23:20:31]line РНМ: 0000000000090573 [23:20:31]line Версия ККМ: 001 [23:20:31]line Платежная система: О! деньги [23:20:31]line ФМ: 0000000000874798 [23:20:31]line ФД: 123394 [23:20:31]line ФПД: 162681377923483 [23:20:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T232035&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123394&fm=162681377923483&tin=02508201610067®Number=0000000000090573&sum=100011 [23:20:31]OFD Sender: Processing packet 123394 [packets to send 112, broken 111] [23:20:31]ProducePacketName [23:20:31]name=ofd_packets/00123394 [23:20:31]OFD Sender: To server: pG, [23:20:31]CommunicateWithHost lk.salyk.kg:30040 [23:20:31]ConnectInit lk.salyk.kg [23:20:31]written 0, free lines is 4095 [23:20:32]Connected sock=10 [23:20: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 37 39 38 0F 01 00 00 72 26 07 01 ED 79 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 C3 05 E5 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 02 E2 01 00 35 04 06 00 93 F5 35 BE 21 9B 81 6F 52 F3 74 89 CE 96 [23:20:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 5E CC 47 00 86 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 37 39 38 10 04 04 00 02 E2 01 00 F4 03 04 00 ED B1 E4 65 B6 04 01 00 00 5C 1F A8 B4 F4 88 EF AB [23:20:32]CommunicateWithHost err = 0 [23:20:32]CheckOFDResponse [23:20:32]1017 (14) - 77093643461234 [23:20:32]1041 (16) - 0000000000874798 [23:20:32]1040 (4) - 123394 [23:20:32]1012 (4) - 03.03.2024 17:22 [23:20:32]1206 (1) - 0 [23:20:32]OFD Sender: Remove packet 123394 [23:20:32]ProducePacketName [23:20:32]name=ofd_packets/00123394 [23:20:32]NVStorageDeleteData [23:20:32]Write to MH i2c: 01 00 00 58 5B B3 [23:20:32]Write i2c OK [23:20:32]MH_I2C_Read... [23:20:32]Read from MH i2c: 01 [23:20:32]MH_I2C_Read... [23:20:32]Read from MH i2c: 01 07 00 [23:20:32]MH_I2C_Read... [23:20:32]Read from MH i2c: 01 07 00 58 5B 00 00 00 00 00 01 0D C8 [23:20:32]RasterBufferAndPrint [23:20:32]line [23:20:32]line [23:20:32]line [23:20:32]line [23:20:32]line [23:20:32]written 0, free lines is 3335 [23:20:32]MH_Cut [23:20:32]Write to MH i2c: D1 01 00 5F 5B 01 8C [23:20:32]Write i2c OK [23:20:32]MH_I2C_Read... [23:20:32]Read from MH i2c: D1 [23:20:32]MH_I2C_Read... [23:20:32]Read from MH i2c: D1 01 00 [23:20:32]MH_I2C_Read... [23:20:32]Read from MH i2c: D1 01 00 5F 5B 00 8B [23:20:32]Write to MH i2c: 01 00 00 60 5B BB [23:20:32]Write i2c OK [23:20:32]MH_I2C_Read... [23:20:32]OFD Sender: No OFD packet to send [23:20:33]*** Cut start [23:20:33]*** Purtial cut [23:20:33]*** Stage 1: CUTSNS_PIN = 1 [23:20:35]Read from MH i2c: 01 [23:20:35]MH_I2C_Read... [23:20:35]*** Stop cut motor [23:20:35]*** Cut end [23:20:35]Read from MH i2c: 01 07 00 [23:20:35]MH_I2C_Read... [23:20:35]Read from MH i2c: 01 07 00 60 5B 00 00 00 00 00 FF 0F D0 [23:20:35]process_action close_receipt done [23:20:35]requested_data is exist [23:20:35]produce_requested_data [23:20:35]requested_item fm.sn is exist - process it [23:20:35]wFMCommunicate request_size=4 [23:20:35]MH_SAM_APDU [23:20:35]CAPDU: 80 11 00 00 [23:20:35]Write to MH i2c: E2 08 00 61 5B 80 11 00 00 00 00 00 00 36 [23:20:35]Write i2c OK [23:20:35]MH_I2C_Read... [23:20:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:20:35]Read from MH i2c: E2 [23:20:35]MH_I2C_Read... [23:20:35]Read from MH i2c: E2 17 00 [23:20:35]MH_I2C_Read... [23:20:35]Read from MH i2c: E2 17 00 61 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 94 [23:20:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [23:20:35]wFMCommunicate OK [23:20:35]requested_item fd.num is exist - process it [23:20:35]SAM_PROTO_GetFieldsCounters [23:20:35]wFMCommunicate request_size=4 [23:20:35]MH_SAM_APDU [23:20:35]CAPDU: 80 13 00 00 [23:20:35]Write to MH i2c: E2 08 00 62 5B 80 13 00 00 00 00 00 00 39 [23:20:35]Write i2c OK [23:20:35]MH_I2C_Read... [23:20:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:20:35]Read from MH i2c: E2 [23:20:35]MH_I2C_Read... [23:20:35]Read from MH i2c: E2 62 00 [23:20:35]MH_I2C_Read... [23:20:35]Read from MH i2c: E2 62 00 62 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 02 E2 01 00 0E 04 04 00 43 01 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 7E [23:20: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 02 E2 01 00 0E 04 04 00 43 01 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 [23:20:35]wFMCommunicate OK [23:20:35]SAM_PROTO_GetFieldsCounters done [23:20:35]requested_item shift.num is exist - process it [23:20:35]requested_item shift.opened is exist - process it [23:20:35]req_shift_opened [23:20:35]FM_GetShiftState [23:20:35]SAM_PROTO_GetShiftState [23:20:35]wFMCommunicate request_size=4 [23:20:35]MH_SAM_APDU [23:20:35]CAPDU: 80 13 01 00 [23:20:35]Write to MH i2c: E2 08 00 63 5B 80 13 01 00 00 00 00 00 3B [23:20:35]Write i2c OK [23:20:35]MH_I2C_Read... [23:20:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:20:35]Read from MH i2c: E2 [23:20:35]MH_I2C_Read... [23:20:35]Read from MH i2c: E2 0E 00 [23:20:35]MH_I2C_Read... [23:20:35]Read from MH i2c: E2 0E 00 63 5B 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 FD [23:20:35]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [23:20:35]wFMCommunicate OK [23:20:35]SAM_PROTO_GetShiftState done [23:20:35]FM_GetShiftState done [23:20:35]req_shift_opened done [23:20:35]requested_item shift.open_date is exist - process it [23:20:35]req_shift_open_date [23:20:35]req_shift_open_date done [23:20:35]produce_requested_data done [23:20:35]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123394,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [23:20:35]process_action_free close_receipt [23:20:35]json_value_free [23:20:35]json_value_free done [23:20:35]process_json_proto returns [23:20:35]Send response to host [23:20:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123394,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [23:20:35]free response buf [23:20:35]execute_script done [23:20:35]execute_script returns [23:20:35]free content buf [23:20:35]Sock 7.Close socket [23:20:35]Sock 7.Thread stoped [23:20:37]OFD Sender: No OFD packet to send [23:20:42]OFD Sender: No OFD packet to send [23:20:47]OFD Sender: No OFD packet to send [23:20:52]OFD Sender: No OFD packet to send [23:20:57]OFD Sender: No OFD packet to send [23:21:02]OFD Sender: No OFD packet to send [23:21:07]OFD Sender: No OFD packet to send [23:21:12]OFD Sender: No OFD packet to send [23:21:17]OFD Sender: No OFD packet to send [23:21:22]OFD Sender: No OFD packet to send [23:21:27]OFD Sender: No OFD packet to send [23:21:32]OFD Sender: No OFD packet to send [23:21:37]OFD Sender: No OFD packet to send [23:21:42]OFD Sender: No OFD packet to send [23:21:47]OFD Sender: No OFD packet to send [23:21:52]OFD Sender: No OFD packet to send [23:21:57]OFD Sender: No OFD packet to send [23:22:02]OFD Sender: No OFD packet to send [23:22:07]OFD Sender: No OFD packet to send [23:22:12]OFD Sender: No OFD packet to send [23:22:17]OFD Sender: No OFD packet to send [23:22:22]OFD Sender: No OFD packet to send [23:22:27]OFD Sender: No OFD packet to send [23:22:32]OFD Sender: No OFD packet to send [23:22:37]OFD Sender: No OFD packet to send [23:22:42]OFD Sender: No OFD packet to send [23:22:47]OFD Sender: No OFD packet to send [23:22:52]OFD Sender: No OFD packet to send [23:22:57]OFD Sender: No OFD packet to send [23:23:02]OFD Sender: No OFD packet to send [23:23:07]OFD Sender: No OFD packet to send [23:23:12]OFD Sender: No OFD packet to send [23:23:17]OFD Sender: No OFD packet to send [23:23:22]OFD Sender: No OFD packet to send [23:23:27]OFD Sender: No OFD packet to send [23:23:32]OFD Sender: No OFD packet to send [23:23:37]OFD Sender: No OFD packet to send [23:23:42]OFD Sender: No OFD packet to send [23:23:47]OFD Sender: No OFD packet to send [23:23:52]OFD Sender: No OFD packet to send [23:23:58]OFD Sender: No OFD packet to send [23:24:03]OFD Sender: No OFD packet to send [23:24:08]OFD Sender: No OFD packet to send [23:24:13]OFD Sender: No OFD packet to send [23:24:18]OFD Sender: No OFD packet to send [23:24:23]OFD Sender: No OFD packet to send [23:24:28]OFD Sender: No OFD packet to send [23:24:33]OFD Sender: No OFD packet to send [23:24:38]OFD Sender: No OFD packet to send [23:24:43]OFD Sender: No OFD packet to send [23:24:48]OFD Sender: No OFD packet to send [23:24:53]OFD Sender: No OFD packet to send [23:24:58]OFD Sender: No OFD packet to send [23:25:03]OFD Sender: No OFD packet to send [23:25:08]OFD Sender: No OFD packet to send [23:25:13]OFD Sender: No OFD packet to send [23:25:18]OFD Sender: No OFD packet to send [23:25:23]OFD Sender: No OFD packet to send [23:25:28]OFD Sender: No OFD packet to send [23:25:33]OFD Sender: No OFD packet to send [23:25:38]OFD Sender: No OFD packet to send [23:25:43]OFD Sender: No OFD packet to send [23:25:48]OFD Sender: No OFD packet to send [23:25:53]OFD Sender: No OFD packet to send [23:25:58]OFD Sender: No OFD packet to send [23:26:03]OFD Sender: No OFD packet to send [23:26:08]OFD Sender: No OFD packet to send [23:26:13]OFD Sender: No OFD packet to send [23:26:18]OFD Sender: No OFD packet to send [23:26:23]OFD Sender: No OFD packet to send [23:26:28]OFD Sender: No OFD packet to send [23:26:33]OFD Sender: No OFD packet to send [23:26:38]OFD Sender: No OFD packet to send [23:26:43]OFD Sender: No OFD packet to send [23:26:48]OFD Sender: No OFD packet to send [23:26:53]OFD Sender: No OFD packet to send [23:26:58]OFD Sender: No OFD packet to send [23:27:03]OFD Sender: No OFD packet to send [23:27:08]OFD Sender: No OFD packet to send [23:27:13]OFD Sender: No OFD packet to send [23:27:18]OFD Sender: No OFD packet to send [23:27:23]OFD Sender: No OFD packet to send [23:27:28]OFD Sender: No OFD packet to send [23:27:32]accept exits with 9 [23:27:32]New connection [23:27:32]New thread 3067395428 created [23:27:32]Thread 3067252068 joined [23:27:32]Waiting for new connection... [23:27:32] Sock 9.Parse request [23:27:32]Sock 9.Check first char [23:27:32]Sock 9.First char is OK [23:27:32]request: POST /json_proto HTTP/1.0 [23:27:32]Method: POST [23:27:32]URL: /json_proto [23:27:32]Method is POST - this is cgi request [23:27:32]url: /json_proto [23:27:32]query_string will be loaded in cgi processing [23:27:32]execute_cgi json_proto POST (null) [23:27:32]execute_cgi path=json_proto method=POST [23:27:32]POST find Content-Length [23:27:32]Host: 172.17.48.197:8080 [23:27:32]Content-Length: 809 [23:27:32]Content-Type: application/json [23:27:32] [23:27:32]POST finish read [23:27:32]Found Content-Length = 809 [23:27:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106381", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 24.240, "sum" : 1500.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.46 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:27:32]execute_script... [23:27:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106381", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 24.240, "sum" : 1500.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.46 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:27:32]POST & json_proto [23:27:32]process_json_proto [23:27:32]json parsed OK: [23:27:32]protocol is kg_v1.0 [23:27:32]action value=close_receipt [23:27:32]process_action close_receipt [23:27:32]cmd_close_receipt [23:27:32]MH_GetDate [23:27:32]Write to MH i2c: F0 00 00 64 5B AE [23:27:32]Write i2c OK [23:27:32]MH_I2C_Read... [23:27:32]Read from MH i2c: F0 [23:27:32]MH_I2C_Read... [23:27:32]Read from MH i2c: F0 09 00 [23:27:32]MH_I2C_Read... [23:27:32]Read from MH i2c: F0 09 00 64 5B 00 69 07 E5 65 6C AF E3 65 D4 [23:27:32]GetLastDocTimeStamp 1709508035 [23:27:32]current date 1709508457 [23:27:32]FM_GetShiftState [23:27:32]SAM_PROTO_GetShiftState [23:27:32]wFMCommunicate request_size=4 [23:27:32]MH_SAM_APDU [23:27:32]CAPDU: 80 13 01 00 [23:27:32]Write to MH i2c: E2 08 00 65 5B 80 13 01 00 00 00 00 00 3D [23:27:32]Write i2c OK [23:27:32]MH_I2C_Read... [23:27:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:27:32]Read from MH i2c: E2 [23:27:32]MH_I2C_Read... [23:27:32]Read from MH i2c: E2 0E 00 [23:27:32]MH_I2C_Read... [23:27:32]Read from MH i2c: E2 0E 00 65 5B 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 FF [23:27:32]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [23:27:32]wFMCommunicate OK [23:27:32]SAM_PROTO_GetShiftState done [23:27:32]FM_GetShiftState done [23:27:32]opened in 1709425579 [23:27:32]opened+sec_in_day 1709511979 [23:27:32]quantity*price = 150045 [23:27:32]sum+1 = 150047 [23:27:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.46 НСП 1% : 13.28 НДС 12% : 159.34 Наличными: 0.00 Безнал.: 1500.46 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 252 03.03.2024 23:27 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874798 ФД: 123395 ФПД: 9422664460347 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T232737&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123395&fm=9422664460347&tin=02508201610067®Number=0000000000090573&sum=150046 [23:27:33]StoreToDocumentArchive [23:27:33]shift 323 fd 123395 [23:27:33]save to /storage/0323/doc_00123395 [23:27:33]save last doc name /storage/0323/doc_00123395 to /storage/kkm_last_doc_name [23:27:33]save OK [23:27:33]Clear old archive folders... [23:27:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:27:33]tlvbuf is 00F21220 [23:27:33]SAM_PROTO_ClearQueue [23:27:33]wFMCommunicate request_size=4 [23:27:33]MH_SAM_APDU [23:27:33]CAPDU: 80 09 00 00 [23:27:33]Write to MH i2c: E2 08 00 72 5B 80 09 00 00 00 00 00 00 3F [23:27:33]Write i2c OK [23:27:33]MH_I2C_Read... [23:27:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:27:33]Read from MH i2c: E2 [23:27:33]MH_I2C_Read... [23:27:33]Read from MH i2c: E2 03 00 [23:27:33]MH_I2C_Read... [23:27:33]Read from MH i2c: E2 03 00 72 5B 00 90 00 41 [23:27:33]RAPDU: 90 00 [23:27:33]wFMCommunicate OK [23:27:33]SAM_PROTO_ClearQueue done [23:27:33]KKMCreateOFDPacket [23:27:33]OFDProtocolAddRootSTLVToBuf [23:27:33]FM_MakeSignedData [23:27:33]FM_MakeSignedData [23:27:33]SAM_PROTO_SignData [23:27:33]wFMCommunicate request_size=4 [23:27:33]MH_SAM_APDU [23:27:33]CAPDU: 80 0D 01 02 [23:27:33]Write to MH i2c: E2 08 00 73 5B 80 0D 01 02 00 00 00 00 47 [23:27:33]Write i2c OK [23:27:33]MH_I2C_Read... [23:27:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:27:33]Read from MH i2c: E2 [23:27:33]MH_I2C_Read... [23:27:33]Read from MH i2c: E2 03 00 [23:27:33]MH_I2C_Read... [23:27:33]Read from MH i2c: E2 03 00 73 5B 00 90 00 42 [23:27:33]RAPDU: 90 00 [23:27:33]wFMCommunicate OK [23:27:33]wFMCommunicate request_size=255 [23:27:33]MH_SAM_APDU [23:27:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 5E 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 1E 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1E 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1E 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 69 07 E5 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 03 E2 01 00 35 04 06 00 08 [23:27:33]Write to MH i2c: E2 02 01 74 5B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 5E 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 1E 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1E 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1E 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 69 07 E5 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 03 E2 01 00 35 04 06 00 08 00 00 86 [23:27:33]Write i2c OK [23:27:33]MH_I2C_Read... [23:27:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:27:33]Read from MH i2c: E2 [23:27:33]MH_I2C_Read... [23:27:33]Read from MH i2c: E2 03 00 [23:27:33]MH_I2C_Read... [23:27:33]Read from MH i2c: E2 03 00 74 5B 00 90 00 43 [23:27:33]RAPDU: 90 00 [23:27:33]wFMCommunicate OK [23:27:33]wFMCommunicate request_size=10 [23:27:33]MH_SAM_APDU [23:27:33]CAPDU: 80 0D 02 02 05 91 E2 91 68 3B [23:27:33]Write to MH i2c: E2 0D 00 75 5B 80 0D 02 02 05 00 91 E2 91 68 3B 00 00 FB [23:27:33]Write i2c OK [23:27:33]MH_I2C_Read... [23:27:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:27:33]Read from MH i2c: E2 [23:27:33]MH_I2C_Read... [23:27:33]Read from MH i2c: E2 03 00 [23:27:33]MH_I2C_Read... [23:27:33]Read from MH i2c: E2 03 00 75 5B 00 90 00 44 [23:27:33]RAPDU: 90 00 [23:27:33]wFMCommunicate OK [23:27:33]wFMCommunicate request_size=4 [23:27:33]MH_SAM_APDU [23:27:33]CAPDU: 80 0D 03 02 [23:27:33]Write to MH i2c: E2 08 00 76 5B 80 0D 03 02 00 00 00 00 4C [23:27:33]Write i2c OK [23:27:33]MH_I2C_Read... [23:27:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:27:33]Read from MH i2c: E2 [23:27:33]MH_I2C_Read... [23:27:33]Read from MH i2c: E2 0B 00 [23:27:33]MH_I2C_Read... [23:27:33]Read from MH i2c: E2 0B 00 76 5B 00 CC 28 49 D2 BA 3D 1F 46 90 00 B8 [23:27:33]RAPDU: CC 28 49 D2 BA 3D 1F 46 90 00 [23:27:33]wFMCommunicate OK [23:27:33]SAM_PROTO_SignData done [23:27:33]FM_MakeSignedData done [23:27:33]CreateOFDProtocolMessage [23:27:33]wFMCommunicate request_size=4 [23:27:33]MH_SAM_APDU [23:27:33]CAPDU: 80 11 00 00 [23:27:33]Write to MH i2c: E2 08 00 77 5B 80 11 00 00 00 00 00 00 4C [23:27:33]Write i2c OK [23:27:33]MH_I2C_Read... [23:27:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:27:33]Read from MH i2c: E2 [23:27:33]MH_I2C_Read... [23:27:33]Read from MH i2c: E2 17 00 [23:27:33]MH_I2C_Read... [23:27:33]Read from MH i2c: E2 17 00 77 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 AA [23:27:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [23:27:33]wFMCommunicate OK [23:27:33]CreateOFDProtocolMessage done [23:27:33]OFDSenderStorePacket 123395 [23:27:33]StoreOFDPacket docnum=123395 [23:27:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 D8 1C 07 01 0D CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 5E 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 1E 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1E 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1E 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 69 07 E5 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 03 E2 01 00 35 04 06 00 08 91 E2 91 68 3B CC 28 49 D2 BA 3D 1F 46 [23:27:33]CheckFolder [23:27:33]dirname=/storage/ofd_packets [23:27:33]CheckFolder done [23:27:33]ProducePacketName [23:27:33]name=ofd_packets/00123395 [23:27:33]NVStorageSaveData ofd_packets/00123395 [23:27:33]File name is /storage/ofd_packets/00123395 [23:27:33]Write 301 bytes [23:27:33]NVStorageSaveData done [23:27:33]OFDSenderStorePacket done [23:27:33]KKMCreateOFDPacket done [23:27:33]NVStorageSaveData kkm_last_timestamp [23:27:33]File name is /storage/kkm_last_timestamp [23:27:33]Write 4 bytes [23:27:33]NVStorageSaveData done [23:27:33]ExternCall_PrintAddStr [23:27:33]wPrintStart [23:27:33]Write to MH i2c: 01 00 00 78 5B D3 [23:27:33]Write i2c OK [23:27:33]MH_I2C_Read... [23:27:33]Read from MH i2c: 01 [23:27:33]MH_I2C_Read... [23:27:33]Read from MH i2c: 01 07 00 [23:27:33]MH_I2C_Read... [23:27:33]Read from MH i2c: 01 07 00 78 5B 00 00 00 00 00 FF 0F E8 [23:27:33]RasterBufferAndPrint [23:27:33]line Счет N : (1)1106381 [23:27:33]line ИНН: 02508201610067 [23:27:33]line Контрольно-Кассовый Чек [23:27:33]line ПРОДАЖА [23:27:33]line ТРК (МРК, ГНК) : 52 [23:27:33]line Товар: 2710124130 [23:27:33]line Аи-92-К-5 [23:27:33]line 24.240 * 61.90 [23:27:33]line = 1500.46 [23:27:33]line НДС 12% НСП 1% [23:27:33]line > о реализуемом товаре [23:27:33]line ИТОГО: 1500.46 [23:27:33]line НСП 1% : 13.28 [23:27:33]line НДС 12% : 159.34 [23:27:33]line Наличными: 0.00 [23:27:33]line Безнал.: 1500.46 [23:27:33]line Место: АЗС № 25 "Партнер Нефть" [23:27:33]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [23:27:33]line СНО: Общий режим [23:27:33]line Чек 252 03.03.2024 23:27 [23:27:33]line Смена: 323 ФФД: 1.0 [23:27:33]line ЗНМ: 0300000019 [23:27:33]line РНМ: 0000000000090573 [23:27:33]line Версия ККМ: 001 [23:27:33]line Платежная система: О! деньги [23:27:33]line ФМ: 0000000000874798 [23:27:33]line ФД: 123395 [23:27:33]line ФПД: 9422664460347 [23:27:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T232737&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123395&fm=9422664460347&tin=02508201610067®Number=0000000000090573&sum=150046 [23:27:34]OFD Sender: Processing packet 123395 [packets to send 112, broken 111] [23:27:34]ProducePacketName [23:27:34]name=ofd_packets/00123395 [23:27:34]OFD Sender: To server: pG, [23:27:34]CommunicateWithHost lk.salyk.kg:30040 [23:27:34]ConnectInit lk.salyk.kg [23:27:34]written 0, free lines is 4095 [23:27:34]Connected sock=10 [23:27: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 37 39 38 0F 01 00 00 D8 1C 07 01 0D CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 5E 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 1E 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1E 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1E 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 69 07 E5 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 03 E2 01 00 35 04 06 00 08 91 E2 91 68 3B CC 28 49 D2 BA 3D 1F 46 [23:27:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 B3 7E 47 00 6E 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 37 39 38 10 04 04 00 03 E2 01 00 F4 03 04 00 94 B3 E4 65 B6 04 01 00 00 D3 D4 57 2E 6F F9 A2 E5 [23:27:34]CommunicateWithHost err = 0 [23:27:34]CheckOFDResponse [23:27:34]1017 (14) - 77093643461234 [23:27:34]1041 (16) - 0000000000874798 [23:27:34]1040 (4) - 123395 [23:27:34]1012 (4) - 03.03.2024 17:29 [23:27:34]1206 (1) - 0 [23:27:34]OFD Sender: Remove packet 123395 [23:27:34]ProducePacketName [23:27:34]name=ofd_packets/00123395 [23:27:34]NVStorageDeleteData [23:27:34]Write to MH i2c: 01 00 00 A2 5B FD [23:27:34]Write i2c OK [23:27:34]MH_I2C_Read... [23:27:34]Read from MH i2c: 01 [23:27:34]MH_I2C_Read... [23:27:34]Read from MH i2c: 01 07 00 [23:27:34]MH_I2C_Read... [23:27:34]Read from MH i2c: 01 07 00 A2 5B 00 00 00 00 00 07 0D 18 [23:27:34]RasterBufferAndPrint [23:27:34]line [23:27:34]line [23:27:34]line [23:27:34]line [23:27:34]line [23:27:34]written 0, free lines is 3343 [23:27:34]MH_Cut [23:27:34]Write to MH i2c: D1 01 00 A9 5B 01 D6 [23:27:34]Write i2c OK [23:27:34]MH_I2C_Read... [23:27:34]Read from MH i2c: D1 [23:27:34]MH_I2C_Read... [23:27:34]Read from MH i2c: D1 01 00 [23:27:34]MH_I2C_Read... [23:27:34]Read from MH i2c: D1 01 00 A9 5B 00 D5 [23:27:34]Write to MH i2c: 01 00 00 AA 5B 05 [23:27:34]Write i2c OK [23:27:34]MH_I2C_Read... [23:27:34]OFD Sender: No OFD packet to send [23:27:35]*** Cut start [23:27:35]*** Purtial cut [23:27:35]*** Stage 1: CUTSNS_PIN = 1 [23:27:37]Read from MH i2c: 01 [23:27:37]MH_I2C_Read... [23:27:37]*** Stop cut motor [23:27:37]*** Cut end [23:27:37]Read from MH i2c: 01 07 00 [23:27:37]MH_I2C_Read... [23:27:37]Read from MH i2c: 01 07 00 AA 5B 00 00 00 00 00 FF 0F 1A [23:27:37]process_action close_receipt done [23:27:37]requested_data is exist [23:27:37]produce_requested_data [23:27:37]requested_item fm.sn is exist - process it [23:27:37]wFMCommunicate request_size=4 [23:27:37]MH_SAM_APDU [23:27:37]CAPDU: 80 11 00 00 [23:27:37]Write to MH i2c: E2 08 00 AB 5B 80 11 00 00 00 00 00 00 80 [23:27:37]Write i2c OK [23:27:37]MH_I2C_Read... [23:27:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:27:37]Read from MH i2c: E2 [23:27:37]MH_I2C_Read... [23:27:37]Read from MH i2c: E2 17 00 [23:27:37]MH_I2C_Read... [23:27:37]Read from MH i2c: E2 17 00 AB 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 DE [23:27:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [23:27:37]wFMCommunicate OK [23:27:37]requested_item fd.num is exist - process it [23:27:37]SAM_PROTO_GetFieldsCounters [23:27:37]wFMCommunicate request_size=4 [23:27:37]MH_SAM_APDU [23:27:37]CAPDU: 80 13 00 00 [23:27:37]Write to MH i2c: E2 08 00 AC 5B 80 13 00 00 00 00 00 00 83 [23:27:37]Write i2c OK [23:27:37]MH_I2C_Read... [23:27:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:27:37]Read from MH i2c: E2 [23:27:37]MH_I2C_Read... [23:27:37]Read from MH i2c: E2 62 00 [23:27:37]MH_I2C_Read... [23:27:37]Read from MH i2c: E2 62 00 AC 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 03 E2 01 00 0E 04 04 00 43 01 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 CC [23:27: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 03 E2 01 00 0E 04 04 00 43 01 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 [23:27:37]wFMCommunicate OK [23:27:37]SAM_PROTO_GetFieldsCounters done [23:27:37]requested_item shift.num is exist - process it [23:27:37]requested_item shift.opened is exist - process it [23:27:37]req_shift_opened [23:27:37]FM_GetShiftState [23:27:37]SAM_PROTO_GetShiftState [23:27:37]wFMCommunicate request_size=4 [23:27:37]MH_SAM_APDU [23:27:37]CAPDU: 80 13 01 00 [23:27:37]Write to MH i2c: E2 08 00 AD 5B 80 13 01 00 00 00 00 00 85 [23:27:37]Write i2c OK [23:27:37]MH_I2C_Read... [23:27:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:27:37]Read from MH i2c: E2 [23:27:37]MH_I2C_Read... [23:27:37]Read from MH i2c: E2 0E 00 [23:27:37]MH_I2C_Read... [23:27:37]Read from MH i2c: E2 0E 00 AD 5B 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 47 [23:27:37]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [23:27:37]wFMCommunicate OK [23:27:37]SAM_PROTO_GetShiftState done [23:27:37]FM_GetShiftState done [23:27:37]req_shift_opened done [23:27:37]requested_item shift.open_date is exist - process it [23:27:37]req_shift_open_date [23:27:37]req_shift_open_date done [23:27:37]produce_requested_data done [23:27:37]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123395,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [23:27:37]process_action_free close_receipt [23:27:37]json_value_free [23:27:37]json_value_free done [23:27:37]process_json_proto returns [23:27:37]Send response to host [23:27:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123395,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [23:27:37]free response buf [23:27:37]execute_script done [23:27:37]execute_script returns [23:27:37]free content buf [23:27:37]Sock 9.Close socket [23:27:37]Sock 9.Thread stoped [23:27:39]OFD Sender: No OFD packet to send [23:27:44]OFD Sender: No OFD packet to send [23:27:49]OFD Sender: No OFD packet to send [23:27:55]OFD Sender: No OFD packet to send [23:28:00]OFD Sender: No OFD packet to send [23:28:05]OFD Sender: No OFD packet to send [23:28:10]OFD Sender: No OFD packet to send [23:28:15]OFD Sender: No OFD packet to send [23:28:20]OFD Sender: No OFD packet to send [23:28:25]OFD Sender: No OFD packet to send [23:28:30]OFD Sender: No OFD packet to send [23:28:35]OFD Sender: No OFD packet to send [23:28:40]OFD Sender: No OFD packet to send [23:28:45]OFD Sender: No OFD packet to send [23:28:50]OFD Sender: No OFD packet to send [23:28:55]OFD Sender: No OFD packet to send [23:29:00]OFD Sender: No OFD packet to send [23:29:05]OFD Sender: No OFD packet to send [23:29:10]OFD Sender: No OFD packet to send [23:29:15]OFD Sender: No OFD packet to send [23:29:20]OFD Sender: No OFD packet to send [23:29:25]OFD Sender: No OFD packet to send [23:29:30]OFD Sender: No OFD packet to send [23:29:35]OFD Sender: No OFD packet to send [23:29:40]OFD Sender: No OFD packet to send [23:29:45]OFD Sender: No OFD packet to send [23:29:50]OFD Sender: No OFD packet to send [23:29:55]OFD Sender: No OFD packet to send [23:30:00]OFD Sender: No OFD packet to send [23:30:05]OFD Sender: No OFD packet to send [23:30:10]OFD Sender: No OFD packet to send [23:30:15]OFD Sender: No OFD packet to send [23:30:20]OFD Sender: No OFD packet to send [23:30:25]OFD Sender: No OFD packet to send [23:30:30]OFD Sender: No OFD packet to send [23:30:35]OFD Sender: No OFD packet to send [23:30:40]OFD Sender: No OFD packet to send [23:30:45]OFD Sender: No OFD packet to send [23:30:50]OFD Sender: No OFD packet to send [23:30:55]OFD Sender: No OFD packet to send [23:31:00]OFD Sender: No OFD packet to send [23:31:05]OFD Sender: No OFD packet to send [23:31:10]OFD Sender: No OFD packet to send [23:31:15]OFD Sender: No OFD packet to send [23:31:20]OFD Sender: No OFD packet to send [23:31:25]OFD Sender: No OFD packet to send [23:31:30]OFD Sender: No OFD packet to send [23:31:35]OFD Sender: No OFD packet to send [23:31:40]OFD Sender: No OFD packet to send [23:31:45]OFD Sender: No OFD packet to send [23:31:50]OFD Sender: No OFD packet to send [23:31:55]OFD Sender: No OFD packet to send [23:32:00]OFD Sender: No OFD packet to send [23:32:05]OFD Sender: No OFD packet to send [23:32:10]OFD Sender: No OFD packet to send [23:32:15]OFD Sender: No OFD packet to send [23:32:20]OFD Sender: No OFD packet to send [23:32:25]OFD Sender: No OFD packet to send [23:32:30]OFD Sender: No OFD packet to send [23:32:35]OFD Sender: No OFD packet to send [23:32:40]OFD Sender: No OFD packet to send [23:32:45]OFD Sender: No OFD packet to send [23:32:50]OFD Sender: No OFD packet to send [23:32:55]OFD Sender: No OFD packet to send [23:33:00]OFD Sender: No OFD packet to send [23:33:05]OFD Sender: No OFD packet to send [23:33:10]OFD Sender: No OFD packet to send [23:33:15]OFD Sender: No OFD packet to send [23:33:20]OFD Sender: No OFD packet to send [23:33:25]OFD Sender: No OFD packet to send [23:33:30]OFD Sender: No OFD packet to send [23:33:35]OFD Sender: No OFD packet to send [23:33:40]OFD Sender: No OFD packet to send [23:33:45]OFD Sender: No OFD packet to send [23:33:50]OFD Sender: No OFD packet to send [23:33:55]OFD Sender: No OFD packet to send [23:34:00]OFD Sender: No OFD packet to send [23:34:05]OFD Sender: No OFD packet to send [23:34:10]OFD Sender: No OFD packet to send [23:34:15]OFD Sender: No OFD packet to send [23:34:20]OFD Sender: No OFD packet to send [23:34:25]OFD Sender: No OFD packet to send [23:34:30]OFD Sender: No OFD packet to send [23:34:35]OFD Sender: No OFD packet to send [23:34:40]OFD Sender: No OFD packet to send [23:34:45]OFD Sender: No OFD packet to send [23:34:50]OFD Sender: No OFD packet to send [23:34:55]OFD Sender: No OFD packet to send [23:35:00]OFD Sender: No OFD packet to send [23:35:05]OFD Sender: No OFD packet to send [23:35:10]OFD Sender: No OFD packet to send [23:35:15]OFD Sender: No OFD packet to send [23:35:20]OFD Sender: No OFD packet to send [23:35:25]OFD Sender: No OFD packet to send [23:35:30]OFD Sender: No OFD packet to send [23:35:35]OFD Sender: No OFD packet to send [23:35:40]OFD Sender: No OFD packet to send [23:35:45]OFD Sender: No OFD packet to send [23:35:50]OFD Sender: No OFD packet to send [23:35:55]OFD Sender: No OFD packet to send [23:36:00]OFD Sender: No OFD packet to send [23:36:05]OFD Sender: No OFD packet to send [23:36:10]OFD Sender: No OFD packet to send [23:36:15]OFD Sender: No OFD packet to send [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:30]OFD Sender: No OFD packet to send [23:39:35]OFD Sender: No OFD packet to send [23:39:40]OFD Sender: No OFD packet to send [23:39:45]OFD Sender: No OFD packet to send [23:39:50]OFD Sender: No OFD packet to send [23:39:55]OFD Sender: No OFD packet to send [23:40:00]OFD Sender: No OFD packet to send [23:40:01]accept exits with 7 [23:40:01]New connection [23:40:01]New thread 3067252068 created [23:40:01]Thread 3067395428 joined [23:40:01]Waiting for new connection... [23:40:01] Sock 7.Parse request [23:40:01]Sock 7.Check first char [23:40:01]Sock 7.First char is OK [23:40:01]request: POST /json_proto HTTP/1.0 [23:40:01]Method: POST [23:40:01]URL: /json_proto [23:40:01]Method is POST - this is cgi request [23:40:01]url: /json_proto [23:40:01]query_string will be loaded in cgi processing [23:40:01]execute_cgi json_proto POST (null) [23:40:01]execute_cgi path=json_proto method=POST [23:40:01]POST find Content-Length [23:40:01]Host: 172.17.48.197:8080 [23:40:01]Content-Length: 820 [23:40:01]Content-Type: application/json [23:40:01] [23:40:01]POST finish read [23:40:01]Found Content-Length = 820 [23:40:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106382", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.30 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:40:01]execute_script... [23:40: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)1106382", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.30 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:40:01]POST & json_proto [23:40:01]process_json_proto [23:40:01]json parsed OK: [23:40:01]protocol is kg_v1.0 [23:40:01]action value=close_receipt [23:40:01]process_action close_receipt [23:40:01]cmd_close_receipt [23:40:01]MH_GetDate [23:40:01]Write to MH i2c: F0 00 00 AE 5B F8 [23:40:01]Write i2c OK [23:40:01]MH_I2C_Read... [23:40:01]Read from MH i2c: F0 [23:40:01]MH_I2C_Read... [23:40:01]Read from MH i2c: F0 09 00 [23:40:01]MH_I2C_Read... [23:40:01]Read from MH i2c: F0 09 00 AE 5B 00 57 0A E5 65 6C AF E3 65 0F [23:40:01]GetLastDocTimeStamp 1709508457 [23:40:01]current date 1709509207 [23:40:01]FM_GetShiftState [23:40:01]SAM_PROTO_GetShiftState [23:40:01]wFMCommunicate request_size=4 [23:40:01]MH_SAM_APDU [23:40:01]CAPDU: 80 13 01 00 [23:40:01]Write to MH i2c: E2 08 00 AF 5B 80 13 01 00 00 00 00 00 87 [23:40:01]Write i2c OK [23:40:01]MH_I2C_Read... [23:40:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:40:01]Read from MH i2c: E2 [23:40:01]MH_I2C_Read... [23:40:01]Read from MH i2c: E2 0E 00 [23:40:01]MH_I2C_Read... [23:40:01]Read from MH i2c: E2 0E 00 AF 5B 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 49 [23:40:01]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [23:40:01]wFMCommunicate OK [23:40:01]SAM_PROTO_GetShiftState done [23:40:01]FM_GetShiftState done [23:40:01]opened in 1709425579 [23:40:01]opened+sec_in_day 1709511979 [23:40:01]quantity*price = 100030 [23:40:01]sum+1 = 100031 [23:40:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.30 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 0.00 Безнал.: 1000.30 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 253 03.03.2024 23:40 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874798 ФД: 123396 ФПД: 157465106687799 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T234007&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123396&fm=157465106687799&tin=02508201610067®Number=0000000000090573&sum=100030 [23:40:02]StoreToDocumentArchive [23:40:02]shift 323 fd 123396 [23:40:02]save to /storage/0323/doc_00123396 [23:40:02]save last doc name /storage/0323/doc_00123396 to /storage/kkm_last_doc_name [23:40:02]save OK [23:40:02]Clear old archive folders... [23:40:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:40:02]tlvbuf is 00F8D930 [23:40:02]SAM_PROTO_ClearQueue [23:40:02]wFMCommunicate request_size=4 [23:40:02]MH_SAM_APDU [23:40:02]CAPDU: 80 09 00 00 [23:40:02]Write to MH i2c: E2 08 00 BC 5B 80 09 00 00 00 00 00 00 89 [23:40:02]Write i2c OK [23:40:02]MH_I2C_Read... [23:40:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:40:03]Read from MH i2c: E2 [23:40:03]MH_I2C_Read... [23:40:03]Read from MH i2c: E2 03 00 [23:40:03]MH_I2C_Read... [23:40:03]Read from MH i2c: E2 03 00 BC 5B 00 90 00 8B [23:40:03]RAPDU: 90 00 [23:40:03]wFMCommunicate OK [23:40:03]SAM_PROTO_ClearQueue done [23:40:03]KKMCreateOFDPacket [23:40:03]OFDProtocolAddRootSTLVToBuf [23:40:03]FM_MakeSignedData [23:40:03]FM_MakeSignedData [23:40:03]SAM_PROTO_SignData [23:40:03]wFMCommunicate request_size=4 [23:40:03]MH_SAM_APDU [23:40:03]CAPDU: 80 0D 01 02 [23:40:03]Write to MH i2c: E2 08 00 BD 5B 80 0D 01 02 00 00 00 00 91 [23:40:03]Write i2c OK [23:40:03]MH_I2C_Read... [23:40:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:40:03]Read from MH i2c: E2 [23:40:03]MH_I2C_Read... [23:40:03]Read from MH i2c: E2 03 00 [23:40:03]MH_I2C_Read... [23:40:03]Read from MH i2c: E2 03 00 BD 5B 00 90 00 8C [23:40:03]RAPDU: 90 00 [23:40:03]wFMCommunicate OK [23:40:03]wFMCommunicate request_size=255 [23:40:03]MH_SAM_APDU [23:40: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 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 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 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 57 0A E5 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 04 E2 01 00 35 04 06 00 8F [23:40:03]Write to MH i2c: E2 02 01 BE 5B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 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 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 57 0A E5 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 04 E2 01 00 35 04 06 00 8F 00 00 9B [23:40:03]Write i2c OK [23:40:03]MH_I2C_Read... [23:40:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:40:03]Read from MH i2c: E2 [23:40:03]MH_I2C_Read... [23:40:03]Read from MH i2c: E2 03 00 [23:40:03]MH_I2C_Read... [23:40:03]Read from MH i2c: E2 03 00 BE 5B 00 90 00 8D [23:40:03]RAPDU: 90 00 [23:40:03]wFMCommunicate OK [23:40:03]wFMCommunicate request_size=10 [23:40:03]MH_SAM_APDU [23:40:03]CAPDU: 80 0D 02 02 05 36 B3 BF A7 37 [23:40:03]Write to MH i2c: E2 0D 00 BF 5B 80 0D 02 02 05 00 36 B3 BF A7 37 00 00 24 [23:40:03]Write i2c OK [23:40:03]MH_I2C_Read... [23:40:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:40:03]Read from MH i2c: E2 [23:40:03]MH_I2C_Read... [23:40:03]Read from MH i2c: E2 03 00 [23:40:03]MH_I2C_Read... [23:40:03]Read from MH i2c: E2 03 00 BF 5B 00 90 00 8E [23:40:03]RAPDU: 90 00 [23:40:03]wFMCommunicate OK [23:40:03]wFMCommunicate request_size=4 [23:40:03]MH_SAM_APDU [23:40:03]CAPDU: 80 0D 03 02 [23:40:03]Write to MH i2c: E2 08 00 C0 5B 80 0D 03 02 00 00 00 00 96 [23:40:03]Write i2c OK [23:40:03]MH_I2C_Read... [23:40:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:40:03]Read from MH i2c: E2 [23:40:03]MH_I2C_Read... [23:40:03]Read from MH i2c: E2 0B 00 [23:40:03]MH_I2C_Read... [23:40:03]Read from MH i2c: E2 0B 00 C0 5B 00 7E 9C F8 FC 6B 73 0F 81 90 00 13 [23:40:03]RAPDU: 7E 9C F8 FC 6B 73 0F 81 90 00 [23:40:03]wFMCommunicate OK [23:40:03]SAM_PROTO_SignData done [23:40:03]FM_MakeSignedData done [23:40:03]CreateOFDProtocolMessage [23:40:03]wFMCommunicate request_size=4 [23:40:03]MH_SAM_APDU [23:40:03]CAPDU: 80 11 00 00 [23:40:03]Write to MH i2c: E2 08 00 C1 5B 80 11 00 00 00 00 00 00 96 [23:40:03]Write i2c OK [23:40:03]MH_I2C_Read... [23:40:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:40:03]Read from MH i2c: E2 [23:40:03]MH_I2C_Read... [23:40:03]Read from MH i2c: E2 17 00 [23:40:03]MH_I2C_Read... [23:40:03]Read from MH i2c: E2 17 00 C1 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 F4 [23:40:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [23:40:03]wFMCommunicate OK [23:40:03]CreateOFDProtocolMessage done [23:40:03]OFDSenderStorePacket 123396 [23:40:03]StoreOFDPacket docnum=123396 [23:40:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 52 F5 07 01 6C 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 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 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 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 57 0A E5 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 04 E2 01 00 35 04 06 00 8F 36 B3 BF A7 37 7E 9C F8 FC 6B 73 0F 81 [23:40:03]CheckFolder [23:40:03]dirname=/storage/ofd_packets [23:40:03]CheckFolder done [23:40:03]ProducePacketName [23:40:03]name=ofd_packets/00123396 [23:40:03]NVStorageSaveData ofd_packets/00123396 [23:40:03]File name is /storage/ofd_packets/00123396 [23:40:03]Write 301 bytes [23:40:03]NVStorageSaveData done [23:40:03]OFDSenderStorePacket done [23:40:03]KKMCreateOFDPacket done [23:40:03]NVStorageSaveData kkm_last_timestamp [23:40:03]File name is /storage/kkm_last_timestamp [23:40:03]Write 4 bytes [23:40:03]NVStorageSaveData done [23:40:03]ExternCall_PrintAddStr [23:40:03]wPrintStart [23:40:03]Write to MH i2c: 01 00 00 C2 5B 1D [23:40:03]Write i2c OK [23:40:03]MH_I2C_Read... [23:40:03]Read from MH i2c: 01 [23:40:03]MH_I2C_Read... [23:40:03]Read from MH i2c: 01 07 00 [23:40:03]MH_I2C_Read... [23:40:03]Read from MH i2c: 01 07 00 C2 5B 00 00 00 00 00 FF 0F 32 [23:40:03]RasterBufferAndPrint [23:40:03]line Счет N : (1)1106382 [23:40:03]line ИНН: 02508201610067 [23:40:03]line Контрольно-Кассовый Чек [23:40:03]line ПРОДАЖА [23:40:03]line ТРК (МРК, ГНК) : 21 [23:40:03]line Товар: 2710124130 [23:40:03]line Аи-92-К-5 [23:40:03]line 16.160 * 61.90 [23:40:03]line = 1000.30 [23:40:03]line НДС 12% НСП 1% [23:40:03]line > о реализуемом товаре [23:40:03]line ИТОГО: 1000.30 [23:40:03]line НСП 1% : 8.85 [23:40:03]line НДС 12% : 106.23 [23:40:03]line Наличными: 0.00 [23:40:03]line Безнал.: 1000.30 [23:40:03]line Место: АЗС № 25 "Партнер Нефть" [23:40:03]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [23:40:03]line СНО: Общий режим [23:40:03]line Чек 253 03.03.2024 23:40 [23:40:03]line Смена: 323 ФФД: 1.0 [23:40:03]line ЗНМ: 0300000019 [23:40:03]line РНМ: 0000000000090573 [23:40:03]line Версия ККМ: 001 [23:40:03]line Платежная система: Бакай Банк [23:40:03]line ФМ: 0000000000874798 [23:40:03]line ФД: 123396 [23:40:03]line ФПД: 157465106687799 [23:40:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T234007&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123396&fm=157465106687799&tin=02508201610067®Number=0000000000090573&sum=100030 [23:40:03]written 0, free lines is 4095 [23:40:03]OFD Sender: Processing packet 123396 [packets to send 112, broken 111] [23:40:03]ProducePacketName [23:40:03]name=ofd_packets/00123396 [23:40:03]OFD Sender: To server: pG, [23:40:03]CommunicateWithHost lk.salyk.kg:30040 [23:40:03]ConnectInit lk.salyk.kg [23:40:03]Connected sock=10 [23:40: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 37 39 38 0F 01 00 00 52 F5 07 01 6C 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 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 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 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 57 0A E5 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 04 E2 01 00 35 04 06 00 8F 36 B3 BF A7 37 7E 9C F8 FC 6B 73 0F 81 [23:40:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 9D 55 47 00 5A 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 37 39 38 10 04 04 00 04 E2 01 00 F4 03 04 00 81 B6 E4 65 B6 04 01 00 00 01 0E 32 1A 2C 71 7F F2 [23:40:04]CommunicateWithHost err = 0 [23:40:04]CheckOFDResponse [23:40:04]1017 (14) - 77093643461234 [23:40:04]1041 (16) - 0000000000874798 [23:40:04]1040 (4) - 123396 [23:40:04]1012 (4) - 03.03.2024 17:42 [23:40:04]1206 (1) - 0 [23:40:04]OFD Sender: Remove packet 123396 [23:40:04]ProducePacketName [23:40:04]name=ofd_packets/00123396 [23:40:04]NVStorageDeleteData [23:40:04]Write to MH i2c: 01 00 00 EC 5B 47 [23:40:04]Write i2c OK [23:40:04]MH_I2C_Read... [23:40:04]Read from MH i2c: 01 [23:40:04]MH_I2C_Read... [23:40:04]Read from MH i2c: 01 07 00 [23:40:04]MH_I2C_Read... [23:40:04]Read from MH i2c: 01 07 00 EC 5B 00 00 00 00 00 04 0D 5F [23:40:04]RasterBufferAndPrint [23:40:04]line [23:40:04]line [23:40:04]line [23:40:04]line [23:40:04]line [23:40:04]written 0, free lines is 3341 [23:40:04]MH_Cut [23:40:04]Write to MH i2c: D1 01 00 F3 5B 01 20 [23:40:04]Write i2c OK [23:40:04]MH_I2C_Read... [23:40:04]Read from MH i2c: D1 [23:40:04]MH_I2C_Read... [23:40:04]Read from MH i2c: D1 01 00 [23:40:04]MH_I2C_Read... [23:40:04]Read from MH i2c: D1 01 00 F3 5B 00 1F [23:40:04]Write to MH i2c: 01 00 00 F4 5B 4F [23:40:04]Write i2c OK [23:40:04]MH_I2C_Read... [23:40:04]OFD Sender: No OFD packet to send [23:40:04]*** Cut start [23:40:04]*** Purtial cut [23:40:04]*** Stage 1: CUTSNS_PIN = 1 [23:40:06]Read from MH i2c: 01 [23:40:06]MH_I2C_Read... [23:40:06]*** Stop cut motor [23:40:06]*** Cut end [23:40:06]Read from MH i2c: 01 07 00 [23:40:06]MH_I2C_Read... [23:40:06]Read from MH i2c: 01 07 00 F4 5B 00 00 00 00 00 FF 0F 64 [23:40:06]process_action close_receipt done [23:40:06]requested_data is exist [23:40:06]produce_requested_data [23:40:06]requested_item fm.sn is exist - process it [23:40:06]wFMCommunicate request_size=4 [23:40:06]MH_SAM_APDU [23:40:06]CAPDU: 80 11 00 00 [23:40:06]Write to MH i2c: E2 08 00 F5 5B 80 11 00 00 00 00 00 00 CA [23:40:06]Write i2c OK [23:40:06]MH_I2C_Read... [23:40:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:40:07]Read from MH i2c: E2 [23:40:07]MH_I2C_Read... [23:40:07]Read from MH i2c: E2 17 00 [23:40:07]MH_I2C_Read... [23:40:07]Read from MH i2c: E2 17 00 F5 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 28 [23:40:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [23:40:07]wFMCommunicate OK [23:40:07]requested_item fd.num is exist - process it [23:40:07]SAM_PROTO_GetFieldsCounters [23:40:07]wFMCommunicate request_size=4 [23:40:07]MH_SAM_APDU [23:40:07]CAPDU: 80 13 00 00 [23:40:07]Write to MH i2c: E2 08 00 F6 5B 80 13 00 00 00 00 00 00 CD [23:40:07]Write i2c OK [23:40:07]MH_I2C_Read... [23:40:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:40:07]Read from MH i2c: E2 [23:40:07]MH_I2C_Read... [23:40:07]Read from MH i2c: E2 62 00 [23:40:07]MH_I2C_Read... [23:40:07]Read from MH i2c: E2 62 00 F6 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 04 E2 01 00 0E 04 04 00 43 01 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 1A [23:40: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 04 E2 01 00 0E 04 04 00 43 01 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 [23:40:07]wFMCommunicate OK [23:40:07]SAM_PROTO_GetFieldsCounters done [23:40:07]requested_item shift.num is exist - process it [23:40:07]requested_item shift.opened is exist - process it [23:40:07]req_shift_opened [23:40:07]FM_GetShiftState [23:40:07]SAM_PROTO_GetShiftState [23:40:07]wFMCommunicate request_size=4 [23:40:07]MH_SAM_APDU [23:40:07]CAPDU: 80 13 01 00 [23:40:07]Write to MH i2c: E2 08 00 F7 5B 80 13 01 00 00 00 00 00 CF [23:40:07]Write i2c OK [23:40:07]MH_I2C_Read... [23:40:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:40:07]Read from MH i2c: E2 [23:40:07]MH_I2C_Read... [23:40:07]Read from MH i2c: E2 0E 00 [23:40:07]MH_I2C_Read... [23:40:07]Read from MH i2c: E2 0E 00 F7 5B 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 91 [23:40:07]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [23:40:07]wFMCommunicate OK [23:40:07]SAM_PROTO_GetShiftState done [23:40:07]FM_GetShiftState done [23:40:07]req_shift_opened done [23:40:07]requested_item shift.open_date is exist - process it [23:40:07]req_shift_open_date [23:40:07]req_shift_open_date done [23:40:07]produce_requested_data done [23:40:07]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123396,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [23:40:07]process_action_free close_receipt [23:40:07]json_value_free [23:40:07]json_value_free done [23:40:07]process_json_proto returns [23:40:07]Send response to host [23:40:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123396,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [23:40:07]free response buf [23:40:07]execute_script done [23:40:07]execute_script returns [23:40:07]free content buf [23:40:07]Sock 7.Close socket [23:40:07]Sock 7.Thread stoped [23:40:09]OFD Sender: No OFD packet to send [23:40:14]OFD Sender: No OFD packet to send [23:40:19]OFD Sender: No OFD packet to send [23:40:24]OFD Sender: No OFD packet to send [23:40:29]OFD Sender: No OFD packet to send [23:40:34]OFD Sender: No OFD packet to send [23:40:39]OFD Sender: No OFD packet to send [23:40:44]OFD Sender: No OFD packet to send [23:40:49]OFD Sender: No OFD packet to send [23:40:54]OFD Sender: No OFD packet to send [23:40:59]OFD Sender: No OFD packet to send [23:41:04]OFD Sender: No OFD packet to send [23:41:09]OFD Sender: No OFD packet to send [23:41:14]OFD Sender: No OFD packet to send [23:41:15]accept exits with 9 [23:41:15]New connection [23:41:15]New thread 3067395428 created [23:41:15]Thread 3067252068 joined [23:41:15]Waiting for new connection... [23:41:15] Sock 9.Parse request [23:41:15]Sock 9.Check first char [23:41:15]Sock 9.First char is OK [23:41:15]request: POST /json_proto HTTP/1.0 [23:41:15]Method: POST [23:41:15]URL: /json_proto [23:41:15]Method is POST - this is cgi request [23:41:15]url: /json_proto [23:41:15]query_string will be loaded in cgi processing [23:41:15]execute_cgi json_proto POST (null) [23:41:15]execute_cgi path=json_proto method=POST [23:41:15]POST find Content-Length [23:41:15]Host: 172.17.48.197:8080 [23:41:15]Content-Length: 809 [23:41:15]Content-Type: application/json [23:41:15] [23:41:15]POST finish read [23:41:15]Found Content-Length = 809 [23:41:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106383", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:41:15]execute_script... [23:41: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)1106383", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:41:15]POST & json_proto [23:41:15]process_json_proto [23:41:15]json parsed OK: [23:41:15]protocol is kg_v1.0 [23:41:15]action value=close_receipt [23:41:15]process_action close_receipt [23:41:15]cmd_close_receipt [23:41:15]MH_GetDate [23:41:15]Write to MH i2c: F0 00 00 F8 5B 42 [23:41:15]Write i2c OK [23:41:15]MH_I2C_Read... [23:41:15]Read from MH i2c: F0 [23:41:15]MH_I2C_Read... [23:41:15]Read from MH i2c: F0 09 00 [23:41:15]MH_I2C_Read... [23:41:15]Read from MH i2c: F0 09 00 F8 5B 00 A0 0A E5 65 6C AF E3 65 A2 [23:41:15]GetLastDocTimeStamp 1709509207 [23:41:15]current date 1709509280 [23:41:15]FM_GetShiftState [23:41:15]SAM_PROTO_GetShiftState [23:41:15]wFMCommunicate request_size=4 [23:41:15]MH_SAM_APDU [23:41:15]CAPDU: 80 13 01 00 [23:41:15]Write to MH i2c: E2 08 00 F9 5B 80 13 01 00 00 00 00 00 D1 [23:41:15]Write i2c OK [23:41:15]MH_I2C_Read... [23:41:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:41:15]Read from MH i2c: E2 [23:41:15]MH_I2C_Read... [23:41:15]Read from MH i2c: E2 0E 00 [23:41:15]MH_I2C_Read... [23:41:15]Read from MH i2c: E2 0E 00 F9 5B 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 93 [23:41:15]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [23:41:15]wFMCommunicate OK [23:41:15]SAM_PROTO_GetShiftState done [23:41:15]FM_GetShiftState done [23:41:15]opened in 1709425579 [23:41:15]opened+sec_in_day 1709511979 [23:41:15]quantity*price = 100010 [23:41:15]sum+1 = 100012 [23:41:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.11 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.11 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 254 03.03.2024 23:41 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874798 ФД: 123397 ФПД: 226417979861797 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T234120&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123397&fm=226417979861797&tin=02508201610067®Number=0000000000090573&sum=100011 [23:41:16]StoreToDocumentArchive [23:41:16]shift 323 fd 123397 [23:41:16]save to /storage/0323/doc_00123397 [23:41:16]save last doc name /storage/0323/doc_00123397 to /storage/kkm_last_doc_name [23:41:16]save OK [23:41:16]Clear old archive folders... [23:41:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:41:16]tlvbuf is B6FC4520 [23:41:16]SAM_PROTO_ClearQueue [23:41:16]wFMCommunicate request_size=4 [23:41:16]MH_SAM_APDU [23:41:16]CAPDU: 80 09 00 00 [23:41:16]Write to MH i2c: E2 08 00 06 5C 80 09 00 00 00 00 00 00 D4 [23:41:16]Write i2c OK [23:41:16]MH_I2C_Read... [23:41:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:41:16]Read from MH i2c: E2 [23:41:16]MH_I2C_Read... [23:41:16]Read from MH i2c: E2 03 00 [23:41:16]MH_I2C_Read... [23:41:16]Read from MH i2c: E2 03 00 06 5C 00 90 00 D6 [23:41:16]RAPDU: 90 00 [23:41:16]wFMCommunicate OK [23:41:16]SAM_PROTO_ClearQueue done [23:41:16]KKMCreateOFDPacket [23:41:16]OFDProtocolAddRootSTLVToBuf [23:41:16]FM_MakeSignedData [23:41:16]FM_MakeSignedData [23:41:16]SAM_PROTO_SignData [23:41:16]wFMCommunicate request_size=4 [23:41:16]MH_SAM_APDU [23:41:16]CAPDU: 80 0D 01 02 [23:41:16]Write to MH i2c: E2 08 00 07 5C 80 0D 01 02 00 00 00 00 DC [23:41:16]Write i2c OK [23:41:16]MH_I2C_Read... [23:41:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:41:16]Read from MH i2c: E2 [23:41:16]MH_I2C_Read... [23:41:16]Read from MH i2c: E2 03 00 [23:41:16]MH_I2C_Read... [23:41:16]Read from MH i2c: E2 03 00 07 5C 00 90 00 D7 [23:41:16]RAPDU: 90 00 [23:41:16]wFMCommunicate OK [23:41:16]wFMCommunicate request_size=255 [23:41:16]MH_SAM_APDU [23:41: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 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 A0 0A E5 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 05 E2 01 00 35 04 06 00 CD [23:41:16]Write to MH i2c: E2 02 01 08 5C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 A0 0A E5 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 05 E2 01 00 35 04 06 00 CD 00 00 42 [23:41:16]Write i2c OK [23:41:16]MH_I2C_Read... [23:41:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:41:16]Read from MH i2c: E2 [23:41:16]MH_I2C_Read... [23:41:16]Read from MH i2c: E2 03 00 [23:41:16]MH_I2C_Read... [23:41:16]Read from MH i2c: E2 03 00 08 5C 00 90 00 D8 [23:41:16]RAPDU: 90 00 [23:41:16]wFMCommunicate OK [23:41:16]wFMCommunicate request_size=10 [23:41:16]MH_SAM_APDU [23:41:16]CAPDU: 80 0D 02 02 05 ED 0B 42 AB 25 [23:41:16]Write to MH i2c: E2 0D 00 09 5C 80 0D 02 02 05 00 ED 0B 42 AB 25 00 00 F3 [23:41:16]Write i2c OK [23:41:16]MH_I2C_Read... [23:41:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:41:16]Read from MH i2c: E2 [23:41:16]MH_I2C_Read... [23:41:16]Read from MH i2c: E2 03 00 [23:41:16]MH_I2C_Read... [23:41:16]Read from MH i2c: E2 03 00 09 5C 00 90 00 D9 [23:41:16]RAPDU: 90 00 [23:41:16]wFMCommunicate OK [23:41:16]wFMCommunicate request_size=4 [23:41:16]MH_SAM_APDU [23:41:16]CAPDU: 80 0D 03 02 [23:41:16]Write to MH i2c: E2 08 00 0A 5C 80 0D 03 02 00 00 00 00 E1 [23:41:16]Write i2c OK [23:41:16]MH_I2C_Read... [23:41:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:41:16]Read from MH i2c: E2 [23:41:16]MH_I2C_Read... [23:41:16]Read from MH i2c: E2 0B 00 [23:41:16]MH_I2C_Read... [23:41:16]Read from MH i2c: E2 0B 00 0A 5C 00 81 25 31 E3 6A 35 0F 30 90 00 7A [23:41:16]RAPDU: 81 25 31 E3 6A 35 0F 30 90 00 [23:41:16]wFMCommunicate OK [23:41:16]SAM_PROTO_SignData done [23:41:16]FM_MakeSignedData done [23:41:16]CreateOFDProtocolMessage [23:41:16]wFMCommunicate request_size=4 [23:41:16]MH_SAM_APDU [23:41:16]CAPDU: 80 11 00 00 [23:41:16]Write to MH i2c: E2 08 00 0B 5C 80 11 00 00 00 00 00 00 E1 [23:41:16]Write i2c OK [23:41:16]MH_I2C_Read... [23:41:16]*** 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 0B 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 3F [23:41:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [23:41:16]wFMCommunicate OK [23:41:16]CreateOFDProtocolMessage done [23:41:16]OFDSenderStorePacket 123397 [23:41:16]StoreOFDPacket docnum=123397 [23:41:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 73 63 07 01 91 3A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 A0 0A E5 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 05 E2 01 00 35 04 06 00 CD ED 0B 42 AB 25 81 25 31 E3 6A 35 0F 30 [23:41:16]CheckFolder [23:41:16]dirname=/storage/ofd_packets [23:41:16]CheckFolder done [23:41:16]ProducePacketName [23:41:16]name=ofd_packets/00123397 [23:41:16]NVStorageSaveData ofd_packets/00123397 [23:41:16]File name is /storage/ofd_packets/00123397 [23:41:16]Write 301 bytes [23:41:16]NVStorageSaveData done [23:41:16]OFDSenderStorePacket done [23:41:16]KKMCreateOFDPacket done [23:41:16]NVStorageSaveData kkm_last_timestamp [23:41:16]File name is /storage/kkm_last_timestamp [23:41:16]Write 4 bytes [23:41:16]NVStorageSaveData done [23:41:16]ExternCall_PrintAddStr [23:41:16]wPrintStart [23:41:16]Write to MH i2c: 01 00 00 0C 5C 68 [23:41:16]Write i2c OK [23:41:16]MH_I2C_Read... [23:41:16]Read from MH i2c: 01 [23:41:16]MH_I2C_Read... [23:41:16]Read from MH i2c: 01 07 00 [23:41:16]MH_I2C_Read... [23:41:16]Read from MH i2c: 01 07 00 0C 5C 00 00 00 00 00 FF 0F 7D [23:41:16]RasterBufferAndPrint [23:41:16]line Счет N : (1)1106383 [23:41:16]line ИНН: 02508201610067 [23:41:16]line Контрольно-Кассовый Чек [23:41:16]line ПРОДАЖА [23:41:16]line ТРК (МРК, ГНК) : 53 [23:41:16]line Товар: 2710124500 [23:41:16]line Аи-95-К-5 [23:41:16]line 14.390 * 69.50 [23:41:16]line = 1000.11 [23:41:16]line НДС 12% НСП 1% [23:41:16]line > о реализуемом товаре [23:41:16]line ИТОГО: 1000.11 [23:41:16]line НСП 1% : 8.85 [23:41:16]line НДС 12% : 106.21 [23:41:16]line Наличными: 0.00 [23:41:16]line Безнал.: 1000.11 [23:41:16]line Место: АЗС № 25 "Партнер Нефть" [23:41:16]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [23:41:16]line СНО: Общий режим [23:41:16]line Чек 254 03.03.2024 23:41 [23:41:16]line Смена: 323 ФФД: 1.0 [23:41:16]line ЗНМ: 0300000019 [23:41:16]line РНМ: 0000000000090573 [23:41:16]line Версия ККМ: 001 [23:41:16]line Платежная система: О! деньги [23:41:16]line ФМ: 0000000000874798 [23:41:16]line ФД: 123397 [23:41:16]line ФПД: 226417979861797 [23:41:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T234120&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123397&fm=226417979861797&tin=02508201610067®Number=0000000000090573&sum=100011 [23:41:17]OFD Sender: Processing packet 123397 [packets to send 112, broken 111] [23:41:17]ProducePacketName [23:41:17]name=ofd_packets/00123397 [23:41:17]OFD Sender: To server: pG, [23:41:17]CommunicateWithHost lk.salyk.kg:30040 [23:41:17]ConnectInit lk.salyk.kg [23:41:17]written 0, free lines is 4095 [23:41:17]Connected sock=10 [23:41: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 37 39 38 0F 01 00 00 73 63 07 01 91 3A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 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 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 A0 0A E5 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 05 E2 01 00 35 04 06 00 CD ED 0B 42 AB 25 81 25 31 E3 6A 35 0F 30 [23:41:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 66 DC 47 00 C1 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 05 E2 01 00 F4 03 04 00 CB B6 E4 65 B6 04 01 00 00 82 55 B7 B5 69 CB D0 50 [23:41:17]CommunicateWithHost err = 0 [23:41:17]CheckOFDResponse [23:41:17]1017 (14) - 77093643461234 [23:41:17]1041 (16) - 0000000000874798 [23:41:17]1040 (4) - 123397 [23:41:17]1012 (4) - 03.03.2024 17:43 [23:41:17]1206 (1) - 0 [23:41:17]OFD Sender: Remove packet 123397 [23:41:17]ProducePacketName [23:41:17]name=ofd_packets/00123397 [23:41:17]NVStorageDeleteData [23:41:17]Write to MH i2c: 01 00 00 36 5C 92 [23:41:17]Write i2c OK [23:41:17]MH_I2C_Read... [23:41:17]Read from MH i2c: 01 [23:41:17]MH_I2C_Read... [23:41:17]Read from MH i2c: 01 07 00 [23:41:17]MH_I2C_Read... [23:41:17]Read from MH i2c: 01 07 00 36 5C 00 00 00 00 00 02 0D A8 [23:41:17]RasterBufferAndPrint [23:41:17]line [23:41:17]line [23:41:17]line [23:41:17]line [23:41:17]line [23:41:17]written 0, free lines is 3336 [23:41:17]MH_Cut [23:41:17]Write to MH i2c: D1 01 00 3D 5C 01 6B [23:41:17]Write i2c OK [23:41:17]MH_I2C_Read... [23:41:17]Read from MH i2c: D1 [23:41:17]MH_I2C_Read... [23:41:17]Read from MH i2c: D1 01 00 [23:41:17]MH_I2C_Read... [23:41:17]Read from MH i2c: D1 01 00 3D 5C 00 6A [23:41:17]Write to MH i2c: 01 00 00 3E 5C 9A [23:41:17]Write i2c OK [23:41:17]MH_I2C_Read... [23:41:18]OFD Sender: No OFD packet to send [23:41:18]*** Cut start [23:41:18]*** Purtial cut [23:41:18]*** Stage 1: CUTSNS_PIN = 1 [23:41:20]Read from MH i2c: 01 [23:41:20]MH_I2C_Read... [23:41:20]*** Stop cut motor [23:41:20]*** Cut end [23:41:20]Read from MH i2c: 01 07 00 [23:41:20]MH_I2C_Read... [23:41:20]Read from MH i2c: 01 07 00 3E 5C 00 00 00 00 00 FF 0F AF [23:41:20]process_action close_receipt done [23:41:20]requested_data is exist [23:41:20]produce_requested_data [23:41:20]requested_item fm.sn is exist - process it [23:41:20]wFMCommunicate request_size=4 [23:41:20]MH_SAM_APDU [23:41:20]CAPDU: 80 11 00 00 [23:41:20]Write to MH i2c: E2 08 00 3F 5C 80 11 00 00 00 00 00 00 15 [23:41:20]Write i2c OK [23:41:20]MH_I2C_Read... [23:41:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:41:20]Read from MH i2c: E2 [23:41:20]MH_I2C_Read... [23:41:20]Read from MH i2c: E2 17 00 [23:41:20]MH_I2C_Read... [23:41:20]Read from MH i2c: E2 17 00 3F 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 73 [23:41:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [23:41:20]wFMCommunicate OK [23:41:20]requested_item fd.num is exist - process it [23:41:20]SAM_PROTO_GetFieldsCounters [23:41:20]wFMCommunicate request_size=4 [23:41:20]MH_SAM_APDU [23:41:20]CAPDU: 80 13 00 00 [23:41:20]Write to MH i2c: E2 08 00 40 5C 80 13 00 00 00 00 00 00 18 [23:41:20]Write i2c OK [23:41:20]MH_I2C_Read... [23:41:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:41:20]Read from MH i2c: E2 [23:41:20]MH_I2C_Read... [23:41:20]Read from MH i2c: E2 62 00 [23:41:20]MH_I2C_Read... [23:41:20]Read from MH i2c: E2 62 00 40 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 05 E2 01 00 0E 04 04 00 43 01 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 69 [23:41: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 05 E2 01 00 0E 04 04 00 43 01 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 [23:41:20]wFMCommunicate OK [23:41:20]SAM_PROTO_GetFieldsCounters done [23:41:20]requested_item shift.num is exist - process it [23:41:20]requested_item shift.opened is exist - process it [23:41:20]req_shift_opened [23:41:20]FM_GetShiftState [23:41:20]SAM_PROTO_GetShiftState [23:41:20]wFMCommunicate request_size=4 [23:41:20]MH_SAM_APDU [23:41:20]CAPDU: 80 13 01 00 [23:41:20]Write to MH i2c: E2 08 00 41 5C 80 13 01 00 00 00 00 00 1A [23:41:20]Write i2c OK [23:41:20]MH_I2C_Read... [23:41:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:41:20]Read from MH i2c: E2 [23:41:20]MH_I2C_Read... [23:41:20]Read from MH i2c: E2 0E 00 [23:41:20]MH_I2C_Read... [23:41:20]Read from MH i2c: E2 0E 00 41 5C 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 DC [23:41:20]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [23:41:20]wFMCommunicate OK [23:41:20]SAM_PROTO_GetShiftState done [23:41:20]FM_GetShiftState done [23:41:20]req_shift_opened done [23:41:20]requested_item shift.open_date is exist - process it [23:41:20]req_shift_open_date [23:41:20]req_shift_open_date done [23:41:20]produce_requested_data done [23:41:20]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123397,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [23:41:20]process_action_free close_receipt [23:41:20]json_value_free [23:41:20]json_value_free done [23:41:20]process_json_proto returns [23:41:20]Send response to host [23:41:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123397,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [23:41:20]free response buf [23:41:20]execute_script done [23:41:20]execute_script returns [23:41:20]free content buf [23:41:20]Sock 9.Close socket [23:41:20]Sock 9.Thread stoped [23:41:23]OFD Sender: No OFD packet to send [23:41:28]OFD Sender: No OFD packet to send [23:41:33]OFD Sender: No OFD packet to send [23:41:38]OFD Sender: No OFD packet to send [23:41:43]OFD Sender: No OFD packet to send [23:41:48]OFD Sender: No OFD packet to send [23:41:53]OFD Sender: No OFD packet to send [23:41:58]OFD Sender: No OFD packet to send [23:42:03]OFD Sender: No OFD packet to send [23:42:08]OFD Sender: No OFD packet to send [23:42:13]OFD Sender: No OFD packet to send [23:42:18]OFD Sender: No OFD packet to send [23:42:23]OFD Sender: No OFD packet to send [23:42:28]OFD Sender: No OFD packet to send [23:42:33]OFD Sender: No OFD packet to send [23:42:38]OFD Sender: No OFD packet to send [23:42:43]OFD Sender: No OFD packet to send [23:42:48]OFD Sender: No OFD packet to send [23:42:52]accept exits with 7 [23:42:52]New connection [23:42:52]New thread 3067252068 created [23:42:52]Thread 3067395428 joined [23:42:52]Waiting for new connection... [23:42:52] Sock 7.Parse request [23:42:52]Sock 7.Check first char [23:42:52]Sock 7.First char is OK [23:42:52]request: POST /json_proto HTTP/1.0 [23:42:52]Method: POST [23:42:52]URL: /json_proto [23:42:52]Method is POST - this is cgi request [23:42:52]url: /json_proto [23:42:52]query_string will be loaded in cgi processing [23:42:52]execute_cgi json_proto POST (null) [23:42:52]execute_cgi path=json_proto method=POST [23:42:52]POST find Content-Length [23:42:52]Host: 172.17.48.197:8080 [23:42:52]Content-Length: 806 [23:42:52]Content-Type: application/json [23:42:52] [23:42:52]POST finish read [23:42:52]Found Content-Length = 806 [23:42:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106384", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 9.700, "sum" : 600.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:42:52]execute_script... [23:42: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)1106384", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 9.700, "sum" : 600.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:42:52]POST & json_proto [23:42:52]process_json_proto [23:42:52]json parsed OK: [23:42:52]protocol is kg_v1.0 [23:42:52]action value=close_receipt [23:42:52]process_action close_receipt [23:42:52]cmd_close_receipt [23:42:52]MH_GetDate [23:42:52]Write to MH i2c: F0 00 00 42 5C 8D [23:42:52]Write i2c OK [23:42:52]MH_I2C_Read... [23:42:52]Read from MH i2c: F0 [23:42:52]MH_I2C_Read... [23:42:52]Read from MH i2c: F0 09 00 [23:42:52]MH_I2C_Read... [23:42:52]Read from MH i2c: F0 09 00 42 5C 00 01 0B E5 65 6C AF E3 65 4F [23:42:52]GetLastDocTimeStamp 1709509280 [23:42:52]current date 1709509377 [23:42:52]FM_GetShiftState [23:42:52]SAM_PROTO_GetShiftState [23:42:52]wFMCommunicate request_size=4 [23:42:52]MH_SAM_APDU [23:42:52]CAPDU: 80 13 01 00 [23:42:52]Write to MH i2c: E2 08 00 43 5C 80 13 01 00 00 00 00 00 1C [23:42:52]Write i2c OK [23:42:52]MH_I2C_Read... [23:42:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:42:52]Read from MH i2c: E2 [23:42:52]MH_I2C_Read... [23:42:52]Read from MH i2c: E2 0E 00 [23:42:52]MH_I2C_Read... [23:42:52]Read from MH i2c: E2 0E 00 43 5C 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 DE [23:42:52]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [23:42:52]wFMCommunicate OK [23:42:52]SAM_PROTO_GetShiftState done [23:42:52]FM_GetShiftState done [23:42:52]opened in 1709425579 [23:42:52]opened+sec_in_day 1709511979 [23:42:52]quantity*price = 60043 [23:42:52]sum+1 = 60044 [23:42:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.43 НСП 1% : 5.31 НДС 12% : 63.76 Наличными: 0.00 Безнал.: 600.43 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 255 03.03.2024 23:42 Смена: 323 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874798 ФД: 123398 ФПД: 280166094609234 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T234257&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123398&fm=280166094609234&tin=02508201610067®Number=0000000000090573&sum=60043 [23:42:53]StoreToDocumentArchive [23:42:53]shift 323 fd 123398 [23:42:53]save to /storage/0323/doc_00123398 [23:42:53]save last doc name /storage/0323/doc_00123398 to /storage/kkm_last_doc_name [23:42:53]save OK [23:42:53]Clear old archive folders... [23:42:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:42:53]tlvbuf is B6FC10E0 [23:42:53]SAM_PROTO_ClearQueue [23:42:53]wFMCommunicate request_size=4 [23:42:53]MH_SAM_APDU [23:42:53]CAPDU: 80 09 00 00 [23:42:53]Write to MH i2c: E2 08 00 50 5C 80 09 00 00 00 00 00 00 1E [23:42:53]Write i2c OK [23:42:53]MH_I2C_Read... [23:42:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:42:53]Read from MH i2c: E2 [23:42:53]MH_I2C_Read... [23:42:53]Read from MH i2c: E2 03 00 [23:42:53]MH_I2C_Read... [23:42:53]Read from MH i2c: E2 03 00 50 5C 00 90 00 20 [23:42:53]RAPDU: 90 00 [23:42:53]wFMCommunicate OK [23:42:53]SAM_PROTO_ClearQueue done [23:42:53]KKMCreateOFDPacket [23:42:53]OFDProtocolAddRootSTLVToBuf [23:42:53]FM_MakeSignedData [23:42:53]FM_MakeSignedData [23:42:53]SAM_PROTO_SignData [23:42:53]wFMCommunicate request_size=4 [23:42:53]MH_SAM_APDU [23:42:53]CAPDU: 80 0D 01 02 [23:42:53]Write to MH i2c: E2 08 00 51 5C 80 0D 01 02 00 00 00 00 26 [23:42:53]Write i2c OK [23:42:53]MH_I2C_Read... [23:42:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:42:53]Read from MH i2c: E2 [23:42:53]MH_I2C_Read... [23:42:53]Read from MH i2c: E2 03 00 [23:42:53]MH_I2C_Read... [23:42:53]Read from MH i2c: E2 03 00 51 5C 00 90 00 21 [23:42:53]RAPDU: 90 00 [23:42:53]wFMCommunicate OK [23:42:53]wFMCommunicate request_size=255 [23:42:53]MH_SAM_APDU [23:42:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 25 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 8B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8B 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 E8 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8B EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 01 0B E5 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 06 E2 01 00 35 04 06 00 FE [23:42:53]Write to MH i2c: E2 02 01 52 5C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 25 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 8B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8B 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 E8 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8B EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 01 0B E5 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 06 E2 01 00 35 04 06 00 FE 00 00 7D [23:42:53]Write i2c OK [23:42:53]MH_I2C_Read... [23:42:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:42:53]Read from MH i2c: E2 [23:42:53]MH_I2C_Read... [23:42:53]Read from MH i2c: E2 03 00 [23:42:53]MH_I2C_Read... [23:42:53]Read from MH i2c: E2 03 00 52 5C 00 90 00 22 [23:42:53]RAPDU: 90 00 [23:42:53]wFMCommunicate OK [23:42:53]wFMCommunicate request_size=10 [23:42:53]MH_SAM_APDU [23:42:53]CAPDU: 80 0D 02 02 05 CF 40 8C 1B 52 [23:42:53]Write to MH i2c: E2 0D 00 53 5C 80 0D 02 02 05 00 CF 40 8C 1B 52 00 00 3B [23:42:53]Write i2c OK [23:42:53]MH_I2C_Read... [23:42:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:42:53]Read from MH i2c: E2 [23:42:53]MH_I2C_Read... [23:42:53]Read from MH i2c: E2 03 00 [23:42:53]MH_I2C_Read... [23:42:53]Read from MH i2c: E2 03 00 53 5C 00 90 00 23 [23:42:53]RAPDU: 90 00 [23:42:53]wFMCommunicate OK [23:42:53]wFMCommunicate request_size=4 [23:42:53]MH_SAM_APDU [23:42:53]CAPDU: 80 0D 03 02 [23:42:53]Write to MH i2c: E2 08 00 54 5C 80 0D 03 02 00 00 00 00 2B [23:42:53]Write i2c OK [23:42:53]MH_I2C_Read... [23:42:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:42:53]Read from MH i2c: E2 [23:42:53]MH_I2C_Read... [23:42:53]Read from MH i2c: E2 0B 00 [23:42:53]MH_I2C_Read... [23:42:53]Read from MH i2c: E2 0B 00 54 5C 00 7C 28 61 F4 E8 8C 7F E5 90 00 FD [23:42:53]RAPDU: 7C 28 61 F4 E8 8C 7F E5 90 00 [23:42:53]wFMCommunicate OK [23:42:53]SAM_PROTO_SignData done [23:42:53]FM_MakeSignedData done [23:42:53]CreateOFDProtocolMessage [23:42:53]wFMCommunicate request_size=4 [23:42:53]MH_SAM_APDU [23:42:53]CAPDU: 80 11 00 00 [23:42:53]Write to MH i2c: E2 08 00 55 5C 80 11 00 00 00 00 00 00 2B [23:42:53]Write i2c OK [23:42:53]MH_I2C_Read... [23:42:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:42:53]Read from MH i2c: E2 [23:42:53]MH_I2C_Read... [23:42:53]Read from MH i2c: E2 17 00 [23:42:53]MH_I2C_Read... [23:42:53]Read from MH i2c: E2 17 00 55 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 89 [23:42:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [23:42:53]wFMCommunicate OK [23:42:53]CreateOFDProtocolMessage done [23:42:53]OFDSenderStorePacket 123398 [23:42:53]StoreOFDPacket docnum=123398 [23:42:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 49 71 07 01 16 E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 25 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 8B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8B 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 E8 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8B EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 01 0B E5 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 06 E2 01 00 35 04 06 00 FE CF 40 8C 1B 52 7C 28 61 F4 E8 8C 7F E5 [23:42:53]CheckFolder [23:42:53]dirname=/storage/ofd_packets [23:42:53]CheckFolder done [23:42:53]ProducePacketName [23:42:53]name=ofd_packets/00123398 [23:42:53]NVStorageSaveData ofd_packets/00123398 [23:42:53]File name is /storage/ofd_packets/00123398 [23:42:53]Write 301 bytes [23:42:53]NVStorageSaveData done [23:42:53]OFDSenderStorePacket done [23:42:53]KKMCreateOFDPacket done [23:42:53]NVStorageSaveData kkm_last_timestamp [23:42:53]File name is /storage/kkm_last_timestamp [23:42:53]Write 4 bytes [23:42:53]NVStorageSaveData done [23:42:53]ExternCall_PrintAddStr [23:42:53]wPrintStart [23:42:53]Write to MH i2c: 01 00 00 56 5C B2 [23:42:53]Write i2c OK [23:42:53]MH_I2C_Read... [23:42:53]Read from MH i2c: 01 [23:42:53]MH_I2C_Read... [23:42:53]Read from MH i2c: 01 07 00 [23:42:53]MH_I2C_Read... [23:42:53]Read from MH i2c: 01 07 00 56 5C 00 00 00 00 00 FF 0F C7 [23:42:53]RasterBufferAndPrint [23:42:53]line Счет N : (1)1106384 [23:42:53]line ИНН: 02508201610067 [23:42:53]line Контрольно-Кассовый Чек [23:42:53]line ПРОДАЖА [23:42:53]line ТРК (МРК, ГНК) : 62 [23:42:53]line Товар: 2710124130 [23:42:53]line Аи-92-К-5 [23:42:53]line 9.700 * 61.90 [23:42:53]line = 600.43 [23:42:53]line НДС 12% НСП 1% [23:42:53]line > о реализуемом товаре [23:42:53]line ИТОГО: 600.43 [23:42:53]line НСП 1% : 5.31 [23:42:53]line НДС 12% : 63.76 [23:42:53]line Наличными: 0.00 [23:42:53]line Безнал.: 600.43 [23:42:53]line Место: АЗС № 25 "Партнер Нефть" [23:42:53]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [23:42:53]line СНО: Общий режим [23:42:53]line Чек 255 03.03.2024 23:42 [23:42:53]line Смена: 323 ФФД: 1.0 [23:42:53]line ЗНМ: 0300000019 [23:42:53]line РНМ: 0000000000090573 [23:42:53]line Версия ККМ: 001 [23:42:53]line Платежная система: О! деньги [23:42:53]line ФМ: 0000000000874798 [23:42:53]line ФД: 123398 [23:42:53]line ФПД: 280166094609234 [23:42:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240303T234257&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123398&fm=280166094609234&tin=02508201610067®Number=0000000000090573&sum=60043 [23:42:54]OFD Sender: Processing packet 123398 [packets to send 112, broken 111] [23:42:54]ProducePacketName [23:42:54]name=ofd_packets/00123398 [23:42:54]OFD Sender: To server: pG, [23:42:54]CommunicateWithHost lk.salyk.kg:30040 [23:42:54]ConnectInit lk.salyk.kg [23:42:54]written 0, free lines is 4095 [23:42:54]Connected sock=10 [23:42: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 37 39 38 0F 01 00 00 49 71 07 01 16 E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 25 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 8B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8B 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 E8 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8B EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 01 0B E5 65 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 06 E2 01 00 35 04 06 00 FE CF 40 8C 1B 52 7C 28 61 F4 E8 8C 7F E5 [23:42:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 D0 00 47 00 71 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 06 E2 01 00 F4 03 04 00 2C B7 E4 65 B6 04 01 00 00 DC AE 72 D3 E3 57 F7 A7 [23:42:54]CommunicateWithHost err = 0 [23:42:54]CheckOFDResponse [23:42:54]1017 (14) - 77093643461234 [23:42:54]1041 (16) - 0000000000874798 [23:42:54]1040 (4) - 123398 [23:42:54]1012 (4) - 03.03.2024 17:45 [23:42:54]1206 (1) - 0 [23:42:54]OFD Sender: Remove packet 123398 [23:42:54]ProducePacketName [23:42:54]name=ofd_packets/00123398 [23:42:54]NVStorageDeleteData [23:42:54]Write to MH i2c: 01 00 00 80 5C DC [23:42:54]Write i2c OK [23:42:54]MH_I2C_Read... [23:42:54]Read from MH i2c: 01 [23:42:54]MH_I2C_Read... [23:42:54]Read from MH i2c: 01 07 00 [23:42:54]MH_I2C_Read... [23:42:54]Read from MH i2c: 01 07 00 80 5C 00 00 00 00 00 07 0D F7 [23:42:54]RasterBufferAndPrint [23:42:54]line [23:42:54]line [23:42:54]line [23:42:54]line [23:42:54]line [23:42:54]written 0, free lines is 3343 [23:42:54]MH_Cut [23:42:54]Write to MH i2c: D1 01 00 87 5C 01 B5 [23:42:54]Write i2c OK [23:42:54]MH_I2C_Read... [23:42:54]Read from MH i2c: D1 [23:42:54]MH_I2C_Read... [23:42:54]Read from MH i2c: D1 01 00 [23:42:54]MH_I2C_Read... [23:42:54]Read from MH i2c: D1 01 00 87 5C 00 B4 [23:42:54]Write to MH i2c: 01 00 00 88 5C E4 [23:42:54]Write i2c OK [23:42:54]MH_I2C_Read... [23:42:55]OFD Sender: No OFD packet to send [23:42:55]*** Cut start [23:42:55]*** Purtial cut [23:42:55]*** Stage 1: CUTSNS_PIN = 1 [23:42:57]Read from MH i2c: 01 [23:42:57]MH_I2C_Read... [23:42:57]*** Stop cut motor [23:42:57]*** Cut end [23:42:57]Read from MH i2c: 01 07 00 [23:42:57]MH_I2C_Read... [23:42:57]Read from MH i2c: 01 07 00 88 5C 00 00 00 00 00 FF 0F F9 [23:42:57]process_action close_receipt done [23:42:57]requested_data is exist [23:42:57]produce_requested_data [23:42:57]requested_item fm.sn is exist - process it [23:42:57]wFMCommunicate request_size=4 [23:42:57]MH_SAM_APDU [23:42:57]CAPDU: 80 11 00 00 [23:42:57]Write to MH i2c: E2 08 00 89 5C 80 11 00 00 00 00 00 00 5F [23:42:57]Write i2c OK [23:42:57]MH_I2C_Read... [23:42:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:42:57]Read from MH i2c: E2 [23:42:57]MH_I2C_Read... [23:42:57]Read from MH i2c: E2 17 00 [23:42:57]MH_I2C_Read... [23:42:57]Read from MH i2c: E2 17 00 89 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 BD [23:42:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [23:42:57]wFMCommunicate OK [23:42:57]requested_item fd.num is exist - process it [23:42:57]SAM_PROTO_GetFieldsCounters [23:42:57]wFMCommunicate request_size=4 [23:42:57]MH_SAM_APDU [23:42:57]CAPDU: 80 13 00 00 [23:42:57]Write to MH i2c: E2 08 00 8A 5C 80 13 00 00 00 00 00 00 62 [23:42:57]Write i2c OK [23:42:57]MH_I2C_Read... [23:42:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:42:57]Read from MH i2c: E2 [23:42:57]MH_I2C_Read... [23:42:57]Read from MH i2c: E2 62 00 [23:42:57]MH_I2C_Read... [23:42:57]Read from MH i2c: E2 62 00 8A 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 06 E2 01 00 0E 04 04 00 43 01 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 B8 [23:42: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 06 E2 01 00 0E 04 04 00 43 01 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 [23:42:57]wFMCommunicate OK [23:42:57]SAM_PROTO_GetFieldsCounters done [23:42:57]requested_item shift.num is exist - process it [23:42:57]requested_item shift.opened is exist - process it [23:42:57]req_shift_opened [23:42:57]FM_GetShiftState [23:42:57]SAM_PROTO_GetShiftState [23:42:57]wFMCommunicate request_size=4 [23:42:57]MH_SAM_APDU [23:42:57]CAPDU: 80 13 01 00 [23:42:57]Write to MH i2c: E2 08 00 8B 5C 80 13 01 00 00 00 00 00 64 [23:42:57]Write i2c OK [23:42:57]MH_I2C_Read... [23:42:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:42:57]Read from MH i2c: E2 [23:42:57]MH_I2C_Read... [23:42:57]Read from MH i2c: E2 0E 00 [23:42:57]MH_I2C_Read... [23:42:57]Read from MH i2c: E2 0E 00 8B 5C 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 26 [23:42:57]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [23:42:57]wFMCommunicate OK [23:42:57]SAM_PROTO_GetShiftState done [23:42:57]FM_GetShiftState done [23:42:57]req_shift_opened done [23:42:57]requested_item shift.open_date is exist - process it [23:42:57]req_shift_open_date [23:42:57]req_shift_open_date done [23:42:57]produce_requested_data done [23:42:57]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123398,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [23:42:57]process_action_free close_receipt [23:42:57]json_value_free [23:42:57]json_value_free done [23:42:57]process_json_proto returns [23:42:57]Send response to host [23:42:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123398,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [23:42:57]free response buf [23:42:57]execute_script done [23:42:57]execute_script returns [23:42:57]free content buf [23:42:57]Sock 7.Close socket [23:42:57]Sock 7.Thread stoped [23:43:00]OFD Sender: No OFD packet to send [23:43:05]OFD Sender: No OFD packet to send [23:43:10]OFD Sender: No OFD packet to send [23:43:15]OFD Sender: No OFD packet to send [23:43:20]OFD Sender: No OFD packet to send [23:43:25]OFD Sender: No OFD packet to send [23:43:30]OFD Sender: No OFD packet to send [23:43:35]OFD Sender: No OFD packet to send [23:43:40]OFD Sender: No OFD packet to send [23:43:45]OFD Sender: No OFD packet to send [23:43:50]OFD Sender: No OFD packet to send [23:43:55]OFD Sender: No OFD packet to send [23:44:00]OFD Sender: No OFD packet to send [23:44:05]OFD Sender: No OFD packet to send [23:44:10]OFD Sender: No OFD packet to send [23:44:15]OFD Sender: No OFD packet to send [23:44:20]OFD Sender: No OFD packet to send [23:44:25]OFD Sender: No OFD packet to send [23:44:30]OFD Sender: No OFD packet to send [23:44:35]OFD Sender: No OFD packet to send [23:44:40]OFD Sender: No OFD packet to send [23:44:45]OFD Sender: No OFD packet to send [23:44:50]OFD Sender: No OFD packet to send [23:44:55]OFD Sender: No OFD packet to send [23:45:00]OFD Sender: No OFD packet to send [23:45:05]OFD Sender: No OFD packet to send [23:45:10]OFD Sender: No OFD packet to send [23:45:15]OFD Sender: No OFD packet to send [23:45:20]OFD Sender: No OFD packet to send [23:45:25]OFD Sender: No OFD packet to send [23:45:30]OFD Sender: No OFD packet to send [23:45:35]OFD Sender: No OFD packet to send [23:45:40]OFD Sender: No OFD packet to send [23:45:45]OFD Sender: No OFD packet to send [23:45:50]OFD Sender: No OFD packet to send [23:45:55]OFD Sender: No OFD packet to send [23:46:00]OFD Sender: No OFD packet to send [23:46:05]OFD Sender: No OFD packet to send [23:46:10]OFD Sender: No OFD packet to send [23:46:15]OFD Sender: No OFD packet to send [23:46:20]OFD Sender: No OFD packet to send [23:46:25]OFD Sender: No OFD packet to send [23:46:30]OFD Sender: No OFD packet to send [23:46:35]OFD Sender: No OFD packet to send [23:46:40]OFD Sender: No OFD packet to send [23:46:45]OFD Sender: No OFD packet to send [23:46:50]OFD Sender: No OFD packet to send [23:46:55]OFD Sender: No OFD packet to send [23:47:00]OFD Sender: No OFD packet to send [23:47:05]OFD Sender: No OFD packet to send [23:47:10]OFD Sender: No OFD packet to send [23:47:15]OFD Sender: No OFD packet to send [23:47:20]OFD Sender: No OFD packet to send [23:47:25]OFD Sender: No OFD packet to send [23:47:30]OFD Sender: No OFD packet to send [23:47:35]OFD Sender: No OFD packet to send [23:47:40]OFD Sender: No OFD packet to send [23:47:45]OFD Sender: No OFD packet to send [23:47:50]OFD Sender: No OFD packet to send [23:47:55]OFD Sender: No OFD packet to send [23:48:00]OFD Sender: No OFD packet to send [23:48:05]OFD Sender: No OFD packet to send [23:48:10]OFD Sender: No OFD packet to send [23:48:15]OFD Sender: No OFD packet to send [23:48:20]OFD Sender: No OFD packet to send [23:48:25]OFD Sender: No OFD packet to send [23:48:30]OFD Sender: No OFD packet to send [23:48:35]OFD Sender: No OFD packet to send [23:48:40]OFD Sender: No OFD packet to send [23:48:45]OFD Sender: No OFD packet to send [23:48:50]OFD Sender: No OFD packet to send [23:48:55]OFD Sender: No OFD packet to send [23:49:00]OFD Sender: No OFD packet to send [23:49:05]OFD Sender: No OFD packet to send [23:49:10]OFD Sender: No OFD packet to send [23:49:15]OFD Sender: No OFD packet to send [23:49:20]OFD Sender: No OFD packet to send [23:49:25]OFD Sender: No OFD packet to send [23:49:30]OFD Sender: No OFD packet to send [23:49:35]OFD Sender: No OFD packet to send [23:49:40]OFD Sender: No OFD packet to send [23:49:45]OFD Sender: No OFD packet to send [23:49:50]OFD Sender: No OFD packet to send [23:49:55]OFD Sender: No OFD packet to send [23:50:00]OFD Sender: No OFD packet to send [23:50:05]OFD Sender: No OFD packet to send [23:50:10]OFD Sender: No OFD packet to send [23:50:15]OFD Sender: No OFD packet to send [23:50:20]OFD Sender: No OFD packet to send [23:50:25]OFD Sender: No OFD packet to send [23:50:30]OFD Sender: No OFD packet to send [23:50:35]OFD Sender: No OFD packet to send [23:50:40]OFD Sender: No OFD packet to send [23:50:45]OFD Sender: No OFD packet to send [23:50:50]OFD Sender: No OFD packet to send [23:50:55]OFD Sender: No OFD packet to send [23:51:00]OFD Sender: No OFD packet to send [23:51:05]OFD Sender: No OFD packet to send [23:51:10]OFD Sender: No OFD packet to send [23:51:15]OFD Sender: No OFD packet to send [23:51:20]OFD Sender: No OFD packet to send [23:51:25]OFD Sender: No OFD packet to send [23:51:30]OFD Sender: No OFD packet to send [23:51:35]OFD Sender: No OFD packet to send [23:51:40]OFD Sender: No OFD packet to send [23:51:45]OFD Sender: No OFD packet to send [23:51:50]OFD Sender: No OFD packet to send [23:51:55]OFD Sender: No OFD packet to send [23:52:00]OFD Sender: No OFD packet to send [23:52:05]OFD Sender: No OFD packet to send [23:52:10]OFD Sender: No OFD packet to send [23:52:15]OFD Sender: No OFD packet to send [23:52:20]OFD Sender: No OFD packet to send [23:52:25]OFD Sender: No OFD packet to send [23:52:30]OFD Sender: No OFD packet to send [23:52:35]OFD Sender: No OFD packet to send [23:52:40]OFD Sender: No OFD packet to send [23:52:45]OFD Sender: No OFD packet to send [23:52:50]OFD Sender: No OFD packet to send [23:52:55]OFD Sender: No OFD packet to send [23:53:00]OFD Sender: No OFD packet to send [23:53:05]OFD Sender: No OFD packet to send [23:53:10]OFD Sender: No OFD packet to send [23:53:15]OFD Sender: No OFD packet to send [23:53:20]OFD Sender: No OFD packet to send [23:53:25]OFD Sender: No OFD packet to send [23:53:30]OFD Sender: No OFD packet to send [23:53:35]OFD Sender: No OFD packet to send [23:53:40]OFD Sender: No OFD packet to send [23:53:45]OFD Sender: No OFD packet to send [23:53:50]OFD Sender: No OFD packet to send [23:53:55]OFD Sender: No OFD packet to send [23:54:00]OFD Sender: No OFD packet to send [23:54:05]OFD Sender: No OFD packet to send [23:54:10]OFD Sender: No OFD packet to send [23:54:15]OFD Sender: No OFD packet to send [23:54:20]OFD Sender: No OFD packet to send [23:54:25]OFD Sender: No OFD packet to send [23:54:30]OFD Sender: No OFD packet to send [23:54:35]OFD Sender: No OFD packet to send [23:54:40]OFD Sender: No OFD packet to send [23:54:45]OFD Sender: No OFD packet to send [23:54:50]OFD Sender: No OFD packet to send [23:54:55]OFD Sender: No OFD packet to send [23:55:00]OFD Sender: No OFD packet to send [23:55:05]OFD Sender: No OFD packet to send [23:55:10]OFD Sender: No OFD packet to send [23:55:15]OFD Sender: No OFD packet to send [23:55:20]OFD Sender: No OFD packet to send [23:55:25]OFD Sender: No OFD packet to send [23:55:30]OFD Sender: No OFD packet to send [23:55:35]OFD Sender: No OFD packet to send [23:55:40]OFD Sender: No OFD packet to send [23:55:45]OFD Sender: No OFD packet to send [23:55:50]OFD Sender: No OFD packet to send [23:55:55]OFD Sender: No OFD packet to send [23:56:00]OFD Sender: No OFD packet to send [23:56:05]OFD Sender: No OFD packet to send [23:56:10]OFD Sender: No OFD packet to send [23:56:15]OFD Sender: No OFD packet to send [23:56:20]OFD Sender: No OFD packet to send [23:56: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:39]accept exits with 9 [23:57:39]New connection [23:57:39]New thread 3067395428 created [23:57:39]Thread 3067252068 joined [23:57:39]Waiting for new connection... [23:57:39] Sock 9.Parse request [23:57:39]Sock 9.Check first char [23:57:39]Sock 9.First char is OK [23:57:39]request: POST /json_proto HTTP/1.0 [23:57:39]Method: POST [23:57:39]URL: /json_proto [23:57:39]Method is POST - this is cgi request [23:57:39]url: /json_proto [23:57:39]query_string will be loaded in cgi processing [23:57:39]execute_cgi json_proto POST (null) [23:57:39]execute_cgi path=json_proto method=POST [23:57:39]POST find Content-Length [23:57:39]Host: 172.17.48.197:8080 [23:57:39]Content-Length: 1226 [23:57:39]Content-Type: application/json [23:57:39] [23:57:39]POST finish read [23:57:39]Found Content-Length = 1226 [23:57:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106385\u000A03.03.2024 23:54\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 53\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 20.000 x 69.50\u000A\u0418\u0422\u041E\u0413: 1390.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A2066791/2066792\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:57:39]execute_script... [23:57:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106385\u000A03.03.2024 23:54\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 53\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 20.000 x 69.50\u000A\u0418\u0422\u041E\u0413: 1390.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A2066791/2066792\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:57:39]POST & json_proto [23:57:39]process_json_proto [23:57:39]json parsed OK: [23:57:39]protocol is kg_v1.0 [23:57:39]action value=print_text [23:57:39]process_action print_text [23:57:39]cmd_print_text [23:57:39]ExternCall_PrintAddStr [23:57:39]wPrintStart [23:57:39]Write to MH i2c: 01 00 00 8C 5C E8 [23:57:39]Write i2c OK [23:57:39]MH_I2C_Read... [23:57:39]Read from MH i2c: 01 [23:57:39]MH_I2C_Read... [23:57:39]Read from MH i2c: 01 07 00 [23:57:39]MH_I2C_Read... [23:57:39]Read from MH i2c: 01 07 00 8C 5C 00 00 00 00 00 FF 0F FD [23:57:39]RasterBufferAndPrint [23:57:39]line *****ТОВАРНЫЙ ЧЕК***** [23:57:39]line АЗС 25 [23:57:39]line Партнер нефть [23:57:39]line 02508201610067 [23:57:39]line Кассир : Турдумбек у. К. [23:57:39]line Счет N : (1)1106385 [23:57:39]line 03.03.2024 23:54 [23:57:39]line ПРОДАЖА [23:57:39]line ТРК (МРК, ГНК): 53 [23:57:39]line Вид ГСМ : 2710124500 [23:57:39]line Аи-95-К-5 [23:57:39]line 20.000 x 69.50 [23:57:39]line ИТОГ: 1390.00 [23:57:39]line Тип оплаты: Талоны: Топливные Талоны [23:57:39]line 2066791/2066792 [23:57:39]line ______________________ [23:57:39]line (подпись) [23:57:39]written 0, free lines is 4095 [23:57:40]Write to MH i2c: 01 00 00 A1 5C FD [23:57:40]Write i2c OK [23:57:40]MH_I2C_Read... [23:57:40]Read from MH i2c: 01 [23:57:40]MH_I2C_Read... [23:57:40]Read from MH i2c: 01 07 00 [23:57:40]MH_I2C_Read... [23:57:40]Read from MH i2c: 01 07 00 A1 5C 00 00 00 00 00 FB 0D 0C [23:57:40]RasterBufferAndPrint [23:57:40]line [23:57:40]line [23:57:40]line [23:57:40]line [23:57:40]line [23:57:40]written 0, free lines is 3581 [23:57:40]MH_Cut [23:57:40]Write to MH i2c: D1 01 00 A8 5C 01 D6 [23:57:40]Write i2c OK [23:57:40]MH_I2C_Read... [23:57:40]Read from MH i2c: D1 [23:57:40]MH_I2C_Read... [23:57:40]Read from MH i2c: D1 01 00 [23:57:40]MH_I2C_Read... [23:57:40]Read from MH i2c: D1 01 00 A8 5C 00 D5 [23:57:40]Write to MH i2c: 01 00 00 A9 5C 05 [23:57:40]Write i2c OK [23:57:40]MH_I2C_Read... [23:57:40]*** Cut start [23:57:40]*** Purtial cut [23:57:40]*** Stage 1: CUTSNS_PIN = 1 [23:57:41]OFD Sender: No OFD packet to send [23:57:42]Read from MH i2c: 01 [23:57:42]MH_I2C_Read... [23:57:42]*** Stop cut motor [23:57:42]*** Cut end [23:57:42]Read from MH i2c: 01 07 00 [23:57:42]MH_I2C_Read... [23:57:42]Read from MH i2c: 01 07 00 A9 5C 00 00 00 00 00 FF 0F 1A [23:57:42]process_action print_text done [23:57:42]requested_data is exist [23:57:42]produce_requested_data [23:57:42]requested_item fm.sn is exist - process it [23:57:42]wFMCommunicate request_size=4 [23:57:42]MH_SAM_APDU [23:57:42]CAPDU: 80 11 00 00 [23:57:42]Write to MH i2c: E2 08 00 AA 5C 80 11 00 00 00 00 00 00 80 [23:57:42]Write i2c OK [23:57:42]MH_I2C_Read... [23:57:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:57:42]Read from MH i2c: E2 [23:57:42]MH_I2C_Read... [23:57:42]Read from MH i2c: E2 17 00 [23:57:42]MH_I2C_Read... [23:57:42]Read from MH i2c: E2 17 00 AA 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 DE [23:57:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [23:57:42]wFMCommunicate OK [23:57:42]requested_item fd.num is exist - process it [23:57:42]SAM_PROTO_GetFieldsCounters [23:57:42]wFMCommunicate request_size=4 [23:57:42]MH_SAM_APDU [23:57:42]CAPDU: 80 13 00 00 [23:57:42]Write to MH i2c: E2 08 00 AB 5C 80 13 00 00 00 00 00 00 83 [23:57:42]Write i2c OK [23:57:42]MH_I2C_Read... [23:57:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:57:42]Read from MH i2c: E2 [23:57:42]MH_I2C_Read... [23:57:42]Read from MH i2c: E2 62 00 [23:57:42]MH_I2C_Read... [23:57:42]Read from MH i2c: E2 62 00 AB 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 06 E2 01 00 0E 04 04 00 43 01 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 D9 [23:57: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 06 E2 01 00 0E 04 04 00 43 01 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 [23:57:42]wFMCommunicate OK [23:57:42]SAM_PROTO_GetFieldsCounters done [23:57:42]requested_item shift.num is exist - process it [23:57:42]requested_item shift.opened is exist - process it [23:57:42]req_shift_opened [23:57:42]FM_GetShiftState [23:57:42]SAM_PROTO_GetShiftState [23:57:42]wFMCommunicate request_size=4 [23:57:42]MH_SAM_APDU [23:57:42]CAPDU: 80 13 01 00 [23:57:42]Write to MH i2c: E2 08 00 AC 5C 80 13 01 00 00 00 00 00 85 [23:57:42]Write i2c OK [23:57:42]MH_I2C_Read... [23:57:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:57:42]Read from MH i2c: E2 [23:57:42]MH_I2C_Read... [23:57:42]Read from MH i2c: E2 0E 00 [23:57:42]MH_I2C_Read... [23:57:42]Read from MH i2c: E2 0E 00 AC 5C 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 47 [23:57:42]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [23:57:42]wFMCommunicate OK [23:57:42]SAM_PROTO_GetShiftState done [23:57:42]FM_GetShiftState done [23:57:42]req_shift_opened done [23:57:42]requested_item shift.open_date is exist - process it [23:57:42]req_shift_open_date [23:57:42]req_shift_open_date done [23:57:42]produce_requested_data done [23:57:42]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123398,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [23:57:42]process_action_free print_text [23:57:42]json_value_free [23:57:42]json_value_free done [23:57:42]process_json_proto returns [23:57:42]Send response to host [23:57:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123398,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [23:57:42]free response buf [23:57:42]execute_script done [23:57:42]execute_script returns [23:57:42]free content buf [23:57:42]Sock 9.Close socket [23:57:42]Sock 9.Thread stoped [23:57:46]OFD Sender: No OFD packet to send [23:57:51]OFD Sender: No OFD packet to send [23:57:56]OFD Sender: No OFD packet to send [23:58:01]OFD Sender: No OFD packet to send [23:58:06]OFD Sender: No OFD packet to send [23:58:11]OFD Sender: No OFD packet to send [23:58:16]OFD Sender: No OFD packet to send [23:58:17]accept exits with 7 [23:58:17]New connection [23:58:17]New thread 3067252068 created [23:58:17]Thread 3067395428 joined [23:58:17]Waiting for new connection... [23:58:17] Sock 7.Parse request [23:58:17]Sock 7.Check first char [23:58:17]Sock 7.First char is OK [23:58:17]request: POST /json_proto HTTP/1.0 [23:58:17]Method: POST [23:58:17]URL: /json_proto [23:58:17]Method is POST - this is cgi request [23:58:17]url: /json_proto [23:58:17]query_string will be loaded in cgi processing [23:58:17]execute_cgi json_proto POST (null) [23:58:17]execute_cgi path=json_proto method=POST [23:58:17]POST find Content-Length [23:58:17]Host: 172.17.48.197:8080 [23:58:17]Content-Length: 1221 [23:58:17]Content-Type: application/json [23:58:17] [23:58:17]POST finish read [23:58:17]Found Content-Length = 1221 [23:58:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106386\u000A03.03.2024 23:54\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 5.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 354.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3430239\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:58:17]execute_script... [23:58:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)1106386\u000A03.03.2024 23:54\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 5.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 354.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3430239\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:58:17]POST & json_proto [23:58:17]process_json_proto [23:58:17]json parsed OK: [23:58:17]protocol is kg_v1.0 [23:58:17]action value=print_text [23:58:17]process_action print_text [23:58:17]cmd_print_text [23:58:17]ExternCall_PrintAddStr [23:58:17]wPrintStart [23:58:17]Write to MH i2c: 01 00 00 AD 5C 09 [23:58:17]Write i2c OK [23:58:17]MH_I2C_Read... [23:58:17]Read from MH i2c: 01 [23:58:17]MH_I2C_Read... [23:58:17]Read from MH i2c: 01 07 00 [23:58:17]MH_I2C_Read... [23:58:17]Read from MH i2c: 01 07 00 AD 5C 00 00 00 00 00 FF 0F 1E [23:58:17]RasterBufferAndPrint [23:58:17]line *****ТОВАРНЫЙ ЧЕК***** [23:58:17]line АЗС 25 [23:58:17]line Партнер нефть [23:58:17]line 02508201610067 [23:58:17]line Кассир : Турдумбек у. К. [23:58:17]line Счет N : (1)1106386 [23:58:17]line 03.03.2024 23:54 [23:58:17]line ПРОДАЖА [23:58:17]line ТРК (МРК, ГНК): 41 [23:58:17]line Вид ГСМ : 2710194210 [23:58:17]line ДТ(л)-К-5 [23:58:17]line 5.000 x 70.90 [23:58:17]line ИТОГ: 354.50 [23:58:17]line Тип оплаты: Талоны: Топливные Талоны [23:58:17]line 3430239 [23:58:17]line ______________________ [23:58:17]line (подпись) [23:58:17]written 0, free lines is 4095 [23:58:18]Write to MH i2c: 01 00 00 C2 5C 1E [23:58:18]Write i2c OK [23:58:18]MH_I2C_Read... [23:58:18]Read from MH i2c: 01 [23:58:18]MH_I2C_Read... [23:58:18]Read from MH i2c: 01 07 00 [23:58:18]MH_I2C_Read... [23:58:18]Read from MH i2c: 01 07 00 C2 5C 00 00 00 00 00 F4 0D 26 [23:58:18]RasterBufferAndPrint [23:58:18]line [23:58:18]line [23:58:18]line [23:58:18]line [23:58:18]line [23:58:18]written 0, free lines is 3573 [23:58:18]MH_Cut [23:58:18]Write to MH i2c: D1 01 00 C9 5C 01 F7 [23:58:18]Write i2c OK [23:58:18]MH_I2C_Read... [23:58:18]Read from MH i2c: D1 [23:58:18]MH_I2C_Read... [23:58:18]Read from MH i2c: D1 01 00 [23:58:18]MH_I2C_Read... [23:58:18]Read from MH i2c: D1 01 00 C9 5C 00 F6 [23:58:18]Write to MH i2c: 01 00 00 CA 5C 26 [23:58:18]Write i2c OK [23:58:18]MH_I2C_Read... [23:58:18]*** Cut start [23:58:18]*** Purtial cut [23:58:18]*** Stage 1: CUTSNS_PIN = 1 [23:58:20]Read from MH i2c: 01 [23:58:20]MH_I2C_Read... [23:58:20]Read from MH i2c: 01 07 00 [23:58:20]MH_I2C_Read... [23:58:20]*** Stop cut motor [23:58:20]*** Cut end [23:58:20]Read from MH i2c: 01 07 00 CA 5C 00 00 00 00 00 FF 0F 3B [23:58:20]process_action print_text done [23:58:20]requested_data is exist [23:58:20]produce_requested_data [23:58:20]requested_item fm.sn is exist - process it [23:58:20]wFMCommunicate request_size=4 [23:58:20]MH_SAM_APDU [23:58:20]CAPDU: 80 11 00 00 [23:58:20]Write to MH i2c: E2 08 00 CB 5C 80 11 00 00 00 00 00 00 A1 [23:58:20]Write i2c OK [23:58:20]MH_I2C_Read... [23:58:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:58:20]Read from MH i2c: E2 [23:58:20]MH_I2C_Read... [23:58:20]Read from MH i2c: E2 17 00 [23:58:20]MH_I2C_Read... [23:58:20]Read from MH i2c: E2 17 00 CB 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 FF [23:58:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [23:58:20]wFMCommunicate OK [23:58:20]requested_item fd.num is exist - process it [23:58:20]SAM_PROTO_GetFieldsCounters [23:58:20]wFMCommunicate request_size=4 [23:58:20]MH_SAM_APDU [23:58:20]CAPDU: 80 13 00 00 [23:58:20]Write to MH i2c: E2 08 00 CC 5C 80 13 00 00 00 00 00 00 A4 [23:58:20]Write i2c OK [23:58:20]MH_I2C_Read... [23:58:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:58:20]Read from MH i2c: E2 [23:58:20]MH_I2C_Read... [23:58:20]Read from MH i2c: E2 62 00 [23:58:20]MH_I2C_Read... [23:58:20]Read from MH i2c: E2 62 00 CC 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 06 E2 01 00 0E 04 04 00 43 01 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 FA [23:58: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 06 E2 01 00 0E 04 04 00 43 01 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 [23:58:20]wFMCommunicate OK [23:58:20]SAM_PROTO_GetFieldsCounters done [23:58:20]requested_item shift.num is exist - process it [23:58:20]requested_item shift.opened is exist - process it [23:58:20]req_shift_opened [23:58:20]FM_GetShiftState [23:58:20]SAM_PROTO_GetShiftState [23:58:20]wFMCommunicate request_size=4 [23:58:20]MH_SAM_APDU [23:58:20]CAPDU: 80 13 01 00 [23:58:20]Write to MH i2c: E2 08 00 CD 5C 80 13 01 00 00 00 00 00 A6 [23:58:20]Write i2c OK [23:58:20]MH_I2C_Read... [23:58:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:58:20]Read from MH i2c: E2 [23:58:20]MH_I2C_Read... [23:58:20]Read from MH i2c: E2 0E 00 [23:58:20]MH_I2C_Read... [23:58:20]Read from MH i2c: E2 0E 00 CD 5C 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 68 [23:58:20]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [23:58:20]wFMCommunicate OK [23:58:20]SAM_PROTO_GetShiftState done [23:58:20]FM_GetShiftState done [23:58:20]req_shift_opened done [23:58:20]requested_item shift.open_date is exist - process it [23:58:20]req_shift_open_date [23:58:20]req_shift_open_date done [23:58:20]produce_requested_data done [23:58:20]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123398,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [23:58:20]process_action_free print_text [23:58:20]json_value_free [23:58:20]json_value_free done [23:58:20]process_json_proto returns [23:58:20]Send response to host [23:58:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123398,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [23:58:20]free response buf [23:58:20]execute_script done [23:58:20]execute_script returns [23:58:20]free content buf [23:58:20]Sock 7.Close socket [23:58:20]Sock 7.Thread stoped [23:58:21]OFD Sender: No OFD packet to send [23:58:26]OFD Sender: No OFD packet to send [23:58:31]OFD Sender: No OFD packet to send [23:58:36]OFD Sender: No OFD packet to send [23:58:41]OFD Sender: No OFD packet to send [23:58:46]OFD Sender: No OFD packet to send [23:58:51]OFD Sender: No OFD packet to send [23:58:56]OFD Sender: No OFD packet to send [23:59:01]OFD Sender: No OFD packet to send [23:59:06]OFD Sender: No OFD packet to send [23:59:11]OFD Sender: No OFD packet to send [23:59:16]OFD Sender: No OFD packet to send [23:59:21]OFD Sender: No OFD packet to send [23:59:26]OFD Sender: No OFD packet to send [23:59:31]OFD Sender: No OFD packet to send [23:59:36]OFD Sender: No OFD packet to send [23:59:41]OFD Sender: No OFD packet to send [23:59:46]OFD Sender: No OFD packet to send [23:59:51]OFD Sender: No OFD packet to send [23:59:56]OFD Sender: No OFD packet to send [00:00:01]OFD Sender: No OFD packet to send [00:00:06]OFD Sender: No OFD packet to send [00:00:11]OFD Sender: No OFD packet to send [00:00:16]OFD Sender: No OFD packet to send [00:00:21]OFD Sender: No OFD packet to send [00:00:26]OFD Sender: No OFD packet to send [00:00:31]OFD Sender: No OFD packet to send [00:00:36]OFD Sender: No OFD packet to send [00:00:41]OFD Sender: No OFD packet to send [00:00:46]OFD Sender: No OFD packet to send [00:00:49]accept exits with 9 [00:00:49]New connection [00:00:49]New thread 3067395428 created [00:00:49]Thread 3067252068 joined [00:00:49]Waiting for new connection... [00:00:49] Sock 9.Parse request [00:00:49]Sock 9.Check first char [00:00:49]Sock 9.First char is OK [00:00:49]request: POST /json_proto HTTP/1.0 [00:00:49]Method: POST [00:00:49]URL: /json_proto [00:00:49]Method is POST - this is cgi request [00:00:49]url: /json_proto [00:00:49]query_string will be loaded in cgi processing [00:00:49]execute_cgi json_proto POST (null) [00:00:49]execute_cgi path=json_proto method=POST [00:00:49]POST find Content-Length [00:00:49]Host: 172.17.48.197:8080 [00:00:49]Content-Length: 215 [00:00:49]Content-Type: application/json [00:00:49] [00:00:49]POST finish read [00:00:49]Found Content-Length = 215 [00:00:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:00:49]execute_script... [00:00:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:00:49]POST & json_proto [00:00:49]process_json_proto [00:00:49]json parsed OK: [00:00:49]protocol is kg_v1.0 [00:00:49]action value=get_value [00:00:49]process_action get_value [00:00:49]cmd_get_value [00:00:49]process_action get_value done [00:00:49]requested_data is exist [00:00:49]produce_requested_data [00:00:49]requested_item kkm.sn is exist - process it [00:00:49]requested_item kkm.ver is exist - process it [00:00:49]requested_item fm.sn is exist - process it [00:00:49]wFMCommunicate request_size=4 [00:00:49]MH_SAM_APDU [00:00:49]CAPDU: 80 11 00 00 [00:00:49]Write to MH i2c: E2 08 00 CE 5C 80 11 00 00 00 00 00 00 A4 [00:00:49]Write i2c OK [00:00:49]MH_I2C_Read... [00:00:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:00:49]Read from MH i2c: E2 [00:00:49]MH_I2C_Read... [00:00:49]Read from MH i2c: E2 17 00 [00:00:49]MH_I2C_Read... [00:00:49]Read from MH i2c: E2 17 00 CE 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 02 [00:00:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [00:00:49]wFMCommunicate OK [00:00:49]requested_item fd.num is exist - process it [00:00:49]SAM_PROTO_GetFieldsCounters [00:00:49]wFMCommunicate request_size=4 [00:00:49]MH_SAM_APDU [00:00:49]CAPDU: 80 13 00 00 [00:00:49]Write to MH i2c: E2 08 00 CF 5C 80 13 00 00 00 00 00 00 A7 [00:00:49]Write i2c OK [00:00:49]MH_I2C_Read... [00:00:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:00:49]Read from MH i2c: E2 [00:00:49]MH_I2C_Read... [00:00:49]Read from MH i2c: E2 62 00 [00:00:49]MH_I2C_Read... [00:00:49]Read from MH i2c: E2 62 00 CF 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 06 E2 01 00 0E 04 04 00 43 01 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 FD [00:00: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 06 E2 01 00 0E 04 04 00 43 01 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 [00:00:49]wFMCommunicate OK [00:00:49]SAM_PROTO_GetFieldsCounters done [00:00:49]requested_item shift.num is exist - process it [00:00:49]requested_item shift.opened is exist - process it [00:00:49]req_shift_opened [00:00:49]FM_GetShiftState [00:00:49]SAM_PROTO_GetShiftState [00:00:49]wFMCommunicate request_size=4 [00:00:49]MH_SAM_APDU [00:00:49]CAPDU: 80 13 01 00 [00:00:49]Write to MH i2c: E2 08 00 D0 5C 80 13 01 00 00 00 00 00 A9 [00:00:49]Write i2c OK [00:00:49]MH_I2C_Read... [00:00:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:00:49]Read from MH i2c: E2 [00:00:49]MH_I2C_Read... [00:00:49]Read from MH i2c: E2 0E 00 [00:00:49]MH_I2C_Read... [00:00:49]Read from MH i2c: E2 0E 00 D0 5C 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 6B [00:00:49]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [00:00:49]wFMCommunicate OK [00:00:49]SAM_PROTO_GetShiftState done [00:00:49]FM_GetShiftState done [00:00:49]req_shift_opened done [00:00:49]requested_item shift.open_date is exist - process it [00:00:49]req_shift_open_date [00:00:49]req_shift_open_date done [00:00:49]produce_requested_data done [00:00:49]produce_requested_data return {"kkm.sn":"0300000019","kkm.ver":"001","fm.sn":"0000000000874798","fd.num":123398,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579} [00:00:49]process_action_free get_value [00:00:49]json_value_free [00:00:49]json_value_free done [00:00:49]process_json_proto returns [00:00:49]Send response to host [00:00:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000019","kkm.ver":"001","fm.sn":"0000000000874798","fd.num":123398,"shift.num":323,"shift.opened":1,"shift.open_date":1709425579}}} [00:00:49]free response buf [00:00:49]execute_script done [00:00:49]execute_script returns [00:00:49]free content buf [00:00:49]Sock 9.Close socket [00:00:49]Sock 9.Thread stoped [00:00:49]accept exits with 10 [00:00:49]New connection [00:00:49]New thread 3067252068 created [00:00:49]Thread 3067395428 joined [00:00:49]Waiting for new connection... [00:00:49] Sock 10.Parse request [00:00:49]Sock 10.Check first char [00:00:49]Sock 10.First char is OK [00:00:49]request: POST /json_proto HTTP/1.0 [00:00:49]Method: POST [00:00:49]URL: /json_proto [00:00:49]Method is POST - this is cgi request [00:00:49]url: /json_proto [00:00:49]query_string will be loaded in cgi processing [00:00:49]execute_cgi json_proto POST (null) [00:00:49]execute_cgi path=json_proto method=POST [00:00:49]POST find Content-Length [00:00:49]Host: 172.17.48.197:8080 [00:00:49]Content-Length: 331 [00:00:49]Content-Type: application/json [00:00:49] [00:00:49]POST finish read [00:00:49]Found Content-Length = 331 [00:00:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:00:49]execute_script... [00:00:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:00:50]POST & json_proto [00:00:50]process_json_proto [00:00:50]json parsed OK: [00:00:50]protocol is kg_v1.0 [00:00:50]action value=get_value [00:00:50]process_action get_value [00:00:50]cmd_get_value [00:00:50]process_action get_value done [00:00:50]requested_data is exist [00:00:50]produce_requested_data [00:00:50]requested_item fm.sale.total is exist - process it [00:00:50]SAM_PROTO_GetFMData [00:00:50]wFMCommunicate request_size=4 [00:00:50]MH_SAM_APDU [00:00:50]CAPDU: 80 13 03 00 [00:00:50]Write to MH i2c: E2 08 00 D1 5C 80 13 03 00 00 00 00 00 AC [00:00:50]Write i2c OK [00:00:50]MH_I2C_Read... [00:00:50]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:00:50]Read from MH i2c: E2 [00:00:50]MH_I2C_Read... [00:00:50]Read from MH i2c: E2 FD 00 [00:00:50]MH_I2C_Read... [00:00:50]Read from MH i2c: E2 FD 00 D1 5C 00 C7 04 85 04 C3 04 6E 04 04 00 80 DF 01 00 69 04 A3 00 6F 04 04 00 65 CA 01 00 B1 04 05 00 F7 C5 3F 6F 02 70 04 05 00 9D FC 70 AB 01 72 04 04 00 5A C9 CE C3 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 62 ED 32 42 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 2B 17 84 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 1B 15 00 00 B1 04 04 00 25 74 69 34 70 04 04 00 05 26 69 34 72 04 02 00 20 4E 00 04 7C 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 4B 12 91 05 EF 90 00 4E [00:00:50]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 80 DF 01 00 69 04 A3 00 6F 04 04 00 65 CA 01 00 B1 04 05 00 F7 C5 3F 6F 02 70 04 05 00 9D FC 70 AB 01 72 04 04 00 5A C9 CE C3 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 62 ED 32 42 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 2B 17 84 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 1B 15 00 00 B1 04 04 00 25 74 69 34 70 04 04 00 05 26 69 34 72 04 02 00 20 4E 00 04 7C 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 4B 12 91 05 EF 90 00 [00:00:50]wFMCommunicate OK [00:00:50]wFMCommunicate request_size=4 [00:00:50]MH_SAM_APDU [00:00:50]CAPDU: 80 17 00 00 [00:00:50]Write to MH i2c: E2 08 00 D2 5C 80 17 00 00 00 00 00 00 AE [00:00:50]Write i2c OK [00:00:50]MH_I2C_Read... [00:00:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:50]Read from MH i2c: E2 [00:00:50]MH_I2C_Read... [00:00:50]Read from MH i2c: E2 FD 00 [00:00:50]MH_I2C_Read... [00:00:50]Read from MH i2c: E2 FD 00 D2 5C 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 D5 BF 76 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 C5 [00:00:50]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 D5 BF 76 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:00:50]wFMCommunicate OK [00:00:50]wFMCommunicate request_size=4 [00:00:50]MH_SAM_APDU [00:00:50]CAPDU: 80 17 00 00 [00:00:50]Write to MH i2c: E2 08 00 D3 5C 80 17 00 00 00 00 00 00 AF [00:00:50]Write i2c OK [00:00:50]MH_I2C_Read... [00:00:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:51]Read from MH i2c: E2 [00:00:51]MH_I2C_Read... [00:00:51]Read from MH i2c: E2 FD 00 [00:00:51]MH_I2C_Read... [00:00:51]Read from MH i2c: E2 FD 00 D3 5C 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 87 [00:00:51]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 [00:00:51]wFMCommunicate OK [00:00:51]wFMCommunicate request_size=4 [00:00:51]MH_SAM_APDU [00:00:51]CAPDU: 80 17 00 00 [00:00:51]Write to MH i2c: E2 08 00 D4 5C 80 17 00 00 00 00 00 00 B0 [00:00:51]Write i2c OK [00:00:51]MH_I2C_Read... [00:00:51]OFD Sender: No OFD packet to send [00:00:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:51]Read from MH i2c: E2 [00:00:51]MH_I2C_Read... [00:00:51]Read from MH i2c: E2 FD 00 [00:00:51]MH_I2C_Read... [00:00:51]Read from MH i2c: E2 FD 00 D4 5C 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2B [00:00:51]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 [00:00:51]wFMCommunicate OK [00:00:51]wFMCommunicate request_size=4 [00:00:51]MH_SAM_APDU [00:00:51]CAPDU: 80 17 00 00 [00:00:51]Write to MH i2c: E2 08 00 D5 5C 80 17 00 00 00 00 00 00 B1 [00:00:51]Write i2c OK [00:00:51]MH_I2C_Read... [00:00:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [00:00:51]Read from MH i2c: E2 [00:00:51]MH_I2C_Read... [00:00:51]Read from MH i2c: E2 E4 00 [00:00:51]MH_I2C_Read... [00:00:51]Read from MH i2c: E2 E4 00 D5 5C 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 91 [00:00:51]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 [00:00:51]wFMCommunicate OK [00:00:51]SAM_PROTO_GetFMData done [00:00:51]requested_item fm.sale_refund.total is exist - process it [00:00:51]requested_item fm.buy.total is exist - process it [00:00:51]requested_item shift.sale.total is exist - process it [00:00:51]SAM_PROTO_GetShiftData [00:00:51]wFMCommunicate request_size=4 [00:00:51]MH_SAM_APDU [00:00:51]CAPDU: 80 13 02 00 [00:00:51]Write to MH i2c: E2 08 00 D6 5C 80 13 02 00 00 00 00 00 B0 [00:00:51]Write i2c OK [00:00:51]MH_I2C_Read... [00:00:52]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:00:52]Read from MH i2c: E2 [00:00:52]MH_I2C_Read... [00:00:52]Read from MH i2c: E2 FD 00 [00:00:52]MH_I2C_Read... [00:00:52]Read from MH i2c: E2 FD 00 D6 5C 00 BB 04 AA 04 B7 04 6E 04 04 00 FF 00 00 00 69 04 9D 00 6F 04 04 00 F6 00 00 00 B1 04 04 00 9C 05 5D 01 70 04 03 00 E4 1C A4 72 04 03 00 B8 E8 B8 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 18 12 25 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 CD 16 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 98 00 6F 04 04 00 09 00 00 00 B1 04 03 00 74 DB 14 70 04 03 00 74 DB 14 72 04 00 00 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 26 37 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 13 [00:00:52]RAPDU: BB 04 AA 04 B7 04 6E 04 04 00 FF 00 00 00 69 04 9D 00 6F 04 04 00 F6 00 00 00 B1 04 04 00 9C 05 5D 01 70 04 03 00 E4 1C A4 72 04 03 00 B8 E8 B8 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 18 12 25 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 CD 16 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 98 00 6F 04 04 00 09 00 00 00 B1 04 03 00 74 DB 14 70 04 03 00 74 DB 14 72 04 00 00 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 26 37 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [00:00:52]wFMCommunicate OK [00:00:52]wFMCommunicate request_size=4 [00:00:52]MH_SAM_APDU [00:00:52]CAPDU: 80 17 00 00 [00:00:52]Write to MH i2c: E2 08 00 D7 5C 80 17 00 00 00 00 00 00 B3 [00:00:52]Write i2c OK [00:00:52]MH_I2C_Read... [00:00:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:52]Read from MH i2c: E2 [00:00:52]MH_I2C_Read... [00:00:52]Read from MH i2c: E2 FD 00 [00:00:52]MH_I2C_Read... [00:00:52]Read from MH i2c: E2 FD 00 D7 5C 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 42 2F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 CE [00:00:52]RAPDU: 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 42 2F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:00:52]wFMCommunicate OK [00:00:52]wFMCommunicate request_size=4 [00:00:52]MH_SAM_APDU [00:00:52]CAPDU: 80 17 00 00 [00:00:52]Write to MH i2c: E2 08 00 D8 5C 80 17 00 00 00 00 00 00 B4 [00:00:52]Write i2c OK [00:00:52]MH_I2C_Read... [00:00:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:52]Read from MH i2c: E2 [00:00:52]MH_I2C_Read... [00:00:52]Read from MH i2c: E2 FD 00 [00:00:52]MH_I2C_Read... [00:00:52]Read from MH i2c: E2 FD 00 D8 5C 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E0 [00:00:52]RAPDU: 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:00:52]wFMCommunicate OK [00:00:52]wFMCommunicate request_size=4 [00:00:52]MH_SAM_APDU [00:00:52]CAPDU: 80 17 00 00 [00:00:52]Write to MH i2c: E2 08 00 D9 5C 80 17 00 00 00 00 00 00 B5 [00:00:52]Write i2c OK [00:00:52]MH_I2C_Read... [00:00:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:53]Read from MH i2c: E2 [00:00:53]MH_I2C_Read... [00:00:53]Read from MH i2c: E2 FD 00 [00:00:53]MH_I2C_Read... [00:00:53]Read from MH i2c: E2 FD 00 D9 5C 00 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 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 90 00 2A [00:00:53]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 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 90 00 [00:00:53]wFMCommunicate OK [00:00:53]wFMCommunicate request_size=4 [00:00:53]MH_SAM_APDU [00:00:53]CAPDU: 80 17 00 00 [00:00:53]Write to MH i2c: E2 08 00 DA 5C 80 17 00 00 00 00 00 00 B6 [00:00:53]Write i2c OK [00:00:53]MH_I2C_Read... [00:00:53]Read from MH i2c: E2 [00:00:53]MH_I2C_Read... [00:00:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 213! [00:00:53]Read from MH i2c: E2 D8 00 [00:00:53]MH_I2C_Read... [00:00:53]Read from MH i2c: E2 D8 00 DA 5C 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9D [00:00:53]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:00:53]wFMCommunicate OK [00:00:53]SAM_PROTO_GetShiftData done [00:00:53]requested_item shift.sale.total_cash is exist - process it [00:00:53]requested_item shift.sale_refund.total is exist - process it [00:00:53]requested_item shift.sale_refund.total_cash is exist - process it [00:00:53]requested_item shift.buy.total is exist - process it [00:00:53]requested_item shift.buy.total_cash is exist - process it [00:00:53]produce_requested_data done [00:00:53]produce_requested_data return {"fm.sale.total":104563850.15,"fm.sale_refund.total":8793262.45,"fm.buy.total":0.00,"shift.sale.total":228735.00,"shift.sale.total_cash":107553.00,"shift.sale_refund.total":13669.00,"shift.sale_refund.total_cash":13669.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:00:53]process_action_free get_value [00:00:53]json_value_free [00:00:53]json_value_free done [00:00:53]process_json_proto returns [00:00:53]Send response to host [00:00:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":104563850.15,"fm.sale_refund.total":8793262.45,"fm.buy.total":0.00,"shift.sale.total":228735.00,"shift.sale.total_cash":107553.00,"shift.sale_refund.total":13669.00,"shift.sale_refund.total_cash":13669.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:00:53]free response buf [00:00:53]execute_script done [00:00:53]execute_script returns [00:00:53]free content buf [00:00:53]Sock 10.Close socket [00:00:53]Sock 10.Thread stoped [00:00:53]accept exits with 7 [00:00:53]New connection [00:00:53]New thread 3067395428 created [00:00:53]Thread 3067252068 joined [00:00:53]Waiting for new connection... [00:00:53] Sock 7.Parse request [00:00:53]Sock 7.Check first char [00:00:53]Sock 7.First char is OK [00:00:53]request: POST /json_proto HTTP/1.0 [00:00:53]Method: POST [00:00:53]URL: /json_proto [00:00:53]Method is POST - this is cgi request [00:00:53]url: /json_proto [00:00:53]query_string will be loaded in cgi processing [00:00:53]execute_cgi json_proto POST (null) [00:00:53]execute_cgi path=json_proto method=POST [00:00:53]POST find Content-Length [00:00:53]Host: 172.17.48.197:8080 [00:00:53]Content-Length: 331 [00:00:53]Content-Type: application/json [00:00:53] [00:00:53]POST finish read [00:00:53]Found Content-Length = 331 [00:00:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:00:53]execute_script... [00:00:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:00:53]POST & json_proto [00:00:53]process_json_proto [00:00:53]json parsed OK: [00:00:53]protocol is kg_v1.0 [00:00:53]action value=get_value [00:00:53]process_action get_value [00:00:53]cmd_get_value [00:00:53]process_action get_value done [00:00:53]requested_data is exist [00:00:53]produce_requested_data [00:00:53]requested_item fm.sale.total is exist - process it [00:00:53]SAM_PROTO_GetFMData [00:00:53]wFMCommunicate request_size=4 [00:00:53]MH_SAM_APDU [00:00:53]CAPDU: 80 13 03 00 [00:00:53]Write to MH i2c: E2 08 00 DB 5C 80 13 03 00 00 00 00 00 B6 [00:00:53]Write i2c OK [00:00:53]MH_I2C_Read... [00:00:54]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:00:54]Read from MH i2c: E2 [00:00:54]MH_I2C_Read... [00:00:54]Read from MH i2c: E2 FD 00 [00:00:54]MH_I2C_Read... [00:00:54]Read from MH i2c: E2 FD 00 DB 5C 00 C7 04 85 04 C3 04 6E 04 04 00 80 DF 01 00 69 04 A3 00 6F 04 04 00 65 CA 01 00 B1 04 05 00 F7 C5 3F 6F 02 70 04 05 00 9D FC 70 AB 01 72 04 04 00 5A C9 CE C3 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 62 ED 32 42 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 2B 17 84 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 1B 15 00 00 B1 04 04 00 25 74 69 34 70 04 04 00 05 26 69 34 72 04 02 00 20 4E 00 04 7C 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 4B 12 91 05 EF 90 00 58 [00:00:54]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 80 DF 01 00 69 04 A3 00 6F 04 04 00 65 CA 01 00 B1 04 05 00 F7 C5 3F 6F 02 70 04 05 00 9D FC 70 AB 01 72 04 04 00 5A C9 CE C3 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 62 ED 32 42 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 2B 17 84 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 1B 15 00 00 B1 04 04 00 25 74 69 34 70 04 04 00 05 26 69 34 72 04 02 00 20 4E 00 04 7C 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 4B 12 91 05 EF 90 00 [00:00:54]wFMCommunicate OK [00:00:54]wFMCommunicate request_size=4 [00:00:54]MH_SAM_APDU [00:00:54]CAPDU: 80 17 00 00 [00:00:54]Write to MH i2c: E2 08 00 DC 5C 80 17 00 00 00 00 00 00 B8 [00:00:54]Write i2c OK [00:00:54]MH_I2C_Read... [00:00:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:54]Read from MH i2c: E2 [00:00:54]MH_I2C_Read... [00:00:54]Read from MH i2c: E2 FD 00 [00:00:54]MH_I2C_Read... [00:00:54]Read from MH i2c: E2 FD 00 DC 5C 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 D5 BF 76 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 CF [00:00:54]RAPDU: 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 D5 BF 76 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:00:54]wFMCommunicate OK [00:00:54]wFMCommunicate request_size=4 [00:00:54]MH_SAM_APDU [00:00:54]CAPDU: 80 17 00 00 [00:00:54]Write to MH i2c: E2 08 00 DD 5C 80 17 00 00 00 00 00 00 B9 [00:00:54]Write i2c OK [00:00:54]MH_I2C_Read... [00:00:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:54]Read from MH i2c: E2 [00:00:54]MH_I2C_Read... [00:00:54]Read from MH i2c: E2 FD 00 [00:00:54]MH_I2C_Read... [00:00:54]Read from MH i2c: E2 FD 00 DD 5C 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 91 [00:00:54]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 90 00 [00:00:54]wFMCommunicate OK [00:00:54]wFMCommunicate request_size=4 [00:00:54]MH_SAM_APDU [00:00:54]CAPDU: 80 17 00 00 [00:00:54]Write to MH i2c: E2 08 00 DE 5C 80 17 00 00 00 00 00 00 BA [00:00:54]Write i2c OK [00:00:54]MH_I2C_Read... [00:00:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:55]Read from MH i2c: E2 [00:00:55]MH_I2C_Read... [00:00:55]Read from MH i2c: E2 FD 00 [00:00:55]MH_I2C_Read... [00:00:55]Read from MH i2c: E2 FD 00 DE 5C 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 35 [00:00: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 [00:00:55]wFMCommunicate OK [00:00:55]wFMCommunicate request_size=4 [00:00:55]MH_SAM_APDU [00:00:55]CAPDU: 80 17 00 00 [00:00:55]Write to MH i2c: E2 08 00 DF 5C 80 17 00 00 00 00 00 00 BB [00:00:55]Write i2c OK [00:00:55]MH_I2C_Read... [00:00:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [00:00:55]Read from MH i2c: E2 [00:00:55]MH_I2C_Read... [00:00:55]Read from MH i2c: E2 E4 00 [00:00:55]MH_I2C_Read... [00:00:55]Read from MH i2c: E2 E4 00 DF 5C 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 9B [00:00: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 [00:00:55]wFMCommunicate OK [00:00:55]SAM_PROTO_GetFMData done [00:00:55]requested_item fm.sale_refund.total is exist - process it [00:00:55]requested_item fm.buy.total is exist - process it [00:00:55]requested_item shift.sale.total is exist - process it [00:00:55]SAM_PROTO_GetShiftData [00:00:55]wFMCommunicate request_size=4 [00:00:55]MH_SAM_APDU [00:00:55]CAPDU: 80 13 02 00 [00:00:55]Write to MH i2c: E2 08 00 E0 5C 80 13 02 00 00 00 00 00 BA [00:00:55]Write i2c OK [00:00:55]MH_I2C_Read... [00:00:56]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:00:56]Read from MH i2c: E2 [00:00:56]MH_I2C_Read... [00:00:56]Read from MH i2c: E2 FD 00 [00:00:56]MH_I2C_Read... [00:00:56]Read from MH i2c: E2 FD 00 E0 5C 00 BB 04 AA 04 B7 04 6E 04 04 00 FF 00 00 00 69 04 9D 00 6F 04 04 00 F6 00 00 00 B1 04 04 00 9C 05 5D 01 70 04 03 00 E4 1C A4 72 04 03 00 B8 E8 B8 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 18 12 25 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 CD 16 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 98 00 6F 04 04 00 09 00 00 00 B1 04 03 00 74 DB 14 70 04 03 00 74 DB 14 72 04 00 00 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 26 37 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 1D [00:00:56]RAPDU: BB 04 AA 04 B7 04 6E 04 04 00 FF 00 00 00 69 04 9D 00 6F 04 04 00 F6 00 00 00 B1 04 04 00 9C 05 5D 01 70 04 03 00 E4 1C A4 72 04 03 00 B8 E8 B8 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 18 12 25 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 CD 16 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 98 00 6F 04 04 00 09 00 00 00 B1 04 03 00 74 DB 14 70 04 03 00 74 DB 14 72 04 00 00 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 26 37 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [00:00:56]wFMCommunicate OK [00:00:56]wFMCommunicate request_size=4 [00:00:56]MH_SAM_APDU [00:00:56]CAPDU: 80 17 00 00 [00:00:56]Write to MH i2c: E2 08 00 E1 5C 80 17 00 00 00 00 00 00 BD [00:00:56]Write i2c OK [00:00:56]MH_I2C_Read... [00:00:56]OFD Sender: No OFD packet to send [00:00:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:56]Read from MH i2c: E2 [00:00:56]MH_I2C_Read... [00:00:56]Read from MH i2c: E2 FD 00 [00:00:56]MH_I2C_Read... [00:00:56]Read from MH i2c: E2 FD 00 E1 5C 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 42 2F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D8 [00:00:56]RAPDU: 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 42 2F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:00:56]wFMCommunicate OK [00:00:56]wFMCommunicate request_size=4 [00:00:56]MH_SAM_APDU [00:00:56]CAPDU: 80 17 00 00 [00:00:56]Write to MH i2c: E2 08 00 E2 5C 80 17 00 00 00 00 00 00 BE [00:00:56]Write i2c OK [00:00:56]MH_I2C_Read... [00:00:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:57]Read from MH i2c: E2 [00:00:57]MH_I2C_Read... [00:00:57]Read from MH i2c: E2 FD 00 [00:00:57]MH_I2C_Read... [00:00:57]Read from MH i2c: E2 FD 00 E2 5C 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 EA [00:00:57]RAPDU: 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:00:57]wFMCommunicate OK [00:00:57]wFMCommunicate request_size=4 [00:00:57]MH_SAM_APDU [00:00:57]CAPDU: 80 17 00 00 [00:00:57]Write to MH i2c: E2 08 00 E3 5C 80 17 00 00 00 00 00 00 BF [00:00:57]Write i2c OK [00:00:57]MH_I2C_Read... [00:00:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:57]Read from MH i2c: E2 [00:00:57]MH_I2C_Read... [00:00:57]Read from MH i2c: E2 FD 00 [00:00:57]MH_I2C_Read... [00:00:57]Read from MH i2c: E2 FD 00 E3 5C 00 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 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 90 00 34 [00:00:57]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 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 90 00 [00:00:57]wFMCommunicate OK [00:00:57]wFMCommunicate request_size=4 [00:00:57]MH_SAM_APDU [00:00:57]CAPDU: 80 17 00 00 [00:00:57]Write to MH i2c: E2 08 00 E4 5C 80 17 00 00 00 00 00 00 C0 [00:00:57]Write i2c OK [00:00:57]MH_I2C_Read... [00:00:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 213! [00:00:57]Read from MH i2c: E2 [00:00:57]MH_I2C_Read... [00:00:57]Read from MH i2c: E2 D8 00 [00:00:57]MH_I2C_Read... [00:00:57]Read from MH i2c: E2 D8 00 E4 5C 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 A7 [00:00:57]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:00:58]wFMCommunicate OK [00:00:58]SAM_PROTO_GetShiftData done [00:00:58]requested_item shift.sale.total_cash is exist - process it [00:00:58]requested_item shift.sale_refund.total is exist - process it [00:00:58]requested_item shift.sale_refund.total_cash is exist - process it [00:00:58]requested_item shift.buy.total is exist - process it [00:00:58]requested_item shift.buy.total_cash is exist - process it [00:00:58]produce_requested_data done [00:00:58]produce_requested_data return {"fm.sale.total":104563850.15,"fm.sale_refund.total":8793262.45,"fm.buy.total":0.00,"shift.sale.total":228735.00,"shift.sale.total_cash":107553.00,"shift.sale_refund.total":13669.00,"shift.sale_refund.total_cash":13669.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:00:58]process_action_free get_value [00:00:58]json_value_free [00:00:58]json_value_free done [00:00:58]process_json_proto returns [00:00:58]Send response to host [00:00:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":104563850.15,"fm.sale_refund.total":8793262.45,"fm.buy.total":0.00,"shift.sale.total":228735.00,"shift.sale.total_cash":107553.00,"shift.sale_refund.total":13669.00,"shift.sale_refund.total_cash":13669.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:00:58]free response buf [00:00:58]execute_script done [00:00:58]execute_script returns [00:00:58]free content buf [00:00:58]Sock 7.Close socket [00:00:58]Sock 7.Thread stoped [00:00:58]accept exits with 9 [00:00:58]New connection [00:00:58]New thread 3067252068 created [00:00:58]Thread 3067395428 joined [00:00:58]Waiting for new connection... [00:00:58] Sock 9.Parse request [00:00:58]Sock 9.Check first char [00:00:58]Sock 9.First char is OK [00:00:58]request: POST /json_proto HTTP/1.0 [00:00:58]Method: POST [00:00:58]URL: /json_proto [00:00:58]Method is POST - this is cgi request [00:00:58]url: /json_proto [00:00:58]query_string will be loaded in cgi processing [00:00:58]execute_cgi json_proto POST (null) [00:00:58]execute_cgi path=json_proto method=POST [00:00:58]POST find Content-Length [00:00:58]Host: 172.17.48.197:8080 [00:00:58]Content-Length: 274 [00:00:58]Content-Type: application/json [00:00:58] [00:00:58]POST finish read [00:00:58]Found Content-Length = 274 [00:00:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:00:58]execute_script... [00:00:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0422\u0443\u0440\u0434\u0443\u043C\u0431\u0435\u043A \u0443. \u041A. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:00:58]POST & json_proto [00:00:58]process_json_proto [00:00:58]json parsed OK: [00:00:58]protocol is kg_v1.0 [00:00:58]action value=close_shift [00:00:58]process_action close_shift [00:00:58]cmd_close_shift [00:00:58]MH_GetDate [00:00:58]Write to MH i2c: F0 00 00 E5 5C 30 [00:00:58]Write i2c OK [00:00:58]MH_I2C_Read... [00:00:58]Read from MH i2c: F0 [00:00:58]MH_I2C_Read... [00:00:58]Read from MH i2c: F0 09 00 [00:00:58]MH_I2C_Read... [00:00:58]Read from MH i2c: F0 09 00 E5 5C 00 3F 0F E5 65 6C AF E3 65 34 [00:00:58]GetLastDocTimeStamp 1709509377 [00:00:58]current date 1709510463 [00:00:58]FM_GetShiftState [00:00:58]SAM_PROTO_GetShiftState [00:00:58]wFMCommunicate request_size=4 [00:00:58]MH_SAM_APDU [00:00:58]CAPDU: 80 13 01 00 [00:00:58]Write to MH i2c: E2 08 00 E6 5C 80 13 01 00 00 00 00 00 BF [00:00:58]Write i2c OK [00:00:58]MH_I2C_Read... [00:00:58]Read from MH i2c: E2 [00:00:58]MH_I2C_Read... [00:00:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:00:58]Read from MH i2c: E2 0E 00 [00:00:58]MH_I2C_Read... [00:00:58]Read from MH i2c: E2 0E 00 E6 5C 00 09 00 01 AB C3 E3 65 00 00 00 00 90 00 81 [00:00:58]RAPDU: 09 00 01 AB C3 E3 65 00 00 00 00 90 00 [00:00:58]wFMCommunicate OK [00:00:58]SAM_PROTO_GetShiftState done [00:00:58]FM_GetShiftState done [00:00:58]KKMCreateCloseShiftDocument [00:00:58]Load OK [00:00:58]Malloc new data [00:00:58]MH_GetDate [00:00:58]Write to MH i2c: F0 00 00 E7 5C 32 [00:00:58]Write i2c OK [00:00:58]MH_I2C_Read... [00:00:58]Read from MH i2c: F0 [00:00:58]MH_I2C_Read... [00:00:58]Read from MH i2c: F0 09 00 [00:00:58]MH_I2C_Read... [00:00:58]Read from MH i2c: F0 09 00 E7 5C 00 3F 0F E5 65 6C AF E3 65 36 [00:00:58]Malloc new data [00:00:58]Malloc new data [00:00:58]Malloc new data [00:00:58]Malloc new data [00:00:58]KKMCreateCloseShiftDocument OK [00:00:58]KKMSetCloseShiftData OK [00:00:58]ProcessDocumentItem done err = 0, tmpTLVsize=77 [00:00:58]tlvbuf is 00FE0C50 [00:00:58]KKMLoadAndSignCloseShiftData [00:00:58]SAM_PROTO_ProcessDocument [00:00:58]wFMCommunicate request_size=9 [00:00:58]MH_SAM_APDU [00:00:58]CAPDU: 80 15 01 00 04 05 00 4D 00 [00:00:58]Write to MH i2c: E2 0C 00 E8 5C 80 15 01 00 04 00 05 00 4D 00 00 00 1D [00:00:58]Write i2c OK [00:00:58]MH_I2C_Read... [00:00:58]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:00:58]Read from MH i2c: E2 [00:00:58]MH_I2C_Read... [00:00:58]Read from MH i2c: E2 03 00 [00:00:58]MH_I2C_Read... [00:00:58]Read from MH i2c: E2 03 00 E8 5C 00 90 00 B8 [00:00:58]RAPDU: 90 00 [00:00:58]wFMCommunicate OK [00:00:58]wFMCommunicate request_size=23 [00:00:58]MH_SAM_APDU [00:00: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 [00:00:58]Write to MH i2c: E2 1A 00 E9 5C 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 BA [00:00:58]Write i2c OK [00:00:58]MH_I2C_Read... [00:00:58]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:00:58]Read from MH i2c: E2 [00:00:58]MH_I2C_Read... [00:00:58]Read from MH i2c: E2 03 00 [00:00:58]MH_I2C_Read... [00:00:58]Read from MH i2c: E2 03 00 E9 5C 00 90 00 B9 [00:00:58]RAPDU: 90 00 [00:00:58]wFMCommunicate OK [00:00:58]wFMCommunicate request_size=36 [00:00:58]MH_SAM_APDU [00:00:58]CAPDU: 80 15 02 00 1F FD 03 1B 00 D0 A2 D1 83 D1 80 D0 B4 D1 83 D0 BC D0 B1 D0 B5 D0 BA 20 D1 83 2E 20 D0 9A 2E 20 [00:00:58]Write to MH i2c: E2 27 00 EA 5C 80 15 02 00 1F 00 FD 03 1B 00 D0 A2 D1 83 D1 80 D0 B4 D1 83 D0 BC D0 B1 D0 B5 D0 BA 20 D1 83 2E 20 D0 9A 2E 20 00 00 A4 [00:00:58]Write i2c OK [00:00:58]MH_I2C_Read... [00:00:58]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:00:58]Read from MH i2c: E2 [00:00:58]MH_I2C_Read... [00:00:58]Read from MH i2c: E2 03 00 [00:00:58]MH_I2C_Read... [00:00:58]Read from MH i2c: E2 03 00 EA 5C 00 90 00 BA [00:00:58]RAPDU: 90 00 [00:00:58]wFMCommunicate OK [00:00:58]wFMCommunicate request_size=13 [00:00:58]MH_SAM_APDU [00:00:58]CAPDU: 80 15 02 00 08 F4 03 04 00 3F 0F E5 65 [00:00:58]Write to MH i2c: E2 10 00 EB 5C 80 15 02 00 08 00 F4 03 04 00 3F 0F E5 65 00 00 6A [00:00:58]Write i2c OK [00:00:58]MH_I2C_Read... [00:00:58]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:00:58]Read from MH i2c: E2 [00:00:58]MH_I2C_Read... [00:00:58]Read from MH i2c: E2 03 00 [00:00:58]MH_I2C_Read... [00:00:58]Read from MH i2c: E2 03 00 EB 5C 00 90 00 BB [00:00:58]RAPDU: 90 00 [00:00:58]wFMCommunicate OK [00:00:58]wFMCommunicate request_size=25 [00:00:58]MH_SAM_APDU [00:00:58]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 [00:00:58]Write to MH i2c: E2 1C 00 EC 5C 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 00 00 29 [00:00:58]Write i2c OK [00:00:58]MH_I2C_Read... [00:00:58]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:00:58]Read from MH i2c: E2 [00:00:58]MH_I2C_Read... [00:00:58]Read from MH i2c: E2 03 00 [00:00:58]MH_I2C_Read... [00:00:58]Read from MH i2c: E2 03 00 EC 5C 00 90 00 BC [00:00:58]RAPDU: 90 00 [00:00:58]wFMCommunicate OK [00:00:58]wFMCommunicate request_size=4 [00:00:58]MH_SAM_APDU [00:00:58]CAPDU: 80 15 03 00 [00:00:58]Write to MH i2c: E2 08 00 ED 5C 80 15 03 00 00 00 00 00 CA [00:00:58]Write i2c OK [00:00:58]MH_I2C_Read... [00:00:59]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [00:00:59]Read from MH i2c: E2 [00:00:59]MH_I2C_Read... [00:00:59]Read from MH i2c: E2 FD 00 [00:00:59]MH_I2C_Read... [00:00:59]Read from MH i2c: E2 FD 00 ED 5C 00 FE 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 07 E2 01 00 0E 04 04 00 43 01 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 01 01 00 00 AA 04 B7 04 6E 04 04 00 FF 00 00 00 69 04 9D 00 6F 04 04 00 F6 00 00 00 B1 04 04 00 9C 05 5D 01 70 04 03 00 E4 1C A4 72 04 03 00 B8 E8 B8 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 18 12 25 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 CD 16 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 98 00 6F 04 04 00 09 00 00 00 B1 04 03 00 74 DB 90 00 9B [00:00:59]RAPDU: FE 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 07 E2 01 00 0E 04 04 00 43 01 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 01 01 00 00 AA 04 B7 04 6E 04 04 00 FF 00 00 00 69 04 9D 00 6F 04 04 00 F6 00 00 00 B1 04 04 00 9C 05 5D 01 70 04 03 00 E4 1C A4 72 04 03 00 B8 E8 B8 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 18 12 25 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 CD 16 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 98 00 6F 04 04 00 09 00 00 00 B1 04 03 00 74 DB 90 00 [00:00:59]wFMCommunicate OK [00:00:59]SAM_PROTO_ProcessDocument answer len = 1278 [00:00:59]SAM_PROTO_ProcessDocument remain to read = 1030 [00:00:59]wFMCommunicate request_size=4 [00:00:59]MH_SAM_APDU [00:00:59]CAPDU: 80 17 00 00 [00:00:59]Write to MH i2c: E2 08 00 EE 5C 80 17 00 00 00 00 00 00 CA [00:00:59]Write i2c OK [00:00:59]MH_I2C_Read... [00:00:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:59]Read from MH i2c: E2 [00:00:59]MH_I2C_Read... [00:00:59]Read from MH i2c: E2 FD 00 [00:00:59]MH_I2C_Read... [00:00:59]Read from MH i2c: E2 FD 00 EE 5C 00 14 70 04 03 00 74 DB 14 72 04 00 00 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 26 37 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 42 2F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 ED [00:00:59]RAPDU: 14 70 04 03 00 74 DB 14 72 04 00 00 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 26 37 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 42 2F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:00:59]wFMCommunicate OK [00:00:59]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:00:59]SAM_PROTO_ProcessDocument remain to read = 780 [00:00:59]wFMCommunicate request_size=4 [00:00:59]MH_SAM_APDU [00:00:59]CAPDU: 80 17 00 00 [00:00:59]Write to MH i2c: E2 08 00 EF 5C 80 17 00 00 00 00 00 00 CB [00:00:59]Write i2c OK [00:00:59]MH_I2C_Read... [00:01:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:00]Read from MH i2c: E2 [00:01:00]MH_I2C_Read... [00:01:00]Read from MH i2c: E2 FD 00 [00:01:00]MH_I2C_Read... [00:01:00]Read from MH i2c: E2 FD 00 EF 5C 00 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 31 [00:01:00]RAPDU: 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:01:00]wFMCommunicate OK [00:01:00]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:01:00]SAM_PROTO_ProcessDocument remain to read = 530 [00:01:00]wFMCommunicate request_size=4 [00:01:00]MH_SAM_APDU [00:01:00]CAPDU: 80 17 00 00 [00:01:00]Write to MH i2c: E2 08 00 F0 5C 80 17 00 00 00 00 00 00 CC [00:01:00]Write i2c OK [00:01:00]MH_I2C_Read... [00:01:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:00]Read from MH i2c: E2 [00:01:00]MH_I2C_Read... [00:01:00]Read from MH i2c: E2 FD 00 [00:01:00]MH_I2C_Read... [00:01:00]Read from MH i2c: E2 FD 00 F0 5C 00 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6A [00:01:00]RAPDU: 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:01:00]wFMCommunicate OK [00:01:00]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:01:00]SAM_PROTO_ProcessDocument remain to read = 280 [00:01:00]wFMCommunicate request_size=4 [00:01:00]MH_SAM_APDU [00:01:00]CAPDU: 80 17 00 00 [00:01:00]Write to MH i2c: E2 08 00 F1 5C 80 17 00 00 00 00 00 00 CD [00:01:00]Write i2c OK [00:01:00]MH_I2C_Read... [00:01:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:01]Read from MH i2c: E2 [00:01:01]MH_I2C_Read... [00:01:01]Read from MH i2c: E2 FD 00 [00:01:01]MH_I2C_Read... [00:01:01]Read from MH i2c: E2 FD 00 F1 5C 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 90 00 7C [00:01:01]RAPDU: 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 90 00 [00:01:01]wFMCommunicate OK [00:01:01]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:01:01]SAM_PROTO_ProcessDocument remain to read = 30 [00:01:01]wFMCommunicate request_size=4 [00:01:01]MH_SAM_APDU [00:01:01]CAPDU: 80 17 00 00 [00:01:01]Write to MH i2c: E2 08 00 F2 5C 80 17 00 00 00 00 00 00 CE [00:01:01]Write i2c OK [00:01:01]MH_I2C_Read... [00:01:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 30! [00:01:01]Read from MH i2c: E2 [00:01:01]MH_I2C_Read... [00:01:01]Read from MH i2c: E2 21 00 [00:01:01]MH_I2C_Read... [00:01:01]Read from MH i2c: E2 21 00 F2 5C 00 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 9D EC 8F 06 1D 7F 90 00 CE [00:01:01]RAPDU: 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 9D EC 8F 06 1D 7F 90 00 [00:01:01]wFMCommunicate OK [00:01:01]SAM_PROTO_ProcessDocument received (without SW) 30 bytes [00:01:01]SAM_PROTO_ProcessDocument done [00:01:01]1209 (1) - 1.0 - номер версии ФФД [00:01:01]1041 (16) - 0000000000874798 - номер ФМ [00:01:01]1040 (4) - 123399 - номер ФД [00:01:01]1038 (4) - 323 - номер смены [00:01:01]1118 (4) - 255 - количество кассовых чеков за смену [00:01:01]1111 (4) - 257 - общее количество ФД за смену [00:01:01]1194 (1207) - счетчики итогов смены [00:01:01] 1134 (4) - 255 - количество чеков со всеми признаками расчетов [00:01:01] 1129 (157) - счетчики операций «приход» [00:01:01] 1135 (4) - 246 - количество чеков по признаку расчетов [00:01:01] 1201 (4) - 228735.00 - общая итоговая сумма в чеках [00:01:01] 1136 (3) - 107553.00 - итоговая сумма в чеках наличными [00:01:01] 1138 (3) - 121182.00 - итоговая сумма в чеках безналичными [00:01:01] 1024 (123) - суммы налогов [00:01:01] 1006 (9) - суммы НДС [00:01:01] 1010 (1) - 0% - код ставки НДС [00:01:01] 1011 (0) - 0.00 - сумма НДС по ставке [00:01:01] 1006 (12) - суммы НДС [00:01:01] 1010 (1) - 12% - код ставки НДС [00:01:01] 1011 (3) - 24294.64 - сумма НДС по ставке [00:01:01] 1007 (9) - суммы НСП [00:01:01] 1014 (1) - 0% - код ставки НСП [00:01:01] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:01] 1007 (12) - суммы НСП [00:01:01] 1014 (1) - 1% - код ставки НСП [00:01:01] 1015 (3) - 2024.45 - сумма НСП по ставке [00:01:01] 1007 (9) - суммы НСП [00:01:01] 1014 (1) - 2% - код ставки НСП [00:01:01] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:01] 1007 (9) - суммы НСП [00:01:01] 1014 (1) - 3% - код ставки НСП [00:01:01] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:01] 1007 (9) - суммы НСП [00:01:01] 1014 (1) - 5% - код ставки НСП [00:01:01] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:01] 1007 (9) - суммы НСП [00:01:01] 1014 (1) - 0,50% - код ставки НСП [00:01:01] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:01] 1007 (9) - суммы НСП [00:01:01] 1014 (1) - 1,50% - код ставки НСП [00:01:01] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:01] 1130 (152) - счетчики операций «возврат прихода» [00:01:01] 1135 (4) - 9 - количество чеков по признаку расчетов [00:01:01] 1201 (3) - 13669.00 - общая итоговая сумма в чеках [00:01:01] 1136 (3) - 13669.00 - итоговая сумма в чеках наличными [00:01:01] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:01:01] 1024 (122) - суммы налогов [00:01:01] 1006 (9) - суммы НДС [00:01:01] 1010 (1) - 0% - код ставки НДС [00:01:01] 1011 (0) - 0.00 - сумма НДС по ставке [00:01:01] 1006 (12) - суммы НДС [00:01:01] 1010 (1) - 12% - код ставки НДС [00:01:01] 1011 (3) - 1451.90OFD Sender: No OFD packet to send [00:01:01] - сумма НДС по ставке [00:01:01] 1007 (9) - суммы НСП [00:01:01] 1014 (1) - 0% - код ставки НСП [00:01:01] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:01] 1007 (11) - суммы НСП [00:01:01] 1014 (1) - 1% - код ставки НСП [00:01:01] 1015 (2) - 120.98 - сумма НСП по ставке [00:01:01] 1007 (9) - суммы НСП [00:01:01] 1014 (1) - 2% - код ставки НСП [00:01:01] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:01] 1007 (9) - суммы НСП [00:01:01] 1014 (1) - 3% - код ставки НСП [00:01:01] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:01] 1007 (9) - суммы НСП [00:01:01] 1014 (1) - 5% - код ставки НСП [00:01:01] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:01] 1007 (9) - суммы НСП [00:01:01] 1014 (1) - 0,50% - код ставки НСП [00:01:01] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:01] 1007 (9) - суммы НСП [00:01:01] 1014 (1) - 1,50% - код ставки НСП [00:01:01] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:01] 1131 (141) - счетчики операций «расход» [00:01:01] 1135 (4) - 0 - количество чеков по признаку расчетов [00:01:01] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:01:01] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:01:01] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:01:01] 1024 (117) - суммы налогов [00:01:01] 1006 (9) - суммы НДС [00:01:01] 1010 (1) - 0% - код ставки НДС [00:01:01] 1011 (0) - 0.00 - сумма НДС по ставке [00:01:01] 1006 (9) - суммы НДС [00:01:01] 1010 (1) - 12% - код ставки НДС [00:01:01] 1011 (0) - 0.00 - сумма НДС по ставке [00:01:01] 1007 (9) - суммы НСП [00:01:01] 1014 (1) - 0% - код ставки НСП [00:01:01] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:01] 1007 (9) - суммы НСП [00:01:01] 1014 (1) - 1% - код ставки НСП [00:01:01] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:01] 1007 (9) - суммы НСП [00:01:01] 1014 (1) - 2% - код ставки НСП [00:01:01] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:01] 1007 (9) - суммы НСП [00:01:01] 1014 (1) - 3% - код ставки НСП [00:01:01] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:01] 1007 (9) - суммы НСП [00:01:01] 1014 (1) - 5% - код ставки НСП [00:01:01] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:01] 1007 (9) - суммы НСП [00:01:01] 1014 (1) - 0,50% - код ставки НСП [00:01:01] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:01] 1007 (9) - суммы НСП [00:01:01] 1014 (1) - 1,50% - код ставки НСП [00:01:01] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:01] 1132 (141) - счетчики операций «возврат расхода» [00:01:01] 1135 (4) - 0 - количество чеков по признаку расчетов [00:01:01] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:01:01] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:01:01] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:01:01] 1024 (117) - суммы налогов [00:01:01] 1006 (9) - суммы НДС [00:01:01] 1010 (1) - 0% - код ставки НДС [00:01:01] 1011 (0) - 0.00 - сумма НДС по ставке [00:01:01] 1006 (9) - суммы НДС [00:01:01] 1010 (1) - 12% - код ставки НДС [00:01:01] 1011 (0) - 0.00 - сумма НДС по ставке [00:01:01] 1007 (9) - суммы НСП [00:01:01] 1014 (1) - 0% - код ставки НСП [00:01:01] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:01] 1007 (9) - суммы НСП [00:01:01] 1014 (1) - 1% - код ставки НСП [00:01:01] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:01] 1007 (9) - суммы НСП [00:01:01] 1014 (1) - 2% - код ставки НСП [00:01:01] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:01] 1007 (9) - суммы НСП [00:01:01] 1014 (1) - 3% - код ставки НСП [00:01:01] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:01] 1007 (9) - суммы НСП [00:01:01] 1014 (1) - 5% - код ставки НСП [00:01:01] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:01] 1007 (9) - суммы НСП [00:01:01] 1014 (1) - 0,50% - код ставки НСП [00:01:01] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:01] 1007 (9) - суммы НСП [00:01:01] 1014 (1) - 1,50% - код ставки НСП [00:01:01] 1015 (0) - 0.00 - сумма НСП по ставке [00:01:01] 1133 (588) - - счетчики коррекции - не используются [00:01:01]1077 (6) - 173639337385343 - ФПД [00:01:01]SetTLVBufToDocument [00:01:01]Processing tag 1209 (04B9) [00:01:01]Malloc new data [00:01:01]Processing tag 1041 (0411) [00:01:01]Processing tag 1040 (0410) [00:01:01]Malloc new data [00:01:01]Processing tag 1038 (040E) [00:01:01]Malloc new data [00:01:01]Processing tag 1118 (045E) [00:01:01]Malloc new data [00:01:01]Processing tag 1111 (0457) [00:01:01]Malloc new data [00:01:01]Processing tag 1194 (04AA) [00:01:01]Load OK [00:01:01]SetTLVBufToDocument [00:01:01]Processing tag 1134 (046E) [00:01:01]Malloc new data [00:01:01]Processing tag 1129 (0469) [00:01:01]Load OK [00:01:01]SetTLVBufToDocument [00:01:01]Processing tag 1135 (046F) [00:01:01]Malloc new data [00:01:01]Processing tag 1201 (04B1) [00:01:01]Malloc new data [00:01:01]Processing tag 1136 (0470) [00:01:01]Malloc new data [00:01:01]Processing tag 1138 (0472) [00:01:01]Malloc new data [00:01:01]Processing tag 1024 (0400) [00:01:01]Load OK [00:01:01]SetTLVBufToDocument [00:01:01]Processing tag 1006 (03EE) [00:01:01]Load OK [00:01:01]SetTLVBufToDocument [00:01:01]Processing tag 1010 (03F2) [00:01:01]Malloc new data [00:01:01]Processing tag 1011 (03F3) [00:01:01]Malloc new data [00:01:01]SetTLVBufToDocument err=0 [00:01:01]Processing tag 1006 (03EE) [00:01:01]Load OK [00:01:01]SetTLVBufToDocument [00:01:01]Processing tag 1010 (03F2) [00:01:01]Malloc new data [00:01:01]Processing tag 1011 (03F3) [00:01:01]Malloc new data [00:01:01]SetTLVBufToDocument err=0 [00:01:01]Processing tag 1007 (03EF) [00:01:01]Load OK [00:01:01]SetTLVBufToDocument [00:01:01]Processing tag 1014 (03F6) [00:01:01]Malloc new data [00:01:01]Processing tag 1015 (03F7) [00:01:01]Malloc new data [00:01:01]SetTLVBufToDocument err=0 [00:01:01]Processing tag 1007 (03EF) [00:01:01]Load OK [00:01:01]SetTLVBufToDocument [00:01:01]Processing tag 1014 (03F6) [00:01:01]Malloc new data [00:01:01]Processing tag 1015 (03F7) [00:01:01]Malloc new data [00:01:01]SetTLVBufToDocument err=0 [00:01:01]Processing tag 1007 (03EF) [00:01:01]Load OK [00:01:01]SetTLVBufToDocument [00:01:01]Processing tag 1014 (03F6) [00:01:01]Malloc new data [00:01:01]Processing tag 1015 (03F7) [00:01:01]Malloc new data [00:01:01]SetTLVBufToDocument err=0 [00:01:01]Processing tag 1007 (03EF) [00:01:01]Load OK [00:01:01]SetTLVBufToDocument [00:01:01]Processing tag 1014 (03F6) [00:01:01]Malloc new data [00:01:01]Processing tag 1015 (03F7) [00:01:01]Malloc new data [00:01:01]SetTLVBufToDocument err=0 [00:01:01]Processing tag 1007 (03EF) [00:01:01]Load OK [00:01:01]SetTLVBufToDocument [00:01:01]Processing tag 1014 (03F6) [00:01:01]Malloc new data [00:01:01]Processing tag 1015 (03F7) [00:01:01]Malloc new data [00:01:01]SetTLVBufToDocument err=0 [00:01:01]Processing tag 1007 (03EF) [00:01:01]Load OK [00:01:01]SetTLVBufToDocument [00:01:01]Processing tag 1014 (03F6) [00:01:01]Malloc new data [00:01:01]Processing tag 1015 (03F7) [00:01:01]Malloc new data [00:01:01]SetTLVBufToDocument err=0 [00:01:01]Processing tag 1007 (03EF) [00:01:01]Load OK [00:01:01]SetTLVBufToDocument [00:01:02]Processing tag 1014 (03F6) [00:01:02]Malloc new data [00:01:02]Processing tag 1015 (03F7) [00:01:02]Malloc new data [00:01:02]SetTLVBufToDocument err=0 [00:01:02]SetTLVBufToDocument err=0 [00:01:02]SetTLVBufToDocument err=0 [00:01:02]Processing tag 1130 (046A) [00:01:02]Load OK [00:01:02]SetTLVBufToDocument [00:01:02]Processing tag 1135 (046F) [00:01:02]Malloc new data [00:01:02]Processing tag 1201 (04B1) [00:01:02]Malloc new data [00:01:02]Processing tag 1136 (0470) [00:01:02]Malloc new data [00:01:02]Processing tag 1138 (0472) [00:01:02]Malloc new data [00:01:02]Processing tag 1024 (0400) [00:01:02]Load OK [00:01:02]SetTLVBufToDocument [00:01:02]Processing tag 1006 (03EE) [00:01:02]Load OK [00:01:02]SetTLVBufToDocument [00:01:02]Processing tag 1010 (03F2) [00:01:02]Malloc new data [00:01:02]Processing tag 1011 (03F3) [00:01:02]Malloc new data [00:01:02]SetTLVBufToDocument err=0 [00:01:02]Processing tag 1006 (03EE) [00:01:02]Load OK [00:01:02]SetTLVBufToDocument [00:01:02]Processing tag 1010 (03F2) [00:01:02]Malloc new data [00:01:02]Processing tag 1011 (03F3) [00:01:02]Malloc new data [00:01:02]SetTLVBufToDocument err=0 [00:01:02]Processing tag 1007 (03EF) [00:01:02]Load OK [00:01:02]SetTLVBufToDocument [00:01:02]Processing tag 1014 (03F6) [00:01:02]Malloc new data [00:01:02]Processing tag 1015 (03F7) [00:01:02]Malloc new data [00:01:02]SetTLVBufToDocument err=0 [00:01:02]Processing tag 1007 (03EF) [00:01:02]Load OK [00:01:02]SetTLVBufToDocument [00:01:02]Processing tag 1014 (03F6) [00:01:02]Malloc new data [00:01:02]Processing tag 1015 (03F7) [00:01:02]Malloc new data [00:01:02]SetTLVBufToDocument err=0 [00:01:02]Processing tag 1007 (03EF) [00:01:02]Load OK [00:01:02]SetTLVBufToDocument [00:01:02]Processing tag 1014 (03F6) [00:01:02]Malloc new data [00:01:02]Processing tag 1015 (03F7) [00:01:02]Malloc new data [00:01:02]SetTLVBufToDocument err=0 [00:01:02]Processing tag 1007 (03EF) [00:01:02]Load OK [00:01:02]SetTLVBufToDocument [00:01:02]Processing tag 1014 (03F6) [00:01:02]Malloc new data [00:01:02]Processing tag 1015 (03F7) [00:01:02]Malloc new data [00:01:02]SetTLVBufToDocument err=0 [00:01:02]Processing tag 1007 (03EF) [00:01:02]Load OK [00:01:02]SetTLVBufToDocument [00:01:02]Processing tag 1014 (03F6) [00:01:02]Malloc new data [00:01:02]Processing tag 1015 (03F7) [00:01:02]Malloc new data [00:01:02]SetTLVBufToDocument err=0 [00:01:02]Processing tag 1007 (03EF) [00:01:02]Load OK [00:01:02]SetTLVBufToDocument [00:01:02]Processing tag 1014 (03F6) [00:01:02]Malloc new data [00:01:02]Processing tag 1015 (03F7) [00:01:02]Malloc new data [00:01:02]SetTLVBufToDocument err=0 [00:01:02]Processing tag 1007 (03EF) [00:01:02]Load OK [00:01:02]SetTLVBufToDocument [00:01:02]Processing tag 1014 (03F6) [00:01:02]Malloc new data [00:01:02]Processing tag 1015 (03F7) [00:01:02]Malloc new data [00:01:02]SetTLVBufToDocument err=0 [00:01:02]SetTLVBufToDocument err=0 [00:01:02]SetTLVBufToDocument err=0 [00:01:02]Processing tag 1131 (046B) [00:01:02]Load OK [00:01:02]SetTLVBufToDocument [00:01:02]Processing tag 1135 (046F) [00:01:02]Malloc new data [00:01:02]Processing tag 1201 (04B1) [00:01:02]Malloc new data [00:01:02]Processing tag 1136 (0470) [00:01:02]Malloc new data [00:01:02]Processing tag 1138 (0472) [00:01:02]Malloc new data [00:01:02]Processing tag 1024 (0400) [00:01:02]Load OK [00:01:02]SetTLVBufToDocument [00:01:02]Processing tag 1006 (03EE) [00:01:02]Load OK [00:01:02]SetTLVBufToDocument [00:01:02]Processing tag 1010 (03F2) [00:01:02]Malloc new data [00:01:02]Processing tag 1011 (03F3) [00:01:02]Malloc new data [00:01:02]SetTLVBufToDocument err=0 [00:01:02]Processing tag 1006 (03EE) [00:01:02]Load OK [00:01:02]SetTLVBufToDocument [00:01:02]Processing tag 1010 (03F2) [00:01:02]Malloc new data [00:01:02]Processing tag 1011 (03F3) [00:01:02]Malloc new data [00:01:02]SetTLVBufToDocument err=0 [00:01:02]Processing tag 1007 (03EF) [00:01:02]Load OK [00:01:02]SetTLVBufToDocument [00:01:02]Processing tag 1014 (03F6) [00:01:02]Malloc new data [00:01:02]Processing tag 1015 (03F7) [00:01:02]Malloc new data [00:01:02]SetTLVBufToDocument err=0 [00:01:02]Processing tag 1007 (03EF) [00:01:02]Load OK [00:01:02]SetTLVBufToDocument [00:01:02]Processing tag 1014 (03F6) [00:01:02]Malloc new data [00:01:02]Processing tag 1015 (03F7) [00:01:02]Malloc new data [00:01:02]SetTLVBufToDocument err=0 [00:01:02]Processing tag 1007 (03EF) [00:01:02]Load OK [00:01:02]SetTLVBufToDocument [00:01:02]Processing tag 1014 (03F6) [00:01:02]Malloc new data [00:01:02]Processing tag 1015 (03F7) [00:01:02]Malloc new data [00:01:02]SetTLVBufToDocument err=0 [00:01:02]Processing tag 1007 (03EF) [00:01:02]Load OK [00:01:02]SetTLVBufToDocument [00:01:02]Processing tag 1014 (03F6) [00:01:02]Malloc new data [00:01:02]Processing tag 1015 (03F7) [00:01:02]Malloc new data [00:01:02]SetTLVBufToDocument err=0 [00:01:02]Processing tag 1007 (03EF) [00:01:02]Load OK [00:01:02]SetTLVBufToDocument [00:01:02]Processing tag 1014 (03F6) [00:01:02]Malloc new data [00:01:02]Processing tag 1015 (03F7) [00:01:02]Malloc new data [00:01:02]SetTLVBufToDocument err=0 [00:01:02]Processing tag 1007 (03EF) [00:01:02]Load OK [00:01:02]SetTLVBufToDocument [00:01:02]Processing tag 1014 (03F6) [00:01:02]Malloc new data [00:01:02]Processing tag 1015 (03F7) [00:01:02]Malloc new data [00:01:02]SetTLVBufToDocument err=0 [00:01:02]Processing tag 1007 (03EF) [00:01:02]Load OK [00:01:02]SetTLVBufToDocument [00:01:02]Processing tag 1014 (03F6) [00:01:02]Malloc new data [00:01:02]Processing tag 1015 (03F7) [00:01:02]Malloc new data [00:01:02]SetTLVBufToDocument err=0 [00:01:02]SetTLVBufToDocument err=0 [00:01:02]SetTLVBufToDocument err=0 [00:01:02]Processing tag 1132 (046C) [00:01:02]Load OK [00:01:02]SetTLVBufToDocument [00:01:02]Processing tag 1135 (046F) [00:01:02]Malloc new data [00:01:02]Processing tag 1201 (04B1) [00:01:02]Malloc new data [00:01:02]Processing tag 1136 (0470) [00:01:02]Malloc new data [00:01:02]Processing tag 1138 (0472) [00:01:02]Malloc new data [00:01:02]Processing tag 1024 (0400) [00:01:02]Load OK [00:01:02]SetTLVBufToDocument [00:01:02]Processing tag 1006 (03EE) [00:01:02]Load OK [00:01:02]SetTLVBufToDocument [00:01:02]Processing tag 1010 (03F2) [00:01:02]Malloc new data [00:01:02]Processing tag 1011 (03F3) [00:01:02]Malloc new data [00:01:02]SetTLVBufToDocument err=0 [00:01:02]Processing tag 1006 (03EE) [00:01:02]Load OK [00:01:02]SetTLVBufToDocument [00:01:02]Processing tag 1010 (03F2) [00:01:02]Malloc new data [00:01:02]Processing tag 1011 (03F3) [00:01:02]Malloc new data [00:01:02]SetTLVBufToDocument err=0 [00:01:02]Processing tag 1007 (03EF) [00:01:02]Load OK [00:01:02]SetTLVBufToDocument [00:01:02]Processing tag 1014 (03F6) [00:01:02]Malloc new data [00:01:02]Processing tag 1015 (03F7) [00:01:02]Malloc new data [00:01:02]SetTLVBufToDocument err=0 [00:01:02]Processing tag 1007 (03EF) [00:01:02]Load OK [00:01:02]SetTLVBufToDocument [00:01:02]Processing tag 1014 (03F6) [00:01:02]Malloc new data [00:01:02]Processing tag 1015 (03F7) [00:01:02]Malloc new data [00:01:02]SetTLVBufToDocument err=0 [00:01:02]Processing tag 1007 (03EF) [00:01:02]Load OK [00:01:02]SetTLVBufToDocument [00:01:02]Processing tag 1014 (03F6) [00:01:02]Malloc new data [00:01:02]Processing tag 1015 (03F7) [00:01:02]Malloc new data [00:01:02]SetTLVBufToDocument err=0 [00:01:02]Processing tag 1007 (03EF) [00:01:02]Load OK [00:01:02]SetTLVBufToDocument [00:01:02]Processing tag 1014 (03F6) [00:01:02]Malloc new data [00:01:02]Processing tag 1015 (03F7) [00:01:02]Malloc new data [00:01:02]SetTLVBufToDocument err=0 [00:01:02]Processing tag 1007 (03EF) [00:01:02]Load OK [00:01:02]SetTLVBufToDocument [00:01:02]Processing tag 1014 (03F6) [00:01:02]Malloc new data [00:01:02]Processing tag 1015 (03F7) [00:01:02]Malloc new data [00:01:02]SetTLVBufToDocument err=0 [00:01:02]Processing tag 1007 (03EF) [00:01:02]Load OK [00:01:02]SetTLVBufToDocument [00:01:02]Processing tag 1014 (03F6) [00:01:02]Malloc new data [00:01:02]Processing tag 1015 (03F7) [00:01:02]Malloc new data [00:01:02]SetTLVBufToDocument err=0 [00:01:02]Processing tag 1007 (03EF) [00:01:02]Load OK [00:01:02]SetTLVBufToDocument [00:01:02]Processing tag 1014 (03F6) [00:01:02]Malloc new data [00:01:02]Processing tag 1015 (03F7) [00:01:02]Malloc new data [00:01:02]SetTLVBufToDocument err=0 [00:01:02]SetTLVBufToDocument err=0 [00:01:02]SetTLVBufToDocument err=0 [00:01:02]Processing tag 1133 (046D) [00:01:02]Malloc new data [00:01:02]SetTLVBufToDocument err=0 [00:01:02]Processing tag 1077 (0435) [00:01:02]Malloc new data [00:01:02]SetTLVBufToDocument err=0 [00:01:02]Malloc new data [00:01:02]SAM_PROTO_GetFMData [00:01:02]wFMCommunicate request_size=4 [00:01:02]MH_SAM_APDU [00:01:02]CAPDU: 80 13 03 00 [00:01:02]Write to MH i2c: E2 08 00 F3 5C 80 13 03 00 00 00 00 00 CE [00:01:02]Write i2c OK [00:01:02]MH_I2C_Read... [00:01:03]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:01:03]Read from MH i2c: E2 [00:01:03]MH_I2C_Read... [00:01:03]Read from MH i2c: E2 FD 00 [00:01:03]MH_I2C_Read... [00:01:03]Read from MH i2c: E2 FD 00 F3 5C 00 C7 04 85 04 C3 04 6E 04 04 00 80 DF 01 00 69 04 A3 00 6F 04 04 00 65 CA 01 00 B1 04 05 00 F7 C5 3F 6F 02 70 04 05 00 9D FC 70 AB 01 72 04 04 00 5A C9 CE C3 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 62 ED 32 42 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 2B 17 84 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 1B 15 00 00 B1 04 04 00 25 74 69 34 70 04 04 00 05 26 69 34 72 04 02 00 20 4E 00 04 7C 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 4B 12 91 05 EF 90 00 70 [00:01:03]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 80 DF 01 00 69 04 A3 00 6F 04 04 00 65 CA 01 00 B1 04 05 00 F7 C5 3F 6F 02 70 04 05 00 9D FC 70 AB 01 72 04 04 00 5A C9 CE C3 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 62 ED 32 42 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 2B 17 84 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 1B 15 00 00 B1 04 04 00 25 74 69 34 70 04 04 00 05 26 69 34 72 04 02 00 20 4E 00 04 7C 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 4B 12 91 05 EF 90 00 [00:01:03]wFMCommunicate OK [00:01:03]wFMCommunicate request_size=4 [00:01:03]MH_SAM_APDU [00:01:03]CAPDU: 80 17 00 00 [00:01:03]Write to MH i2c: E2 08 00 F4 5C 80 17 00 00 00 00 00 00 D0 [00:01:03]Write i2c OK [00:01:03]MH_I2C_Read... [00:01:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:03]Read from MH i2c: E2 [00:01:03]MH_I2C_Read... [00:01:03]Read from MH i2c: E2 FD 00 [00:01:03]MH_I2C_Read... [00:01:03]Read from MH i2c: E2 FD 00 F4 5C 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 D5 BF 76 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 E7 [00:01: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 D5 BF 76 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:01:04]wFMCommunicate OK [00:01:04]wFMCommunicate request_size=4 [00:01:04]MH_SAM_APDU [00:01:04]CAPDU: 80 17 00 00 [00:01:04]Write to MH i2c: E2 08 00 F5 5C 80 17 00 00 00 00 00 00 D1 [00:01:04]Write i2c OK [00:01:04]MH_I2C_Read... [00:01:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:04]Read from MH i2c: E2 [00:01:04]MH_I2C_Read... [00:01:04]Read from MH i2c: E2 FD 00 [00:01:04]MH_I2C_Read... [00:01:04]Read from MH i2c: E2 FD 00 F5 5C 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A9 [00:01:04]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 [00:01:04]wFMCommunicate OK [00:01:04]wFMCommunicate request_size=4 [00:01:04]MH_SAM_APDU [00:01:04]CAPDU: 80 17 00 00 [00:01:04]Write to MH i2c: E2 08 00 F6 5C 80 17 00 00 00 00 00 00 D2 [00:01:04]Write i2c OK [00:01:04]MH_I2C_Read... [00:01:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:04]Read from MH i2c: E2 [00:01:04]MH_I2C_Read... [00:01:04]Read from MH i2c: E2 FD 00 [00:01:04]MH_I2C_Read... [00:01:04]Read from MH i2c: E2 FD 00 F6 5C 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 4D [00:01: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 [00:01:05]wFMCommunicate OK [00:01:05]wFMCommunicate request_size=4 [00:01:05]MH_SAM_APDU [00:01:05]CAPDU: 80 17 00 00 [00:01:05]Write to MH i2c: E2 08 00 F7 5C 80 17 00 00 00 00 00 00 D3 [00:01:05]Write i2c OK [00:01:05]MH_I2C_Read... [00:01:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [00:01:05]Read from MH i2c: E2 [00:01:05]MH_I2C_Read... [00:01:05]Read from MH i2c: E2 E4 00 [00:01:05]MH_I2C_Read... [00:01:05]Read from MH i2c: E2 E4 00 F7 5C 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 B3 [00:01: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 [00:01:05]wFMCommunicate OK [00:01:05]SAM_PROTO_GetFMData done [00:01:05]Malloc new data [00:01:05]Malloc new data [00:01:05]Malloc new data [00:01:05]Malloc new data [00:01:05]KKMLoadAndSignCloseShiftData err=0 [00:01:05]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Турдумбек у. К. 04.03.2024 00:01 Смена: 323 РНМ: 0000000000090573 ЗНМ: 0300000019 СНО: Общий режим Чеков за смену: 255 ФД за смену: 257 Всего чеков: 255 ИТОГИ ПРИХОД Чеков: 246 Общий итог: 228735.00 Итого наличными: 107553.00 Итого безнал.: 121182.00 НДС 0% : 0.00 НДС 12% : 24294.64 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 2024.45 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 9 Общий итог: 13669.00 Итого наличными: 13669.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 1451.90 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 120.98 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 93884.00 НС Приход: 104563850.15 НС Возвр.Прихода: 8793262.45 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 123399 ФМ: 0000000000874798 ФПД: 173639337385343 [00:01:05]StoreToDocumentArchive [00:01:05]shift 323 fd 123399 [00:01:05]save to /storage/0323/doc_00123399 [00:01:05]save last doc name /storage/0323/doc_00123399 to /storage/kkm_last_doc_name [00:01:05]save OK [00:01:05]Clear old archive folders... [00:01:05]NVStorageSaveData kkm_registers [00:01:05]File name is /storage/kkm_registers [00:01:05]Write 24 bytes [00:01:05]NVStorageSaveData done [00:01:05]NVStorageSaveData kkm_registers [00:01:05]File name is /storage/kkm_registers [00:01:05]Write 24 bytes [00:01:05]NVStorageSaveData done [00:01:05]ProcessDocumentItem done err = 0, tmpTLVsize=1394 [00:01:05]tlvbuf is 00DDA060 [00:01:05]SAM_PROTO_ClearQueue [00:01:05]wFMCommunicate request_size=4 [00:01:05]MH_SAM_APDU [00:01:05]CAPDU: 80 09 00 00 [00:01:05]Write to MH i2c: E2 08 00 F8 5C 80 09 00 00 00 00 00 00 C6 [00:01:05]Write i2c OK [00:01:05]MH_I2C_Read... [00:01:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:01:05]Read from MH i2c: E2 [00:01:05]MH_I2C_Read... [00:01:05]Read from MH i2c: E2 03 00 [00:01:05]MH_I2C_Read... [00:01:05]Read from MH i2c: E2 03 00 F8 5C 00 90 00 C8 [00:01:05]RAPDU: 90 00 [00:01:05]wFMCommunicate OK [00:01:05]SAM_PROTO_ClearQueue done [00:01:05]KKMCreateOFDPacket [00:01:05]OFDProtocolAddRootSTLVToBuf [00:01:05]FM_MakeSignedData [00:01:05]FM_MakeSignedData [00:01:05]SAM_PROTO_SignData [00:01:05]wFMCommunicate request_size=4 [00:01:05]MH_SAM_APDU [00:01:05]CAPDU: 80 0D 01 02 [00:01:05]Write to MH i2c: E2 08 00 F9 5C 80 0D 01 02 00 00 00 00 CE [00:01:05]Write i2c OK [00:01:05]MH_I2C_Read... [00:01:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:01:05]Read from MH i2c: E2 [00:01:05]MH_I2C_Read... [00:01:05]Read from MH i2c: E2 03 00 [00:01:05]MH_I2C_Read... [00:01:05]Read from MH i2c: E2 03 00 F9 5C 00 90 00 C9 [00:01:05]RAPDU: 90 00 [00:01:05]wFMCommunicate OK [00:01:05]wFMCommunicate request_size=255 [00:01:05]MH_SAM_APDU [00:01:05]CAPDU: 80 0D 02 02 FA 05 00 72 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 1B 00 D0 A2 D1 83 D1 80 D0 B4 D1 83 D0 BC D0 B1 D0 B5 D0 BA 20 D1 83 2E 20 D0 9A 2E 20 F4 03 04 00 3F 0F E5 65 0E 04 04 00 43 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 5E 04 04 00 FF 00 00 00 57 04 04 00 01 01 00 00 AA 04 DE 04 6E 04 04 00 FF 00 00 00 69 04 A4 00 6F 04 04 00 F6 00 00 00 B1 04 04 00 9C 05 5D 01 70 04 03 00 E4 1C A4 72 04 03 00 B8 E8 B8 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 18 12 25 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 [00:01:05]Write to MH i2c: E2 02 01 FA 5C 80 0D 02 02 FA 00 05 00 72 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 1B 00 D0 A2 D1 83 D1 80 D0 B4 D1 83 D0 BC D0 B1 D0 B5 D0 BA 20 D1 83 2E 20 D0 9A 2E 20 F4 03 04 00 3F 0F E5 65 0E 04 04 00 43 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 5E 04 04 00 FF 00 00 00 57 04 04 00 01 01 00 00 AA 04 DE 04 6E 04 04 00 FF 00 00 00 69 04 A4 00 6F 04 04 00 F6 00 00 00 B1 04 04 00 9C 05 5D 01 70 04 03 00 E4 1C A4 72 04 03 00 B8 E8 B8 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 18 12 25 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 00 00 FD [00:01:06]Write i2c OK [00:01:06]MH_I2C_Read... [00:01:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:01:06]Read from MH i2c: E2 [00:01:06]MH_I2C_Read... [00:01:06]Read from MH i2c: E2 03 00 [00:01:06]MH_I2C_Read... [00:01:06]Read from MH i2c: E2 03 00 FA 5C 00 90 00 CA [00:01:06]RAPDU: 90 00 [00:01:06]wFMCommunicate OK [00:01:06]wFMCommunicate request_size=255 [00:01:06]MH_SAM_APDU [00:01:06]CAPDU: 80 0D 02 02 FA F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CD 16 03 6A 04 A0 00 6F 04 04 00 09 00 00 00 B1 04 03 00 74 DB 14 70 04 03 00 74 DB 14 72 04 01 00 00 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 26 37 02 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 42 2F 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 [00:01:06]Write to MH i2c: E2 02 01 FB 5C 80 0D 02 02 FA 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CD 16 03 6A 04 A0 00 6F 04 04 00 09 00 00 00 B1 04 03 00 74 DB 14 70 04 03 00 74 DB 14 72 04 01 00 00 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 26 37 02 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 42 2F 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 00 00 D8 [00:01:06]Write i2c OK [00:01:06]MH_I2C_Read... [00:01:06]OFD Sender: No OFD packet to send [00:01:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:01:06]Read from MH i2c: E2 [00:01:06]MH_I2C_Read... [00:01:06]Read from MH i2c: E2 03 00 [00:01:06]MH_I2C_Read... [00:01:06]Read from MH i2c: E2 03 00 FB 5C 00 90 00 CB [00:01:06]RAPDU: 90 00 [00:01:06]wFMCommunicate OK [00:01:06]wFMCommunicate request_size=255 [00:01:06]MH_SAM_APDU [00:01:06]CAPDU: 80 0D 02 02 FA 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 [00:01:07]Write to MH i2c: E2 02 01 FC 5C 80 0D 02 02 FA 00 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 00 00 99 [00:01:07]Write i2c OK [00:01:07]MH_I2C_Read... [00:01:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:01:07]Read from MH i2c: E2 [00:01:07]MH_I2C_Read... [00:01:07]Read from MH i2c: E2 03 00 [00:01:07]MH_I2C_Read... [00:01:07]Read from MH i2c: E2 03 00 FC 5C 00 90 00 CC [00:01:07]RAPDU: 90 00 [00:01:07]wFMCommunicate OK [00:01:07]wFMCommunicate request_size=255 [00:01:07]MH_SAM_APDU [00:01:07]CAPDU: 80 0D 02 02 FA 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 [00:01:07]Write to MH i2c: E2 02 01 FD 5C 80 0D 02 02 FA 00 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 00 00 A2 [00:01:07]Write i2c OK [00:01:07]MH_I2C_Read... [00:01:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:01:08]Read from MH i2c: E2 [00:01:08]MH_I2C_Read... [00:01:08]Read from MH i2c: E2 03 00 [00:01:08]MH_I2C_Read... [00:01:08]Read from MH i2c: E2 03 00 FD 5C 00 90 00 CD [00:01:08]RAPDU: 90 00 [00:01:08]wFMCommunicate OK [00:01:08]wFMCommunicate request_size=255 [00:01:08]MH_SAM_APDU [00:01:08]CAPDU: 80 0D 02 02 FA 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 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:01:08]Write to MH i2c: E2 02 01 FE 5C 80 0D 02 02 FA 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 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 69 [00:01:08]Write i2c OK [00:01:08]MH_I2C_Read... [00:01:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:01:08]Read from MH i2c: E2 [00:01:08]MH_I2C_Read... [00:01:08]Read from MH i2c: E2 03 00 [00:01:08]MH_I2C_Read... [00:01:08]Read from MH i2c: E2 03 00 FE 5C 00 90 00 CE [00:01:08]RAPDU: 90 00 [00:01:08]wFMCommunicate OK [00:01:08]wFMCommunicate request_size=153 [00:01:08]MH_SAM_APDU [00:01:08]CAPDU: 80 0D 02 02 94 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 07 E2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 35 04 06 00 9D EC 8F 06 1D 7F [00:01:08]Write to MH i2c: E2 9C 00 FF 5C 80 0D 02 02 94 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 07 E2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 35 04 06 00 9D EC 8F 06 1D 7F 00 00 C3 [00:01:09]Write i2c OK [00:01:09]MH_I2C_Read... [00:01:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:01:09]Read from MH i2c: E2 [00:01:09]MH_I2C_Read... [00:01:09]Read from MH i2c: E2 03 00 [00:01:09]MH_I2C_Read... [00:01:09]Read from MH i2c: E2 03 00 FF 5C 00 90 00 CF [00:01:09]RAPDU: 90 00 [00:01:09]wFMCommunicate OK [00:01:09]wFMCommunicate request_size=4 [00:01:09]MH_SAM_APDU [00:01:09]CAPDU: 80 0D 03 02 [00:01:09]Write to MH i2c: E2 08 00 00 5D 80 0D 03 02 00 00 00 00 D8 [00:01:09]Write i2c OK [00:01:09]MH_I2C_Read... [00:01:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:01:09]Read from MH i2c: E2 [00:01:09]MH_I2C_Read... [00:01:09]Read from MH i2c: E2 0B 00 [00:01:09]MH_I2C_Read... [00:01:09]Read from MH i2c: E2 0B 00 00 5D 00 F3 49 F1 21 65 DA 9A 66 90 00 66 [00:01:09]RAPDU: F3 49 F1 21 65 DA 9A 66 90 00 [00:01:09]wFMCommunicate OK [00:01:09]SAM_PROTO_SignData done [00:01:09]FM_MakeSignedData done [00:01:09]CreateOFDProtocolMessage [00:01:09]wFMCommunicate request_size=4 [00:01:09]MH_SAM_APDU [00:01:09]CAPDU: 80 11 00 00 [00:01:09]Write to MH i2c: E2 08 00 01 5D 80 11 00 00 00 00 00 00 D8 [00:01:09]Write i2c OK [00:01:09]MH_I2C_Read... [00:01:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:01:09]Read from MH i2c: E2 [00:01:09]MH_I2C_Read... [00:01:09]Read from MH i2c: E2 17 00 [00:01:09]MH_I2C_Read... [00:01:09]Read from MH i2c: E2 17 00 01 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 36 [00:01:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [00:01:09]wFMCommunicate OK [00:01:09]CreateOFDProtocolMessage done [00:01:09]OFDSenderStorePacket 123399 [00:01:09]StoreOFDPacket docnum=123399 [00:01:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 86 05 00 00 9B A0 7E 05 59 DB 5A 05 01 00 05 00 72 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 1B 00 D0 A2 D1 83 D1 80 D0 B4 D1 83 D0 BC D0 B1 D0 B5 D0 BA 20 D1 83 2E 20 D0 9A 2E 20 F4 03 04 00 3F 0F E5 65 0E 04 04 00 43 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 5E 04 04 00 FF 00 00 00 57 04 04 00 01 01 00 00 AA 04 DE 04 6E 04 04 00 FF 00 00 00 69 04 A4 00 6F 04 04 00 F6 00 00 00 B1 04 04 00 9C 05 5D 01 70 04 03 00 E4 1C A4 72 04 03 00 B8 E8 B8 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 18 12 25 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 CD 16 03 6A 04 A0 00 6F 04 04 00 09 00 00 00 B1 04 03 00 74 DB 14 70 04 03 00 74 DB 14 72 04 01 00 00 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 26 37 02 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 42 2F 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 07 E2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 35 04 06 00 9D EC 8F 06 1D 7F F3 49 F1 21 65 DA 9A 66 [00:01:09]CheckFolder [00:01:09]dirname=/storage/ofd_packets [00:01:09]CheckFolder done [00:01:09]ProducePacketName [00:01:09]name=ofd_packets/00123399 [00:01:09]NVStorageSaveData ofd_packets/00123399 [00:01:09]File name is /storage/ofd_packets/00123399 [00:01:09]Write 1444 bytes [00:01:09]NVStorageSaveData done [00:01:09]OFDSenderStorePacket done [00:01:09]KKMCreateOFDPacket done [00:01:09]NVStorageSaveData kkm_last_timestamp [00:01:09]File name is /storage/kkm_last_timestamp [00:01:09]Write 4 bytes [00:01:09]NVStorageSaveData done [00:01:09]ExternCall_PrintAddStr [00:01:09]wPrintStart [00:01:09]Write to MH i2c: 01 00 00 02 5D 5F [00:01:09]Write i2c OK [00:01:09]MH_I2C_Read... [00:01:09]Read from MH i2c: 01 [00:01:09]MH_I2C_Read... [00:01:09]Read from MH i2c: 01 07 00 [00:01:09]MH_I2C_Read... [00:01:09]Read from MH i2c: 01 07 00 02 5D 00 00 00 00 00 FF 0F 74 [00:01:09]RasterBufferAndPrint [00:01:09]line Отчет о закрытии смены [00:01:09]line ФФД: 1.0 [00:01:09]line ИНН: 02508201610067 [00:01:09]line Кассир: Турдумбек у. К. [00:01:09]line 04.03.2024 00:01 [00:01:09]line Смена: 323 [00:01:09]line РНМ: 0000000000090573 [00:01:09]line ЗНМ: 0300000019 [00:01:09]line СНО: Общий режим [00:01:09]line Чеков за смену: 255 [00:01:09]line ФД за смену: 257 [00:01:09]line Всего чеков: 255 [00:01:09]line ИТОГИ ПРИХОД [00:01:09]line Чеков: 246 [00:01:09]line Общий итог: 228735.00 [00:01:09]line Итого наличными: 107553.00 [00:01:09]line Итого безнал.: 121182.00 [00:01:09]line НДС 0% : 0.00 [00:01:09]line НДС 12% : 24294.64 [00:01:09]line НСП 0% : 0.00 [00:01:09]line НСП 1,50% : 0.00 [00:01:09]line НСП 0,50% : 0.00 [00:01:09]line НСП 5% : 0.00 [00:01:09]line НСП 3% : 0.00 [00:01:09]line НСП 2% : 0.00 [00:01:09]line НСП 1% : 2024.45 [00:01:09]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:01:09]line Чеков: 9 [00:01:09]line Общий итог: 13669.00 [00:01:09]line Итого наличными: 13669.00 [00:01:09]line Итого безнал.: 0.00 [00:01:09]line НДС 0% : 0.00 [00:01:09]line НДС 12% : 1451.90 [00:01:09]line НСП 0% : 0.00 [00:01:09]line НСП 1,50% : 0.00 [00:01:09]line НСП 0,50% : 0.00 [00:01:09]line НСП 5% : 0.00 [00:01:09]line НСП 3% : 0.00 [00:01:09]line НСП 2% : 0.00 [00:01:09]line НСП 1% : 120.98 [00:01:09]line ИТОГИ РАСХОД [00:01:09]line Чеков: 0 [00:01:09]line Общий итог: 0.00 [00:01:09]line Итого наличными: 0.00 [00:01:09]line Итого безнал.: 0.00 [00:01:09]line НДС 0% : 0.00 [00:01:09]line НДС 12% : 0.00 [00:01:09]line НСП 0% : 0.00 [00:01:09]line НСП 1,50% : 0.00 [00:01:09]line НСП 0,50% : 0.00 [00:01:09]line НСП 5% : 0.00 [00:01:09]line НСП 3% : 0.00 [00:01:09]line НСП 2% : 0.00 [00:01:09]line НСП 1% : 0.00 [00:01:09]line ИТОГИ ВОЗВРАТ РАСХОДА [00:01:09]line Чеков: 0 [00:01:09]line Общий итог: 0.00 [00:01:09]line Итого наличными: 0.00 [00:01:09]line Итого безнал.: 0.00 [00:01:09]line НДС 0% : 0.00 [00:01:09]line НДС 12% : 0.00 [00:01:09]line НСП 0% : 0.00 [00:01:09]line НСП 1,50% : 0.00 [00:01:09]line НСП 0,50% : 0.00 [00:01:09]line НСП 5% : 0.00 [00:01:09]line НСП 3% : 0.00 [00:01:09]line НСП 2% : 0.00 [00:01:09]line НСП 1% : 0.00 [00:01:09]line Сумма внесений: 0.00 [00:01:09]line Сумма выплат: 0.00 [00:01:09]line Нал. в кассе: 93884.00 [00:01:09]line НС Приход: 104563850.15 [00:01:09]line НС Возвр.Прихода: 8793262.45 [00:01:09]line НС Расход: 0.00 [00:01:09]line НС Возвр.Расхода: 0.00 [00:01:09]line ФД: 123399 [00:01:09]line ФМ: 0000000000874798 [00:01:09]line ФПД: 173639337385343 [00:01:09]OFD Sender: Processing packet 123399 [packets to send 112, broken 111] [00:01:09]ProducePacketName [00:01:09]name=ofd_packets/00123399 [00:01:09]OFD Sender: To server: pG, [00:01:09]CommunicateWithHost lk.salyk.kg:30040 [00:01:09]ConnectInit lk.salyk.kg [00:01:09]written 0, free lines is 4095 [00:01:09]Connected sock=10 [00:01: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 37 39 38 86 05 00 00 9B A0 7E 05 59 DB 5A 05 01 00 05 00 72 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 1B 00 D0 A2 D1 83 D1 80 D0 B4 D1 83 D0 BC D0 B1 D0 B5 D0 BA 20 D1 83 2E 20 D0 9A 2E 20 F4 03 04 00 3F 0F E5 65 0E 04 04 00 43 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 5E 04 04 00 FF 00 00 00 57 04 04 00 01 01 00 00 AA 04 DE 04 6E 04 04 00 FF 00 00 00 69 04 A4 00 6F 04 04 00 F6 00 00 00 B1 04 04 00 9C 05 5D 01 70 04 03 00 E4 1C A4 72 04 03 00 B8 E8 B8 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 18 12 25 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 CD 16 03 6A 04 A0 00 6F 04 04 00 09 00 00 00 B1 04 03 00 74 DB 14 70 04 03 00 74 DB 14 72 04 01 00 00 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 26 37 02 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 42 2F 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 Write to MH i2c: F6 01 03 00 00 01 52 00 5D 03 AF F7 [00:01:10]03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 Write i2c OK [00:01:10]00 MH_I2C_Read... [00:01:10]F6 Read from MH i2c: 03 01 01 [00:01:10]00 MH_I2C_Read... [00:01:10]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 Read from MH i2c: 03 01 09 07 00 00 F6 [00:01:10]03 MH_I2C_Read... [00:01:10]01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF Read from MH i2c: 01 03 07 09 00 00 52 F6 5D 00 03 00 01 00 00 00 04 00 F7 8B 03 0B 00 4C 00 [00:01:10]EF RasterBufferAndPrint [00:01:10]03 line [00:01:10]09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 line [00:01:10]01 line [00:01:11]00 line [00:01:11]06 line [00:01:11]F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 written 0, free lines is 3259 [00:01:11]00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 MH_Cut [00:01:11]00 Write to MH i2c: 00 D1 EE 01 03 00 09 59 00 5D F2 01 03 88 01 [00:01:11]00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF Write i2c OK [00:01:11]03 MH_I2C_Read... [00:01:11]09 Read from MH i2c: 00 D1 F6 [00:01:11]03 MH_I2C_Read... [00:01:11]01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 Read from MH i2c: 00 D1 EF 01 03 00 09 [00:01:11]00 MH_I2C_Read... [00:01:11]F6 Read from MH i2c: 03 D1 01 01 00 00 03 59 F7 5D 03 00 00 87 00 [00:01:11]EF Write to MH i2c: 03 01 09 00 00 00 F6 5A 03 5D 01 B7 00 [00:01:11]04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF Write i2c OK [00:01:11]03 MH_I2C_Read... [00:01:11]09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 07 E2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 35 04 06 00 9D EC 8F 06 1D 7F F3 49 F1 21 65 DA 9A 66 [00:01:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 EE B3 47 00 87 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 37 39 38 10 04 04 00 07 E2 01 00 F4 03 04 00 75 BB E4 65 B6 04 01 00 00 72 1C 1C F4 D9 31 76 1A [00:01:11]CommunicateWithHost err = 0 [00:01:11]CheckOFDResponse [00:01:11]1017 (14) - 77093643461234 [00:01:11]1041 (16) - 0000000000874798 [00:01:11]1040 (4) - 123399 [00:01:11]1012 (4) - 03.03.2024 18:03 [00:01:11]1206 (1) - 0 [00:01:11]OFD Sender: Remove packet 123399 [00:01:11]ProducePacketName [00:01:11]name=ofd_packets/00123399 [00:01:11]NVStorageDeleteData [00:01:11]*** Cut start [00:01:11]*** Purtial cut [00:01:11]*** Stage 1: CUTSNS_PIN = 1 [00:01:12]OFD Sender: No OFD packet to send [00:01:13]Read from MH i2c: 01 [00:01:13]MH_I2C_Read... [00:01:13]*** Stop cut motor [00:01:13]*** Cut end [00:01:13]Read from MH i2c: 01 07 00 [00:01:13]MH_I2C_Read... [00:01:13]Read from MH i2c: 01 07 00 5A 5D 00 00 00 00 00 FF 0F CC [00:01:13]process_action close_shift done [00:01:13]requested_data is exist [00:01:13]produce_requested_data [00:01:13]requested_item fd.num is exist - process it [00:01:13]SAM_PROTO_GetFieldsCounters [00:01:13]wFMCommunicate request_size=4 [00:01:13]MH_SAM_APDU [00:01:13]CAPDU: 80 13 00 00 [00:01:13]Write to MH i2c: E2 08 00 5B 5D 80 13 00 00 00 00 00 00 34 [00:01:13]Write i2c OK [00:01:13]MH_I2C_Read... [00:01:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:01:13]Read from MH i2c: E2 [00:01:13]MH_I2C_Read... [00:01:13]Read from MH i2c: E2 62 00 [00:01:13]MH_I2C_Read... [00:01:13]Read from MH i2c: E2 62 00 5B 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 07 E2 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 8C [00:01: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 07 E2 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:01:14]wFMCommunicate OK [00:01:14]SAM_PROTO_GetFieldsCounters done [00:01:14]requested_item shift.num is exist - process it [00:01:14]requested_item shift.opened is exist - process it [00:01:14]req_shift_opened [00:01:14]FM_GetShiftState [00:01:14]SAM_PROTO_GetShiftState [00:01:14]wFMCommunicate request_size=4 [00:01:14]MH_SAM_APDU [00:01:14]CAPDU: 80 13 01 00 [00:01:14]Write to MH i2c: E2 08 00 5C 5D 80 13 01 00 00 00 00 00 36 [00:01:14]Write i2c OK [00:01:14]MH_I2C_Read... [00:01:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:01:14]Read from MH i2c: E2 [00:01:14]MH_I2C_Read... [00:01:14]Read from MH i2c: E2 0E 00 [00:01:14]MH_I2C_Read... [00:01:14]Read from MH i2c: E2 0E 00 5C 5D 00 09 00 00 00 00 00 00 00 00 00 00 90 00 41 [00:01:14]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:01:14]wFMCommunicate OK [00:01:14]SAM_PROTO_GetShiftState done [00:01:14]FM_GetShiftState done [00:01:14]req_shift_opened done [00:01:14]requested_item shift.open_date is exist - process it [00:01:14]req_shift_open_date [00:01:14]FM_GetShiftState [00:01:14]SAM_PROTO_GetShiftState [00:01:14]wFMCommunicate request_size=4 [00:01:14]MH_SAM_APDU [00:01:14]CAPDU: 80 13 01 00 [00:01:14]Write to MH i2c: E2 08 00 5D 5D 80 13 01 00 00 00 00 00 37 [00:01:14]Write i2c OK [00:01:14]MH_I2C_Read... [00:01:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:01:14]Read from MH i2c: E2 [00:01:14]MH_I2C_Read... [00:01:14]Read from MH i2c: E2 0E 00 [00:01:14]MH_I2C_Read... [00:01:14]Read from MH i2c: E2 0E 00 5D 5D 00 09 00 00 00 00 00 00 00 00 00 00 90 00 42 [00:01:14]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:01:14]wFMCommunicate OK [00:01:14]SAM_PROTO_GetShiftState done [00:01:14]FM_GetShiftState done [00:01:14]req_shift_open_date done [00:01:14]produce_requested_data done [00:01:14]produce_requested_data return {"fd.num":123399,"shift.num":323,"shift.opened":0,"shift.open_date":0} [00:01:14]process_action_free close_shift [00:01:14]json_value_free [00:01:14]json_value_free done [00:01:14]process_json_proto returns [00:01:14]Send response to host [00:01:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":123399,"shift.num":323,"shift.opened":0,"shift.open_date":0}}} [00:01:14]free response buf [00:01:14]execute_script done [00:01:14]execute_script returns [00:01:14]free content buf [00:01:14]Sock 9.Close socket [00:01:14]Sock 9.Thread stoped [00:01:17]OFD Sender: No OFD packet to send [00:01:22]OFD Sender: No OFD packet to send [00:01:27]OFD Sender: No OFD packet to send [00:01:32]OFD Sender: No OFD packet to send [00:01:37]OFD Sender: No OFD packet to send [00:01:42]OFD Sender: No OFD packet to send [00:01:47]OFD Sender: No OFD packet to send [00:01:52]OFD Sender: No OFD packet to send [00:01:57]OFD Sender: No OFD packet to send [00:02:02]OFD Sender: No OFD packet to send [00:02:07]OFD Sender: No OFD packet to send [00:02:12]OFD Sender: No OFD packet to send [00:02:17]OFD Sender: No OFD packet to send [00:02:22]OFD Sender: No OFD packet to send [00:02:27]OFD Sender: No OFD packet to send [00:02:32]OFD Sender: No OFD packet to send [00:02:37]OFD Sender: No OFD packet to send [00:02:42]OFD Sender: No OFD packet to send [00:02:47]OFD Sender: No OFD packet to send [00:02:52]OFD Sender: No OFD packet to send [00:02:57]OFD Sender: No OFD packet to send [00:03:02]OFD Sender: No OFD packet to send [00:03:07]OFD Sender: No OFD packet to send [00:03:12]OFD Sender: No OFD packet to send [00:03:17]OFD Sender: No OFD packet to send [00:03:22]OFD Sender: No OFD packet to send [00:03:27]OFD Sender: No OFD packet to send [00:03:32]OFD Sender: No OFD packet to send [00:03:37]OFD Sender: No OFD packet to send [00:03:42]OFD Sender: No OFD packet to send [00:03:47]OFD Sender: No OFD packet to send [00:03:52]OFD Sender: No OFD packet to send [00:03:57]OFD Sender: No OFD packet to send [00:04:02]OFD Sender: No OFD packet to send [00:04:07]OFD Sender: No OFD packet to send [00:04:12]OFD Sender: No OFD packet to send [00:04:17]OFD Sender: No OFD packet to send [00:04:22]OFD Sender: No OFD packet to send [00:04:27]OFD Sender: No OFD packet to send [00:04:32]OFD Sender: No OFD packet to send [00:04:37]OFD Sender: No OFD packet to send [00:04:42]OFD Sender: No OFD packet to send [00:04:47]OFD Sender: No OFD packet to send [00:04:52]OFD Sender: No OFD packet to send [00:04:57]OFD Sender: No OFD packet to send [00:05:02]OFD Sender: No OFD packet to send [00:05:07]OFD Sender: No OFD packet to send [00:05:12]OFD Sender: No OFD packet to send [00:05:17]OFD Sender: No OFD packet to send [00:05:22]OFD Sender: No OFD packet to send [00:05:27]OFD Sender: No OFD packet to send [00:05:32]OFD Sender: No OFD packet to send [00:05:37]OFD Sender: No OFD packet to send [00:05:42]OFD Sender: No OFD packet to send [00:05:47]OFD Sender: No OFD packet to send [00:05:52]OFD Sender: No OFD packet to send [00:05:57]OFD Sender: No OFD packet to send [00:06:01]accept exits with 7 [00:06:01]New connection [00:06:01]New thread 3067395428 created [00:06:01]Thread 3067252068 joined [00:06:01]Waiting for new connection... [00:06:01] Sock 7.Parse request [00:06:01]Sock 7.Check first char [00:06:01]Sock 7.First char is OK [00:06:01]request: POST /json_proto HTTP/1.0 [00:06:01]Method: POST [00:06:01]URL: /json_proto [00:06:01]Method is POST - this is cgi request [00:06:01]url: /json_proto [00:06:01]query_string will be loaded in cgi processing [00:06:01]execute_cgi json_proto POST (null) [00:06:01]execute_cgi path=json_proto method=POST [00:06:01]POST find Content-Length [00:06:01]Host: 172.17.48.197:8080 [00:06:01]Content-Length: 215 [00:06:01]Content-Type: application/json [00:06:01] [00:06:01]POST finish read [00:06:01]Found Content-Length = 215 [00:06: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" ] } } [00:06:01]execute_script... [00:06: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" ] } } [00:06:01]POST & json_proto [00:06:01]process_json_proto [00:06:01]json parsed OK: [00:06:01]protocol is kg_v1.0 [00:06:01]action value=get_value [00:06:01]process_action get_value [00:06:01]cmd_get_value [00:06:01]process_action get_value done [00:06:01]requested_data is exist [00:06:01]produce_requested_data [00:06:01]requested_item kkm.sn is exist - process it [00:06:01]requested_item kkm.ver is exist - process it [00:06:01]requested_item fm.sn is exist - process it [00:06:01]wFMCommunicate request_size=4 [00:06:01]MH_SAM_APDU [00:06:01]CAPDU: 80 11 00 00 [00:06:01]Write to MH i2c: E2 08 00 5E 5D 80 11 00 00 00 00 00 00 35 [00:06:01]Write i2c OK [00:06:01]MH_I2C_Read... [00:06:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:06:02]Read from MH i2c: E2 [00:06:02]MH_I2C_Read... [00:06:02]Read from MH i2c: E2 17 00 [00:06:02]MH_I2C_Read... [00:06:02]Read from MH i2c: E2 17 00 5E 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 93 [00:06:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [00:06:02]wFMCommunicate OK [00:06:02]requested_item fd.num is exist - process it [00:06:02]SAM_PROTO_GetFieldsCounters [00:06:02]wFMCommunicate request_size=4 [00:06:02]MH_SAM_APDU [00:06:02]CAPDU: 80 13 00 00 [00:06:02]Write to MH i2c: E2 08 00 5F 5D 80 13 00 00 00 00 00 00 38 [00:06:02]Write i2c OK [00:06:02]MH_I2C_Read... [00:06:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:06:02]Read from MH i2c: E2 [00:06:02]MH_I2C_Read... [00:06:02]Read from MH i2c: E2 62 00 [00:06:02]MH_I2C_Read... [00:06:02]Read from MH i2c: E2 62 00 5F 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 07 E2 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 90 [00:06: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 07 E2 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:06:02]wFMCommunicate OK [00:06:02]SAM_PROTO_GetFieldsCounters done [00:06:02]requested_item shift.num is exist - process it [00:06:02]requested_item shift.opened is exist - process it [00:06:02]req_shift_opened [00:06:02]FM_GetShiftState [00:06:02]SAM_PROTO_GetShiftState [00:06:02]wFMCommunicate request_size=4 [00:06:02]MH_SAM_APDU [00:06:02]CAPDU: 80 13 01 00 [00:06:02]Write to MH i2c: E2 08 00 60 5D 80 13 01 00 00 00 00 00 3A [00:06:02]Write i2c OK [00:06:02]MH_I2C_Read... [00:06:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:06:02]Read from MH i2c: E2 [00:06:02]MH_I2C_Read... [00:06:02]Read from MH i2c: E2 0E 00 [00:06:02]MH_I2C_Read... [00:06:02]Read from MH i2c: E2 0E 00 60 5D 00 09 00 00 00 00 00 00 00 00 00 00 90 00 45 [00:06:02]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:06:02]wFMCommunicate OK [00:06:02]SAM_PROTO_GetShiftState done [00:06:02]FM_GetShiftState done [00:06:02]req_shift_opened done [00:06:02]requested_item shift.open_date is exist - process it [00:06:02]req_shift_open_date [00:06:02]FM_GetShiftState [00:06:02]SAM_PROTO_GetShiftState [00:06:02]wFMCommunicate request_size=4 [00:06:02]MH_SAM_APDU [00:06:02]CAPDU: 80 13 01 00 [00:06:02]Write to MH i2c: E2 08 00 61 5D 80 13 01 00 00 00 00 00 3B [00:06:02]Write i2c OK [00:06:02]MH_I2C_Read... [00:06:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:06:02]Read from MH i2c: E2 [00:06:02]MH_I2C_Read... [00:06:02]Read from MH i2c: E2 0E 00 [00:06:02]MH_I2C_Read... [00:06:02]Read from MH i2c: E2 0E 00 61 5D 00 09 00 00 00 00 00 00 00 00 00 00 90 00 46 [00:06:02]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:06:02]wFMCommunicate OK [00:06:02]SAM_PROTO_GetShiftState done [00:06:02]FM_GetShiftState done [00:06:02]req_shift_open_date done [00:06:02]produce_requested_data done [00:06:02]produce_requested_data return {"kkm.sn":"0300000019","kkm.ver":"001","fm.sn":"0000000000874798","fd.num":123399,"shift.num":323,"shift.opened":0,"shift.open_date":0} [00:06:02]process_action_free get_value [00:06:02]json_value_free [00:06:02]json_value_free done [00:06:02]process_json_proto returns [00:06:02]Send response to host [00:06:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000019","kkm.ver":"001","fm.sn":"0000000000874798","fd.num":123399,"shift.num":323,"shift.opened":0,"shift.open_date":0}}} [00:06:02]free response buf [00:06:02]execute_script done [00:06:02]execute_script returns [00:06:02]free content buf [00:06:02]Sock 7.Close socket [00:06:02]Sock 7.Thread stoped [00:06:02]OFD Sender: No OFD packet to send [00:06:02]accept exits with 9 [00:06:02]New connection [00:06:02]New thread 3067252068 created [00:06:02]Thread 3067395428 joined [00:06:02]Waiting for new connection... [00:06:02] Sock 9.Parse request [00:06:02]Sock 9.Check first char [00:06:02]Sock 9.First char is OK [00:06:02]request: POST /json_proto HTTP/1.0 [00:06:02]Method: POST [00:06:02]URL: /json_proto [00:06:02]Method is POST - this is cgi request [00:06:02]url: /json_proto [00:06:02]query_string will be loaded in cgi processing [00:06:02]execute_cgi json_proto POST (null) [00:06:02]execute_cgi path=json_proto method=POST [00:06:02]POST find Content-Length [00:06:02]Host: 172.17.48.197:8080 [00:06:02]Content-Length: 331 [00:06:02]Content-Type: application/json [00:06:02] [00:06:02]POST finish read [00:06:02]Found Content-Length = 331 [00:06: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" ] } } [00:06:02]execute_script... [00:06: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" ] } } [00:06:02]POST & json_proto [00:06:02]process_json_proto [00:06:02]json parsed OK: [00:06:02]protocol is kg_v1.0 [00:06:02]action value=get_value [00:06:02]process_action get_value [00:06:02]cmd_get_value [00:06:02]process_action get_value done [00:06:02]requested_data is exist [00:06:02]produce_requested_data [00:06:02]requested_item fm.sale.total is exist - process it [00:06:02]SAM_PROTO_GetFMData [00:06:02]wFMCommunicate request_size=4 [00:06:02]MH_SAM_APDU [00:06:02]CAPDU: 80 13 03 00 [00:06:02]Write to MH i2c: E2 08 00 62 5D 80 13 03 00 00 00 00 00 3E [00:06:02]Write i2c OK [00:06:02]MH_I2C_Read... [00:06:02]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:06:02]Read from MH i2c: E2 [00:06:02]MH_I2C_Read... [00:06:02]Read from MH i2c: E2 FD 00 [00:06:02]MH_I2C_Read... [00:06:02]Read from MH i2c: E2 FD 00 62 5D 00 C7 04 85 04 C3 04 6E 04 04 00 80 DF 01 00 69 04 A3 00 6F 04 04 00 65 CA 01 00 B1 04 05 00 F7 C5 3F 6F 02 70 04 05 00 9D FC 70 AB 01 72 04 04 00 5A C9 CE C3 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 62 ED 32 42 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 2B 17 84 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 1B 15 00 00 B1 04 04 00 25 74 69 34 70 04 04 00 05 26 69 34 72 04 02 00 20 4E 00 04 7C 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 4B 12 91 05 EF 90 00 E0 [00:06:02]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 80 DF 01 00 69 04 A3 00 6F 04 04 00 65 CA 01 00 B1 04 05 00 F7 C5 3F 6F 02 70 04 05 00 9D FC 70 AB 01 72 04 04 00 5A C9 CE C3 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 62 ED 32 42 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 2B 17 84 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 1B 15 00 00 B1 04 04 00 25 74 69 34 70 04 04 00 05 26 69 34 72 04 02 00 20 4E 00 04 7C 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 4B 12 91 05 EF 90 00 [00:06:02]wFMCommunicate OK [00:06:02]wFMCommunicate request_size=4 [00:06:02]MH_SAM_APDU [00:06:02]CAPDU: 80 17 00 00 [00:06:02]Write to MH i2c: E2 08 00 63 5D 80 17 00 00 00 00 00 00 40 [00:06:02]Write i2c OK [00:06:02]MH_I2C_Read... [00:06:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:03]Read from MH i2c: E2 [00:06:03]MH_I2C_Read... [00:06:03]Read from MH i2c: E2 FD 00 [00:06:03]MH_I2C_Read... [00:06:03]Read from MH i2c: E2 FD 00 63 5D 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 D5 BF 76 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 57 [00:06: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 D5 BF 76 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:06:03]wFMCommunicate OK [00:06:03]wFMCommunicate request_size=4 [00:06:03]MH_SAM_APDU [00:06:03]CAPDU: 80 17 00 00 [00:06:03]Write to MH i2c: E2 08 00 64 5D 80 17 00 00 00 00 00 00 41 [00:06:03]Write i2c OK [00:06:03]MH_I2C_Read... [00:06:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:03]Read from MH i2c: E2 [00:06:03]MH_I2C_Read... [00:06:03]Read from MH i2c: E2 FD 00 [00:06:03]MH_I2C_Read... [00:06:03]Read from MH i2c: E2 FD 00 64 5D 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:06: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 [00:06:03]wFMCommunicate OK [00:06:03]wFMCommunicate request_size=4 [00:06:03]MH_SAM_APDU [00:06:03]CAPDU: 80 17 00 00 [00:06:03]Write to MH i2c: E2 08 00 65 5D 80 17 00 00 00 00 00 00 42 [00:06:03]Write i2c OK [00:06:03]MH_I2C_Read... [00:06:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:03]Read from MH i2c: E2 [00:06:03]MH_I2C_Read... [00:06:03]Read from MH i2c: E2 FD 00 [00:06:03]MH_I2C_Read... [00:06:03]Read from MH i2c: E2 FD 00 65 5D 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 BD [00:06: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 [00:06:03]wFMCommunicate OK [00:06:03]wFMCommunicate request_size=4 [00:06:03]MH_SAM_APDU [00:06:03]CAPDU: 80 17 00 00 [00:06:03]Write to MH i2c: E2 08 00 66 5D 80 17 00 00 00 00 00 00 43 [00:06:03]Write i2c OK [00:06:03]MH_I2C_Read... [00:06:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [00:06:04]Read from MH i2c: E2 [00:06:04]MH_I2C_Read... [00:06:04]Read from MH i2c: E2 E4 00 [00:06:04]MH_I2C_Read... [00:06:04]Read from MH i2c: E2 E4 00 66 5D 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 23 [00:06: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 [00:06:04]wFMCommunicate OK [00:06:04]SAM_PROTO_GetFMData done [00:06:04]requested_item fm.sale_refund.total is exist - process it [00:06:04]requested_item fm.buy.total is exist - process it [00:06:04]requested_item shift.sale.total is exist - process it [00:06:04]SAM_PROTO_GetShiftData [00:06:04]wFMCommunicate request_size=4 [00:06:04]MH_SAM_APDU [00:06:04]CAPDU: 80 13 02 00 [00:06:04]Write to MH i2c: E2 08 00 67 5D 80 13 02 00 00 00 00 00 42 [00:06:04]Write i2c OK [00:06:04]MH_I2C_Read... [00:06:04]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:06:04]Read from MH i2c: E2 [00:06:04]MH_I2C_Read... [00:06:04]Read from MH i2c: E2 FD 00 [00:06:04]MH_I2C_Read... [00:06:04]Read from MH i2c: E2 FD 00 67 5D 00 BB 04 AA 04 B7 04 6E 04 04 00 FF 00 00 00 69 04 9D 00 6F 04 04 00 F6 00 00 00 B1 04 04 00 9C 05 5D 01 70 04 03 00 E4 1C A4 72 04 03 00 B8 E8 B8 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 18 12 25 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 CD 16 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 98 00 6F 04 04 00 09 00 00 00 B1 04 03 00 74 DB 14 70 04 03 00 74 DB 14 72 04 00 00 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 26 37 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 A5 [00:06:04]RAPDU: BB 04 AA 04 B7 04 6E 04 04 00 FF 00 00 00 69 04 9D 00 6F 04 04 00 F6 00 00 00 B1 04 04 00 9C 05 5D 01 70 04 03 00 E4 1C A4 72 04 03 00 B8 E8 B8 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 18 12 25 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 CD 16 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 98 00 6F 04 04 00 09 00 00 00 B1 04 03 00 74 DB 14 70 04 03 00 74 DB 14 72 04 00 00 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 26 37 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [00:06:04]wFMCommunicate OK [00:06:04]wFMCommunicate request_size=4 [00:06:04]MH_SAM_APDU [00:06:04]CAPDU: 80 17 00 00 [00:06:04]Write to MH i2c: E2 08 00 68 5D 80 17 00 00 00 00 00 00 45 [00:06:04]Write i2c OK [00:06:04]MH_I2C_Read... [00:06:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:04]Read from MH i2c: E2 [00:06:04]MH_I2C_Read... [00:06:04]Read from MH i2c: E2 FD 00 [00:06:04]MH_I2C_Read... [00:06:04]Read from MH i2c: E2 FD 00 68 5D 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 42 2F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 60 [00:06:04]RAPDU: 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 42 2F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:06:04]wFMCommunicate OK [00:06:04]wFMCommunicate request_size=4 [00:06:04]MH_SAM_APDU [00:06:04]CAPDU: 80 17 00 00 [00:06:04]Write to MH i2c: E2 08 00 69 5D 80 17 00 00 00 00 00 00 46 [00:06:04]Write i2c OK [00:06:04]MH_I2C_Read... [00:06:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:05]Read from MH i2c: E2 [00:06:05]MH_I2C_Read... [00:06:05]Read from MH i2c: E2 FD 00 [00:06:05]MH_I2C_Read... [00:06:05]Read from MH i2c: E2 FD 00 69 5D 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 72 [00:06:05]RAPDU: 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:06:05]wFMCommunicate OK [00:06:05]wFMCommunicate request_size=4 [00:06:05]MH_SAM_APDU [00:06:05]CAPDU: 80 17 00 00 [00:06:05]Write to MH i2c: E2 08 00 6A 5D 80 17 00 00 00 00 00 00 47 [00:06:05]Write i2c OK [00:06:05]MH_I2C_Read... [00:06:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:05]Read from MH i2c: E2 [00:06:05]MH_I2C_Read... [00:06:05]Read from MH i2c: E2 FD 00 [00:06:05]MH_I2C_Read... [00:06:05]Read from MH i2c: E2 FD 00 6A 5D 00 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 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 90 00 BC [00:06:05]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 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 90 00 [00:06:05]wFMCommunicate OK [00:06:05]wFMCommunicate request_size=4 [00:06:05]MH_SAM_APDU [00:06:05]CAPDU: 80 17 00 00 [00:06:05]Write to MH i2c: E2 08 00 6B 5D 80 17 00 00 00 00 00 00 48 [00:06:05]Write i2c OK [00:06:05]MH_I2C_Read... [00:06:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 213! [00:06:05]Read from MH i2c: E2 [00:06:05]MH_I2C_Read... [00:06:05]Read from MH i2c: E2 D8 00 [00:06:05]MH_I2C_Read... [00:06:05]Read from MH i2c: E2 D8 00 6B 5D 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2F [00:06:05]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:06:05]wFMCommunicate OK [00:06:05]SAM_PROTO_GetShiftData done [00:06:05]requested_item shift.sale.total_cash is exist - process it [00:06:05]requested_item shift.sale_refund.total is exist - process it [00:06:05]requested_item shift.sale_refund.total_cash is exist - process it [00:06:05]requested_item shift.buy.total is exist - process it [00:06:05]requested_item shift.buy.total_cash is exist - process it [00:06:05]produce_requested_data done [00:06:05]produce_requested_data return {"fm.sale.total":104563850.15,"fm.sale_refund.total":8793262.45,"fm.buy.total":0.00,"shift.sale.total":228735.00,"shift.sale.total_cash":107553.00,"shift.sale_refund.total":13669.00,"shift.sale_refund.total_cash":13669.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:06:05]process_action_free get_value [00:06:05]json_value_free [00:06:05]json_value_free done [00:06:05]process_json_proto returns [00:06:05]Send response to host [00:06:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":104563850.15,"fm.sale_refund.total":8793262.45,"fm.buy.total":0.00,"shift.sale.total":228735.00,"shift.sale.total_cash":107553.00,"shift.sale_refund.total":13669.00,"shift.sale_refund.total_cash":13669.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:06:05]free response buf [00:06:05]execute_script done [00:06:05]execute_script returns [00:06:05]free content buf [00:06:05]Sock 9.Close socket [00:06:05]Sock 9.Thread stoped [00:06:07]OFD Sender: No OFD packet to send [00:06:12]OFD Sender: No OFD packet to send [00:06:17]OFD Sender: No OFD packet to send [00:06:22]OFD Sender: No OFD packet to send [00:06:27]OFD Sender: No OFD packet to send [00:06:32]OFD Sender: No OFD packet to send [00:06:37]OFD Sender: No OFD packet to send [00:06:42]OFD Sender: No OFD packet to send [00:06:47]OFD Sender: No OFD packet to send [00:06:52]OFD Sender: No OFD packet to send [00:06:57]OFD Sender: No OFD packet to send [00:07:02]OFD Sender: No OFD packet to send [00:07:07]OFD Sender: No OFD packet to send [00:07:12]OFD Sender: No OFD packet to send [00:07:17]OFD Sender: No OFD packet to send [00:07:22]OFD Sender: No OFD packet to send [00:07:27]OFD Sender: No OFD packet to send [00:07:32]OFD Sender: No OFD packet to send [00:07:37]OFD Sender: No OFD packet to send [00:07:42]OFD Sender: No OFD packet to send [00:07:47]OFD Sender: No OFD packet to send [00:07:52]OFD Sender: No OFD packet to send [00:07:57]OFD Sender: No OFD packet to send [00:08:02]OFD Sender: No OFD packet to send [00:08:07]OFD Sender: No OFD packet to send [00:08:12]OFD Sender: No OFD packet to send [00:08:17]OFD Sender: No OFD packet to send [00:08:22]OFD Sender: No OFD packet to send [00:08:27]OFD Sender: No OFD packet to send [00:08:32]OFD Sender: No OFD packet to send [00:08:37]OFD Sender: No OFD packet to send [00:08:42]OFD Sender: No OFD packet to send [00:08:47]OFD Sender: No OFD packet to send [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:47]OFD Sender: No OFD packet to send [00:09:52]OFD Sender: No OFD packet to send [00:09:57]OFD Sender: No OFD packet to send [00:10:02]OFD Sender: No OFD packet to send [00:10:07]OFD Sender: No OFD packet to send [00:10:12]OFD Sender: No OFD packet to send [00:10:17]OFD Sender: No OFD packet to send [00:10:22]OFD Sender: No OFD packet to send [00:10:27]OFD Sender: No OFD packet to send [00:10:32]OFD Sender: No OFD packet to send [00:10:37]OFD Sender: No OFD packet to send [00:10:42]OFD Sender: No OFD packet to send [00:10:47]OFD Sender: No OFD packet to send [00:10:52]OFD Sender: No OFD packet to send [00:10:57]OFD Sender: No OFD packet to send [00:11:02]OFD Sender: No OFD packet to send [00:11:07]OFD Sender: No OFD packet to send [00:11:12]OFD Sender: No OFD packet to send [00:11:17]OFD Sender: No OFD packet to send [00:11:18]accept exits with 7 [00:11:18]New connection [00:11:18]New thread 3067395428 created [00:11:18]Thread 3067252068 joined [00:11:18]Waiting for new connection... [00:11:18] Sock 7.Parse request [00:11:18]Sock 7.Check first char [00:11:18]Sock 7.First char is OK [00:11:18]request: POST /json_proto HTTP/1.0 [00:11:18]Method: POST [00:11:18]URL: /json_proto [00:11:18]Method is POST - this is cgi request [00:11:18]url: /json_proto [00:11:18]query_string will be loaded in cgi processing [00:11:18]execute_cgi json_proto POST (null) [00:11:18]execute_cgi path=json_proto method=POST [00:11:18]POST find Content-Length [00:11:18]Host: 172.17.48.197:8080 [00:11:18]Content-Length: 215 [00:11:18]Content-Type: application/json [00:11:18] [00:11:18]POST finish read [00:11:18]Found Content-Length = 215 [00:11:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:11:18]execute_script... [00:11:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:11:18]POST & json_proto [00:11:18]process_json_proto [00:11:18]json parsed OK: [00:11:18]protocol is kg_v1.0 [00:11:18]action value=get_value [00:11:18]process_action get_value [00:11:18]cmd_get_value [00:11:18]process_action get_value done [00:11:18]requested_data is exist [00:11:18]produce_requested_data [00:11:18]requested_item kkm.sn is exist - process it [00:11:18]requested_item kkm.ver is exist - process it [00:11:18]requested_item fm.sn is exist - process it [00:11:18]wFMCommunicate request_size=4 [00:11:18]MH_SAM_APDU [00:11:18]CAPDU: 80 11 00 00 [00:11:18]Write to MH i2c: E2 08 00 6C 5D 80 11 00 00 00 00 00 00 43 [00:11:18]Write i2c OK [00:11:18]MH_I2C_Read... [00:11:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:11:18]Read from MH i2c: E2 [00:11:18]MH_I2C_Read... [00:11:18]Read from MH i2c: E2 17 00 [00:11:18]MH_I2C_Read... [00:11:18]Read from MH i2c: E2 17 00 6C 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 A1 [00:11:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [00:11:18]wFMCommunicate OK [00:11:18]requested_item fd.num is exist - process it [00:11:18]SAM_PROTO_GetFieldsCounters [00:11:18]wFMCommunicate request_size=4 [00:11:18]MH_SAM_APDU [00:11:18]CAPDU: 80 13 00 00 [00:11:18]Write to MH i2c: E2 08 00 6D 5D 80 13 00 00 00 00 00 00 46 [00:11:18]Write i2c OK [00:11:18]MH_I2C_Read... [00:11:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:11:18]Read from MH i2c: E2 [00:11:18]MH_I2C_Read... [00:11:18]Read from MH i2c: E2 62 00 [00:11:18]MH_I2C_Read... [00:11:18]Read from MH i2c: E2 62 00 6D 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 07 E2 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 9E [00:11: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 07 E2 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:11:18]wFMCommunicate OK [00:11:18]SAM_PROTO_GetFieldsCounters done [00:11:18]requested_item shift.num is exist - process it [00:11:18]requested_item shift.opened is exist - process it [00:11:18]req_shift_opened [00:11:18]FM_GetShiftState [00:11:18]SAM_PROTO_GetShiftState [00:11:18]wFMCommunicate request_size=4 [00:11:18]MH_SAM_APDU [00:11:18]CAPDU: 80 13 01 00 [00:11:18]Write to MH i2c: E2 08 00 6E 5D 80 13 01 00 00 00 00 00 48 [00:11:18]Write i2c OK [00:11:18]MH_I2C_Read... [00:11:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:11:18]Read from MH i2c: E2 [00:11:18]MH_I2C_Read... [00:11:18]Read from MH i2c: E2 0E 00 [00:11:18]MH_I2C_Read... [00:11:18]Read from MH i2c: E2 0E 00 6E 5D 00 09 00 00 00 00 00 00 00 00 00 00 90 00 53 [00:11:18]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:11:18]wFMCommunicate OK [00:11:18]SAM_PROTO_GetShiftState done [00:11:18]FM_GetShiftState done [00:11:18]req_shift_opened done [00:11:18]requested_item shift.open_date is exist - process it [00:11:18]req_shift_open_date [00:11:18]FM_GetShiftState [00:11:18]SAM_PROTO_GetShiftState [00:11:18]wFMCommunicate request_size=4 [00:11:18]MH_SAM_APDU [00:11:18]CAPDU: 80 13 01 00 [00:11:18]Write to MH i2c: E2 08 00 6F 5D 80 13 01 00 00 00 00 00 49 [00:11:18]Write i2c OK [00:11:18]MH_I2C_Read... [00:11:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:11:18]Read from MH i2c: E2 [00:11:18]MH_I2C_Read... [00:11:18]Read from MH i2c: E2 0E 00 [00:11:18]MH_I2C_Read... [00:11:18]Read from MH i2c: E2 0E 00 6F 5D 00 09 00 00 00 00 00 00 00 00 00 00 90 00 54 [00:11:18]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:11:18]wFMCommunicate OK [00:11:18]SAM_PROTO_GetShiftState done [00:11:18]FM_GetShiftState done [00:11:18]req_shift_open_date done [00:11:18]produce_requested_data done [00:11:18]produce_requested_data return {"kkm.sn":"0300000019","kkm.ver":"001","fm.sn":"0000000000874798","fd.num":123399,"shift.num":323,"shift.opened":0,"shift.open_date":0} [00:11:18]process_action_free get_value [00:11:18]json_value_free [00:11:18]json_value_free done [00:11:18]process_json_proto returns [00:11:18]Send response to host [00:11:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000019","kkm.ver":"001","fm.sn":"0000000000874798","fd.num":123399,"shift.num":323,"shift.opened":0,"shift.open_date":0}}} [00:11:18]free response buf [00:11:18]execute_script done [00:11:18]execute_script returns [00:11:18]free content buf [00:11:18]Sock 7.Close socket [00:11:18]Sock 7.Thread stoped [00:11:18]accept exits with 9 [00:11:18]New connection [00:11:18]New thread 3067252068 created [00:11:18]Thread 3067395428 joined [00:11:18]Waiting for new connection... [00:11:18] Sock 9.Parse request [00:11:18]Sock 9.Check first char [00:11:18]Sock 9.First char is OK [00:11:18]request: POST /json_proto HTTP/1.0 [00:11:18]Method: POST [00:11:18]URL: /json_proto [00:11:18]Method is POST - this is cgi request [00:11:18]url: /json_proto [00:11:18]query_string will be loaded in cgi processing [00:11:18]execute_cgi json_proto POST (null) [00:11:18]execute_cgi path=json_proto method=POST [00:11:18]POST find Content-Length [00:11:18]Host: 172.17.48.197:8080 [00:11:18]Content-Length: 331 [00:11:18]Content-Type: application/json [00:11:18] [00:11:18]POST finish read [00:11:18]Found Content-Length = 331 [00:11:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:11:18]execute_script... [00:11:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:11:19]POST & json_proto [00:11:19]process_json_proto [00:11:19]json parsed OK: [00:11:19]protocol is kg_v1.0 [00:11:19]action value=get_value [00:11:19]process_action get_value [00:11:19]cmd_get_value [00:11:19]process_action get_value done [00:11:19]requested_data is exist [00:11:19]produce_requested_data [00:11:19]requested_item fm.sale.total is exist - process it [00:11:19]SAM_PROTO_GetFMData [00:11:19]wFMCommunicate request_size=4 [00:11:19]MH_SAM_APDU [00:11:19]CAPDU: 80 13 03 00 [00:11:19]Write to MH i2c: E2 08 00 70 5D 80 13 03 00 00 00 00 00 4C [00:11:19]Write i2c OK [00:11:19]MH_I2C_Read... [00:11:19]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:11:19]Read from MH i2c: E2 [00:11:19]MH_I2C_Read... [00:11:19]Read from MH i2c: E2 FD 00 [00:11:19]MH_I2C_Read... [00:11:19]Read from MH i2c: E2 FD 00 70 5D 00 C7 04 85 04 C3 04 6E 04 04 00 80 DF 01 00 69 04 A3 00 6F 04 04 00 65 CA 01 00 B1 04 05 00 F7 C5 3F 6F 02 70 04 05 00 9D FC 70 AB 01 72 04 04 00 5A C9 CE C3 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 62 ED 32 42 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 2B 17 84 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 1B 15 00 00 B1 04 04 00 25 74 69 34 70 04 04 00 05 26 69 34 72 04 02 00 20 4E 00 04 7C 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 4B 12 91 05 EF 90 00 EE [00:11:19]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 80 DF 01 00 69 04 A3 00 6F 04 04 00 65 CA 01 00 B1 04 05 00 F7 C5 3F 6F 02 70 04 05 00 9D FC 70 AB 01 72 04 04 00 5A C9 CE C3 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 62 ED 32 42 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 2B 17 84 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 1B 15 00 00 B1 04 04 00 25 74 69 34 70 04 04 00 05 26 69 34 72 04 02 00 20 4E 00 04 7C 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 4B 12 91 05 EF 90 00 [00:11:19]wFMCommunicate OK [00:11:19]wFMCommunicate request_size=4 [00:11:19]MH_SAM_APDU [00:11:19]CAPDU: 80 17 00 00 [00:11:19]Write to MH i2c: E2 08 00 71 5D 80 17 00 00 00 00 00 00 4E [00:11:19]Write i2c OK [00:11:19]MH_I2C_Read... [00:11:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:19]Read from MH i2c: E2 [00:11:19]MH_I2C_Read... [00:11:19]Read from MH i2c: E2 FD 00 [00:11:19]MH_I2C_Read... [00:11:19]Read from MH i2c: E2 FD 00 71 5D 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 D5 BF 76 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 65 [00:11:19]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 D5 BF 76 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:11:19]wFMCommunicate OK [00:11:19]wFMCommunicate request_size=4 [00:11:19]MH_SAM_APDU [00:11:19]CAPDU: 80 17 00 00 [00:11:19]Write to MH i2c: E2 08 00 72 5D 80 17 00 00 00 00 00 00 4F [00:11:19]Write i2c OK [00:11:19]MH_I2C_Read... [00:11:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:20]Read from MH i2c: E2 [00:11:20]MH_I2C_Read... [00:11:20]Read from MH i2c: E2 FD 00 [00:11:20]MH_I2C_Read... [00:11:20]Read from MH i2c: E2 FD 00 72 5D 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 27 [00:11:20]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 [00:11:20]wFMCommunicate OK [00:11:20]wFMCommunicate request_size=4 [00:11:20]MH_SAM_APDU [00:11:20]CAPDU: 80 17 00 00 [00:11:20]Write to MH i2c: E2 08 00 73 5D 80 17 00 00 00 00 00 00 50 [00:11:20]Write i2c OK [00:11:20]MH_I2C_Read... [00:11:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:20]Read from MH i2c: E2 [00:11:20]MH_I2C_Read... [00:11:20]Read from MH i2c: E2 FD 00 [00:11:20]MH_I2C_Read... [00:11:20]Read from MH i2c: E2 FD 00 73 5D 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 CB [00:11:20]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 [00:11:20]wFMCommunicate OK [00:11:20]wFMCommunicate request_size=4 [00:11:20]MH_SAM_APDU [00:11:20]CAPDU: 80 17 00 00 [00:11:20]Write to MH i2c: E2 08 00 74 5D 80 17 00 00 00 00 00 00 51 [00:11:20]Write i2c OK [00:11:20]MH_I2C_Read... [00:11:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [00:11:20]Read from MH i2c: E2 [00:11:20]MH_I2C_Read... [00:11:20]Read from MH i2c: E2 E4 00 [00:11:20]MH_I2C_Read... [00:11:20]Read from MH i2c: E2 E4 00 74 5D 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 31 [00:11:20]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 [00:11:20]wFMCommunicate OK [00:11:20]SAM_PROTO_GetFMData done [00:11:20]requested_item fm.sale_refund.total is exist - process it [00:11:20]requested_item fm.buy.total is exist - process it [00:11:20]requested_item shift.sale.total is exist - process it [00:11:20]SAM_PROTO_GetShiftData [00:11:20]wFMCommunicate request_size=4 [00:11:20]MH_SAM_APDU [00:11:20]CAPDU: 80 13 02 00 [00:11:20]Write to MH i2c: E2 08 00 75 5D 80 13 02 00 00 00 00 00 50 [00:11:20]Write i2c OK [00:11:20]MH_I2C_Read... [00:11:21]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:11:21]Read from MH i2c: E2 [00:11:21]MH_I2C_Read... [00:11:21]Read from MH i2c: E2 FD 00 [00:11:21]MH_I2C_Read... [00:11:21]Read from MH i2c: E2 FD 00 75 5D 00 BB 04 AA 04 B7 04 6E 04 04 00 FF 00 00 00 69 04 9D 00 6F 04 04 00 F6 00 00 00 B1 04 04 00 9C 05 5D 01 70 04 03 00 E4 1C A4 72 04 03 00 B8 E8 B8 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 18 12 25 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 CD 16 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 98 00 6F 04 04 00 09 00 00 00 B1 04 03 00 74 DB 14 70 04 03 00 74 DB 14 72 04 00 00 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 26 37 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 B3 [00:11:21]RAPDU: BB 04 AA 04 B7 04 6E 04 04 00 FF 00 00 00 69 04 9D 00 6F 04 04 00 F6 00 00 00 B1 04 04 00 9C 05 5D 01 70 04 03 00 E4 1C A4 72 04 03 00 B8 E8 B8 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 18 12 25 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 CD 16 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 98 00 6F 04 04 00 09 00 00 00 B1 04 03 00 74 DB 14 70 04 03 00 74 DB 14 72 04 00 00 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 26 37 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [00:11:21]wFMCommunicate OK [00:11:21]wFMCommunicate request_size=4 [00:11:21]MH_SAM_APDU [00:11:21]CAPDU: 80 17 00 00 [00:11:21]Write to MH i2c: E2 08 00 76 5D 80 17 00 00 00 00 00 00 53 [00:11:21]Write i2c OK [00:11:21]MH_I2C_Read... [00:11:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:21]Read from MH i2c: E2 [00:11:21]MH_I2C_Read... [00:11:21]Read from MH i2c: E2 FD 00 [00:11:21]MH_I2C_Read... [00:11:21]Read from MH i2c: E2 FD 00 76 5D 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 42 2F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6E [00:11:21]RAPDU: 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 42 2F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:11:21]wFMCommunicate OK [00:11:21]wFMCommunicate request_size=4 [00:11:21]MH_SAM_APDU [00:11:21]CAPDU: 80 17 00 00 [00:11:21]Write to MH i2c: E2 08 00 77 5D 80 17 00 00 00 00 00 00 54 [00:11:21]Write i2c OK [00:11:21]MH_I2C_Read... [00:11:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:21]Read from MH i2c: E2 [00:11:21]MH_I2C_Read... [00:11:21]Read from MH i2c: E2 FD 00 [00:11:21]MH_I2C_Read... [00:11:21]Read from MH i2c: E2 FD 00 77 5D 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 80 [00:11:21]RAPDU: 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:11:21]wFMCommunicate OK [00:11:21]wFMCommunicate request_size=4 [00:11:21]MH_SAM_APDU [00:11:21]CAPDU: 80 17 00 00 [00:11:21]Write to MH i2c: E2 08 00 78 5D 80 17 00 00 00 00 00 00 55 [00:11:21]Write i2c OK [00:11:21]MH_I2C_Read... [00:11:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:22]Read from MH i2c: E2 [00:11:22]MH_I2C_Read... [00:11:22]Read from MH i2c: E2 FD 00 [00:11:22]MH_I2C_Read... [00:11:22]Read from MH i2c: E2 FD 00 78 5D 00 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 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 90 00 CA [00:11:22]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 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 90 00 [00:11:22]wFMCommunicate OK [00:11:22]wFMCommunicate request_size=4 [00:11:22]MH_SAM_APDU [00:11:22]CAPDU: 80 17 00 00 [00:11:22]Write to MH i2c: E2 08 00 79 5D 80 17 00 00 00 00 00 00 56 [00:11:22]Write i2c OK [00:11:22]MH_I2C_Read... [00:11:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 213! [00:11:22]Read from MH i2c: E2 [00:11:22]MH_I2C_Read... [00:11:22]Read from MH i2c: E2 D8 00 [00:11:22]MH_I2C_Read... [00:11:22]Read from MH i2c: E2 D8 00 79 5D 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 3D [00:11:22]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:11:22]wFMCommunicate OK [00:11:22]SAM_PROTO_GetShiftData done [00:11:22]requested_item shift.sale.total_cash is exist - process it [00:11:22]requested_item shift.sale_refund.total is exist - process it [00:11:22]requested_item shift.sale_refund.total_cash is exist - process it [00:11:22]requested_item shift.buy.total is exist - process it [00:11:22]requested_item shift.buy.total_cash is exist - process it [00:11:22]produce_requested_data done [00:11:22]produce_requested_data return {"fm.sale.total":104563850.15,"fm.sale_refund.total":8793262.45,"fm.buy.total":0.00,"shift.sale.total":228735.00,"shift.sale.total_cash":107553.00,"shift.sale_refund.total":13669.00,"shift.sale_refund.total_cash":13669.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:11:22]process_action_free get_value [00:11:22]json_value_free [00:11:22]json_value_free done [00:11:22]process_json_proto returns [00:11:22]Send response to host [00:11:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":104563850.15,"fm.sale_refund.total":8793262.45,"fm.buy.total":0.00,"shift.sale.total":228735.00,"shift.sale.total_cash":107553.00,"shift.sale_refund.total":13669.00,"shift.sale_refund.total_cash":13669.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:11:22]free response buf [00:11:22]execute_script done [00:11:22]execute_script returns [00:11:22]free content buf [00:11:22]Sock 9.Close socket [00:11:22]Sock 9.Thread stoped [00:11:22]accept exits with 7 [00:11:22]New connection [00:11:22]New thread 3067395428 created [00:11:22]Thread 3067252068 joined [00:11:22]Waiting for new connection... [00:11:22] Sock 7.Parse request [00:11:22]Sock 7.Check first char [00:11:22]Sock 7.First char is OK [00:11:22]request: POST /json_proto HTTP/1.0 [00:11:22]Method: POST [00:11:22]URL: /json_proto [00:11:22]Method is POST - this is cgi request [00:11:22]url: /json_proto [00:11:22]query_string will be loaded in cgi processing [00:11:22]execute_cgi json_proto POST (null) [00:11:22]execute_cgi path=json_proto method=POST [00:11:22]POST find Content-Length [00:11:22]Host: 172.17.48.197:8080 [00:11:22]Content-Length: 271 [00:11:22]Content-Type: application/json [00:11:22] [00:11:22]POST finish read [00:11:22]Found Content-Length = 271 [00:11:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0410\u0431\u044B\u043B\u0433\u0430\u0437\u0438\u0435\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:11:22]execute_script... [00:11:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0410\u0431\u044B\u043B\u0433\u0430\u0437\u0438\u0435\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:11:22]POST & json_proto [00:11:22]process_json_proto [00:11:22]json parsed OK: [00:11:22]protocol is kg_v1.0 [00:11:22]action value=open_shift [00:11:22]process_action open_shift [00:11:22]cmd_open_shift [00:11:22]MH_GetDate [00:11:22]Write to MH i2c: F0 00 00 7A 5D C6 [00:11:22]Write i2c OK [00:11:22]MH_I2C_Read... [00:11:22]Read from MH i2c: F0 [00:11:22]MH_I2C_Read... [00:11:22]Read from MH i2c: F0 09 00 [00:11:22]MH_I2C_Read... [00:11:22]Read from MH i2c: F0 09 00 7A 5D 00 B0 11 E5 65 6C AF E3 65 3D [00:11:22]GetLastDocTimeStamp 1709510463 [00:11:22]current date 1709511088 [00:11:22]FM_GetShiftState [00:11:22]SAM_PROTO_GetShiftState [00:11:22]wFMCommunicate request_size=4 [00:11:22]MH_SAM_APDU [00:11:22]CAPDU: 80 13 01 00 [00:11:22]Write to MH i2c: E2 08 00 7B 5D 80 13 01 00 00 00 00 00 55 [00:11:22]Write i2c OK [00:11:22]MH_I2C_Read... [00:11:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:11:22]Read from MH i2c: E2 [00:11:22]MH_I2C_Read... [00:11:22]Read from MH i2c: E2 0E 00 [00:11:22]MH_I2C_Read... [00:11:22]Read from MH i2c: E2 0E 00 7B 5D 00 09 00 00 00 00 00 00 00 00 00 00 90 00 60 [00:11:22]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:11:22]wFMCommunicate OK [00:11:22]SAM_PROTO_GetShiftState done [00:11:22]FM_GetShiftState done [00:11:22]KKMCreateOpenShiftDocument [00:11:22]Load OK [00:11:22]Malloc new data [00:11:22]MH_GetDate [00:11:22]Write to MH i2c: F0 00 00 7C 5D C8 [00:11:22]Write i2c OK [00:11:22]MH_I2C_Read... [00:11:22]Read from MH i2c: F0 [00:11:22]MH_I2C_Read... [00:11:22]Read from MH i2c: F0 09 00 [00:11:22]MH_I2C_Read... [00:11:22]Read from MH i2c: F0 09 00 7C 5D 00 B0 11 E5 65 6C AF E3 65 3F [00:11:22]Malloc new data [00:11:22]KKMCreateOpenShiftDocument OK [00:11:22]KKMSetOpenShiftData OK [00:11:22]ProcessDocumentItem done err = 0, tmpTLVsize=200 [00:11:22]tlvbuf is 00FA5120 [00:11:22]KKMLoadAndSignOpenShiftData [00:11:22]SAM_PROTO_ProcessDocument [00:11:22]wFMCommunicate request_size=9 [00:11:22]MH_SAM_APDU [00:11:22]CAPDU: 80 15 01 00 04 02 00 C8 00 [00:11:22]Write to MH i2c: E2 0C 00 7D 5D 80 15 01 00 04 00 02 00 C8 00 00 00 2B [00:11:22]Write i2c OK [00:11:22]MH_I2C_Read... [00:11:22]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:11:22]Read from MH i2c: E2 [00:11:22]MH_I2C_Read... [00:11:22]Read from MH i2c: E2 03 00 [00:11:22]MH_I2C_Read... [00:11:22]Read from MH i2c: E2 03 00 7D 5D 00 90 00 4E [00:11:22]RAPDU: 90 00 [00:11:22]wFMCommunicate OK [00:11:22]wFMCommunicate request_size=23 [00:11:22]MH_SAM_APDU [00:11:22]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:11:22]Write to MH i2c: E2 1A 00 7E 5D 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 50 [00:11:22]Write i2c OK [00:11:22]MH_I2C_Read... [00:11:22]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:11:22]Read from MH i2c: E2 [00:11:22]MH_I2C_Read... [00:11:22]Read from MH i2c: E2 03 00 [00:11:22]MH_I2C_Read... [00:11:22]Read from MH i2c: E2 03 00 7E 5D 00 90 00 4F [00:11:22]RAPDU: 90 00 [00:11:22]wFMCommunicate OK [00:11:22]wFMCommunicate request_size=34 [00:11:22]MH_SAM_APDU [00:11:22]CAPDU: 80 15 02 00 1D FD 03 19 00 D0 90 D0 B1 D1 8B D0 BB D0 B3 D0 B0 D0 B7 D0 B8 D0 B5 D0 B2 20 D0 90 2E 20 [00:11:22]Write to MH i2c: E2 25 00 7F 5D 80 15 02 00 1D 00 FD 03 19 00 D0 90 D0 B1 D1 8B D0 BB D0 B3 D0 B0 D0 B7 D0 B8 D0 B5 D0 B2 20 D0 90 2E 20 00 00 5E [00:11:22]Write i2c OK [00:11:22]MH_I2C_Read... [00:11:22]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:11:22]Read from MH i2c: E2 [00:11:22]MH_I2C_Read... [00:11:22]Read from MH i2c: E2 03 00 [00:11:22]MH_I2C_Read... [00:11:22]Read from MH i2c: E2 03 00 7F 5D 00 90 00 50 [00:11:22]RAPDU: 90 00 [00:11:22]wFMCommunicate OK [00:11:22]wFMCommunicate request_size=85 [00:11:22]MH_SAM_APDU [00:11:22]CAPDU: 80 15 02 00 50 F1 03 4C 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2C 20 D1 83 D0 BB 2E 20 D0 9C D0 B5 D0 B4 D0 B5 D1 80 D0 BE D0 B2 D0 B0 20 34 38 20 D0 90 2C 20 34 32 2E 38 35 31 38 36 38 2C 20 37 34 2E 36 31 34 30 31 38 [00:11:22]Write to MH i2c: E2 58 00 80 5D 80 15 02 00 50 00 F1 03 4C 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2C 20 D1 83 D0 BB 2E 20 D0 9C D0 B5 D0 B4 D0 B5 D1 80 D0 BE D0 B2 D0 B0 20 34 38 20 D0 90 2C 20 34 32 2E 38 35 31 38 36 38 2C 20 37 34 2E 36 31 34 30 31 38 00 00 FC [00:11:22]Write i2c OK [00:11:22]MH_I2C_Read... [00:11:23]OFD Sender: No OFD packet to send [00:11:23]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:11:23]Read from MH i2c: E2 [00:11:23]MH_I2C_Read... [00:11:23]Read from MH i2c: E2 03 00 [00:11:23]MH_I2C_Read... [00:11:23]Read from MH i2c: E2 03 00 80 5D 00 90 00 51 [00:11:23]RAPDU: 90 00 [00:11:23]wFMCommunicate OK [00:11:23]wFMCommunicate request_size=50 [00:11:23]MH_SAM_APDU [00:11:23]CAPDU: 80 15 02 00 2D A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 32 35 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 [00:11:23]Write to MH i2c: E2 35 00 81 5D 80 15 02 00 2D 00 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 32 35 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 D4 [00:11:23]Write i2c OK [00:11:23]MH_I2C_Read... [00:11:23]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:11:23]Read from MH i2c: E2 [00:11:23]MH_I2C_Read... [00:11:23]Read from MH i2c: E2 03 00 [00:11:23]MH_I2C_Read... [00:11:23]Read from MH i2c: E2 03 00 81 5D 00 90 00 52 [00:11:23]RAPDU: 90 00 [00:11:23]wFMCommunicate OK [00:11:23]wFMCommunicate request_size=13 [00:11:23]MH_SAM_APDU [00:11:23]CAPDU: 80 15 02 00 08 F4 03 04 00 B0 11 E5 65 [00:11:23]Write to MH i2c: E2 10 00 82 5D 80 15 02 00 08 00 F4 03 04 00 B0 11 E5 65 00 00 75 [00:11:23]Write i2c OK [00:11:23]MH_I2C_Read... [00:11:23]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:11:23]Read from MH i2c: E2 [00:11:23]MH_I2C_Read... [00:11:23]Read from MH i2c: E2 03 00 [00:11:23]MH_I2C_Read... [00:11:23]Read from MH i2c: E2 03 00 82 5D 00 90 00 53 [00:11:23]RAPDU: 90 00 [00:11:23]wFMCommunicate OK [00:11:23]wFMCommunicate request_size=25 [00:11:23]MH_SAM_APDU [00:11:23]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 [00:11:23]Write to MH i2c: E2 1C 00 83 5D 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 00 00 C1 [00:11:23]Write i2c OK [00:11:23]MH_I2C_Read... [00:11:23]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:11:23]Read from MH i2c: E2 [00:11:23]MH_I2C_Read... [00:11:23]Read from MH i2c: E2 03 00 [00:11:23]MH_I2C_Read... [00:11:23]Read from MH i2c: E2 03 00 83 5D 00 90 00 54 [00:11:23]RAPDU: 90 00 [00:11:23]wFMCommunicate OK [00:11:23]wFMCommunicate request_size=4 [00:11:23]MH_SAM_APDU [00:11:23]CAPDU: 80 15 03 00 [00:11:23]Write to MH i2c: E2 08 00 84 5D 80 15 03 00 00 00 00 00 62 [00:11:23]Write i2c OK [00:11:23]MH_I2C_Read... [00:11:23]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:11:23]Read from MH i2c: E2 [00:11:23]MH_I2C_Read... [00:11:23]Read from MH i2c: E2 38 00 [00:11:23]MH_I2C_Read... [00:11:23]Read from MH i2c: E2 38 00 84 5D 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 37 39 38 10 04 04 00 08 E2 01 00 0E 04 04 00 44 01 00 00 35 04 06 00 79 34 A1 41 EC E5 90 00 C9 [00:11:23]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 37 39 38 10 04 04 00 08 E2 01 00 0E 04 04 00 44 01 00 00 35 04 06 00 79 34 A1 41 EC E5 90 00 [00:11:23]wFMCommunicate OK [00:11:23]SAM_PROTO_ProcessDocument answer len = 51 [00:11:23]SAM_PROTO_ProcessDocument done [00:11:23]SetTLVBufToDocument [00:11:23]Processing tag 1209 (04B9) [00:11:23]Malloc new data [00:11:23]Processing tag 1041 (0411) [00:11:23]Processing tag 1040 (0410) [00:11:23]Malloc new data [00:11:23]Processing tag 1038 (040E) [00:11:23]Malloc new data [00:11:23]Processing tag 1077 (0435) [00:11:23]Malloc new data [00:11:23]SetTLVBufToDocument err=0 [00:11:23]KKMLoadAndSignOpenShiftData store KKM data [00:11:23]KKMLoadAndSignOpenShiftData err=0 [00:11:23]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Абылгазиев А. Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 Место: АЗС № 25 "Партнер Нефть" 04.03.2024 00:11 Смена: 324 РНМ: 0000000000090573 ЗНМ: 0300000019 ФД: 123400 ФМ: 0000000000874798 ФПД: 133266950712549 [00:11:23]StoreToDocumentArchive [00:11:23]shift 324 fd 123400 [00:11:23]Create dir for shift 0324 [00:11:23]save to /storage/0324/doc_00123400 [00:11:23]save last doc name /storage/0324/doc_00123400 to /storage/kkm_last_doc_name [00:11:23]save OK [00:11:23]Clear old archive folders... [00:11:23]Remove dir /storage/0323 [00:11:23]opendir ok [00:11:23]file . [00:11:23]file .. [00:11:23]file doc_00123143 [00:11:23]remove file /storage/0323/doc_00123143 [00:11:23]file doc_00123144 [00:11:23]remove file /storage/0323/doc_00123144 [00:11:23]file doc_00123145 [00:11:23]remove file /storage/0323/doc_00123145 [00:11:23]file doc_00123146 [00:11:23]remove file /storage/0323/doc_00123146 [00:11:23]file doc_00123147 [00:11:23]remove file /storage/0323/doc_00123147 [00:11:23]file doc_00123148 [00:11:23]remove file /storage/0323/doc_00123148 [00:11:23]file doc_00123149 [00:11:23]remove file /storage/0323/doc_00123149 [00:11:23]file doc_00123150 [00:11:23]remove file /storage/0323/doc_00123150 [00:11:23]file doc_00123151 [00:11:23]remove file /storage/0323/doc_00123151 [00:11:23]file doc_00123152 [00:11:23]remove file /storage/0323/doc_00123152 [00:11:23]file doc_00123153 [00:11:23]remove file /storage/0323/doc_00123153 [00:11:23]file doc_00123154 [00:11:23]remove file /storage/0323/doc_00123154 [00:11:23]file doc_00123155 [00:11:23]remove file /storage/0323/doc_00123155 [00:11:23]file doc_00123156 [00:11:23]remove file /storage/0323/doc_00123156 [00:11:23]file doc_00123157 [00:11:23]remove file /storage/0323/doc_00123157 [00:11:23]file doc_00123158 [00:11:23]remove file /storage/0323/doc_00123158 [00:11:23]file doc_00123159 [00:11:23]remove file /storage/0323/doc_00123159 [00:11:23]file doc_00123160 [00:11:23]remove file /storage/0323/doc_00123160 [00:11:23]file doc_00123161 [00:11:23]remove file /storage/0323/doc_00123161 [00:11:23]file doc_00123162 [00:11:23]remove file /storage/0323/doc_00123162 [00:11:23]file doc_00123163 [00:11:23]remove file /storage/0323/doc_00123163 [00:11:23]file doc_00123164 [00:11:23]remove file /storage/0323/doc_00123164 [00:11:23]file doc_00123165 [00:11:23]remove file /storage/0323/doc_00123165 [00:11:23]file doc_00123166 [00:11:23]remove file /storage/0323/doc_00123166 [00:11:23]file doc_00123167 [00:11:23]remove file /storage/0323/doc_00123167 [00:11:23]file doc_00123168 [00:11:23]remove file /storage/0323/doc_00123168 [00:11:23]file doc_00123169 [00:11:23]remove file /storage/0323/doc_00123169 [00:11:23]file doc_00123170 [00:11:23]remove file /storage/0323/doc_00123170 [00:11:23]file doc_00123171 [00:11:23]remove file /storage/0323/doc_00123171 [00:11:23]file doc_00123172 [00:11:23]remove file /storage/0323/doc_00123172 [00:11:23]file doc_00123173 [00:11:23]remove file /storage/0323/doc_00123173 [00:11:23]file doc_00123174 [00:11:23]remove file /storage/0323/doc_00123174 [00:11:23]file doc_00123175 [00:11:23]remove file /storage/0323/doc_00123175 [00:11:23]file doc_00123176 [00:11:23]remove file /storage/0323/doc_00123176 [00:11:23]file doc_00123177 [00:11:23]remove file /storage/0323/doc_00123177 [00:11:23]file doc_00123178 [00:11:23]remove file /storage/0323/doc_00123178 [00:11:23]file doc_00123179 [00:11:23]remove file /storage/0323/doc_00123179 [00:11:23]file doc_00123180 [00:11:23]remove file /storage/0323/doc_00123180 [00:11:23]file doc_00123181 [00:11:23]remove file /storage/0323/doc_00123181 [00:11:23]file doc_00123182 [00:11:23]remove file /storage/0323/doc_00123182 [00:11:23]file doc_00123183 [00:11:23]remove file /storage/0323/doc_00123183 [00:11:23]file doc_00123184 [00:11:23]remove file /storage/0323/doc_00123184 [00:11:23]file doc_00123185 [00:11:23]remove file /storage/0323/doc_00123185 [00:11:23]file doc_00123186 [00:11:23]remove file /storage/0323/doc_00123186 [00:11:23]file doc_00123187 [00:11:23]remove file /storage/0323/doc_00123187 [00:11:23]file doc_00123188 [00:11:23]remove file /storage/0323/doc_00123188 [00:11:23]file doc_00123189 [00:11:23]remove file /storage/0323/doc_00123189 [00:11:23]file doc_00123190 [00:11:23]remove file /storage/0323/doc_00123190 [00:11:23]file doc_00123191 [00:11:23]remove file /storage/0323/doc_00123191 [00:11:23]file doc_00123192 [00:11:23]remove file /storage/0323/doc_00123192 [00:11:23]file doc_00123193 [00:11:23]remove file /storage/0323/doc_00123193 [00:11:23]file doc_00123194 [00:11:23]remove file /storage/0323/doc_00123194 [00:11:23]file doc_00123195 [00:11:23]remove file /storage/0323/doc_00123195 [00:11:23]file doc_00123196 [00:11:23]remove file /storage/0323/doc_00123196 [00:11:23]file doc_00123197 [00:11:23]remove file /storage/0323/doc_00123197 [00:11:23]file doc_00123198 [00:11:23]remove file /storage/0323/doc_00123198 [00:11:23]file doc_00123199 [00:11:23]remove file /storage/0323/doc_00123199 [00:11:23]file doc_00123200 [00:11:23]remove file /storage/0323/doc_00123200 [00:11:23]file doc_00123201 [00:11:23]remove file /storage/0323/doc_00123201 [00:11:23]file doc_00123202 [00:11:23]remove file /storage/0323/doc_00123202 [00:11:23]file doc_00123203 [00:11:23]remove file /storage/0323/doc_00123203 [00:11:23]file doc_00123204 [00:11:23]remove file /storage/0323/doc_00123204 [00:11:23]file doc_00123205 [00:11:23]remove file /storage/0323/doc_00123205 [00:11:23]file doc_00123206 [00:11:23]remove file /storage/0323/doc_00123206 [00:11:23]file doc_00123207 [00:11:23]remove file /storage/0323/doc_00123207 [00:11:23]file doc_00123208 [00:11:23]remove file /storage/0323/doc_00123208 [00:11:23]file doc_00123209 [00:11:23]remove file /storage/0323/doc_00123209 [00:11:23]file doc_00123210 [00:11:23]remove file /storage/0323/doc_00123210 [00:11:23]file doc_00123211 [00:11:23]remove file /storage/0323/doc_00123211 [00:11:23]file doc_00123212 [00:11:23]remove file /storage/0323/doc_00123212 [00:11:24]file doc_00123213 [00:11:24]remove file /storage/0323/doc_00123213 [00:11:24]file doc_00123214 [00:11:24]remove file /storage/0323/doc_00123214 [00:11:24]file doc_00123215 [00:11:24]remove file /storage/0323/doc_00123215 [00:11:24]file doc_00123216 [00:11:24]remove file /storage/0323/doc_00123216 [00:11:24]file doc_00123217 [00:11:24]remove file /storage/0323/doc_00123217 [00:11:24]file doc_00123218 [00:11:24]remove file /storage/0323/doc_00123218 [00:11:24]file doc_00123219 [00:11:24]remove file /storage/0323/doc_00123219 [00:11:24]file doc_00123220 [00:11:24]remove file /storage/0323/doc_00123220 [00:11:24]file doc_00123221 [00:11:24]remove file /storage/0323/doc_00123221 [00:11:24]file doc_00123222 [00:11:24]remove file /storage/0323/doc_00123222 [00:11:24]file doc_00123223 [00:11:24]remove file /storage/0323/doc_00123223 [00:11:24]file doc_00123224 [00:11:24]remove file /storage/0323/doc_00123224 [00:11:24]file doc_00123225 [00:11:24]remove file /storage/0323/doc_00123225 [00:11:24]file doc_00123226 [00:11:24]remove file /storage/0323/doc_00123226 [00:11:24]file doc_00123227 [00:11:24]remove file /storage/0323/doc_00123227 [00:11:24]file doc_00123228 [00:11:24]remove file /storage/0323/doc_00123228 [00:11:24]file doc_00123229 [00:11:24]remove file /storage/0323/doc_00123229 [00:11:24]file doc_00123230 [00:11:24]remove file /storage/0323/doc_00123230 [00:11:24]file doc_00123231 [00:11:24]remove file /storage/0323/doc_00123231 [00:11:24]file doc_00123232 [00:11:24]remove file /storage/0323/doc_00123232 [00:11:24]file doc_00123233 [00:11:24]remove file /storage/0323/doc_00123233 [00:11:24]file doc_00123234 [00:11:24]remove file /storage/0323/doc_00123234 [00:11:24]file doc_00123235 [00:11:24]remove file /storage/0323/doc_00123235 [00:11:24]file doc_00123236 [00:11:24]remove file /storage/0323/doc_00123236 [00:11:24]file doc_00123237 [00:11:24]remove file /storage/0323/doc_00123237 [00:11:24]file doc_00123238 [00:11:24]remove file /storage/0323/doc_00123238 [00:11:24]file doc_00123239 [00:11:24]remove file /storage/0323/doc_00123239 [00:11:24]file doc_00123240 [00:11:24]remove file /storage/0323/doc_00123240 [00:11:24]file doc_00123241 [00:11:24]remove file /storage/0323/doc_00123241 [00:11:24]file doc_00123242 [00:11:24]remove file /storage/0323/doc_00123242 [00:11:24]file doc_00123243 [00:11:24]remove file /storage/0323/doc_00123243 [00:11:24]file doc_00123244 [00:11:24]remove file /storage/0323/doc_00123244 [00:11:24]file doc_00123245 [00:11:24]remove file /storage/0323/doc_00123245 [00:11:24]file doc_00123246 [00:11:24]remove file /storage/0323/doc_00123246 [00:11:24]file doc_00123247 [00:11:24]remove file /storage/0323/doc_00123247 [00:11:24]file doc_00123248 [00:11:24]remove file /storage/0323/doc_00123248 [00:11:24]file doc_00123249 [00:11:24]remove file /storage/0323/doc_00123249 [00:11:24]file doc_00123250 [00:11:24]remove file /storage/0323/doc_00123250 [00:11:24]file doc_00123251 [00:11:24]remove file /storage/0323/doc_00123251 [00:11:24]file doc_00123252 [00:11:24]remove file /storage/0323/doc_00123252 [00:11:24]file doc_00123253 [00:11:24]remove file /storage/0323/doc_00123253 [00:11:24]file doc_00123254 [00:11:24]remove file /storage/0323/doc_00123254 [00:11:24]file doc_00123255 [00:11:24]remove file /storage/0323/doc_00123255 [00:11:24]file doc_00123256 [00:11:24]remove file /storage/0323/doc_00123256 [00:11:24]file doc_00123257 [00:11:24]remove file /storage/0323/doc_00123257 [00:11:24]file doc_00123258 [00:11:24]remove file /storage/0323/doc_00123258 [00:11:24]file doc_00123259 [00:11:24]remove file /storage/0323/doc_00123259 [00:11:24]file doc_00123260 [00:11:24]remove file /storage/0323/doc_00123260 [00:11:24]file doc_00123261 [00:11:24]remove file /storage/0323/doc_00123261 [00:11:24]file doc_00123262 [00:11:24]remove file /storage/0323/doc_00123262 [00:11:24]file doc_00123263 [00:11:24]remove file /storage/0323/doc_00123263 [00:11:24]file doc_00123264 [00:11:24]remove file /storage/0323/doc_00123264 [00:11:24]file doc_00123265 [00:11:24]remove file /storage/0323/doc_00123265 [00:11:24]file doc_00123266 [00:11:24]remove file /storage/0323/doc_00123266 [00:11:24]file doc_00123267 [00:11:24]remove file /storage/0323/doc_00123267 [00:11:24]file doc_00123268 [00:11:24]remove file /storage/0323/doc_00123268 [00:11:24]file doc_00123269 [00:11:24]remove file /storage/0323/doc_00123269 [00:11:24]file doc_00123270 [00:11:24]remove file /storage/0323/doc_00123270 [00:11:24]file doc_00123271 [00:11:24]remove file /storage/0323/doc_00123271 [00:11:24]file doc_00123272 [00:11:24]remove file /storage/0323/doc_00123272 [00:11:24]file doc_00123273 [00:11:24]remove file /storage/0323/doc_00123273 [00:11:24]file doc_00123274 [00:11:24]remove file /storage/0323/doc_00123274 [00:11:24]file doc_00123275 [00:11:24]remove file /storage/0323/doc_00123275 [00:11:24]file doc_00123276 [00:11:24]remove file /storage/0323/doc_00123276 [00:11:24]file doc_00123277 [00:11:24]remove file /storage/0323/doc_00123277 [00:11:24]file doc_00123278 [00:11:24]remove file /storage/0323/doc_00123278 [00:11:24]file doc_00123279 [00:11:24]remove file /storage/0323/doc_00123279 [00:11:24]file doc_00123280 [00:11:24]remove file /storage/0323/doc_00123280 [00:11:24]file doc_00123281 [00:11:24]remove file /storage/0323/doc_00123281 [00:11:24]file doc_00123282 [00:11:24]remove file /storage/0323/doc_00123282 [00:11:24]file doc_00123283 [00:11:24]remove file /storage/0323/doc_00123283 [00:11:24]file doc_00123284 [00:11:24]remove file /storage/0323/doc_00123284 [00:11:24]file doc_00123285 [00:11:24]remove file /storage/0323/doc_00123285 [00:11:24]file doc_00123286 [00:11:24]remove file /storage/0323/doc_00123286 [00:11:24]file doc_00123287 [00:11:24]remove file /storage/0323/doc_00123287 [00:11:24]file doc_00123288 [00:11:24]remove file /storage/0323/doc_00123288 [00:11:24]file doc_00123289 [00:11:24]remove file /storage/0323/doc_00123289 [00:11:24]file doc_00123290 [00:11:24]remove file /storage/0323/doc_00123290 [00:11:24]file doc_00123291 [00:11:24]remove file /storage/0323/doc_00123291 [00:11:24]file doc_00123292 [00:11:24]remove file /storage/0323/doc_00123292 [00:11:24]file doc_00123293 [00:11:24]remove file /storage/0323/doc_00123293 [00:11:24]file doc_00123294 [00:11:24]remove file /storage/0323/doc_00123294 [00:11:24]file doc_00123295 [00:11:24]remove file /storage/0323/doc_00123295 [00:11:24]file doc_00123296 [00:11:24]remove file /storage/0323/doc_00123296 [00:11:24]file doc_00123297 [00:11:24]remove file /storage/0323/doc_00123297 [00:11:24]file doc_00123298 [00:11:24]remove file /storage/0323/doc_00123298 [00:11:24]file doc_00123299 [00:11:24]remove file /storage/0323/doc_00123299 [00:11:24]file doc_00123300 [00:11:24]remove file /storage/0323/doc_00123300 [00:11:24]file doc_00123301 [00:11:24]remove file /storage/0323/doc_00123301 [00:11:24]file doc_00123302 [00:11:24]remove file /storage/0323/doc_00123302 [00:11:24]file doc_00123303 [00:11:24]remove file /storage/0323/doc_00123303 [00:11:24]file doc_00123304 [00:11:24]remove file /storage/0323/doc_00123304 [00:11:24]file doc_00123305 [00:11:24]remove file /storage/0323/doc_00123305 [00:11:24]file doc_00123306 [00:11:24]remove file /storage/0323/doc_00123306 [00:11:24]file doc_00123307 [00:11:24]remove file /storage/0323/doc_00123307 [00:11:24]file doc_00123308 [00:11:24]remove file /storage/0323/doc_00123308 [00:11:24]file doc_00123309 [00:11:24]remove file /storage/0323/doc_00123309 [00:11:24]file doc_00123310 [00:11:24]remove file /storage/0323/doc_00123310 [00:11:24]file doc_00123311 [00:11:24]remove file /storage/0323/doc_00123311 [00:11:24]file doc_00123312 [00:11:24]remove file /storage/0323/doc_00123312 [00:11:24]file doc_00123313 [00:11:24]remove file /storage/0323/doc_00123313 [00:11:24]file doc_00123314 [00:11:24]remove file /storage/0323/doc_00123314 [00:11:24]file doc_00123315 [00:11:24]remove file /storage/0323/doc_00123315 [00:11:24]file doc_00123316 [00:11:24]remove file /storage/0323/doc_00123316 [00:11:24]file doc_00123317 [00:11:24]remove file /storage/0323/doc_00123317 [00:11:24]file doc_00123318 [00:11:24]remove file /storage/0323/doc_00123318 [00:11:24]file doc_00123319 [00:11:24]remove file /storage/0323/doc_00123319 [00:11:24]file doc_00123320 [00:11:24]remove file /storage/0323/doc_00123320 [00:11:24]file doc_00123321 [00:11:24]remove file /storage/0323/doc_00123321 [00:11:24]file doc_00123322 [00:11:24]remove file /storage/0323/doc_00123322 [00:11:24]file doc_00123323 [00:11:24]remove file /storage/0323/doc_00123323 [00:11:24]file doc_00123324 [00:11:24]remove file /storage/0323/doc_00123324 [00:11:24]file doc_00123325 [00:11:24]remove file /storage/0323/doc_00123325 [00:11:24]file doc_00123326 [00:11:24]remove file /storage/0323/doc_00123326 [00:11:24]file doc_00123327 [00:11:24]remove file /storage/0323/doc_00123327 [00:11:24]file doc_00123328 [00:11:24]remove file /storage/0323/doc_00123328 [00:11:24]file doc_00123329 [00:11:24]remove file /storage/0323/doc_00123329 [00:11:24]file doc_00123330 [00:11:24]remove file /storage/0323/doc_00123330 [00:11:24]file doc_00123331 [00:11:24]remove file /storage/0323/doc_00123331 [00:11:24]file doc_00123332 [00:11:24]remove file /storage/0323/doc_00123332 [00:11:24]file doc_00123333 [00:11:24]remove file /storage/0323/doc_00123333 [00:11:24]file doc_00123334 [00:11:24]remove file /storage/0323/doc_00123334 [00:11:24]file doc_00123335 [00:11:24]remove file /storage/0323/doc_00123335 [00:11:24]file doc_00123336 [00:11:24]remove file /storage/0323/doc_00123336 [00:11:24]file doc_00123337 [00:11:24]remove file /storage/0323/doc_00123337 [00:11:24]file doc_00123338 [00:11:24]remove file /storage/0323/doc_00123338 [00:11:24]file doc_00123339 [00:11:24]remove file /storage/0323/doc_00123339 [00:11:24]file doc_00123340 [00:11:24]remove file /storage/0323/doc_00123340 [00:11:24]file doc_00123341 [00:11:24]remove file /storage/0323/doc_00123341 [00:11:24]file doc_00123342 [00:11:24]remove file /storage/0323/doc_00123342 [00:11:24]file doc_00123343 [00:11:24]remove file /storage/0323/doc_00123343 [00:11:24]file doc_00123344 [00:11:24]remove file /storage/0323/doc_00123344 [00:11:24]file doc_00123345 [00:11:24]remove file /storage/0323/doc_00123345 [00:11:24]file doc_00123346 [00:11:24]remove file /storage/0323/doc_00123346 [00:11:24]file doc_00123347 [00:11:24]remove file /storage/0323/doc_00123347 [00:11:24]file doc_00123348 [00:11:24]remove file /storage/0323/doc_00123348 [00:11:24]file doc_00123349 [00:11:24]remove file /storage/0323/doc_00123349 [00:11:24]file doc_00123350 [00:11:24]remove file /storage/0323/doc_00123350 [00:11:24]file doc_00123351 [00:11:24]remove file /storage/0323/doc_00123351 [00:11:24]file doc_00123352 [00:11:24]remove file /storage/0323/doc_00123352 [00:11:24]file doc_00123353 [00:11:24]remove file /storage/0323/doc_00123353 [00:11:24]file doc_00123354 [00:11:24]remove file /storage/0323/doc_00123354 [00:11:24]file doc_00123355 [00:11:24]remove file /storage/0323/doc_00123355 [00:11:24]file doc_00123356 [00:11:24]remove file /storage/0323/doc_00123356 [00:11:24]file doc_00123357 [00:11:24]remove file /storage/0323/doc_00123357 [00:11:24]file doc_00123358 [00:11:24]remove file /storage/0323/doc_00123358 [00:11:24]file doc_00123359 [00:11:24]remove file /storage/0323/doc_00123359 [00:11:24]file doc_00123360 [00:11:24]remove file /storage/0323/doc_00123360 [00:11:24]file doc_00123361 [00:11:24]remove file /storage/0323/doc_00123361 [00:11:24]file doc_00123362 [00:11:24]remove file /storage/0323/doc_00123362 [00:11:24]file doc_00123363 [00:11:24]remove file /storage/0323/doc_00123363 [00:11:24]file doc_00123364 [00:11:24]remove file /storage/0323/doc_00123364 [00:11:24]file doc_00123365 [00:11:24]remove file /storage/0323/doc_00123365 [00:11:24]file doc_00123366 [00:11:24]remove file /storage/0323/doc_00123366 [00:11:24]file doc_00123367 [00:11:24]remove file /storage/0323/doc_00123367 [00:11:24]file doc_00123368 [00:11:24]remove file /storage/0323/doc_00123368 [00:11:24]file doc_00123369 [00:11:24]remove file /storage/0323/doc_00123369 [00:11:24]file doc_00123370 [00:11:24]remove file /storage/0323/doc_00123370 [00:11:24]file doc_00123371 [00:11:24]remove file /storage/0323/doc_00123371 [00:11:24]file doc_00123372 [00:11:24]remove file /storage/0323/doc_00123372 [00:11:24]file doc_00123373 [00:11:24]remove file /storage/0323/doc_00123373 [00:11:24]file doc_00123374 [00:11:24]remove file /storage/0323/doc_00123374 [00:11:24]file doc_00123375 [00:11:24]remove file /storage/0323/doc_00123375 [00:11:24]file doc_00123376 [00:11:24]remove file /storage/0323/doc_00123376 [00:11:24]file doc_00123377 [00:11:24]remove file /storage/0323/doc_00123377 [00:11:24]file doc_00123378 [00:11:24]remove file /storage/0323/doc_00123378 [00:11:24]file doc_00123379 [00:11:24]remove file /storage/0323/doc_00123379 [00:11:24]file doc_00123380 [00:11:24]remove file /storage/0323/doc_00123380 [00:11:24]file doc_00123381 [00:11:24]remove file /storage/0323/doc_00123381 [00:11:24]file doc_00123382 [00:11:24]remove file /storage/0323/doc_00123382 [00:11:24]file doc_00123383 [00:11:24]remove file /storage/0323/doc_00123383 [00:11:24]file doc_00123384 [00:11:24]remove file /storage/0323/doc_00123384 [00:11:24]file doc_00123385 [00:11:24]remove file /storage/0323/doc_00123385 [00:11:24]file doc_00123386 [00:11:24]remove file /storage/0323/doc_00123386 [00:11:24]file doc_00123387 [00:11:24]remove file /storage/0323/doc_00123387 [00:11:24]file doc_00123388 [00:11:24]remove file /storage/0323/doc_00123388 [00:11:24]file doc_00123389 [00:11:24]remove file /storage/0323/doc_00123389 [00:11:24]file doc_00123390 [00:11:24]remove file /storage/0323/doc_00123390 [00:11:24]file doc_00123391 [00:11:24]remove file /storage/0323/doc_00123391 [00:11:24]file doc_00123392 [00:11:24]remove file /storage/0323/doc_00123392 [00:11:24]file doc_00123393 [00:11:24]remove file /storage/0323/doc_00123393 [00:11:24]file doc_00123394 [00:11:24]remove file /storage/0323/doc_00123394 [00:11:24]file doc_00123395 [00:11:24]remove file /storage/0323/doc_00123395 [00:11:24]file doc_00123396 [00:11:24]remove file /storage/0323/doc_00123396 [00:11:24]file doc_00123397 [00:11:24]remove file /storage/0323/doc_00123397 [00:11:24]file doc_00123398 [00:11:24]remove file /storage/0323/doc_00123398 [00:11:24]file doc_00123399 [00:11:24]remove file /storage/0323/doc_00123399 [00:11:24]remove dir /storage/0323 [00:11:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:11:24]tlvbuf is 00E93D90 [00:11:24]SAM_PROTO_ClearQueue [00:11:24]wFMCommunicate request_size=4 [00:11:24]MH_SAM_APDU [00:11:24]CAPDU: 80 09 00 00 [00:11:24]Write to MH i2c: E2 08 00 85 5D 80 09 00 00 00 00 00 00 54 [00:11:24]Write i2c OK [00:11:24]MH_I2C_Read... [00:11:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:11:24]Read from MH i2c: E2 [00:11:24]MH_I2C_Read... [00:11:24]Read from MH i2c: E2 03 00 [00:11:24]MH_I2C_Read... [00:11:24]Read from MH i2c: E2 03 00 85 5D 00 90 00 56 [00:11:24]RAPDU: 90 00 [00:11:24]wFMCommunicate OK [00:11:24]SAM_PROTO_ClearQueue done [00:11:24]KKMCreateOFDPacket [00:11:24]OFDProtocolAddRootSTLVToBuf [00:11:24]FM_MakeSignedData [00:11:24]FM_MakeSignedData [00:11:24]SAM_PROTO_SignData [00:11:24]wFMCommunicate request_size=4 [00:11:24]MH_SAM_APDU [00:11:24]CAPDU: 80 0D 01 02 [00:11:24]Write to MH i2c: E2 08 00 86 5D 80 0D 01 02 00 00 00 00 5C [00:11:24]Write i2c OK [00:11:24]MH_I2C_Read... [00:11:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:11:25]Read from MH i2c: E2 [00:11:25]MH_I2C_Read... [00:11:25]Read from MH i2c: E2 03 00 [00:11:25]MH_I2C_Read... [00:11:25]Read from MH i2c: E2 03 00 86 5D 00 90 00 57 [00:11:25]RAPDU: 90 00 [00:11:25]wFMCommunicate OK [00:11:25]wFMCommunicate request_size=255 [00:11:25]MH_SAM_APDU [00:11:25]CAPDU: 80 0D 02 02 FA 02 00 FB 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 19 00 D0 90 D0 B1 D1 8B D0 BB D0 B3 D0 B0 D0 B7 D0 B8 D0 B5 D0 B2 20 D0 90 2E 20 F1 03 4C 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2C 20 D1 83 D0 BB 2E 20 D0 9C D0 B5 D0 B4 D0 B5 D1 80 D0 BE D0 B2 D0 B0 20 34 38 20 D0 90 2C 20 34 32 2E 38 35 31 38 36 38 2C 20 37 34 2E 36 31 34 30 31 38 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 32 35 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 B0 11 E5 65 0E 04 04 00 44 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 08 E2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 35 04 06 00 79 [00:11:25]Write to MH i2c: E2 02 01 87 5D 80 0D 02 02 FA 00 02 00 FB 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 19 00 D0 90 D0 B1 D1 8B D0 BB D0 B3 D0 B0 D0 B7 D0 B8 D0 B5 D0 B2 20 D0 90 2E 20 F1 03 4C 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2C 20 D1 83 D0 BB 2E 20 D0 9C D0 B5 D0 B4 D0 B5 D1 80 D0 BE D0 B2 D0 B0 20 34 38 20 D0 90 2C 20 34 32 2E 38 35 31 38 36 38 2C 20 37 34 2E 36 31 34 30 31 38 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 32 35 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 B0 11 E5 65 0E 04 04 00 44 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 08 E2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 35 04 06 00 79 00 00 68 [00:11:25]Write i2c OK [00:11:25]MH_I2C_Read... [00:11:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:11:25]Read from MH i2c: E2 [00:11:25]MH_I2C_Read... [00:11:25]Read from MH i2c: E2 03 00 [00:11:25]MH_I2C_Read... [00:11:25]Read from MH i2c: E2 03 00 87 5D 00 90 00 58 [00:11:25]RAPDU: 90 00 [00:11:25]wFMCommunicate OK [00:11:25]wFMCommunicate request_size=10 [00:11:25]MH_SAM_APDU [00:11:25]CAPDU: 80 0D 02 02 05 34 A1 41 EC E5 [00:11:25]Write to MH i2c: E2 0D 00 88 5D 80 0D 02 02 05 00 34 A1 41 EC E5 00 00 50 [00:11:25]Write i2c OK [00:11:25]MH_I2C_Read... [00:11:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:11:25]Read from MH i2c: E2 [00:11:25]MH_I2C_Read... [00:11:25]Read from MH i2c: E2 03 00 [00:11:25]MH_I2C_Read... [00:11:25]Read from MH i2c: E2 03 00 88 5D 00 90 00 59 [00:11:25]RAPDU: 90 00 [00:11:25]wFMCommunicate OK [00:11:25]wFMCommunicate request_size=4 [00:11:25]MH_SAM_APDU [00:11:25]CAPDU: 80 0D 03 02 [00:11:25]Write to MH i2c: E2 08 00 89 5D 80 0D 03 02 00 00 00 00 61 [00:11:25]Write i2c OK [00:11:25]MH_I2C_Read... [00:11:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:11:25]Read from MH i2c: E2 [00:11:25]MH_I2C_Read... [00:11:25]Read from MH i2c: E2 0B 00 [00:11:25]MH_I2C_Read... [00:11:25]Read from MH i2c: E2 0B 00 89 5D 00 A2 05 AF 2B 4E 89 15 81 90 00 50 [00:11:25]RAPDU: A2 05 AF 2B 4E 89 15 81 90 00 [00:11:25]wFMCommunicate OK [00:11:25]SAM_PROTO_SignData done [00:11:25]FM_MakeSignedData done [00:11:25]CreateOFDProtocolMessage [00:11:25]wFMCommunicate request_size=4 [00:11:25]MH_SAM_APDU [00:11:25]CAPDU: 80 11 00 00 [00:11:25]Write to MH i2c: E2 08 00 8A 5D 80 11 00 00 00 00 00 00 61 [00:11:25]Write i2c OK [00:11:25]MH_I2C_Read... [00:11:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:11:25]Read from MH i2c: E2 [00:11:25]MH_I2C_Read... [00:11:25]Read from MH i2c: E2 17 00 [00:11:25]MH_I2C_Read... [00:11:25]Read from MH i2c: E2 17 00 8A 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 BF [00:11:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [00:11:25]wFMCommunicate OK [00:11:25]CreateOFDProtocolMessage done [00:11:25]OFDSenderStorePacket 123400 [00:11:25]StoreOFDPacket docnum=123400 [00:11:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 B6 06 07 01 2A B6 5A 02 01 00 02 00 FB 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 19 00 D0 90 D0 B1 D1 8B D0 BB D0 B3 D0 B0 D0 B7 D0 B8 D0 B5 D0 B2 20 D0 90 2E 20 F1 03 4C 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2C 20 D1 83 D0 BB 2E 20 D0 9C D0 B5 D0 B4 D0 B5 D1 80 D0 BE D0 B2 D0 B0 20 34 38 20 D0 90 2C 20 34 32 2E 38 35 31 38 36 38 2C 20 37 34 2E 36 31 34 30 31 38 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 32 35 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 B0 11 E5 65 0E 04 04 00 44 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 08 E2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 35 04 06 00 79 34 A1 41 EC E5 A2 05 AF 2B 4E 89 15 81 [00:11:25]CheckFolder [00:11:25]dirname=/storage/ofd_packets [00:11:25]CheckFolder done [00:11:25]ProducePacketName [00:11:25]name=ofd_packets/00123400 [00:11:25]NVStorageSaveData ofd_packets/00123400 [00:11:25]File name is /storage/ofd_packets/00123400 [00:11:25]Write 301 bytes [00:11:25]NVStorageSaveData done [00:11:25]OFDSenderStorePacket done [00:11:25]KKMCreateOFDPacket done [00:11:25]NVStorageSaveData kkm_last_timestamp [00:11:25]File name is /storage/kkm_last_timestamp [00:11:25]Write 4 bytes [00:11:25]NVStorageSaveData done [00:11:25]ExternCall_PrintAddStr [00:11:25]wPrintStart [00:11:25]Write to MH i2c: 01 00 00 8B 5D E8 [00:11:25]Write i2c OK [00:11:25]MH_I2C_Read... [00:11:25]Read from MH i2c: 01 [00:11:25]MH_I2C_Read... [00:11:25]Read from MH i2c: 01 07 00 [00:11:25]MH_I2C_Read... [00:11:25]Read from MH i2c: 01 07 00 8B 5D 00 00 00 00 00 FF 0F FD [00:11:25]RasterBufferAndPrint [00:11:25]line Отчет об открытии смены [00:11:25]line ФФД: 1.0 [00:11:25]line ИНН: 02508201610067 [00:11:25]line Кассир: Абылгазиев А. [00:11:25]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [00:11:25]line Место: АЗС № 25 "Партнер Нефть" [00:11:25]line 04.03.2024 00:11 [00:11:25]line Смена: 324 [00:11:25]line РНМ: 0000000000090573 [00:11:25]line ЗНМ: 0300000019 [00:11:25]line ФД: 123400 [00:11:25]line ФМ: 0000000000874798 [00:11:25]line ФПД: 133266950712549 [00:11:25]written 0, free lines is 4095 [00:11:25]OFD Sender: Processing packet 123400 [packets to send 112, broken 111] [00:11:25]ProducePacketName [00:11:25]name=ofd_packets/00123400 [00:11:25]OFD Sender: To server: pG, [00:11:25]CommunicateWithHost lk.salyk.kg:30040 [00:11:25]ConnectInit lk.salyk.kg [00:11:25]Connected sock=10 [00:11: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 37 39 38 0F 01 00 00 B6 06 07 01 2A B6 5A 02 01 00 02 00 FB 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 19 00 D0 90 D0 B1 D1 8B D0 BB D0 B3 D0 B0 D0 B7 D0 B8 D0 B5 D0 B2 20 D0 90 2E 20 F1 03 4C 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2C 20 D1 83 D0 BB 2E 20 D0 9C D0 B5 D0 B4 D0 B5 D1 80 D0 BE D0 B2 D0 B0 20 34 38 20 D0 90 2C 20 34 32 2E 38 35 31 38 36 38 2C 20 37 34 2E 36 31 34 30 31 38 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 32 35 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 B0 11 E5 65 0E 04 04 00 44 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 08 E2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 35 04 06 00 79 34 A1 41 EC E5 A2 05 AF 2B 4E 89 15 81 [00:11:25]Write to MH i2c: 01 00 00 9D 5D FA [00:11:25]Write i2c OK [00:11:25]MH_I2C_Read... [00:11:25]Read from MH i2c: 01 [00:11:25]MH_I2C_Read... [00:11:25]Read from MH i2c: 01 07 00 [00:11:25]MH_I2C_Read... [00:11:25]Read from MH i2c: 01 07 00 9D 5D 00 00 00 00 00 A2 0E B1 [00:11:25]RasterBufferAndPrint [00:11:25]line [00:11:25]line [00:11:25]line [00:11:25]line [00:11:25]line [00:11:25]written 0, free lines is 3771 [00:11:26]MH_Cut [00:11:26]Write to MH i2c: D1 01 00 A4 5D 01 D3 [00:11:26]Write i2c OK [00:11:26]MH_I2C_Read... [00:11:26]Read from MH i2c: D1 [00:11:26]MH_I2C_Read... [00:11:26]Read from MH i2c: D1 01 00 [00:11:26]MH_I2C_Read... [00:11:26]Read from MH i2c: D1 01 00 A4 5D 00 D2 [00:11:26]Write to MH i2c: 01 00 00 A5 5D 02 [00:11:26]Write i2c OK [00:11:26]MH_I2C_Read... [00:11:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 74 94 47 00 16 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 08 E2 01 00 F4 03 04 00 DB BD E4 65 B6 04 01 00 00 9D B4 0A F7 F6 0B 60 DA [00:11:26]CommunicateWithHost err = 0 [00:11:26]CheckOFDResponse [00:11:26]1017 (14) - 77093643461234 [00:11:26]1041 (16) - 0000000000874798 [00:11:26]1040 (4) - 123400 [00:11:26]1012 (4) - 03.03.2024 18:13 [00:11:26]1206 (1) - 0 [00:11:26]OFD Sender: Remove packet 123400 [00:11:26]ProducePacketName [00:11:26]name=ofd_packets/00123400 [00:11:26]NVStorageDeleteData [00:11:26]*** Cut start [00:11:26]*** Purtial cut [00:11:26]*** Stage 1: CUTSNS_PIN = 1 [00:11:26]OFD Sender: No OFD packet to send [00:11:28]Read from MH i2c: 01 [00:11:28]MH_I2C_Read... [00:11:28]*** Stop cut motor [00:11:28]*** Cut end [00:11:28]Read from MH i2c: 01 07 00 [00:11:28]MH_I2C_Read... [00:11:28]Read from MH i2c: 01 07 00 A5 5D 00 00 00 00 00 FF 0F 17 [00:11:28]process_action open_shift done [00:11:28]requested_data is exist [00:11:28]produce_requested_data [00:11:28]requested_item fd.num is exist - process it [00:11:28]SAM_PROTO_GetFieldsCounters [00:11:28]wFMCommunicate request_size=4 [00:11:28]MH_SAM_APDU [00:11:28]CAPDU: 80 13 00 00 [00:11:28]Write to MH i2c: E2 08 00 A6 5D 80 13 00 00 00 00 00 00 7F [00:11:28]Write i2c OK [00:11:28]MH_I2C_Read... [00:11:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:11:28]Read from MH i2c: E2 [00:11:28]MH_I2C_Read... [00:11:28]Read from MH i2c: E2 62 00 [00:11:28]MH_I2C_Read... [00:11:28]Read from MH i2c: E2 62 00 A6 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 08 E2 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 DA [00:11: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 08 E2 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:11:28]wFMCommunicate OK [00:11:28]SAM_PROTO_GetFieldsCounters done [00:11:28]requested_item shift.num is exist - process it [00:11:28]requested_item shift.opened is exist - process it [00:11:28]req_shift_opened [00:11:28]FM_GetShiftState [00:11:28]SAM_PROTO_GetShiftState [00:11:28]wFMCommunicate request_size=4 [00:11:28]MH_SAM_APDU [00:11:28]CAPDU: 80 13 01 00 [00:11:28]Write to MH i2c: E2 08 00 A7 5D 80 13 01 00 00 00 00 00 81 [00:11:28]Write i2c OK [00:11:28]MH_I2C_Read... [00:11:28]Read from MH i2c: E2 [00:11:28]MH_I2C_Read... [00:11:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:11:28]Read from MH i2c: E2 0E 00 [00:11:28]MH_I2C_Read... [00:11:28]Read from MH i2c: E2 0E 00 A7 5D 00 09 00 01 B0 11 E5 65 00 00 00 00 90 00 98 [00:11:28]RAPDU: 09 00 01 B0 11 E5 65 00 00 00 00 90 00 [00:11:28]wFMCommunicate OK [00:11:28]SAM_PROTO_GetShiftState done [00:11:28]FM_GetShiftState done [00:11:28]req_shift_opened done [00:11:28]requested_item shift.open_date is exist - process it [00:11:28]req_shift_open_date [00:11:28]req_shift_open_date done [00:11:28]produce_requested_data done [00:11:28]produce_requested_data return {"fd.num":123400,"shift.num":324,"shift.opened":1,"shift.open_date":1709511088} [00:11:28]process_action_free open_shift [00:11:28]json_value_free [00:11:28]json_value_free done [00:11:28]process_json_proto returns [00:11:28]Send response to host [00:11:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":123400,"shift.num":324,"shift.opened":1,"shift.open_date":1709511088}}} [00:11:28]free response buf [00:11:28]execute_script done [00:11:28]execute_script returns [00:11:28]free content buf [00:11:28]Sock 7.Close socket [00:11:28]Sock 7.Thread stoped [00:11:28]accept exits with 9 [00:11:28]New connection [00:11:28]New thread 3067252068 created [00:11:28]Thread 3067395428 joined [00:11:28]Waiting for new connection... [00:11:28] Sock 9.Parse request [00:11:28]Sock 9.Check first char [00:11:28]Sock 9.First char is OK [00:11:28]request: POST /json_proto HTTP/1.0 [00:11:28]Method: POST [00:11:28]URL: /json_proto [00:11:28]Method is POST - this is cgi request [00:11:28]url: /json_proto [00:11:28]query_string will be loaded in cgi processing [00:11:28]execute_cgi json_proto POST (null) [00:11:28]execute_cgi path=json_proto method=POST [00:11:28]POST find Content-Length [00:11:28]Host: 172.17.48.197:8080 [00:11:28]Content-Length: 331 [00:11:28]Content-Type: application/json [00:11:28] [00:11:28]POST finish read [00:11:28]Found Content-Length = 331 [00:11:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:11:28]execute_script... [00:11:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:11:28]POST & json_proto [00:11:28]process_json_proto [00:11:28]json parsed OK: [00:11:28]protocol is kg_v1.0 [00:11:28]action value=get_value [00:11:28]process_action get_value [00:11:28]cmd_get_value [00:11:28]process_action get_value done [00:11:28]requested_data is exist [00:11:28]produce_requested_data [00:11:28]requested_item fm.sale.total is exist - process it [00:11:28]SAM_PROTO_GetFMData [00:11:28]wFMCommunicate request_size=4 [00:11:28]MH_SAM_APDU [00:11:28]CAPDU: 80 13 03 00 [00:11:28]Write to MH i2c: E2 08 00 A8 5D 80 13 03 00 00 00 00 00 84 [00:11:28]Write i2c OK [00:11:28]MH_I2C_Read... [00:11:29]Read from MH i2c: E2 [00:11:29]MH_I2C_Read... [00:11:29]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:11:29]Read from MH i2c: E2 FD 00 [00:11:29]MH_I2C_Read... [00:11:29]Read from MH i2c: E2 FD 00 A8 5D 00 C7 04 85 04 C3 04 6E 04 04 00 80 DF 01 00 69 04 A3 00 6F 04 04 00 65 CA 01 00 B1 04 05 00 F7 C5 3F 6F 02 70 04 05 00 9D FC 70 AB 01 72 04 04 00 5A C9 CE C3 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 62 ED 32 42 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 2B 17 84 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 1B 15 00 00 B1 04 04 00 25 74 69 34 70 04 04 00 05 26 69 34 72 04 02 00 20 4E 00 04 7C 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 4B 12 91 05 EF 90 00 26 [00:11:29]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 80 DF 01 00 69 04 A3 00 6F 04 04 00 65 CA 01 00 B1 04 05 00 F7 C5 3F 6F 02 70 04 05 00 9D FC 70 AB 01 72 04 04 00 5A C9 CE C3 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 62 ED 32 42 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 2B 17 84 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 1B 15 00 00 B1 04 04 00 25 74 69 34 70 04 04 00 05 26 69 34 72 04 02 00 20 4E 00 04 7C 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 4B 12 91 05 EF 90 00 [00:11:29]wFMCommunicate OK [00:11:29]wFMCommunicate request_size=4 [00:11:29]MH_SAM_APDU [00:11:29]CAPDU: 80 17 00 00 [00:11:29]Write to MH i2c: E2 08 00 A9 5D 80 17 00 00 00 00 00 00 86 [00:11:29]Write i2c OK [00:11:29]MH_I2C_Read... [00:11:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:29]Read from MH i2c: E2 [00:11:29]MH_I2C_Read... [00:11:29]Read from MH i2c: E2 FD 00 [00:11:29]MH_I2C_Read... [00:11:29]Read from MH i2c: E2 FD 00 A9 5D 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 D5 BF 76 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9D [00:11:29]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 D5 BF 76 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:11:29]wFMCommunicate OK [00:11:29]wFMCommunicate request_size=4 [00:11:29]MH_SAM_APDU [00:11:29]CAPDU: 80 17 00 00 [00:11:29]Write to MH i2c: E2 08 00 AA 5D 80 17 00 00 00 00 00 00 87 [00:11:29]Write i2c OK [00:11:29]MH_I2C_Read... [00:11:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:29]Read from MH i2c: E2 [00:11:29]MH_I2C_Read... [00:11:29]Read from MH i2c: E2 FD 00 [00:11:29]MH_I2C_Read... [00:11:29]Read from MH i2c: E2 FD 00 AA 5D 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 5F [00:11:30]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 [00:11:30]wFMCommunicate OK [00:11:30]wFMCommunicate request_size=4 [00:11:30]MH_SAM_APDU [00:11:30]CAPDU: 80 17 00 00 [00:11:30]Write to MH i2c: E2 08 00 AB 5D 80 17 00 00 00 00 00 00 88 [00:11:30]Write i2c OK [00:11:30]MH_I2C_Read... [00:11:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:30]Read from MH i2c: E2 [00:11:30]MH_I2C_Read... [00:11:30]Read from MH i2c: E2 FD 00 [00:11:30]MH_I2C_Read... [00:11:30]Read from MH i2c: E2 FD 00 AB 5D 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 03 [00:11:30]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 [00:11:30]wFMCommunicate OK [00:11:30]wFMCommunicate request_size=4 [00:11:30]MH_SAM_APDU [00:11:30]CAPDU: 80 17 00 00 [00:11:30]Write to MH i2c: E2 08 00 AC 5D 80 17 00 00 00 00 00 00 89 [00:11:30]Write i2c OK [00:11:30]MH_I2C_Read... [00:11:30]Read from MH i2c: E2 [00:11:30]MH_I2C_Read... [00:11:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [00:11:30]Read from MH i2c: E2 E4 00 [00:11:30]MH_I2C_Read... [00:11:30]Read from MH i2c: E2 E4 00 AC 5D 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 69 [00:11:30]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 [00:11:30]wFMCommunicate OK [00:11:30]SAM_PROTO_GetFMData done [00:11:30]requested_item fm.sale_refund.total is exist - process it [00:11:30]requested_item fm.buy.total is exist - process it [00:11:30]requested_item shift.sale.total is exist - process it [00:11:30]SAM_PROTO_GetShiftData [00:11:30]wFMCommunicate request_size=4 [00:11:30]MH_SAM_APDU [00:11:30]CAPDU: 80 13 02 00 [00:11:30]Write to MH i2c: E2 08 00 AD 5D 80 13 02 00 00 00 00 00 88 [00:11:30]Write i2c OK [00:11:30]MH_I2C_Read... [00:11:31]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:11:31]Read from MH i2c: E2 [00:11:31]MH_I2C_Read... [00:11:31]Read from MH i2c: E2 FD 00 [00:11:31]MH_I2C_Read... [00:11:31]Read from MH i2c: E2 FD 00 AD 5D 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 FB [00:11:31]RAPDU: A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 [00:11:31]wFMCommunicate OK [00:11:31]wFMCommunicate request_size=4 [00:11:31]MH_SAM_APDU [00:11:31]CAPDU: 80 17 00 00 [00:11:31]Write to MH i2c: E2 08 00 AE 5D 80 17 00 00 00 00 00 00 8B [00:11:31]Write i2c OK [00:11:31]MH_I2C_Read... [00:11:31]OFD Sender: No OFD packet to send [00:11:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:31]Read from MH i2c: E2 [00:11:31]MH_I2C_Read... [00:11:31]Read from MH i2c: E2 FD 00 [00:11:31]MH_I2C_Read... [00:11:31]Read from MH i2c: E2 FD 00 AE 5D 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 93 [00:11:32]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 [00:11:32]wFMCommunicate OK [00:11:32]wFMCommunicate request_size=4 [00:11:32]MH_SAM_APDU [00:11:32]CAPDU: 80 17 00 00 [00:11:32]Write to MH i2c: E2 08 00 AF 5D 80 17 00 00 00 00 00 00 8C [00:11:32]Write i2c OK [00:11:32]MH_I2C_Read... [00:11:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:32]Read from MH i2c: E2 [00:11:32]MH_I2C_Read... [00:11:32]Read from MH i2c: E2 FD 00 [00:11:32]MH_I2C_Read... [00:11:32]Read from MH i2c: E2 FD 00 AF 5D 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 5E [00:11:32]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 [00:11:32]wFMCommunicate OK [00:11:32]wFMCommunicate request_size=4 [00:11:32]MH_SAM_APDU [00:11:32]CAPDU: 80 17 00 00 [00:11:32]Write to MH i2c: E2 08 00 B0 5D 80 17 00 00 00 00 00 00 8D [00:11:32]Write i2c OK [00:11:32]MH_I2C_Read... [00:11:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:32]Read from MH i2c: E2 [00:11:32]MH_I2C_Read... [00:11:32]Read from MH i2c: E2 FD 00 [00:11:32]MH_I2C_Read... [00:11:32]Read from MH i2c: E2 FD 00 B0 5D 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 FF [00:11:33]RAPDU: 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [00:11:33]wFMCommunicate OK [00:11:33]wFMCommunicate request_size=4 [00:11:33]MH_SAM_APDU [00:11:33]CAPDU: 80 17 00 00 [00:11:33]Write to MH i2c: E2 08 00 B1 5D 80 17 00 00 00 00 00 00 8E [00:11:33]Write i2c OK [00:11:33]MH_I2C_Read... [00:11:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:11:33]Read from MH i2c: E2 [00:11:33]MH_I2C_Read... [00:11:33]Read from MH i2c: E2 BD 00 [00:11:33]MH_I2C_Read... [00:11:33]Read from MH i2c: E2 BD 00 B1 5D 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 74 [00:11:33]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:11:33]wFMCommunicate OK [00:11:33]SAM_PROTO_GetShiftData done [00:11:33]requested_item shift.sale.total_cash is exist - process it [00:11:33]requested_item shift.sale_refund.total is exist - process it [00:11:33]requested_item shift.sale_refund.total_cash is exist - process it [00:11:33]requested_item shift.buy.total is exist - process it [00:11:33]requested_item shift.buy.total_cash is exist - process it [00:11:33]produce_requested_data done [00:11:33]produce_requested_data return {"fm.sale.total":104563850.15,"fm.sale_refund.total":8793262.45,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:11:33]process_action_free get_value [00:11:33]json_value_free [00:11:33]json_value_free done [00:11:33]process_json_proto returns [00:11:33]Send response to host [00:11:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":104563850.15,"fm.sale_refund.total":8793262.45,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:11:33]free response buf [00:11:33]execute_script done [00:11:33]execute_script returns [00:11:33]free content buf [00:11:33]Sock 9.Close socket [00:11:33]Sock 9.Thread stoped [00:11:36]OFD Sender: No OFD packet to send [00:11:41]OFD Sender: No OFD packet to send [00:11:46]OFD Sender: No OFD packet to send [00:11:51]OFD Sender: No OFD packet to send [00:11:56]OFD Sender: No OFD packet to send [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:23]accept exits with 7 [00:12:23]New connection [00:12:23]New thread 3067395428 created [00:12:23]Thread 3067252068 joined [00:12:23]Waiting for new connection... [00:12:23] Sock 7.Parse request [00:12:23]Sock 7.Check first char [00:12:23]Sock 7.First char is OK [00:12:23]request: POST /json_proto HTTP/1.0 [00:12:23]Method: POST [00:12:23]URL: /json_proto [00:12:23]Method is POST - this is cgi request [00:12:23]url: /json_proto [00:12:23]query_string will be loaded in cgi processing [00:12:23]execute_cgi json_proto POST (null) [00:12:23]execute_cgi path=json_proto method=POST [00:12:23]POST find Content-Length [00:12:23]Host: 172.17.48.197:8080 [00:12:23]Content-Length: 683 [00:12:23]Content-Type: application/json [00:12:23] [00:12:23]POST finish read [00:12:23]Found Content-Length = 683 [00:12:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106387", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "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:12:23]execute_script... [00: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 : (1)1106387", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "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:12:23]POST & json_proto [00:12:23]process_json_proto [00:12:23]json parsed OK: [00:12:23]protocol is kg_v1.0 [00:12:23]action value=close_receipt [00:12:23]process_action close_receipt [00:12:23]cmd_close_receipt [00:12:23]MH_GetDate [00:12:23]Write to MH i2c: F0 00 00 B2 5D FE [00:12:23]Write i2c OK [00:12:23]MH_I2C_Read... [00:12:23]Read from MH i2c: F0 [00:12:23]MH_I2C_Read... [00:12:23]Read from MH i2c: F0 09 00 [00:12:23]MH_I2C_Read... [00:12:23]Read from MH i2c: F0 09 00 B2 5D 00 ED 11 E5 65 6C AF E3 65 B2 [00:12:23]GetLastDocTimeStamp 1709511088 [00:12:23]current date 1709511149 [00:12:23]FM_GetShiftState [00:12:23]SAM_PROTO_GetShiftState [00:12:23]wFMCommunicate request_size=4 [00:12:23]MH_SAM_APDU [00:12:23]CAPDU: 80 13 01 00 [00:12:23]Write to MH i2c: E2 08 00 B3 5D 80 13 01 00 00 00 00 00 8D [00:12:23]Write i2c OK [00:12:23]MH_I2C_Read... [00:12:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:12:23]Read from MH i2c: E2 [00:12:23]MH_I2C_Read... [00:12:23]Read from MH i2c: E2 0E 00 [00:12:23]MH_I2C_Read... [00:12:23]Read from MH i2c: E2 0E 00 B3 5D 00 09 00 01 B0 11 E5 65 00 00 00 00 90 00 A4 [00:12:23]RAPDU: 09 00 01 B0 11 E5 65 00 00 00 00 90 00 [00:12:23]wFMCommunicate OK [00:12:23]SAM_PROTO_GetShiftState done [00:12:23]FM_GetShiftState done [00:12:23]opened in 1709511088 [00:12:23]opened+sec_in_day 1709597488 [00:12:23]quantity*price = 100030 [00:12:23]sum+1 = 100031 [00:12:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 1 04.03.2024 00:12 Смена: 324 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123401 ФПД: 59028641709867 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240304T001229&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123401&fm=59028641709867&tin=02508201610067®Number=0000000000090573&sum=100000 [00:12:24]StoreToDocumentArchive [00:12:24]shift 324 fd 123401 [00:12:24]save to /storage/0324/doc_00123401 [00:12:24]save last doc name /storage/0324/doc_00123401 to /storage/kkm_last_doc_name [00:12:24]save OK [00:12:24]Clear old archive folders... [00:12:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:12:24]tlvbuf is 00F21A00 [00:12:24]SAM_PROTO_ClearQueue [00:12:24]wFMCommunicate request_size=4 [00:12:24]MH_SAM_APDU [00:12:24]CAPDU: 80 09 00 00 [00:12:24]Write to MH i2c: E2 08 00 C0 5D 80 09 00 00 00 00 00 00 8F [00:12:24]Write i2c OK [00:12:24]MH_I2C_Read... [00:12:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:12:24]Read from MH i2c: E2 [00:12:24]MH_I2C_Read... [00:12:24]Read from MH i2c: E2 03 00 [00:12:24]MH_I2C_Read... [00:12:24]Read from MH i2c: E2 03 00 C0 5D 00 90 00 91 [00:12:24]RAPDU: 90 00 [00:12:24]wFMCommunicate OK [00:12:24]SAM_PROTO_ClearQueue done [00:12:24]KKMCreateOFDPacket [00:12:24]OFDProtocolAddRootSTLVToBuf [00:12:24]FM_MakeSignedData [00:12:24]FM_MakeSignedData [00:12:24]SAM_PROTO_SignData [00:12:24]wFMCommunicate request_size=4 [00:12:24]MH_SAM_APDU [00:12:24]CAPDU: 80 0D 01 02 [00:12:24]Write to MH i2c: E2 08 00 C1 5D 80 0D 01 02 00 00 00 00 97 [00:12:24]Write i2c OK [00:12:24]MH_I2C_Read... [00:12:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:12:24]Read from MH i2c: E2 [00:12:24]MH_I2C_Read... [00:12:24]Read from MH i2c: E2 03 00 [00:12:24]MH_I2C_Read... [00:12:24]Read from MH i2c: E2 03 00 C1 5D 00 90 00 92 [00:12:24]RAPDU: 90 00 [00:12:24]wFMCommunicate OK [00:12:24]wFMCommunicate request_size=255 [00:12:24]MH_SAM_APDU [00:12:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 ED 11 E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 09 E2 01 00 35 04 06 00 35 [00:12:24]Write to MH i2c: E2 02 01 C2 5D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 ED 11 E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 09 E2 01 00 35 04 06 00 35 00 00 B2 [00:12:24]Write i2c OK [00:12:24]MH_I2C_Read... [00:12:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:12:24]Read from MH i2c: E2 [00:12:24]MH_I2C_Read... [00:12:24]Read from MH i2c: E2 03 00 [00:12:24]MH_I2C_Read... [00:12:24]Read from MH i2c: E2 03 00 C2 5D 00 90 00 93 [00:12:24]RAPDU: 90 00 [00:12:24]wFMCommunicate OK [00:12:24]wFMCommunicate request_size=10 [00:12:24]MH_SAM_APDU [00:12:24]CAPDU: 80 0D 02 02 05 AF AD 38 7F 2B [00:12:24]Write to MH i2c: E2 0D 00 C3 5D 80 0D 02 02 05 00 AF AD 38 7F 2B 00 00 E2 [00:12:24]Write i2c OK [00:12:24]MH_I2C_Read... [00:12:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:12:24]Read from MH i2c: E2 [00:12:24]MH_I2C_Read... [00:12:24]Read from MH i2c: E2 03 00 [00:12:24]MH_I2C_Read... [00:12:24]Read from MH i2c: E2 03 00 C3 5D 00 90 00 94 [00:12:24]RAPDU: 90 00 [00:12:24]wFMCommunicate OK [00:12:24]wFMCommunicate request_size=4 [00:12:24]MH_SAM_APDU [00:12:24]CAPDU: 80 0D 03 02 [00:12:24]Write to MH i2c: E2 08 00 C4 5D 80 0D 03 02 00 00 00 00 9C [00:12:24]Write i2c OK [00:12:24]MH_I2C_Read... [00:12:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:12:24]Read from MH i2c: E2 [00:12:24]MH_I2C_Read... [00:12:24]Read from MH i2c: E2 0B 00 [00:12:24]MH_I2C_Read... [00:12:24]Read from MH i2c: E2 0B 00 C4 5D 00 73 72 63 04 BD 56 66 AD 90 00 0F [00:12:24]RAPDU: 73 72 63 04 BD 56 66 AD 90 00 [00:12:24]wFMCommunicate OK [00:12:24]SAM_PROTO_SignData done [00:12:24]FM_MakeSignedData done [00:12:24]CreateOFDProtocolMessage [00:12:24]wFMCommunicate request_size=4 [00:12:24]MH_SAM_APDU [00:12:24]CAPDU: 80 11 00 00 [00:12:24]Write to MH i2c: E2 08 00 C5 5D 80 11 00 00 00 00 00 00 9C [00:12:24]Write i2c OK [00:12:24]MH_I2C_Read... [00:12:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:12:24]Read from MH i2c: E2 [00:12:24]MH_I2C_Read... [00:12:24]Read from MH i2c: E2 17 00 [00:12:24]MH_I2C_Read... [00:12:24]Read from MH i2c: E2 17 00 C5 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 FA [00:12:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [00:12:24]wFMCommunicate OK [00:12:24]CreateOFDProtocolMessage done [00:12:24]OFDSenderStorePacket 123401 [00:12:24]StoreOFDPacket docnum=123401 [00:12:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 CE 39 07 01 4E 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 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 ED 11 E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 09 E2 01 00 35 04 06 00 35 AF AD 38 7F 2B 73 72 63 04 BD 56 66 AD [00:12:24]CheckFolder [00:12:24]dirname=/storage/ofd_packets [00:12:24]CheckFolder done [00:12:24]ProducePacketName [00:12:24]name=ofd_packets/00123401 [00:12:24]NVStorageSaveData ofd_packets/00123401 [00:12:24]File name is /storage/ofd_packets/00123401 [00:12:24]Write 301 bytes [00:12:24]NVStorageSaveData done [00:12:24]OFDSenderStorePacket done [00:12:24]KKMCreateOFDPacket done [00:12:24]NVStorageSaveData kkm_last_timestamp [00:12:24]File name is /storage/kkm_last_timestamp [00:12:24]Write 4 bytes [00:12:24]NVStorageSaveData done [00:12:24]ExternCall_PrintAddStr [00:12:24]wPrintStart [00:12:24]Write to MH i2c: 01 00 00 C6 5D 23 [00:12:24]Write i2c OK [00:12:24]MH_I2C_Read... [00:12:24]Read from MH i2c: 01 [00:12:24]MH_I2C_Read... [00:12:24]Read from MH i2c: 01 07 00 [00:12:24]MH_I2C_Read... [00:12:24]Read from MH i2c: 01 07 00 C6 5D 00 00 00 00 00 FF 0F 38 [00:12:24]RasterBufferAndPrint [00:12:25]line Счет N : (1)1106387 [00:12:25]line ИНН: 02508201610067 [00:12:25]line Контрольно-Кассовый Чек [00:12:25]line ПРОДАЖА [00:12:25]line ТРК (МРК, ГНК) : 21 [00:12:25]line Товар: 2710124130 [00:12:25]line Аи-92-К-5 [00:12:25]line 16.160 * 61.90 [00:12:25]line = 1000.30 [00:12:25]line НДС 12% НСП 1% [00:12:25]line > о реализуемом товаре [00:12:25]line ОКРУГЛЕНИЕ: -0.30 [00:12:25]line ИТОГО: 1000.00 [00:12:25]line Внесено: 1000.00 [00:12:25]line СДАЧА: 0.00 [00:12:25]line НСП 1% : 8.85 [00:12:25]line НДС 12% : 106.23 [00:12:25]line Наличными: 1000.00 [00:12:25]line Безнал.: 0.00 [00:12:25]line Место: АЗС № 25 "Партнер Нефть" [00:12:25]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [00:12:25]line СНО: Общий режим [00:12:25]line Чек 1 04.03.2024 00:12 [00:12:25]line Смена: 324 ФФД: 1.0 [00:12:25]line ЗНМ: 0300000019 [00:12:25]line РНМ: 0000000000090573 [00:12:25]line Версия ККМ: 001 [00:12:25]line ФМ: 0000000000874798 [00:12:25]line ФД: 123401 [00:12:25]line ФПД: 59028641709867 [00:12:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240304T001229&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123401&fm=59028641709867&tin=02508201610067®Number=0000000000090573&sum=100000 [00:12:25]OFD Sender: Processing packet 123401 [packets to send 112, broken 111] [00:12:25]ProducePacketName [00:12:25]name=ofd_packets/00123401 [00:12:25]OFD Sender: To server: pG, [00:12:25]CommunicateWithHost lk.salyk.kg:30040 [00:12:25]ConnectInit lk.salyk.kg [00:12:25]written 0, free lines is 4095 [00:12:25]Connected sock=10 [00: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 37 39 38 0F 01 00 00 CE 39 07 01 4E 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 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 ED 11 E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 09 E2 01 00 35 04 06 00 35 AF AD 38 7F 2B 73 72 63 04 BD 56 66 AD [00: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 37 39 38 4F 00 00 00 4A 53 47 00 53 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 37 39 38 10 04 04 00 09 E2 01 00 F4 03 04 00 17 BE E4 65 B6 04 01 00 00 C5 AF 35 4A 54 89 3D D4 [00:12:25]CommunicateWithHost err = 0 [00:12:25]CheckOFDResponse [00:12:25]1017 (14) - 77093643461234 [00:12:25]1041 (16) - 0000000000874798 [00:12:25]1040 (4) - 123401 [00:12:25]1012 (4) - 03.03.2024 18:14 [00:12:25]1206 (1) - 0 [00:12:25]OFD Sender: Remove packet 123401 [00:12:25]ProducePacketName [00:12:25]name=ofd_packets/00123401 [00:12:25]NVStorageDeleteData [00:12:25]Write to MH i2c: 01 00 00 F1 5D 4E [00:12:25]Write i2c OK [00:12:25]MH_I2C_Read... [00:12:25]Read from MH i2c: 01 [00:12:25]MH_I2C_Read... [00:12:25]Read from MH i2c: 01 07 00 [00:12:25]MH_I2C_Read... [00:12:25]Read from MH i2c: 01 07 00 F1 5D 00 00 00 00 00 F3 0C 54 [00:12:25]RasterBufferAndPrint [00:12:25]line [00:12:25]line [00:12:25]line [00:12:25]line [00:12:25]line [00:12:25]written 0, free lines is 3321 [00:12:25]MH_Cut [00:12:25]Write to MH i2c: D1 01 00 F8 5D 01 27 [00:12:25]Write i2c OK [00:12:25]MH_I2C_Read... [00:12:25]Read from MH i2c: D1 [00:12:25]MH_I2C_Read... [00:12:25]Read from MH i2c: D1 01 00 [00:12:25]MH_I2C_Read... [00:12:25]Read from MH i2c: D1 01 00 F8 5D 00 26 [00:12:25]Write to MH i2c: 01 00 00 F9 5D 56 [00:12:25]Write i2c OK [00:12:25]MH_I2C_Read... [00:12:26]OFD Sender: No OFD packet to send [00:12:26]*** Cut start [00:12:26]*** Purtial cut [00:12:26]*** Stage 1: CUTSNS_PIN = 1 [00:12:28]Read from MH i2c: 01 [00:12:28]MH_I2C_Read... [00:12:28]*** Stop cut motor [00:12:28]*** Cut end [00:12:28]Read from MH i2c: 01 07 00 [00:12:28]MH_I2C_Read... [00:12:28]Read from MH i2c: 01 07 00 F9 5D 00 00 00 00 00 FF 0F 6B [00:12:28]process_action close_receipt done [00:12:28]requested_data is exist [00:12:28]produce_requested_data [00:12:28]requested_item fm.sn is exist - process it [00:12:28]wFMCommunicate request_size=4 [00:12:28]MH_SAM_APDU [00:12:28]CAPDU: 80 11 00 00 [00:12:28]Write to MH i2c: E2 08 00 FA 5D 80 11 00 00 00 00 00 00 D1 [00:12:28]Write i2c OK [00:12:28]MH_I2C_Read... [00:12:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:12:28]Read from MH i2c: E2 [00:12:28]MH_I2C_Read... [00:12:28]Read from MH i2c: E2 17 00 [00:12:28]MH_I2C_Read... [00:12:28]Read from MH i2c: E2 17 00 FA 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 2F [00:12:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [00:12:28]wFMCommunicate OK [00:12:28]requested_item fd.num is exist - process it [00:12:28]SAM_PROTO_GetFieldsCounters [00:12:28]wFMCommunicate request_size=4 [00:12:28]MH_SAM_APDU [00:12:28]CAPDU: 80 13 00 00 [00:12:28]Write to MH i2c: E2 08 00 FB 5D 80 13 00 00 00 00 00 00 D4 [00:12:28]Write i2c OK [00:12:28]MH_I2C_Read... [00:12:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:12:28]Read from MH i2c: E2 [00:12:28]MH_I2C_Read... [00:12:28]Read from MH i2c: E2 62 00 [00:12:28]MH_I2C_Read... [00:12:28]Read from MH i2c: E2 62 00 FB 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 09 E2 01 00 0E 04 04 00 44 01 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 33 [00:12: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 09 E2 01 00 0E 04 04 00 44 01 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:12:28]wFMCommunicate OK [00:12:28]SAM_PROTO_GetFieldsCounters done [00:12:28]requested_item shift.num is exist - process it [00:12:28]requested_item shift.opened is exist - process it [00:12:28]req_shift_opened [00:12:28]FM_GetShiftState [00:12:28]SAM_PROTO_GetShiftState [00:12:28]wFMCommunicate request_size=4 [00:12:28]MH_SAM_APDU [00:12:28]CAPDU: 80 13 01 00 [00:12:28]Write to MH i2c: E2 08 00 FC 5D 80 13 01 00 00 00 00 00 D6 [00:12:28]Write i2c OK [00:12:28]MH_I2C_Read... [00:12:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:12:28]Read from MH i2c: E2 [00:12:28]MH_I2C_Read... [00:12:28]Read from MH i2c: E2 0E 00 [00:12:28]MH_I2C_Read... [00:12:28]Read from MH i2c: E2 0E 00 FC 5D 00 09 00 01 B0 11 E5 65 00 00 00 00 90 00 ED [00:12:28]RAPDU: 09 00 01 B0 11 E5 65 00 00 00 00 90 00 [00:12:28]wFMCommunicate OK [00:12:28]SAM_PROTO_GetShiftState done [00:12:28]FM_GetShiftState done [00:12:28]req_shift_opened done [00:12:28]requested_item shift.open_date is exist - process it [00:12:28]req_shift_open_date [00:12:28]req_shift_open_date done [00:12:28]produce_requested_data done [00:12:28]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123401,"shift.num":324,"shift.opened":1,"shift.open_date":1709511088} [00:12:28]process_action_free close_receipt [00:12:28]json_value_free [00:12:28]json_value_free done [00:12:28]process_json_proto returns [00:12:28]Send response to host [00:12:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123401,"shift.num":324,"shift.opened":1,"shift.open_date":1709511088}}} [00:12:28]free response buf [00:12:28]execute_script done [00:12:28]execute_script returns [00:12:28]free content buf [00:12:28]Sock 7.Close socket [00:12:28]Sock 7.Thread stoped [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:13:01]OFD Sender: No OFD packet to send [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:03]accept exits with 9 [00:14:03]New connection [00:14:03]New thread 3067252068 created [00:14:03]Thread 3067395428 joined [00:14:03]Waiting for new connection... [00:14:03] Sock 9.Parse request [00:14:03]Sock 9.Check first char [00:14:03]Sock 9.First char is OK [00:14:03]request: POST /json_proto HTTP/1.0 [00:14:03]Method: POST [00:14:03]URL: /json_proto [00:14:03]Method is POST - this is cgi request [00:14:03]url: /json_proto [00:14:03]query_string will be loaded in cgi processing [00:14:03]execute_cgi json_proto POST (null) [00:14:03]execute_cgi path=json_proto method=POST [00:14:03]POST find Content-Length [00:14:03]Host: 172.17.48.197:8080 [00:14:03]Content-Length: 678 [00:14:03]Content-Type: application/json [00:14:03] [00:14:03]POST finish read [00:14:03]Found Content-Length = 678 [00:14:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106389", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 6.470, "sum" : 400.49, "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" ] } } [00:14:03]execute_script... [00:14:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106389", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 6.470, "sum" : 400.49, "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" ] } } [00:14:03]POST & json_proto [00:14:03]process_json_proto [00:14:03]json parsed OK: [00:14:03]protocol is kg_v1.0 [00:14:03]action value=close_receipt [00:14:03]process_action close_receipt [00:14:03]cmd_close_receipt [00:14:03]MH_GetDate [00:14:03]Write to MH i2c: F0 00 00 FD 5D 49 [00:14:03]Write i2c OK [00:14:03]MH_I2C_Read... [00:14:03]Read from MH i2c: F0 [00:14:03]MH_I2C_Read... [00:14:03]Read from MH i2c: F0 09 00 [00:14:03]MH_I2C_Read... [00:14:03]Read from MH i2c: F0 09 00 FD 5D 00 51 12 E5 65 6C AF E3 65 62 [00:14:03]GetLastDocTimeStamp 1709511149 [00:14:03]current date 1709511249 [00:14:03]FM_GetShiftState [00:14:03]SAM_PROTO_GetShiftState [00:14:03]wFMCommunicate request_size=4 [00:14:03]MH_SAM_APDU [00:14:03]CAPDU: 80 13 01 00 [00:14:03]Write to MH i2c: E2 08 00 FE 5D 80 13 01 00 00 00 00 00 D8 [00:14:03]Write i2c OK [00:14:03]MH_I2C_Read... [00:14:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:14:03]Read from MH i2c: E2 [00:14:03]MH_I2C_Read... [00:14:03]Read from MH i2c: E2 0E 00 [00:14:03]MH_I2C_Read... [00:14:03]Read from MH i2c: E2 0E 00 FE 5D 00 09 00 01 B0 11 E5 65 00 00 00 00 90 00 EF [00:14:03]RAPDU: 09 00 01 B0 11 E5 65 00 00 00 00 90 00 [00:14:03]wFMCommunicate OK [00:14:03]SAM_PROTO_GetShiftState done [00:14:03]FM_GetShiftState done [00:14:03]opened in 1709511088 [00:14:03]opened+sec_in_day 1709597488 [00:14:03]quantity*price = 40049 [00:14:03]sum+1 = 40050 [00:14:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.53 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 2 04.03.2024 00:14 Смена: 324 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123402 ФПД: 55398226992143 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240304T001409&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123402&fm=55398226992143&tin=02508201610067®Number=0000000000090573&sum=40000 [00:14:05]StoreToDocumentArchive [00:14:05]shift 324 fd 123402 [00:14:05]save to /storage/0324/doc_00123402 [00:14:05]save last doc name /storage/0324/doc_00123402 to /storage/kkm_last_doc_name [00:14:05]save OK [00:14:05]Clear old archive folders... [00:14:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:14:05]tlvbuf is 00DDEFC0 [00:14:05]SAM_PROTO_ClearQueue [00:14:05]wFMCommunicate request_size=4 [00:14:05]MH_SAM_APDU [00:14:05]CAPDU: 80 09 00 00 [00:14:05]Write to MH i2c: E2 08 00 0B 5E 80 09 00 00 00 00 00 00 DB [00:14:05]Write i2c OK [00:14:05]MH_I2C_Read... [00:14:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:14:05]Read from MH i2c: E2 [00:14:05]MH_I2C_Read... [00:14:05]Read from MH i2c: E2 03 00 [00:14:05]MH_I2C_Read... [00:14:05]Read from MH i2c: E2 03 00 0B 5E 00 90 00 DD [00:14:05]RAPDU: 90 00 [00:14:05]wFMCommunicate OK [00:14:05]SAM_PROTO_ClearQueue done [00:14:05]KKMCreateOFDPacket [00:14:05]OFDProtocolAddRootSTLVToBuf [00:14:05]FM_MakeSignedData [00:14:05]FM_MakeSignedData [00:14:05]SAM_PROTO_SignData [00:14:05]wFMCommunicate request_size=4 [00:14:05]MH_SAM_APDU [00:14:05]CAPDU: 80 0D 01 02 [00:14:05]Write to MH i2c: E2 08 00 0C 5E 80 0D 01 02 00 00 00 00 E3 [00:14:05]Write i2c OK [00:14:05]MH_I2C_Read... [00:14:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:14:05]Read from MH i2c: E2 [00:14:05]MH_I2C_Read... [00:14:05]Read from MH i2c: E2 03 00 [00:14:05]MH_I2C_Read... [00:14:05]Read from MH i2c: E2 03 00 0C 5E 00 90 00 DE [00:14:05]RAPDU: 90 00 [00:14:05]wFMCommunicate OK [00:14:05]wFMCommunicate request_size=255 [00:14:05]MH_SAM_APDU [00:14: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 35 FF 03 08 00 03 46 19 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 71 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 9D 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 02 00 00 00 F4 03 04 00 51 12 E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 0A E2 01 00 35 04 06 00 32 [00:14:05]Write to MH i2c: E2 02 01 0D 5E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 19 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 71 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 9D 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 02 00 00 00 F4 03 04 00 51 12 E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 0A E2 01 00 35 04 06 00 32 00 00 84 [00:14:05]Write i2c OK [00:14:05]MH_I2C_Read... [00:14:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:14:05]Read from MH i2c: E2 [00:14:05]MH_I2C_Read... [00:14:05]Read from MH i2c: E2 03 00 [00:14:05]MH_I2C_Read... [00:14:05]Read from MH i2c: E2 03 00 0D 5E 00 90 00 DF [00:14:05]RAPDU: 90 00 [00:14:05]wFMCommunicate OK [00:14:05]wFMCommunicate request_size=10 [00:14:05]MH_SAM_APDU [00:14:05]CAPDU: 80 0D 02 02 05 62 67 A4 1C 0F [00:14:05]Write to MH i2c: E2 0D 00 0E 5E 80 0D 02 02 05 00 62 67 A4 1C 0F 00 00 88 [00:14:05]Write i2c OK [00:14:05]MH_I2C_Read... [00:14:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:14:05]Read from MH i2c: E2 [00:14:05]MH_I2C_Read... [00:14:05]Read from MH i2c: E2 03 00 [00:14:05]MH_I2C_Read... [00:14:05]Read from MH i2c: E2 03 00 0E 5E 00 90 00 E0 [00:14:05]RAPDU: 90 00 [00:14:05]wFMCommunicate OK [00:14:05]wFMCommunicate request_size=4 [00:14:05]MH_SAM_APDU [00:14:05]CAPDU: 80 0D 03 02 [00:14:05]Write to MH i2c: E2 08 00 0F 5E 80 0D 03 02 00 00 00 00 E8 [00:14:05]Write i2c OK [00:14:05]MH_I2C_Read... [00:14:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:14:05]Read from MH i2c: E2 [00:14:05]MH_I2C_Read... [00:14:05]Read from MH i2c: E2 0B 00 [00:14:05]MH_I2C_Read... [00:14:05]Read from MH i2c: E2 0B 00 0F 5E 00 49 77 DE 7F 40 1E 2D E4 90 00 75 [00:14:05]RAPDU: 49 77 DE 7F 40 1E 2D E4 90 00 [00:14:05]wFMCommunicate OK [00:14:05]SAM_PROTO_SignData done [00:14:05]FM_MakeSignedData done [00:14:05]CreateOFDProtocolMessage [00:14:05]wFMCommunicate request_size=4 [00:14:05]MH_SAM_APDU [00:14:05]CAPDU: 80 11 00 00 [00:14:05]Write to MH i2c: E2 08 00 10 5E 80 11 00 00 00 00 00 00 E8 [00:14:05]Write i2c OK [00:14:05]MH_I2C_Read... [00:14:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:14:05]Read from MH i2c: E2 [00:14:05]MH_I2C_Read... [00:14:05]Read from MH i2c: E2 17 00 [00:14:05]MH_I2C_Read... [00:14:05]Read from MH i2c: E2 17 00 10 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 46 [00:14:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [00:14:05]wFMCommunicate OK [00:14:05]CreateOFDProtocolMessage done [00:14:05]OFDSenderStorePacket 123402 [00:14:05]StoreOFDPacket docnum=123402 [00:14:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 68 B8 07 01 9C C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 19 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 71 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 9D 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 02 00 00 00 F4 03 04 00 51 12 E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 0A E2 01 00 35 04 06 00 32 62 67 A4 1C 0F 49 77 DE 7F 40 1E 2D E4 [00:14:05]CheckFolder [00:14:05]dirname=/storage/ofd_packets [00:14:05]CheckFolder done [00:14:05]ProducePacketName [00:14:05]name=ofd_packets/00123402 [00:14:05]NVStorageSaveData ofd_packets/00123402 [00:14:05]File name is /storage/ofd_packets/00123402 [00:14:05]Write 301 bytes [00:14:05]NVStorageSaveData done [00:14:05]OFDSenderStorePacket done [00:14:05]KKMCreateOFDPacket done [00:14:05]NVStorageSaveData kkm_last_timestamp [00:14:05]File name is /storage/kkm_last_timestamp [00:14:05]Write 4 bytes [00:14:05]NVStorageSaveData done [00:14:05]ExternCall_PrintAddStr [00:14:05]wPrintStart [00:14:05]Write to MH i2c: 01 00 00 11 5E 6F [00:14:05]Write i2c OK [00:14:05]MH_I2C_Read... [00:14:05]Read from MH i2c: 01 [00:14:05]MH_I2C_Read... [00:14:05]Read from MH i2c: 01 07 00 [00:14:05]MH_I2C_Read... [00:14:05]Read from MH i2c: 01 07 00 11 5E 00 00 00 00 00 FF 0F 84 [00:14:05]RasterBufferAndPrint [00:14:05]line Счет N : (1)1106389 [00:14:05]line ИНН: 02508201610067 [00:14:05]line Контрольно-Кассовый Чек [00:14:05]line ПРОДАЖА [00:14:05]line ТРК (МРК, ГНК) : 52 [00:14:05]line Товар: 2710124130 [00:14:05]line Аи-92-К-5 [00:14:05]line 6.470 * 61.90 [00:14:05]line = 400.49 [00:14:05]line НДС 12% НСП 1% [00:14:05]line > о реализуемом товаре [00:14:05]line ОКРУГЛЕНИЕ: -0.49 [00:14:05]line ИТОГО: 400.00 [00:14:05]line Внесено: 400.00 [00:14:05]line СДАЧА: 0.00 [00:14:05]line НСП 1% : 3.54 [00:14:05]line НДС 12% : 42.53 [00:14:05]line Наличными: 400.00 [00:14:05]line Безнал.: 0.00 [00:14:05]line Место: АЗС № 25 "Партнер Нефть" [00:14:05]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [00:14:05]line СНО: Общий режим [00:14:05]line Чек 2 04.03.2024 00:14 [00:14:05]line Смена: 324 ФФД: 1.0 [00:14:05]line ЗНМ: 0300000019 [00:14:05]line РНМ: 0000000000090573 [00:14:05]line Версия ККМ: 001 [00:14:05]line ФМ: 0000000000874798 [00:14:05]line ФД: 123402 [00:14:05]line ФПД: 55398226992143 [00:14:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240304T001409&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123402&fm=55398226992143&tin=02508201610067®Number=0000000000090573&sum=40000 [00:14:05]OFD Sender: Processing packet 123402 [packets to send 112, broken 111] [00:14:05]ProducePacketName [00:14:05]name=ofd_packets/00123402 [00:14:05]OFD Sender: To server: pG, [00:14:05]CommunicateWithHost lk.salyk.kg:30040 [00:14:05]ConnectInit lk.salyk.kg [00:14:05]written 0, free lines is 4095 [00:14:05]Connected sock=10 [00:14: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 37 39 38 0F 01 00 00 68 B8 07 01 9C C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 19 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 71 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 9D 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 02 00 00 00 F4 03 04 00 51 12 E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 0A E2 01 00 35 04 06 00 32 62 67 A4 1C 0F 49 77 DE 7F 40 1E 2D E4 [00:14:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 64 F6 47 00 D8 3F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 0A E2 01 00 F4 03 04 00 7B BE E4 65 B6 04 01 00 00 BB F1 6B 1D B5 82 A0 92 [00:14:06]CommunicateWithHost err = 0 [00:14:06]CheckOFDResponse [00:14:06]1017 (14) - 77093643461234 [00:14:06]1041 (16) - 0000000000874798 [00:14:06]1040 (4) - 123402 [00:14:06]1012 (4) - 03.03.2024 18:16 [00:14:06]1206 (1) - 0 [00:14:06]OFD Sender: Remove packet 123402 [00:14:06]ProducePacketName [00:14:06]name=ofd_packets/00123402 [00:14:06]NVStorageDeleteData [00:14:06]Write to MH i2c: 01 00 00 3C 5E 9A [00:14:06]Write i2c OK [00:14:06]MH_I2C_Read... [00:14:06]Read from MH i2c: 01 [00:14:06]MH_I2C_Read... [00:14:06]Read from MH i2c: 01 07 00 [00:14:06]MH_I2C_Read... [00:14:06]Read from MH i2c: 01 07 00 3C 5E 00 00 00 00 00 EA 0C 97 [00:14:06]RasterBufferAndPrint [00:14:06]line [00:14:06]line [00:14:06]line [00:14:06]line [00:14:06]line [00:14:06]written 0, free lines is 3312 [00:14:06]MH_Cut [00:14:06]Write to MH i2c: D1 01 00 43 5E 01 73 [00:14:06]Write i2c OK [00:14:06]MH_I2C_Read... [00:14:06]Read from MH i2c: D1 [00:14:06]MH_I2C_Read... [00:14:06]Read from MH i2c: D1 01 00 [00:14:06]MH_I2C_Read... [00:14:06]Read from MH i2c: D1 01 00 43 5E 00 72 [00:14:06]Write to MH i2c: 01 00 00 44 5E A2 [00:14:06]Write i2c OK [00:14:06]MH_I2C_Read... [00:14:06]OFD Sender: No OFD packet to send [00:14:07]*** Cut start [00:14:07]*** Purtial cut [00:14:07]*** Stage 1: CUTSNS_PIN = 1 [00:14:09]Read from MH i2c: 01 [00:14:09]MH_I2C_Read... [00:14:09]*** Stop cut motor [00:14:09]*** Cut end [00:14:09]Read from MH i2c: 01 07 00 [00:14:09]MH_I2C_Read... [00:14:09]Read from MH i2c: 01 07 00 44 5E 00 00 00 00 00 FF 0F B7 [00:14:09]process_action close_receipt done [00:14:09]requested_data is exist [00:14:09]produce_requested_data [00:14:09]requested_item fm.sn is exist - process it [00:14:09]wFMCommunicate request_size=4 [00:14:09]MH_SAM_APDU [00:14:09]CAPDU: 80 11 00 00 [00:14:09]Write to MH i2c: E2 08 00 45 5E 80 11 00 00 00 00 00 00 1D [00:14:09]Write i2c OK [00:14:09]MH_I2C_Read... [00:14:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:14:09]Read from MH i2c: E2 [00:14:09]MH_I2C_Read... [00:14:09]Read from MH i2c: E2 17 00 [00:14:09]MH_I2C_Read... [00:14:09]Read from MH i2c: E2 17 00 45 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 7B [00:14:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [00:14:09]wFMCommunicate OK [00:14:09]requested_item fd.num is exist - process it [00:14:09]SAM_PROTO_GetFieldsCounters [00:14:09]wFMCommunicate request_size=4 [00:14:09]MH_SAM_APDU [00:14:09]CAPDU: 80 13 00 00 [00:14:09]Write to MH i2c: E2 08 00 46 5E 80 13 00 00 00 00 00 00 20 [00:14:09]Write i2c OK [00:14:09]MH_I2C_Read... [00:14:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:14:09]Read from MH i2c: E2 [00:14:09]MH_I2C_Read... [00:14:09]Read from MH i2c: E2 62 00 [00:14:09]MH_I2C_Read... [00:14:09]Read from MH i2c: E2 62 00 46 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 0A E2 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 83 [00:14: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 0A E2 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:14:09]wFMCommunicate OK [00:14:09]SAM_PROTO_GetFieldsCounters done [00:14:09]requested_item shift.num is exist - process it [00:14:09]requested_item shift.opened is exist - process it [00:14:09]req_shift_opened [00:14:09]FM_GetShiftState [00:14:09]SAM_PROTO_GetShiftState [00:14:09]wFMCommunicate request_size=4 [00:14:09]MH_SAM_APDU [00:14:09]CAPDU: 80 13 01 00 [00:14:09]Write to MH i2c: E2 08 00 47 5E 80 13 01 00 00 00 00 00 22 [00:14:09]Write i2c OK [00:14:09]MH_I2C_Read... [00:14:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:14:09]Read from MH i2c: E2 [00:14:09]MH_I2C_Read... [00:14:09]Read from MH i2c: E2 0E 00 [00:14:09]MH_I2C_Read... [00:14:09]Read from MH i2c: E2 0E 00 47 5E 00 09 00 01 B0 11 E5 65 00 00 00 00 90 00 39 [00:14:09]RAPDU: 09 00 01 B0 11 E5 65 00 00 00 00 90 00 [00:14:09]wFMCommunicate OK [00:14:09]SAM_PROTO_GetShiftState done [00:14:09]FM_GetShiftState done [00:14:09]req_shift_opened done [00:14:09]requested_item shift.open_date is exist - process it [00:14:09]req_shift_open_date [00:14:09]req_shift_open_date done [00:14:09]produce_requested_data done [00:14:09]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123402,"shift.num":324,"shift.opened":1,"shift.open_date":1709511088} [00:14:09]process_action_free close_receipt [00:14:09]json_value_free [00:14:09]json_value_free done [00:14:09]process_json_proto returns [00:14:09]Send response to host [00:14:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123402,"shift.num":324,"shift.opened":1,"shift.open_date":1709511088}}} [00:14:09]free response buf [00:14:09]execute_script done [00:14:09]execute_script returns [00:14:09]free content buf [00:14:09]Sock 9.Close socket [00:14:09]Sock 9.Thread stoped [00:14:11]OFD Sender: No OFD packet to send [00:14:16]OFD Sender: No OFD packet to send [00:14:21]OFD Sender: No OFD packet to send [00:14:26]OFD Sender: No OFD packet to send [00:14:31]OFD Sender: No OFD packet to send [00:14:35]accept exits with 7 [00:14:35]New connection [00:14:35]New thread 3067395428 created [00:14:35]Thread 3067252068 joined [00:14:35]Waiting for new connection... [00:14:35] Sock 7.Parse request [00:14:35]Sock 7.Check first char [00:14:35]Sock 7.First char is OK [00:14:35]request: POST /json_proto HTTP/1.0 [00:14:35]Method: POST [00:14:35]URL: /json_proto [00:14:35]Method is POST - this is cgi request [00:14:35]url: /json_proto [00:14:35]query_string will be loaded in cgi processing [00:14:35]execute_cgi json_proto POST (null) [00:14:35]execute_cgi path=json_proto method=POST [00:14:35]POST find Content-Length [00:14:35]Host: 172.17.48.197:8080 [00:14:35]Content-Length: 735 [00:14:35]Content-Type: application/json [00:14:35] [00:14:35]POST finish read [00:14:35]Found Content-Length = 735 [00:14:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 123402, "base_FM": "0000000000874798", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106389", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 6.470, "sum" : 400.49, "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" ] } } [00:14:35]execute_script... [00:14:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 123402, "base_FM": "0000000000874798", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106389", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 6.470, "sum" : 400.49, "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" ] } } [00:14:35]POST & json_proto [00:14:35]process_json_proto [00:14:35]json parsed OK: [00:14:35]protocol is kg_v1.0 [00:14:35]action value=close_receipt [00:14:35]process_action close_receipt [00:14:35]cmd_close_receipt [00:14:35]MH_GetDate [00:14:35]Write to MH i2c: F0 00 00 48 5E 95 [00:14:35]Write i2c OK [00:14:35]MH_I2C_Read... [00:14:35]Read from MH i2c: F0 [00:14:35]MH_I2C_Read... [00:14:35]Read from MH i2c: F0 09 00 [00:14:35]MH_I2C_Read... [00:14:35]Read from MH i2c: F0 09 00 48 5E 00 71 12 E5 65 6C AF E3 65 CE [00:14:35]GetLastDocTimeStamp 1709511249 [00:14:35]current date 1709511281 [00:14:35]FM_GetShiftState [00:14:35]SAM_PROTO_GetShiftState [00:14:35]wFMCommunicate request_size=4 [00:14:35]MH_SAM_APDU [00:14:35]CAPDU: 80 13 01 00 [00:14:35]Write to MH i2c: E2 08 00 49 5E 80 13 01 00 00 00 00 00 24 [00:14:35]Write i2c OK [00:14:35]MH_I2C_Read... [00:14:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:14:35]Read from MH i2c: E2 [00:14:35]MH_I2C_Read... [00:14:35]Read from MH i2c: E2 0E 00 [00:14:35]MH_I2C_Read... [00:14:35]Read from MH i2c: E2 0E 00 49 5E 00 09 00 01 B0 11 E5 65 00 00 00 00 90 00 3B [00:14:35]RAPDU: 09 00 01 B0 11 E5 65 00 00 00 00 90 00 [00:14:35]wFMCommunicate OK [00:14:35]SAM_PROTO_GetShiftState done [00:14:35]FM_GetShiftState done [00:14:35]opened in 1709511088 [00:14:35]opened+sec_in_day 1709597488 [00:14:35]quantity*price = 40049 [00:14:35]sum+1 = 40050 [00:14:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 400.00 НСП 1% : 3.54 НДС 12% : 42.53 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 3 04.03.2024 00:14 Смена: 324 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФД осн.: 123402 ФМ осн.: 0000000000874798 ФМ: 0000000000874798 ФД: 123403 ФПД: 95508333197049 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240304T001441&type=2&operation_type=1&fn_number=0000000000874798&fd_number=123403&fm=95508333197049&tin=02508201610067®Number=0000000000090573&sum=40000 [00:14:36]StoreToDocumentArchive [00:14:36]shift 324 fd 123403 [00:14:36]save to /storage/0324/doc_00123403 [00:14:36]save last doc name /storage/0324/doc_00123403 to /storage/kkm_last_doc_name [00:14:36]save OK [00:14:36]Clear old archive folders... [00:14:36]ProcessDocumentItem done err = 0, tmpTLVsize=279 [00:14:36]tlvbuf is 00DF5AB0 [00:14:36]SAM_PROTO_ClearQueue [00:14:36]wFMCommunicate request_size=4 [00:14:36]MH_SAM_APDU [00:14:36]CAPDU: 80 09 00 00 [00:14:36]Write to MH i2c: E2 08 00 58 5E 80 09 00 00 00 00 00 00 28 [00:14:36]Write i2c OK [00:14:36]MH_I2C_Read... [00:14:36]OFD Sender: No OFD packet to send [00:14:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:14:36]Read from MH i2c: E2 [00:14:36]MH_I2C_Read... [00:14:36]Read from MH i2c: E2 03 00 [00:14:36]MH_I2C_Read... [00:14:36]Read from MH i2c: E2 03 00 58 5E 00 90 00 2A [00:14:36]RAPDU: 90 00 [00:14:36]wFMCommunicate OK [00:14:36]SAM_PROTO_ClearQueue done [00:14:36]KKMCreateOFDPacket [00:14:36]OFDProtocolAddRootSTLVToBuf [00:14:36]FM_MakeSignedData [00:14:36]FM_MakeSignedData [00:14:36]SAM_PROTO_SignData [00:14:36]wFMCommunicate request_size=4 [00:14:36]MH_SAM_APDU [00:14:36]CAPDU: 80 0D 01 02 [00:14:36]Write to MH i2c: E2 08 00 59 5E 80 0D 01 02 00 00 00 00 30 [00:14:36]Write i2c OK [00:14:36]MH_I2C_Read... [00:14:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:14:36]Read from MH i2c: E2 [00:14:36]MH_I2C_Read... [00:14:36]Read from MH i2c: E2 03 00 [00:14:36]MH_I2C_Read... [00:14:36]Read from MH i2c: E2 03 00 59 5E 00 90 00 2B [00:14:36]RAPDU: 90 00 [00:14:36]wFMCommunicate OK [00:14:36]wFMCommunicate request_size=255 [00:14:36]MH_SAM_APDU [00:14:36]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 35 FF 03 08 00 03 46 19 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 71 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 9D 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 03 00 00 00 F4 03 04 00 71 12 E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 27 04 04 00 0A E2 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 11 04 10 00 30 [00:14:36]Write to MH i2c: E2 02 01 5A 5E 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 35 FF 03 08 00 03 46 19 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 71 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 9D 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 03 00 00 00 F4 03 04 00 71 12 E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 27 04 04 00 0A E2 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 11 04 10 00 30 00 00 22 [00:14:36]Write i2c OK [00:14:36]MH_I2C_Read... [00:14:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:14:37]Read from MH i2c: E2 [00:14:37]MH_I2C_Read... [00:14:37]Read from MH i2c: E2 03 00 [00:14:37]MH_I2C_Read... [00:14:37]Read from MH i2c: E2 03 00 5A 5E 00 90 00 2C [00:14:37]RAPDU: 90 00 [00:14:37]wFMCommunicate OK [00:14:37]wFMCommunicate request_size=38 [00:14:37]MH_SAM_APDU [00:14:37]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 0B E2 01 00 35 04 06 00 56 DD 44 45 F6 F9 [00:14:37]Write to MH i2c: E2 29 00 5B 5E 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 0B E2 01 00 35 04 06 00 56 DD 44 45 F6 F9 00 00 60 [00:14:37]Write i2c OK [00:14:37]MH_I2C_Read... [00:14:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:14:37]Read from MH i2c: E2 [00:14:37]MH_I2C_Read... [00:14:37]Read from MH i2c: E2 03 00 [00:14:37]MH_I2C_Read... [00:14:37]Read from MH i2c: E2 03 00 5B 5E 00 90 00 2D [00:14:37]RAPDU: 90 00 [00:14:37]wFMCommunicate OK [00:14:37]wFMCommunicate request_size=4 [00:14:37]MH_SAM_APDU [00:14:37]CAPDU: 80 0D 03 02 [00:14:37]Write to MH i2c: E2 08 00 5C 5E 80 0D 03 02 00 00 00 00 35 [00:14:37]Write i2c OK [00:14:37]MH_I2C_Read... [00:14:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:14:37]Read from MH i2c: E2 [00:14:37]MH_I2C_Read... [00:14:37]Read from MH i2c: E2 0B 00 [00:14:37]MH_I2C_Read... [00:14:37]Read from MH i2c: E2 0B 00 5C 5E 00 32 EE 61 55 E9 0F DB 01 90 00 E0 [00:14:37]RAPDU: 32 EE 61 55 E9 0F DB 01 90 00 [00:14:37]wFMCommunicate OK [00:14:37]SAM_PROTO_SignData done [00:14:37]FM_MakeSignedData done [00:14:37]CreateOFDProtocolMessage [00:14:37]wFMCommunicate request_size=4 [00:14:37]MH_SAM_APDU [00:14:37]CAPDU: 80 11 00 00 [00:14:37]Write to MH i2c: E2 08 00 5D 5E 80 11 00 00 00 00 00 00 35 [00:14:37]Write i2c OK [00:14:37]MH_I2C_Read... [00:14:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:14:37]Read from MH i2c: E2 [00:14:37]MH_I2C_Read... [00:14:37]Read from MH i2c: E2 17 00 [00:14:37]MH_I2C_Read... [00:14:37]Read from MH i2c: E2 17 00 5D 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 93 [00:14:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [00:14:37]wFMCommunicate OK [00:14:37]CreateOFDProtocolMessage done [00:14:37]OFDSenderStorePacket 123403 [00:14:37]StoreOFDPacket docnum=123403 [00:14:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 2B 01 00 00 D3 CC 23 01 29 36 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 35 FF 03 08 00 03 46 19 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 71 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 9D 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 03 00 00 00 F4 03 04 00 71 12 E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 27 04 04 00 0A E2 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 0B E2 01 00 35 04 06 00 56 DD 44 45 F6 F9 32 EE 61 55 E9 0F DB 01 [00:14:37]CheckFolder [00:14:37]dirname=/storage/ofd_packets [00:14:37]CheckFolder done [00:14:37]ProducePacketName [00:14:37]name=ofd_packets/00123403 [00:14:37]NVStorageSaveData ofd_packets/00123403 [00:14:37]File name is /storage/ofd_packets/00123403 [00:14:37]Write 329 bytes [00:14:37]NVStorageSaveData done [00:14:37]OFDSenderStorePacket done [00:14:37]KKMCreateOFDPacket done [00:14:37]NVStorageSaveData kkm_last_timestamp [00:14:37]File name is /storage/kkm_last_timestamp [00:14:37]Write 4 bytes [00:14:37]NVStorageSaveData done [00:14:37]ExternCall_PrintAddStr [00:14:37]wPrintStart [00:14:37]Write to MH i2c: 01 00 00 5E 5E BC [00:14:37]Write i2c OK [00:14:37]MH_I2C_Read... [00:14:37]Read from MH i2c: 01 [00:14:37]MH_I2C_Read... [00:14:37]Read from MH i2c: 01 07 00 [00:14:37]MH_I2C_Read... [00:14:37]Read from MH i2c: 01 07 00 5E 5E 00 00 00 00 00 FF 0F D1 [00:14:37]RasterBufferAndPrint [00:14:37]line Счет N : (1)1106389 [00:14:37]line ИНН: 02508201610067 [00:14:37]line Контрольно-Кассовый Чек [00:14:37]line ВОЗВРАТ ПРОДАЖИ [00:14:37]line ТРК (МРК, ГНК) : 52 [00:14:37]line Товар: 2710124130 [00:14:37]line Аи-92-К-5 [00:14:37]line 6.470 * 61.90 [00:14:37]line = 400.49 [00:14:37]line НДС 12% НСП 1% [00:14:37]line > о реализуемом товаре [00:14:37]line ОКРУГЛЕНИЕ: -0.49 [00:14:37]line ИТОГО: 400.00 [00:14:37]line НСП 1% : 3.54 [00:14:37]line НДС 12% : 42.53 [00:14:37]line Наличными: 400.00 [00:14:37]line Безнал.: 0.00 [00:14:37]line Место: АЗС № 25 "Партнер Нефть" [00:14:37]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [00:14:37]line СНО: Общий режим [00:14:37]line Чек 3 04.03.2024 00:14 [00:14:37]line Смена: 324 ФФД: 1.0 [00:14:37]line ЗНМ: 0300000019 [00:14:37]line РНМ: 0000000000090573 [00:14:37]line Версия ККМ: 001 [00:14:37]line ФД осн.: 123402 [00:14:37]line ФМ осн.: 0000000000874798 [00:14:37]line ФМ: 0000000000874798 [00:14:37]line ФД: 123403 [00:14:37]line ФПД: 95508333197049 [00:14:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240304T001441&type=2&operation_type=1&fn_number=0000000000874798&fd_number=123403&fm=95508333197049&tin=02508201610067®Number=0000000000090573&sum=40000 [00:14:37]OFD Sender: Processing packet 123403 [packets to send 112, broken 111] [00:14:37]ProducePacketName [00:14:37]name=ofd_packets/00123403 [00:14:37]OFD Sender: To server: pG, [00:14:37]CommunicateWithHost lk.salyk.kg:30040 [00:14:37]ConnectInit lk.salyk.kg [00:14:37]written 0, free lines is 4095 [00:14:37]Connected sock=10 [00:14:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 2B 01 00 00 D3 CC 23 01 29 36 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 35 FF 03 08 00 03 46 19 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 71 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 9D 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 03 00 00 00 F4 03 04 00 71 12 E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 27 04 04 00 0A E2 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 0B E2 01 00 35 04 06 00 56 DD 44 45 F6 F9 32 EE 61 55 E9 0F DB 01 [00:14:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 96 5B 47 00 7F 54 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 0B E2 01 00 F4 03 04 00 9B BE E4 65 B6 04 01 00 00 98 DC C1 46 18 C2 8F C9 [00:14:37]CommunicateWithHost err = 0 [00:14:37]CheckOFDResponse [00:14:37]1017 (14) - 77093643461234 [00:14:37]1041 (16) - 0000000000874798 [00:14:37]1040 (4) - 123403 [00:14:37]1012 (4) - 03.03.2024 18:16 [00:14:37]1206 (1) - 0 [00:14:37]OFD Sender: Remove packet 123403 [00:14:37]ProducePacketName [00:14:37]name=ofd_packets/00123403 [00:14:37]NVStorageDeleteData [00:14:38]Write to MH i2c: 01 00 00 89 5E E7 [00:14:38]Write i2c OK [00:14:38]MH_I2C_Read... [00:14:38]Read from MH i2c: 01 [00:14:38]MH_I2C_Read... [00:14:38]Read from MH i2c: 01 07 00 [00:14:38]MH_I2C_Read... [00:14:38]Read from MH i2c: 01 07 00 89 5E 00 00 00 00 00 01 0D FC [00:14:38]RasterBufferAndPrint [00:14:38]line [00:14:38]line [00:14:38]line [00:14:38]line [00:14:38]line [00:14:38]written 0, free lines is 3335 [00:14:38]MH_Cut [00:14:38]Write to MH i2c: D1 01 00 90 5E 01 C0 [00:14:38]Write i2c OK [00:14:38]MH_I2C_Read... [00:14:38]Read from MH i2c: D1 [00:14:38]MH_I2C_Read... [00:14:38]Read from MH i2c: D1 01 00 [00:14:38]MH_I2C_Read... [00:14:38]Read from MH i2c: D1 01 00 90 5E 00 BF [00:14:38]Write to MH i2c: 01 00 00 91 5E EF [00:14:38]Write i2c OK [00:14:38]MH_I2C_Read... [00:14:38]OFD Sender: No OFD packet to send [00:14:38]*** Cut start [00:14:38]*** Purtial cut [00:14:38]*** Stage 1: CUTSNS_PIN = 1 [00:14:40]Read from MH i2c: 01 [00:14:40]MH_I2C_Read... [00:14:40]*** Stop cut motor [00:14:40]*** Cut end [00:14:40]Read from MH i2c: 01 07 00 [00:14:40]MH_I2C_Read... [00:14:40]Read from MH i2c: 01 07 00 91 5E 00 00 00 00 00 FF 0F 04 [00:14:40]process_action close_receipt done [00:14:40]requested_data is exist [00:14:40]produce_requested_data [00:14:40]requested_item fm.sn is exist - process it [00:14:40]wFMCommunicate request_size=4 [00:14:40]MH_SAM_APDU [00:14:40]CAPDU: 80 11 00 00 [00:14:40]Write to MH i2c: E2 08 00 92 5E 80 11 00 00 00 00 00 00 6A [00:14:40]Write i2c OK [00:14:40]MH_I2C_Read... [00:14:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:14:40]Read from MH i2c: E2 [00:14:40]MH_I2C_Read... [00:14:40]Read from MH i2c: E2 17 00 [00:14:40]MH_I2C_Read... [00:14:40]Read from MH i2c: E2 17 00 92 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 C8 [00:14:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [00:14:40]wFMCommunicate OK [00:14:40]requested_item fd.num is exist - process it [00:14:40]SAM_PROTO_GetFieldsCounters [00:14:40]wFMCommunicate request_size=4 [00:14:40]MH_SAM_APDU [00:14:40]CAPDU: 80 13 00 00 [00:14:40]Write to MH i2c: E2 08 00 93 5E 80 13 00 00 00 00 00 00 6D [00:14:40]Write i2c OK [00:14:40]MH_I2C_Read... [00:14:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:14:40]Read from MH i2c: E2 [00:14:40]MH_I2C_Read... [00:14:40]Read from MH i2c: E2 62 00 [00:14:40]MH_I2C_Read... [00:14:40]Read from MH i2c: E2 62 00 93 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 0B E2 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 D4 [00: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 0B E2 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:14:40]wFMCommunicate OK [00:14:40]SAM_PROTO_GetFieldsCounters done [00:14:40]requested_item shift.num is exist - process it [00:14:40]requested_item shift.opened is exist - process it [00:14:40]req_shift_opened [00:14:40]FM_GetShiftState [00:14:40]SAM_PROTO_GetShiftState [00:14:40]wFMCommunicate request_size=4 [00:14:40]MH_SAM_APDU [00:14:40]CAPDU: 80 13 01 00 [00:14:40]Write to MH i2c: E2 08 00 94 5E 80 13 01 00 00 00 00 00 6F [00:14:40]Write i2c OK [00:14:40]MH_I2C_Read... [00:14:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:14:40]Read from MH i2c: E2 [00:14:40]MH_I2C_Read... [00:14:40]Read from MH i2c: E2 0E 00 [00:14:40]MH_I2C_Read... [00:14:40]Read from MH i2c: E2 0E 00 94 5E 00 09 00 01 B0 11 E5 65 00 00 00 00 90 00 86 [00:14:40]RAPDU: 09 00 01 B0 11 E5 65 00 00 00 00 90 00 [00:14:40]wFMCommunicate OK [00:14:40]SAM_PROTO_GetShiftState done [00:14:40]FM_GetShiftState done [00:14:40]req_shift_opened done [00:14:40]requested_item shift.open_date is exist - process it [00:14:40]req_shift_open_date [00:14:40]req_shift_open_date done [00:14:40]produce_requested_data done [00:14:40]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123403,"shift.num":324,"shift.opened":1,"shift.open_date":1709511088} [00:14:40]process_action_free close_receipt [00:14:40]json_value_free [00:14:40]json_value_free done [00:14:40]process_json_proto returns [00:14:40]Send response to host [00:14:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123403,"shift.num":324,"shift.opened":1,"shift.open_date":1709511088}}} [00:14:40]free response buf [00:14:40]execute_script done [00:14:40]execute_script returns [00:14:40]free content buf [00:14:40]Sock 7.Close socket [00:14:40]Sock 7.Thread stoped [00:14:43]OFD Sender: No OFD packet to send [00:14:48]OFD Sender: No OFD packet to send [00:14:53]OFD Sender: No OFD packet to send [00:14:58]OFD Sender: No OFD packet to send [00:15:03]OFD Sender: No OFD packet to send [00:15:08]OFD Sender: No OFD packet to send [00:15:13]OFD Sender: No OFD packet to send [00:15:18]OFD Sender: No OFD packet to send [00:15:20]accept exits with 9 [00:15:20]New connection [00:15:20]New thread 3067252068 created [00:15:20]Thread 3067395428 joined [00:15:20]Waiting for new connection... [00:15:20] Sock 9.Parse request [00:15:20]Sock 9.Check first char [00:15:20]Sock 9.First char is OK [00:15:20]request: POST /json_proto HTTP/1.0 [00:15:20]Method: POST [00:15:20]URL: /json_proto [00:15:20]Method is POST - this is cgi request [00:15:20]url: /json_proto [00:15:20]query_string will be loaded in cgi processing [00:15:20]execute_cgi json_proto POST (null) [00:15:20]execute_cgi path=json_proto method=POST [00:15:20]POST find Content-Length [00:15:20]Host: 172.17.48.197:8080 [00:15:20]Content-Length: 678 [00:15:20]Content-Type: application/json [00:15:20] [00:15:20]POST finish read [00:15:20]Found Content-Length = 678 [00:15:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106390", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 6.470, "sum" : 400.49, "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" ] } } [00:15:20]execute_script... [00:15:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106390", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 6.470, "sum" : 400.49, "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" ] } } [00:15:20]POST & json_proto [00:15:20]process_json_proto [00:15:20]json parsed OK: [00:15:20]protocol is kg_v1.0 [00:15:20]action value=close_receipt [00:15:20]process_action close_receipt [00:15:20]cmd_close_receipt [00:15:20]MH_GetDate [00:15:20]Write to MH i2c: F0 00 00 95 5E E2 [00:15:20]Write i2c OK [00:15:20]MH_I2C_Read... [00:15:20]Read from MH i2c: F0 [00:15:20]MH_I2C_Read... [00:15:20]Read from MH i2c: F0 09 00 [00:15:20]MH_I2C_Read... [00:15:20]Read from MH i2c: F0 09 00 95 5E 00 9E 12 E5 65 6C AF E3 65 48 [00:15:20]GetLastDocTimeStamp 1709511281 [00:15:20]current date 1709511326 [00:15:20]FM_GetShiftState [00:15:20]SAM_PROTO_GetShiftState [00:15:20]wFMCommunicate request_size=4 [00:15:20]MH_SAM_APDU [00:15:20]CAPDU: 80 13 01 00 [00:15:20]Write to MH i2c: E2 08 00 96 5E 80 13 01 00 00 00 00 00 71 [00:15:20]Write i2c OK [00:15:20]MH_I2C_Read... [00:15:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:15:20]Read from MH i2c: E2 [00:15:20]MH_I2C_Read... [00:15:20]Read from MH i2c: E2 0E 00 [00:15:20]MH_I2C_Read... [00:15:20]Read from MH i2c: E2 0E 00 96 5E 00 09 00 01 B0 11 E5 65 00 00 00 00 90 00 88 [00:15:20]RAPDU: 09 00 01 B0 11 E5 65 00 00 00 00 90 00 [00:15:20]wFMCommunicate OK [00:15:20]SAM_PROTO_GetShiftState done [00:15:20]FM_GetShiftState done [00:15:20]opened in 1709511088 [00:15:20]opened+sec_in_day 1709597488 [00:15:20]quantity*price = 40049 [00:15:20]sum+1 = 40050 [00:15:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.53 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 4 04.03.2024 00:15 Смена: 324 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123404 ФПД: 144599978802286 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240304T001526&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123404&fm=144599978802286&tin=02508201610067®Number=0000000000090573&sum=40000 [00:15:21]StoreToDocumentArchive [00:15:21]shift 324 fd 123404 [00:15:21]save to /storage/0324/doc_00123404 [00:15:21]save last doc name /storage/0324/doc_00123404 to /storage/kkm_last_doc_name [00:15:21]save OK [00:15:21]Clear old archive folders... [00:15:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:15:21]tlvbuf is 00DA9420 [00:15:21]SAM_PROTO_ClearQueue [00:15:21]wFMCommunicate request_size=4 [00:15:21]MH_SAM_APDU [00:15:21]CAPDU: 80 09 00 00 [00:15:21]Write to MH i2c: E2 08 00 A3 5E 80 09 00 00 00 00 00 00 73 [00:15:21]Write i2c OK [00:15:21]MH_I2C_Read... [00:15:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:15:21]Read from MH i2c: E2 [00:15:21]MH_I2C_Read... [00:15:21]Read from MH i2c: E2 03 00 [00:15:21]MH_I2C_Read... [00:15:21]Read from MH i2c: E2 03 00 A3 5E 00 90 00 75 [00:15:21]RAPDU: 90 00 [00:15:21]wFMCommunicate OK [00:15:21]SAM_PROTO_ClearQueue done [00:15:21]KKMCreateOFDPacket [00:15:21]OFDProtocolAddRootSTLVToBuf [00:15:21]FM_MakeSignedData [00:15:21]FM_MakeSignedData [00:15:21]SAM_PROTO_SignData [00:15:21]wFMCommunicate request_size=4 [00:15:21]MH_SAM_APDU [00:15:21]CAPDU: 80 0D 01 02 [00:15:21]Write to MH i2c: E2 08 00 A4 5E 80 0D 01 02 00 00 00 00 7B [00:15:21]Write i2c OK [00:15:21]MH_I2C_Read... [00:15:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:15:22]Read from MH i2c: E2 [00:15:22]MH_I2C_Read... [00:15:22]Read from MH i2c: E2 03 00 [00:15:22]MH_I2C_Read... [00:15:22]Read from MH i2c: E2 03 00 A4 5E 00 90 00 76 [00:15:22]RAPDU: 90 00 [00:15:22]wFMCommunicate OK [00:15:22]wFMCommunicate request_size=255 [00:15:22]MH_SAM_APDU [00:15:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 19 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 71 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 9D 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 04 00 00 00 F4 03 04 00 9E 12 E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 0C E2 01 00 35 04 06 00 83 [00:15:22]Write to MH i2c: E2 02 01 A5 5E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 19 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 71 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 9D 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 04 00 00 00 F4 03 04 00 9E 12 E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 0C E2 01 00 35 04 06 00 83 00 00 BE [00:15:22]Write i2c OK [00:15:22]MH_I2C_Read... [00:15:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:15:22]Read from MH i2c: E2 [00:15:22]MH_I2C_Read... [00:15:22]Read from MH i2c: E2 03 00 [00:15:22]MH_I2C_Read... [00:15:22]Read from MH i2c: E2 03 00 A5 5E 00 90 00 77 [00:15:22]RAPDU: 90 00 [00:15:22]wFMCommunicate OK [00:15:22]wFMCommunicate request_size=10 [00:15:22]MH_SAM_APDU [00:15:22]CAPDU: 80 0D 02 02 05 83 4E 5E FC 6E [00:15:22]Write to MH i2c: E2 0D 00 A6 5E 80 0D 02 02 05 00 83 4E 5E FC 6E 00 00 21 [00:15:22]Write i2c OK [00:15:22]MH_I2C_Read... [00:15:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:15:22]Read from MH i2c: E2 [00:15:22]MH_I2C_Read... [00:15:22]Read from MH i2c: E2 03 00 [00:15:22]MH_I2C_Read... [00:15:22]Read from MH i2c: E2 03 00 A6 5E 00 90 00 78 [00:15:22]RAPDU: 90 00 [00:15:22]wFMCommunicate OK [00:15:22]wFMCommunicate request_size=4 [00:15:22]MH_SAM_APDU [00:15:22]CAPDU: 80 0D 03 02 [00:15:22]Write to MH i2c: E2 08 00 A7 5E 80 0D 03 02 00 00 00 00 80 [00:15:22]Write i2c OK [00:15:22]MH_I2C_Read... [00:15:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:15:22]Read from MH i2c: E2 [00:15:22]MH_I2C_Read... [00:15:22]Read from MH i2c: E2 0B 00 [00:15:22]MH_I2C_Read... [00:15:22]Read from MH i2c: E2 0B 00 A7 5E 00 FD 79 F0 17 57 B9 C8 21 90 00 F7 [00:15:22]RAPDU: FD 79 F0 17 57 B9 C8 21 90 00 [00:15:22]wFMCommunicate OK [00:15:22]SAM_PROTO_SignData done [00:15:22]FM_MakeSignedData done [00:15:22]CreateOFDProtocolMessage [00:15:22]wFMCommunicate request_size=4 [00:15:22]MH_SAM_APDU [00:15:22]CAPDU: 80 11 00 00 [00:15:22]Write to MH i2c: E2 08 00 A8 5E 80 11 00 00 00 00 00 00 80 [00:15:22]Write i2c OK [00:15:22]MH_I2C_Read... [00:15:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:15:22]Read from MH i2c: E2 [00:15:22]MH_I2C_Read... [00:15:22]Read from MH i2c: E2 17 00 [00:15:22]MH_I2C_Read... [00:15:22]Read from MH i2c: E2 17 00 A8 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 DE [00:15:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [00:15:22]wFMCommunicate OK [00:15:22]CreateOFDProtocolMessage done [00:15:22]OFDSenderStorePacket 123404 [00:15:22]StoreOFDPacket docnum=123404 [00:15:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 C1 C9 07 01 0C 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 19 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 71 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 9D 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 04 00 00 00 F4 03 04 00 9E 12 E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 0C E2 01 00 35 04 06 00 83 83 4E 5E FC 6E FD 79 F0 17 57 B9 C8 21 [00:15:22]CheckFolder [00:15:22]dirname=/storage/ofd_packets [00:15:22]CheckFolder done [00:15:22]ProducePacketName [00:15:22]name=ofd_packets/00123404 [00:15:22]NVStorageSaveData ofd_packets/00123404 [00:15:22]File name is /storage/ofd_packets/00123404 [00:15:22]Write 301 bytes [00:15:22]NVStorageSaveData done [00:15:22]OFDSenderStorePacket done [00:15:22]KKMCreateOFDPacket done [00:15:22]NVStorageSaveData kkm_last_timestamp [00:15:22]File name is /storage/kkm_last_timestamp [00:15:22]Write 4 bytes [00:15:22]NVStorageSaveData done [00:15:22]ExternCall_PrintAddStr [00:15:22]wPrintStart [00:15:22]Write to MH i2c: 01 00 00 A9 5E 07 [00:15:22]Write i2c OK [00:15:22]MH_I2C_Read... [00:15:22]Read from MH i2c: 01 [00:15:22]MH_I2C_Read... [00:15:22]Read from MH i2c: 01 07 00 [00:15:22]MH_I2C_Read... [00:15:22]Read from MH i2c: 01 07 00 A9 5E 00 00 00 00 00 FF 0F 1C [00:15:22]RasterBufferAndPrint [00:15:22]line Счет N : (1)1106390 [00:15:22]line ИНН: 02508201610067 [00:15:22]line Контрольно-Кассовый Чек [00:15:22]line ПРОДАЖА [00:15:22]line ТРК (МРК, ГНК) : 11 [00:15:22]line Товар: 2710124130 [00:15:22]line Аи-92-К-5 [00:15:22]line 6.470 * 61.90 [00:15:22]line = 400.49 [00:15:22]line НДС 12% НСП 1% [00:15:22]line > о реализуемом товаре [00:15:22]line ОКРУГЛЕНИЕ: -0.49 [00:15:22]line ИТОГО: 400.00 [00:15:22]line Внесено: 400.00 [00:15:22]line СДАЧА: 0.00 [00:15:22]line НСП 1% : 3.54 [00:15:22]line НДС 12% : 42.53 [00:15:22]line Наличными: 400.00 [00:15:22]line Безнал.: 0.00 [00:15:22]line Место: АЗС № 25 "Партнер Нефть" [00:15:22]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [00:15:22]line СНО: Общий режим [00:15:22]line Чек 4 04.03.2024 00:15 [00:15:22]line Смена: 324 ФФД: 1.0 [00:15:22]line ЗНМ: 0300000019 [00:15:22]line РНМ: 0000000000090573 [00:15:22]line Версия ККМ: 001 [00:15:22]line ФМ: 0000000000874798 [00:15:22]line ФД: 123404 [00:15:22]line ФПД: 144599978802286 [00:15:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240304T001526&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123404&fm=144599978802286&tin=02508201610067®Number=0000000000090573&sum=40000 [00:15:22]OFD Sender: Processing packet 123404 [packets to send 112, broken 111] [00:15:22]ProducePacketName [00:15:22]name=ofd_packets/00123404 [00:15:22]OFD Sender: To server: pG, [00:15:22]CommunicateWithHost lk.salyk.kg:30040 [00:15:22]ConnectInit lk.salyk.kg [00:15:22]written 0, free lines is 4095 [00:15:22]Connected sock=10 [00:15: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 37 39 38 0F 01 00 00 C1 C9 07 01 0C 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 19 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 71 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 9D 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 04 00 00 00 F4 03 04 00 9E 12 E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 0C E2 01 00 35 04 06 00 83 83 4E 5E FC 6E FD 79 F0 17 57 B9 C8 21 [00:15:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 6A 57 47 00 D0 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 37 39 38 10 04 04 00 0C E2 01 00 F4 03 04 00 C8 BE E4 65 B6 04 01 00 00 1E 7C AB 12 04 B8 80 6B [00:15:23]CommunicateWithHost err = 0 [00:15:23]CheckOFDResponse [00:15:23]1017 (14) - 77093643461234 [00:15:23]1041 (16) - 0000000000874798 [00:15:23]1040 (4) - 123404 [00:15:23]1012 (4) - 03.03.2024 18:17 [00:15:23]1206 (1) - 0 [00:15:23]OFD Sender: Remove packet 123404 [00:15:23]ProducePacketName [00:15:23]name=ofd_packets/00123404 [00:15:23]NVStorageDeleteData [00:15:23]Write to MH i2c: 01 00 00 D4 5E 32 [00:15:23]Write i2c OK [00:15:23]MH_I2C_Read... [00:15:23]Read from MH i2c: 01 [00:15:23]MH_I2C_Read... [00:15:23]Read from MH i2c: 01 07 00 [00:15:23]MH_I2C_Read... [00:15:23]Read from MH i2c: 01 07 00 D4 5E 00 00 00 00 00 E5 0C 2A [00:15:23]RasterBufferAndPrint [00:15:23]line [00:15:23]line [00:15:23]line [00:15:23]line [00:15:23]line [00:15:23]written 0, free lines is 3310 [00:15:23]MH_Cut [00:15:23]Write to MH i2c: D1 01 00 DB 5E 01 0B [00:15:23]Write i2c OK [00:15:23]MH_I2C_Read... [00:15:23]Read from MH i2c: D1 [00:15:23]MH_I2C_Read... [00:15:23]Read from MH i2c: D1 01 00 [00:15:23]MH_I2C_Read... [00:15:23]Read from MH i2c: D1 01 00 DB 5E 00 0A [00:15:23]Write to MH i2c: 01 00 00 DC 5E 3A [00:15:23]Write i2c OK [00:15:23]MH_I2C_Read... [00:15:23]OFD Sender: No OFD packet to send [00:15:23]*** Cut start [00:15:23]*** Purtial cut [00:15:23]*** Stage 1: CUTSNS_PIN = 1 [00:15:25]Read from MH i2c: 01 [00:15:25]MH_I2C_Read... [00:15:25]*** Stop cut motor [00:15:25]*** Cut end [00:15:25]Read from MH i2c: 01 07 00 [00:15:25]MH_I2C_Read... [00:15:25]Read from MH i2c: 01 07 00 DC 5E 00 00 00 00 00 FF 0F 4F [00:15:25]process_action close_receipt done [00:15:25]requested_data is exist [00:15:25]produce_requested_data [00:15:25]requested_item fm.sn is exist - process it [00:15:25]wFMCommunicate request_size=4 [00:15:25]MH_SAM_APDU [00:15:25]CAPDU: 80 11 00 00 [00:15:25]Write to MH i2c: E2 08 00 DD 5E 80 11 00 00 00 00 00 00 B5 [00:15:25]Write i2c OK [00:15:25]MH_I2C_Read... [00:15:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:15:26]Read from MH i2c: E2 [00:15:26]MH_I2C_Read... [00:15:26]Read from MH i2c: E2 17 00 [00:15:26]MH_I2C_Read... [00:15:26]Read from MH i2c: E2 17 00 DD 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 13 [00:15:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [00:15:26]wFMCommunicate OK [00:15:26]requested_item fd.num is exist - process it [00:15:26]SAM_PROTO_GetFieldsCounters [00:15:26]wFMCommunicate request_size=4 [00:15:26]MH_SAM_APDU [00:15:26]CAPDU: 80 13 00 00 [00:15:26]Write to MH i2c: E2 08 00 DE 5E 80 13 00 00 00 00 00 00 B8 [00:15:26]Write i2c OK [00:15:26]MH_I2C_Read... [00:15:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:15:26]Read from MH i2c: E2 [00:15:26]MH_I2C_Read... [00:15:26]Read from MH i2c: E2 62 00 [00:15:26]MH_I2C_Read... [00:15:26]Read from MH i2c: E2 62 00 DE 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 0C E2 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 23 [00:15: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 0C E2 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:15:26]wFMCommunicate OK [00:15:26]SAM_PROTO_GetFieldsCounters done [00:15:26]requested_item shift.num is exist - process it [00:15:26]requested_item shift.opened is exist - process it [00:15:26]req_shift_opened [00:15:26]FM_GetShiftState [00:15:26]SAM_PROTO_GetShiftState [00:15:26]wFMCommunicate request_size=4 [00:15:26]MH_SAM_APDU [00:15:26]CAPDU: 80 13 01 00 [00:15:26]Write to MH i2c: E2 08 00 DF 5E 80 13 01 00 00 00 00 00 BA [00:15:26]Write i2c OK [00:15:26]MH_I2C_Read... [00:15:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:15:26]Read from MH i2c: E2 [00:15:26]MH_I2C_Read... [00:15:26]Read from MH i2c: E2 0E 00 [00:15:26]MH_I2C_Read... [00:15:26]Read from MH i2c: E2 0E 00 DF 5E 00 09 00 01 B0 11 E5 65 00 00 00 00 90 00 D1 [00:15:26]RAPDU: 09 00 01 B0 11 E5 65 00 00 00 00 90 00 [00:15:26]wFMCommunicate OK [00:15:26]SAM_PROTO_GetShiftState done [00:15:26]FM_GetShiftState done [00:15:26]req_shift_opened done [00:15:26]requested_item shift.open_date is exist - process it [00:15:26]req_shift_open_date [00:15:26]req_shift_open_date done [00:15:26]produce_requested_data done [00:15:26]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123404,"shift.num":324,"shift.opened":1,"shift.open_date":1709511088} [00:15:26]process_action_free close_receipt [00:15:26]json_value_free [00:15:26]json_value_free done [00:15:26]process_json_proto returns [00:15:26]Send response to host [00:15:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123404,"shift.num":324,"shift.opened":1,"shift.open_date":1709511088}}} [00:15:26]free response buf [00:15:26]execute_script done [00:15:26]execute_script returns [00:15:26]free content buf [00:15:26]Sock 9.Close socket [00:15:26]Sock 9.Thread stoped [00:15:28]OFD Sender: No OFD packet to send [00:15:33]OFD Sender: No OFD packet to send [00:15:38]OFD Sender: No OFD packet to send [00:15:43]OFD Sender: No OFD packet to send [00:15:48]OFD Sender: No OFD packet to send [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:12]accept exits with 7 [00:16:12]New connection [00:16:12]New thread 3067395428 created [00:16:12]Thread 3067252068 joined [00:16:12]Waiting for new connection... [00:16:12] Sock 7.Parse request [00:16:12]Sock 7.Check first char [00:16:12]Sock 7.First char is OK [00:16:12]request: POST /json_proto HTTP/1.0 [00:16:12]Method: POST [00:16:12]URL: /json_proto [00:16:12]Method is POST - this is cgi request [00:16:12]url: /json_proto [00:16:12]query_string will be loaded in cgi processing [00:16:12]execute_cgi json_proto POST (null) [00:16:12]execute_cgi path=json_proto method=POST [00:16:12]POST find Content-Length [00:16:12]Host: 172.17.48.197:8080 [00:16:12]Content-Length: 1229 [00:16:12]Content-Type: application/json [00:16:12] [00:16:12]POST finish read [00:16:12]Found Content-Length = 1229 [00:16:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0431\u044B\u043B\u0433\u0430\u0437\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)1106388\u000A04.03.2024 00:12\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 50.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 3545.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3430250/3430249\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:16:12]execute_script... [00:16:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0431\u044B\u043B\u0433\u0430\u0437\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)1106388\u000A04.03.2024 00:12\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 50.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 3545.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3430250/3430249\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:16:12]POST & json_proto [00:16:12]process_json_proto [00:16:12]json parsed OK: [00:16:12]protocol is kg_v1.0 [00:16:12]action value=print_text [00:16:12]process_action print_text [00:16:12]cmd_print_text [00:16:12]ExternCall_PrintAddStr [00:16:12]wPrintStart [00:16:12]Write to MH i2c: 01 00 00 E0 5E 3E [00:16:12]Write i2c OK [00:16:12]MH_I2C_Read... [00:16:12]Read from MH i2c: 01 [00:16:12]MH_I2C_Read... [00:16:12]Read from MH i2c: 01 07 00 [00:16:12]MH_I2C_Read... [00:16:12]Read from MH i2c: 01 07 00 E0 5E 00 00 00 00 00 FF 0F 53 [00:16:12]RasterBufferAndPrint [00:16:12]line *****ТОВАРНЫЙ ЧЕК***** [00:16:12]line АЗС 25 [00:16:12]line Партнер нефть [00:16:12]line 02508201610067 [00:16:12]line Кассир : Абылгазиев А. [00:16:12]line Счет N : (1)1106388 [00:16:12]line 04.03.2024 00:12 [00:16:12]line ПРОДАЖА [00:16:12]line ТРК (МРК, ГНК): 41 [00:16:12]line Вид ГСМ : 2710194210 [00:16:12]line ДТ(л)-К-5 [00:16:12]line 50.000 x 70.90 [00:16:12]line ИТОГ: 3545.00 [00:16:12]line Тип оплаты: Талоны: Топливные Талоны [00:16:12]line 3430250/3430249 [00:16:12]line ______________________ [00:16:12]line (подпись) [00:16:12]written 0, free lines is 4095 [00:16:12]Write to MH i2c: 01 00 00 F4 5E 52 [00:16:12]Write i2c OK [00:16:12]MH_I2C_Read... [00:16:12]Read from MH i2c: 01 [00:16:12]MH_I2C_Read... [00:16:12]Read from MH i2c: 01 07 00 [00:16:12]MH_I2C_Read... [00:16:12]Read from MH i2c: 01 07 00 F4 5E 00 00 00 00 00 14 0E 7B [00:16:12]RasterBufferAndPrint [00:16:12]line [00:16:12]line [00:16:12]line [00:16:12]line [00:16:12]line [00:16:12]written 0, free lines is 3606 [00:16:12]MH_Cut [00:16:12]Write to MH i2c: D1 01 00 FB 5E 01 2B [00:16:12]Write i2c OK [00:16:12]MH_I2C_Read... [00:16:12]Read from MH i2c: D1 [00:16:12]MH_I2C_Read... [00:16:12]Read from MH i2c: D1 01 00 [00:16:12]MH_I2C_Read... [00:16:12]Read from MH i2c: D1 01 00 FB 5E 00 2A [00:16:12]Write to MH i2c: 01 00 00 FC 5E 5A [00:16:12]Write i2c OK [00:16:12]MH_I2C_Read... [00:16:13]*** Cut start [00:16:13]*** Purtial cut [00:16:13]*** Stage 1: CUTSNS_PIN = 1 [00:16:13]OFD Sender: No OFD packet to send [00:16:15]Read from MH i2c: 01 [00:16:15]MH_I2C_Read... [00:16:15]*** Stop cut motor [00:16:15]*** Cut end [00:16:15]Read from MH i2c: 01 07 00 [00:16:15]MH_I2C_Read... [00:16:15]Read from MH i2c: 01 07 00 FC 5E 00 00 00 00 00 FF 0F 6F [00:16:15]process_action print_text done [00:16:15]requested_data is exist [00:16:15]produce_requested_data [00:16:15]requested_item fm.sn is exist - process it [00:16:15]wFMCommunicate request_size=4 [00:16:15]MH_SAM_APDU [00:16:15]CAPDU: 80 11 00 00 [00:16:15]Write to MH i2c: E2 08 00 FD 5E 80 11 00 00 00 00 00 00 D5 [00:16:15]Write i2c OK [00:16:15]MH_I2C_Read... [00:16:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:16:15]Read from MH i2c: E2 [00:16:15]MH_I2C_Read... [00:16:15]Read from MH i2c: E2 17 00 [00:16:15]MH_I2C_Read... [00:16:15]Read from MH i2c: E2 17 00 FD 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 33 [00:16:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [00:16:15]wFMCommunicate OK [00:16:15]requested_item fd.num is exist - process it [00:16:15]SAM_PROTO_GetFieldsCounters [00:16:15]wFMCommunicate request_size=4 [00:16:15]MH_SAM_APDU [00:16:15]CAPDU: 80 13 00 00 [00:16:15]Write to MH i2c: E2 08 00 FE 5E 80 13 00 00 00 00 00 00 D8 [00:16:15]Write i2c OK [00:16:15]MH_I2C_Read... [00:16:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:16:15]Read from MH i2c: E2 [00:16:15]MH_I2C_Read... [00:16:15]Read from MH i2c: E2 62 00 [00:16:15]MH_I2C_Read... [00:16:15]Read from MH i2c: E2 62 00 FE 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 0C E2 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 43 [00:16: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 0C E2 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:16:15]wFMCommunicate OK [00:16:15]SAM_PROTO_GetFieldsCounters done [00:16:15]requested_item shift.num is exist - process it [00:16:15]requested_item shift.opened is exist - process it [00:16:15]req_shift_opened [00:16:15]FM_GetShiftState [00:16:15]SAM_PROTO_GetShiftState [00:16:15]wFMCommunicate request_size=4 [00:16:15]MH_SAM_APDU [00:16:15]CAPDU: 80 13 01 00 [00:16:15]Write to MH i2c: E2 08 00 FF 5E 80 13 01 00 00 00 00 00 DA [00:16:15]Write i2c OK [00:16:15]MH_I2C_Read... [00:16:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:16:15]Read from MH i2c: E2 [00:16:15]MH_I2C_Read... [00:16:15]Read from MH i2c: E2 0E 00 [00:16:15]MH_I2C_Read... [00:16:15]Read from MH i2c: E2 0E 00 FF 5E 00 09 00 01 B0 11 E5 65 00 00 00 00 90 00 F1 [00:16:15]RAPDU: 09 00 01 B0 11 E5 65 00 00 00 00 90 00 [00:16:15]wFMCommunicate OK [00:16:15]SAM_PROTO_GetShiftState done [00:16:15]FM_GetShiftState done [00:16:15]req_shift_opened done [00:16:15]requested_item shift.open_date is exist - process it [00:16:15]req_shift_open_date [00:16:15]req_shift_open_date done [00:16:15]produce_requested_data done [00:16:15]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123404,"shift.num":324,"shift.opened":1,"shift.open_date":1709511088} [00:16:15]process_action_free print_text [00:16:15]json_value_free [00:16:15]json_value_free done [00:16:15]process_json_proto returns [00:16:15]Send response to host [00:16:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123404,"shift.num":324,"shift.opened":1,"shift.open_date":1709511088}}} [00:16:15]free response buf [00:16:15]execute_script done [00:16:15]execute_script returns [00:16:15]free content buf [00:16:15]Sock 7.Close socket [00:16:15]Sock 7.Thread stoped [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]accept exits with 9 [00:17:38]New connection [00:17:38]New thread 3067252068 created [00:17:38]Thread 3067395428 joined [00:17:38]Waiting for new connection... [00:17:38] Sock 9.Parse request [00:17:38]Sock 9.Check first char [00:17:38]Sock 9.First char is OK [00:17:38]request: POST /json_proto HTTP/1.0 [00:17:38]Method: POST [00:17:38]URL: /json_proto [00:17:38]Method is POST - this is cgi request [00:17:38]url: /json_proto [00:17:38]query_string will be loaded in cgi processing [00:17:38]execute_cgi json_proto POST (null) [00:17:38]execute_cgi path=json_proto method=POST [00:17:38]POST find Content-Length [00:17:38]Host: 172.17.48.197:8080 [00:17:38]Content-Length: 820 [00:17:38]Content-Type: application/json [00:17:38] [00:17:38]POST finish read [00:17:38]Found Content-Length = 820 [00:17:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106391", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.30 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:17:38]execute_script... [00:17: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)1106391", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.30 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:17:38]POST & json_proto [00:17:38]process_json_proto [00:17:38]json parsed OK: [00:17:38]protocol is kg_v1.0 [00:17:38]action value=close_receipt [00:17:38]process_action close_receipt [00:17:38]cmd_close_receipt [00:17:38]MH_GetDate [00:17:38]Write to MH i2c: F0 00 00 00 5F 4E [00:17:38]Write i2c OK [00:17:38]MH_I2C_Read... [00:17:38]Read from MH i2c: F0 [00:17:38]MH_I2C_Read... [00:17:38]Read from MH i2c: F0 09 00 [00:17:38]MH_I2C_Read... [00:17:38]Read from MH i2c: F0 09 00 00 5F 00 27 13 E5 65 6C AF E3 65 3E [00:17:38]GetLastDocTimeStamp 1709511326 [00:17:38]current date 1709511463 [00:17:38]FM_GetShiftState [00:17:38]SAM_PROTO_GetShiftState [00:17:38]wFMCommunicate request_size=4 [00:17:38]MH_SAM_APDU [00:17:38]CAPDU: 80 13 01 00 [00:17:38]Write to MH i2c: E2 08 00 01 5F 80 13 01 00 00 00 00 00 DD [00:17:38]Write i2c OK [00:17:38]MH_I2C_Read... [00:17:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:17:38]Read from MH i2c: E2 [00:17:38]MH_I2C_Read... [00:17:38]Read from MH i2c: E2 0E 00 [00:17:38]MH_I2C_Read... [00:17:38]Read from MH i2c: E2 0E 00 01 5F 00 09 00 01 B0 11 E5 65 00 00 00 00 90 00 F4 [00:17:38]RAPDU: 09 00 01 B0 11 E5 65 00 00 00 00 90 00 [00:17:38]wFMCommunicate OK [00:17:38]SAM_PROTO_GetShiftState done [00:17:38]FM_GetShiftState done [00:17:38]opened in 1709511088 [00:17:38]opened+sec_in_day 1709597488 [00:17:38]quantity*price = 100030 [00:17:38]sum+1 = 100031 [00:17:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.30 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 0.00 Безнал.: 1000.30 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 5 04.03.2024 00:17 Смена: 324 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874798 ФД: 123405 ФПД: 28448785455270 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240304T001743&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123405&fm=28448785455270&tin=02508201610067®Number=0000000000090573&sum=100030 [00:17:39]StoreToDocumentArchive [00:17:39]shift 324 fd 123405 [00:17:39]save to /storage/0324/doc_00123405 [00:17:39]save last doc name /storage/0324/doc_00123405 to /storage/kkm_last_doc_name [00:17:39]save OK [00:17:39]Clear old archive folders... [00:17:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:17:39]tlvbuf is 00E0D150 [00:17:39]SAM_PROTO_ClearQueue [00:17:39]wFMCommunicate request_size=4 [00:17:39]MH_SAM_APDU [00:17:39]CAPDU: 80 09 00 00 [00:17:39]Write to MH i2c: E2 08 00 0E 5F 80 09 00 00 00 00 00 00 DF [00:17:39]Write i2c OK [00:17:39]MH_I2C_Read... [00:17:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:17:39]Read from MH i2c: E2 [00:17:39]MH_I2C_Read... [00:17:39]Read from MH i2c: E2 03 00 [00:17:39]MH_I2C_Read... [00:17:39]Read from MH i2c: E2 03 00 0E 5F 00 90 00 E1 [00:17:39]RAPDU: 90 00 [00:17:39]wFMCommunicate OK [00:17:39]SAM_PROTO_ClearQueue done [00:17:39]KKMCreateOFDPacket [00:17:39]OFDProtocolAddRootSTLVToBuf [00:17:39]FM_MakeSignedData [00:17:39]FM_MakeSignedData [00:17:39]SAM_PROTO_SignData [00:17:39]wFMCommunicate request_size=4 [00:17:39]MH_SAM_APDU [00:17:39]CAPDU: 80 0D 01 02 [00:17:39]Write to MH i2c: E2 08 00 0F 5F 80 0D 01 02 00 00 00 00 E7 [00:17:39]Write i2c OK [00:17:39]MH_I2C_Read... [00:17:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:17:39]Read from MH i2c: E2 [00:17:39]MH_I2C_Read... [00:17:39]Read from MH i2c: E2 03 00 [00:17:39]MH_I2C_Read... [00:17:39]Read from MH i2c: E2 03 00 0F 5F 00 90 00 E2 [00:17:39]RAPDU: 90 00 [00:17:39]wFMCommunicate OK [00:17:39]wFMCommunicate request_size=255 [00:17:39]MH_SAM_APDU [00:17: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 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 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 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 27 13 E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 0D E2 01 00 35 04 06 00 19 [00:17:39]Write to MH i2c: E2 02 01 10 5F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 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 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 27 13 E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 0D E2 01 00 35 04 06 00 19 00 00 66 [00:17:39]Write i2c OK [00:17:39]MH_I2C_Read... [00:17:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:17:39]Read from MH i2c: E2 [00:17:39]MH_I2C_Read... [00:17:39]Read from MH i2c: E2 03 00 [00:17:39]MH_I2C_Read... [00:17:39]Read from MH i2c: E2 03 00 10 5F 00 90 00 E3 [00:17:39]RAPDU: 90 00 [00:17:39]wFMCommunicate OK [00:17:39]wFMCommunicate request_size=10 [00:17:39]MH_SAM_APDU [00:17:39]CAPDU: 80 0D 02 02 05 DF BF C0 58 A6 [00:17:39]Write to MH i2c: E2 0D 00 11 5F 80 0D 02 02 05 00 DF BF C0 58 A6 00 00 50 [00:17:39]Write i2c OK [00:17:39]MH_I2C_Read... [00:17:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:17:39]Read from MH i2c: E2 [00:17:39]MH_I2C_Read... [00:17:39]Read from MH i2c: E2 03 00 [00:17:39]MH_I2C_Read... [00:17:39]Read from MH i2c: E2 03 00 11 5F 00 90 00 E4 [00:17:39]RAPDU: 90 00 [00:17:39]wFMCommunicate OK [00:17:39]wFMCommunicate request_size=4 [00:17:39]MH_SAM_APDU [00:17:39]CAPDU: 80 0D 03 02 [00:17:39]Write to MH i2c: E2 08 00 12 5F 80 0D 03 02 00 00 00 00 EC [00:17:39]Write i2c OK [00:17:39]MH_I2C_Read... [00:17:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:17:39]Read from MH i2c: E2 [00:17:39]MH_I2C_Read... [00:17:39]Read from MH i2c: E2 0B 00 [00:17:39]MH_I2C_Read... [00:17:39]Read from MH i2c: E2 0B 00 12 5F 00 15 CD 7E 8A 29 73 8D C4 90 00 C4 [00:17:39]RAPDU: 15 CD 7E 8A 29 73 8D C4 90 00 [00:17:39]wFMCommunicate OK [00:17:39]SAM_PROTO_SignData done [00:17:39]FM_MakeSignedData done [00:17:39]CreateOFDProtocolMessage [00:17:39]wFMCommunicate request_size=4 [00:17:39]MH_SAM_APDU [00:17:39]CAPDU: 80 11 00 00 [00:17:39]Write to MH i2c: E2 08 00 13 5F 80 11 00 00 00 00 00 00 EC [00:17:39]Write i2c OK [00:17:39]MH_I2C_Read... [00:17:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:17:39]Read from MH i2c: E2 [00:17:39]MH_I2C_Read... [00:17:39]Read from MH i2c: E2 17 00 [00:17:39]MH_I2C_Read... [00:17:39]Read from MH i2c: E2 17 00 13 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 4A [00:17:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [00:17:39]wFMCommunicate OK [00:17:39]CreateOFDProtocolMessage done [00:17:39]OFDSenderStorePacket 123405 [00:17:39]StoreOFDPacket docnum=123405 [00:17:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 66 67 07 01 02 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 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 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 27 13 E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 0D E2 01 00 35 04 06 00 19 DF BF C0 58 A6 15 CD 7E 8A 29 73 8D C4 [00:17:39]CheckFolder [00:17:39]dirname=/storage/ofd_packets [00:17:39]CheckFolder done [00:17:39]ProducePacketName [00:17:39]name=ofd_packets/00123405 [00:17:39]NVStorageSaveData ofd_packets/00123405 [00:17:39]File name is /storage/ofd_packets/00123405 [00:17:39]Write 301 bytes [00:17:39]NVStorageSaveData done [00:17:39]OFDSenderStorePacket done [00:17:39]KKMCreateOFDPacket done [00:17:39]NVStorageSaveData kkm_last_timestamp [00:17:39]File name is /storage/kkm_last_timestamp [00:17:39]Write 4 bytes [00:17:39]NVStorageSaveData done [00:17:39]ExternCall_PrintAddStr [00:17:39]wPrintStart [00:17:39]Write to MH i2c: 01 00 00 14 5F 73 [00:17:39]Write i2c OK [00:17:39]MH_I2C_Read... [00:17:39]Read from MH i2c: 01 [00:17:39]MH_I2C_Read... [00:17:39]Read from MH i2c: 01 07 00 [00:17:39]MH_I2C_Read... [00:17:39]Read from MH i2c: 01 07 00 14 5F 00 00 00 00 00 FF 0F 88 [00:17:39]RasterBufferAndPrint [00:17:39]line Счет N : (1)1106391 [00:17:39]line ИНН: 02508201610067 [00:17:39]line Контрольно-Кассовый Чек [00:17:39]line ПРОДАЖА [00:17:39]line ТРК (МРК, ГНК) : 52 [00:17:39]line Товар: 2710124130 [00:17:39]line Аи-92-К-5 [00:17:39]line 16.160 * 61.90 [00:17:39]line = 1000.30 [00:17:39]line НДС 12% НСП 1% [00:17:39]line > о реализуемом товаре [00:17:39]line ИТОГО: 1000.30 [00:17:39]line НСП 1% : 8.85 [00:17:39]line НДС 12% : 106.23 [00:17:39]line Наличными: 0.00 [00:17:39]line Безнал.: 1000.30 [00:17:39]line Место: АЗС № 25 "Партнер Нефть" [00:17:39]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [00:17:39]line СНО: Общий режим [00:17:39]line Чек 5 04.03.2024 00:17 [00:17:39]line Смена: 324 ФФД: 1.0 [00:17:39]line ЗНМ: 0300000019 [00:17:39]line РНМ: 0000000000090573 [00:17:39]line Версия ККМ: 001 [00:17:39]line Платежная система: Бакай Банк [00:17:39]line ФМ: 0000000000874798 [00:17:39]line ФД: 123405 [00:17:39]line ФПД: 28448785455270 [00:17:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240304T001743&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123405&fm=28448785455270&tin=02508201610067®Number=0000000000090573&sum=100030 [00:17:40]OFD Sender: Processing packet 123405 [packets to send 112, broken 111] [00:17:40]ProducePacketName [00:17:40]name=ofd_packets/00123405 [00:17:40]OFD Sender: To server: pG, [00:17:40]CommunicateWithHost lk.salyk.kg:30040 [00:17:40]ConnectInit lk.salyk.kg [00:17:40]written 0, free lines is 4095 [00:17:40]Connected sock=11 [00:17: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 37 39 38 0F 01 00 00 66 67 07 01 02 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 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 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 27 13 E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 0D E2 01 00 35 04 06 00 19 DF BF C0 58 A6 15 CD 7E 8A 29 73 8D C4 [00:17:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 81 DF 47 00 EF 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 37 39 38 10 04 04 00 0D E2 01 00 F4 03 04 00 52 BF E4 65 B6 04 01 00 00 46 FE 18 12 AF F1 A8 E3 [00:17:40]CommunicateWithHost err = 0 [00:17:40]CheckOFDResponse [00:17:40]1017 (14) - 77093643461234 [00:17:40]1041 (16) - 0000000000874798 [00:17:40]1040 (4) - 123405 [00:17:40]1012 (4) - 03.03.2024 18:20 [00:17:40]1206 (1) - 0 [00:17:40]OFD Sender: Remove packet 123405 [00:17:40]ProducePacketName [00:17:40]name=ofd_packets/00123405 [00:17:40]NVStorageDeleteData [00:17:40]Write to MH i2c: 01 00 00 3E 5F 9D [00:17:40]Write i2c OK [00:17:40]MH_I2C_Read... [00:17:40]Read from MH i2c: 01 [00:17:40]MH_I2C_Read... [00:17:40]Read from MH i2c: 01 07 00 [00:17:40]MH_I2C_Read... [00:17:40]Read from MH i2c: 01 07 00 3E 5F 00 00 00 00 00 FB 0C AB [00:17:40]RasterBufferAndPrint [00:17:40]line [00:17:40]line [00:17:40]line [00:17:40]line [00:17:40]line [00:17:40]written 0, free lines is 3329 [00:17:40]MH_Cut [00:17:40]Write to MH i2c: D1 01 00 45 5F 01 76 [00:17:40]Write i2c OK [00:17:40]MH_I2C_Read... [00:17:40]Read from MH i2c: D1 [00:17:40]MH_I2C_Read... [00:17:40]Read from MH i2c: D1 01 00 [00:17:40]MH_I2C_Read... [00:17:40]Read from MH i2c: D1 01 00 45 5F 00 75 [00:17:40]Write to MH i2c: 01 00 00 46 5F A5 [00:17:40]Write i2c OK [00:17:40]MH_I2C_Read... [00:17:40]OFD Sender: No OFD packet to send [00:17:41]*** Cut start [00:17:41]*** Purtial cut [00:17:41]*** Stage 1: CUTSNS_PIN = 1 [00:17:43]Read from MH i2c: 01 [00:17:43]MH_I2C_Read... [00:17:43]*** Stop cut motor [00:17:43]*** Cut end [00:17:43]Read from MH i2c: 01 07 00 [00:17:43]MH_I2C_Read... [00:17:43]Read from MH i2c: 01 07 00 46 5F 00 00 00 00 00 FF 0F BA [00:17:43]process_action close_receipt done [00:17:43]requested_data is exist [00:17:43]produce_requested_data [00:17:43]requested_item fm.sn is exist - process it [00:17:43]wFMCommunicate request_size=4 [00:17:43]MH_SAM_APDU [00:17:43]CAPDU: 80 11 00 00 [00:17:43]Write to MH i2c: E2 08 00 47 5F 80 11 00 00 00 00 00 00 20 [00:17:43]Write i2c OK [00:17:43]MH_I2C_Read... [00:17:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:17:43]Read from MH i2c: E2 [00:17:43]MH_I2C_Read... [00:17:43]Read from MH i2c: E2 17 00 [00:17:43]MH_I2C_Read... [00:17:43]Read from MH i2c: E2 17 00 47 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 7E [00:17:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [00:17:43]wFMCommunicate OK [00:17:43]requested_item fd.num is exist - process it [00:17:43]SAM_PROTO_GetFieldsCounters [00:17:43]wFMCommunicate request_size=4 [00:17:43]MH_SAM_APDU [00:17:43]CAPDU: 80 13 00 00 [00:17:43]Write to MH i2c: E2 08 00 48 5F 80 13 00 00 00 00 00 00 23 [00:17:43]Write i2c OK [00:17:43]MH_I2C_Read... [00:17:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:17:43]Read from MH i2c: E2 [00:17:43]MH_I2C_Read... [00:17:43]Read from MH i2c: E2 62 00 [00:17:43]MH_I2C_Read... [00:17:43]Read from MH i2c: E2 62 00 48 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 0D E2 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 92 [00:17: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 0D E2 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:17:43]wFMCommunicate OK [00:17:43]SAM_PROTO_GetFieldsCounters done [00:17:43]requested_item shift.num is exist - process it [00:17:43]requested_item shift.opened is exist - process it [00:17:43]req_shift_opened [00:17:43]FM_GetShiftState [00:17:43]SAM_PROTO_GetShiftState [00:17:43]wFMCommunicate request_size=4 [00:17:43]MH_SAM_APDU [00:17:43]CAPDU: 80 13 01 00 [00:17:43]Write to MH i2c: E2 08 00 49 5F 80 13 01 00 00 00 00 00 25 [00:17:43]Write i2c OK [00:17:43]MH_I2C_Read... [00:17:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:17:43]Read from MH i2c: E2 [00:17:43]MH_I2C_Read... [00:17:43]Read from MH i2c: E2 0E 00 [00:17:43]MH_I2C_Read... [00:17:43]Read from MH i2c: E2 0E 00 49 5F 00 09 00 01 B0 11 E5 65 00 00 00 00 90 00 3C [00:17:43]RAPDU: 09 00 01 B0 11 E5 65 00 00 00 00 90 00 [00:17:43]wFMCommunicate OK [00:17:43]SAM_PROTO_GetShiftState done [00:17:43]FM_GetShiftState done [00:17:43]req_shift_opened done [00:17:43]requested_item shift.open_date is exist - process it [00:17:43]req_shift_open_date [00:17:43]req_shift_open_date done [00:17:43]produce_requested_data done [00:17:43]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123405,"shift.num":324,"shift.opened":1,"shift.open_date":1709511088} [00:17:43]process_action_free close_receipt [00:17:43]json_value_free [00:17:43]json_value_free done [00:17:43]process_json_proto returns [00:17:43]Send response to host [00:17:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123405,"shift.num":324,"shift.opened":1,"shift.open_date":1709511088}}} [00:17:43]free response buf [00:17:43]execute_script done [00:17:43]execute_script returns [00:17:43]free content buf [00:17:43]Sock 9.Close socket [00:17:43]Sock 9.Thread stoped [00:17:45]OFD Sender: No OFD packet to send [00:17:50]OFD Sender: No OFD packet to send [00:17:55]OFD Sender: No OFD packet to send [00:18:00]OFD Sender: No OFD packet to send [00:18:05]OFD Sender: No OFD packet to send [00:18:10]OFD Sender: No OFD packet to send [00:18:15]OFD Sender: No OFD packet to send [00:18:20]OFD Sender: No OFD packet to send [00:18:25]OFD Sender: No OFD packet to send [00:18:30]accept exits with 7 [00:18:30]New connection [00:18:30]New thread 3067395428 created [00:18:30]Thread 3067252068 joined [00:18:30]Waiting for new connection... [00:18:30] Sock 7.Parse request [00:18:30]Sock 7.Check first char [00:18:30]Sock 7.First char is OK [00:18:30]request: POST /json_proto HTTP/1.0 [00:18:30]Method: POST [00:18:30]URL: /json_proto [00:18:30]Method is POST - this is cgi request [00:18:30]url: /json_proto [00:18:30]query_string will be loaded in cgi processing [00:18:30]execute_cgi json_proto POST (null) [00:18:30]execute_cgi path=json_proto method=POST [00:18:30]POST find Content-Length [00:18:30]Host: 172.17.48.197:8080 [00:18:30]Content-Length: 818 [00:18:30]Content-Type: application/json [00:18:30] [00:18:30]POST finish read [00:18:30]Found Content-Length = 818 [00:18:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106392", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 10.080, "sum" : 700.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 700.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:18:30]execute_script... [00:18:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106392", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 10.080, "sum" : 700.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 700.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:18:30]POST & json_proto [00:18:30]process_json_proto [00:18:30]json parsed OK: [00:18:30]protocol is kg_v1.0 [00:18:30]action value=close_receipt [00:18:30]process_action close_receipt [00:18:30]cmd_close_receipt [00:18:30]MH_GetDate [00:18:30]Write to MH i2c: F0 00 00 4A 5F 98 [00:18:30]Write i2c OK [00:18:30]MH_I2C_Read... [00:18:30]Read from MH i2c: F0 [00:18:30]MH_I2C_Read... [00:18:30]Read from MH i2c: F0 09 00 [00:18:30]MH_I2C_Read... [00:18:30]Read from MH i2c: F0 09 00 4A 5F 00 5C 13 E5 65 6C AF E3 65 BD [00:18:30]GetLastDocTimeStamp 1709511463 [00:18:30]current date 1709511516 [00:18:30]FM_GetShiftState [00:18:30]SAM_PROTO_GetShiftState [00:18:30]wFMCommunicate request_size=4 [00:18:30]MH_SAM_APDU [00:18:30]CAPDU: 80 13 01 00 [00:18:30]Write to MH i2c: E2 08 00 4B 5F 80 13 01 00 00 00 00 00 27 [00:18:30]Write i2c OK [00:18:30]MH_I2C_Read... [00:18:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:18:30]Read from MH i2c: E2 [00:18:30]MH_I2C_Read... [00:18:30]Read from MH i2c: E2 0E 00 [00:18:30]MH_I2C_Read... [00:18:30]Read from MH i2c: E2 0E 00 4B 5F 00 09 00 01 B0 11 E5 65 00 00 00 00 90 00 3E [00:18:30]RAPDU: 09 00 01 B0 11 E5 65 00 00 00 00 90 00 [00:18:30]wFMCommunicate OK [00:18:30]SAM_PROTO_GetShiftState done [00:18:30]FM_GetShiftState done [00:18:30]opened in 1709511088 [00:18:30]opened+sec_in_day 1709597488 [00:18:30]quantity*price = 70056 [00:18:30]sum+1 = 70057 [00:18:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.56 НСП 1% : 6.20 НДС 12% : 74.40 Наличными: 0.00 Безнал.: 700.56 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 6 04.03.2024 00:18 Смена: 324 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874798 ФД: 123406 ФПД: 207959828069313 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240304T001836&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123406&fm=207959828069313&tin=02508201610067®Number=0000000000090573&sum=70056 [00:18:31]StoreToDocumentArchive [00:18:31]shift 324 fd 123406 [00:18:31]save to /storage/0324/doc_00123406 [00:18:31]save last doc name /storage/0324/doc_00123406 to /storage/kkm_last_doc_name [00:18:31]save OK [00:18:31]Clear old archive folders... [00:18:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:18:31]tlvbuf is 00DFC4E0 [00:18:31]SAM_PROTO_ClearQueue [00:18:31]wFMCommunicate request_size=4 [00:18:31]MH_SAM_APDU [00:18:31]CAPDU: 80 09 00 00 [00:18:31]Write to MH i2c: E2 08 00 58 5F 80 09 00 00 00 00 00 00 29 [00:18:31]Write i2c OK [00:18:31]MH_I2C_Read... [00:18:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:18:31]Read from MH i2c: E2 [00:18:31]MH_I2C_Read... [00:18:31]Read from MH i2c: E2 03 00 [00:18:31]MH_I2C_Read... [00:18:31]Read from MH i2c: E2 03 00 58 5F 00 90 00 2B [00:18:31]RAPDU: 90 00 [00:18:31]wFMCommunicate OK [00:18:31]SAM_PROTO_ClearQueue done [00:18:31]KKMCreateOFDPacket [00:18:31]OFDProtocolAddRootSTLVToBuf [00:18:31]FM_MakeSignedData [00:18:31]FM_MakeSignedData [00:18:31]SAM_PROTO_SignData [00:18:31]wFMCommunicate request_size=4 [00:18:31]MH_SAM_APDU [00:18:31]CAPDU: 80 0D 01 02 [00:18:31]Write to MH i2c: E2 08 00 59 5F 80 0D 01 02 00 00 00 00 31 [00:18:31]Write i2c OK [00:18:31]MH_I2C_Read... [00:18:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:18:31]Read from MH i2c: E2 [00:18:31]MH_I2C_Read... [00:18:31]Read from MH i2c: E2 03 00 [00:18:31]MH_I2C_Read... [00:18:31]Read from MH i2c: E2 03 00 59 5F 00 90 00 2C [00:18:31]RAPDU: 90 00 [00:18:31]wFMCommunicate OK [00:18:31]wFMCommunicate request_size=255 [00:18:31]MH_SAM_APDU [00:18: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 60 27 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 A8 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 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 10 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 5C 13 E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 0E E2 01 00 35 04 06 00 BD [00:18:31]Write to MH i2c: E2 02 01 5A 5F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 60 27 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 A8 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 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 10 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 5C 13 E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 0E E2 01 00 35 04 06 00 BD 00 00 8C [00:18:31]Write i2c OK [00:18:31]MH_I2C_Read... [00:18:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:18:31]Read from MH i2c: E2 [00:18:31]MH_I2C_Read... [00:18:31]Read from MH i2c: E2 03 00 [00:18:31]MH_I2C_Read... [00:18:31]Read from MH i2c: E2 03 00 5A 5F 00 90 00 2D [00:18:31]RAPDU: 90 00 [00:18:31]wFMCommunicate OK [00:18:31]wFMCommunicate request_size=10 [00:18:31]MH_SAM_APDU [00:18:31]CAPDU: 80 0D 02 02 05 23 6B AD FB C1 [00:18:31]Write to MH i2c: E2 0D 00 5B 5F 80 0D 02 02 05 00 23 6B AD FB C1 00 00 35 [00:18:31]Write i2c OK [00:18:31]MH_I2C_Read... [00:18:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:18:31]Read from MH i2c: E2 [00:18:31]MH_I2C_Read... [00:18:31]Read from MH i2c: E2 03 00 [00:18:31]MH_I2C_Read... [00:18:31]Read from MH i2c: E2 03 00 5B 5F 00 90 00 2E [00:18:31]RAPDU: 90 00 [00:18:31]wFMCommunicate OK [00:18:31]wFMCommunicate request_size=4 [00:18:31]MH_SAM_APDU [00:18:31]CAPDU: 80 0D 03 02 [00:18:31]Write to MH i2c: E2 08 00 5C 5F 80 0D 03 02 00 00 00 00 36 [00:18:31]Write i2c OK [00:18:31]MH_I2C_Read... [00:18:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:18:31]Read from MH i2c: E2 [00:18:31]MH_I2C_Read... [00:18:31]Read from MH i2c: E2 0B 00 [00:18:31]MH_I2C_Read... [00:18:31]Read from MH i2c: E2 0B 00 5C 5F 00 D4 15 F6 4F 29 40 2E 46 90 00 42 [00:18:31]RAPDU: D4 15 F6 4F 29 40 2E 46 90 00 [00:18:31]wFMCommunicate OK [00:18:31]SAM_PROTO_SignData done [00:18:31]FM_MakeSignedData done [00:18:31]CreateOFDProtocolMessage [00:18:31]wFMCommunicate request_size=4 [00:18:31]MH_SAM_APDU [00:18:31]CAPDU: 80 11 00 00 [00:18:31]Write to MH i2c: E2 08 00 5D 5F 80 11 00 00 00 00 00 00 36 [00:18:31]Write i2c OK [00:18:31]MH_I2C_Read... [00:18:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:18:31]Read from MH i2c: E2 [00:18:31]MH_I2C_Read... [00:18:31]Read from MH i2c: E2 17 00 [00:18:31]MH_I2C_Read... [00:18:31]Read from MH i2c: E2 17 00 5D 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 94 [00:18:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [00:18:31]wFMCommunicate OK [00:18:31]CreateOFDProtocolMessage done [00:18:31]OFDSenderStorePacket 123406 [00:18:31]StoreOFDPacket docnum=123406 [00:18:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 AC 4A 07 01 29 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 60 27 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 A8 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 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 10 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 5C 13 E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 0E E2 01 00 35 04 06 00 BD 23 6B AD FB C1 D4 15 F6 4F 29 40 2E 46 [00:18:31]CheckFolder [00:18:31]dirname=/storage/ofd_packets [00:18:31]CheckFolder done [00:18:31]ProducePacketName [00:18:31]name=ofd_packets/00123406 [00:18:31]NVStorageSaveData ofd_packets/00123406 [00:18:31]File name is /storage/ofd_packets/00123406 [00:18:31]Write 301 bytes [00:18:31]NVStorageSaveData done [00:18:31]OFDSenderStorePacket done [00:18:31]KKMCreateOFDPacket done [00:18:31]NVStorageSaveData kkm_last_timestamp [00:18:31]File name is /storage/kkm_last_timestamp [00:18:31]Write 4 bytes [00:18:31]NVStorageSaveData done [00:18:31]ExternCall_PrintAddStr [00:18:31]wPrintStart [00:18:31]Write to MH i2c: 01 00 00 5E 5F BD [00:18:31]Write i2c OK [00:18:31]MH_I2C_Read... [00:18:31]Read from MH i2c: 01 [00:18:31]MH_I2C_Read... [00:18:31]Read from MH i2c: 01 07 00 [00:18:31]MH_I2C_Read... [00:18:31]Read from MH i2c: 01 07 00 5E 5F 00 00 00 00 00 FF 0F D2 [00:18:31]RasterBufferAndPrint [00:18:31]line Счет N : (1)1106392 [00:18:31]line ИНН: 02508201610067 [00:18:31]line Контрольно-Кассовый Чек [00:18:31]line ПРОДАЖА [00:18:31]line ТРК (МРК, ГНК) : 23 [00:18:31]line Товар: 2710124500 [00:18:31]line Аи-95-К-5 [00:18:31]line 10.080 * 69.50 [00:18:31]line = 700.56 [00:18:31]line НДС 12% НСП 1% [00:18:31]line > о реализуемом товаре [00:18:31]line ИТОГО: 700.56 [00:18:31]line НСП 1% : 6.20 [00:18:31]line НДС 12% : 74.40 [00:18:31]line Наличными: 0.00 [00:18:31]line Безнал.: 700.56 [00:18:31]line Место: АЗС № 25 "Партнер Нефть" [00:18:31]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [00:18:31]line СНО: Общий режим [00:18:31]line Чек 6 04.03.2024 00:18 [00:18:31]line Смена: 324 ФФД: 1.0 [00:18:31]line ЗНМ: 0300000019 [00:18:31]line РНМ: 0000000000090573 [00:18:31]line Версия ККМ: 001 [00:18:31]line Платежная система: Бакай Банк [00:18:31]line ФМ: 0000000000874798 [00:18:31]line ФД: 123406 [00:18:31]line ФПД: 207959828069313 [00:18:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240304T001836&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123406&fm=207959828069313&tin=02508201610067®Number=0000000000090573&sum=70056 [00:18:32]OFD Sender: Processing packet 123406 [packets to send 112, broken 111] [00:18:32]ProducePacketName [00:18:32]name=ofd_packets/00123406 [00:18:32]OFD Sender: To server: pG, [00:18:32]CommunicateWithHost lk.salyk.kg:30040 [00:18:32]ConnectInit lk.salyk.kg [00:18:32]written 0, free lines is 4095 [00:18:32]Connected sock=10 [00:18:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 AC 4A 07 01 29 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 60 27 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 A8 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 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 10 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 5C 13 E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 0E E2 01 00 35 04 06 00 BD 23 6B AD FB C1 D4 15 F6 4F 29 40 2E 46 [00:18:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 EB 64 47 00 02 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 37 39 38 10 04 04 00 0E E2 01 00 F4 03 04 00 86 BF E4 65 B6 04 01 00 00 F2 5F D3 8E 0F E8 25 51 [00:18:32]CommunicateWithHost err = 0 [00:18:32]CheckOFDResponse [00:18:32]1017 (14) - 77093643461234 [00:18:32]1041 (16) - 0000000000874798 [00:18:32]1040 (4) - 123406 [00:18:32]1012 (4) - 03.03.2024 18:20 [00:18:32]1206 (1) - 0 [00:18:32]OFD Sender: Remove packet 123406 [00:18:32]ProducePacketName [00:18:32]name=ofd_packets/00123406 [00:18:32]NVStorageDeleteData [00:18:32]Write to MH i2c: 01 00 00 88 5F E7 [00:18:32]Write i2c OK [00:18:32]MH_I2C_Read... [00:18:32]Read from MH i2c: 01 [00:18:32]MH_I2C_Read... [00:18:32]Read from MH i2c: 01 07 00 [00:18:32]MH_I2C_Read... [00:18:32]Read from MH i2c: 01 07 00 88 5F 00 00 00 00 00 F5 0C EF [00:18:32]RasterBufferAndPrint [00:18:32]line [00:18:32]line [00:18:32]line [00:18:32]line [00:18:32]line [00:18:32]written 0, free lines is 3323 [00:18:32]MH_Cut [00:18:32]Write to MH i2c: D1 01 00 8F 5F 01 C0 [00:18:32]Write i2c OK [00:18:32]MH_I2C_Read... [00:18:32]Read from MH i2c: D1 [00:18:32]MH_I2C_Read... [00:18:32]Read from MH i2c: D1 01 00 [00:18:32]MH_I2C_Read... [00:18:32]Read from MH i2c: D1 01 00 8F 5F 00 BF [00:18:32]Write to MH i2c: 01 00 00 90 5F EF [00:18:32]Write i2c OK [00:18:32]MH_I2C_Read... [00:18:32]OFD Sender: No OFD packet to send [00:18:33]*** Cut start [00:18:33]*** Purtial cut [00:18:33]*** Stage 1: CUTSNS_PIN = 1 [00:18:35]Read from MH i2c: 01 [00:18:35]MH_I2C_Read... [00:18:35]*** Stop cut motor [00:18:35]*** Cut end [00:18:35]Read from MH i2c: 01 07 00 [00:18:35]MH_I2C_Read... [00:18:35]Read from MH i2c: 01 07 00 90 5F 00 00 00 00 00 FF 0F 04 [00:18:35]process_action close_receipt done [00:18:35]requested_data is exist [00:18:35]produce_requested_data [00:18:35]requested_item fm.sn is exist - process it [00:18:35]wFMCommunicate request_size=4 [00:18:35]MH_SAM_APDU [00:18:35]CAPDU: 80 11 00 00 [00:18:35]Write to MH i2c: E2 08 00 91 5F 80 11 00 00 00 00 00 00 6A [00:18:35]Write i2c OK [00:18:35]MH_I2C_Read... [00:18:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:18:35]Read from MH i2c: E2 [00:18:35]MH_I2C_Read... [00:18:35]Read from MH i2c: E2 17 00 [00:18:35]MH_I2C_Read... [00:18:35]Read from MH i2c: E2 17 00 91 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 C8 [00:18:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [00:18:35]wFMCommunicate OK [00:18:35]requested_item fd.num is exist - process it [00:18:35]SAM_PROTO_GetFieldsCounters [00:18:35]wFMCommunicate request_size=4 [00:18:35]MH_SAM_APDU [00:18:35]CAPDU: 80 13 00 00 [00:18:35]Write to MH i2c: E2 08 00 92 5F 80 13 00 00 00 00 00 00 6D [00:18:35]Write i2c OK [00:18:35]MH_I2C_Read... [00:18:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:18:35]Read from MH i2c: E2 [00:18:35]MH_I2C_Read... [00:18:35]Read from MH i2c: E2 62 00 [00:18:35]MH_I2C_Read... [00:18:35]Read from MH i2c: E2 62 00 92 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 0E E2 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 E0 [00:18:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 0E E2 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:18:35]wFMCommunicate OK [00:18:35]SAM_PROTO_GetFieldsCounters done [00:18:35]requested_item shift.num is exist - process it [00:18:35]requested_item shift.opened is exist - process it [00:18:35]req_shift_opened [00:18:35]FM_GetShiftState [00:18:35]SAM_PROTO_GetShiftState [00:18:35]wFMCommunicate request_size=4 [00:18:35]MH_SAM_APDU [00:18:35]CAPDU: 80 13 01 00 [00:18:35]Write to MH i2c: E2 08 00 93 5F 80 13 01 00 00 00 00 00 6F [00:18:35]Write i2c OK [00:18:35]MH_I2C_Read... [00:18:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:18:35]Read from MH i2c: E2 [00:18:35]MH_I2C_Read... [00:18:35]Read from MH i2c: E2 0E 00 [00:18:35]MH_I2C_Read... [00:18:35]Read from MH i2c: E2 0E 00 93 5F 00 09 00 01 B0 11 E5 65 00 00 00 00 90 00 86 [00:18:35]RAPDU: 09 00 01 B0 11 E5 65 00 00 00 00 90 00 [00:18:35]wFMCommunicate OK [00:18:35]SAM_PROTO_GetShiftState done [00:18:35]FM_GetShiftState done [00:18:35]req_shift_opened done [00:18:35]requested_item shift.open_date is exist - process it [00:18:35]req_shift_open_date [00:18:35]req_shift_open_date done [00:18:35]produce_requested_data done [00:18:35]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123406,"shift.num":324,"shift.opened":1,"shift.open_date":1709511088} [00:18:35]process_action_free close_receipt [00:18:35]json_value_free [00:18:35]json_value_free done [00:18:35]process_json_proto returns [00:18:35]Send response to host [00:18:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123406,"shift.num":324,"shift.opened":1,"shift.open_date":1709511088}}} [00:18:35]free response buf [00:18:35]execute_script done [00:18:35]execute_script returns [00:18:35]free content buf [00:18:35]Sock 7.Close socket [00:18:35]Sock 7.Thread stoped [00:18:37]OFD Sender: No OFD packet to send [00:18:42]OFD Sender: No OFD packet to send [00:18:48]OFD Sender: No OFD packet to send [00:18:53]OFD Sender: No OFD packet to send [00:18:58]OFD Sender: No OFD packet to send [00:19:03]OFD Sender: No OFD packet to send [00:19:08]OFD Sender: No OFD packet to send [00:19:13]OFD Sender: No OFD packet to send [00:19:18]OFD Sender: No OFD packet to send [00:19:23]OFD Sender: No OFD packet to send [00:19:28]OFD Sender: No OFD packet to send [00:19:33]OFD Sender: No OFD packet to send [00:19:38]OFD Sender: No OFD packet to send [00:19:43]OFD Sender: No OFD packet to send [00:19:48]OFD Sender: No OFD packet to send [00:19:53]OFD Sender: No OFD packet to send [00:19:58]OFD Sender: No OFD packet to send [00:20:03]OFD Sender: No OFD packet to send [00:20:08]OFD Sender: No OFD packet to send [00:20:13]OFD Sender: No OFD packet to send [00:20:18]OFD Sender: No OFD packet to send [00:20:23]OFD Sender: No OFD packet to send [00:20:28]OFD Sender: No OFD packet to send [00:20:33]OFD Sender: No OFD packet to send [00:20:38]OFD Sender: No OFD packet to send [00:20:43]OFD Sender: No OFD packet to send [00:20:48]OFD Sender: No OFD packet to send [00:20:53]OFD Sender: No OFD packet to send [00:20:58]OFD Sender: No OFD packet to send [00:21:03]OFD Sender: No OFD packet to send [00:21:08]OFD Sender: No OFD packet to send [00:21:13]OFD Sender: No OFD packet to send [00:21:18]OFD Sender: No OFD packet to send [00:21:23]OFD Sender: No OFD packet to send [00:21:28]OFD Sender: No OFD packet to send [00:21:33]OFD Sender: No OFD packet to send [00:21:38]OFD Sender: No OFD packet to send [00:21:43]OFD Sender: No OFD packet to send [00:21:48]OFD Sender: No OFD packet to send [00:21:53]OFD Sender: No OFD packet to send [00:21:58]OFD Sender: No OFD packet to send [00:22:03]OFD Sender: No OFD packet to send [00:22:08]OFD Sender: No OFD packet to send [00:22:13]OFD Sender: No OFD packet to send [00:22:18]OFD Sender: No OFD packet to send [00:22:23]OFD Sender: No OFD packet to send [00:22:28]OFD Sender: No OFD packet to send [00:22:33]OFD Sender: No OFD packet to send [00:22:38]OFD Sender: No OFD packet to send [00:22:43]OFD Sender: No OFD packet to send [00:22:48]OFD Sender: No OFD packet to send [00:22:53]OFD Sender: No OFD packet to send [00:22:58]OFD Sender: No OFD packet to send [00:23:03]OFD Sender: No OFD packet to send [00:23:08]OFD Sender: No OFD packet to send [00:23:13]OFD Sender: No OFD packet to send [00:23:18]OFD Sender: No OFD packet to send [00:23:23]OFD Sender: No OFD packet to send [00:23:28]OFD Sender: No OFD packet to send [00:23:33]OFD Sender: No OFD packet to send [00:23:38]OFD Sender: No OFD packet to send [00:23:43]OFD Sender: No OFD packet to send [00:23:48]OFD Sender: No OFD packet to send [00:23:53]OFD Sender: No OFD packet to send [00:23:58]OFD Sender: No OFD packet to send [00:24:03]OFD Sender: No OFD packet to send [00:24:08]OFD Sender: No OFD packet to send [00:24:13]OFD Sender: No OFD packet to send [00:24:18]OFD Sender: No OFD packet to send [00:24:23]OFD Sender: No OFD packet to send [00:24:28]OFD Sender: No OFD packet to send [00:24:33]OFD Sender: No OFD packet to send [00:24:38]OFD Sender: No OFD packet to send [00:24:43]OFD Sender: No OFD packet to send [00:24:48]OFD Sender: No OFD packet to send [00:24:53]OFD Sender: No OFD packet to send [00:24:58]OFD Sender: No OFD packet to send [00:25:03]OFD Sender: No OFD packet to send [00:25:08]OFD Sender: No OFD packet to send [00:25:13]OFD Sender: No OFD packet to send [00:25:18]OFD Sender: No OFD packet to send [00:25:23]OFD Sender: No OFD packet to send [00:25:28]OFD Sender: No OFD packet to send [00:25:33]OFD Sender: No OFD packet to send [00:25:38]OFD Sender: No OFD packet to send [00:25:43]OFD Sender: No OFD packet to send [00:25:48]OFD Sender: No OFD packet to send [00:25:53]OFD Sender: No OFD packet to send [00:25:58]OFD Sender: No OFD packet to send [00:26:03]OFD Sender: No OFD packet to send [00:26:08]OFD Sender: No OFD packet to send [00:26:13]OFD Sender: No OFD packet to send [00:26:18]OFD Sender: No OFD packet to send [00:26:23]OFD Sender: No OFD packet to send [00:26:28]OFD Sender: No OFD packet to send [00:26:33]OFD Sender: No OFD packet to send [00:26:38]OFD Sender: No OFD packet to send [00:26:43]OFD Sender: No OFD packet to send [00:26:48]OFD Sender: No OFD packet to send [00:26:53]OFD Sender: No OFD packet to send [00:26:58]OFD Sender: No OFD packet to send [00:27:03]OFD Sender: No OFD packet to send [00:27:08]OFD Sender: No OFD packet to send [00:27:13]OFD Sender: No OFD packet to send [00:27:18]OFD Sender: No OFD packet to send [00:27:23]OFD Sender: No OFD packet to send [00:27:28]OFD Sender: No OFD packet to send [00:27:33]OFD Sender: No OFD packet to send [00:27:38]OFD Sender: No OFD packet to send [00:27:43]OFD Sender: No OFD packet to send [00:27:48]OFD Sender: No OFD packet to send [00:27:53]OFD Sender: No OFD packet to send [00:27:58]OFD Sender: No OFD packet to send [00:28:03]OFD Sender: No OFD packet to send [00:28:08]OFD Sender: No OFD packet to send [00:28:13]OFD Sender: No OFD packet to send [00:28:18]OFD Sender: No OFD packet to send [00:28:23]OFD Sender: No OFD packet to send [00:28:28]OFD Sender: No OFD packet to send [00:28:33]OFD Sender: No OFD packet to send [00:28:38]OFD Sender: No OFD packet to send [00:28:43]OFD Sender: No OFD packet to send [00:28:48]OFD Sender: No OFD packet to send [00:28:53]OFD Sender: No OFD packet to send [00:28:58]OFD Sender: No OFD packet to send [00:29:03]OFD Sender: No OFD packet to send [00:29:08]OFD Sender: No OFD packet to send [00:29:13]OFD Sender: No OFD packet to send [00:29:18]OFD Sender: No OFD packet to send [00:29:23]OFD Sender: No OFD packet to send [00:29:28]OFD Sender: No OFD packet to send [00:29:33]OFD Sender: No OFD packet to send [00:29:38]OFD Sender: No OFD packet to send [00:29:43]OFD Sender: No OFD packet to send [00:29:48]OFD Sender: No OFD packet to send [00:29:53]OFD Sender: No OFD packet to send [00:29:58]OFD Sender: No OFD packet to send [00:30:03]OFD Sender: No OFD packet to send [00:30:08]OFD Sender: No OFD packet to send [00:30:13]OFD Sender: No OFD packet to send [00:30:18]OFD Sender: No OFD packet to send [00:30:23]OFD Sender: No OFD packet to send [00:30:28]OFD Sender: No OFD packet to send [00:30:33]OFD Sender: No OFD packet to send [00:30:38]OFD Sender: No OFD packet to send [00:30:43]OFD Sender: No OFD packet to send [00:30:48]OFD Sender: No OFD packet to send [00:30:53]OFD Sender: No OFD packet to send [00:30:58]OFD Sender: No OFD packet to send [00:31:03]OFD Sender: No OFD packet to send [00:31:08]OFD Sender: No OFD packet to send [00:31:13]OFD Sender: No OFD packet to send [00:31:18]OFD Sender: No OFD packet to send [00:31:23]OFD Sender: No OFD packet to send [00:31:28]OFD Sender: No OFD packet to send [00:31:33]OFD Sender: No OFD packet to send [00:31:38]OFD Sender: No OFD packet to send [00:31:43]OFD Sender: No OFD packet to send [00:31:48]OFD Sender: No OFD packet to send [00:31:53]OFD Sender: No OFD packet to send [00:31:58]OFD Sender: No OFD packet to send [00:32:03]OFD Sender: No OFD packet to send [00:32:08]OFD Sender: No OFD packet to send [00:32:09]accept exits with 9 [00:32:09]New connection [00:32:09]New thread 3067252068 created [00:32:09]Thread 3067395428 joined [00:32:09]Waiting for new connection... [00:32:09] Sock 9.Parse request [00:32:09]Sock 9.Check first char [00:32:09]Sock 9.First char is OK [00:32:09]request: POST /json_proto HTTP/1.0 [00:32:09]Method: POST [00:32:09]URL: /json_proto [00:32:09]Method is POST - this is cgi request [00:32:09]url: /json_proto [00:32:09]query_string will be loaded in cgi processing [00:32:09]execute_cgi json_proto POST (null) [00:32:09]execute_cgi path=json_proto method=POST [00:32:09]POST find Content-Length [00:32:09]Host: 172.17.48.197:8080 [00:32:09]Content-Length: 683 [00:32:09]Content-Type: application/json [00:32:09] [00:32:09]POST finish read [00:32:09]Found Content-Length = 683 [00:32:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106393", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 26.750, "sum" : 1859.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1859.00, "total" : 1859.00, "payments": [ { "type": 0, "sum" : 1859.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:32:09]execute_script... [00:32: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)1106393", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 26.750, "sum" : 1859.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1859.00, "total" : 1859.00, "payments": [ { "type": 0, "sum" : 1859.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:32:09]POST & json_proto [00:32:09]process_json_proto [00:32:09]json parsed OK: [00:32:09]protocol is kg_v1.0 [00:32:09]action value=close_receipt [00:32:09]process_action close_receipt [00:32:09]cmd_close_receipt [00:32:09]MH_GetDate [00:32:09]Write to MH i2c: F0 00 00 94 5F E2 [00:32:09]Write i2c OK [00:32:09]MH_I2C_Read... [00:32:09]Read from MH i2c: F0 [00:32:09]MH_I2C_Read... [00:32:09]Read from MH i2c: F0 09 00 [00:32:09]MH_I2C_Read... [00:32:09]Read from MH i2c: F0 09 00 94 5F 00 8F 16 E5 65 6C AF E3 65 3D [00:32:09]GetLastDocTimeStamp 1709511516 [00:32:09]current date 1709512335 [00:32:09]FM_GetShiftState [00:32:09]SAM_PROTO_GetShiftState [00:32:09]wFMCommunicate request_size=4 [00:32:09]MH_SAM_APDU [00:32:09]CAPDU: 80 13 01 00 [00:32:09]Write to MH i2c: E2 08 00 95 5F 80 13 01 00 00 00 00 00 71 [00:32:09]Write i2c OK [00:32:09]MH_I2C_Read... [00:32:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:32:09]Read from MH i2c: E2 [00:32:09]MH_I2C_Read... [00:32:09]Read from MH i2c: E2 0E 00 [00:32:09]MH_I2C_Read... [00:32:09]Read from MH i2c: E2 0E 00 95 5F 00 09 00 01 B0 11 E5 65 00 00 00 00 90 00 88 [00:32:09]RAPDU: 09 00 01 B0 11 E5 65 00 00 00 00 90 00 [00:32:09]wFMCommunicate OK [00:32:09]SAM_PROTO_GetShiftState done [00:32:09]FM_GetShiftState done [00:32:09]opened in 1709511088 [00:32:09]opened+sec_in_day 1709597488 [00:32:09]quantity*price = 185912 [00:32:09]sum+1 = 185914 [00:32:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1859.00 Внесено: 1859.00 СДАЧА: 0.00 НСП 1% : 16.45 НДС 12% : 197.43 Наличными: 1859.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 7 04.03.2024 00:32 Смена: 324 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123407 ФПД: 10276911660426 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240304T003215&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123407&fm=10276911660426&tin=02508201610067®Number=0000000000090573&sum=185900 [00:32:11]StoreToDocumentArchive [00:32:11]shift 324 fd 123407 [00:32:11]save to /storage/0324/doc_00123407 [00:32:11]save last doc name /storage/0324/doc_00123407 to /storage/kkm_last_doc_name [00:32:11]save OK [00:32:11]Clear old archive folders... [00:32:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:32:11]tlvbuf is 00DC4D50 [00:32:11]SAM_PROTO_ClearQueue [00:32:11]wFMCommunicate request_size=4 [00:32:11]MH_SAM_APDU [00:32:11]CAPDU: 80 09 00 00 [00:32:11]Write to MH i2c: E2 08 00 A2 5F 80 09 00 00 00 00 00 00 73 [00:32:11]Write i2c OK [00:32:11]MH_I2C_Read... [00:32:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:32:11]Read from MH i2c: E2 [00:32:11]MH_I2C_Read... [00:32:11]Read from MH i2c: E2 03 00 [00:32:11]MH_I2C_Read... [00:32:11]Read from MH i2c: E2 03 00 A2 5F 00 90 00 75 [00:32:11]RAPDU: 90 00 [00:32:11]wFMCommunicate OK [00:32:11]SAM_PROTO_ClearQueue done [00:32:11]KKMCreateOFDPacket [00:32:11]OFDProtocolAddRootSTLVToBuf [00:32:11]FM_MakeSignedData [00:32:11]FM_MakeSignedData [00:32:11]SAM_PROTO_SignData [00:32:11]wFMCommunicate request_size=4 [00:32:11]MH_SAM_APDU [00:32:11]CAPDU: 80 0D 01 02 [00:32:11]Write to MH i2c: E2 08 00 A3 5F 80 0D 01 02 00 00 00 00 7B [00:32:11]Write i2c OK [00:32:11]MH_I2C_Read... [00:32:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:32:11]Read from MH i2c: E2 [00:32:11]MH_I2C_Read... [00:32:11]Read from MH i2c: E2 03 00 [00:32:11]MH_I2C_Read... [00:32:11]Read from MH i2c: E2 03 00 A3 5F 00 90 00 76 [00:32:11]RAPDU: 90 00 [00:32:11]wFMCommunicate OK [00:32:11]wFMCommunicate request_size=255 [00:32:11]MH_SAM_APDU [00:32:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7E 68 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 39 D6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C D6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 4D 00 00 00 00 07 04 06 00 2C D6 02 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 8F 16 E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 0F E2 01 00 35 04 06 00 09 [00:32:11]Write to MH i2c: E2 02 01 A4 5F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7E 68 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 39 D6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C D6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 4D 00 00 00 00 07 04 06 00 2C D6 02 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 8F 16 E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 0F E2 01 00 35 04 06 00 09 00 00 E8 [00:32:11]Write i2c OK [00:32:11]MH_I2C_Read... [00:32:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:32:11]Read from MH i2c: E2 [00:32:11]MH_I2C_Read... [00:32:11]Read from MH i2c: E2 03 00 [00:32:11]MH_I2C_Read... [00:32:11]Read from MH i2c: E2 03 00 A4 5F 00 90 00 77 [00:32:11]RAPDU: 90 00 [00:32:11]wFMCommunicate OK [00:32:11]wFMCommunicate request_size=10 [00:32:11]MH_SAM_APDU [00:32:11]CAPDU: 80 0D 02 02 05 58 C7 AB 3D 8A [00:32:11]Write to MH i2c: E2 0D 00 A5 5F 80 0D 02 02 05 00 58 C7 AB 3D 8A 00 00 19 [00:32:11]Write i2c OK [00:32:11]MH_I2C_Read... [00:32:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:32:11]Read from MH i2c: E2 [00:32:11]MH_I2C_Read... [00:32:11]Read from MH i2c: E2 03 00 [00:32:11]MH_I2C_Read... [00:32:11]Read from MH i2c: E2 03 00 A5 5F 00 90 00 78 [00:32:11]RAPDU: 90 00 [00:32:11]wFMCommunicate OK [00:32:11]wFMCommunicate request_size=4 [00:32:11]MH_SAM_APDU [00:32:11]CAPDU: 80 0D 03 02 [00:32:11]Write to MH i2c: E2 08 00 A6 5F 80 0D 03 02 00 00 00 00 80 [00:32:11]Write i2c OK [00:32:11]MH_I2C_Read... [00:32:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:32:11]Read from MH i2c: E2 [00:32:11]MH_I2C_Read... [00:32:11]Read from MH i2c: E2 0B 00 [00:32:11]MH_I2C_Read... [00:32:11]Read from MH i2c: E2 0B 00 A6 5F 00 09 C9 DE E4 CD 1E 35 80 90 00 B5 [00:32:11]RAPDU: 09 C9 DE E4 CD 1E 35 80 90 00 [00:32:11]wFMCommunicate OK [00:32:11]SAM_PROTO_SignData done [00:32:11]FM_MakeSignedData done [00:32:11]CreateOFDProtocolMessage [00:32:11]wFMCommunicate request_size=4 [00:32:11]MH_SAM_APDU [00:32:11]CAPDU: 80 11 00 00 [00:32:11]Write to MH i2c: E2 08 00 A7 5F 80 11 00 00 00 00 00 00 80 [00:32:11]Write i2c OK [00:32:11]MH_I2C_Read... [00:32:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:32:11]Read from MH i2c: E2 [00:32:11]MH_I2C_Read... [00:32:11]Read from MH i2c: E2 17 00 [00:32:11]MH_I2C_Read... [00:32:11]Read from MH i2c: E2 17 00 A7 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 DE [00:32:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [00:32:11]wFMCommunicate OK [00:32:11]CreateOFDProtocolMessage done [00:32:11]OFDSenderStorePacket 123407 [00:32:11]StoreOFDPacket docnum=123407 [00:32:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 15 CA 07 01 CB B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7E 68 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 39 D6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C D6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 4D 00 00 00 00 07 04 06 00 2C D6 02 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 8F 16 E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 0F E2 01 00 35 04 06 00 09 58 C7 AB 3D 8A 09 C9 DE E4 CD 1E 35 80 [00:32:11]CheckFolder [00:32:11]dirname=/storage/ofd_packets [00:32:11]CheckFolder done [00:32:11]ProducePacketName [00:32:11]name=ofd_packets/00123407 [00:32:11]NVStorageSaveData ofd_packets/00123407 [00:32:11]File name is /storage/ofd_packets/00123407 [00:32:11]Write 301 bytes [00:32:11]NVStorageSaveData done [00:32:11]OFDSenderStorePacket done [00:32:11]KKMCreateOFDPacket done [00:32:11]NVStorageSaveData kkm_last_timestamp [00:32:11]File name is /storage/kkm_last_timestamp [00:32:11]Write 4 bytes [00:32:11]NVStorageSaveData done [00:32:11]ExternCall_PrintAddStr [00:32:11]wPrintStart [00:32:11]Write to MH i2c: 01 00 00 A8 5F 07 [00:32:11]Write i2c OK [00:32:11]MH_I2C_Read... [00:32:11]Read from MH i2c: 01 [00:32:11]MH_I2C_Read... [00:32:11]Read from MH i2c: 01 07 00 [00:32:11]MH_I2C_Read... [00:32:11]Read from MH i2c: 01 07 00 A8 5F 00 00 00 00 00 FF 0F 1C [00:32:11]RasterBufferAndPrint [00:32:11]line Счет N : (1)1106393 [00:32:11]line ИНН: 02508201610067 [00:32:11]line Контрольно-Кассовый Чек [00:32:11]line ПРОДАЖА [00:32:11]line ТРК (МРК, ГНК) : 63 [00:32:11]line Товар: 2710124500 [00:32:11]line Аи-95-К-5 [00:32:11]line 26.750 * 69.50 [00:32:11]line = 1859.13 [00:32:11]line НДС 12% НСП 1% [00:32:11]line > о реализуемом товаре [00:32:11]line ОКРУГЛЕНИЕ: -0.13 [00:32:11]line ИТОГО: 1859.00 [00:32:11]line Внесено: 1859.00 [00:32:11]line СДАЧА: 0.00 [00:32:11]line НСП 1% : 16.45 [00:32:11]line НДС 12% : 197.43 [00:32:11]line Наличными: 1859.00 [00:32:11]line Безнал.: 0.00 [00:32:11]line Место: АЗС № 25 "Партнер Нефть" [00:32:11]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [00:32:11]line СНО: Общий режим [00:32:11]line Чек 7 04.03.2024 00:32 [00:32:11]line Смена: 324 ФФД: 1.0 [00:32:11]line ЗНМ: 0300000019 [00:32:11]line РНМ: 0000000000090573 [00:32:11]line Версия ККМ: 001 [00:32:11]line ФМ: 0000000000874798 [00:32:11]line ФД: 123407 [00:32:11]line ФПД: 10276911660426 [00:32:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240304T003215&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123407&fm=10276911660426&tin=02508201610067®Number=0000000000090573&sum=185900 [00:32:11]OFD Sender: Processing packet 123407 [packets to send 112, broken 111] [00:32:11]ProducePacketName [00:32:11]name=ofd_packets/00123407 [00:32:11]OFD Sender: To server: pG, [00:32:11]CommunicateWithHost lk.salyk.kg:30040 [00:32:11]ConnectInit lk.salyk.kg [00:32:11]written 0, free lines is 4095 [00:32:12]Connected sock=10 [00:32: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 37 39 38 0F 01 00 00 15 CA 07 01 CB B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7E 68 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 39 D6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C D6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 4D 00 00 00 00 07 04 06 00 2C D6 02 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 8F 16 E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 0F E2 01 00 35 04 06 00 09 58 C7 AB 3D 8A 09 C9 DE E4 CD 1E 35 80 [00:32:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 8E 43 47 00 E6 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 37 39 38 10 04 04 00 0F E2 01 00 F4 03 04 00 B9 C2 E4 65 B6 04 01 00 00 7E 61 F2 D1 78 65 39 45 [00:32:12]CommunicateWithHost err = 0 [00:32:12]CheckOFDResponse [00:32:12]1017 (14) - 77093643461234 [00:32:12]1041 (16) - 0000000000874798 [00:32:12]1040 (4) - 123407 [00:32:12]1012 (4) - 03.03.2024 18:34 [00:32:12]1206 (1) - 0 [00:32:12]OFD Sender: Remove packet 123407 [00:32:12]ProducePacketName [00:32:12]name=ofd_packets/00123407 [00:32:12]NVStorageDeleteData [00:32:12]Write to MH i2c: 01 00 00 D3 5F 32 [00:32:12]Write i2c OK [00:32:12]MH_I2C_Read... [00:32:12]Read from MH i2c: 01 [00:32:12]MH_I2C_Read... [00:32:12]Read from MH i2c: 01 07 00 [00:32:12]MH_I2C_Read... [00:32:12]Read from MH i2c: 01 07 00 D3 5F 00 00 00 00 00 EF 0C 34 [00:32:12]RasterBufferAndPrint [00:32:12]line [00:32:12]line [00:32:12]line [00:32:12]line [00:32:12]line [00:32:12]written 0, free lines is 3317 [00:32:12]MH_Cut [00:32:12]Write to MH i2c: D1 01 00 DA 5F 01 0B [00:32:12]Write i2c OK [00:32:12]MH_I2C_Read... [00:32:12]Read from MH i2c: D1 [00:32:12]MH_I2C_Read... [00:32:12]Read from MH i2c: D1 01 00 [00:32:12]MH_I2C_Read... [00:32:12]Read from MH i2c: D1 01 00 DA 5F 00 0A [00:32:12]Write to MH i2c: 01 00 00 DB 5F 3A [00:32:12]Write i2c OK [00:32:12]MH_I2C_Read... [00:32:12]OFD Sender: No OFD packet to send [00:32:13]*** Cut start [00:32:13]*** Purtial cut [00:32:13]*** Stage 1: CUTSNS_PIN = 1 [00:32:15]Read from MH i2c: 01 [00:32:15]MH_I2C_Read... [00:32:15]*** Stop cut motor [00:32:15]*** Cut end [00:32:15]Read from MH i2c: 01 07 00 [00:32:15]MH_I2C_Read... [00:32:15]Read from MH i2c: 01 07 00 DB 5F 00 00 00 00 00 FF 0F 4F [00:32:15]process_action close_receipt done [00:32:15]requested_data is exist [00:32:15]produce_requested_data [00:32:15]requested_item fm.sn is exist - process it [00:32:15]wFMCommunicate request_size=4 [00:32:15]MH_SAM_APDU [00:32:15]CAPDU: 80 11 00 00 [00:32:15]Write to MH i2c: E2 08 00 DC 5F 80 11 00 00 00 00 00 00 B5 [00:32:15]Write i2c OK [00:32:15]MH_I2C_Read... [00:32:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:32:15]Read from MH i2c: E2 [00:32:15]MH_I2C_Read... [00:32:15]Read from MH i2c: E2 17 00 [00:32:15]MH_I2C_Read... [00:32:15]Read from MH i2c: E2 17 00 DC 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 13 [00:32:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [00:32:15]wFMCommunicate OK [00:32:15]requested_item fd.num is exist - process it [00:32:15]SAM_PROTO_GetFieldsCounters [00:32:15]wFMCommunicate request_size=4 [00:32:15]MH_SAM_APDU [00:32:15]CAPDU: 80 13 00 00 [00:32:15]Write to MH i2c: E2 08 00 DD 5F 80 13 00 00 00 00 00 00 B8 [00:32:15]Write i2c OK [00:32:15]MH_I2C_Read... [00:32:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:32:15]Read from MH i2c: E2 [00:32:15]MH_I2C_Read... [00:32:15]Read from MH i2c: E2 62 00 [00:32:15]MH_I2C_Read... [00:32:15]Read from MH i2c: E2 62 00 DD 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 0F E2 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 2F [00:32: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 0F E2 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:32:15]wFMCommunicate OK [00:32:15]SAM_PROTO_GetFieldsCounters done [00:32:15]requested_item shift.num is exist - process it [00:32:15]requested_item shift.opened is exist - process it [00:32:15]req_shift_opened [00:32:15]FM_GetShiftState [00:32:15]SAM_PROTO_GetShiftState [00:32:15]wFMCommunicate request_size=4 [00:32:15]MH_SAM_APDU [00:32:15]CAPDU: 80 13 01 00 [00:32:15]Write to MH i2c: E2 08 00 DE 5F 80 13 01 00 00 00 00 00 BA [00:32:15]Write i2c OK [00:32:15]MH_I2C_Read... [00:32:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:32:15]Read from MH i2c: E2 [00:32:15]MH_I2C_Read... [00:32:15]Read from MH i2c: E2 0E 00 [00:32:15]MH_I2C_Read... [00:32:15]Read from MH i2c: E2 0E 00 DE 5F 00 09 00 01 B0 11 E5 65 00 00 00 00 90 00 D1 [00:32:15]RAPDU: 09 00 01 B0 11 E5 65 00 00 00 00 90 00 [00:32:15]wFMCommunicate OK [00:32:15]SAM_PROTO_GetShiftState done [00:32:15]FM_GetShiftState done [00:32:15]req_shift_opened done [00:32:15]requested_item shift.open_date is exist - process it [00:32:15]req_shift_open_date [00:32:15]req_shift_open_date done [00:32:15]produce_requested_data done [00:32:15]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123407,"shift.num":324,"shift.opened":1,"shift.open_date":1709511088} [00:32:15]process_action_free close_receipt [00:32:15]json_value_free [00:32:15]json_value_free done [00:32:15]process_json_proto returns [00:32:15]Send response to host [00:32:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123407,"shift.num":324,"shift.opened":1,"shift.open_date":1709511088}}} [00:32:15]free response buf [00:32:15]execute_script done [00:32:15]execute_script returns [00:32:15]free content buf [00:32:15]Sock 9.Close socket [00:32:15]Sock 9.Thread stoped [00:32:17]OFD Sender: No OFD packet to send [00:32:22]OFD Sender: No OFD packet to send [00:32:27]OFD Sender: No OFD packet to send [00:32:32]OFD Sender: No OFD packet to send [00:32:37]OFD Sender: No OFD packet to send [00:32:42]OFD Sender: No OFD packet to send [00:32:47]OFD Sender: No OFD packet to send [00:32:52]OFD Sender: No OFD packet to send [00:32:57]OFD Sender: No OFD packet to send [00:33:02]OFD Sender: No OFD packet to send [00:33:07]OFD Sender: No OFD packet to send [00:33:12]OFD Sender: No OFD packet to send [00:33:17]OFD Sender: No OFD packet to send [00:33:22]OFD Sender: No OFD packet to send [00:33:27]OFD Sender: No OFD packet to send [00:33:32]OFD Sender: No OFD packet to send [00:33:37]OFD Sender: No OFD packet to send [00:33:42]OFD Sender: No OFD packet to send [00:33:47]OFD Sender: No OFD packet to send [00:33:52]OFD Sender: No OFD packet to send [00:33:57]OFD Sender: No OFD packet to send [00:34:02]OFD Sender: No OFD packet to send [00:34:07]OFD Sender: No OFD packet to send [00:34:12]OFD Sender: No OFD packet to send [00:34:17]OFD Sender: No OFD packet to send [00:34:22]OFD Sender: No OFD packet to send [00:34:27]OFD Sender: No OFD packet to send [00:34:32]OFD Sender: No OFD packet to send [00:34:37]OFD Sender: No OFD packet to send [00:34:42]OFD Sender: No OFD packet to send [00:34:47]OFD Sender: No OFD packet to send [00:34:52]OFD Sender: No OFD packet to send [00:34:57]OFD Sender: No OFD packet to send [00:35:02]OFD Sender: No OFD packet to send [00:35:07]OFD Sender: No OFD packet to send [00:35:12]OFD Sender: No OFD packet to send [00:35:17]OFD Sender: No OFD packet to send [00:35:22]OFD Sender: No OFD packet to send [00:35:27]OFD Sender: No OFD packet to send [00:35:32]OFD Sender: No OFD packet to send [00:35:37]OFD Sender: No OFD packet to send [00:35:42]OFD Sender: No OFD packet to send [00:35:47]OFD Sender: No OFD packet to send [00:35:52]OFD Sender: No OFD packet to send [00:35:57]OFD Sender: No OFD packet to send [00:36:02]OFD Sender: No OFD packet to send [00:36:07]OFD Sender: No OFD packet to send [00:36:12]OFD Sender: No OFD packet to send [00:36:17]OFD Sender: No OFD packet to send [00:36:21]accept exits with 7 [00:36:21]New connection [00:36:21]New thread 3067395428 created [00:36:21]Thread 3067252068 joined [00:36:21]Waiting for new connection... [00:36:21] Sock 7.Parse request [00:36:21]Sock 7.Check first char [00:36:21]Sock 7.First char is OK [00:36:21]request: POST /json_proto HTTP/1.0 [00:36:21]Method: POST [00:36:21]URL: /json_proto [00:36:21]Method is POST - this is cgi request [00:36:21]url: /json_proto [00:36:21]query_string will be loaded in cgi processing [00:36:21]execute_cgi json_proto POST (null) [00:36:21]execute_cgi path=json_proto method=POST [00:36:21]POST find Content-Length [00:36:21]Host: 172.17.48.197:8080 [00:36:21]Content-Length: 215 [00:36:21]Content-Type: application/json [00:36:21] [00:36:21]POST finish read [00:36:21]Found Content-Length = 215 [00:36:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:36:21]execute_script... [00:36:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:36:21]POST & json_proto [00:36:21]process_json_proto [00:36:21]json parsed OK: [00:36:21]protocol is kg_v1.0 [00:36:21]action value=get_value [00:36:21]process_action get_value [00:36:21]cmd_get_value [00:36:21]process_action get_value done [00:36:21]requested_data is exist [00:36:21]produce_requested_data [00:36:21]requested_item kkm.sn is exist - process it [00:36:21]requested_item kkm.ver is exist - process it [00:36:21]requested_item fm.sn is exist - process it [00:36:21]wFMCommunicate request_size=4 [00:36:21]MH_SAM_APDU [00:36:21]CAPDU: 80 11 00 00 [00:36:21]Write to MH i2c: E2 08 00 DF 5F 80 11 00 00 00 00 00 00 B8 [00:36:21]Write i2c OK [00:36:21]MH_I2C_Read... [00:36:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:36:21]Read from MH i2c: E2 [00:36:21]MH_I2C_Read... [00:36:21]Read from MH i2c: E2 17 00 [00:36:21]MH_I2C_Read... [00:36:21]Read from MH i2c: E2 17 00 DF 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 16 [00:36:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [00:36:21]wFMCommunicate OK [00:36:21]requested_item fd.num is exist - process it [00:36:21]SAM_PROTO_GetFieldsCounters [00:36:21]wFMCommunicate request_size=4 [00:36:21]MH_SAM_APDU [00:36:21]CAPDU: 80 13 00 00 [00:36:21]Write to MH i2c: E2 08 00 E0 5F 80 13 00 00 00 00 00 00 BB [00:36:21]Write i2c OK [00:36:21]MH_I2C_Read... [00:36:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:36:21]Read from MH i2c: E2 [00:36:21]MH_I2C_Read... [00:36:21]Read from MH i2c: E2 62 00 [00:36:21]MH_I2C_Read... [00:36:21]Read from MH i2c: E2 62 00 E0 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 0F E2 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 32 [00:36: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 0F E2 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:36:21]wFMCommunicate OK [00:36:21]SAM_PROTO_GetFieldsCounters done [00:36:21]requested_item shift.num is exist - process it [00:36:21]requested_item shift.opened is exist - process it [00:36:21]req_shift_opened [00:36:21]FM_GetShiftState [00:36:21]SAM_PROTO_GetShiftState [00:36:21]wFMCommunicate request_size=4 [00:36:21]MH_SAM_APDU [00:36:21]CAPDU: 80 13 01 00 [00:36:21]Write to MH i2c: E2 08 00 E1 5F 80 13 01 00 00 00 00 00 BD [00:36:21]Write i2c OK [00:36:21]MH_I2C_Read... [00:36:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:36:21]Read from MH i2c: E2 [00:36:21]MH_I2C_Read... [00:36:21]Read from MH i2c: E2 0E 00 [00:36:21]MH_I2C_Read... [00:36:21]Read from MH i2c: E2 0E 00 E1 5F 00 09 00 01 B0 11 E5 65 00 00 00 00 90 00 D4 [00:36:21]RAPDU: 09 00 01 B0 11 E5 65 00 00 00 00 90 00 [00:36:21]wFMCommunicate OK [00:36:21]SAM_PROTO_GetShiftState done [00:36:21]FM_GetShiftState done [00:36:21]req_shift_opened done [00:36:21]requested_item shift.open_date is exist - process it [00:36:21]req_shift_open_date [00:36:21]req_shift_open_date done [00:36:21]produce_requested_data done [00:36:21]produce_requested_data return {"kkm.sn":"0300000019","kkm.ver":"001","fm.sn":"0000000000874798","fd.num":123407,"shift.num":324,"shift.opened":1,"shift.open_date":1709511088} [00:36:21]process_action_free get_value [00:36:21]json_value_free [00:36:21]json_value_free done [00:36:21]process_json_proto returns [00:36:21]Send response to host [00:36:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000019","kkm.ver":"001","fm.sn":"0000000000874798","fd.num":123407,"shift.num":324,"shift.opened":1,"shift.open_date":1709511088}}} [00:36:21]free response buf [00:36:21]execute_script done [00:36:21]execute_script returns [00:36:21]free content buf [00:36:21]Sock 7.Close socket [00:36:21]Sock 7.Thread stoped [00:36:22]accept exits with 9 [00:36:22]New connection [00:36:22]New thread 3067252068 created [00:36:22]Thread 3067395428 joined [00:36:22]Waiting for new connection... [00:36:22] Sock 9.Parse request [00:36:22]Sock 9.Check first char [00:36:22]Sock 9.First char is OK [00:36:22]request: POST /json_proto HTTP/1.0 [00:36:22]Method: POST [00:36:22]URL: /json_proto [00:36:22]Method is POST - this is cgi request [00:36:22]url: /json_proto [00:36:22]query_string will be loaded in cgi processing [00:36:22]execute_cgi json_proto POST (null) [00:36:22]execute_cgi path=json_proto method=POST [00:36:22]POST find Content-Length [00:36:22]Host: 172.17.48.197:8080 [00:36:22]Content-Length: 331 [00:36:22]Content-Type: application/json [00:36:22] [00:36:22]POST finish read [00:36:22]Found Content-Length = 331 [00:36:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:36:22]execute_script... [00:36:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:36:22]POST & json_proto [00:36:22]process_json_proto [00:36:22]json parsed OK: [00:36:22]protocol is kg_v1.0 [00:36:22]action value=get_value [00:36:22]process_action get_value [00:36:22]cmd_get_value [00:36:22]process_action get_value done [00:36:22]requested_data is exist [00:36:22]produce_requested_data [00:36:22]requested_item fm.sale.total is exist - process it [00:36:22]SAM_PROTO_GetFMData [00:36:22]wFMCommunicate request_size=4 [00:36:22]MH_SAM_APDU [00:36:22]CAPDU: 80 13 03 00 [00:36:22]Write to MH i2c: E2 08 00 E2 5F 80 13 03 00 00 00 00 00 C0 [00:36:22]Write i2c OK [00:36:22]MH_I2C_Read... [00:36:22]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:36:22]Read from MH i2c: E2 [00:36:22]MH_I2C_Read... [00:36:22]Read from MH i2c: E2 FD 00 [00:36:22]MH_I2C_Read... [00:36:22]Read from MH i2c: E2 FD 00 E2 5F 00 C7 04 85 04 C3 04 6E 04 04 00 87 DF 01 00 69 04 A3 00 6F 04 04 00 6B CA 01 00 B1 04 05 00 A9 F3 47 6F 02 70 04 05 00 E9 91 76 AB 01 72 04 04 00 C0 61 D1 C3 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 C9 CB 33 42 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 29 84 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 1C 15 00 00 B1 04 04 00 65 10 6A 34 70 04 04 00 45 C2 69 34 72 04 02 00 20 4E 00 04 7C 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 E8 22 91 05 EF 90 00 85 [00:36:22]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 87 DF 01 00 69 04 A3 00 6F 04 04 00 6B CA 01 00 B1 04 05 00 A9 F3 47 6F 02 70 04 05 00 E9 91 76 AB 01 72 04 04 00 C0 61 D1 C3 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 C9 CB 33 42 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 29 84 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 1C 15 00 00 B1 04 04 00 65 10 6A 34 70 04 04 00 45 C2 69 34 72 04 02 00 20 4E 00 04 7C 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 E8 22 91 05 EF 90 00 [00:36:22]wFMCommunicate OK [00:36:22]wFMCommunicate request_size=4 [00:36:22]MH_SAM_APDU [00:36:22]CAPDU: 80 17 00 00 [00:36:22]Write to MH i2c: E2 08 00 E3 5F 80 17 00 00 00 00 00 00 C2 [00:36:22]Write i2c OK [00:36:22]MH_I2C_Read... [00:36:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:36:22]Read from MH i2c: E2 [00:36:22]MH_I2C_Read... [00:36:22]Read from MH i2c: E2 FD 00 [00:36:22]MH_I2C_Read... [00:36:22]Read from MH i2c: E2 FD 00 E3 5F 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 37 C1 76 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 3D [00:36:22]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 37 C1 76 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:36:22]wFMCommunicate OK [00:36:22]wFMCommunicate request_size=4 [00:36:22]MH_SAM_APDU [00:36:22]CAPDU: 80 17 00 00 [00:36:22]Write to MH i2c: E2 08 00 E4 5F 80 17 00 00 00 00 00 00 C3 [00:36:22]Write i2c OK [00:36:22]MH_I2C_Read... [00:36:23]OFD Sender: No OFD packet to send [00:36:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:36:23]Read from MH i2c: E2 [00:36:23]MH_I2C_Read... [00:36:23]Read from MH i2c: E2 FD 00 [00:36:23]MH_I2C_Read... [00:36:23]Read from MH i2c: E2 FD 00 E4 5F 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B [00:36:23]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 [00:36:23]wFMCommunicate OK [00:36:23]wFMCommunicate request_size=4 [00:36:23]MH_SAM_APDU [00:36:23]CAPDU: 80 17 00 00 [00:36:23]Write to MH i2c: E2 08 00 E5 5F 80 17 00 00 00 00 00 00 C4 [00:36:23]Write i2c OK [00:36:23]MH_I2C_Read... [00:36:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:36:23]Read from MH i2c: E2 [00:36:23]MH_I2C_Read... [00:36:23]Read from MH i2c: E2 FD 00 [00:36:23]MH_I2C_Read... [00:36:23]Read from MH i2c: E2 FD 00 E5 5F 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 3F [00:36:23]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 [00:36:23]wFMCommunicate OK [00:36:23]wFMCommunicate request_size=4 [00:36:23]MH_SAM_APDU [00:36:23]CAPDU: 80 17 00 00 [00:36:23]Write to MH i2c: E2 08 00 E6 5F 80 17 00 00 00 00 00 00 C5 [00:36:23]Write i2c OK [00:36:23]MH_I2C_Read... [00:36:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [00:36:23]Read from MH i2c: E2 [00:36:23]MH_I2C_Read... [00:36:23]Read from MH i2c: E2 E4 00 [00:36:23]MH_I2C_Read... [00:36:23]Read from MH i2c: E2 E4 00 E6 5F 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 A5 [00:36:23]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 [00:36:23]wFMCommunicate OK [00:36:23]SAM_PROTO_GetFMData done [00:36:23]requested_item fm.sale_refund.total is exist - process it [00:36:23]requested_item fm.buy.total is exist - process it [00:36:23]requested_item shift.sale.total is exist - process it [00:36:23]SAM_PROTO_GetShiftData [00:36:23]wFMCommunicate request_size=4 [00:36:23]MH_SAM_APDU [00:36:23]CAPDU: 80 13 02 00 [00:36:23]Write to MH i2c: E2 08 00 E7 5F 80 13 02 00 00 00 00 00 C4 [00:36:23]Write i2c OK [00:36:23]MH_I2C_Read... [00:36:23]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:36:23]Read from MH i2c: E2 [00:36:23]MH_I2C_Read... [00:36:23]Read from MH i2c: E2 FD 00 [00:36:23]MH_I2C_Read... [00:36:24]Read from MH i2c: E2 FD 00 E7 5F 00 B5 04 AA 04 B1 04 6E 04 04 00 07 00 00 00 69 04 9A 00 6F 04 04 00 06 00 00 00 B1 04 03 00 B2 2D 08 70 04 03 00 4C 95 05 72 04 03 00 66 98 02 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 67 DE 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 87 12 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 95 00 6F 04 04 00 01 00 00 00 B1 04 02 00 40 9C 70 04 02 00 40 9C 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 9D 10 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 90 00 C7 [00:36:24]RAPDU: B5 04 AA 04 B1 04 6E 04 04 00 07 00 00 00 69 04 9A 00 6F 04 04 00 06 00 00 00 B1 04 03 00 B2 2D 08 70 04 03 00 4C 95 05 72 04 03 00 66 98 02 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 67 DE 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 87 12 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 95 00 6F 04 04 00 01 00 00 00 B1 04 02 00 40 9C 70 04 02 00 40 9C 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 9D 10 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 90 00 [00:36:24]wFMCommunicate OK [00:36:24]wFMCommunicate request_size=4 [00:36:24]MH_SAM_APDU [00:36:24]CAPDU: 80 17 00 00 [00:36:24]Write to MH i2c: E2 08 00 E8 5F 80 17 00 00 00 00 00 00 C7 [00:36:24]Write i2c OK [00:36:24]MH_I2C_Read... [00:36:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:36:24]Read from MH i2c: E2 [00:36:24]MH_I2C_Read... [00:36:24]Read from MH i2c: E2 FD 00 [00:36:24]MH_I2C_Read... [00:36:24]Read from MH i2c: E2 FD 00 E8 5F 00 03 01 00 01 F7 03 02 00 62 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 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 4B [00:36:24]RAPDU: 03 01 00 01 F7 03 02 00 62 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 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 [00:36:24]wFMCommunicate OK [00:36:24]wFMCommunicate request_size=4 [00:36:24]MH_SAM_APDU [00:36:24]CAPDU: 80 17 00 00 [00:36:24]Write to MH i2c: E2 08 00 E9 5F 80 17 00 00 00 00 00 00 C8 [00:36:24]Write i2c OK [00:36:24]MH_I2C_Read... [00:36:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:36:24]Read from MH i2c: E2 [00:36:24]MH_I2C_Read... [00:36:24]Read from MH i2c: E2 FD 00 [00:36:24]MH_I2C_Read... [00:36:24]Read from MH i2c: E2 FD 00 E9 5F 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 85 [00:36:24]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 [00:36:24]wFMCommunicate OK [00:36:24]wFMCommunicate request_size=4 [00:36:24]MH_SAM_APDU [00:36:24]CAPDU: 80 17 00 00 [00:36:24]Write to MH i2c: E2 08 00 EA 5F 80 17 00 00 00 00 00 00 C9 [00:36:24]Write i2c OK [00:36:24]MH_I2C_Read... [00:36:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:36:24]Read from MH i2c: E2 [00:36:24]MH_I2C_Read... [00:36:24]Read from MH i2c: E2 FD 00 [00:36:24]MH_I2C_Read... [00:36:24]Read from MH i2c: E2 FD 00 EA 5F 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 41 [00:36:24]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 [00:36:24]wFMCommunicate OK [00:36:24]wFMCommunicate request_size=4 [00:36:24]MH_SAM_APDU [00:36:24]CAPDU: 80 17 00 00 [00:36:24]Write to MH i2c: E2 08 00 EB 5F 80 17 00 00 00 00 00 00 CA [00:36:24]Write i2c OK [00:36:24]MH_I2C_Read... [00:36:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 207! [00:36:25]Read from MH i2c: E2 [00:36:25]MH_I2C_Read... [00:36:25]Read from MH i2c: E2 D2 00 [00:36:25]MH_I2C_Read... [00:36:25]Read from MH i2c: E2 D2 00 EB 5F 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 AD [00:36:25]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 [00:36:25]wFMCommunicate OK [00:36:25]SAM_PROTO_GetShiftData done [00:36:25]requested_item shift.sale.total_cash is exist - process it [00:36:25]requested_item shift.sale_refund.total is exist - process it [00:36:25]requested_item shift.sale_refund.total_cash is exist - process it [00:36:25]requested_item shift.buy.total is exist - process it [00:36:25]requested_item shift.buy.total_cash is exist - process it [00:36:25]produce_requested_data done [00:36:25]produce_requested_data return {"fm.sale.total":104569210.01,"fm.sale_refund.total":8793662.45,"fm.buy.total":0.00,"shift.sale.total":5359.86,"shift.sale.total_cash":3659.00,"shift.sale_refund.total":400.00,"shift.sale_refund.total_cash":400.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:36:25]process_action_free get_value [00:36:25]json_value_free [00:36:25]json_value_free done [00:36:25]process_json_proto returns [00:36:25]Send response to host [00:36:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":104569210.01,"fm.sale_refund.total":8793662.45,"fm.buy.total":0.00,"shift.sale.total":5359.86,"shift.sale.total_cash":3659.00,"shift.sale_refund.total":400.00,"shift.sale_refund.total_cash":400.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:36:25]free response buf [00:36:25]execute_script done [00:36:25]execute_script returns [00:36:25]free content buf [00:36:25]Sock 9.Close socket [00:36:25]Sock 9.Thread stoped [00:36:28]OFD Sender: No OFD packet to send [00:36:33]OFD Sender: No OFD packet to send [00:36:33]accept exits with 7 [00:36:33]New connection [00:36:33]New thread 3067395428 created [00:36:33]Thread 3067252068 joined [00:36:33]Waiting for new connection... [00:36:33] Sock 7.Parse request [00:36:33]Sock 7.Check first char [00:36:33]Sock 7.First char is OK [00:36:33]request: POST /json_proto HTTP/1.0 [00:36:33]Method: POST [00:36:33]URL: /json_proto [00:36:33]Method is POST - this is cgi request [00:36:33]url: /json_proto [00:36:33]query_string will be loaded in cgi processing [00:36:33]execute_cgi json_proto POST (null) [00:36:33]execute_cgi path=json_proto method=POST [00:36:33]POST find Content-Length [00:36:33]Host: 172.17.48.197:8080 [00:36:33]Content-Length: 740 [00:36:33]Content-Type: application/json [00:36:33] [00:36:33]POST finish read [00:36:33]Found Content-Length = 740 [00:36:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 123407, "base_FM": "0000000000874798", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106393", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124100", "name": "\u0410\u0438-95-\u041A-1", "price" : 69.50, "quantity" : 26.750, "sum" : 1859.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1859.00, "total" : 1859.00, "payments": [ { "type": 0, "sum" : 1859.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:36:33]execute_script... [00:36:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 123407, "base_FM": "0000000000874798", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106393", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124100", "name": "\u0410\u0438-95-\u041A-1", "price" : 69.50, "quantity" : 26.750, "sum" : 1859.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1859.00, "total" : 1859.00, "payments": [ { "type": 0, "sum" : 1859.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:36:33]POST & json_proto [00:36:33]process_json_proto [00:36:33]json parsed OK: [00:36:33]protocol is kg_v1.0 [00:36:33]action value=close_receipt [00:36:33]process_action close_receipt [00:36:33]cmd_close_receipt [00:36:33]MH_GetDate [00:36:33]Write to MH i2c: F0 00 00 EC 5F 3A [00:36:33]Write i2c OK [00:36:33]MH_I2C_Read... [00:36:33]Read from MH i2c: F0 [00:36:33]MH_I2C_Read... [00:36:33]Read from MH i2c: F0 09 00 [00:36:33]MH_I2C_Read... [00:36:33]Read from MH i2c: F0 09 00 EC 5F 00 97 17 E5 65 6C AF E3 65 9E [00:36:33]GetLastDocTimeStamp 1709512335 [00:36:33]current date 1709512599 [00:36:33]FM_GetShiftState [00:36:33]SAM_PROTO_GetShiftState [00:36:33]wFMCommunicate request_size=4 [00:36:33]MH_SAM_APDU [00:36:33]CAPDU: 80 13 01 00 [00:36:33]Write to MH i2c: E2 08 00 ED 5F 80 13 01 00 00 00 00 00 C9 [00:36:33]Write i2c OK [00:36:33]MH_I2C_Read... [00:36:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:36:33]Read from MH i2c: E2 [00:36:33]MH_I2C_Read... [00:36:33]Read from MH i2c: E2 0E 00 [00:36:33]MH_I2C_Read... [00:36:33]Read from MH i2c: E2 0E 00 ED 5F 00 09 00 01 B0 11 E5 65 00 00 00 00 90 00 E0 [00:36:33]RAPDU: 09 00 01 B0 11 E5 65 00 00 00 00 90 00 [00:36:33]wFMCommunicate OK [00:36:33]SAM_PROTO_GetShiftState done [00:36:33]FM_GetShiftState done [00:36:33]opened in 1709511088 [00:36:33]opened+sec_in_day 1709597488 [00:36:33]quantity*price = 185912 [00:36:33]sum+1 = 185914 [00:36:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1859.00 НСП 1% : 16.45 НДС 12% : 197.43 Наличными: 1859.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 8 04.03.2024 00:36 Смена: 324 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФД осн.: 123407 ФМ осн.: 0000000000874798 ФМ: 0000000000874798 ФД: 123408 ФПД: 123287166555011 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240304T003639&type=2&operation_type=1&fn_number=0000000000874798&fd_number=123408&fm=123287166555011&tin=02508201610067®Number=0000000000090573&sum=185900 [00:36:35]StoreToDocumentArchive [00:36:35]shift 324 fd 123408 [00:36:35]save to /storage/0324/doc_00123408 [00:36:35]save last doc name /storage/0324/doc_00123408 to /storage/kkm_last_doc_name [00:36:35]save OK [00:36:35]Clear old archive folders... [00:36:35]ProcessDocumentItem done err = 0, tmpTLVsize=279 [00:36:35]tlvbuf is 00E3FA20 [00:36:35]SAM_PROTO_ClearQueue [00:36:35]wFMCommunicate request_size=4 [00:36:35]MH_SAM_APDU [00:36:35]CAPDU: 80 09 00 00 [00:36:35]Write to MH i2c: E2 08 00 FC 5F 80 09 00 00 00 00 00 00 CD [00:36:35]Write i2c OK [00:36:35]MH_I2C_Read... [00:36:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:36:35]Read from MH i2c: E2 [00:36:35]MH_I2C_Read... [00:36:35]Read from MH i2c: E2 03 00 [00:36:35]MH_I2C_Read... [00:36:35]Read from MH i2c: E2 03 00 FC 5F 00 90 00 CF [00:36:35]RAPDU: 90 00 [00:36:35]wFMCommunicate OK [00:36:35]SAM_PROTO_ClearQueue done [00:36:35]KKMCreateOFDPacket [00:36:35]OFDProtocolAddRootSTLVToBuf [00:36:35]FM_MakeSignedData [00:36:35]FM_MakeSignedData [00:36:35]SAM_PROTO_SignData [00:36:35]wFMCommunicate request_size=4 [00:36:35]MH_SAM_APDU [00:36:35]CAPDU: 80 0D 01 02 [00:36:35]Write to MH i2c: E2 08 00 FD 5F 80 0D 01 02 00 00 00 00 D5 [00:36:35]Write i2c OK [00:36:35]MH_I2C_Read... [00:36:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:36:35]Read from MH i2c: E2 [00:36:35]MH_I2C_Read... [00:36:35]Read from MH i2c: E2 03 00 [00:36:35]MH_I2C_Read... [00:36:35]Read from MH i2c: E2 03 00 FD 5F 00 90 00 D0 [00:36:35]RAPDU: 90 00 [00:36:35]wFMCommunicate OK [00:36:35]wFMCommunicate request_size=255 [00:36:35]MH_SAM_APDU [00:36:35]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 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 31 FF 03 08 00 03 7E 68 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 39 D6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C D6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 4D 00 00 00 00 07 04 06 00 2C D6 02 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 97 17 E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 27 04 04 00 0F E2 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 11 04 10 00 30 [00:36:35]Write to MH i2c: E2 02 01 FE 5F 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 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 31 FF 03 08 00 03 7E 68 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 39 D6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C D6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 4D 00 00 00 00 07 04 06 00 2C D6 02 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 97 17 E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 27 04 04 00 0F E2 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 11 04 10 00 30 00 00 9D [00:36:35]Write i2c OK [00:36:35]MH_I2C_Read... [00:36:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:36:35]Read from MH i2c: E2 [00:36:35]MH_I2C_Read... [00:36:35]Read from MH i2c: E2 03 00 [00:36:35]MH_I2C_Read... [00:36:35]Read from MH i2c: E2 03 00 FE 5F 00 90 00 D1 [00:36:35]RAPDU: 90 00 [00:36:35]wFMCommunicate OK [00:36:35]wFMCommunicate request_size=38 [00:36:35]MH_SAM_APDU [00:36:35]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 10 E2 01 00 35 04 06 00 70 21 07 C4 93 83 [00:36:35]Write to MH i2c: E2 29 00 FF 5F 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 10 E2 01 00 35 04 06 00 70 21 07 C4 93 83 00 00 D1 [00:36:35]Write i2c OK [00:36:35]MH_I2C_Read... [00:36:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:36:35]Read from MH i2c: E2 [00:36:35]MH_I2C_Read... [00:36:35]Read from MH i2c: E2 03 00 [00:36:35]MH_I2C_Read... [00:36:35]Read from MH i2c: E2 03 00 FF 5F 00 90 00 D2 [00:36:35]RAPDU: 90 00 [00:36:35]wFMCommunicate OK [00:36:35]wFMCommunicate request_size=4 [00:36:35]MH_SAM_APDU [00:36:35]CAPDU: 80 0D 03 02 [00:36:35]Write to MH i2c: E2 08 00 00 60 80 0D 03 02 00 00 00 00 DB [00:36:35]Write i2c OK [00:36:35]MH_I2C_Read... [00:36:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:36:35]Read from MH i2c: E2 [00:36:35]MH_I2C_Read... [00:36:35]Read from MH i2c: E2 0B 00 [00:36:35]MH_I2C_Read... [00:36:35]Read from MH i2c: E2 0B 00 00 60 00 99 F1 44 DB 47 B8 CF F6 90 00 49 [00:36:35]RAPDU: 99 F1 44 DB 47 B8 CF F6 90 00 [00:36:35]wFMCommunicate OK [00:36:35]SAM_PROTO_SignData done [00:36:35]FM_MakeSignedData done [00:36:35]CreateOFDProtocolMessage [00:36:35]wFMCommunicate request_size=4 [00:36:35]MH_SAM_APDU [00:36:35]CAPDU: 80 11 00 00 [00:36:35]Write to MH i2c: E2 08 00 01 60 80 11 00 00 00 00 00 00 DB [00:36:35]Write i2c OK [00:36:35]MH_I2C_Read... [00:36:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:36:35]Read from MH i2c: E2 [00:36:35]MH_I2C_Read... [00:36:35]Read from MH i2c: E2 17 00 [00:36:35]MH_I2C_Read... [00:36:35]Read from MH i2c: E2 17 00 01 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 39 [00:36:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [00:36:35]wFMCommunicate OK [00:36:35]CreateOFDProtocolMessage done [00:36:35]OFDSenderStorePacket 123408 [00:36:35]StoreOFDPacket docnum=123408 [00:36:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 2B 01 00 00 87 70 23 01 7E 51 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 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 31 FF 03 08 00 03 7E 68 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 39 D6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C D6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 4D 00 00 00 00 07 04 06 00 2C D6 02 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 97 17 E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 27 04 04 00 0F E2 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 10 E2 01 00 35 04 06 00 70 21 07 C4 93 83 99 F1 44 DB 47 B8 CF F6 [00:36:35]CheckFolder [00:36:35]dirname=/storage/ofd_packets [00:36:35]CheckFolder done [00:36:35]ProducePacketName [00:36:35]name=ofd_packets/00123408 [00:36:35]NVStorageSaveData ofd_packets/00123408 [00:36:35]File name is /storage/ofd_packets/00123408 [00:36:35]Write 329 bytes [00:36:35]NVStorageSaveData done [00:36:35]OFDSenderStorePacket done [00:36:35]KKMCreateOFDPacket done [00:36:35]NVStorageSaveData kkm_last_timestamp [00:36:35]File name is /storage/kkm_last_timestamp [00:36:35]Write 4 bytes [00:36:35]NVStorageSaveData done [00:36:35]ExternCall_PrintAddStr [00:36:35]wPrintStart [00:36:35]Write to MH i2c: 01 00 00 02 60 62 [00:36:35]Write i2c OK [00:36:35]MH_I2C_Read... [00:36:35]Read from MH i2c: 01 [00:36:35]MH_I2C_Read... [00:36:35]Read from MH i2c: 01 07 00 [00:36:35]MH_I2C_Read... [00:36:35]Read from MH i2c: 01 07 00 02 60 00 00 00 00 00 FF 0F 77 [00:36:35]RasterBufferAndPrint [00:36:35]line Счет N : (1)1106393 [00:36:35]line ИНН: 02508201610067 [00:36:35]line Контрольно-Кассовый Чек [00:36:35]line ВОЗВРАТ ПРОДАЖИ [00:36:35]line ТРК (МРК, ГНК) : 63 [00:36:35]line Товар: 2710124100 [00:36:35]line Аи-95-К-1 [00:36:35]line 26.750 * 69.50 [00:36:35]line = 1859.13 [00:36:35]line НДС 12% НСП 1% [00:36:35]line > о реализуемом товаре [00:36:35]line ОКРУГЛЕНИЕ: -0.13 [00:36:35]line ИТОГО: 1859.00 [00:36:35]line НСП 1% : 16.45 [00:36:35]line НДС 12% : 197.43 [00:36:35]line Наличными: 1859.00 [00:36:35]line Безнал.: 0.00 [00:36:35]line Место: АЗС № 25 "Партнер Нефть" [00:36:35]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [00:36:35]line СНО: Общий режим [00:36:35]line Чек 8 04.03.2024 00:36 [00:36:35]line Смена: 324 ФФД: 1.0 [00:36:35]line ЗНМ: 0300000019 [00:36:35]line РНМ: 0000000000090573 [00:36:35]line Версия ККМ: 001 [00:36:35]line ФД осн.: 123407 [00:36:35]line ФМ осн.: 0000000000874798 [00:36:35]line ФМ: 0000000000874798 [00:36:35]line ФД: 123408 [00:36:35]line ФПД: 123287166555011 [00:36:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240304T003639&type=2&operation_type=1&fn_number=0000000000874798&fd_number=123408&fm=123287166555011&tin=02508201610067®Number=0000000000090573&sum=185900 [00:36:35]written 0, free lines is 4095 [00:36:35]OFD Sender: Processing packet 123408 [packets to send 112, broken 111] [00:36:35]ProducePacketName [00:36:35]name=ofd_packets/00123408 [00:36:35]OFD Sender: To server: pG, [00:36:35]CommunicateWithHost lk.salyk.kg:30040 [00:36:35]ConnectInit lk.salyk.kg [00:36:35]Connected sock=10 [00:36: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 37 39 38 2B 01 00 00 87 70 23 01 7E 51 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 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 31 FF 03 08 00 03 7E 68 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 39 D6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C D6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 4D 00 00 00 00 07 04 06 00 2C D6 02 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 97 17 E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 27 04 04 00 0F E2 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 10 E2 01 00 35 04 06 00 70 21 07 C4 93 83 99 F1 44 DB 47 B8 CF F6 [00:36:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 D0 7B 47 00 48 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 37 39 38 10 04 04 00 10 E2 01 00 F4 03 04 00 C1 C3 E4 65 B6 04 01 00 00 8E 8B 74 9F 67 37 FD 89 [00:36:35]CommunicateWithHost err = 0 [00:36:35]CheckOFDResponse [00:36:35]1017 (14) - 77093643461234 [00:36:35]1041 (16) - 0000000000874798 [00:36:35]1040 (4) - 123408 [00:36:35]1012 (4) - 03.03.2024 18:38 [00:36:35]1206 (1) - 0 [00:36:35]OFD Sender: Remove packet 123408 [00:36:35]ProducePacketName [00:36:35]name=ofd_packets/00123408 [00:36:35]NVStorageDeleteData [00:36:36]Write to MH i2c: 01 00 00 2D 60 8D [00:36:36]Write i2c OK [00:36:36]MH_I2C_Read... [00:36:36]Read from MH i2c: 01 [00:36:36]MH_I2C_Read... [00:36:36]Read from MH i2c: 01 07 00 [00:36:36]MH_I2C_Read... [00:36:36]Read from MH i2c: 01 07 00 2D 60 00 00 00 00 00 06 0D A7 [00:36:36]RasterBufferAndPrint [00:36:36]line [00:36:36]line [00:36:36]line [00:36:36]line [00:36:36]line [00:36:36]written 0, free lines is 3342 [00:36:36]MH_Cut [00:36:36]Write to MH i2c: D1 01 00 34 60 01 66 [00:36:36]Write i2c OK [00:36:36]MH_I2C_Read... [00:36:36]Read from MH i2c: D1 [00:36:36]MH_I2C_Read... [00:36:36]Read from MH i2c: D1 01 00 [00:36:36]MH_I2C_Read... [00:36:36]Read from MH i2c: D1 01 00 34 60 00 65 [00:36:36]Write to MH i2c: 01 00 00 35 60 95 [00:36:36]Write i2c OK [00:36:36]MH_I2C_Read... [00:36:36]OFD Sender: No OFD packet to send [00:36:36]*** Cut start [00:36:36]*** Purtial cut [00:36:36]*** Stage 1: CUTSNS_PIN = 1 [00:36:38]Read from MH i2c: 01 [00:36:38]MH_I2C_Read... [00:36:38]*** Stop cut motor [00:36:38]*** Cut end [00:36:38]Read from MH i2c: 01 07 00 [00:36:38]MH_I2C_Read... [00:36:38]Read from MH i2c: 01 07 00 35 60 00 00 00 00 00 FF 0F AA [00:36:38]process_action close_receipt done [00:36:38]requested_data is exist [00:36:38]produce_requested_data [00:36:38]requested_item fm.sn is exist - process it [00:36:38]wFMCommunicate request_size=4 [00:36:38]MH_SAM_APDU [00:36:38]CAPDU: 80 11 00 00 [00:36:38]Write to MH i2c: E2 08 00 36 60 80 11 00 00 00 00 00 00 10 [00:36:38]Write i2c OK [00:36:38]MH_I2C_Read... [00:36:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:36:38]Read from MH i2c: E2 [00:36:38]MH_I2C_Read... [00:36:38]Read from MH i2c: E2 17 00 [00:36:38]MH_I2C_Read... [00:36:38]Read from MH i2c: E2 17 00 36 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 6E [00:36:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [00:36:38]wFMCommunicate OK [00:36:38]requested_item fd.num is exist - process it [00:36:38]SAM_PROTO_GetFieldsCounters [00:36:38]wFMCommunicate request_size=4 [00:36:38]MH_SAM_APDU [00:36:38]CAPDU: 80 13 00 00 [00:36:38]Write to MH i2c: E2 08 00 37 60 80 13 00 00 00 00 00 00 13 [00:36:38]Write i2c OK [00:36:38]MH_I2C_Read... [00:36:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:36:39]Read from MH i2c: E2 [00:36:39]MH_I2C_Read... [00:36:39]Read from MH i2c: E2 62 00 [00:36:39]MH_I2C_Read... [00:36:39]Read from MH i2c: E2 62 00 37 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 10 E2 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 8E [00:36: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 10 E2 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:36:39]wFMCommunicate OK [00:36:39]SAM_PROTO_GetFieldsCounters done [00:36:39]requested_item shift.num is exist - process it [00:36:39]requested_item shift.opened is exist - process it [00:36:39]req_shift_opened [00:36:39]FM_GetShiftState [00:36:39]SAM_PROTO_GetShiftState [00:36:39]wFMCommunicate request_size=4 [00:36:39]MH_SAM_APDU [00:36:39]CAPDU: 80 13 01 00 [00:36:39]Write to MH i2c: E2 08 00 38 60 80 13 01 00 00 00 00 00 15 [00:36:39]Write i2c OK [00:36:39]MH_I2C_Read... [00:36:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:36:39]Read from MH i2c: E2 [00:36:39]MH_I2C_Read... [00:36:39]Read from MH i2c: E2 0E 00 [00:36:39]MH_I2C_Read... [00:36:39]Read from MH i2c: E2 0E 00 38 60 00 09 00 01 B0 11 E5 65 00 00 00 00 90 00 2C [00:36:39]RAPDU: 09 00 01 B0 11 E5 65 00 00 00 00 90 00 [00:36:39]wFMCommunicate OK [00:36:39]SAM_PROTO_GetShiftState done [00:36:39]FM_GetShiftState done [00:36:39]req_shift_opened done [00:36:39]requested_item shift.open_date is exist - process it [00:36:39]req_shift_open_date [00:36:39]req_shift_open_date done [00:36:39]produce_requested_data done [00:36:39]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123408,"shift.num":324,"shift.opened":1,"shift.open_date":1709511088} [00:36:39]process_action_free close_receipt [00:36:39]json_value_free [00:36:39]json_value_free done [00:36:39]process_json_proto returns [00:36:39]Send response to host [00:36:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123408,"shift.num":324,"shift.opened":1,"shift.open_date":1709511088}}} [00:36:39]free response buf [00:36:39]execute_script done [00:36:39]execute_script returns [00:36:39]free content buf [00:36:39]Sock 7.Close socket [00:36:39]Sock 7.Thread stoped [00:36:39]accept exits with 9 [00:36:39]New connection [00:36:39]New thread 3067252068 created [00:36:39]Thread 3067395428 joined [00:36:39]Waiting for new connection... [00:36:39] Sock 9.Parse request [00:36:39]Sock 9.Check first char [00:36:39]Sock 9.First char is OK [00:36:39]request: POST /json_proto HTTP/1.0 [00:36:39]Method: POST [00:36:39]URL: /json_proto [00:36:39]Method is POST - this is cgi request [00:36:39]url: /json_proto [00:36:39]query_string will be loaded in cgi processing [00:36:39]execute_cgi json_proto POST (null) [00:36:39]execute_cgi path=json_proto method=POST [00:36:39]POST find Content-Length [00:36:39]Host: 172.17.48.197:8080 [00:36:39]Content-Length: 676 [00:36:39]Content-Type: application/json [00:36:39] [00:36:39]POST finish read [00:36:39]Found Content-Length = 676 [00:36:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106393", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124100", "name": "\u0410\u0438-95-\u041A-1", "price" : 69.50, "quantity" : 0.630, "sum" : 43.79, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1859.00, "total" : 43.00, "payments": [ { "type": 0, "sum" : 43.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:36:39]execute_script... [00:36: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)1106393", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124100", "name": "\u0410\u0438-95-\u041A-1", "price" : 69.50, "quantity" : 0.630, "sum" : 43.79, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1859.00, "total" : 43.00, "payments": [ { "type": 0, "sum" : 43.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:36:39]POST & json_proto [00:36:39]process_json_proto [00:36:39]json parsed OK: [00:36:39]protocol is kg_v1.0 [00:36:39]action value=close_receipt [00:36:39]process_action close_receipt [00:36:39]cmd_close_receipt [00:36:39]MH_GetDate [00:36:39]Write to MH i2c: F0 00 00 39 60 88 [00:36:39]Write i2c OK [00:36:39]MH_I2C_Read... [00:36:39]Read from MH i2c: F0 [00:36:39]MH_I2C_Read... [00:36:39]Read from MH i2c: F0 09 00 [00:36:39]MH_I2C_Read... [00:36:39]Read from MH i2c: F0 09 00 39 60 00 9D 17 E5 65 6C AF E3 65 F2 [00:36:39]GetLastDocTimeStamp 1709512599 [00:36:39]current date 1709512605 [00:36:39]FM_GetShiftState [00:36:39]SAM_PROTO_GetShiftState [00:36:39]wFMCommunicate request_size=4 [00:36:39]MH_SAM_APDU [00:36:39]CAPDU: 80 13 01 00 [00:36:39]Write to MH i2c: E2 08 00 3A 60 80 13 01 00 00 00 00 00 17 [00:36:39]Write i2c OK [00:36:39]MH_I2C_Read... [00:36:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:36:39]Read from MH i2c: E2 [00:36:39]MH_I2C_Read... [00:36:39]Read from MH i2c: E2 0E 00 [00:36:39]MH_I2C_Read... [00:36:39]Read from MH i2c: E2 0E 00 3A 60 00 09 00 01 B0 11 E5 65 00 00 00 00 90 00 2E [00:36:39]RAPDU: 09 00 01 B0 11 E5 65 00 00 00 00 90 00 [00:36:39]wFMCommunicate OK [00:36:39]SAM_PROTO_GetShiftState done [00:36:39]FM_GetShiftState done [00:36:39]opened in 1709511088 [00:36:39]opened+sec_in_day 1709597488 [00:36:39]quantity*price = 4378 [00:36:39]sum+1 = 4380 [00:36:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.79 ИТОГО: 43.00 Внесено: 1859.00 СДАЧА: 1816.00 НСП 1% : 0.39 НДС 12% : 4.65 Наличными: 43.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 9 04.03.2024 00:36 Смена: 324 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123409 ФПД: 126642520633269 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240304T003645&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123409&fm=126642520633269&tin=02508201610067®Number=0000000000090573&sum=4300 [00:36:40]StoreToDocumentArchive [00:36:40]shift 324 fd 123409 [00:36:40]save to /storage/0324/doc_00123409 [00:36:40]save last doc name /storage/0324/doc_00123409 to /storage/kkm_last_doc_name [00:36:40]save OK [00:36:40]Clear old archive folders... [00:36:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:36:40]tlvbuf is 00DEF390 [00:36:40]SAM_PROTO_ClearQueue [00:36:40]wFMCommunicate request_size=4 [00:36:40]MH_SAM_APDU [00:36:40]CAPDU: 80 09 00 00 [00:36:40]Write to MH i2c: E2 08 00 47 60 80 09 00 00 00 00 00 00 19 [00:36:40]Write i2c OK [00:36:40]MH_I2C_Read... [00:36:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:36:40]Read from MH i2c: E2 [00:36:40]MH_I2C_Read... [00:36:40]Read from MH i2c: E2 03 00 [00:36:40]MH_I2C_Read... [00:36:40]Read from MH i2c: E2 03 00 47 60 00 90 00 1B [00:36:40]RAPDU: 90 00 [00:36:40]wFMCommunicate OK [00:36:40]SAM_PROTO_ClearQueue done [00:36:40]KKMCreateOFDPacket [00:36:40]OFDProtocolAddRootSTLVToBuf [00:36:40]FM_MakeSignedData [00:36:40]FM_MakeSignedData [00:36:40]SAM_PROTO_SignData [00:36:40]wFMCommunicate request_size=4 [00:36:40]MH_SAM_APDU [00:36:40]CAPDU: 80 0D 01 02 [00:36:40]Write to MH i2c: E2 08 00 48 60 80 0D 01 02 00 00 00 00 21 [00:36:40]Write i2c OK [00:36:40]MH_I2C_Read... [00:36:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:36:40]Read from MH i2c: E2 [00:36:40]MH_I2C_Read... [00:36:40]Read from MH i2c: E2 03 00 [00:36:40]MH_I2C_Read... [00:36:40]Read from MH i2c: E2 03 00 48 60 00 90 00 1C [00:36:40]RAPDU: 90 00 [00:36:40]wFMCommunicate OK [00:36:40]wFMCommunicate request_size=255 [00:36:40]MH_SAM_APDU [00:36: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 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 31 FF 03 08 00 03 76 02 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 1B 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 10 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 D1 01 00 00 00 00 07 04 06 00 CC 10 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 9D 17 E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 11 E2 01 00 35 04 06 00 73 [00:36:40]Write to MH i2c: E2 02 01 49 60 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 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 31 FF 03 08 00 03 76 02 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 1B 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 10 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 D1 01 00 00 00 00 07 04 06 00 CC 10 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 9D 17 E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 11 E2 01 00 35 04 06 00 73 00 00 7A [00:36:40]Write i2c OK [00:36:40]MH_I2C_Read... [00:36:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:36:41]Read from MH i2c: E2 [00:36:41]MH_I2C_Read... [00:36:41]Read from MH i2c: E2 03 00 [00:36:41]MH_I2C_Read... [00:36:41]Read from MH i2c: E2 03 00 49 60 00 90 00 1D [00:36:41]RAPDU: 90 00 [00:36:41]wFMCommunicate OK [00:36:41]wFMCommunicate request_size=10 [00:36:41]MH_SAM_APDU [00:36:41]CAPDU: 80 0D 02 02 05 2E 42 74 AF B5 [00:36:41]Write to MH i2c: E2 0D 00 4A 60 80 0D 02 02 05 00 2E 42 74 AF B5 00 00 76 [00:36:41]Write i2c OK [00:36:41]MH_I2C_Read... [00:36:41]OFD Sender: No OFD packet to send [00:36:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:36:41]Read from MH i2c: E2 [00:36:41]MH_I2C_Read... [00:36:41]Read from MH i2c: E2 03 00 [00:36:41]MH_I2C_Read... [00:36:41]Read from MH i2c: E2 03 00 4A 60 00 90 00 1E [00:36:41]RAPDU: 90 00 [00:36:41]wFMCommunicate OK [00:36:41]wFMCommunicate request_size=4 [00:36:41]MH_SAM_APDU [00:36:41]CAPDU: 80 0D 03 02 [00:36:41]Write to MH i2c: E2 08 00 4B 60 80 0D 03 02 00 00 00 00 26 [00:36:41]Write i2c OK [00:36:41]MH_I2C_Read... [00:36:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:36:41]Read from MH i2c: E2 [00:36:41]MH_I2C_Read... [00:36:41]Read from MH i2c: E2 0B 00 [00:36:41]MH_I2C_Read... [00:36:41]Read from MH i2c: E2 0B 00 4B 60 00 66 3E C4 97 B7 F6 7F D0 90 00 22 [00:36:41]RAPDU: 66 3E C4 97 B7 F6 7F D0 90 00 [00:36:41]wFMCommunicate OK [00:36:41]SAM_PROTO_SignData done [00:36:41]FM_MakeSignedData done [00:36:41]CreateOFDProtocolMessage [00:36:41]wFMCommunicate request_size=4 [00:36:41]MH_SAM_APDU [00:36:41]CAPDU: 80 11 00 00 [00:36:41]Write to MH i2c: E2 08 00 4C 60 80 11 00 00 00 00 00 00 26 [00:36:41]Write i2c OK [00:36:41]MH_I2C_Read... [00:36:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:36:41]Read from MH i2c: E2 [00:36:41]MH_I2C_Read... [00:36:41]Read from MH i2c: E2 17 00 [00:36:41]MH_I2C_Read... [00:36:41]Read from MH i2c: E2 17 00 4C 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 84 [00:36:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [00:36:41]wFMCommunicate OK [00:36:41]CreateOFDProtocolMessage done [00:36:41]OFDSenderStorePacket 123409 [00:36:41]StoreOFDPacket docnum=123409 [00:36:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 47 57 07 01 B9 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 31 FF 03 08 00 03 76 02 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 1B 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 10 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 D1 01 00 00 00 00 07 04 06 00 CC 10 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 9D 17 E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 11 E2 01 00 35 04 06 00 73 2E 42 74 AF B5 66 3E C4 97 B7 F6 7F D0 [00:36:41]CheckFolder [00:36:41]dirname=/storage/ofd_packets [00:36:41]CheckFolder done [00:36:41]ProducePacketName [00:36:41]name=ofd_packets/00123409 [00:36:41]NVStorageSaveData ofd_packets/00123409 [00:36:41]File name is /storage/ofd_packets/00123409 [00:36:41]Write 301 bytes [00:36:41]NVStorageSaveData done [00:36:41]OFDSenderStorePacket done [00:36:41]KKMCreateOFDPacket done [00:36:41]NVStorageSaveData kkm_last_timestamp [00:36:41]File name is /storage/kkm_last_timestamp [00:36:41]Write 4 bytes [00:36:41]NVStorageSaveData done [00:36:41]ExternCall_PrintAddStr [00:36:41]wPrintStart [00:36:41]Write to MH i2c: 01 00 00 4D 60 AD [00:36:41]Write i2c OK [00:36:41]MH_I2C_Read... [00:36:41]Read from MH i2c: 01 [00:36:41]MH_I2C_Read... [00:36:41]Read from MH i2c: 01 07 00 [00:36:41]MH_I2C_Read... [00:36:41]Read from MH i2c: 01 07 00 4D 60 00 00 00 00 00 FF 0F C2 [00:36:41]RasterBufferAndPrint [00:36:41]line Счет N : (1)1106393 [00:36:41]line ИНН: 02508201610067 [00:36:41]line Контрольно-Кассовый Чек [00:36:41]line ПРОДАЖА [00:36:41]line ТРК (МРК, ГНК) : 63 [00:36:41]line Товар: 2710124100 [00:36:41]line Аи-95-К-1 [00:36:41]line 0.630 * 69.50 [00:36:41]line = 43.79 [00:36:41]line НДС 12% НСП 1% [00:36:41]line > о реализуемом товаре [00:36:41]line ОКРУГЛЕНИЕ: -0.79 [00:36:41]line ИТОГО: 43.00 [00:36:41]line Внесено: 1859.00 [00:36:41]line СДАЧА: 1816.00 [00:36:41]line НСП 1% : 0.39 [00:36:41]line НДС 12% : 4.65 [00:36:41]line Наличными: 43.00 [00:36:41]line Безнал.: 0.00 [00:36:41]line Место: АЗС № 25 "Партнер Нефть" [00:36:41]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [00:36:41]line СНО: Общий режим [00:36:41]line Чек 9 04.03.2024 00:36 [00:36:41]line Смена: 324 ФФД: 1.0 [00:36:41]line ЗНМ: 0300000019 [00:36:41]line РНМ: 0000000000090573 [00:36:41]line Версия ККМ: 001 [00:36:41]line ФМ: 0000000000874798 [00:36:41]line ФД: 123409 [00:36:41]line ФПД: 126642520633269 [00:36:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240304T003645&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123409&fm=126642520633269&tin=02508201610067®Number=0000000000090573&sum=4300 [00:36:41]written 0, free lines is 4095 [00:36:41]OFD Sender: Processing packet 123409 [packets to send 112, broken 111] [00:36:41]ProducePacketName [00:36:41]name=ofd_packets/00123409 [00:36:41]OFD Sender: To server: pG, [00:36:41]CommunicateWithHost lk.salyk.kg:30040 [00:36:41]ConnectInit lk.salyk.kg [00:36:41]Connected sock=10 [00:36: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 37 39 38 0F 01 00 00 47 57 07 01 B9 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 31 FF 03 08 00 03 76 02 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 1B 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 10 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 D1 01 00 00 00 00 07 04 06 00 CC 10 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 9D 17 E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 11 E2 01 00 35 04 06 00 73 2E 42 74 AF B5 66 3E C4 97 B7 F6 7F D0 [00:36:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 83 C5 47 00 9A 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 37 39 38 10 04 04 00 11 E2 01 00 F4 03 04 00 C7 C3 E4 65 B6 04 01 00 00 A4 AF AB 35 FF 08 44 69 [00:36:42]CommunicateWithHost err = 0 [00:36:42]CheckOFDResponse [00:36:42]1017 (14) - 77093643461234 [00:36:42]1041 (16) - 0000000000874798 [00:36:42]1040 (4) - 123409 [00:36:42]1012 (4) - 03.03.2024 18:39 [00:36:42]1206 (1) - 0 [00:36:42]OFD Sender: Remove packet 123409 [00:36:42]ProducePacketName [00:36:42]name=ofd_packets/00123409 [00:36:42]NVStorageDeleteData [00:36:42]Write to MH i2c: 01 00 00 78 60 D8 [00:36:42]Write i2c OK [00:36:42]MH_I2C_Read... [00:36:42]Read from MH i2c: 01 [00:36:42]MH_I2C_Read... [00:36:42]Read from MH i2c: 01 07 00 [00:36:42]MH_I2C_Read... [00:36:42]Read from MH i2c: 01 07 00 78 60 00 00 00 00 00 01 0D ED [00:36:42]RasterBufferAndPrint [00:36:42]line [00:36:42]line [00:36:42]line [00:36:42]line [00:36:42]line [00:36:42]written 0, free lines is 3347 [00:36:42]MH_Cut [00:36:42]Write to MH i2c: D1 01 00 7F 60 01 B1 [00:36:42]Write i2c OK [00:36:42]MH_I2C_Read... [00:36:42]Read from MH i2c: D1 [00:36:42]MH_I2C_Read... [00:36:42]Read from MH i2c: D1 01 00 [00:36:42]MH_I2C_Read... [00:36:42]Read from MH i2c: D1 01 00 7F 60 00 B0 [00:36:42]Write to MH i2c: 01 00 00 80 60 E0 [00:36:42]Write i2c OK [00:36:42]MH_I2C_Read... [00:36:42]OFD Sender: No OFD packet to send [00:36:42]*** Cut start [00:36:42]*** Purtial cut [00:36:42]*** Stage 1: CUTSNS_PIN = 1 [00:36:44]Read from MH i2c: 01 [00:36:44]MH_I2C_Read... [00:36:44]*** Stop cut motor [00:36:44]*** Cut end [00:36:44]Read from MH i2c: 01 07 00 [00:36:44]MH_I2C_Read... [00:36:44]Read from MH i2c: 01 07 00 80 60 00 00 00 00 00 FF 0F F5 [00:36:44]process_action close_receipt done [00:36:44]requested_data is exist [00:36:44]produce_requested_data [00:36:44]requested_item fm.sn is exist - process it [00:36:44]wFMCommunicate request_size=4 [00:36:44]MH_SAM_APDU [00:36:44]CAPDU: 80 11 00 00 [00:36:44]Write to MH i2c: E2 08 00 81 60 80 11 00 00 00 00 00 00 5B [00:36:44]Write i2c OK [00:36:44]MH_I2C_Read... [00:36:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:36:44]Read from MH i2c: E2 [00:36:44]MH_I2C_Read... [00:36:44]Read from MH i2c: E2 17 00 [00:36:44]MH_I2C_Read... [00:36:44]Read from MH i2c: E2 17 00 81 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 B9 [00:36:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [00:36:44]wFMCommunicate OK [00:36:44]requested_item fd.num is exist - process it [00:36:44]SAM_PROTO_GetFieldsCounters [00:36:44]wFMCommunicate request_size=4 [00:36:44]MH_SAM_APDU [00:36:44]CAPDU: 80 13 00 00 [00:36:44]Write to MH i2c: E2 08 00 82 60 80 13 00 00 00 00 00 00 5E [00:36:44]Write i2c OK [00:36:44]MH_I2C_Read... [00:36:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:36:45]Read from MH i2c: E2 [00:36:45]MH_I2C_Read... [00:36:45]Read from MH i2c: E2 62 00 [00:36:45]MH_I2C_Read... [00:36:45]Read from MH i2c: E2 62 00 82 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 11 E2 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [00:36: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 11 E2 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:36:45]wFMCommunicate OK [00:36:45]SAM_PROTO_GetFieldsCounters done [00:36:45]requested_item shift.num is exist - process it [00:36:45]requested_item shift.opened is exist - process it [00:36:45]req_shift_opened [00:36:45]FM_GetShiftState [00:36:45]SAM_PROTO_GetShiftState [00:36:45]wFMCommunicate request_size=4 [00:36:45]MH_SAM_APDU [00:36:45]CAPDU: 80 13 01 00 [00:36:45]Write to MH i2c: E2 08 00 83 60 80 13 01 00 00 00 00 00 60 [00:36:45]Write i2c OK [00:36:45]MH_I2C_Read... [00:36:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:36:45]Read from MH i2c: E2 [00:36:45]MH_I2C_Read... [00:36:45]Read from MH i2c: E2 0E 00 [00:36:45]MH_I2C_Read... [00:36:45]Read from MH i2c: E2 0E 00 83 60 00 09 00 01 B0 11 E5 65 00 00 00 00 90 00 77 [00:36:45]RAPDU: 09 00 01 B0 11 E5 65 00 00 00 00 90 00 [00:36:45]wFMCommunicate OK [00:36:45]SAM_PROTO_GetShiftState done [00:36:45]FM_GetShiftState done [00:36:45]req_shift_opened done [00:36:45]requested_item shift.open_date is exist - process it [00:36:45]req_shift_open_date [00:36:45]req_shift_open_date done [00:36:45]produce_requested_data done [00:36:45]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123409,"shift.num":324,"shift.opened":1,"shift.open_date":1709511088} [00:36:45]process_action_free close_receipt [00:36:45]json_value_free [00:36:45]json_value_free done [00:36:45]process_json_proto returns [00:36:45]Send response to host [00:36:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123409,"shift.num":324,"shift.opened":1,"shift.open_date":1709511088}}} [00:36:45]free response buf [00:36:45]execute_script done [00:36:45]execute_script returns [00:36:45]free content buf [00:36:45]Sock 9.Close socket [00:36:45]Sock 9.Thread stoped [00:36:47]OFD Sender: No OFD packet to send [00:36:52]OFD Sender: No OFD packet to send [00:36:56]accept exits with 7 [00:36:56]New connection [00:36:56]New thread 3067395428 created [00:36:56]Thread 3067252068 joined [00:36:56]Waiting for new connection... [00:36:56] Sock 7.Parse request [00:36:56]Sock 7.Check first char [00:36:56]Sock 7.First char is OK [00:36:56]request: POST /json_proto HTTP/1.0 [00:36:56]Method: POST [00:36:56]URL: /json_proto [00:36:56]Method is POST - this is cgi request [00:36:56]url: /json_proto [00:36:56]query_string will be loaded in cgi processing [00:36:56]execute_cgi json_proto POST (null) [00:36:56]execute_cgi path=json_proto method=POST [00:36:56]POST find Content-Length [00:36:56]Host: 172.17.48.197:8080 [00:36:56]Content-Length: 683 [00:36:56]Content-Type: application/json [00:36:56] [00:36:56]POST finish read [00:36:56]Found Content-Length = 683 [00:36:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106394", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 26.750, "sum" : 1859.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1859.00, "total" : 1859.00, "payments": [ { "type": 0, "sum" : 1859.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:36:56]execute_script... [00:36: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)1106394", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 26.750, "sum" : 1859.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1859.00, "total" : 1859.00, "payments": [ { "type": 0, "sum" : 1859.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:36:56]POST & json_proto [00:36:56]process_json_proto [00:36:56]json parsed OK: [00:36:56]protocol is kg_v1.0 [00:36:56]action value=close_receipt [00:36:56]process_action close_receipt [00:36:56]cmd_close_receipt [00:36:56]MH_GetDate [00:36:56]Write to MH i2c: F0 00 00 84 60 D3 [00:36:56]Write i2c OK [00:36:56]MH_I2C_Read... [00:36:56]Read from MH i2c: F0 [00:36:56]MH_I2C_Read... [00:36:56]Read from MH i2c: F0 09 00 [00:36:56]MH_I2C_Read... [00:36:56]Read from MH i2c: F0 09 00 84 60 00 AE 17 E5 65 6C AF E3 65 4E [00:36:56]GetLastDocTimeStamp 1709512605 [00:36:56]current date 1709512622 [00:36:56]FM_GetShiftState [00:36:56]SAM_PROTO_GetShiftState [00:36:56]wFMCommunicate request_size=4 [00:36:56]MH_SAM_APDU [00:36:56]CAPDU: 80 13 01 00 [00:36:56]Write to MH i2c: E2 08 00 85 60 80 13 01 00 00 00 00 00 62 [00:36:56]Write i2c OK [00:36:56]MH_I2C_Read... [00:36:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:36:56]Read from MH i2c: E2 [00:36:56]MH_I2C_Read... [00:36:56]Read from MH i2c: E2 0E 00 [00:36:56]MH_I2C_Read... [00:36:56]Read from MH i2c: E2 0E 00 85 60 00 09 00 01 B0 11 E5 65 00 00 00 00 90 00 79 [00:36:56]RAPDU: 09 00 01 B0 11 E5 65 00 00 00 00 90 00 [00:36:56]wFMCommunicate OK [00:36:56]SAM_PROTO_GetShiftState done [00:36:56]FM_GetShiftState done [00:36:56]opened in 1709511088 [00:36:56]opened+sec_in_day 1709597488 [00:36:56]quantity*price = 185912 [00:36:56]sum+1 = 185914 [00:36:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1859.00 Внесено: 1859.00 СДАЧА: 0.00 НСП 1% : 16.45 НДС 12% : 197.43 Наличными: 1859.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 10 04.03.2024 00:37 Смена: 324 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123410 ФПД: 125987092488534 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240304T003702&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123410&fm=125987092488534&tin=02508201610067®Number=0000000000090573&sum=185900 [00:36:58]StoreToDocumentArchive [00:36:58]shift 324 fd 123410 [00:36:58]save to /storage/0324/doc_00123410 [00:36:58]save last doc name /storage/0324/doc_00123410 to /storage/kkm_last_doc_name [00:36:58]save OK [00:36:58]Clear old archive folders... [00:36:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:36:58]tlvbuf is 00DA8CE0 [00:36:58]SAM_PROTO_ClearQueue [00:36:58]wFMCommunicate request_size=4 [00:36:58]MH_SAM_APDU [00:36:58]CAPDU: 80 09 00 00 [00:36:58]Write to MH i2c: E2 08 00 92 60 80 09 00 00 00 00 00 00 64 [00:36:58]Write i2c OK [00:36:58]MH_I2C_Read... [00:36:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:36:58]Read from MH i2c: E2 [00:36:58]MH_I2C_Read... [00:36:58]Read from MH i2c: E2 03 00 [00:36:58]MH_I2C_Read... [00:36:58]Read from MH i2c: E2 03 00 92 60 00 90 00 66 [00:36:58]RAPDU: 90 00 [00:36:58]wFMCommunicate OK [00:36:58]SAM_PROTO_ClearQueue done [00:36:58]KKMCreateOFDPacket [00:36:58]OFDProtocolAddRootSTLVToBuf [00:36:58]FM_MakeSignedData [00:36:58]FM_MakeSignedData [00:36:58]SAM_PROTO_SignData [00:36:58]wFMCommunicate request_size=4 [00:36:58]MH_SAM_APDU [00:36:58]CAPDU: 80 0D 01 02 [00:36:58]Write to MH i2c: E2 08 00 93 60 80 0D 01 02 00 00 00 00 6C [00:36:58]Write i2c OK [00:36:58]MH_I2C_Read... [00:36:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:36:58]Read from MH i2c: E2 [00:36:58]MH_I2C_Read... [00:36:58]Read from MH i2c: E2 03 00 [00:36:58]MH_I2C_Read... [00:36:58]Read from MH i2c: E2 03 00 93 60 00 90 00 67 [00:36:58]RAPDU: 90 00 [00:36:58]wFMCommunicate OK [00:36:58]wFMCommunicate request_size=255 [00:36:58]MH_SAM_APDU [00:36:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7E 68 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 39 D6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C D6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 4D 00 00 00 00 07 04 06 00 2C D6 02 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 AE 17 E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 12 E2 01 00 35 04 06 00 72 [00:36:58]Write to MH i2c: E2 02 01 94 60 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7E 68 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 39 D6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C D6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 4D 00 00 00 00 07 04 06 00 2C D6 02 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 AE 17 E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 12 E2 01 00 35 04 06 00 72 00 00 68 [00:36:58]Write i2c OK [00:36:58]MH_I2C_Read... [00:36:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:36:58]Read from MH i2c: E2 [00:36:58]MH_I2C_Read... [00:36:58]Read from MH i2c: E2 03 00 [00:36:58]MH_I2C_Read... [00:36:58]Read from MH i2c: E2 03 00 94 60 00 90 00 68 [00:36:58]RAPDU: 90 00 [00:36:58]wFMCommunicate OK [00:36:58]wFMCommunicate request_size=10 [00:36:58]MH_SAM_APDU [00:36:58]CAPDU: 80 0D 02 02 05 95 A7 E4 E1 56 [00:36:58]Write to MH i2c: E2 0D 00 95 60 80 0D 02 02 05 00 95 A7 E4 E1 56 00 00 D0 [00:36:58]Write i2c OK [00:36:58]MH_I2C_Read... [00:36:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:36:58]Read from MH i2c: E2 [00:36:58]MH_I2C_Read... [00:36:58]Read from MH i2c: E2 03 00 [00:36:58]MH_I2C_Read... [00:36:58]Read from MH i2c: E2 03 00 95 60 00 90 00 69 [00:36:58]RAPDU: 90 00 [00:36:58]wFMCommunicate OK [00:36:58]wFMCommunicate request_size=4 [00:36:58]MH_SAM_APDU [00:36:58]CAPDU: 80 0D 03 02 [00:36:58]Write to MH i2c: E2 08 00 96 60 80 0D 03 02 00 00 00 00 71 [00:36:58]Write i2c OK [00:36:58]MH_I2C_Read... [00:36:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:36:58]Read from MH i2c: E2 [00:36:58]MH_I2C_Read... [00:36:58]Read from MH i2c: E2 0B 00 [00:36:58]MH_I2C_Read... [00:36:58]Read from MH i2c: E2 0B 00 96 60 00 8A 36 5B 5D 97 59 95 DC 90 00 4B [00:36:58]RAPDU: 8A 36 5B 5D 97 59 95 DC 90 00 [00:36:58]wFMCommunicate OK [00:36:58]SAM_PROTO_SignData done [00:36:58]FM_MakeSignedData done [00:36:58]CreateOFDProtocolMessage [00:36:58]wFMCommunicate request_size=4 [00:36:58]MH_SAM_APDU [00:36:58]CAPDU: 80 11 00 00 [00:36:58]Write to MH i2c: E2 08 00 97 60 80 11 00 00 00 00 00 00 71 [00:36:58]Write i2c OK [00:36:58]MH_I2C_Read... [00:36:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:36:58]Read from MH i2c: E2 [00:36:58]MH_I2C_Read... [00:36:58]Read from MH i2c: E2 17 00 [00:36:58]MH_I2C_Read... [00:36:58]Read from MH i2c: E2 17 00 97 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 CF [00:36:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [00:36:58]wFMCommunicate OK [00:36:58]CreateOFDProtocolMessage done [00:36:58]OFDSenderStorePacket 123410 [00:36:58]StoreOFDPacket docnum=123410 [00:36:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 97 3A 07 01 42 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7E 68 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 39 D6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C D6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 4D 00 00 00 00 07 04 06 00 2C D6 02 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 AE 17 E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 12 E2 01 00 35 04 06 00 72 95 A7 E4 E1 56 8A 36 5B 5D 97 59 95 DC [00:36:58]CheckFolder [00:36:58]dirname=/storage/ofd_packets [00:36:58]CheckFolder done [00:36:58]ProducePacketName [00:36:58]name=ofd_packets/00123410 [00:36:58]NVStorageSaveData ofd_packets/00123410 [00:36:58]File name is /storage/ofd_packets/00123410 [00:36:58]Write 301 bytes [00:36:58]NVStorageSaveData done [00:36:58]OFDSenderStorePacket done [00:36:58]KKMCreateOFDPacket done [00:36:58]NVStorageSaveData kkm_last_timestamp [00:36:58]File name is /storage/kkm_last_timestamp [00:36:58]Write 4 bytes [00:36:58]NVStorageSaveData done [00:36:58]ExternCall_PrintAddStr [00:36:58]wPrintStart [00:36:58]Write to MH i2c: 01 00 00 98 60 F8 [00:36:58]OFD Sender: Processing packet 123410 [packets to send 112, broken 111] [00:36:58]ProducePacketName [00:36:58]name=ofd_packets/00123410 [00:36:58]OFD Sender: To server: pG, [00:36:58]CommunicateWithHost lk.salyk.kg:30040 [00:36:58]ConnectInit lk.salyk.kg [00:36:58]Write i2c OK [00:36:58]MH_I2C_Read... [00:36:58]Read from MH i2c: 01 [00:36:58]MH_I2C_Read... [00:36:58]Read from MH i2c: 01 07 00 [00:36:58]MH_I2C_Read... [00:36:58]Read from MH i2c: 01 07 00 98 60 00 00 00 00 00 FF 0F 0D [00:36:58]RasterBufferAndPrint [00:36:58]line Счет N : (1)1106394 [00:36:58]line ИНН: 02508201610067 [00:36:58]line Контрольно-Кассовый Чек [00:36:58]line ПРОДАЖА [00:36:58]line ТРК (МРК, ГНК) : 63 [00:36:58]line Товар: 2710124500 [00:36:58]line Аи-95-К-5 [00:36:58]line 26.750 * 69.50 [00:36:58]line = 1859.13 [00:36:58]line НДС 12% НСП 1% [00:36:58]line > о реализуемом товаре [00:36:58]line ОКРУГЛЕНИЕ: -0.13 [00:36:58]line ИТОГО: 1859.00 [00:36:58]line Внесено: 1859.00 [00:36:58]line СДАЧА: 0.00 [00:36:58]line НСП 1% : 16.45 [00:36:58]line НДС 12% : 197.43 [00:36:58]line Наличными: 1859.00 [00:36:58]line Безнал.: 0.00 [00:36:58]line Место: АЗС № 25 "Партнер Нефть" [00:36:58]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [00:36:58]line СНО: Общий режим [00:36:58]line Чек 10 04.03.2024 00:37 [00:36:58]line Смена: 324 ФФД: 1.0 [00:36:58]line ЗНМ: 0300000019 [00:36:58]line РНМ: 0000000000090573 [00:36:58]line Версия ККМ: 001 [00:36:58]line ФМ: 0000000000874798 [00:36:58]line ФД: 123410 [00:36:58]line ФПД: 125987092488534 [00:36:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240304T003702&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123410&fm=125987092488534&tin=02508201610067®Number=0000000000090573&sum=185900 [00:36:58]written 0, free lines is 4095 [00:36:58]Connected sock=10 [00:36: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 37 39 38 0F 01 00 00 97 3A 07 01 42 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7E 68 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 39 D6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C D6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 4D 00 00 00 00 07 04 06 00 2C D6 02 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 AE 17 E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 12 E2 01 00 35 04 06 00 72 95 A7 E4 E1 56 8A 36 5B 5D 97 59 95 DC [00:36:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 AD 6F 47 00 9B 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 37 39 38 10 04 04 00 12 E2 01 00 F4 03 04 00 D8 C3 E4 65 B6 04 01 00 00 48 DD EC 07 E2 C8 E9 09 [00:36:59]CommunicateWithHost err = 0 [00:36:59]CheckOFDResponse [00:36:59]1017 (14) - 77093643461234 [00:36:59]1041 (16) - 0000000000874798 [00:36:59]1040 (4) - 123410 [00:36:59]1012 (4) - 03.03.2024 18:39 [00:36:59]1206 (1) - 0 [00:36:59]OFD Sender: Remove packet 123410 [00:36:59]ProducePacketName [00:36:59]name=ofd_packets/00123410 [00:36:59]NVStorageDeleteData [00:36:59]Write to MH i2c: 01 00 00 C3 60 23 [00:36:59]Write i2c OK [00:36:59]MH_I2C_Read... [00:36:59]Read from MH i2c: 01 [00:36:59]MH_I2C_Read... [00:36:59]Read from MH i2c: 01 07 00 [00:36:59]MH_I2C_Read... [00:36:59]Read from MH i2c: 01 07 00 C3 60 00 00 00 00 00 FE 0C 34 [00:36:59]RasterBufferAndPrint [00:36:59]line [00:36:59]line [00:36:59]line [00:36:59]line [00:36:59]line [00:36:59]written 0, free lines is 3341 [00:36:59]MH_Cut [00:36:59]Write to MH i2c: D1 01 00 CA 60 01 FC [00:36:59]Write i2c OK [00:36:59]MH_I2C_Read... [00:36:59]Read from MH i2c: D1 [00:36:59]MH_I2C_Read... [00:36:59]Read from MH i2c: D1 01 00 [00:36:59]MH_I2C_Read... [00:36:59]Read from MH i2c: D1 01 00 CA 60 00 FB [00:36:59]Write to MH i2c: 01 00 00 CB 60 2B [00:36:59]Write i2c OK [00:36:59]MH_I2C_Read... [00:36:59]OFD Sender: No OFD packet to send [00:36:59]*** Cut start [00:36:59]*** Purtial cut [00:36:59]*** Stage 1: CUTSNS_PIN = 1 [00:37:01]Read from MH i2c: 01 [00:37:02]MH_I2C_Read... [00:37:02]*** Stop cut motor [00:37:02]*** Cut end [00:37:02]Read from MH i2c: 01 07 00 [00:37:02]MH_I2C_Read... [00:37:02]Read from MH i2c: 01 07 00 CB 60 00 00 00 00 00 FF 0F 40 [00:37:02]process_action close_receipt done [00:37:02]requested_data is exist [00:37:02]produce_requested_data [00:37:02]requested_item fm.sn is exist - process it [00:37:02]wFMCommunicate request_size=4 [00:37:02]MH_SAM_APDU [00:37:02]CAPDU: 80 11 00 00 [00:37:02]Write to MH i2c: E2 08 00 CC 60 80 11 00 00 00 00 00 00 A6 [00:37:02]Write i2c OK [00:37:02]MH_I2C_Read... [00:37:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:37:02]Read from MH i2c: E2 [00:37:02]MH_I2C_Read... [00:37:02]Read from MH i2c: E2 17 00 [00:37:02]MH_I2C_Read... [00:37:02]Read from MH i2c: E2 17 00 CC 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 04 [00:37:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [00:37:02]wFMCommunicate OK [00:37:02]requested_item fd.num is exist - process it [00:37:02]SAM_PROTO_GetFieldsCounters [00:37:02]wFMCommunicate request_size=4 [00:37:02]MH_SAM_APDU [00:37:02]CAPDU: 80 13 00 00 [00:37:02]Write to MH i2c: E2 08 00 CD 60 80 13 00 00 00 00 00 00 A9 [00:37:02]Write i2c OK [00:37:02]MH_I2C_Read... [00:37:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:37:02]Read from MH i2c: E2 [00:37:02]MH_I2C_Read... [00:37:02]Read from MH i2c: E2 62 00 [00:37:02]MH_I2C_Read... [00:37:02]Read from MH i2c: E2 62 00 CD 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 12 E2 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 2C [00:37: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 12 E2 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:37:02]wFMCommunicate OK [00:37:02]SAM_PROTO_GetFieldsCounters done [00:37:02]requested_item shift.num is exist - process it [00:37:02]requested_item shift.opened is exist - process it [00:37:02]req_shift_opened [00:37:02]FM_GetShiftState [00:37:02]SAM_PROTO_GetShiftState [00:37:02]wFMCommunicate request_size=4 [00:37:02]MH_SAM_APDU [00:37:02]CAPDU: 80 13 01 00 [00:37:02]Write to MH i2c: E2 08 00 CE 60 80 13 01 00 00 00 00 00 AB [00:37:02]Write i2c OK [00:37:02]MH_I2C_Read... [00:37:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:37:02]Read from MH i2c: E2 [00:37:02]MH_I2C_Read... [00:37:02]Read from MH i2c: E2 0E 00 [00:37:02]MH_I2C_Read... [00:37:02]Read from MH i2c: E2 0E 00 CE 60 00 09 00 01 B0 11 E5 65 00 00 00 00 90 00 C2 [00:37:02]RAPDU: 09 00 01 B0 11 E5 65 00 00 00 00 90 00 [00:37:02]wFMCommunicate OK [00:37:02]SAM_PROTO_GetShiftState done [00:37:02]FM_GetShiftState done [00:37:02]req_shift_opened done [00:37:02]requested_item shift.open_date is exist - process it [00:37:02]req_shift_open_date [00:37:02]req_shift_open_date done [00:37:02]produce_requested_data done [00:37:02]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123410,"shift.num":324,"shift.opened":1,"shift.open_date":1709511088} [00:37:02]process_action_free close_receipt [00:37:02]json_value_free [00:37:02]json_value_free done [00:37:02]process_json_proto returns [00:37:02]Send response to host [00:37:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123410,"shift.num":324,"shift.opened":1,"shift.open_date":1709511088}}} [00:37:02]free response buf [00:37:02]execute_script done [00:37:02]execute_script returns [00:37:02]free content buf [00:37:02]Sock 7.Close socket [00:37:02]Sock 7.Thread stoped [00:37:04]OFD Sender: No OFD packet to send [00:37:09]OFD Sender: No OFD packet to send [00:37:14]OFD Sender: No OFD packet to send [00:37:19]OFD Sender: No OFD packet to send [00:37:24]OFD Sender: No OFD packet to send [00:37:29]OFD Sender: No OFD packet to send [00:37:34]OFD Sender: No OFD packet to send [00:37:39]OFD Sender: No OFD packet to send [00:37:44]OFD Sender: No OFD packet to send [00:37:49]OFD Sender: No OFD packet to send [00:37:54]OFD Sender: No OFD packet to send [00:37:59]OFD Sender: No OFD packet to send [00:38:04]OFD Sender: No OFD packet to send [00:38:09]OFD Sender: No OFD packet to send [00:38:11]accept exits with 9 [00:38:11]New connection [00:38:11]New thread 3067252068 created [00:38:11]Thread 3067395428 joined [00:38:11]Waiting for new connection... [00:38:11] Sock 9.Parse request [00:38:11]Sock 9.Check first char [00:38:11]Sock 9.First char is OK [00:38:11]request: POST /json_proto HTTP/1.0 [00:38:11]Method: POST [00:38:11]URL: /json_proto [00:38:11]Method is POST - this is cgi request [00:38:11]url: /json_proto [00:38:11]query_string will be loaded in cgi processing [00:38:11]execute_cgi json_proto POST (null) [00:38:11]execute_cgi path=json_proto method=POST [00:38:11]POST find Content-Length [00:38:11]Host: 172.17.48.197:8080 [00:38:11]Content-Length: 823 [00:38:11]Content-Type: application/json [00:38:11] [00:38:11]POST finish read [00:38:11]Found Content-Length = 823 [00:38:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106395", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 70.90, "quantity" : 10.580, "sum" : 750.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 750.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:38:11]execute_script... [00:38: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)1106395", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 70.90, "quantity" : 10.580, "sum" : 750.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 750.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:38:11]POST & json_proto [00:38:11]process_json_proto [00:38:11]json parsed OK: [00:38:11]protocol is kg_v1.0 [00:38:11]action value=close_receipt [00:38:11]process_action close_receipt [00:38:11]cmd_close_receipt [00:38:11]MH_GetDate [00:38:11]Write to MH i2c: F0 00 00 CF 60 1E [00:38:11]Write i2c OK [00:38:11]MH_I2C_Read... [00:38:11]Read from MH i2c: F0 [00:38:11]MH_I2C_Read... [00:38:11]Read from MH i2c: F0 09 00 [00:38:11]MH_I2C_Read... [00:38:11]Read from MH i2c: F0 09 00 CF 60 00 F9 17 E5 65 6C AF E3 65 E4 [00:38:11]GetLastDocTimeStamp 1709512622 [00:38:11]current date 1709512697 [00:38:11]FM_GetShiftState [00:38:11]SAM_PROTO_GetShiftState [00:38:11]wFMCommunicate request_size=4 [00:38:11]MH_SAM_APDU [00:38:11]CAPDU: 80 13 01 00 [00:38:11]Write to MH i2c: E2 08 00 D0 60 80 13 01 00 00 00 00 00 AD [00:38:11]Write i2c OK [00:38:11]MH_I2C_Read... [00:38:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:38:11]Read from MH i2c: E2 [00:38:11]MH_I2C_Read... [00:38:11]Read from MH i2c: E2 0E 00 [00:38:11]MH_I2C_Read... [00:38:11]Read from MH i2c: E2 0E 00 D0 60 00 09 00 01 B0 11 E5 65 00 00 00 00 90 00 C4 [00:38:11]RAPDU: 09 00 01 B0 11 E5 65 00 00 00 00 90 00 [00:38:11]wFMCommunicate OK [00:38:11]SAM_PROTO_GetShiftState done [00:38:11]FM_GetShiftState done [00:38:11]opened in 1709511088 [00:38:11]opened+sec_in_day 1709597488 [00:38:11]quantity*price = 75012 [00:38:11]sum+1 = 75013 [00:38:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 750.12 НСП 1% : 6.64 НДС 12% : 79.66 Наличными: 0.00 Безнал.: 750.12 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 11 04.03.2024 00:38 Смена: 324 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874798 ФД: 123411 ФПД: 248108939595478 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240304T003817&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123411&fm=248108939595478&tin=02508201610067®Number=0000000000090573&sum=75012 [00:38:12]StoreToDocumentArchive [00:38:12]shift 324 fd 123411 [00:38:12]save to /storage/0324/doc_00123411 [00:38:12]save last doc name /storage/0324/doc_00123411 to /storage/kkm_last_doc_name [00:38:12]save OK [00:38:12]Clear old archive folders... [00:38:12]ProcessDocumentItem done err = 0, tmpTLVsize=252 [00:38:12]tlvbuf is 00F2E450 [00:38:12]SAM_PROTO_ClearQueue [00:38:12]wFMCommunicate request_size=4 [00:38:12]MH_SAM_APDU [00:38:12]CAPDU: 80 09 00 00 [00:38:12]Write to MH i2c: E2 08 00 DD 60 80 09 00 00 00 00 00 00 AF [00:38:12]Write i2c OK [00:38:12]MH_I2C_Read... [00:38:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:38:12]Read from MH i2c: E2 [00:38:12]MH_I2C_Read... [00:38:12]Read from MH i2c: E2 03 00 [00:38:12]MH_I2C_Read... [00:38:12]Read from MH i2c: E2 03 00 DD 60 00 90 00 B1 [00:38:12]RAPDU: 90 00 [00:38:12]wFMCommunicate OK [00:38:12]SAM_PROTO_ClearQueue done [00:38:12]KKMCreateOFDPacket [00:38:12]OFDProtocolAddRootSTLVToBuf [00:38:12]FM_MakeSignedData [00:38:12]FM_MakeSignedData [00:38:12]SAM_PROTO_SignData [00:38:12]wFMCommunicate request_size=4 [00:38:12]MH_SAM_APDU [00:38:12]CAPDU: 80 0D 01 02 [00:38:12]Write to MH i2c: E2 08 00 DE 60 80 0D 01 02 00 00 00 00 B7 [00:38:12]Write i2c OK [00:38:12]MH_I2C_Read... [00:38:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:38:12]Read from MH i2c: E2 [00:38:12]MH_I2C_Read... [00:38:12]Read from MH i2c: E2 03 00 [00:38:12]MH_I2C_Read... [00:38:12]Read from MH i2c: E2 03 00 DE 60 00 90 00 B2 [00:38:12]RAPDU: 90 00 [00:38:12]wFMCommunicate OK [00:38:12]wFMCommunicate request_size=255 [00:38:12]MH_SAM_APDU [00:38:12]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 35 FF 03 08 00 03 54 29 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 04 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 25 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 04 25 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 F9 17 E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 13 E2 01 00 35 04 06 00 [00:38:12]Write to MH i2c: E2 02 01 DF 60 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 35 FF 03 08 00 03 54 29 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 04 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 25 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 04 25 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 F9 17 E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 13 E2 01 00 35 04 06 00 00 00 45 [00:38:12]Write i2c OK [00:38:12]MH_I2C_Read... [00:38:12]Read from MH i2c: E2 [00:38:13]MH_I2C_Read... [00:38:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:38:13]Read from MH i2c: E2 03 00 [00:38:13]MH_I2C_Read... [00:38:13]Read from MH i2c: E2 03 00 DF 60 00 90 00 B3 [00:38:13]RAPDU: 90 00 [00:38:13]wFMCommunicate OK [00:38:13]wFMCommunicate request_size=11 [00:38:13]MH_SAM_APDU [00:38:13]CAPDU: 80 0D 02 02 06 E1 A7 5D 35 CE D6 [00:38:13]Write to MH i2c: E2 0E 00 E0 60 80 0D 02 02 06 00 E1 A7 5D 35 CE D6 00 00 84 [00:38:13]Write i2c OK [00:38:13]MH_I2C_Read... [00:38:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:38:13]Read from MH i2c: E2 [00:38:13]MH_I2C_Read... [00:38:13]Read from MH i2c: E2 03 00 [00:38:13]MH_I2C_Read... [00:38:13]Read from MH i2c: E2 03 00 E0 60 00 90 00 B4 [00:38:13]RAPDU: 90 00 [00:38:13]wFMCommunicate OK [00:38:13]wFMCommunicate request_size=4 [00:38:13]MH_SAM_APDU [00:38:13]CAPDU: 80 0D 03 02 [00:38:13]Write to MH i2c: E2 08 00 E1 60 80 0D 03 02 00 00 00 00 BC [00:38:13]Write i2c OK [00:38:13]MH_I2C_Read... [00:38:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:38:13]Read from MH i2c: E2 [00:38:13]MH_I2C_Read... [00:38:13]Read from MH i2c: E2 0B 00 [00:38:13]MH_I2C_Read... [00:38:13]Read from MH i2c: E2 0B 00 E1 60 00 4A 7D 90 03 10 06 3D D1 90 00 3B [00:38:13]RAPDU: 4A 7D 90 03 10 06 3D D1 90 00 [00:38:13]wFMCommunicate OK [00:38:13]SAM_PROTO_SignData done [00:38:13]FM_MakeSignedData done [00:38:13]CreateOFDProtocolMessage [00:38:13]wFMCommunicate request_size=4 [00:38:13]MH_SAM_APDU [00:38:13]CAPDU: 80 11 00 00 [00:38:13]Write to MH i2c: E2 08 00 E2 60 80 11 00 00 00 00 00 00 BC [00:38:13]Write i2c OK [00:38:13]MH_I2C_Read... [00:38:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:38:13]Read from MH i2c: E2 [00:38:13]MH_I2C_Read... [00:38:13]Read from MH i2c: E2 17 00 [00:38:13]MH_I2C_Read... [00:38:13]Read from MH i2c: E2 17 00 E2 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 1A [00:38:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [00:38:13]wFMCommunicate OK [00:38:13]CreateOFDProtocolMessage done [00:38:13]OFDSenderStorePacket 123411 [00:38:13]StoreOFDPacket docnum=123411 [00:38:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 01 00 00 1B 05 08 01 0D 12 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 35 FF 03 08 00 03 54 29 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 04 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 25 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 04 25 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 F9 17 E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 13 E2 01 00 35 04 06 00 E1 A7 5D 35 CE D6 4A 7D 90 03 10 06 3D D1 [00:38:13]CheckFolder [00:38:13]dirname=/storage/ofd_packets [00:38:13]CheckFolder done [00:38:13]ProducePacketName [00:38:13]name=ofd_packets/00123411 [00:38:13]NVStorageSaveData ofd_packets/00123411 [00:38:13]File name is /storage/ofd_packets/00123411 [00:38:13]Write 302 bytes [00:38:13]NVStorageSaveData done [00:38:13]OFDSenderStorePacket done [00:38:13]KKMCreateOFDPacket done [00:38:13]NVStorageSaveData kkm_last_timestamp [00:38:13]File name is /storage/kkm_last_timestamp [00:38:13]Write 4 bytes [00:38:13]NVStorageSaveData done [00:38:13]ExternCall_PrintAddStr [00:38:13]wPrintStart [00:38:13]Write to MH i2c: 01 00 00 E3 60 43 [00:38:13]Write i2c OK [00:38:13]MH_I2C_Read... [00:38:13]Read from MH i2c: 01 [00:38:13]MH_I2C_Read... [00:38:13]Read from MH i2c: 01 07 00 [00:38:13]MH_I2C_Read... [00:38:13]Read from MH i2c: 01 07 00 E3 60 00 00 00 00 00 FF 0F 58 [00:38:13]RasterBufferAndPrint [00:38:13]line Счет N : (1)1106395 [00:38:13]line ИНН: 02508201610067 [00:38:13]line Контрольно-Кассовый Чек [00:38:13]line ПРОДАЖА [00:38:13]line ТРК (МРК, ГНК) : 51 [00:38:13]line Товар: 2710194210 [00:38:13]line ДТ(л)-К-5 [00:38:13]line 10.580 * 70.90 [00:38:13]line = 750.12 [00:38:13]line НДС 12% НСП 1% [00:38:13]line > о реализуемом товаре [00:38:13]line ИТОГО: 750.12 [00:38:13]line НСП 1% : 6.64 [00:38:13]line НДС 12% : 79.66 [00:38:13]line Наличными: 0.00 [00:38:13]line Безнал.: 750.12 [00:38:13]line Место: АЗС № 25 "Партнер Нефть" [00:38:13]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [00:38:13]line СНО: Общий режим [00:38:13]line Чек 11 04.03.2024 00:38 [00:38:13]line Смена: 324 ФФД: 1.0 [00:38:13]line ЗНМ: 0300000019 [00:38:13]line РНМ: 0000000000090573 [00:38:13]line Версия ККМ: 001 [00:38:13]line Платежная система: Бакай Банк [00:38:13]line ФМ: 0000000000874798 [00:38:13]line ФД: 123411 [00:38:13]line ФПД: 248108939595478 [00:38:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240304T003817&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123411&fm=248108939595478&tin=02508201610067®Number=0000000000090573&sum=75012 [00:38:13]OFD Sender: Processing packet 123411 [packets to send 112, broken 111] [00:38:13]ProducePacketName [00:38:13]name=ofd_packets/00123411 [00:38:13]OFD Sender: To server: pG, [00:38:13]CommunicateWithHost lk.salyk.kg:30040 [00:38:13]ConnectInit lk.salyk.kg [00:38:13]written 0, free lines is 4095 [00:38:13]Connected sock=10 [00:38: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 37 39 38 10 01 00 00 1B 05 08 01 0D 12 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 35 FF 03 08 00 03 54 29 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 04 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 25 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 04 25 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 F9 17 E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 13 E2 01 00 35 04 06 00 E1 A7 5D 35 CE D6 4A 7D 90 03 10 06 3D D1 [00:38:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 F6 C8 47 00 74 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 13 E2 01 00 F4 03 04 00 23 C4 E4 65 B6 04 01 00 00 16 39 90 38 79 F8 E2 56 [00:38:13]CommunicateWithHost err = 0 [00:38:13]CheckOFDResponse [00:38:13]1017 (14) - 77093643461234 [00:38:13]1041 (16) - 0000000000874798 [00:38:13]1040 (4) - 123411 [00:38:13]1012 (4) - 03.03.2024 18:40 [00:38:13]1206 (1) - 0 [00:38:13]OFD Sender: Remove packet 123411 [00:38:13]ProducePacketName [00:38:13]name=ofd_packets/00123411 [00:38:13]NVStorageDeleteData [00:38:13]Write to MH i2c: 01 00 00 0D 61 6E [00:38:13]Write i2c OK [00:38:13]MH_I2C_Read... [00:38:13]Read from MH i2c: 01 [00:38:13]MH_I2C_Read... [00:38:13]Read from MH i2c: 01 07 00 [00:38:13]MH_I2C_Read... [00:38:13]Read from MH i2c: 01 07 00 0D 61 00 00 00 00 00 FA 0C 7B [00:38:13]RasterBufferAndPrint [00:38:13]line [00:38:13]line [00:38:13]line [00:38:13]line [00:38:13]line [00:38:13]written 0, free lines is 3328 [00:38:13]MH_Cut [00:38:13]Write to MH i2c: D1 01 00 14 61 01 47 [00:38:13]Write i2c OK [00:38:13]MH_I2C_Read... [00:38:13]Read from MH i2c: D1 [00:38:13]MH_I2C_Read... [00:38:13]Read from MH i2c: D1 01 00 [00:38:13]MH_I2C_Read... [00:38:13]Read from MH i2c: D1 01 00 14 61 00 46 [00:38:13]Write to MH i2c: 01 00 00 15 61 76 [00:38:13]Write i2c OK [00:38:13]MH_I2C_Read... [00:38:14]OFD Sender: No OFD packet to send [00:38:14]*** Cut start [00:38:14]*** Purtial cut [00:38:14]*** Stage 1: CUTSNS_PIN = 1 [00:38:16]Read from MH i2c: 01 [00:38:16]MH_I2C_Read... [00:38:16]*** Stop cut motor [00:38:16]*** Cut end [00:38:16]Read from MH i2c: 01 07 00 [00:38:16]MH_I2C_Read... [00:38:16]Read from MH i2c: 01 07 00 15 61 00 00 00 00 00 FF 0F 8B [00:38:16]process_action close_receipt done [00:38:16]requested_data is exist [00:38:16]produce_requested_data [00:38:16]requested_item fm.sn is exist - process it [00:38:16]wFMCommunicate request_size=4 [00:38:16]MH_SAM_APDU [00:38:16]CAPDU: 80 11 00 00 [00:38:16]Write to MH i2c: E2 08 00 16 61 80 11 00 00 00 00 00 00 F1 [00:38:16]Write i2c OK [00:38:16]MH_I2C_Read... [00:38:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:38:16]Read from MH i2c: E2 [00:38:16]MH_I2C_Read... [00:38:16]Read from MH i2c: E2 17 00 [00:38:16]MH_I2C_Read... [00:38:16]Read from MH i2c: E2 17 00 16 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 4F [00:38:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [00:38:16]wFMCommunicate OK [00:38:16]requested_item fd.num is exist - process it [00:38:16]SAM_PROTO_GetFieldsCounters [00:38:16]wFMCommunicate request_size=4 [00:38:16]MH_SAM_APDU [00:38:16]CAPDU: 80 13 00 00 [00:38:16]Write to MH i2c: E2 08 00 17 61 80 13 00 00 00 00 00 00 F4 [00:38:16]Write i2c OK [00:38:16]MH_I2C_Read... [00:38:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:38:16]Read from MH i2c: E2 [00:38:16]MH_I2C_Read... [00:38:16]Read from MH i2c: E2 62 00 [00:38:16]MH_I2C_Read... [00:38:16]Read from MH i2c: E2 62 00 17 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 13 E2 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 7B [00:38: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 13 E2 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:38:16]wFMCommunicate OK [00:38:16]SAM_PROTO_GetFieldsCounters done [00:38:16]requested_item shift.num is exist - process it [00:38:16]requested_item shift.opened is exist - process it [00:38:16]req_shift_opened [00:38:16]FM_GetShiftState [00:38:16]SAM_PROTO_GetShiftState [00:38:16]wFMCommunicate request_size=4 [00:38:16]MH_SAM_APDU [00:38:16]CAPDU: 80 13 01 00 [00:38:16]Write to MH i2c: E2 08 00 18 61 80 13 01 00 00 00 00 00 F6 [00:38:16]Write i2c OK [00:38:16]MH_I2C_Read... [00:38:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:38:16]Read from MH i2c: E2 [00:38:16]MH_I2C_Read... [00:38:16]Read from MH i2c: E2 0E 00 [00:38:16]MH_I2C_Read... [00:38:16]Read from MH i2c: E2 0E 00 18 61 00 09 00 01 B0 11 E5 65 00 00 00 00 90 00 0D [00:38:16]RAPDU: 09 00 01 B0 11 E5 65 00 00 00 00 90 00 [00:38:16]wFMCommunicate OK [00:38:16]SAM_PROTO_GetShiftState done [00:38:16]FM_GetShiftState done [00:38:16]req_shift_opened done [00:38:16]requested_item shift.open_date is exist - process it [00:38:16]req_shift_open_date [00:38:16]req_shift_open_date done [00:38:16]produce_requested_data done [00:38:16]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123411,"shift.num":324,"shift.opened":1,"shift.open_date":1709511088} [00:38:16]process_action_free close_receipt [00:38:16]json_value_free [00:38:16]json_value_free done [00:38:16]process_json_proto returns [00:38:16]Send response to host [00:38:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123411,"shift.num":324,"shift.opened":1,"shift.open_date":1709511088}}} [00:38:16]free response buf [00:38:16]execute_script done [00:38:16]execute_script returns [00:38:16]free content buf [00:38:16]Sock 9.Close socket [00:38:16]Sock 9.Thread stoped [00:38:19]OFD Sender: No OFD packet to send [00:38:24]OFD Sender: No OFD packet to send [00:38:29]OFD Sender: No OFD packet to send [00:38:34]OFD Sender: No OFD packet to send [00:38:39]OFD Sender: No OFD packet to send [00:38:44]OFD Sender: No OFD packet to send [00:38:49]OFD Sender: No OFD packet to send [00:38:54]OFD Sender: No OFD packet to send [00:38:59]OFD Sender: No OFD packet to send [00:39:04]OFD Sender: No OFD packet to send [00:39:09]OFD Sender: No OFD packet to send [00:39:14]OFD Sender: No OFD packet to send [00:39:19]OFD Sender: No OFD packet to send [00:39:24]OFD Sender: No OFD packet to send [00:39:29]OFD Sender: No OFD packet to send [00:39:34]OFD Sender: No OFD packet to send [00:39:39]OFD Sender: No OFD packet to send [00:39:44]OFD Sender: No OFD packet to send [00:39:49]OFD Sender: No OFD packet to send [00:39:54]OFD Sender: No OFD packet to send [00:39:59]OFD Sender: No OFD packet to send [00:40:04]OFD Sender: No OFD packet to send [00:40:09]OFD Sender: No OFD packet to send [00:40:14]OFD Sender: No OFD packet to send [00:40:19]OFD Sender: No OFD packet to send [00:40:24]OFD Sender: No OFD packet to send [00:40:29]OFD Sender: No OFD packet to send [00:40:34]OFD Sender: No OFD packet to send [00:40:39]OFD Sender: No OFD packet to send [00:40:44]OFD Sender: No OFD packet to send [00:40:49]OFD Sender: No OFD packet to send [00:40:54]OFD Sender: No OFD packet to send [00:40:59]OFD Sender: No OFD packet to send [00:41:04]OFD Sender: No OFD packet to send [00:41:09]OFD Sender: No OFD packet to send [00:41:14]OFD Sender: No OFD packet to send [00:41:19]OFD Sender: No OFD packet to send [00:41:24]OFD Sender: No OFD packet to send [00:41:29]OFD Sender: No OFD packet to send [00:41:34]OFD Sender: No OFD packet to send [00:41:39]OFD Sender: No OFD packet to send [00:41:44]OFD Sender: No OFD packet to send [00:41:49]OFD Sender: No OFD packet to send [00:41:54]OFD Sender: No OFD packet to send [00:41:59]OFD Sender: No OFD packet to send [00:42:04]OFD Sender: No OFD packet to send [00:42:09]OFD Sender: No OFD packet to send [00:42:14]OFD Sender: No OFD packet to send [00:42:19]OFD Sender: No OFD packet to send [00:42:24]OFD Sender: No OFD packet to send [00:42:29]OFD Sender: No OFD packet to send [00:42:34]OFD Sender: No OFD packet to send [00:42:39]OFD Sender: No OFD packet to send [00:42:44]OFD Sender: No OFD packet to send [00:42:49]OFD Sender: No OFD packet to send [00:42:54]OFD Sender: No OFD packet to send [00:42:59]OFD Sender: No OFD packet to send [00:43:04]OFD Sender: No OFD packet to send [00:43:09]OFD Sender: No OFD packet to send [00:43:14]OFD Sender: No OFD packet to send [00:43:19]OFD Sender: No OFD packet to send [00:43:20]accept exits with 7 [00:43:20]New connection [00:43:20]New thread 3067395428 created [00:43:20]Thread 3067252068 joined [00:43:20]Waiting for new connection... [00:43:20] Sock 7.Parse request [00:43:20]Sock 7.Check first char [00:43:20]Sock 7.First char is OK [00:43:20]request: POST /json_proto HTTP/1.0 [00:43:20]Method: POST [00:43:20]URL: /json_proto [00:43:20]Method is POST - this is cgi request [00:43:20]url: /json_proto [00:43:20]query_string will be loaded in cgi processing [00:43:20]execute_cgi json_proto POST (null) [00:43:20]execute_cgi path=json_proto method=POST [00:43:20]POST find Content-Length [00:43:20]Host: 172.17.48.197:8080 [00:43:20]Content-Length: 817 [00:43:20]Content-Type: application/json [00:43:20] [00:43:20]POST finish read [00:43:20]Found Content-Length = 817 [00:43:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106396", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.730, "sum" : 540.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 540.39 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:43:20]execute_script... [00:43:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106396", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.730, "sum" : 540.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 540.39 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:43:20]POST & json_proto [00:43:20]process_json_proto [00:43:20]json parsed OK: [00:43:20]protocol is kg_v1.0 [00:43:20]action value=close_receipt [00:43:20]process_action close_receipt [00:43:20]cmd_close_receipt [00:43:20]MH_GetDate [00:43:20]Write to MH i2c: F0 00 00 19 61 69 [00:43:20]Write i2c OK [00:43:20]MH_I2C_Read... [00:43:20]Read from MH i2c: F0 [00:43:20]MH_I2C_Read... [00:43:20]Read from MH i2c: F0 09 00 [00:43:20]MH_I2C_Read... [00:43:20]Read from MH i2c: F0 09 00 19 61 00 2E 19 E5 65 6C AF E3 65 66 [00:43:20]GetLastDocTimeStamp 1709512697 [00:43:20]current date 1709513006 [00:43:20]FM_GetShiftState [00:43:20]SAM_PROTO_GetShiftState [00:43:20]wFMCommunicate request_size=4 [00:43:20]MH_SAM_APDU [00:43:20]CAPDU: 80 13 01 00 [00:43:20]Write to MH i2c: E2 08 00 1A 61 80 13 01 00 00 00 00 00 F8 [00:43:20]Write i2c OK [00:43:20]MH_I2C_Read... [00:43:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:43:20]Read from MH i2c: E2 [00:43:20]MH_I2C_Read... [00:43:20]Read from MH i2c: E2 0E 00 [00:43:20]MH_I2C_Read... [00:43:20]Read from MH i2c: E2 0E 00 1A 61 00 09 00 01 B0 11 E5 65 00 00 00 00 90 00 0F [00:43:20]RAPDU: 09 00 01 B0 11 E5 65 00 00 00 00 90 00 [00:43:20]wFMCommunicate OK [00:43:20]SAM_PROTO_GetShiftState done [00:43:20]FM_GetShiftState done [00:43:20]opened in 1709511088 [00:43:20]opened+sec_in_day 1709597488 [00:43:20]quantity*price = 54038 [00:43:20]sum+1 = 54040 [00:43:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 540.39 НСП 1% : 4.78 НДС 12% : 57.39 Наличными: 0.00 Безнал.: 540.39 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 12 04.03.2024 00:43 Смена: 324 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874798 ФД: 123412 ФПД: 227731579609909 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240304T004326&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123412&fm=227731579609909&tin=02508201610067®Number=0000000000090573&sum=54039 [00:43:22]StoreToDocumentArchive [00:43:22]shift 324 fd 123412 [00:43:22]save to /storage/0324/doc_00123412 [00:43:22]save last doc name /storage/0324/doc_00123412 to /storage/kkm_last_doc_name [00:43:22]save OK [00:43:22]Clear old archive folders... [00:43:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:43:22]tlvbuf is 00DC4CF0 [00:43:22]SAM_PROTO_ClearQueue [00:43:22]wFMCommunicate request_size=4 [00:43:22]MH_SAM_APDU [00:43:22]CAPDU: 80 09 00 00 [00:43:22]Write to MH i2c: E2 08 00 27 61 80 09 00 00 00 00 00 00 FA [00:43:22]Write i2c OK [00:43:22]MH_I2C_Read... [00:43:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:43:22]Read from MH i2c: E2 [00:43:22]MH_I2C_Read... [00:43:22]Read from MH i2c: E2 03 00 [00:43:22]MH_I2C_Read... [00:43:22]Read from MH i2c: E2 03 00 27 61 00 90 00 FC [00:43:22]RAPDU: 90 00 [00:43:22]wFMCommunicate OK [00:43:22]SAM_PROTO_ClearQueue done [00:43:22]KKMCreateOFDPacket [00:43:22]OFDProtocolAddRootSTLVToBuf [00:43:22]FM_MakeSignedData [00:43:22]FM_MakeSignedData [00:43:22]SAM_PROTO_SignData [00:43:22]wFMCommunicate request_size=4 [00:43:22]MH_SAM_APDU [00:43:22]CAPDU: 80 0D 01 02 [00:43:22]Write to MH i2c: E2 08 00 28 61 80 0D 01 02 00 00 00 00 02 [00:43:22]Write i2c OK [00:43:22]MH_I2C_Read... [00:43:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:43:22]Read from MH i2c: E2 [00:43:22]MH_I2C_Read... [00:43:22]Read from MH i2c: E2 03 00 [00:43:22]MH_I2C_Read... [00:43:22]Read from MH i2c: E2 03 00 28 61 00 90 00 FD [00:43:22]RAPDU: 90 00 [00:43:22]wFMCommunicate OK [00:43:22]wFMCommunicate request_size=255 [00:43:22]MH_SAM_APDU [00:43:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1A 22 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 17 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 17 D3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6B 16 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 17 D3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 2E 19 E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 14 E2 01 00 35 04 06 00 CF [00:43:22]Write to MH i2c: E2 02 01 29 61 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1A 22 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 17 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 17 D3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6B 16 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 17 D3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 2E 19 E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 14 E2 01 00 35 04 06 00 CF 00 00 5E [00:43:22]Write i2c OK [00:43:22]MH_I2C_Read... [00:43:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:43:22]Read from MH i2c: E2 [00:43:22]MH_I2C_Read... [00:43:22]Read from MH i2c: E2 03 00 [00:43:22]MH_I2C_Read... [00:43:22]Read from MH i2c: E2 03 00 29 61 00 90 00 FE [00:43:22]RAPDU: 90 00 [00:43:22]wFMCommunicate OK [00:43:22]wFMCommunicate request_size=10 [00:43:22]MH_SAM_APDU [00:43:22]CAPDU: 80 0D 02 02 05 1E E3 E8 23 35 [00:43:22]Write to MH i2c: E2 0D 00 2A 61 80 0D 02 02 05 00 1E E3 E8 23 35 00 00 50 [00:43:22]Write i2c OK [00:43:22]MH_I2C_Read... [00:43:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:43:22]Read from MH i2c: E2 [00:43:22]MH_I2C_Read... [00:43:22]Read from MH i2c: E2 03 00 [00:43:22]MH_I2C_Read... [00:43:22]Read from MH i2c: E2 03 00 2A 61 00 90 00 FF [00:43:22]RAPDU: 90 00 [00:43:22]wFMCommunicate OK [00:43:22]wFMCommunicate request_size=4 [00:43:22]MH_SAM_APDU [00:43:22]CAPDU: 80 0D 03 02 [00:43:22]Write to MH i2c: E2 08 00 2B 61 80 0D 03 02 00 00 00 00 07 [00:43:22]Write i2c OK [00:43:22]MH_I2C_Read... [00:43:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:43:22]Read from MH i2c: E2 [00:43:22]MH_I2C_Read... [00:43:22]Read from MH i2c: E2 0B 00 [00:43:22]MH_I2C_Read... [00:43:22]Read from MH i2c: E2 0B 00 2B 61 00 58 2C 61 4E EF 5A 8C 3E 90 00 4E [00:43:22]RAPDU: 58 2C 61 4E EF 5A 8C 3E 90 00 [00:43:22]wFMCommunicate OK [00:43:22]SAM_PROTO_SignData done [00:43:22]FM_MakeSignedData done [00:43:22]CreateOFDProtocolMessage [00:43:22]wFMCommunicate request_size=4 [00:43:22]MH_SAM_APDU [00:43:22]CAPDU: 80 11 00 00 [00:43:22]Write to MH i2c: E2 08 00 2C 61 80 11 00 00 00 00 00 00 07 [00:43:22]Write i2c OK [00:43:22]MH_I2C_Read... [00:43:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:43:22]Read from MH i2c: E2 [00:43:22]MH_I2C_Read... [00:43:22]Read from MH i2c: E2 17 00 [00:43:22]MH_I2C_Read... [00:43:22]Read from MH i2c: E2 17 00 2C 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 65 [00:43:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [00:43:22]wFMCommunicate OK [00:43:22]CreateOFDProtocolMessage done [00:43:22]OFDSenderStorePacket 123412 [00:43:22]StoreOFDPacket docnum=123412 [00:43:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 C2 5C 07 01 DD FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1A 22 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 17 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 17 D3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6B 16 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 17 D3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 2E 19 E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 14 E2 01 00 35 04 06 00 CF 1E E3 E8 23 35 58 2C 61 4E EF 5A 8C 3E [00:43:22]CheckFolder [00:43:22]dirname=/storage/ofd_packets [00:43:22]CheckFolder done [00:43:22]ProducePacketName [00:43:22]name=ofd_packets/00123412 [00:43:22]NVStorageSaveData ofd_packets/00123412 [00:43:22]File name is /storage/ofd_packets/00123412 [00:43:22]Write 301 bytes [00:43:22]NVStorageSaveData done [00:43:22]OFDSenderStorePacket done [00:43:22]KKMCreateOFDPacket done [00:43:22]NVStorageSaveData kkm_last_timestamp [00:43:22]File name is /storage/kkm_last_timestamp [00:43:22]Write 4 bytes [00:43:22]NVStorageSaveData done [00:43:22]ExternCall_PrintAddStr [00:43:22]wPrintStart [00:43:22]Write to MH i2c: 01 00 00 2D 61 8E [00:43:22]Write i2c OK [00:43:22]MH_I2C_Read... [00:43:22]Read from MH i2c: 01 [00:43:22]MH_I2C_Read... [00:43:22]Read from MH i2c: 01 07 00 [00:43:22]MH_I2C_Read... [00:43:22]Read from MH i2c: 01 07 00 2D 61 00 00 00 00 00 FF 0F A3 [00:43:22]RasterBufferAndPrint [00:43:22]line Счет N : (1)1106396 [00:43:22]line ИНН: 02508201610067 [00:43:22]line Контрольно-Кассовый Чек [00:43:22]line ПРОДАЖА [00:43:22]line ТРК (МРК, ГНК) : 52 [00:43:22]line Товар: 2710124130 [00:43:22]line Аи-92-К-5 [00:43:22]line 8.730 * 61.90 [00:43:22]line = 540.39 [00:43:22]line НДС 12% НСП 1% [00:43:22]line > о реализуемом товаре [00:43:22]line ИТОГО: 540.39 [00:43:22]line НСП 1% : 4.78 [00:43:22]line НДС 12% : 57.39 [00:43:22]line Наличными: 0.00 [00:43:22]line Безнал.: 540.39 [00:43:22]line Место: АЗС № 25 "Партнер Нефть" [00:43:22]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [00:43:22]line СНО: Общий режим [00:43:22]line Чек 12 04.03.2024 00:43 [00:43:22]line Смена: 324 ФФД: 1.0 [00:43:22]line ЗНМ: 0300000019 [00:43:22]line РНМ: 0000000000090573 [00:43:22]line Версия ККМ: 001 [00:43:22]line Платежная система: Бакай Банк [00:43:22]line ФМ: 0000000000874798 [00:43:22]line ФД: 123412 [00:43:22]line ФПД: 227731579609909 [00:43:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240304T004326&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123412&fm=227731579609909&tin=02508201610067®Number=0000000000090573&sum=54039 [00:43:22]OFD Sender: Processing packet 123412 [packets to send 112, broken 111] [00:43:22]ProducePacketName [00:43:22]name=ofd_packets/00123412 [00:43:22]OFD Sender: To server: pG, [00:43:22]CommunicateWithHost lk.salyk.kg:30040 [00:43:22]ConnectInit lk.salyk.kg [00:43:22]written 0, free lines is 4095 [00:43:22]Connected sock=10 [00:43: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 37 39 38 0F 01 00 00 C2 5C 07 01 DD FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1A 22 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 17 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 17 D3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6B 16 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 17 D3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 2E 19 E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 14 E2 01 00 35 04 06 00 CF 1E E3 E8 23 35 58 2C 61 4E EF 5A 8C 3E [00:43:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 3A 58 47 00 9A 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 14 E2 01 00 F4 03 04 00 58 C5 E4 65 B6 04 01 00 00 AB 84 B9 AD C7 9E 74 91 [00:43:23]CommunicateWithHost err = 0 [00:43:23]CheckOFDResponse [00:43:23]1017 (14) - 77093643461234 [00:43:23]1041 (16) - 0000000000874798 [00:43:23]1040 (4) - 123412 [00:43:23]1012 (4) - 03.03.2024 18:45 [00:43:23]1206 (1) - 0 [00:43:23]OFD Sender: Remove packet 123412 [00:43:23]ProducePacketName [00:43:23]name=ofd_packets/00123412 [00:43:23]NVStorageDeleteData [00:43:23]Write to MH i2c: 01 00 00 57 61 B8 [00:43:23]Write i2c OK [00:43:23]MH_I2C_Read... [00:43:23]Read from MH i2c: 01 [00:43:23]MH_I2C_Read... [00:43:23]Read from MH i2c: 01 07 00 [00:43:23]MH_I2C_Read... [00:43:23]Read from MH i2c: 01 07 00 57 61 00 00 00 00 00 04 0D D0 [00:43:23]RasterBufferAndPrint [00:43:23]line [00:43:23]line [00:43:23]line [00:43:23]line [00:43:23]line [00:43:23]written 0, free lines is 3338 [00:43:23]MH_Cut [00:43:23]Write to MH i2c: D1 01 00 5E 61 01 91 [00:43:23]Write i2c OK [00:43:23]MH_I2C_Read... [00:43:23]Read from MH i2c: D1 [00:43:23]MH_I2C_Read... [00:43:23]Read from MH i2c: D1 01 00 [00:43:23]MH_I2C_Read... [00:43:23]Read from MH i2c: D1 01 00 5E 61 00 90 [00:43:23]Write to MH i2c: 01 00 00 5F 61 C0 [00:43:23]Write i2c OK [00:43:23]MH_I2C_Read... [00:43:23]OFD Sender: No OFD packet to send [00:43:24]*** Cut start [00:43:24]*** Purtial cut [00:43:24]*** Stage 1: CUTSNS_PIN = 1 [00:43:26]Read from MH i2c: 01 [00:43:26]MH_I2C_Read... [00:43:26]*** Stop cut motor [00:43:26]*** Cut end [00:43:26]Read from MH i2c: 01 07 00 [00:43:26]MH_I2C_Read... [00:43:26]Read from MH i2c: 01 07 00 5F 61 00 00 00 00 00 FF 0F D5 [00:43:26]process_action close_receipt done [00:43:26]requested_data is exist [00:43:26]produce_requested_data [00:43:26]requested_item fm.sn is exist - process it [00:43:26]wFMCommunicate request_size=4 [00:43:26]MH_SAM_APDU [00:43:26]CAPDU: 80 11 00 00 [00:43:26]Write to MH i2c: E2 08 00 60 61 80 11 00 00 00 00 00 00 3B [00:43:26]Write i2c OK [00:43:26]MH_I2C_Read... [00:43:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:43:26]Read from MH i2c: E2 [00:43:26]MH_I2C_Read... [00:43:26]Read from MH i2c: E2 17 00 [00:43:26]MH_I2C_Read... [00:43:26]Read from MH i2c: E2 17 00 60 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 99 [00:43:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [00:43:26]wFMCommunicate OK [00:43:26]requested_item fd.num is exist - process it [00:43:26]SAM_PROTO_GetFieldsCounters [00:43:26]wFMCommunicate request_size=4 [00:43:26]MH_SAM_APDU [00:43:26]CAPDU: 80 13 00 00 [00:43:26]Write to MH i2c: E2 08 00 61 61 80 13 00 00 00 00 00 00 3E [00:43:26]Write i2c OK [00:43:26]MH_I2C_Read... [00:43:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:43:26]Read from MH i2c: E2 [00:43:26]MH_I2C_Read... [00:43:26]Read from MH i2c: E2 62 00 [00:43:26]MH_I2C_Read... [00:43:26]Read from MH i2c: E2 62 00 61 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 14 E2 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 C9 [00:43: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 14 E2 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:43:26]wFMCommunicate OK [00:43:26]SAM_PROTO_GetFieldsCounters done [00:43:26]requested_item shift.num is exist - process it [00:43:26]requested_item shift.opened is exist - process it [00:43:26]req_shift_opened [00:43:26]FM_GetShiftState [00:43:26]SAM_PROTO_GetShiftState [00:43:26]wFMCommunicate request_size=4 [00:43:26]MH_SAM_APDU [00:43:26]CAPDU: 80 13 01 00 [00:43:26]Write to MH i2c: E2 08 00 62 61 80 13 01 00 00 00 00 00 40 [00:43:26]Write i2c OK [00:43:26]MH_I2C_Read... [00:43:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:43:26]Read from MH i2c: E2 [00:43:26]MH_I2C_Read... [00:43:26]Read from MH i2c: E2 0E 00 [00:43:26]MH_I2C_Read... [00:43:26]Read from MH i2c: E2 0E 00 62 61 00 09 00 01 B0 11 E5 65 00 00 00 00 90 00 57 [00:43:26]RAPDU: 09 00 01 B0 11 E5 65 00 00 00 00 90 00 [00:43:26]wFMCommunicate OK [00:43:26]SAM_PROTO_GetShiftState done [00:43:26]FM_GetShiftState done [00:43:26]req_shift_opened done [00:43:26]requested_item shift.open_date is exist - process it [00:43:26]req_shift_open_date [00:43:26]req_shift_open_date done [00:43:26]produce_requested_data done [00:43:26]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123412,"shift.num":324,"shift.opened":1,"shift.open_date":1709511088} [00:43:26]process_action_free close_receipt [00:43:26]json_value_free [00:43:26]json_value_free done [00:43:26]process_json_proto returns [00:43:26]Send response to host [00:43:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123412,"shift.num":324,"shift.opened":1,"shift.open_date":1709511088}}} [00:43:26]free response buf [00:43:26]execute_script done [00:43:26]execute_script returns [00:43:26]free content buf [00:43:26]Sock 7.Close socket [00:43:26]Sock 7.Thread stoped [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:43]OFD Sender: No OFD packet to send [00:44:44]accept exits with 9 [00:44:44]New connection [00:44:44]New thread 3067252068 created [00:44:44]Thread 3067395428 joined [00:44:44]Waiting for new connection... [00:44:44] Sock 9.Parse request [00:44:44]Sock 9.Check first char [00:44:44]Sock 9.First char is OK [00:44:44]request: POST /json_proto HTTP/1.0 [00:44:44]Method: POST [00:44:44]URL: /json_proto [00:44:44]Method is POST - this is cgi request [00:44:44]url: /json_proto [00:44:44]query_string will be loaded in cgi processing [00:44:44]execute_cgi json_proto POST (null) [00:44:44]execute_cgi path=json_proto method=POST [00:44:44]POST find Content-Length [00:44:44]Host: 172.17.48.197:8080 [00:44:44]Content-Length: 683 [00:44:44]Content-Type: application/json [00:44:44] [00:44:44]POST finish read [00:44:44]Found Content-Length = 683 [00:44:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106397", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "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:44:44]execute_script... [00:44: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)1106397", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "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:44:44]POST & json_proto [00:44:44]process_json_proto [00:44:44]json parsed OK: [00:44:44]protocol is kg_v1.0 [00:44:44]action value=close_receipt [00:44:44]process_action close_receipt [00:44:44]cmd_close_receipt [00:44:44]MH_GetDate [00:44:44]Write to MH i2c: F0 00 00 63 61 B3 [00:44:44]Write i2c OK [00:44:44]MH_I2C_Read... [00:44:44]Read from MH i2c: F0 [00:44:44]MH_I2C_Read... [00:44:44]Read from MH i2c: F0 09 00 [00:44:44]MH_I2C_Read... [00:44:44]Read from MH i2c: F0 09 00 63 61 00 82 19 E5 65 6C AF E3 65 04 [00:44:44]GetLastDocTimeStamp 1709513006 [00:44:44]current date 1709513090 [00:44:44]FM_GetShiftState [00:44:44]SAM_PROTO_GetShiftState [00:44:44]wFMCommunicate request_size=4 [00:44:44]MH_SAM_APDU [00:44:44]CAPDU: 80 13 01 00 [00:44:44]Write to MH i2c: E2 08 00 64 61 80 13 01 00 00 00 00 00 42 [00:44:44]Write i2c OK [00:44:44]MH_I2C_Read... [00:44:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:44:44]Read from MH i2c: E2 [00:44:44]MH_I2C_Read... [00:44:44]Read from MH i2c: E2 0E 00 [00:44:44]MH_I2C_Read... [00:44:44]Read from MH i2c: E2 0E 00 64 61 00 09 00 01 B0 11 E5 65 00 00 00 00 90 00 59 [00:44:44]RAPDU: 09 00 01 B0 11 E5 65 00 00 00 00 90 00 [00:44:44]wFMCommunicate OK [00:44:44]SAM_PROTO_GetShiftState done [00:44:44]FM_GetShiftState done [00:44:44]opened in 1709511088 [00:44:44]opened+sec_in_day 1709597488 [00:44:44]quantity*price = 100030 [00:44:44]sum+1 = 100031 [00:44:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 13 04.03.2024 00:44 Смена: 324 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123413 ФПД: 54635093011975 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240304T004450&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123413&fm=54635093011975&tin=02508201610067®Number=0000000000090573&sum=100000 [00:44:46]StoreToDocumentArchive [00:44:46]shift 324 fd 123413 [00:44:46]save to /storage/0324/doc_00123413 [00:44:46]save last doc name /storage/0324/doc_00123413 to /storage/kkm_last_doc_name [00:44:46]save OK [00:44:46]Clear old archive folders... [00:44:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:44:46]tlvbuf is 00DA26E0 [00:44:46]SAM_PROTO_ClearQueue [00:44:46]wFMCommunicate request_size=4 [00:44:46]MH_SAM_APDU [00:44:46]CAPDU: 80 09 00 00 [00:44:46]Write to MH i2c: E2 08 00 71 61 80 09 00 00 00 00 00 00 44 [00:44:46]Write i2c OK [00:44:46]MH_I2C_Read... [00:44:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:44:46]Read from MH i2c: E2 [00:44:46]MH_I2C_Read... [00:44:46]Read from MH i2c: E2 03 00 [00:44:46]MH_I2C_Read... [00:44:46]Read from MH i2c: E2 03 00 71 61 00 90 00 46 [00:44:46]RAPDU: 90 00 [00:44:46]wFMCommunicate OK [00:44:46]SAM_PROTO_ClearQueue done [00:44:46]KKMCreateOFDPacket [00:44:46]OFDProtocolAddRootSTLVToBuf [00:44:46]FM_MakeSignedData [00:44:46]FM_MakeSignedData [00:44:46]SAM_PROTO_SignData [00:44:46]wFMCommunicate request_size=4 [00:44:46]MH_SAM_APDU [00:44:46]CAPDU: 80 0D 01 02 [00:44:46]Write to MH i2c: E2 08 00 72 61 80 0D 01 02 00 00 00 00 4C [00:44:46]Write i2c OK [00:44:46]MH_I2C_Read... [00:44:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:44:46]Read from MH i2c: E2 [00:44:46]MH_I2C_Read... [00:44:46]Read from MH i2c: E2 03 00 [00:44:46]MH_I2C_Read... [00:44:46]Read from MH i2c: E2 03 00 72 61 00 90 00 47 [00:44:46]RAPDU: 90 00 [00:44:46]wFMCommunicate OK [00:44:46]wFMCommunicate request_size=255 [00:44:46]MH_SAM_APDU [00:44:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 0D 00 00 00 F4 03 04 00 82 19 E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 15 E2 01 00 35 04 06 00 31 [00:44:46]Write to MH i2c: E2 02 01 73 61 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 0D 00 00 00 F4 03 04 00 82 19 E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 15 E2 01 00 35 04 06 00 31 00 00 18 [00:44:46]Write i2c OK [00:44:46]MH_I2C_Read... [00:44:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:44:46]Read from MH i2c: E2 [00:44:46]MH_I2C_Read... [00:44:46]Read from MH i2c: E2 03 00 [00:44:46]MH_I2C_Read... [00:44:46]Read from MH i2c: E2 03 00 73 61 00 90 00 48 [00:44:46]RAPDU: 90 00 [00:44:46]wFMCommunicate OK [00:44:46]wFMCommunicate request_size=10 [00:44:46]MH_SAM_APDU [00:44:46]CAPDU: 80 0D 02 02 05 B0 B9 4F AE 07 [00:44:46]Write to MH i2c: E2 0D 00 74 61 80 0D 02 02 05 00 B0 B9 4F AE 07 00 00 C6 [00:44:46]Write i2c OK [00:44:46]MH_I2C_Read... [00:44:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:44:46]Read from MH i2c: E2 [00:44:46]MH_I2C_Read... [00:44:46]Read from MH i2c: E2 03 00 [00:44:46]MH_I2C_Read... [00:44:46]Read from MH i2c: E2 03 00 74 61 00 90 00 49 [00:44:46]RAPDU: 90 00 [00:44:46]wFMCommunicate OK [00:44:46]wFMCommunicate request_size=4 [00:44:46]MH_SAM_APDU [00:44:46]CAPDU: 80 0D 03 02 [00:44:46]Write to MH i2c: E2 08 00 75 61 80 0D 03 02 00 00 00 00 51 [00:44:46]Write i2c OK [00:44:46]MH_I2C_Read... [00:44:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:44:46]Read from MH i2c: E2 [00:44:46]MH_I2C_Read... [00:44:46]Read from MH i2c: E2 0B 00 [00:44:46]MH_I2C_Read... [00:44:46]Read from MH i2c: E2 0B 00 75 61 00 84 9F D8 CF 97 A9 E6 D9 90 00 1B [00:44:46]RAPDU: 84 9F D8 CF 97 A9 E6 D9 90 00 [00:44:46]wFMCommunicate OK [00:44:46]SAM_PROTO_SignData done [00:44:46]FM_MakeSignedData done [00:44:46]CreateOFDProtocolMessage [00:44:46]wFMCommunicate request_size=4 [00:44:46]MH_SAM_APDU [00:44:46]CAPDU: 80 11 00 00 [00:44:46]Write to MH i2c: E2 08 00 76 61 80 11 00 00 00 00 00 00 51 [00:44:46]Write i2c OK [00:44:46]MH_I2C_Read... [00:44:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:44:46]Read from MH i2c: E2 [00:44:46]MH_I2C_Read... [00:44:46]Read from MH i2c: E2 17 00 [00:44:46]MH_I2C_Read... [00:44:46]Read from MH i2c: E2 17 00 76 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 AF [00:44:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [00:44:46]wFMCommunicate OK [00:44:46]CreateOFDProtocolMessage done [00:44:46]OFDSenderStorePacket 123413 [00:44:46]StoreOFDPacket docnum=123413 [00:44:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 0F 01 07 01 22 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 0D 00 00 00 F4 03 04 00 82 19 E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 15 E2 01 00 35 04 06 00 31 B0 B9 4F AE 07 84 9F D8 CF 97 A9 E6 D9 [00:44:46]CheckFolder [00:44:46]dirname=/storage/ofd_packets [00:44:46]CheckFolder done [00:44:46]ProducePacketName [00:44:46]name=ofd_packets/00123413 [00:44:46]NVStorageSaveData ofd_packets/00123413 [00:44:46]File name is /storage/ofd_packets/00123413 [00:44:46]Write 301 bytes [00:44:46]NVStorageSaveData done [00:44:46]OFDSenderStorePacket done [00:44:46]KKMCreateOFDPacket done [00:44:46]NVStorageSaveData kkm_last_timestamp [00:44:46]File name is /storage/kkm_last_timestamp [00:44:46]Write 4 bytes [00:44:46]NVStorageSaveData done [00:44:46]ExternCall_PrintAddStr [00:44:46]wPrintStart [00:44:46]Write to MH i2c: 01 00 00 77 61 D8 [00:44:46]Write i2c OK [00:44:46]MH_I2C_Read... [00:44:46]Read from MH i2c: 01 [00:44:46]MH_I2C_Read... [00:44:46]Read from MH i2c: 01 07 00 [00:44:46]MH_I2C_Read... [00:44:46]Read from MH i2c: 01 07 00 77 61 00 00 00 00 00 FF 0F ED [00:44:46]RasterBufferAndPrint [00:44:46]line Счет N : (1)1106397 [00:44:46]line ИНН: 02508201610067 [00:44:46]line Контрольно-Кассовый Чек [00:44:46]line ПРОДАЖА [00:44:46]line ТРК (МРК, ГНК) : 32 [00:44:46]line Товар: 2710124130 [00:44:46]line Аи-92-К-5 [00:44:46]line 16.160 * 61.90 [00:44:46]line = 1000.30 [00:44:46]line НДС 12% НСП 1% [00:44:46]line > о реализуемом товаре [00:44:46]line ОКРУГЛЕНИЕ: -0.30 [00:44:46]line ИТОГО: 1000.00 [00:44:46]line Внесено: 1000.00 [00:44:46]line СДАЧА: 0.00 [00:44:46]line НСП 1% : 8.85 [00:44:46]line НДС 12% : 106.23 [00:44:46]line Наличными: 1000.00 [00:44:46]line Безнал.: 0.00 [00:44:46]line Место: АЗС № 25 "Партнер Нефть" [00:44:46]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [00:44:46]line СНО: Общий режим [00:44:46]line Чек 13 04.03.2024 00:44 [00:44:46]line Смена: 324 ФФД: 1.0 [00:44:46]line ЗНМ: 0300000019 [00:44:46]line РНМ: 0000000000090573 [00:44:46]line Версия ККМ: 001 [00:44:46]line ФМ: 0000000000874798 [00:44:46]line ФД: 123413 [00:44:46]line ФПД: 54635093011975 [00:44:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240304T004450&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123413&fm=54635093011975&tin=02508201610067®Number=0000000000090573&sum=100000 [00:44:46]OFD Sender: Processing packet 123413 [packets to send 112, broken 111] [00:44:46]ProducePacketName [00:44:46]name=ofd_packets/00123413 [00:44:46]OFD Sender: To server: pG, [00:44:46]CommunicateWithHost lk.salyk.kg:30040 [00:44:46]ConnectInit lk.salyk.kg [00:44:46]written 0, free lines is 4095 [00:44:47]Connected sock=7 [00:44: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 37 39 38 0F 01 00 00 0F 01 07 01 22 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 0D 00 00 00 F4 03 04 00 82 19 E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 15 E2 01 00 35 04 06 00 31 B0 B9 4F AE 07 84 9F D8 CF 97 A9 E6 D9 [00:44:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 83 7B 47 00 0F 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 37 39 38 10 04 04 00 15 E2 01 00 F4 03 04 00 AD C5 E4 65 B6 04 01 00 00 FE 1D E0 8C 3C 76 E7 89 [00:44:47]CommunicateWithHost err = 0 [00:44:47]CheckOFDResponse [00:44:47]1017 (14) - 77093643461234 [00:44:47]1041 (16) - 0000000000874798 [00:44:47]1040 (4) - 123413 [00:44:47]1012 (4) - 03.03.2024 18:47 [00:44:47]1206 (1) - 0 [00:44:47]OFD Sender: Remove packet 123413 [00:44:47]ProducePacketName [00:44:47]name=ofd_packets/00123413 [00:44:47]NVStorageDeleteData [00:44:47]Write to MH i2c: 01 00 00 A2 61 03 [00:44:47]Write i2c OK [00:44:47]MH_I2C_Read... [00:44:47]Read from MH i2c: 01 [00:44:47]MH_I2C_Read... [00:44:47]Read from MH i2c: 01 07 00 [00:44:47]MH_I2C_Read... [00:44:47]Read from MH i2c: 01 07 00 A2 61 00 00 00 00 00 ED 0C 03 [00:44:47]RasterBufferAndPrint [00:44:47]line [00:44:47]line [00:44:47]line [00:44:47]line [00:44:47]line [00:44:47]written 0, free lines is 3318 [00:44:47]MH_Cut [00:44:47]Write to MH i2c: D1 01 00 A9 61 01 DC [00:44:47]Write i2c OK [00:44:47]MH_I2C_Read... [00:44:47]Read from MH i2c: D1 [00:44:47]MH_I2C_Read... [00:44:47]Read from MH i2c: D1 01 00 [00:44:47]MH_I2C_Read... [00:44:47]Read from MH i2c: D1 01 00 A9 61 00 DB [00:44:47]Write to MH i2c: 01 00 00 AA 61 0B [00:44:47]Write i2c OK [00:44:47]MH_I2C_Read... [00:44:47]OFD Sender: No OFD packet to send [00:44:48]*** Cut start [00:44:48]*** Purtial cut [00:44:48]*** Stage 1: CUTSNS_PIN = 1 [00:44:50]Read from MH i2c: 01 [00:44:50]MH_I2C_Read... [00:44:50]*** Stop cut motor [00:44:50]*** Cut end [00:44:50]Read from MH i2c: 01 07 00 [00:44:50]MH_I2C_Read... [00:44:50]Read from MH i2c: 01 07 00 AA 61 00 00 00 00 00 FF 0F 20 [00:44:50]process_action close_receipt done [00:44:50]requested_data is exist [00:44:50]produce_requested_data [00:44:50]requested_item fm.sn is exist - process it [00:44:50]wFMCommunicate request_size=4 [00:44:50]MH_SAM_APDU [00:44:50]CAPDU: 80 11 00 00 [00:44:50]Write to MH i2c: E2 08 00 AB 61 80 11 00 00 00 00 00 00 86 [00:44:50]Write i2c OK [00:44:50]MH_I2C_Read... [00:44:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:44:50]Read from MH i2c: E2 [00:44:50]MH_I2C_Read... [00:44:50]Read from MH i2c: E2 17 00 [00:44:50]MH_I2C_Read... [00:44:50]Read from MH i2c: E2 17 00 AB 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 E4 [00:44:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [00:44:50]wFMCommunicate OK [00:44:50]requested_item fd.num is exist - process it [00:44:50]SAM_PROTO_GetFieldsCounters [00:44:50]wFMCommunicate request_size=4 [00:44:50]MH_SAM_APDU [00:44:50]CAPDU: 80 13 00 00 [00:44:50]Write to MH i2c: E2 08 00 AC 61 80 13 00 00 00 00 00 00 89 [00:44:50]Write i2c OK [00:44:50]MH_I2C_Read... [00:44:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:44:50]Read from MH i2c: E2 [00:44:50]MH_I2C_Read... [00:44:50]Read from MH i2c: E2 62 00 [00:44:50]MH_I2C_Read... [00:44:50]Read from MH i2c: E2 62 00 AC 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 15 E2 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 18 [00:44: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 15 E2 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:44:50]wFMCommunicate OK [00:44:50]SAM_PROTO_GetFieldsCounters done [00:44:50]requested_item shift.num is exist - process it [00:44:50]requested_item shift.opened is exist - process it [00:44:50]req_shift_opened [00:44:50]FM_GetShiftState [00:44:50]SAM_PROTO_GetShiftState [00:44:50]wFMCommunicate request_size=4 [00:44:50]MH_SAM_APDU [00:44:50]CAPDU: 80 13 01 00 [00:44:50]Write to MH i2c: E2 08 00 AD 61 80 13 01 00 00 00 00 00 8B [00:44:50]Write i2c OK [00:44:50]MH_I2C_Read... [00:44:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:44:50]Read from MH i2c: E2 [00:44:50]MH_I2C_Read... [00:44:50]Read from MH i2c: E2 0E 00 [00:44:50]MH_I2C_Read... [00:44:50]Read from MH i2c: E2 0E 00 AD 61 00 09 00 01 B0 11 E5 65 00 00 00 00 90 00 A2 [00:44:50]RAPDU: 09 00 01 B0 11 E5 65 00 00 00 00 90 00 [00:44:50]wFMCommunicate OK [00:44:50]SAM_PROTO_GetShiftState done [00:44:50]FM_GetShiftState done [00:44:50]req_shift_opened done [00:44:50]requested_item shift.open_date is exist - process it [00:44:50]req_shift_open_date [00:44:50]req_shift_open_date done [00:44:50]produce_requested_data done [00:44:50]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123413,"shift.num":324,"shift.opened":1,"shift.open_date":1709511088} [00:44:50]process_action_free close_receipt [00:44:50]json_value_free [00:44:50]json_value_free done [00:44:50]process_json_proto returns [00:44:50]Send response to host [00:44:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123413,"shift.num":324,"shift.opened":1,"shift.open_date":1709511088}}} [00:44:50]free response buf [00:44:50]execute_script done [00:44:50]execute_script returns [00:44:50]free content buf [00:44:50]Sock 9.Close socket [00:44:50]Sock 9.Thread stoped [00:44:52]OFD Sender: No OFD packet to send [00:44:57]OFD Sender: No OFD packet to send [00:45:02]OFD Sender: No OFD packet to send [00:45:07]OFD Sender: No OFD packet to send [00:45:12]OFD Sender: No OFD packet to send [00:45:17]OFD Sender: No OFD packet to send [00:45:22]OFD Sender: No OFD packet to send [00:45:27]OFD Sender: No OFD packet to send [00:45:32]OFD Sender: No OFD packet to send [00:45:37]OFD Sender: No OFD packet to send [00:45:42]OFD Sender: No OFD packet to send [00:45:47]OFD Sender: No OFD packet to send [00:45:52]OFD Sender: No OFD packet to send [00:45:57]OFD Sender: No OFD packet to send [00:46:02]OFD Sender: No OFD packet to send [00:46:07]OFD Sender: No OFD packet to send [00:46:12]OFD Sender: No OFD packet to send [00:46:17]OFD Sender: No OFD packet to send [00:46:22]OFD Sender: No OFD packet to send [00:46:27]OFD Sender: No OFD packet to send [00:46:32]OFD Sender: No OFD packet to send [00:46:37]OFD Sender: No OFD packet to send [00:46:42]OFD Sender: No OFD packet to send [00:46:47]OFD Sender: No OFD packet to send [00:46:52]OFD Sender: No OFD packet to send [00:46:57]OFD Sender: No OFD packet to send [00:47:02]OFD Sender: No OFD packet to send [00:47:07]OFD Sender: No OFD packet to send [00:47:12]OFD Sender: No OFD packet to send [00:47:17]OFD Sender: No OFD packet to send [00:47:22]OFD Sender: No OFD packet to send [00:47:27]OFD Sender: No OFD packet to send [00:47:32]OFD Sender: No OFD packet to send [00:47:37]OFD Sender: No OFD packet to send [00:47:42]OFD Sender: No OFD packet to send [00:47:48]OFD Sender: No OFD packet to send [00:47:53]OFD Sender: No OFD packet to send [00:47:58]OFD Sender: No OFD packet to send [00:48:03]OFD Sender: No OFD packet to send [00:48:08]OFD Sender: No OFD packet to send [00:48:13]OFD Sender: No OFD packet to send [00:48:18]OFD Sender: No OFD packet to send [00:48:23]OFD Sender: No OFD packet to send [00:48:28]OFD Sender: No OFD packet to send [00:48:33]OFD Sender: No OFD packet to send [00:48:38]OFD Sender: No OFD packet to send [00:48:43]OFD Sender: No OFD packet to send [00:48:48]OFD Sender: No OFD packet to send [00:48:53]OFD Sender: No OFD packet to send [00:48:58]OFD Sender: No OFD packet to send [00:49:03]OFD Sender: No OFD packet to send [00:49:08]OFD Sender: No OFD packet to send [00:49:13]OFD Sender: No OFD packet to send [00:49:18]OFD Sender: No OFD packet to send [00:49:23]OFD Sender: No OFD packet to send [00:49:28]OFD Sender: No OFD packet to send [00:49:33]OFD Sender: No OFD packet to send [00:49:38]OFD Sender: No OFD packet to send [00:49:43]OFD Sender: No OFD packet to send [00:49:48]OFD Sender: No OFD packet to send [00:49:53]OFD Sender: No OFD packet to send [00:49:58]OFD Sender: No OFD packet to send [00:50:03]OFD Sender: No OFD packet to send [00:50:08]OFD Sender: No OFD packet to send [00:50:13]OFD Sender: No OFD packet to send [00:50:18]OFD Sender: No OFD packet to send [00:50:23]OFD Sender: No OFD packet to send [00:50:28]OFD Sender: No OFD packet to send [00:50:33]OFD Sender: No OFD packet to send [00:50:38]OFD Sender: No OFD packet to send [00:50:43]OFD Sender: No OFD packet to send [00:50:48]OFD Sender: No OFD packet to send [00:50:53]OFD Sender: No OFD packet to send [00:50:58]OFD Sender: No OFD packet to send [00:51:03]OFD Sender: No OFD packet to send [00:51:08]OFD Sender: No OFD packet to send [00:51:13]OFD Sender: No OFD packet to send [00:51:18]OFD Sender: No OFD packet to send [00:51:23]OFD Sender: No OFD packet to send [00:51:28]OFD Sender: No OFD packet to send [00:51:33]OFD Sender: No OFD packet to send [00:51:38]OFD Sender: No OFD packet to send [00:51:42]accept exits with 10 [00:51:42]New connection [00:51:42]New thread 3067395428 created [00:51:42]Thread 3067252068 joined [00:51:42]Waiting for new connection... [00:51:42] Sock 10.Parse request [00:51:42]Sock 10.Check first char [00:51:42]Sock 10.First char is OK [00:51:42]request: POST /json_proto HTTP/1.0 [00:51:42]Method: POST [00:51:42]URL: /json_proto [00:51:42]Method is POST - this is cgi request [00:51:42]url: /json_proto [00:51:42]query_string will be loaded in cgi processing [00:51:42]execute_cgi json_proto POST (null) [00:51:42]execute_cgi path=json_proto method=POST [00:51:42]POST find Content-Length [00:51:42]Host: 172.17.48.197:8080 [00:51:42]Content-Length: 1215 [00:51:42]Content-Type: application/json [00:51:42] [00:51:42]POST finish read [00:51:42]Found Content-Length = 1215 [00:51:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0431\u044B\u043B\u0433\u0430\u0437\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)1106398\u000A04.03.2024 00:48\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 53\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 10.000 x 69.50\u000A\u0418\u0422\u041E\u0413: 695.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A2070675\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:51:42]execute_script... [00:51:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 25\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0431\u044B\u043B\u0433\u0430\u0437\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)1106398\u000A04.03.2024 00:48\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 53\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 10.000 x 69.50\u000A\u0418\u0422\u041E\u0413: 695.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A2070675\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:51:42]POST & json_proto [00:51:42]process_json_proto [00:51:42]json parsed OK: [00:51:42]protocol is kg_v1.0 [00:51:42]action value=print_text [00:51:42]process_action print_text [00:51:42]cmd_print_text [00:51:42]ExternCall_PrintAddStr [00:51:42]wPrintStart [00:51:42]Write to MH i2c: 01 00 00 AE 61 0F [00:51:42]Write i2c OK [00:51:42]MH_I2C_Read... [00:51:42]Read from MH i2c: 01 [00:51:42]MH_I2C_Read... [00:51:42]Read from MH i2c: 01 07 00 [00:51:42]MH_I2C_Read... [00:51:42]Read from MH i2c: 01 07 00 AE 61 00 00 00 00 00 FF 0F 24 [00:51:42]RasterBufferAndPrint [00:51:42]line *****ТОВАРНЫЙ ЧЕК***** [00:51:42]line АЗС 25 [00:51:42]line Партнер нефть [00:51:42]line 02508201610067 [00:51:42]line Кассир : Абылгазиев А. [00:51:42]line Счет N : (1)1106398 [00:51:42]line 04.03.2024 00:48 [00:51:42]line ПРОДАЖА [00:51:42]line ТРК (МРК, ГНК): 53 [00:51:42]line Вид ГСМ : 2710124500 [00:51:42]line Аи-95-К-5 [00:51:42]line 10.000 x 69.50 [00:51:42]line ИТОГ: 695.00 [00:51:42]line Тип оплаты: Талоны: Топливные Талоны [00:51:42]line 2070675 [00:51:42]line ______________________ [00:51:42]line (подпись) [00:51:42]written 0, free lines is 4095 [00:51:42]Write to MH i2c: 01 00 00 C2 61 23 [00:51:42]Write i2c OK [00:51:42]MH_I2C_Read... [00:51:42]Read from MH i2c: 01 [00:51:42]MH_I2C_Read... [00:51:42]Read from MH i2c: 01 07 00 [00:51:42]MH_I2C_Read... [00:51:42]Read from MH i2c: 01 07 00 C2 61 00 00 00 00 00 11 0E 49 [00:51:42]RasterBufferAndPrint [00:51:42]line [00:51:42]line [00:51:42]line [00:51:42]line [00:51:42]line [00:51:42]written 0, free lines is 3602 [00:51:42]MH_Cut [00:51:42]Write to MH i2c: D1 01 00 C9 61 01 FC [00:51:42]Write i2c OK [00:51:42]MH_I2C_Read... [00:51:42]Read from MH i2c: D1 [00:51:42]MH_I2C_Read... [00:51:42]Read from MH i2c: D1 01 00 [00:51:42]MH_I2C_Read... [00:51:42]Read from MH i2c: D1 01 00 C9 61 00 FB [00:51:42]Write to MH i2c: 01 00 00 CA 61 2B [00:51:42]Write i2c OK [00:51:42]MH_I2C_Read... [00:51:43]OFD Sender: No OFD packet to send [00:51:43]*** Cut start [00:51:43]*** Purtial cut [00:51:43]*** Stage 1: CUTSNS_PIN = 1 [00:51:45]Read from MH i2c: 01 [00:51:45]MH_I2C_Read... [00:51:45]*** Stop cut motor [00:51:45]*** Cut end [00:51:45]Read from MH i2c: 01 07 00 [00:51:45]MH_I2C_Read... [00:51:45]Read from MH i2c: 01 07 00 CA 61 00 00 00 00 00 FF 0F 40 [00:51:45]process_action print_text done [00:51:45]requested_data is exist [00:51:45]produce_requested_data [00:51:45]requested_item fm.sn is exist - process it [00:51:45]wFMCommunicate request_size=4 [00:51:45]MH_SAM_APDU [00:51:45]CAPDU: 80 11 00 00 [00:51:45]Write to MH i2c: E2 08 00 CB 61 80 11 00 00 00 00 00 00 A6 [00:51:45]Write i2c OK [00:51:45]MH_I2C_Read... [00:51:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:51:45]Read from MH i2c: E2 [00:51:45]MH_I2C_Read... [00:51:45]Read from MH i2c: E2 17 00 [00:51:45]MH_I2C_Read... [00:51:45]Read from MH i2c: E2 17 00 CB 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 04 [00:51:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [00:51:45]wFMCommunicate OK [00:51:45]requested_item fd.num is exist - process it [00:51:45]SAM_PROTO_GetFieldsCounters [00:51:45]wFMCommunicate request_size=4 [00:51:45]MH_SAM_APDU [00:51:45]CAPDU: 80 13 00 00 [00:51:45]Write to MH i2c: E2 08 00 CC 61 80 13 00 00 00 00 00 00 A9 [00:51:45]Write i2c OK [00:51:45]MH_I2C_Read... [00:51:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:51:45]Read from MH i2c: E2 [00:51:45]MH_I2C_Read... [00:51:45]Read from MH i2c: E2 62 00 [00:51:45]MH_I2C_Read... [00:51:45]Read from MH i2c: E2 62 00 CC 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 15 E2 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 38 [00:51: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 15 E2 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:51:45]wFMCommunicate OK [00:51:45]SAM_PROTO_GetFieldsCounters done [00:51:45]requested_item shift.num is exist - process it [00:51:45]requested_item shift.opened is exist - process it [00:51:45]req_shift_opened [00:51:45]FM_GetShiftState [00:51:45]SAM_PROTO_GetShiftState [00:51:45]wFMCommunicate request_size=4 [00:51:45]MH_SAM_APDU [00:51:45]CAPDU: 80 13 01 00 [00:51:45]Write to MH i2c: E2 08 00 CD 61 80 13 01 00 00 00 00 00 AB [00:51:45]Write i2c OK [00:51:45]MH_I2C_Read... [00:51:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:51:45]Read from MH i2c: E2 [00:51:45]MH_I2C_Read... [00:51:45]Read from MH i2c: E2 0E 00 [00:51:45]MH_I2C_Read... [00:51:45]Read from MH i2c: E2 0E 00 CD 61 00 09 00 01 B0 11 E5 65 00 00 00 00 90 00 C2 [00:51:45]RAPDU: 09 00 01 B0 11 E5 65 00 00 00 00 90 00 [00:51:45]wFMCommunicate OK [00:51:45]SAM_PROTO_GetShiftState done [00:51:45]FM_GetShiftState done [00:51:45]req_shift_opened done [00:51:45]requested_item shift.open_date is exist - process it [00:51:45]req_shift_open_date [00:51:45]req_shift_open_date done [00:51:45]produce_requested_data done [00:51:45]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123413,"shift.num":324,"shift.opened":1,"shift.open_date":1709511088} [00:51:45]process_action_free print_text [00:51:45]json_value_free [00:51:45]json_value_free done [00:51:45]process_json_proto returns [00:51:45]Send response to host [00:51:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123413,"shift.num":324,"shift.opened":1,"shift.open_date":1709511088}}} [00:51:45]free response buf [00:51:45]execute_script done [00:51:45]execute_script returns [00:51:45]free content buf [00:51:45]Sock 10.Close socket [00:51:45]Sock 10.Thread stoped [00:51:48]OFD Sender: No OFD packet to send [00:51:53]OFD Sender: No OFD packet to send [00:51:58]OFD Sender: No OFD packet to send [00:52:03]OFD Sender: No OFD packet to send [00:52:08]OFD Sender: No OFD packet to send [00:52:13]OFD Sender: No OFD packet to send [00:52:18]OFD Sender: No OFD packet to send [00:52:23]OFD Sender: No OFD packet to send [00:52:28]OFD Sender: No OFD packet to send [00:52:33]OFD Sender: No OFD packet to send [00:52:38]OFD Sender: No OFD packet to send [00:52:43]OFD Sender: No OFD packet to send [00:52:48]OFD Sender: No OFD packet to send [00:52:53]OFD Sender: No OFD packet to send [00:52:58]OFD Sender: No OFD packet to send [00:53:03]OFD Sender: No OFD packet to send [00:53:08]OFD Sender: No OFD packet to send [00:53:13]OFD Sender: No OFD packet to send [00:53:18]OFD Sender: No OFD packet to send [00:53:23]OFD Sender: No OFD packet to send [00:53:28]OFD Sender: No OFD packet to send [00:53:33]OFD Sender: No OFD packet to send [00:53:38]OFD Sender: No OFD packet to send [00:53:43]OFD Sender: No OFD packet to send [00:53:48]OFD Sender: No OFD packet to send [00:53:53]OFD Sender: No OFD packet to send [00:53:58]OFD Sender: No OFD packet to send [00:54:03]OFD Sender: No OFD packet to send [00:54:08]OFD Sender: No OFD packet to send [00:54:13]OFD Sender: No OFD packet to send [00:54:18]OFD Sender: No OFD packet to send [00:54:23]OFD Sender: No OFD packet to send [00:54:25]accept exits with 7 [00:54:25]New connection [00:54:25]New thread 3067252068 created [00:54:25]Thread 3067395428 joined [00:54:25]Waiting for new connection... [00:54:25] Sock 7.Parse request [00:54:25]Sock 7.Check first char [00:54:25]Sock 7.First char is OK [00:54:25]request: POST /json_proto HTTP/1.0 [00:54:25]Method: POST [00:54:25]URL: /json_proto [00:54:25]Method is POST - this is cgi request [00:54:25]url: /json_proto [00:54:25]query_string will be loaded in cgi processing [00:54:25]execute_cgi json_proto POST (null) [00:54:25]execute_cgi path=json_proto method=POST [00:54:25]POST find Content-Length [00:54:25]Host: 172.17.48.197:8080 [00:54:25]Content-Length: 683 [00:54:25]Content-Type: application/json [00:54:25] [00:54:25]POST finish read [00:54:25]Found Content-Length = 683 [00:54:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106399", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "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:54:25]execute_script... [00:54:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106399", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "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:54:25]POST & json_proto [00:54:25]process_json_proto [00:54:25]json parsed OK: [00:54:25]protocol is kg_v1.0 [00:54:25]action value=close_receipt [00:54:25]process_action close_receipt [00:54:25]cmd_close_receipt [00:54:25]MH_GetDate [00:54:25]Write to MH i2c: F0 00 00 CE 61 1E [00:54:25]Write i2c OK [00:54:25]MH_I2C_Read... [00:54:25]Read from MH i2c: F0 [00:54:25]MH_I2C_Read... [00:54:25]Read from MH i2c: F0 09 00 [00:54:25]MH_I2C_Read... [00:54:25]Read from MH i2c: F0 09 00 CE 61 00 C7 1B E5 65 6C AF E3 65 B6 [00:54:25]GetLastDocTimeStamp 1709513090 [00:54:25]current date 1709513671 [00:54:25]FM_GetShiftState [00:54:25]SAM_PROTO_GetShiftState [00:54:25]wFMCommunicate request_size=4 [00:54:25]MH_SAM_APDU [00:54:25]CAPDU: 80 13 01 00 [00:54:25]Write to MH i2c: E2 08 00 CF 61 80 13 01 00 00 00 00 00 AD [00:54:25]Write i2c OK [00:54:25]MH_I2C_Read... [00:54:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:54:25]Read from MH i2c: E2 [00:54:25]MH_I2C_Read... [00:54:25]Read from MH i2c: E2 0E 00 [00:54:25]MH_I2C_Read... [00:54:25]Read from MH i2c: E2 0E 00 CF 61 00 09 00 01 B0 11 E5 65 00 00 00 00 90 00 C4 [00:54:25]RAPDU: 09 00 01 B0 11 E5 65 00 00 00 00 90 00 [00:54:25]wFMCommunicate OK [00:54:25]SAM_PROTO_GetShiftState done [00:54:25]FM_GetShiftState done [00:54:25]opened in 1709511088 [00:54:25]opened+sec_in_day 1709597488 [00:54:25]quantity*price = 100030 [00:54:25]sum+1 = 100031 [00:54:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 14 04.03.2024 00:54 Смена: 324 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123414 ФПД: 227646573454421 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240304T005431&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123414&fm=227646573454421&tin=02508201610067®Number=0000000000090573&sum=100000 [00:54:27]StoreToDocumentArchive [00:54:27]shift 324 fd 123414 [00:54:27]save to /storage/0324/doc_00123414 [00:54:27]save last doc name /storage/0324/doc_00123414 to /storage/kkm_last_doc_name [00:54:27]save OK [00:54:27]Clear old archive folders... [00:54:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:54:27]tlvbuf is 00F2E780 [00:54:27]SAM_PROTO_ClearQueue [00:54:27]wFMCommunicate request_size=4 [00:54:27]MH_SAM_APDU [00:54:27]CAPDU: 80 09 00 00 [00:54:27]Write to MH i2c: E2 08 00 DC 61 80 09 00 00 00 00 00 00 AF [00:54:27]Write i2c OK [00:54:27]MH_I2C_Read... [00:54:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:54:27]Read from MH i2c: E2 [00:54:27]MH_I2C_Read... [00:54:27]Read from MH i2c: E2 03 00 [00:54:27]MH_I2C_Read... [00:54:27]Read from MH i2c: E2 03 00 DC 61 00 90 00 B1 [00:54:27]RAPDU: 90 00 [00:54:27]wFMCommunicate OK [00:54:27]SAM_PROTO_ClearQueue done [00:54:27]KKMCreateOFDPacket [00:54:27]OFDProtocolAddRootSTLVToBuf [00:54:27]FM_MakeSignedData [00:54:27]FM_MakeSignedData [00:54:27]SAM_PROTO_SignData [00:54:27]wFMCommunicate request_size=4 [00:54:27]MH_SAM_APDU [00:54:27]CAPDU: 80 0D 01 02 [00:54:27]Write to MH i2c: E2 08 00 DD 61 80 0D 01 02 00 00 00 00 B7 [00:54:27]Write i2c OK [00:54:27]MH_I2C_Read... [00:54:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:54:27]Read from MH i2c: E2 [00:54:27]MH_I2C_Read... [00:54:27]Read from MH i2c: E2 03 00 [00:54:27]MH_I2C_Read... [00:54:27]Read from MH i2c: E2 03 00 DD 61 00 90 00 B2 [00:54:27]RAPDU: 90 00 [00:54:27]wFMCommunicate OK [00:54:27]wFMCommunicate request_size=255 [00:54:27]MH_SAM_APDU [00:54:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 0E 00 00 00 F4 03 04 00 C7 1B E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 16 E2 01 00 35 04 06 00 CF [00:54:27]Write to MH i2c: E2 02 01 DE 61 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 0E 00 00 00 F4 03 04 00 C7 1B E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 16 E2 01 00 35 04 06 00 CF 00 00 6A [00:54:27]Write i2c OK [00:54:27]MH_I2C_Read... [00:54:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:54:27]Read from MH i2c: E2 [00:54:27]MH_I2C_Read... [00:54:27]Read from MH i2c: E2 03 00 [00:54:27]MH_I2C_Read... [00:54:27]Read from MH i2c: E2 03 00 DE 61 00 90 00 B3 [00:54:27]RAPDU: 90 00 [00:54:27]wFMCommunicate OK [00:54:27]wFMCommunicate request_size=10 [00:54:27]MH_SAM_APDU [00:54:27]CAPDU: 80 0D 02 02 05 0B 19 25 24 55 [00:54:27]Write to MH i2c: E2 0D 00 DF 61 80 0D 02 02 05 00 0B 19 25 24 55 00 00 86 [00:54:27]Write i2c OK [00:54:27]MH_I2C_Read... [00:54:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:54:27]Read from MH i2c: E2 [00:54:27]MH_I2C_Read... [00:54:27]Read from MH i2c: E2 03 00 [00:54:27]MH_I2C_Read... [00:54:27]Read from MH i2c: E2 03 00 DF 61 00 90 00 B4 [00:54:27]RAPDU: 90 00 [00:54:27]wFMCommunicate OK [00:54:27]wFMCommunicate request_size=4 [00:54:27]MH_SAM_APDU [00:54:27]CAPDU: 80 0D 03 02 [00:54:27]Write to MH i2c: E2 08 00 E0 61 80 0D 03 02 00 00 00 00 BC [00:54:27]Write i2c OK [00:54:27]MH_I2C_Read... [00:54:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:54:27]Read from MH i2c: E2 [00:54:27]MH_I2C_Read... [00:54:27]Read from MH i2c: E2 0B 00 [00:54:27]MH_I2C_Read... [00:54:27]Read from MH i2c: E2 0B 00 E0 61 00 E8 69 A0 5C 36 0E 3C C1 90 00 4B [00:54:27]RAPDU: E8 69 A0 5C 36 0E 3C C1 90 00 [00:54:27]wFMCommunicate OK [00:54:27]SAM_PROTO_SignData done [00:54:27]FM_MakeSignedData done [00:54:27]CreateOFDProtocolMessage [00:54:27]wFMCommunicate request_size=4 [00:54:27]MH_SAM_APDU [00:54:27]CAPDU: 80 11 00 00 [00:54:27]Write to MH i2c: E2 08 00 E1 61 80 11 00 00 00 00 00 00 BC [00:54:27]Write i2c OK [00:54:27]MH_I2C_Read... [00:54:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:54:27]Read from MH i2c: E2 [00:54:27]MH_I2C_Read... [00:54:27]Read from MH i2c: E2 17 00 [00:54:27]MH_I2C_Read... [00:54:27]Read from MH i2c: E2 17 00 E1 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 1A [00:54:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [00:54:27]wFMCommunicate OK [00:54:27]CreateOFDProtocolMessage done [00:54:27]OFDSenderStorePacket 123414 [00:54:27]StoreOFDPacket docnum=123414 [00:54:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 14 19 07 01 83 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 0E 00 00 00 F4 03 04 00 C7 1B E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 16 E2 01 00 35 04 06 00 CF 0B 19 25 24 55 E8 69 A0 5C 36 0E 3C C1 [00:54:27]CheckFolder [00:54:27]dirname=/storage/ofd_packets [00:54:27]CheckFolder done [00:54:27]ProducePacketName [00:54:27]name=ofd_packets/00123414 [00:54:27]NVStorageSaveData ofd_packets/00123414 [00:54:27]File name is /storage/ofd_packets/00123414 [00:54:27]Write 301 bytes [00:54:27]NVStorageSaveData done [00:54:27]OFDSenderStorePacket done [00:54:27]KKMCreateOFDPacket done [00:54:27]NVStorageSaveData kkm_last_timestamp [00:54:27]File name is /storage/kkm_last_timestamp [00:54:27]Write 4 bytes [00:54:27]NVStorageSaveData done [00:54:27]ExternCall_PrintAddStr [00:54:27]wPrintStart [00:54:27]Write to MH i2c: 01 00 00 E2 61 43 [00:54:27]Write i2c OK [00:54:27]MH_I2C_Read... [00:54:27]Read from MH i2c: 01 [00:54:27]MH_I2C_Read... [00:54:27]Read from MH i2c: 01 07 00 [00:54:27]MH_I2C_Read... [00:54:27]Read from MH i2c: 01 07 00 E2 61 00 00 00 00 00 FF 0F 58 [00:54:27]RasterBufferAndPrint [00:54:27]line Счет N : (1)1106399 [00:54:27]line ИНН: 02508201610067 [00:54:27]line Контрольно-Кассовый Чек [00:54:27]line ПРОДАЖА [00:54:27]line ТРК (МРК, ГНК) : 52 [00:54:27]line Товар: 2710124130 [00:54:27]line Аи-92-К-5 [00:54:27]line 16.160 * 61.90 [00:54:27]line = 1000.30 [00:54:27]line НДС 12% НСП 1% [00:54:27]line > о реализуемом товаре [00:54:27]line ОКРУГЛЕНИЕ: -0.30 [00:54:27]line ИТОГО: 1000.00 [00:54:27]line Внесено: 1000.00 [00:54:27]line СДАЧА: 0.00 [00:54:27]line НСП 1% : 8.85 [00:54:27]line НДС 12% : 106.23 [00:54:27]line Наличными: 1000.00 [00:54:27]line Безнал.: 0.00 [00:54:27]line Место: АЗС № 25 "Партнер Нефть" [00:54:27]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [00:54:27]line СНО: Общий режим [00:54:27]line Чек 14 04.03.2024 00:54 [00:54:27]line Смена: 324 ФФД: 1.0 [00:54:27]line ЗНМ: 0300000019 [00:54:27]line РНМ: 0000000000090573 [00:54:27]line Версия ККМ: 001 [00:54:27]line ФМ: 0000000000874798 [00:54:27]line ФД: 123414 [00:54:27]line ФПД: 227646573454421 [00:54:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240304T005431&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123414&fm=227646573454421&tin=02508201610067®Number=0000000000090573&sum=100000 [00:54:27]OFD Sender: Processing packet 123414 [packets to send 112, broken 111] [00:54:27]ProducePacketName [00:54:27]name=ofd_packets/00123414 [00:54:27]OFD Sender: To server: pG, [00:54:27]CommunicateWithHost lk.salyk.kg:30040 [00:54:27]ConnectInit lk.salyk.kg [00:54:27]written 0, free lines is 4095 [00:54:27]Connected sock=10 [00:54: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 37 39 38 0F 01 00 00 14 19 07 01 83 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 0E 00 00 00 F4 03 04 00 C7 1B E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 16 E2 01 00 35 04 06 00 CF 0B 19 25 24 55 E8 69 A0 5C 36 0E 3C C1 [00: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 37 39 38 4F 00 00 00 82 8C 47 00 6E C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 16 E2 01 00 F4 03 04 00 F1 C7 E4 65 B6 04 01 00 00 78 F7 56 86 0A 2A 34 AD [00:54:28]CommunicateWithHost err = 0 [00:54:28]CheckOFDResponse [00:54:28]1017 (14) - 77093643461234 [00:54:28]1041 (16) - 0000000000874798 [00:54:28]1040 (4) - 123414 [00:54:28]1012 (4) - 03.03.2024 18:56 [00:54:28]1206 (1) - 0 [00:54:28]OFD Sender: Remove packet 123414 [00:54:28]ProducePacketName [00:54:28]name=ofd_packets/00123414 [00:54:28]NVStorageDeleteData [00:54:28]Write to MH i2c: 01 00 00 0D 62 6F [00:54:28]Write i2c OK [00:54:28]MH_I2C_Read... [00:54:28]Read from MH i2c: 01 [00:54:28]MH_I2C_Read... [00:54:28]Read from MH i2c: 01 07 00 [00:54:28]MH_I2C_Read... [00:54:28]Read from MH i2c: 01 07 00 0D 62 00 00 00 00 00 E5 0C 67 [00:54:28]RasterBufferAndPrint [00:54:28]line [00:54:28]line [00:54:28]line [00:54:28]line [00:54:28]line [00:54:28]written 0, free lines is 3307 [00:54:28]MH_Cut [00:54:28]Write to MH i2c: D1 01 00 14 62 01 48 [00:54:28]Write i2c OK [00:54:28]MH_I2C_Read... [00:54:28]Read from MH i2c: D1 [00:54:28]MH_I2C_Read... [00:54:28]Read from MH i2c: D1 01 00 [00:54:28]MH_I2C_Read... [00:54:28]Read from MH i2c: D1 01 00 14 62 00 47 [00:54:28]Write to MH i2c: 01 00 00 15 62 77 [00:54:28]Write i2c OK [00:54:28]MH_I2C_Read... [00:54:28]OFD Sender: No OFD packet to send [00:54:29]*** Cut start [00:54:29]*** Purtial cut [00:54:29]*** Stage 1: CUTSNS_PIN = 1 [00:54:31]Read from MH i2c: 01 [00:54:31]MH_I2C_Read... [00:54:31]*** Stop cut motor [00:54:31]*** Cut end [00:54:31]Read from MH i2c: 01 07 00 [00:54:31]MH_I2C_Read... [00:54:31]Read from MH i2c: 01 07 00 15 62 00 00 00 00 00 FF 0F 8C [00:54:31]process_action close_receipt done [00:54:31]requested_data is exist [00:54:31]produce_requested_data [00:54:31]requested_item fm.sn is exist - process it [00:54:31]wFMCommunicate request_size=4 [00:54:31]MH_SAM_APDU [00:54:31]CAPDU: 80 11 00 00 [00:54:31]Write to MH i2c: E2 08 00 16 62 80 11 00 00 00 00 00 00 F2 [00:54:31]Write i2c OK [00:54:31]MH_I2C_Read... [00:54:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:54:31]Read from MH i2c: E2 [00:54:31]MH_I2C_Read... [00:54:31]Read from MH i2c: E2 17 00 [00:54:31]MH_I2C_Read... [00:54:31]Read from MH i2c: E2 17 00 16 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 50 [00:54:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [00:54:31]wFMCommunicate OK [00:54:31]requested_item fd.num is exist - process it [00:54:31]SAM_PROTO_GetFieldsCounters [00:54:31]wFMCommunicate request_size=4 [00:54:31]MH_SAM_APDU [00:54:31]CAPDU: 80 13 00 00 [00:54:31]Write to MH i2c: E2 08 00 17 62 80 13 00 00 00 00 00 00 F5 [00:54:31]Write i2c OK [00:54:31]MH_I2C_Read... [00:54:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:54:31]Read from MH i2c: E2 [00:54:31]MH_I2C_Read... [00:54:31]Read from MH i2c: E2 62 00 [00:54:31]MH_I2C_Read... [00:54:31]Read from MH i2c: E2 62 00 17 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 16 E2 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 88 [00:54: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 16 E2 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:54:31]wFMCommunicate OK [00:54:31]SAM_PROTO_GetFieldsCounters done [00:54:31]requested_item shift.num is exist - process it [00:54:31]requested_item shift.opened is exist - process it [00:54:31]req_shift_opened [00:54:31]FM_GetShiftState [00:54:31]SAM_PROTO_GetShiftState [00:54:31]wFMCommunicate request_size=4 [00:54:31]MH_SAM_APDU [00:54:31]CAPDU: 80 13 01 00 [00:54:31]Write to MH i2c: E2 08 00 18 62 80 13 01 00 00 00 00 00 F7 [00:54:31]Write i2c OK [00:54:31]MH_I2C_Read... [00:54:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:54:31]Read from MH i2c: E2 [00:54:31]MH_I2C_Read... [00:54:31]Read from MH i2c: E2 0E 00 [00:54:31]MH_I2C_Read... [00:54:31]Read from MH i2c: E2 0E 00 18 62 00 09 00 01 B0 11 E5 65 00 00 00 00 90 00 0E [00:54:31]RAPDU: 09 00 01 B0 11 E5 65 00 00 00 00 90 00 [00:54:31]wFMCommunicate OK [00:54:31]SAM_PROTO_GetShiftState done [00:54:31]FM_GetShiftState done [00:54:31]req_shift_opened done [00:54:31]requested_item shift.open_date is exist - process it [00:54:31]req_shift_open_date [00:54:31]req_shift_open_date done [00:54:31]produce_requested_data done [00:54:31]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123414,"shift.num":324,"shift.opened":1,"shift.open_date":1709511088} [00:54:31]process_action_free close_receipt [00:54:31]json_value_free [00:54:31]json_value_free done [00:54:31]process_json_proto returns [00:54:31]Send response to host [00:54:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123414,"shift.num":324,"shift.opened":1,"shift.open_date":1709511088}}} [00:54:31]free response buf [00:54:31]execute_script done [00:54:31]execute_script returns [00:54:31]free content buf [00:54:31]Sock 7.Close socket [00:54:31]Sock 7.Thread stoped [00:54:33]OFD Sender: No OFD packet to send [00:54:38]OFD Sender: No OFD packet to send [00:54:43]OFD Sender: No OFD packet to send [00:54:48]OFD Sender: No OFD packet to send [00:54:53]OFD Sender: No OFD packet to send [00:54:58]OFD Sender: No OFD packet to send [00:55:03]OFD Sender: No OFD packet to send [00:55:08]OFD Sender: No OFD packet to send [00:55:13]OFD Sender: No OFD packet to send [00:55:18]OFD Sender: No OFD packet to send [00:55:23]OFD Sender: No OFD packet to send [00:55:28]OFD Sender: No OFD packet to send [00:55:33]OFD Sender: No OFD packet to send [00:55:38]OFD Sender: No OFD packet to send [00:55:43]OFD Sender: No OFD packet to send [00:55:48]OFD Sender: No OFD packet to send [00:55:53]OFD Sender: No OFD packet to send [00:55:58]OFD Sender: No OFD packet to send [00:56:03]OFD Sender: No OFD packet to send [00:56:08]OFD Sender: No OFD packet to send [00:56:13]OFD Sender: No OFD packet to send [00:56:18]OFD Sender: No OFD packet to send [00:56:23]OFD Sender: No OFD packet to send [00:56:28]OFD Sender: No OFD packet to send [00:56:33]OFD Sender: No OFD packet to send [00:56:38]OFD Sender: No OFD packet to send [00:56:43]OFD Sender: No OFD packet to send [00:56:48]OFD Sender: No OFD packet to send [00:56:53]OFD Sender: No OFD packet to send [00:56:58]OFD Sender: No OFD packet to send [00:57:03]OFD Sender: No OFD packet to send [00:57:08]OFD Sender: No OFD packet to send [00:57:13]OFD Sender: No OFD packet to send [00:57:18]OFD Sender: No OFD packet to send [00:57:23]OFD Sender: No OFD packet to send [00:57:28]OFD Sender: No OFD packet to send [00:57:33]OFD Sender: No OFD packet to send [00:57:38]OFD Sender: No OFD packet to send [00:57:43]OFD Sender: No OFD packet to send [00:57:48]OFD Sender: No OFD packet to send [00:57:53]OFD Sender: No OFD packet to send [00:57:58]OFD Sender: No OFD packet to send [00:58:03]OFD Sender: No OFD packet to send [00:58:08]OFD Sender: No OFD packet to send [00:58:13]OFD Sender: No OFD packet to send [00:58:18]OFD Sender: No OFD packet to send [00:58:23]OFD Sender: No OFD packet to send [00:58:28]OFD Sender: No OFD packet to send [00:58:33]OFD Sender: No OFD packet to send [00:58:38]OFD Sender: No OFD packet to send [00:58:43]OFD Sender: No OFD packet to send [00:58:48]OFD Sender: No OFD packet to send [00:58:53]OFD Sender: No OFD packet to send [00:58:58]OFD Sender: No OFD packet to send [00:59:03]OFD Sender: No OFD packet to send [00:59:08]OFD Sender: No OFD packet to send [00:59:13]OFD Sender: No OFD packet to send [00:59:18]OFD Sender: No OFD packet to send [00:59:23]OFD Sender: No OFD packet to send [00:59:28]OFD Sender: No OFD packet to send [00:59:33]OFD Sender: No OFD packet to send [00:59:38]OFD Sender: No OFD packet to send [00:59:44]OFD Sender: No OFD packet to send [00:59:49]OFD Sender: No OFD packet to send [00:59:49]accept exits with 9 [00:59:49]New connection [00:59:49]New thread 3067395428 created [00:59:49]Thread 3067252068 joined [00:59:49]Waiting for new connection... [00:59:49] Sock 9.Parse request [00:59:49]Sock 9.Check first char [00:59:49]Sock 9.First char is OK [00:59:49]request: POST /json_proto HTTP/1.0 [00:59:49]Method: POST [00:59:49]URL: /json_proto [00:59:49]Method is POST - this is cgi request [00:59:49]url: /json_proto [00:59:49]query_string will be loaded in cgi processing [00:59:49]execute_cgi json_proto POST (null) [00:59:49]execute_cgi path=json_proto method=POST [00:59:49]POST find Content-Length [00:59:49]Host: 172.17.48.197:8080 [00:59:49]Content-Length: 807 [00:59:49]Content-Type: application/json [00:59:49] [00:59:49]POST finish read [00:59:49]Found Content-Length = 807 [00:59:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106400", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 10.000, "sum" : 619.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 619.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:59:49]execute_script... [00:59:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106400", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 10.000, "sum" : 619.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 619.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:59:49]POST & json_proto [00:59:49]process_json_proto [00:59:49]json parsed OK: [00:59:49]protocol is kg_v1.0 [00:59:49]action value=close_receipt [00:59:49]process_action close_receipt [00:59:49]cmd_close_receipt [00:59:49]MH_GetDate [00:59:49]Write to MH i2c: F0 00 00 19 62 6A [00:59:49]Write i2c OK [00:59:49]MH_I2C_Read... [00:59:49]Read from MH i2c: F0 [00:59:49]MH_I2C_Read... [00:59:49]Read from MH i2c: F0 09 00 [00:59:49]MH_I2C_Read... [00:59:49]Read from MH i2c: F0 09 00 19 62 00 0B 1D E5 65 6C AF E3 65 48 [00:59:49]GetLastDocTimeStamp 1709513671 [00:59:49]current date 1709513995 [00:59:49]FM_GetShiftState [00:59:49]SAM_PROTO_GetShiftState [00:59:49]wFMCommunicate request_size=4 [00:59:49]MH_SAM_APDU [00:59:49]CAPDU: 80 13 01 00 [00:59:49]Write to MH i2c: E2 08 00 1A 62 80 13 01 00 00 00 00 00 F9 [00:59:49]Write i2c OK [00:59:49]MH_I2C_Read... [00:59:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:59:49]Read from MH i2c: E2 [00:59:49]MH_I2C_Read... [00:59:49]Read from MH i2c: E2 0E 00 [00:59:49]MH_I2C_Read... [00:59:49]Read from MH i2c: E2 0E 00 1A 62 00 09 00 01 B0 11 E5 65 00 00 00 00 90 00 10 [00:59:49]RAPDU: 09 00 01 B0 11 E5 65 00 00 00 00 90 00 [00:59:49]wFMCommunicate OK [00:59:49]SAM_PROTO_GetShiftState done [00:59:49]FM_GetShiftState done [00:59:49]opened in 1709511088 [00:59:49]opened+sec_in_day 1709597488 [00:59:49]quantity*price = 61900 [00:59:49]sum+1 = 61901 [00:59:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 619.00 НСП 1% : 5.48 НДС 12% : 65.73 Наличными: 0.00 Безнал.: 619.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 15 04.03.2024 00:59 Смена: 324 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874798 ФД: 123415 ФПД: 205421408278812 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240304T005955&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123415&fm=205421408278812&tin=02508201610067®Number=0000000000090573&sum=61900 [00:59:50]StoreToDocumentArchive [00:59:50]shift 324 fd 123415 [00:59:50]save to /storage/0324/doc_00123415 [00:59:50]save last doc name /storage/0324/doc_00123415 to /storage/kkm_last_doc_name [00:59:50]save OK [00:59:50]Clear old archive folders... [00:59:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:59:50]tlvbuf is 00DC4CF0 [00:59:50]SAM_PROTO_ClearQueue [00:59:50]wFMCommunicate request_size=4 [00:59:50]MH_SAM_APDU [00:59:50]CAPDU: 80 09 00 00 [00:59:50]Write to MH i2c: E2 08 00 27 62 80 09 00 00 00 00 00 00 FB [00:59:50]Write i2c OK [00:59:50]MH_I2C_Read... [00:59:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:59:50]Read from MH i2c: E2 [00:59:50]MH_I2C_Read... [00:59:50]Read from MH i2c: E2 03 00 [00:59:50]MH_I2C_Read... [00:59:50]Read from MH i2c: E2 03 00 27 62 00 90 00 FD [00:59:50]RAPDU: 90 00 [00:59:50]wFMCommunicate OK [00:59:50]SAM_PROTO_ClearQueue done [00:59:50]KKMCreateOFDPacket [00:59:50]OFDProtocolAddRootSTLVToBuf [00:59:50]FM_MakeSignedData [00:59:50]FM_MakeSignedData [00:59:50]SAM_PROTO_SignData [00:59:50]wFMCommunicate request_size=4 [00:59:50]MH_SAM_APDU [00:59:50]CAPDU: 80 0D 01 02 [00:59:50]Write to MH i2c: E2 08 00 28 62 80 0D 01 02 00 00 00 00 03 [00:59:50]Write i2c OK [00:59:50]MH_I2C_Read... [00:59:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:59:50]Read from MH i2c: E2 [00:59:50]MH_I2C_Read... [00:59:50]Read from MH i2c: E2 03 00 [00:59:50]MH_I2C_Read... [00:59:50]Read from MH i2c: E2 03 00 28 62 00 90 00 FE [00:59:50]RAPDU: 90 00 [00:59:50]wFMCommunicate OK [00:59:50]wFMCommunicate request_size=255 [00:59:50]MH_SAM_APDU [00:59:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 CC F1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC F1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 19 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CC F1 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 0B 1D E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 17 E2 01 00 35 04 06 00 BA [00:59:50]Write to MH i2c: E2 02 01 29 62 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 CC F1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC F1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 19 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CC F1 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 0B 1D E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 17 E2 01 00 35 04 06 00 BA 00 00 31 [00:59:50]Write i2c OK [00:59:50]MH_I2C_Read... [00:59:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:59:51]Read from MH i2c: E2 [00:59:51]MH_I2C_Read... [00:59:51]Read from MH i2c: E2 03 00 [00:59:51]MH_I2C_Read... [00:59:51]Read from MH i2c: E2 03 00 29 62 00 90 00 FF [00:59:51]RAPDU: 90 00 [00:59:51]wFMCommunicate OK [00:59:51]wFMCommunicate request_size=10 [00:59:51]MH_SAM_APDU [00:59:51]CAPDU: 80 0D 02 02 05 D4 66 11 D9 1C [00:59:51]Write to MH i2c: E2 0D 00 2A 62 80 0D 02 02 05 00 D4 66 11 D9 1C 00 00 50 [00:59:51]Write i2c OK [00:59:51]MH_I2C_Read... [00:59:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:59:51]Read from MH i2c: E2 [00:59:51]MH_I2C_Read... [00:59:51]Read from MH i2c: E2 03 00 [00:59:51]MH_I2C_Read... [00:59:51]Read from MH i2c: E2 03 00 2A 62 00 90 00 00 [00:59:51]RAPDU: 90 00 [00:59:51]wFMCommunicate OK [00:59:51]wFMCommunicate request_size=4 [00:59:51]MH_SAM_APDU [00:59:51]CAPDU: 80 0D 03 02 [00:59:51]Write to MH i2c: E2 08 00 2B 62 80 0D 03 02 00 00 00 00 08 [00:59:51]Write i2c OK [00:59:51]MH_I2C_Read... [00:59:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:59:51]Read from MH i2c: E2 [00:59:51]MH_I2C_Read... [00:59:51]Read from MH i2c: E2 0B 00 [00:59:51]MH_I2C_Read... [00:59:51]Read from MH i2c: E2 0B 00 2B 62 00 28 9F 2D 21 A1 85 DB EA 90 00 09 [00:59:51]RAPDU: 28 9F 2D 21 A1 85 DB EA 90 00 [00:59:51]wFMCommunicate OK [00:59:51]SAM_PROTO_SignData done [00:59:51]FM_MakeSignedData done [00:59:51]CreateOFDProtocolMessage [00:59:51]wFMCommunicate request_size=4 [00:59:51]MH_SAM_APDU [00:59:51]CAPDU: 80 11 00 00 [00:59:51]Write to MH i2c: E2 08 00 2C 62 80 11 00 00 00 00 00 00 08 [00:59:51]Write i2c OK [00:59:51]MH_I2C_Read... [00:59:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:59:51]Read from MH i2c: E2 [00:59:51]MH_I2C_Read... [00:59:51]Read from MH i2c: E2 17 00 [00:59:51]MH_I2C_Read... [00:59:51]Read from MH i2c: E2 17 00 2C 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 66 [00:59:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [00:59:51]wFMCommunicate OK [00:59:51]CreateOFDProtocolMessage done [00:59:51]OFDSenderStorePacket 123415 [00:59:51]StoreOFDPacket docnum=123415 [00:59:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 81 D3 07 01 E7 E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 CC F1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC F1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 19 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CC F1 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 0B 1D E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 17 E2 01 00 35 04 06 00 BA D4 66 11 D9 1C 28 9F 2D 21 A1 85 DB EA [00:59:51]CheckFolder [00:59:51]dirname=/storage/ofd_packets [00:59:51]CheckFolder done [00:59:51]ProducePacketName [00:59:51]name=ofd_packets/00123415 [00:59:51]NVStorageSaveData ofd_packets/00123415 [00:59:51]File name is /storage/ofd_packets/00123415 [00:59:51]Write 301 bytes [00:59:51]NVStorageSaveData done [00:59:51]OFDSenderStorePacket done [00:59:51]KKMCreateOFDPacket done [00:59:51]NVStorageSaveData kkm_last_timestamp [00:59:51]File name is /storage/kkm_last_timestamp [00:59:51]Write 4 bytes [00:59:51]NVStorageSaveData done [00:59:51]ExternCall_PrintAddStr [00:59:51]wPrintStart [00:59:51]Write to MH i2c: 01 00 00 2D 62 8F [00:59:51]Write i2c OK [00:59:51]MH_I2C_Read... [00:59:51]Read from MH i2c: 01 [00:59:51]MH_I2C_Read... [00:59:51]Read from MH i2c: 01 07 00 [00:59:51]MH_I2C_Read... [00:59:51]Read from MH i2c: 01 07 00 2D 62 00 00 00 00 00 FF 0F A4 [00:59:51]RasterBufferAndPrint [00:59:51]line Счет N : (1)1106400 [00:59:51]line ИНН: 02508201610067 [00:59:51]line Контрольно-Кассовый Чек [00:59:51]line ПРОДАЖА [00:59:51]line ТРК (МРК, ГНК) : 21 [00:59:51]line Товар: 2710124130 [00:59:51]line Аи-92-К-5 [00:59:51]line 10.000 * 61.90 [00:59:51]line = 619.00 [00:59:51]line НДС 12% НСП 1% [00:59:51]line > о реализуемом товаре [00:59:51]line ИТОГО: 619.00 [00:59:51]line НСП 1% : 5.48 [00:59:51]line НДС 12% : 65.73 [00:59:51]line Наличными: 0.00 [00:59:51]line Безнал.: 619.00 [00:59:51]line Место: АЗС № 25 "Партнер Нефть" [00:59:51]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [00:59:51]line СНО: Общий режим [00:59:51]line Чек 15 04.03.2024 00:59 [00:59:51]line Смена: 324 ФФД: 1.0 [00:59:51]line ЗНМ: 0300000019 [00:59:51]line РНМ: 0000000000090573 [00:59:51]line Версия ККМ: 001 [00:59:51]line Платежная система: О! деньги [00:59:51]line ФМ: 0000000000874798 [00:59:51]line ФД: 123415 [00:59:51]line ФПД: 205421408278812 [00:59:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240304T005955&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123415&fm=205421408278812&tin=02508201610067®Number=0000000000090573&sum=61900 [00:59:51]written 0, free lines is 4095 [00:59:51]OFD Sender: Processing packet 123415 [packets to send 112, broken 111] [00:59:51]ProducePacketName [00:59:51]name=ofd_packets/00123415 [00:59:51]OFD Sender: To server: pG, [00:59:51]CommunicateWithHost lk.salyk.kg:30040 [00:59:51]ConnectInit lk.salyk.kg [00:59:51]Connected sock=11 [00:59: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 37 39 38 0F 01 00 00 81 D3 07 01 E7 E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 CC F1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC F1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 19 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CC F1 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 0B 1D E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 17 E2 01 00 35 04 06 00 BA D4 66 11 D9 1C 28 9F 2D 21 A1 85 DB EA [00:59:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 33 85 47 00 7D 77 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 17 E2 01 00 F4 03 04 00 35 C9 E4 65 B6 04 01 00 00 1F FC 3B 18 BC 92 5B 68 [00:59:51]CommunicateWithHost err = 0 [00:59:51]CheckOFDResponse [00:59:51]1017 (14) - 77093643461234 [00:59:51]1041 (16) - 0000000000874798 [00:59:51]1040 (4) - 123415 [00:59:51]1012 (4) - 03.03.2024 19:02 [00:59:51]1206 (1) - 0 [00:59:51]OFD Sender: Remove packet 123415 [00:59:51]ProducePacketName [00:59:51]name=ofd_packets/00123415 [00:59:51]NVStorageDeleteData [00:59:51]Write to MH i2c: 01 00 00 57 62 B9 [00:59:51]Write i2c OK [00:59:51]MH_I2C_Read... [00:59:51]Read from MH i2c: 01 [00:59:51]MH_I2C_Read... [00:59:51]Read from MH i2c: 01 07 00 [00:59:51]MH_I2C_Read... [00:59:51]Read from MH i2c: 01 07 00 57 62 00 00 00 00 00 08 0D D5 [00:59:51]RasterBufferAndPrint [00:59:51]line [00:59:51]line [00:59:51]line [00:59:51]line [00:59:51]line [00:59:51]written 0, free lines is 3342 [00:59:51]MH_Cut [00:59:51]Write to MH i2c: D1 01 00 5E 62 01 92 [00:59:51]Write i2c OK [00:59:51]MH_I2C_Read... [00:59:51]Read from MH i2c: D1 [00:59:51]MH_I2C_Read... [00:59:51]Read from MH i2c: D1 01 00 [00:59:51]MH_I2C_Read... [00:59:51]Read from MH i2c: D1 01 00 5E 62 00 91 [00:59:51]Write to MH i2c: 01 00 00 5F 62 C1 [00:59:51]Write i2c OK [00:59:51]MH_I2C_Read... [00:59:52]OFD Sender: No OFD packet to send [00:59:52]*** Cut start [00:59:52]*** Purtial cut [00:59:52]*** Stage 1: CUTSNS_PIN = 1 [00:59:54]Read from MH i2c: 01 [00:59:54]MH_I2C_Read... [00:59:54]*** Stop cut motor [00:59:54]*** Cut end [00:59:54]Read from MH i2c: 01 07 00 [00:59:54]MH_I2C_Read... [00:59:54]Read from MH i2c: 01 07 00 5F 62 00 00 00 00 00 FF 0F D6 [00:59:54]process_action close_receipt done [00:59:54]requested_data is exist [00:59:54]produce_requested_data [00:59:54]requested_item fm.sn is exist - process it [00:59:54]wFMCommunicate request_size=4 [00:59:54]MH_SAM_APDU [00:59:54]CAPDU: 80 11 00 00 [00:59:54]Write to MH i2c: E2 08 00 60 62 80 11 00 00 00 00 00 00 3C [00:59:54]Write i2c OK [00:59:54]MH_I2C_Read... [00:59:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:59:54]Read from MH i2c: E2 [00:59:54]MH_I2C_Read... [00:59:54]Read from MH i2c: E2 17 00 [00:59:54]MH_I2C_Read... [00:59:54]Read from MH i2c: E2 17 00 60 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 9A [00:59:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [00:59:54]wFMCommunicate OK [00:59:54]requested_item fd.num is exist - process it [00:59:54]SAM_PROTO_GetFieldsCounters [00:59:54]wFMCommunicate request_size=4 [00:59:54]MH_SAM_APDU [00:59:54]CAPDU: 80 13 00 00 [00:59:54]Write to MH i2c: E2 08 00 61 62 80 13 00 00 00 00 00 00 3F [00:59:54]Write i2c OK [00:59:54]MH_I2C_Read... [00:59:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:59:54]Read from MH i2c: E2 [00:59:54]MH_I2C_Read... [00:59:54]Read from MH i2c: E2 62 00 [00:59:54]MH_I2C_Read... [00:59:54]Read from MH i2c: E2 62 00 61 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 17 E2 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 D6 [00:59: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 17 E2 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:59:54]wFMCommunicate OK [00:59:54]SAM_PROTO_GetFieldsCounters done [00:59:54]requested_item shift.num is exist - process it [00:59:54]requested_item shift.opened is exist - process it [00:59:54]req_shift_opened [00:59:54]FM_GetShiftState [00:59:54]SAM_PROTO_GetShiftState [00:59:54]wFMCommunicate request_size=4 [00:59:54]MH_SAM_APDU [00:59:54]CAPDU: 80 13 01 00 [00:59:54]Write to MH i2c: E2 08 00 62 62 80 13 01 00 00 00 00 00 41 [00:59:54]Write i2c OK [00:59:54]MH_I2C_Read... [00:59:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:59:54]Read from MH i2c: E2 [00:59:54]MH_I2C_Read... [00:59:54]Read from MH i2c: E2 0E 00 [00:59:54]MH_I2C_Read... [00:59:54]Read from MH i2c: E2 0E 00 62 62 00 09 00 01 B0 11 E5 65 00 00 00 00 90 00 58 [00:59:54]RAPDU: 09 00 01 B0 11 E5 65 00 00 00 00 90 00 [00:59:54]wFMCommunicate OK [00:59:54]SAM_PROTO_GetShiftState done [00:59:54]FM_GetShiftState done [00:59:54]req_shift_opened done [00:59:54]requested_item shift.open_date is exist - process it [00:59:54]req_shift_open_date [00:59:54]req_shift_open_date done [00:59:54]produce_requested_data done [00:59:54]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123415,"shift.num":324,"shift.opened":1,"shift.open_date":1709511088} [00:59:54]process_action_free close_receipt [00:59:54]json_value_free [00:59:54]json_value_free done [00:59:54]process_json_proto returns [00:59:54]Send response to host [00:59:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123415,"shift.num":324,"shift.opened":1,"shift.open_date":1709511088}}} [00:59:54]free response buf [00:59:54]execute_script done [00:59:54]execute_script returns [00:59:54]free content buf [00:59:54]Sock 9.Close socket [00:59:54]Sock 9.Thread stoped [00:59:57]OFD Sender: No OFD packet to send [01:00:02]OFD Sender: No OFD packet to send [01:00:07]OFD Sender: No OFD packet to send [01:00:12]OFD Sender: No OFD packet to send [01:00:17]OFD Sender: No OFD packet to send [01:00:22]OFD Sender: No OFD packet to send [01:00:27]OFD Sender: No OFD packet to send [01:00:32]OFD Sender: No OFD packet to send [01:00:37]OFD Sender: No OFD packet to send [01:00:42]OFD Sender: No OFD packet to send [01:00:47]OFD Sender: No OFD packet to send [01:00:52]OFD Sender: No OFD packet to send [01:00:57]OFD Sender: No OFD packet to send [01:01:02]OFD Sender: No OFD packet to send [01:01:07]OFD Sender: No OFD packet to send [01:01:12]OFD Sender: No OFD packet to send [01:01:17]OFD Sender: No OFD packet to send [01:01:22]OFD Sender: No OFD packet to send [01:01:27]OFD Sender: No OFD packet to send [01:01:32]OFD Sender: No OFD packet to send [01:01:37]OFD Sender: No OFD packet to send [01:01:42]OFD Sender: No OFD packet to send [01:01:47]OFD Sender: No OFD packet to send [01:01:51]accept exits with 7 [01:01:51]New connection [01:01:51]New thread 3067252068 created [01:01:51]Thread 3067395428 joined [01:01:51]Waiting for new connection... [01:01:51] Sock 7.Parse request [01:01:51]Sock 7.Check first char [01:01:51]Sock 7.First char is OK [01:01:51]request: POST /json_proto HTTP/1.0 [01:01:51]Method: POST [01:01:51]URL: /json_proto [01:01:51]Method is POST - this is cgi request [01:01:51]url: /json_proto [01:01:51]query_string will be loaded in cgi processing [01:01:51]execute_cgi json_proto POST (null) [01:01:51]execute_cgi path=json_proto method=POST [01:01:51]POST find Content-Length [01:01:51]Host: 172.17.48.197:8080 [01:01:51]Content-Length: 678 [01:01:51]Content-Type: application/json [01:01:51] [01:01:51]POST finish read [01:01:51]Found Content-Length = 678 [01:01:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106401", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 4.850, "sum" : 300.22, "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" ] } } [01:01:51]execute_script... [01:01: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)1106401", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 4.850, "sum" : 300.22, "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" ] } } [01:01:51]POST & json_proto [01:01:51]process_json_proto [01:01:51]json parsed OK: [01:01:51]protocol is kg_v1.0 [01:01:51]action value=close_receipt [01:01:51]process_action close_receipt [01:01:51]cmd_close_receipt [01:01:51]MH_GetDate [01:01:51]Write to MH i2c: F0 00 00 63 62 B4 [01:01:51]Write i2c OK [01:01:51]MH_I2C_Read... [01:01:51]Read from MH i2c: F0 [01:01:51]MH_I2C_Read... [01:01:51]Read from MH i2c: F0 09 00 [01:01:51]MH_I2C_Read... [01:01:51]Read from MH i2c: F0 09 00 63 62 00 85 1D E5 65 6C AF E3 65 0C [01:01:51]GetLastDocTimeStamp 1709513995 [01:01:51]current date 1709514117 [01:01:51]FM_GetShiftState [01:01:51]SAM_PROTO_GetShiftState [01:01:51]wFMCommunicate request_size=4 [01:01:51]MH_SAM_APDU [01:01:51]CAPDU: 80 13 01 00 [01:01:51]Write to MH i2c: E2 08 00 64 62 80 13 01 00 00 00 00 00 43 [01:01:51]Write i2c OK [01:01:51]MH_I2C_Read... [01:01:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:01:51]Read from MH i2c: E2 [01:01:51]MH_I2C_Read... [01:01:51]Read from MH i2c: E2 0E 00 [01:01:51]MH_I2C_Read... [01:01:51]Read from MH i2c: E2 0E 00 64 62 00 09 00 01 B0 11 E5 65 00 00 00 00 90 00 5A [01:01:51]RAPDU: 09 00 01 B0 11 E5 65 00 00 00 00 90 00 [01:01:51]wFMCommunicate OK [01:01:51]SAM_PROTO_GetShiftState done [01:01:51]FM_GetShiftState done [01:01:51]opened in 1709511088 [01:01:51]opened+sec_in_day 1709597488 [01:01:51]quantity*price = 30021 [01:01:51]sum+1 = 30023 [01:01:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.88 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 16 04.03.2024 01:01 Смена: 324 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123416 ФПД: 14963063396476 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240304T010157&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123416&fm=14963063396476&tin=02508201610067®Number=0000000000090573&sum=30000 [01:01:52]StoreToDocumentArchive [01:01:52]shift 324 fd 123416 [01:01:52]save to /storage/0324/doc_00123416 [01:01:52]save last doc name /storage/0324/doc_00123416 to /storage/kkm_last_doc_name [01:01:52]save OK [01:01:52]Clear old archive folders... [01:01:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:01:52]tlvbuf is 00DEAB90 [01:01:52]SAM_PROTO_ClearQueue [01:01:52]wFMCommunicate request_size=4 [01:01:52]MH_SAM_APDU [01:01:52]CAPDU: 80 09 00 00 [01:01:52]Write to MH i2c: E2 08 00 71 62 80 09 00 00 00 00 00 00 45 [01:01:52]Write i2c OK [01:01:52]MH_I2C_Read... [01:01:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:01:52]Read from MH i2c: E2 [01:01:52]MH_I2C_Read... [01:01:52]Read from MH i2c: E2 03 00 [01:01:52]MH_I2C_Read... [01:01:52]Read from MH i2c: E2 03 00 71 62 00 90 00 47 [01:01:52]RAPDU: 90 00 [01:01:52]wFMCommunicate OK [01:01:52]SAM_PROTO_ClearQueue done [01:01:52]KKMCreateOFDPacket [01:01:52]OFDProtocolAddRootSTLVToBuf [01:01:52]FM_MakeSignedData [01:01:52]FM_MakeSignedData [01:01:52]SAM_PROTO_SignData [01:01:52]wFMCommunicate request_size=4 [01:01:52]MH_SAM_APDU [01:01:52]CAPDU: 80 0D 01 02 [01:01:52]Write to MH i2c: E2 08 00 72 62 80 0D 01 02 00 00 00 00 4D [01:01:52]Write i2c OK [01:01:52]MH_I2C_Read... [01:01:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:01:52]Read from MH i2c: E2 [01:01:52]MH_I2C_Read... [01:01:52]Read from MH i2c: E2 03 00 [01:01:52]MH_I2C_Read... [01:01:52]Read from MH i2c: E2 03 00 72 62 00 90 00 48 [01:01:52]RAPDU: 90 00 [01:01:52]wFMCommunicate OK [01:01:52]wFMCommunicate request_size=255 [01:01:52]MH_SAM_APDU [01:01: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 35 FF 03 08 00 03 F2 12 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 46 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 74 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 10 00 00 00 F4 03 04 00 85 1D E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 18 E2 01 00 35 04 06 00 0D [01:01:52]Write to MH i2c: E2 02 01 73 62 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 12 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 46 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 74 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 10 00 00 00 F4 03 04 00 85 1D E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 18 E2 01 00 35 04 06 00 0D 00 00 84 [01:01:52]Write i2c OK [01:01:52]MH_I2C_Read... [01:01:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:01:53]Read from MH i2c: E2 [01:01:53]MH_I2C_Read... [01:01:53]Read from MH i2c: E2 03 00 [01:01:53]MH_I2C_Read... [01:01:53]Read from MH i2c: E2 03 00 73 62 00 90 00 49 [01:01:53]RAPDU: 90 00 [01:01:53]wFMCommunicate OK [01:01:53]wFMCommunicate request_size=10 [01:01:53]MH_SAM_APDU [01:01:53]CAPDU: 80 0D 02 02 05 9B DC 14 18 7C [01:01:53]Write to MH i2c: E2 0D 00 74 62 80 0D 02 02 05 00 9B DC 14 18 7C 00 00 79 [01:01:53]Write i2c OK [01:01:53]MH_I2C_Read... [01:01:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:01:53]Read from MH i2c: E2 [01:01:53]MH_I2C_Read... [01:01:53]Read from MH i2c: E2 03 00 [01:01:53]MH_I2C_Read... [01:01:53]Read from MH i2c: E2 03 00 74 62 00 90 00 4A [01:01:53]RAPDU: 90 00 [01:01:53]wFMCommunicate OK [01:01:53]wFMCommunicate request_size=4 [01:01:53]MH_SAM_APDU [01:01:53]CAPDU: 80 0D 03 02 [01:01:53]Write to MH i2c: E2 08 00 75 62 80 0D 03 02 00 00 00 00 52 [01:01:53]Write i2c OK [01:01:53]MH_I2C_Read... [01:01:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:01:53]Read from MH i2c: E2 [01:01:53]MH_I2C_Read... [01:01:53]Read from MH i2c: E2 0B 00 [01:01:53]MH_I2C_Read... [01:01:53]Read from MH i2c: E2 0B 00 75 62 00 B2 A2 1B F8 EA AF 45 CD 90 00 65 [01:01:53]RAPDU: B2 A2 1B F8 EA AF 45 CD 90 00 [01:01:53]wFMCommunicate OK [01:01:53]SAM_PROTO_SignData done [01:01:53]FM_MakeSignedData done [01:01:53]CreateOFDProtocolMessage [01:01:53]wFMCommunicate request_size=4 [01:01:53]MH_SAM_APDU [01:01:53]CAPDU: 80 11 00 00 [01:01:53]Write to MH i2c: E2 08 00 76 62 80 11 00 00 00 00 00 00 52 [01:01:53]Write i2c OK [01:01:53]MH_I2C_Read... [01:01:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:01:53]Read from MH i2c: E2 [01:01:53]MH_I2C_Read... [01:01:53]Read from MH i2c: E2 17 00 [01:01:53]MH_I2C_Read... [01:01:53]Read from MH i2c: E2 17 00 76 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 B0 [01:01:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [01:01:53]wFMCommunicate OK [01:01:53]CreateOFDProtocolMessage done [01:01:53]OFDSenderStorePacket 123416 [01:01:53]StoreOFDPacket docnum=123416 [01:01:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 B6 C5 07 01 86 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 12 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 46 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 74 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 10 00 00 00 F4 03 04 00 85 1D E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 18 E2 01 00 35 04 06 00 0D 9B DC 14 18 7C B2 A2 1B F8 EA AF 45 CD [01:01:53]CheckFolder [01:01:53]dirname=/storage/ofd_packets [01:01:53]CheckFolder done [01:01:53]ProducePacketName [01:01:53]name=ofd_packets/00123416 [01:01:53]NVStorageSaveData ofd_packets/00123416 [01:01:53]File name is /storage/ofd_packets/00123416 [01:01:53]Write 301 bytes [01:01:53]NVStorageSaveData done [01:01:53]OFDSenderStorePacket done [01:01:53]KKMCreateOFDPacket done [01:01:53]NVStorageSaveData kkm_last_timestamp [01:01:53]File name is /storage/kkm_last_timestamp [01:01:53]Write 4 bytes [01:01:53]NVStorageSaveData done [01:01:53]ExternCall_PrintAddStr [01:01:53]wPrintStart [01:01:53]Write to MH i2c: 01 00 00 77 62 D9 [01:01:53]Write i2c OK [01:01:53]MH_I2C_Read... [01:01:53]Read from MH i2c: 01 [01:01:53]MH_I2C_Read... [01:01:53]Read from MH i2c: 01 07 00 [01:01:53]MH_I2C_Read... [01:01:53]Read from MH i2c: 01 07 00 77 62 00 00 00 00 00 FF 0F EE [01:01:53]RasterBufferAndPrint [01:01:53]line Счет N : (1)1106401 [01:01:53]line ИНН: 02508201610067 [01:01:53]line Контрольно-Кассовый Чек [01:01:53]line ПРОДАЖА [01:01:53]line ТРК (МРК, ГНК) : 52 [01:01:53]line Товар: 2710124130 [01:01:53]line Аи-92-К-5 [01:01:53]line 4.850 * 61.90 [01:01:53]line = 300.22 [01:01:53]line НДС 12% НСП 1% [01:01:53]line > о реализуемом товаре [01:01:53]line ОКРУГЛЕНИЕ: -0.22 [01:01:53]line ИТОГО: 300.00 [01:01:53]line Внесено: 300.00 [01:01:53]line СДАЧА: 0.00 [01:01:53]line НСП 1% : 2.66 [01:01:53]line НДС 12% : 31.88 [01:01:53]line Наличными: 300.00 [01:01:53]line Безнал.: 0.00 [01:01:53]line Место: АЗС № 25 "Партнер Нефть" [01:01:53]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [01:01:53]line СНО: Общий режим [01:01:53]line Чек 16 04.03.2024 01:01 [01:01:53]line Смена: 324 ФФД: 1.0 [01:01:53]line ЗНМ: 0300000019 [01:01:53]line РНМ: 0000000000090573 [01:01:53]line Версия ККМ: 001 [01:01:53]line ФМ: 0000000000874798 [01:01:53]line ФД: 123416 [01:01:53]line ФПД: 14963063396476 [01:01:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240304T010157&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123416&fm=14963063396476&tin=02508201610067®Number=0000000000090573&sum=30000 [01:01:53]OFD Sender: Processing packet 123416 [packets to send 112, broken 111] [01:01:53]ProducePacketName [01:01:53]name=ofd_packets/00123416 [01:01:53]OFD Sender: To server: pG, [01:01:53]CommunicateWithHost lk.salyk.kg:30040 [01:01:53]ConnectInit lk.salyk.kg [01:01:53]written 0, free lines is 4095 [01:01:53]Connected sock=10 [01:01: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 37 39 38 0F 01 00 00 B6 C5 07 01 86 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 12 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 46 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 74 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 10 00 00 00 F4 03 04 00 85 1D E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 18 E2 01 00 35 04 06 00 0D 9B DC 14 18 7C B2 A2 1B F8 EA AF 45 CD [01:01:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 22 6B 47 00 8E 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 37 39 38 10 04 04 00 18 E2 01 00 F4 03 04 00 AF C9 E4 65 B6 04 01 00 00 EA F6 40 E5 4B D5 45 23 [01:01:53]CommunicateWithHost err = 0 [01:01:53]CheckOFDResponse [01:01:53]1017 (14) - 77093643461234 [01:01:53]1041 (16) - 0000000000874798 [01:01:53]1040 (4) - 123416 [01:01:53]1012 (4) - 03.03.2024 19:04 [01:01:53]1206 (1) - 0 [01:01:53]OFD Sender: Remove packet 123416 [01:01:53]ProducePacketName [01:01:53]name=ofd_packets/00123416 [01:01:53]NVStorageDeleteData [01:01:54]Write to MH i2c: 01 00 00 A2 62 04 [01:01:54]Write i2c OK [01:01:54]MH_I2C_Read... [01:01:54]Read from MH i2c: 01 [01:01:54]MH_I2C_Read... [01:01:54]Read from MH i2c: 01 07 00 [01:01:54]MH_I2C_Read... [01:01:54]Read from MH i2c: 01 07 00 A2 62 00 00 00 00 00 DD 0C F4 [01:01:54]RasterBufferAndPrint [01:01:54]line [01:01:54]line [01:01:54]line [01:01:54]line [01:01:54]line [01:01:54]written 0, free lines is 3298 [01:01:54]MH_Cut [01:01:54]Write to MH i2c: D1 01 00 A9 62 01 DD [01:01:54]Write i2c OK [01:01:54]MH_I2C_Read... [01:01:54]Read from MH i2c: D1 [01:01:54]MH_I2C_Read... [01:01:54]Read from MH i2c: D1 01 00 [01:01:54]MH_I2C_Read... [01:01:54]Read from MH i2c: D1 01 00 A9 62 00 DC [01:01:54]Write to MH i2c: 01 00 00 AA 62 0C [01:01:54]Write i2c OK [01:01:54]MH_I2C_Read... [01:01:54]OFD Sender: No OFD packet to send [01:01:54]*** Cut start [01:01:54]*** Purtial cut [01:01:54]*** Stage 1: CUTSNS_PIN = 1 [01:01:56]Read from MH i2c: 01 [01:01:56]MH_I2C_Read... [01:01:56]*** Stop cut motor [01:01:56]*** Cut end [01:01:56]Read from MH i2c: 01 07 00 [01:01:56]MH_I2C_Read... [01:01:56]Read from MH i2c: 01 07 00 AA 62 00 00 00 00 00 FF 0F 21 [01:01:56]process_action close_receipt done [01:01:56]requested_data is exist [01:01:56]produce_requested_data [01:01:56]requested_item fm.sn is exist - process it [01:01:56]wFMCommunicate request_size=4 [01:01:56]MH_SAM_APDU [01:01:56]CAPDU: 80 11 00 00 [01:01:56]Write to MH i2c: E2 08 00 AB 62 80 11 00 00 00 00 00 00 87 [01:01:56]Write i2c OK [01:01:56]MH_I2C_Read... [01:01:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:01:56]Read from MH i2c: E2 [01:01:56]MH_I2C_Read... [01:01:56]Read from MH i2c: E2 17 00 [01:01:56]MH_I2C_Read... [01:01:56]Read from MH i2c: E2 17 00 AB 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 E5 [01:01:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [01:01:56]wFMCommunicate OK [01:01:56]requested_item fd.num is exist - process it [01:01:56]SAM_PROTO_GetFieldsCounters [01:01:56]wFMCommunicate request_size=4 [01:01:56]MH_SAM_APDU [01:01:56]CAPDU: 80 13 00 00 [01:01:56]Write to MH i2c: E2 08 00 AC 62 80 13 00 00 00 00 00 00 8A [01:01:56]Write i2c OK [01:01:56]MH_I2C_Read... [01:01:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:01:57]Read from MH i2c: E2 [01:01:57]MH_I2C_Read... [01:01:57]Read from MH i2c: E2 62 00 [01:01:57]MH_I2C_Read... [01:01:57]Read from MH i2c: E2 62 00 AC 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 18 E2 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 25 [01:01: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 18 E2 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:01:57]wFMCommunicate OK [01:01:57]SAM_PROTO_GetFieldsCounters done [01:01:57]requested_item shift.num is exist - process it [01:01:57]requested_item shift.opened is exist - process it [01:01:57]req_shift_opened [01:01:57]FM_GetShiftState [01:01:57]SAM_PROTO_GetShiftState [01:01:57]wFMCommunicate request_size=4 [01:01:57]MH_SAM_APDU [01:01:57]CAPDU: 80 13 01 00 [01:01:57]Write to MH i2c: E2 08 00 AD 62 80 13 01 00 00 00 00 00 8C [01:01:57]Write i2c OK [01:01:57]MH_I2C_Read... [01:01:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:01:57]Read from MH i2c: E2 [01:01:57]MH_I2C_Read... [01:01:57]Read from MH i2c: E2 0E 00 [01:01:57]MH_I2C_Read... [01:01:57]Read from MH i2c: E2 0E 00 AD 62 00 09 00 01 B0 11 E5 65 00 00 00 00 90 00 A3 [01:01:57]RAPDU: 09 00 01 B0 11 E5 65 00 00 00 00 90 00 [01:01:57]wFMCommunicate OK [01:01:57]SAM_PROTO_GetShiftState done [01:01:57]FM_GetShiftState done [01:01:57]req_shift_opened done [01:01:57]requested_item shift.open_date is exist - process it [01:01:57]req_shift_open_date [01:01:57]req_shift_open_date done [01:01:57]produce_requested_data done [01:01:57]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123416,"shift.num":324,"shift.opened":1,"shift.open_date":1709511088} [01:01:57]process_action_free close_receipt [01:01:57]json_value_free [01:01:57]json_value_free done [01:01:57]process_json_proto returns [01:01:57]Send response to host [01:01:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123416,"shift.num":324,"shift.opened":1,"shift.open_date":1709511088}}} [01:01:57]free response buf [01:01:57]execute_script done [01:01:57]execute_script returns [01:01:57]free content buf [01:01:57]Sock 7.Close socket [01:01:57]Sock 7.Thread stoped [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:39]OFD Sender: No OFD packet to send [01:03:44]OFD Sender: No OFD packet to send [01:03:49]OFD Sender: No OFD packet to send [01:03:54]OFD Sender: No OFD packet to send [01:03:59]OFD Sender: No OFD packet to send [01:04:04]OFD Sender: No OFD packet to send [01:04:09]OFD Sender: No OFD packet to send [01:04:14]OFD Sender: No OFD packet to send [01:04:19]OFD Sender: No OFD packet to send [01:04:24]OFD Sender: No OFD packet to send [01:04:29]OFD Sender: No OFD packet to send [01:04:34]OFD Sender: No OFD packet to send [01:04:39]OFD Sender: No OFD packet to send [01:04:44]OFD Sender: No OFD packet to send [01:04:49]OFD Sender: No OFD packet to send [01:04:54]OFD Sender: No OFD packet to send [01:04:59]OFD Sender: No OFD packet to send [01:05:04]OFD Sender: No OFD packet to send [01:05:09]OFD Sender: No OFD packet to send [01:05:14]OFD Sender: No OFD packet to send [01:05:19]OFD Sender: No OFD packet to send [01:05:24]OFD Sender: No OFD packet to send [01:05:29]OFD Sender: No OFD packet to send [01:05:34]OFD Sender: No OFD packet to send [01:05:39]OFD Sender: No OFD packet to send [01:05:44]OFD Sender: No OFD packet to send [01:05:49]OFD Sender: No OFD packet to send [01:05:54]OFD Sender: No OFD packet to send [01:05:59]OFD Sender: No OFD packet to send [01:06:04]OFD Sender: No OFD packet to send [01:06:09]OFD Sender: No OFD packet to send [01:06:14]OFD Sender: No OFD packet to send [01:06:19]OFD Sender: No OFD packet to send [01:06:24]OFD Sender: No OFD packet to send [01:06:29]OFD Sender: No OFD packet to send [01:06:34]OFD Sender: No OFD packet to send [01:06:39]OFD Sender: No OFD packet to send [01:06:44]OFD Sender: No OFD packet to send [01:06:49]OFD Sender: No OFD packet to send [01:06:54]OFD Sender: No OFD packet to send [01:06:59]OFD Sender: No OFD packet to send [01:07:04]OFD Sender: No OFD packet to send [01:07:09]OFD Sender: No OFD packet to send [01:07:14]OFD Sender: No OFD packet to send [01:07:19]OFD Sender: No OFD packet to send [01:07:24]OFD Sender: No OFD packet to send [01:07:25]accept exits with 9 [01:07:25]New connection [01:07:25]New thread 3067395428 created [01:07:25]Thread 3067252068 joined [01:07:25]Waiting for new connection... [01:07:25] Sock 9.Parse request [01:07:25]Sock 9.Check first char [01:07:25]Sock 9.First char is OK [01:07:25]request: POST /json_proto HTTP/1.0 [01:07:25]Method: POST [01:07:25]URL: /json_proto [01:07:25]Method is POST - this is cgi request [01:07:25]url: /json_proto [01:07:25]query_string will be loaded in cgi processing [01:07:25]execute_cgi json_proto POST (null) [01:07:25]execute_cgi path=json_proto method=POST [01:07:25]POST find Content-Length [01:07:25]Host: 172.17.48.197:8080 [01:07:25]Content-Length: 688 [01:07:25]Content-Type: application/json [01:07:25] [01:07:25]POST finish read [01:07:25]Found Content-Length = 688 [01:07:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106402", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 70.90, "quantity" : 14.110, "sum" : 1000.40, "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" ] } } [01:07:25]execute_script... [01:07:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106402", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 70.90, "quantity" : 14.110, "sum" : 1000.40, "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" ] } } [01:07:25]POST & json_proto [01:07:25]process_json_proto [01:07:25]json parsed OK: [01:07:25]protocol is kg_v1.0 [01:07:25]action value=close_receipt [01:07:25]process_action close_receipt [01:07:25]cmd_close_receipt [01:07:25]MH_GetDate [01:07:25]Write to MH i2c: F0 00 00 AE 62 FF [01:07:25]Write i2c OK [01:07:25]MH_I2C_Read... [01:07:25]Read from MH i2c: F0 [01:07:25]MH_I2C_Read... [01:07:25]Read from MH i2c: F0 09 00 [01:07:25]MH_I2C_Read... [01:07:25]Read from MH i2c: F0 09 00 AE 62 00 D3 1E E5 65 6C AF E3 65 A6 [01:07:25]GetLastDocTimeStamp 1709514117 [01:07:25]current date 1709514451 [01:07:25]FM_GetShiftState [01:07:25]SAM_PROTO_GetShiftState [01:07:25]wFMCommunicate request_size=4 [01:07:25]MH_SAM_APDU [01:07:25]CAPDU: 80 13 01 00 [01:07:25]Write to MH i2c: E2 08 00 AF 62 80 13 01 00 00 00 00 00 8E [01:07:25]Write i2c OK [01:07:25]MH_I2C_Read... [01:07:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:07:25]Read from MH i2c: E2 [01:07:25]MH_I2C_Read... [01:07:25]Read from MH i2c: E2 0E 00 [01:07:25]MH_I2C_Read... [01:07:25]Read from MH i2c: E2 0E 00 AF 62 00 09 00 01 B0 11 E5 65 00 00 00 00 90 00 A5 [01:07:25]RAPDU: 09 00 01 B0 11 E5 65 00 00 00 00 90 00 [01:07:25]wFMCommunicate OK [01:07:25]SAM_PROTO_GetShiftState done [01:07:25]FM_GetShiftState done [01:07:25]opened in 1709511088 [01:07:25]opened+sec_in_day 1709597488 [01:07:25]quantity*price = 100039 [01:07:25]sum+1 = 100041 [01:07:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 17 04.03.2024 01:07 Смена: 324 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123417 ФПД: 957776797650 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240304T010731&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123417&fm=957776797650&tin=02508201610067®Number=0000000000090573&sum=100000 [01:07:27]StoreToDocumentArchive [01:07:27]shift 324 fd 123417 [01:07:27]save to /storage/0324/doc_00123417 [01:07:27]save last doc name /storage/0324/doc_00123417 to /storage/kkm_last_doc_name [01:07:27]save OK [01:07:27]Clear old archive folders... [01:07:27]ProcessDocumentItem done err = 0, tmpTLVsize=252 [01:07:27]tlvbuf is 00F21970 [01:07:27]SAM_PROTO_ClearQueue [01:07:27]wFMCommunicate request_size=4 [01:07:27]MH_SAM_APDU [01:07:27]CAPDU: 80 09 00 00 [01:07:27]Write to MH i2c: E2 08 00 BC 62 80 09 00 00 00 00 00 00 90 [01:07:27]Write i2c OK [01:07:27]MH_I2C_Read... [01:07:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:07:27]Read from MH i2c: E2 [01:07:27]MH_I2C_Read... [01:07:27]Read from MH i2c: E2 03 00 [01:07:27]MH_I2C_Read... [01:07:27]Read from MH i2c: E2 03 00 BC 62 00 90 00 92 [01:07:27]RAPDU: 90 00 [01:07:27]wFMCommunicate OK [01:07:27]SAM_PROTO_ClearQueue done [01:07:27]KKMCreateOFDPacket [01:07:27]OFDProtocolAddRootSTLVToBuf [01:07:27]FM_MakeSignedData [01:07:27]FM_MakeSignedData [01:07:27]SAM_PROTO_SignData [01:07:27]wFMCommunicate request_size=4 [01:07:27]MH_SAM_APDU [01:07:27]CAPDU: 80 0D 01 02 [01:07:27]Write to MH i2c: E2 08 00 BD 62 80 0D 01 02 00 00 00 00 98 [01:07:27]Write i2c OK [01:07:27]MH_I2C_Read... [01:07:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:07:27]Read from MH i2c: E2 [01:07:27]MH_I2C_Read... [01:07:27]Read from MH i2c: E2 03 00 [01:07:27]MH_I2C_Read... [01:07:27]Read from MH i2c: E2 03 00 BD 62 00 90 00 93 [01:07:27]RAPDU: 90 00 [01:07:27]wFMCommunicate OK [01:07:27]wFMCommunicate request_size=255 [01:07:27]MH_SAM_APDU [01:07:27]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 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 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 80 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 11 00 00 00 F4 03 04 00 D3 1E E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 19 E2 01 00 35 04 06 00 [01:07:27]Write to MH i2c: E2 02 01 BE 62 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 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 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 80 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 11 00 00 00 F4 03 04 00 D3 1E E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 19 E2 01 00 35 04 06 00 00 00 54 [01:07:27]Write i2c OK [01:07:27]MH_I2C_Read... [01:07:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:07:27]Read from MH i2c: E2 [01:07:27]MH_I2C_Read... [01:07:27]Read from MH i2c: E2 03 00 [01:07:27]MH_I2C_Read... [01:07:27]Read from MH i2c: E2 03 00 BE 62 00 90 00 94 [01:07:27]RAPDU: 90 00 [01:07:27]wFMCommunicate OK [01:07:27]wFMCommunicate request_size=11 [01:07:27]MH_SAM_APDU [01:07:27]CAPDU: 80 0D 02 02 06 00 DE FF F2 1F D2 [01:07:27]Write to MH i2c: E2 0E 00 BF 62 80 0D 02 02 06 00 00 DE FF F2 1F D2 00 00 67 [01:07:27]Write i2c OK [01:07:27]MH_I2C_Read... [01:07:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:07:27]Read from MH i2c: E2 [01:07:27]MH_I2C_Read... [01:07:27]Read from MH i2c: E2 03 00 [01:07:27]MH_I2C_Read... [01:07:27]Read from MH i2c: E2 03 00 BF 62 00 90 00 95 [01:07:27]RAPDU: 90 00 [01:07:27]wFMCommunicate OK [01:07:27]wFMCommunicate request_size=4 [01:07:27]MH_SAM_APDU [01:07:27]CAPDU: 80 0D 03 02 [01:07:27]Write to MH i2c: E2 08 00 C0 62 80 0D 03 02 00 00 00 00 9D [01:07:27]Write i2c OK [01:07:27]MH_I2C_Read... [01:07:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:07:27]Read from MH i2c: E2 [01:07:27]MH_I2C_Read... [01:07:27]Read from MH i2c: E2 0B 00 [01:07:27]MH_I2C_Read... [01:07:27]Read from MH i2c: E2 0B 00 C0 62 00 07 3C 0E 61 BF 24 8F 9F 90 00 61 [01:07:27]RAPDU: 07 3C 0E 61 BF 24 8F 9F 90 00 [01:07:27]wFMCommunicate OK [01:07:27]SAM_PROTO_SignData done [01:07:27]FM_MakeSignedData done [01:07:27]CreateOFDProtocolMessage [01:07:27]wFMCommunicate request_size=4 [01:07:27]MH_SAM_APDU [01:07:27]CAPDU: 80 11 00 00 [01:07:27]Write to MH i2c: E2 08 00 C1 62 80 11 00 00 00 00 00 00 9D [01:07:27]Write i2c OK [01:07:27]MH_I2C_Read... [01:07:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:07:27]Read from MH i2c: E2 [01:07:27]MH_I2C_Read... [01:07:27]Read from MH i2c: E2 17 00 [01:07:27]MH_I2C_Read... [01:07:27]Read from MH i2c: E2 17 00 C1 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 FB [01:07:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [01:07:27]wFMCommunicate OK [01:07:27]CreateOFDProtocolMessage done [01:07:27]OFDSenderStorePacket 123417 [01:07:27]StoreOFDPacket docnum=123417 [01:07:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 01 00 00 F9 F0 08 01 D6 37 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 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 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 80 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 11 00 00 00 F4 03 04 00 D3 1E E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 19 E2 01 00 35 04 06 00 00 DE FF F2 1F D2 07 3C 0E 61 BF 24 8F 9F [01:07:27]CheckFolder [01:07:27]dirname=/storage/ofd_packets [01:07:27]CheckFolder done [01:07:27]ProducePacketName [01:07:27]name=ofd_packets/00123417 [01:07:27]NVStorageSaveData ofd_packets/00123417 [01:07:27]File name is /storage/ofd_packets/00123417 [01:07:27]Write 302 bytes [01:07:27]NVStorageSaveData done [01:07:27]OFDSenderStorePacket done [01:07:27]KKMCreateOFDPacket done [01:07:27]NVStorageSaveData kkm_last_timestamp [01:07:27]File name is /storage/kkm_last_timestamp [01:07:27]Write 4 bytes [01:07:27]NVStorageSaveData done [01:07:27]ExternCall_PrintAddStr [01:07:27]wPrintStart [01:07:27]Write to MH i2c: 01 00 00 C2 62 24 [01:07:27]Write i2c OK [01:07:27]MH_I2C_Read... [01:07:27]Read from MH i2c: 01 [01:07:27]MH_I2C_Read... [01:07:27]Read from MH i2c: 01 07 00 [01:07:27]MH_I2C_Read... [01:07:27]Read from MH i2c: 01 07 00 C2 62 00 00 00 00 00 FF 0F 39 [01:07:27]RasterBufferAndPrint [01:07:27]line Счет N : (1)1106402 [01:07:27]line ИНН: 02508201610067 [01:07:27]line Контрольно-Кассовый Чек [01:07:27]line ПРОДАЖА [01:07:27]line ТРК (МРК, ГНК) : 61 [01:07:27]line Товар: 2710194210 [01:07:27]line ДТ(л)-К-5 [01:07:27]line 14.110 * 70.90 [01:07:27]line = 1000.40 [01:07:27]line НДС 12% НСП 1% [01:07:27]line > о реализуемом товаре [01:07:27]line ОКРУГЛЕНИЕ: -0.40 [01:07:27]line ИТОГО: 1000.00 [01:07:27]line Внесено: 1000.00 [01:07:27]line СДАЧА: 0.00 [01:07:27]line НСП 1% : 8.85 [01:07:27]line НДС 12% : 106.24 [01:07:27]line Наличными: 1000.00 [01:07:27]line Безнал.: 0.00 [01:07:27]line Место: АЗС № 25 "Партнер Нефть" [01:07:27]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [01:07:27]line СНО: Общий режим [01:07:27]line Чек 17 04.03.2024 01:07 [01:07:27]line Смена: 324 ФФД: 1.0 [01:07:27]line ЗНМ: 0300000019 [01:07:27]line РНМ: 0000000000090573 [01:07:27]line Версия ККМ: 001 [01:07:27]line ФМ: 0000000000874798 [01:07:27]line ФД: 123417 [01:07:27]line ФПД: 957776797650 [01:07:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240304T010731&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123417&fm=957776797650&tin=02508201610067®Number=0000000000090573&sum=100000 [01:07:27]OFD Sender: Processing packet 123417 [packets to send 112, broken 111] [01:07:27]ProducePacketName [01:07:27]name=ofd_packets/00123417 [01:07:27]OFD Sender: To server: pG, [01:07:27]CommunicateWithHost lk.salyk.kg:30040 [01:07:27]ConnectInit lk.salyk.kg [01:07:27]written 0, free lines is 4095 [01:07:28]Connected sock=10 [01:07: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 37 39 38 10 01 00 00 F9 F0 08 01 D6 37 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 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 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 80 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 11 00 00 00 F4 03 04 00 D3 1E E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 19 E2 01 00 35 04 06 00 00 DE FF F2 1F D2 07 3C 0E 61 BF 24 8F 9F [01:07:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 F0 67 47 00 98 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 37 39 38 10 04 04 00 19 E2 01 00 F4 03 04 00 FD CA E4 65 B6 04 01 00 00 65 BA A3 C2 B4 D7 45 99 [01:07:28]CommunicateWithHost err = 0 [01:07:28]CheckOFDResponse [01:07:28]1017 (14) - 77093643461234 [01:07:28]1041 (16) - 0000000000874798 [01:07:28]1040 (4) - 123417 [01:07:28]1012 (4) - 03.03.2024 19:09 [01:07:28]1206 (1) - 0 [01:07:28]OFD Sender: Remove packet 123417 [01:07:28]ProducePacketName [01:07:28]name=ofd_packets/00123417 [01:07:28]NVStorageDeleteData [01:07:28]Write to MH i2c: 01 00 00 ED 62 4F [01:07:28]Write i2c OK [01:07:28]MH_I2C_Read... [01:07:28]Read from MH i2c: 01 [01:07:28]MH_I2C_Read... [01:07:28]Read from MH i2c: 01 07 00 [01:07:28]MH_I2C_Read... [01:07:28]Read from MH i2c: 01 07 00 ED 62 00 00 00 00 00 EA 0C 4C [01:07:28]RasterBufferAndPrint [01:07:28]line [01:07:28]line [01:07:28]line [01:07:28]line [01:07:28]line [01:07:28]written 0, free lines is 3312 [01:07:28]MH_Cut [01:07:28]Write to MH i2c: D1 01 00 F4 62 01 28 [01:07:28]Write i2c OK [01:07:28]MH_I2C_Read... [01:07:28]Read from MH i2c: D1 [01:07:28]MH_I2C_Read... [01:07:28]Read from MH i2c: D1 01 00 [01:07:28]MH_I2C_Read... [01:07:28]Read from MH i2c: D1 01 00 F4 62 00 27 [01:07:28]Write to MH i2c: 01 00 00 F5 62 57 [01:07:28]Write i2c OK [01:07:28]MH_I2C_Read... [01:07:28]OFD Sender: No OFD packet to send [01:07:29]*** Cut start [01:07:29]*** Purtial cut [01:07:29]*** Stage 1: CUTSNS_PIN = 1 [01:07:31]Read from MH i2c: 01 [01:07:31]MH_I2C_Read... [01:07:31]*** Stop cut motor [01:07:31]*** Cut end [01:07:31]Read from MH i2c: 01 07 00 [01:07:31]MH_I2C_Read... [01:07:31]Read from MH i2c: 01 07 00 F5 62 00 00 00 00 00 FF 0F 6C [01:07:31]process_action close_receipt done [01:07:31]requested_data is exist [01:07:31]produce_requested_data [01:07:31]requested_item fm.sn is exist - process it [01:07:31]wFMCommunicate request_size=4 [01:07:31]MH_SAM_APDU [01:07:31]CAPDU: 80 11 00 00 [01:07:31]Write to MH i2c: E2 08 00 F6 62 80 11 00 00 00 00 00 00 D2 [01:07:31]Write i2c OK [01:07:31]MH_I2C_Read... [01:07:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:07:31]Read from MH i2c: E2 [01:07:31]MH_I2C_Read... [01:07:31]Read from MH i2c: E2 17 00 [01:07:31]MH_I2C_Read... [01:07:31]Read from MH i2c: E2 17 00 F6 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 30 [01:07:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [01:07:31]wFMCommunicate OK [01:07:31]requested_item fd.num is exist - process it [01:07:31]SAM_PROTO_GetFieldsCounters [01:07:31]wFMCommunicate request_size=4 [01:07:31]MH_SAM_APDU [01:07:31]CAPDU: 80 13 00 00 [01:07:31]Write to MH i2c: E2 08 00 F7 62 80 13 00 00 00 00 00 00 D5 [01:07:31]Write i2c OK [01:07:31]MH_I2C_Read... [01:07:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:07:31]Read from MH i2c: E2 [01:07:31]MH_I2C_Read... [01:07:31]Read from MH i2c: E2 62 00 [01:07:31]MH_I2C_Read... [01:07:31]Read from MH i2c: E2 62 00 F7 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 19 E2 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 74 [01:07: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 19 E2 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:07:31]wFMCommunicate OK [01:07:31]SAM_PROTO_GetFieldsCounters done [01:07:31]requested_item shift.num is exist - process it [01:07:31]requested_item shift.opened is exist - process it [01:07:31]req_shift_opened [01:07:31]FM_GetShiftState [01:07:31]SAM_PROTO_GetShiftState [01:07:31]wFMCommunicate request_size=4 [01:07:31]MH_SAM_APDU [01:07:31]CAPDU: 80 13 01 00 [01:07:31]Write to MH i2c: E2 08 00 F8 62 80 13 01 00 00 00 00 00 D7 [01:07:31]Write i2c OK [01:07:31]MH_I2C_Read... [01:07:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:07:31]Read from MH i2c: E2 [01:07:31]MH_I2C_Read... [01:07:31]Read from MH i2c: E2 0E 00 [01:07:31]MH_I2C_Read... [01:07:31]Read from MH i2c: E2 0E 00 F8 62 00 09 00 01 B0 11 E5 65 00 00 00 00 90 00 EE [01:07:31]RAPDU: 09 00 01 B0 11 E5 65 00 00 00 00 90 00 [01:07:31]wFMCommunicate OK [01:07:31]SAM_PROTO_GetShiftState done [01:07:31]FM_GetShiftState done [01:07:31]req_shift_opened done [01:07:31]requested_item shift.open_date is exist - process it [01:07:31]req_shift_open_date [01:07:31]req_shift_open_date done [01:07:31]produce_requested_data done [01:07:31]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123417,"shift.num":324,"shift.opened":1,"shift.open_date":1709511088} [01:07:31]process_action_free close_receipt [01:07:31]json_value_free [01:07:31]json_value_free done [01:07:31]process_json_proto returns [01:07:31]Send response to host [01:07:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123417,"shift.num":324,"shift.opened":1,"shift.open_date":1709511088}}} [01:07:31]free response buf [01:07:31]execute_script done [01:07:31]execute_script returns [01:07:31]free content buf [01:07:31]Sock 9.Close socket [01:07:31]Sock 9.Thread stoped [01:07:33]OFD Sender: No OFD packet to send [01:07:38]OFD Sender: No OFD packet to send [01:07:39]accept exits with 7 [01:07:39]New connection [01:07:39]New thread 3067252068 created [01:07:39]Thread 3067395428 joined [01:07:39]Waiting for new connection... [01:07:39] Sock 7.Parse request [01:07:39]Sock 7.Check first char [01:07:39]Sock 7.First char is OK [01:07:39]request: POST /json_proto HTTP/1.0 [01:07:39]Method: POST [01:07:39]URL: /json_proto [01:07:39]Method is POST - this is cgi request [01:07:39]url: /json_proto [01:07:39]query_string will be loaded in cgi processing [01:07:39]execute_cgi json_proto POST (null) [01:07:39]execute_cgi path=json_proto method=POST [01:07:39]POST find Content-Length [01:07:39]Host: 172.17.48.197:8080 [01:07:39]Content-Length: 678 [01:07:39]Content-Type: application/json [01:07:39] [01:07:39]POST finish read [01:07:39]Found Content-Length = 678 [01:07:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106403", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 3.240, "sum" : 200.56, "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" ] } } [01:07:39]execute_script... [01:07:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106403", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 3.240, "sum" : 200.56, "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" ] } } [01:07:39]POST & json_proto [01:07:39]process_json_proto [01:07:39]json parsed OK: [01:07:39]protocol is kg_v1.0 [01:07:39]action value=close_receipt [01:07:39]process_action close_receipt [01:07:39]cmd_close_receipt [01:07:39]MH_GetDate [01:07:39]Write to MH i2c: F0 00 00 F9 62 4A [01:07:39]Write i2c OK [01:07:39]MH_I2C_Read... [01:07:39]Read from MH i2c: F0 [01:07:39]MH_I2C_Read... [01:07:39]Read from MH i2c: F0 09 00 [01:07:39]MH_I2C_Read... [01:07:39]Read from MH i2c: F0 09 00 F9 62 00 E1 1E E5 65 6C AF E3 65 FF [01:07:39]GetLastDocTimeStamp 1709514451 [01:07:39]current date 1709514465 [01:07:39]FM_GetShiftState [01:07:39]SAM_PROTO_GetShiftState [01:07:39]wFMCommunicate request_size=4 [01:07:39]MH_SAM_APDU [01:07:39]CAPDU: 80 13 01 00 [01:07:39]Write to MH i2c: E2 08 00 FA 62 80 13 01 00 00 00 00 00 D9 [01:07:39]Write i2c OK [01:07:39]MH_I2C_Read... [01:07:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:07:39]Read from MH i2c: E2 [01:07:39]MH_I2C_Read... [01:07:39]Read from MH i2c: E2 0E 00 [01:07:39]MH_I2C_Read... [01:07:39]Read from MH i2c: E2 0E 00 FA 62 00 09 00 01 B0 11 E5 65 00 00 00 00 90 00 F0 [01:07:39]RAPDU: 09 00 01 B0 11 E5 65 00 00 00 00 90 00 [01:07:39]wFMCommunicate OK [01:07:39]SAM_PROTO_GetShiftState done [01:07:39]FM_GetShiftState done [01:07:39]opened in 1709511088 [01:07:39]opened+sec_in_day 1709597488 [01:07:39]quantity*price = 20055 [01:07:39]sum+1 = 20057 [01:07:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.30 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 18 04.03.2024 01:07 Смена: 324 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123418 ФПД: 190615298109550 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240304T010745&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123418&fm=190615298109550&tin=02508201610067®Number=0000000000090573&sum=20000 [01:07:40]StoreToDocumentArchive [01:07:40]shift 324 fd 123418 [01:07:40]save to /storage/0324/doc_00123418 [01:07:40]save last doc name /storage/0324/doc_00123418 to /storage/kkm_last_doc_name [01:07:40]save OK [01:07:40]Clear old archive folders... [01:07:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:07:40]tlvbuf is 00F04400 [01:07:40]SAM_PROTO_ClearQueue [01:07:40]wFMCommunicate request_size=4 [01:07:40]MH_SAM_APDU [01:07:40]CAPDU: 80 09 00 00 [01:07:40]Write to MH i2c: E2 08 00 07 63 80 09 00 00 00 00 00 00 DC [01:07:40]Write i2c OK [01:07:40]MH_I2C_Read... [01:07:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:07:40]Read from MH i2c: E2 [01:07:40]MH_I2C_Read... [01:07:40]Read from MH i2c: E2 03 00 [01:07:40]MH_I2C_Read... [01:07:40]Read from MH i2c: E2 03 00 07 63 00 90 00 DE [01:07:40]RAPDU: 90 00 [01:07:40]wFMCommunicate OK [01:07:40]SAM_PROTO_ClearQueue done [01:07:40]KKMCreateOFDPacket [01:07:40]OFDProtocolAddRootSTLVToBuf [01:07:40]FM_MakeSignedData [01:07:40]FM_MakeSignedData [01:07:40]SAM_PROTO_SignData [01:07:40]wFMCommunicate request_size=4 [01:07:40]MH_SAM_APDU [01:07:40]CAPDU: 80 0D 01 02 [01:07:40]Write to MH i2c: E2 08 00 08 63 80 0D 01 02 00 00 00 00 E4 [01:07:40]Write i2c OK [01:07:40]MH_I2C_Read... [01:07:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:07:40]Read from MH i2c: E2 [01:07:40]MH_I2C_Read... [01:07:40]Read from MH i2c: E2 03 00 [01:07:40]MH_I2C_Read... [01:07:40]Read from MH i2c: E2 03 00 08 63 00 90 00 DF [01:07:40]RAPDU: 90 00 [01:07:40]wFMCommunicate OK [01:07:40]wFMCommunicate request_size=255 [01:07:40]MH_SAM_APDU [01:07:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 0C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 58 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 52 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 12 00 00 00 F4 03 04 00 E1 1E E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 1A E2 01 00 35 04 06 00 AD [01:07:40]Write to MH i2c: E2 02 01 09 63 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 0C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 58 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 52 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 12 00 00 00 F4 03 04 00 E1 1E E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 1A E2 01 00 35 04 06 00 AD 00 00 C9 [01:07:40]Write i2c OK [01:07:40]MH_I2C_Read... [01:07:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:07:40]Read from MH i2c: E2 [01:07:40]MH_I2C_Read... [01:07:40]Read from MH i2c: E2 03 00 [01:07:40]MH_I2C_Read... [01:07:40]Read from MH i2c: E2 03 00 09 63 00 90 00 E0 [01:07:40]RAPDU: 90 00 [01:07:40]wFMCommunicate OK [01:07:40]wFMCommunicate request_size=10 [01:07:40]MH_SAM_APDU [01:07:40]CAPDU: 80 0D 02 02 05 5D 15 21 F0 6E [01:07:40]Write to MH i2c: E2 0D 00 0A 63 80 0D 02 02 05 00 5D 15 21 F0 6E 00 00 E2 [01:07:40]Write i2c OK [01:07:40]MH_I2C_Read... [01:07:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:07:40]Read from MH i2c: E2 [01:07:40]MH_I2C_Read... [01:07:40]Read from MH i2c: E2 03 00 [01:07:40]MH_I2C_Read... [01:07:40]Read from MH i2c: E2 03 00 0A 63 00 90 00 E1 [01:07:40]RAPDU: 90 00 [01:07:40]wFMCommunicate OK [01:07:40]wFMCommunicate request_size=4 [01:07:40]MH_SAM_APDU [01:07:40]CAPDU: 80 0D 03 02 [01:07:40]Write to MH i2c: E2 08 00 0B 63 80 0D 03 02 00 00 00 00 E9 [01:07:40]Write i2c OK [01:07:40]MH_I2C_Read... [01:07:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:07:41]Read from MH i2c: E2 [01:07:41]MH_I2C_Read... [01:07:41]Read from MH i2c: E2 0B 00 [01:07:41]MH_I2C_Read... [01:07:41]Read from MH i2c: E2 0B 00 0B 63 00 4C A6 E4 BA E7 C4 77 C8 90 00 64 [01:07:41]RAPDU: 4C A6 E4 BA E7 C4 77 C8 90 00 [01:07:41]wFMCommunicate OK [01:07:41]SAM_PROTO_SignData done [01:07:41]FM_MakeSignedData done [01:07:41]CreateOFDProtocolMessage [01:07:41]wFMCommunicate request_size=4 [01:07:41]MH_SAM_APDU [01:07:41]CAPDU: 80 11 00 00 [01:07:41]Write to MH i2c: E2 08 00 0C 63 80 11 00 00 00 00 00 00 E9 [01:07:41]Write i2c OK [01:07:41]MH_I2C_Read... [01:07:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:07:41]Read from MH i2c: E2 [01:07:41]MH_I2C_Read... [01:07:41]Read from MH i2c: E2 17 00 [01:07:41]MH_I2C_Read... [01:07:41]Read from MH i2c: E2 17 00 0C 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 47 [01:07:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [01:07:41]wFMCommunicate OK [01:07:41]CreateOFDProtocolMessage done [01:07:41]OFDSenderStorePacket 123418 [01:07:41]StoreOFDPacket docnum=123418 [01:07:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 61 93 07 01 A5 C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 0C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 58 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 52 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 12 00 00 00 F4 03 04 00 E1 1E E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 1A E2 01 00 35 04 06 00 AD 5D 15 21 F0 6E 4C A6 E4 BA E7 C4 77 C8 [01:07:41]CheckFolder [01:07:41]dirname=/storage/ofd_packets [01:07:41]CheckFolder done [01:07:41]ProducePacketName [01:07:41]name=ofd_packets/00123418 [01:07:41]NVStorageSaveData ofd_packets/00123418 [01:07:41]File name is /storage/ofd_packets/00123418 [01:07:41]Write 301 bytes [01:07:41]NVStorageSaveData done [01:07:41]OFDSenderStorePacket done [01:07:41]KKMCreateOFDPacket done [01:07:41]NVStorageSaveData kkm_last_timestamp [01:07:41]File name is /storage/kkm_last_timestamp [01:07:41]Write 4 bytes [01:07:41]NVStorageSaveData done [01:07:41]ExternCall_PrintAddStr [01:07:41]wPrintStart [01:07:41]Write to MH i2c: 01 00 00 0D 63 70 [01:07:41]Write i2c OK [01:07:41]MH_I2C_Read... [01:07:41]Read from MH i2c: 01 [01:07:41]MH_I2C_Read... [01:07:41]Read from MH i2c: 01 07 00 [01:07:41]MH_I2C_Read... [01:07:41]Read from MH i2c: 01 07 00 0D 63 00 00 00 00 00 FF 0F 85 [01:07:41]RasterBufferAndPrint [01:07:41]line Счет N : (1)1106403 [01:07:41]line ИНН: 02508201610067 [01:07:41]line Контрольно-Кассовый Чек [01:07:41]line ПРОДАЖА [01:07:41]line ТРК (МРК, ГНК) : 21 [01:07:41]line Товар: 2710124130 [01:07:41]line Аи-92-К-5 [01:07:41]line 3.240 * 61.90 [01:07:41]line = 200.56 [01:07:41]line НДС 12% НСП 1% [01:07:41]line > о реализуемом товаре [01:07:41]line ОКРУГЛЕНИЕ: -0.56 [01:07:41]line ИТОГО: 200.00 [01:07:41]line Внесено: 200.00 [01:07:41]line СДАЧА: 0.00 [01:07:41]line НСП 1% : 1.77 [01:07:41]line НДС 12% : 21.30 [01:07:41]line Наличными: 200.00 [01:07:41]line Безнал.: 0.00 [01:07:41]line Место: АЗС № 25 "Партнер Нефть" [01:07:41]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [01:07:41]line СНО: Общий режим [01:07:41]line Чек 18 04.03.2024 01:07 [01:07:41]line Смена: 324 ФФД: 1.0 [01:07:41]line ЗНМ: 0300000019 [01:07:41]line РНМ: 0000000000090573 [01:07:41]line Версия ККМ: 001 [01:07:41]line ФМ: 0000000000874798 [01:07:41]line ФД: 123418 [01:07:41]line ФПД: 190615298109550 [01:07:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240304T010745&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123418&fm=190615298109550&tin=02508201610067®Number=0000000000090573&sum=20000 [01:07:41]OFD Sender: Processing packet 123418 [packets to send 112, broken 111] [01:07:41]ProducePacketName [01:07:41]name=ofd_packets/00123418 [01:07:41]OFD Sender: To server: pG, [01:07:41]CommunicateWithHost lk.salyk.kg:30040 [01:07:41]ConnectInit lk.salyk.kg [01:07:41]written 0, free lines is 4095 [01:07:41]Connected sock=10 [01:07: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 37 39 38 0F 01 00 00 61 93 07 01 A5 C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 0C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 58 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 52 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 12 00 00 00 F4 03 04 00 E1 1E E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 1A E2 01 00 35 04 06 00 AD 5D 15 21 F0 6E 4C A6 E4 BA E7 C4 77 C8 [01:07:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 CD 88 47 00 23 EE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 1A E2 01 00 F4 03 04 00 0B CB E4 65 B6 04 01 00 00 26 97 FE 69 BB CC 0E 2D [01:07:41]CommunicateWithHost err = 0 [01:07:41]CheckOFDResponse [01:07:41]1017 (14) - 77093643461234 [01:07:41]1041 (16) - 0000000000874798 [01:07:41]1040 (4) - 123418 [01:07:41]1012 (4) - 03.03.2024 19:10 [01:07:41]1206 (1) - 0 [01:07:41]OFD Sender: Remove packet 123418 [01:07:41]ProducePacketName [01:07:41]name=ofd_packets/00123418 [01:07:41]NVStorageDeleteData [01:07:41]Write to MH i2c: 01 00 00 38 63 9B [01:07:41]Write i2c OK [01:07:41]MH_I2C_Read... [01:07:41]Read from MH i2c: 01 [01:07:41]MH_I2C_Read... [01:07:41]Read from MH i2c: 01 07 00 [01:07:41]MH_I2C_Read... [01:07:41]Read from MH i2c: 01 07 00 38 63 00 00 00 00 00 EB 0C 99 [01:07:41]RasterBufferAndPrint [01:07:41]line [01:07:41]line [01:07:41]line [01:07:41]line [01:07:41]line [01:07:41]written 0, free lines is 3316 [01:07:41]MH_Cut [01:07:41]Write to MH i2c: D1 01 00 3F 63 01 74 [01:07:41]Write i2c OK [01:07:41]MH_I2C_Read... [01:07:41]Read from MH i2c: D1 [01:07:41]MH_I2C_Read... [01:07:41]Read from MH i2c: D1 01 00 [01:07:41]MH_I2C_Read... [01:07:41]Read from MH i2c: D1 01 00 3F 63 00 73 [01:07:41]Write to MH i2c: 01 00 00 40 63 A3 [01:07:41]Write i2c OK [01:07:41]MH_I2C_Read... [01:07:42]OFD Sender: No OFD packet to send [01:07:42]*** Cut start [01:07:42]*** Purtial cut [01:07:42]*** Stage 1: CUTSNS_PIN = 1 [01:07:44]Read from MH i2c: 01 [01:07:44]MH_I2C_Read... [01:07:44]*** Stop cut motor [01:07:44]*** Cut end [01:07:44]Read from MH i2c: 01 07 00 [01:07:44]MH_I2C_Read... [01:07:44]Read from MH i2c: 01 07 00 40 63 00 00 00 00 00 FF 0F B8 [01:07:44]process_action close_receipt done [01:07:44]requested_data is exist [01:07:44]produce_requested_data [01:07:44]requested_item fm.sn is exist - process it [01:07:44]wFMCommunicate request_size=4 [01:07:44]MH_SAM_APDU [01:07:44]CAPDU: 80 11 00 00 [01:07:44]Write to MH i2c: E2 08 00 41 63 80 11 00 00 00 00 00 00 1E [01:07:44]Write i2c OK [01:07:44]MH_I2C_Read... [01:07:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:07:44]Read from MH i2c: E2 [01:07:44]MH_I2C_Read... [01:07:44]Read from MH i2c: E2 17 00 [01:07:44]MH_I2C_Read... [01:07:44]Read from MH i2c: E2 17 00 41 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 7C [01:07:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [01:07:44]wFMCommunicate OK [01:07:44]requested_item fd.num is exist - process it [01:07:44]SAM_PROTO_GetFieldsCounters [01:07:44]wFMCommunicate request_size=4 [01:07:44]MH_SAM_APDU [01:07:44]CAPDU: 80 13 00 00 [01:07:44]Write to MH i2c: E2 08 00 42 63 80 13 00 00 00 00 00 00 21 [01:07:44]Write i2c OK [01:07:44]MH_I2C_Read... [01:07:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:07:44]Read from MH i2c: E2 [01:07:44]MH_I2C_Read... [01:07:44]Read from MH i2c: E2 62 00 [01:07:44]MH_I2C_Read... [01:07:44]Read from MH i2c: E2 62 00 42 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 1A E2 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 C4 [01:07:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 1A E2 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:07:44]wFMCommunicate OK [01:07:44]SAM_PROTO_GetFieldsCounters done [01:07:44]requested_item shift.num is exist - process it [01:07:44]requested_item shift.opened is exist - process it [01:07:44]req_shift_opened [01:07:44]FM_GetShiftState [01:07:44]SAM_PROTO_GetShiftState [01:07:44]wFMCommunicate request_size=4 [01:07:44]MH_SAM_APDU [01:07:44]CAPDU: 80 13 01 00 [01:07:44]Write to MH i2c: E2 08 00 43 63 80 13 01 00 00 00 00 00 23 [01:07:44]Write i2c OK [01:07:44]MH_I2C_Read... [01:07:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:07:44]Read from MH i2c: E2 [01:07:44]MH_I2C_Read... [01:07:44]Read from MH i2c: E2 0E 00 [01:07:44]MH_I2C_Read... [01:07:44]Read from MH i2c: E2 0E 00 43 63 00 09 00 01 B0 11 E5 65 00 00 00 00 90 00 3A [01:07:44]RAPDU: 09 00 01 B0 11 E5 65 00 00 00 00 90 00 [01:07:44]wFMCommunicate OK [01:07:44]SAM_PROTO_GetShiftState done [01:07:44]FM_GetShiftState done [01:07:44]req_shift_opened done [01:07:44]requested_item shift.open_date is exist - process it [01:07:44]req_shift_open_date [01:07:44]req_shift_open_date done [01:07:44]produce_requested_data done [01:07:44]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123418,"shift.num":324,"shift.opened":1,"shift.open_date":1709511088} [01:07:44]process_action_free close_receipt [01:07:44]json_value_free [01:07:44]json_value_free done [01:07:44]process_json_proto returns [01:07:44]Send response to host [01:07:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123418,"shift.num":324,"shift.opened":1,"shift.open_date":1709511088}}} [01:07:44]free response buf [01:07:44]execute_script done [01:07:44]execute_script returns [01:07:44]free content buf [01:07:44]Sock 7.Close socket [01:07:44]Sock 7.Thread stoped [01:07:46]accept exits with 9 [01:07:46]New connection [01:07:46]New thread 3067395428 created [01:07:46]Thread 3067252068 joined [01:07:46]Waiting for new connection... [01:07:46] Sock 9.Parse request [01:07:46]Sock 9.Check first char [01:07:46]Sock 9.First char is OK [01:07:46]request: POST /json_proto HTTP/1.0 [01:07:46]Method: POST [01:07:46]URL: /json_proto [01:07:46]Method is POST - this is cgi request [01:07:46]url: /json_proto [01:07:46]query_string will be loaded in cgi processing [01:07:46]execute_cgi json_proto POST (null) [01:07:46]execute_cgi path=json_proto method=POST [01:07:46]POST find Content-Length [01:07:46]Host: 172.17.48.197:8080 [01:07:46]Content-Length: 735 [01:07:46]Content-Type: application/json [01:07:46] [01:07:46]POST finish read [01:07:46]Found Content-Length = 735 [01:07:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 123418, "base_FM": "0000000000874798", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106403", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 3.240, "sum" : 200.56, "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" ] } } [01:07:46]execute_script... [01:07:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 123418, "base_FM": "0000000000874798", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106403", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 3.240, "sum" : 200.56, "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" ] } } [01:07:46]POST & json_proto [01:07:46]process_json_proto [01:07:46]json parsed OK: [01:07:46]protocol is kg_v1.0 [01:07:46]action value=close_receipt [01:07:46]process_action close_receipt [01:07:46]cmd_close_receipt [01:07:46]MH_GetDate [01:07:46]Write to MH i2c: F0 00 00 44 63 96 [01:07:46]Write i2c OK [01:07:46]MH_I2C_Read... [01:07:46]Read from MH i2c: F0 [01:07:46]MH_I2C_Read... [01:07:46]Read from MH i2c: F0 09 00 [01:07:46]MH_I2C_Read... [01:07:46]Read from MH i2c: F0 09 00 44 63 00 E8 1E E5 65 6C AF E3 65 52 [01:07:46]GetLastDocTimeStamp 1709514465 [01:07:46]current date 1709514472 [01:07:46]FM_GetShiftState [01:07:46]SAM_PROTO_GetShiftState [01:07:46]wFMCommunicate request_size=4 [01:07:46]MH_SAM_APDU [01:07:46]CAPDU: 80 13 01 00 [01:07:46]Write to MH i2c: E2 08 00 45 63 80 13 01 00 00 00 00 00 25 [01:07:46]Write i2c OK [01:07:46]MH_I2C_Read... [01:07:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:07:46]Read from MH i2c: E2 [01:07:46]MH_I2C_Read... [01:07:46]Read from MH i2c: E2 0E 00 [01:07:46]MH_I2C_Read... [01:07:46]Read from MH i2c: E2 0E 00 45 63 00 09 00 01 B0 11 E5 65 00 00 00 00 90 00 3C [01:07:46]RAPDU: 09 00 01 B0 11 E5 65 00 00 00 00 90 00 [01:07:46]wFMCommunicate OK [01:07:46]SAM_PROTO_GetShiftState done [01:07:46]FM_GetShiftState done [01:07:46]opened in 1709511088 [01:07:46]opened+sec_in_day 1709597488 [01:07:46]quantity*price = 20055 [01:07:46]sum+1 = 20057 [01:07:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 200.00 НСП 1% : 1.77 НДС 12% : 21.30 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 19 04.03.2024 01:07 Смена: 324 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФД осн.: 123418 ФМ осн.: 0000000000874798 ФМ: 0000000000874798 ФД: 123419 ФПД: 93991727856755 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240304T010752&type=2&operation_type=1&fn_number=0000000000874798&fd_number=123419&fm=93991727856755&tin=02508201610067®Number=0000000000090573&sum=20000 [01:07:48]StoreToDocumentArchive [01:07:48]shift 324 fd 123419 [01:07:48]save to /storage/0324/doc_00123419 [01:07:48]save last doc name /storage/0324/doc_00123419 to /storage/kkm_last_doc_name [01:07:48]save OK [01:07:48]Clear old archive folders... [01:07:48]ProcessDocumentItem done err = 0, tmpTLVsize=279 [01:07:48]tlvbuf is 00E27A80 [01:07:48]SAM_PROTO_ClearQueue [01:07:48]wFMCommunicate request_size=4 [01:07:48]MH_SAM_APDU [01:07:48]CAPDU: 80 09 00 00 [01:07:48]Write to MH i2c: E2 08 00 54 63 80 09 00 00 00 00 00 00 29 [01:07:48]Write i2c OK [01:07:48]MH_I2C_Read... [01:07:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:07:48]Read from MH i2c: E2 [01:07:48]MH_I2C_Read... [01:07:48]Read from MH i2c: E2 03 00 [01:07:48]MH_I2C_Read... [01:07:48]Read from MH i2c: E2 03 00 54 63 00 90 00 2B [01:07:48]RAPDU: 90 00 [01:07:48]wFMCommunicate OK [01:07:48]SAM_PROTO_ClearQueue done [01:07:48]KKMCreateOFDPacket [01:07:48]OFDProtocolAddRootSTLVToBuf [01:07:48]FM_MakeSignedData [01:07:48]FM_MakeSignedData [01:07:48]SAM_PROTO_SignData [01:07:48]wFMCommunicate request_size=4 [01:07:48]MH_SAM_APDU [01:07:48]CAPDU: 80 0D 01 02 [01:07:48]Write to MH i2c: E2 08 00 55 63 80 0D 01 02 00 00 00 00 31 [01:07:48]Write i2c OK [01:07:48]MH_I2C_Read... [01:07:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:07:48]Read from MH i2c: E2 [01:07:48]MH_I2C_Read... [01:07:48]Read from MH i2c: E2 03 00 [01:07:48]MH_I2C_Read... [01:07:48]Read from MH i2c: E2 03 00 55 63 00 90 00 2C [01:07:48]RAPDU: 90 00 [01:07:48]wFMCommunicate OK [01:07:48]wFMCommunicate request_size=255 [01:07:48]MH_SAM_APDU [01:07:48]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 35 FF 03 08 00 03 A8 0C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 58 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 52 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 13 00 00 00 F4 03 04 00 E8 1E E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 27 04 04 00 1A E2 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 11 04 10 00 30 [01:07:48]Write to MH i2c: E2 02 01 56 63 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 35 FF 03 08 00 03 A8 0C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 58 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 52 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 13 00 00 00 F4 03 04 00 E8 1E E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 27 04 04 00 1A E2 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 11 04 10 00 30 00 00 D3 [01:07:48]Write i2c OK [01:07:48]MH_I2C_Read... [01:07:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:07:48]Read from MH i2c: E2 [01:07:48]MH_I2C_Read... [01:07:48]Read from MH i2c: E2 03 00 [01:07:48]MH_I2C_Read... [01:07:48]Read from MH i2c: E2 03 00 56 63 00 90 00 2D [01:07:48]RAPDU: 90 00 [01:07:48]wFMCommunicate OK [01:07:48]wFMCommunicate request_size=38 [01:07:48]MH_SAM_APDU [01:07:48]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 1B E2 01 00 35 04 06 00 55 7C 27 8C FC 73 [01:07:48]Write to MH i2c: E2 29 00 57 63 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 1B E2 01 00 35 04 06 00 55 7C 27 8C FC 73 00 00 B9 [01:07:48]Write i2c OK [01:07:48]MH_I2C_Read... [01:07:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:07:48]Read from MH i2c: E2 [01:07:48]MH_I2C_Read... [01:07:48]Read from MH i2c: E2 03 00 [01:07:48]MH_I2C_Read... [01:07:48]Read from MH i2c: E2 03 00 57 63 00 90 00 2E [01:07:48]RAPDU: 90 00 [01:07:48]wFMCommunicate OK [01:07:48]wFMCommunicate request_size=4 [01:07:48]MH_SAM_APDU [01:07:48]CAPDU: 80 0D 03 02 [01:07:48]Write to MH i2c: E2 08 00 58 63 80 0D 03 02 00 00 00 00 36 [01:07:48]Write i2c OK [01:07:48]MH_I2C_Read... [01:07:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:07:48]Read from MH i2c: E2 [01:07:48]MH_I2C_Read... [01:07:48]Read from MH i2c: E2 0B 00 [01:07:48]MH_I2C_Read... [01:07:48]Read from MH i2c: E2 0B 00 58 63 00 B0 9E 8B 3B 09 41 0B 07 90 00 A7 [01:07:48]RAPDU: B0 9E 8B 3B 09 41 0B 07 90 00 [01:07:48]wFMCommunicate OK [01:07:48]SAM_PROTO_SignData done [01:07:48]FM_MakeSignedData done [01:07:48]CreateOFDProtocolMessage [01:07:48]wFMCommunicate request_size=4 [01:07:48]MH_SAM_APDU [01:07:48]CAPDU: 80 11 00 00 [01:07:48]Write to MH i2c: E2 08 00 59 63 80 11 00 00 00 00 00 00 36 [01:07:48]Write i2c OK [01:07:48]MH_I2C_Read... [01:07:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:07:48]Read from MH i2c: E2 [01:07:48]MH_I2C_Read... [01:07:48]Read from MH i2c: E2 17 00 [01:07:48]MH_I2C_Read... [01:07:48]Read from MH i2c: E2 17 00 59 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 94 [01:07:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [01:07:48]wFMCommunicate OK [01:07:48]CreateOFDProtocolMessage done [01:07:48]OFDSenderStorePacket 123419 [01:07:48]StoreOFDPacket docnum=123419 [01:07:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 2B 01 00 00 FA 9D 23 01 DA D7 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 35 FF 03 08 00 03 A8 0C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 58 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 52 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 13 00 00 00 F4 03 04 00 E8 1E E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 27 04 04 00 1A E2 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 1B E2 01 00 35 04 06 00 55 7C 27 8C FC 73 B0 9E 8B 3B 09 41 0B 07 [01:07:48]CheckFolder [01:07:48]dirname=/storage/ofd_packets [01:07:48]CheckFolder done [01:07:48]ProducePacketName [01:07:48]name=ofd_packets/00123419 [01:07:48]NVStorageSaveData ofd_packets/00123419 [01:07:48]File name is /storage/ofd_packets/00123419 [01:07:48]Write 329 bytes [01:07:48]NVStorageSaveData done [01:07:48]OFDSenderStorePacket done [01:07:48]KKMCreateOFDPacket done [01:07:48]NVStorageSaveData kkm_last_timestamp [01:07:48]File name is /storage/kkm_last_timestamp [01:07:48]Write 4 bytes [01:07:48]NVStorageSaveData done [01:07:48]ExternCall_PrintAddStr [01:07:48]wPrintStart [01:07:48]Write to MH i2c: 01 00 00 5A 63 BD [01:07:48]Write i2c OK [01:07:48]MH_I2C_Read... [01:07:48]Read from MH i2c: 01 [01:07:48]MH_I2C_Read... [01:07:48]Read from MH i2c: 01 07 00 [01:07:48]MH_I2C_Read... [01:07:48]Read from MH i2c: 01 07 00 5A 63 00 00 00 00 00 FF 0F D2 [01:07:48]RasterBufferAndPrint [01:07:48]line Счет N : (1)1106403 [01:07:48]line ИНН: 02508201610067 [01:07:48]line Контрольно-Кассовый Чек [01:07:48]line ВОЗВРАТ ПРОДАЖИ [01:07:48]line ТРК (МРК, ГНК) : 21 [01:07:48]line Товар: 2710124130 [01:07:48]line Аи-92-К-5 [01:07:48]line 3.240 * 61.90 [01:07:48]line = 200.56 [01:07:48]line НДС 12% НСП 1% [01:07:48]line > о реализуемом товаре [01:07:48]line ОКРУГЛЕНИЕ: -0.56 [01:07:48]line ИТОГО: 200.00 [01:07:48]line НСП 1% : 1.77 [01:07:48]line НДС 12% : 21.30 [01:07:48]line Наличными: 200.00 [01:07:48]line Безнал.: 0.00 [01:07:48]line Место: АЗС № 25 "Партнер Нефть" [01:07:48]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [01:07:48]line СНО: Общий режим [01:07:48]line Чек 19 04.03.2024 01:07 [01:07:48]line Смена: 324 ФФД: 1.0 [01:07:48]line ЗНМ: 0300000019 [01:07:48]line РНМ: 0000000000090573 [01:07:48]line Версия ККМ: 001 [01:07:48]line ФД осн.: 123418 [01:07:48]line ФМ осн.: 0000000000874798 [01:07:48]line ФМ: 0000000000874798 [01:07:48]line ФД: 123419 [01:07:48]line ФПД: 93991727856755 [01:07:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240304T010752&type=2&operation_type=1&fn_number=0000000000874798&fd_number=123419&fm=93991727856755&tin=02508201610067®Number=0000000000090573&sum=20000 [01:07:48]written 0, free lines is 4095 [01:07:48]OFD Sender: Processing packet 123419 [packets to send 112, broken 111] [01:07:48]ProducePacketName [01:07:48]name=ofd_packets/00123419 [01:07:48]OFD Sender: To server: pG, [01:07:48]CommunicateWithHost lk.salyk.kg:30040 [01:07:48]ConnectInit lk.salyk.kg [01:07:48]Connected sock=10 [01:07: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 37 39 38 2B 01 00 00 FA 9D 23 01 DA D7 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 35 FF 03 08 00 03 A8 0C 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 58 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 52 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 13 00 00 00 F4 03 04 00 E8 1E E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 27 04 04 00 1A E2 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 1B E2 01 00 35 04 06 00 55 7C 27 8C FC 73 B0 9E 8B 3B 09 41 0B 07 [01:07:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 D8 9B 47 00 CB 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 1B E2 01 00 F4 03 04 00 12 CB E4 65 B6 04 01 00 00 32 47 F8 F8 23 59 64 B2 [01:07:49]CommunicateWithHost err = 0 [01:07:49]CheckOFDResponse [01:07:49]1017 (14) - 77093643461234 [01:07:49]1041 (16) - 0000000000874798 [01:07:49]1040 (4) - 123419 [01:07:49]1012 (4) - 03.03.2024 19:10 [01:07:49]1206 (1) - 0 [01:07:49]OFD Sender: Remove packet 123419 [01:07:49]ProducePacketName [01:07:49]name=ofd_packets/00123419 [01:07:49]NVStorageDeleteData [01:07:49]Write to MH i2c: 01 00 00 85 63 E8 [01:07:49]Write i2c OK [01:07:49]MH_I2C_Read... [01:07:49]Read from MH i2c: 01 [01:07:49]MH_I2C_Read... [01:07:49]Read from MH i2c: 01 07 00 [01:07:49]MH_I2C_Read... [01:07:49]Read from MH i2c: 01 07 00 85 63 00 00 00 00 00 1E 0D 1A [01:07:49]RasterBufferAndPrint [01:07:49]line [01:07:49]line [01:07:49]line [01:07:49]line [01:07:49]line [01:07:49]written 0, free lines is 3373 [01:07:49]MH_Cut [01:07:49]Write to MH i2c: D1 01 00 8C 63 01 C1 [01:07:49]Write i2c OK [01:07:49]MH_I2C_Read... [01:07:49]Read from MH i2c: D1 [01:07:49]MH_I2C_Read... [01:07:49]Read from MH i2c: D1 01 00 [01:07:49]MH_I2C_Read... [01:07:49]Read from MH i2c: D1 01 00 8C 63 00 C0 [01:07:49]Write to MH i2c: 01 00 00 8D 63 F0 [01:07:49]Write i2c OK [01:07:49]MH_I2C_Read... [01:07:49]OFD Sender: No OFD packet to send [01:07:49]*** Cut start [01:07:49]*** Purtial cut [01:07:49]*** Stage 1: CUTSNS_PIN = 1 [01:07:51]Read from MH i2c: 01 [01:07:51]MH_I2C_Read... [01:07:51]*** Stop cut motor [01:07:51]*** Cut end [01:07:51]Read from MH i2c: 01 07 00 [01:07:51]MH_I2C_Read... [01:07:51]Read from MH i2c: 01 07 00 8D 63 00 00 00 00 00 FF 0F 05 [01:07:51]process_action close_receipt done [01:07:51]requested_data is exist [01:07:51]produce_requested_data [01:07:51]requested_item fm.sn is exist - process it [01:07:51]wFMCommunicate request_size=4 [01:07:51]MH_SAM_APDU [01:07:51]CAPDU: 80 11 00 00 [01:07:51]Write to MH i2c: E2 08 00 8E 63 80 11 00 00 00 00 00 00 6B [01:07:51]Write i2c OK [01:07:51]MH_I2C_Read... [01:07:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:07:52]Read from MH i2c: E2 [01:07:52]MH_I2C_Read... [01:07:52]Read from MH i2c: E2 17 00 [01:07:52]MH_I2C_Read... [01:07:52]Read from MH i2c: E2 17 00 8E 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 C9 [01:07:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [01:07:52]wFMCommunicate OK [01:07:52]requested_item fd.num is exist - process it [01:07:52]SAM_PROTO_GetFieldsCounters [01:07:52]wFMCommunicate request_size=4 [01:07:52]MH_SAM_APDU [01:07:52]CAPDU: 80 13 00 00 [01:07:52]Write to MH i2c: E2 08 00 8F 63 80 13 00 00 00 00 00 00 6E [01:07:52]Write i2c OK [01:07:52]MH_I2C_Read... [01:07:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:07:52]Read from MH i2c: E2 [01:07:52]MH_I2C_Read... [01:07:52]Read from MH i2c: E2 62 00 [01:07:52]MH_I2C_Read... [01:07:52]Read from MH i2c: E2 62 00 8F 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 1B E2 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 15 [01: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 1B E2 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:07:52]wFMCommunicate OK [01:07:52]SAM_PROTO_GetFieldsCounters done [01:07:52]requested_item shift.num is exist - process it [01:07:52]requested_item shift.opened is exist - process it [01:07:52]req_shift_opened [01:07:52]FM_GetShiftState [01:07:52]SAM_PROTO_GetShiftState [01:07:52]wFMCommunicate request_size=4 [01:07:52]MH_SAM_APDU [01:07:52]CAPDU: 80 13 01 00 [01:07:52]Write to MH i2c: E2 08 00 90 63 80 13 01 00 00 00 00 00 70 [01:07:52]Write i2c OK [01:07:52]MH_I2C_Read... [01:07:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:07:52]Read from MH i2c: E2 [01:07:52]MH_I2C_Read... [01:07:52]Read from MH i2c: E2 0E 00 [01:07:52]MH_I2C_Read... [01:07:52]Read from MH i2c: E2 0E 00 90 63 00 09 00 01 B0 11 E5 65 00 00 00 00 90 00 87 [01:07:52]RAPDU: 09 00 01 B0 11 E5 65 00 00 00 00 90 00 [01:07:52]wFMCommunicate OK [01:07:52]SAM_PROTO_GetShiftState done [01:07:52]FM_GetShiftState done [01:07:52]req_shift_opened done [01:07:52]requested_item shift.open_date is exist - process it [01:07:52]req_shift_open_date [01:07:52]req_shift_open_date done [01:07:52]produce_requested_data done [01:07:52]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123419,"shift.num":324,"shift.opened":1,"shift.open_date":1709511088} [01:07:52]process_action_free close_receipt [01:07:52]json_value_free [01:07:52]json_value_free done [01:07:52]process_json_proto returns [01:07:52]Send response to host [01:07:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123419,"shift.num":324,"shift.opened":1,"shift.open_date":1709511088}}} [01:07:52]free response buf [01:07:52]execute_script done [01:07:52]execute_script returns [01:07:52]free content buf [01:07:52]Sock 9.Close socket [01:07:52]Sock 9.Thread stoped [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:34]OFD Sender: No OFD packet to send [01:08:39]OFD Sender: No OFD packet to send [01:08:44]OFD Sender: No OFD packet to send [01:08:49]OFD Sender: No OFD packet to send [01:08:54]OFD Sender: No OFD packet to send [01:08:59]OFD Sender: No OFD packet to send [01:09:04]OFD Sender: No OFD packet to send [01:09:09]OFD Sender: No OFD packet to send [01:09:14]OFD Sender: No OFD packet to send [01:09:19]OFD Sender: No OFD packet to send [01:09:24]OFD Sender: No OFD packet to send [01:09:29]OFD Sender: No OFD packet to send [01:09:34]OFD Sender: No OFD packet to send [01:09:39]OFD Sender: No OFD packet to send [01:09:44]OFD Sender: No OFD packet to send [01:09:49]OFD Sender: No OFD packet to send [01:09:54]OFD Sender: No OFD packet to send [01:09:59]OFD Sender: No OFD packet to send [01:10:04]OFD Sender: No OFD packet to send [01:10:09]OFD Sender: No OFD packet to send [01:10:14]OFD Sender: No OFD packet to send [01:10:19]OFD Sender: No OFD packet to send [01:10:24]OFD Sender: No OFD packet to send [01:10:29]OFD Sender: No OFD packet to send [01:10:34]OFD Sender: No OFD packet to send [01:10:39]OFD Sender: No OFD packet to send [01:10:44]OFD Sender: No OFD packet to send [01:10:49]OFD Sender: No OFD packet to send [01:10:54]OFD Sender: No OFD packet to send [01:10:59]OFD Sender: No OFD packet to send [01:11:00]accept exits with 7 [01:11:00]New connection [01:11:00]New thread 3067252068 created [01:11:00]Thread 3067395428 joined [01:11:00]Waiting for new connection... [01:11:00] Sock 7.Parse request [01:11:00]Sock 7.Check first char [01:11:00]Sock 7.First char is OK [01:11:00]request: POST /json_proto HTTP/1.0 [01:11:00]Method: POST [01:11:00]URL: /json_proto [01:11:00]Method is POST - this is cgi request [01:11:00]url: /json_proto [01:11:00]query_string will be loaded in cgi processing [01:11:00]execute_cgi json_proto POST (null) [01:11:00]execute_cgi path=json_proto method=POST [01:11:00]POST find Content-Length [01:11:00]Host: 172.17.48.197:8080 [01:11:00]Content-Length: 683 [01:11:00]Content-Type: application/json [01:11:00] [01:11:00]POST finish read [01:11:00]Found Content-Length = 683 [01:11:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106404", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "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" ] } } [01:11:00]execute_script... [01:11: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 : (1)1106404", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 16.160, "sum" : 1000.30, "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" ] } } [01:11:00]POST & json_proto [01:11:00]process_json_proto [01:11:00]json parsed OK: [01:11:00]protocol is kg_v1.0 [01:11:00]action value=close_receipt [01:11:00]process_action close_receipt [01:11:00]cmd_close_receipt [01:11:00]MH_GetDate [01:11:00]Write to MH i2c: F0 00 00 91 63 E3 [01:11:00]Write i2c OK [01:11:00]MH_I2C_Read... [01:11:00]Read from MH i2c: F0 [01:11:00]MH_I2C_Read... [01:11:00]Read from MH i2c: F0 09 00 [01:11:00]MH_I2C_Read... [01:11:00]Read from MH i2c: F0 09 00 91 63 00 AA 1F E5 65 6C AF E3 65 62 [01:11:00]GetLastDocTimeStamp 1709514472 [01:11:00]current date 1709514666 [01:11:00]FM_GetShiftState [01:11:00]SAM_PROTO_GetShiftState [01:11:00]wFMCommunicate request_size=4 [01:11:00]MH_SAM_APDU [01:11:00]CAPDU: 80 13 01 00 [01:11:00]Write to MH i2c: E2 08 00 92 63 80 13 01 00 00 00 00 00 72 [01:11:00]Write i2c OK [01:11:00]MH_I2C_Read... [01:11:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:11:00]Read from MH i2c: E2 [01:11:00]MH_I2C_Read... [01:11:00]Read from MH i2c: E2 0E 00 [01:11:00]MH_I2C_Read... [01:11:00]Read from MH i2c: E2 0E 00 92 63 00 09 00 01 B0 11 E5 65 00 00 00 00 90 00 89 [01:11:00]RAPDU: 09 00 01 B0 11 E5 65 00 00 00 00 90 00 [01:11:00]wFMCommunicate OK [01:11:00]SAM_PROTO_GetShiftState done [01:11:00]FM_GetShiftState done [01:11:00]opened in 1709511088 [01:11:00]opened+sec_in_day 1709597488 [01:11:00]quantity*price = 100030 [01:11:00]sum+1 = 100031 [01:11:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 20 04.03.2024 01:11 Смена: 324 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123420 ФПД: 198862051179967 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240304T011107&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123420&fm=198862051179967&tin=02508201610067®Number=0000000000090573&sum=100000 [01:11:02]StoreToDocumentArchive [01:11:02]shift 324 fd 123420 [01:11:02]save to /storage/0324/doc_00123420 [01:11:02]save last doc name /storage/0324/doc_00123420 to /storage/kkm_last_doc_name [01:11:02]save OK [01:11:02]Clear old archive folders... [01:11:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:11:02]tlvbuf is 00F87C00 [01:11:02]SAM_PROTO_ClearQueue [01:11:02]wFMCommunicate request_size=4 [01:11:02]MH_SAM_APDU [01:11:02]CAPDU: 80 09 00 00 [01:11:02]Write to MH i2c: E2 08 00 9F 63 80 09 00 00 00 00 00 00 74 [01:11:02]Write i2c OK [01:11:02]MH_I2C_Read... [01:11:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:11:02]Read from MH i2c: E2 [01:11:02]MH_I2C_Read... [01:11:02]Read from MH i2c: E2 03 00 [01:11:02]MH_I2C_Read... [01:11:02]Read from MH i2c: E2 03 00 9F 63 00 90 00 76 [01:11:02]RAPDU: 90 00 [01:11:02]wFMCommunicate OK [01:11:02]SAM_PROTO_ClearQueue done [01:11:02]KKMCreateOFDPacket [01:11:02]OFDProtocolAddRootSTLVToBuf [01:11:02]FM_MakeSignedData [01:11:02]FM_MakeSignedData [01:11:02]SAM_PROTO_SignData [01:11:02]wFMCommunicate request_size=4 [01:11:02]MH_SAM_APDU [01:11:02]CAPDU: 80 0D 01 02 [01:11:02]Write to MH i2c: E2 08 00 A0 63 80 0D 01 02 00 00 00 00 7C [01:11:02]Write i2c OK [01:11:02]MH_I2C_Read... [01:11:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:11:02]Read from MH i2c: E2 [01:11:02]MH_I2C_Read... [01:11:02]Read from MH i2c: E2 03 00 [01:11:02]MH_I2C_Read... [01:11:02]Read from MH i2c: E2 03 00 A0 63 00 90 00 77 [01:11:02]RAPDU: 90 00 [01:11:02]wFMCommunicate OK [01:11:02]wFMCommunicate request_size=255 [01:11:02]MH_SAM_APDU [01:11:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 14 00 00 00 F4 03 04 00 AB 1F E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 1C E2 01 00 35 04 06 00 B4 [01:11:02]Write to MH i2c: E2 02 01 A1 63 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 14 00 00 00 F4 03 04 00 AB 1F E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 1C E2 01 00 35 04 06 00 B4 00 00 08 [01:11:02]Write i2c OK [01:11:02]MH_I2C_Read... [01:11:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:11:02]Read from MH i2c: E2 [01:11:02]MH_I2C_Read... [01:11:02]Read from MH i2c: E2 03 00 [01:11:02]MH_I2C_Read... [01:11:02]Read from MH i2c: E2 03 00 A1 63 00 90 00 78 [01:11:02]RAPDU: 90 00 [01:11:02]wFMCommunicate OK [01:11:02]wFMCommunicate request_size=10 [01:11:02]MH_SAM_APDU [01:11:02]CAPDU: 80 0D 02 02 05 DD 2D EB 7D BF [01:11:02]Write to MH i2c: E2 0D 00 A2 63 80 0D 02 02 05 00 DD 2D EB 7D BF 00 00 BA [01:11:02]Write i2c OK [01:11:02]MH_I2C_Read... [01:11:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:11:02]Read from MH i2c: E2 [01:11:02]MH_I2C_Read... [01:11:02]Read from MH i2c: E2 03 00 [01:11:02]MH_I2C_Read... [01:11:02]Read from MH i2c: E2 03 00 A2 63 00 90 00 79 [01:11:02]RAPDU: 90 00 [01:11:02]wFMCommunicate OK [01:11:02]wFMCommunicate request_size=4 [01:11:02]MH_SAM_APDU [01:11:02]CAPDU: 80 0D 03 02 [01:11:02]Write to MH i2c: E2 08 00 A3 63 80 0D 03 02 00 00 00 00 81 [01:11:02]Write i2c OK [01:11:02]MH_I2C_Read... [01:11:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:11:02]Read from MH i2c: E2 [01:11:02]MH_I2C_Read... [01:11:02]Read from MH i2c: E2 0B 00 [01:11:02]MH_I2C_Read... [01:11:02]Read from MH i2c: E2 0B 00 A3 63 00 AB FB F9 0B 0B A6 C2 99 90 00 38 [01:11:02]RAPDU: AB FB F9 0B 0B A6 C2 99 90 00 [01:11:02]wFMCommunicate OK [01:11:02]SAM_PROTO_SignData done [01:11:02]FM_MakeSignedData done [01:11:02]CreateOFDProtocolMessage [01:11:02]wFMCommunicate request_size=4 [01:11:02]MH_SAM_APDU [01:11:02]CAPDU: 80 11 00 00 [01:11:02]Write to MH i2c: E2 08 00 A4 63 80 11 00 00 00 00 00 00 81 [01:11:02]Write i2c OK [01:11:02]MH_I2C_Read... [01:11:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:11:02]Read from MH i2c: E2 [01:11:02]MH_I2C_Read... [01:11:02]Read from MH i2c: E2 17 00 [01:11:02]MH_I2C_Read... [01:11:02]Read from MH i2c: E2 17 00 A4 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 DF [01:11:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [01:11:02]wFMCommunicate OK [01:11:02]CreateOFDProtocolMessage done [01:11:02]OFDSenderStorePacket 123420 [01:11:02]StoreOFDPacket docnum=123420 [01:11:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 57 95 07 01 A7 F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 14 00 00 00 F4 03 04 00 AB 1F E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 1C E2 01 00 35 04 06 00 B4 DD 2D EB 7D BF AB FB F9 0B 0B A6 C2 99 [01:11:02]CheckFolder [01:11:02]dirname=/storage/ofd_packets [01:11:02]CheckFolder done [01:11:02]ProducePacketName [01:11:02]name=ofd_packets/00123420 [01:11:02]NVStorageSaveData ofd_packets/00123420 [01:11:02]File name is /storage/ofd_packets/00123420 [01:11:02]Write 301 bytes [01:11:02]NVStorageSaveData done [01:11:02]OFDSenderStorePacket done [01:11:02]KKMCreateOFDPacket done [01:11:02]NVStorageSaveData kkm_last_timestamp [01:11:02]File name is /storage/kkm_last_timestamp [01:11:02]Write 4 bytes [01:11:02]NVStorageSaveData done [01:11:02]ExternCall_PrintAddStr [01:11:02]wPrintStart [01:11:02]Write to MH i2c: 01 00 00 A5 63 08 [01:11:02]Write i2c OK [01:11:02]MH_I2C_Read... [01:11:02]Read from MH i2c: 01 [01:11:02]MH_I2C_Read... [01:11:02]Read from MH i2c: 01 07 00 [01:11:02]MH_I2C_Read... [01:11:02]Read from MH i2c: 01 07 00 A5 63 00 00 00 00 00 FF 0F 1D [01:11:02]RasterBufferAndPrint [01:11:02]line Счет N : (1)1106404 [01:11:02]line ИНН: 02508201610067 [01:11:02]line Контрольно-Кассовый Чек [01:11:02]line ПРОДАЖА [01:11:02]line ТРК (МРК, ГНК) : 52 [01:11:02]line Товар: 2710124130 [01:11:02]line Аи-92-К-5 [01:11:02]line 16.160 * 61.90 [01:11:02]line = 1000.30 [01:11:02]line НДС 12% НСП 1% [01:11:02]line > о реализуемом товаре [01:11:02]line ОКРУГЛЕНИЕ: -0.30 [01:11:02]line ИТОГО: 1000.00 [01:11:02]line Внесено: 1000.00 [01:11:02]line СДАЧА: 0.00 [01:11:02]line НСП 1% : 8.85 [01:11:02]line НДС 12% : 106.23 [01:11:02]line Наличными: 1000.00 [01:11:02]line Безнал.: 0.00 [01:11:02]line Место: АЗС № 25 "Партнер Нефть" [01:11:02]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [01:11:02]line СНО: Общий режим [01:11:02]line Чек 20 04.03.2024 01:11 [01:11:02]line Смена: 324 ФФД: 1.0 [01:11:02]line ЗНМ: 0300000019 [01:11:02]line РНМ: 0000000000090573 [01:11:02]line Версия ККМ: 001 [01:11:02]line ФМ: 0000000000874798 [01:11:02]line ФД: 123420 [01:11:02]line ФПД: 198862051179967 [01:11:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240304T011107&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123420&fm=198862051179967&tin=02508201610067®Number=0000000000090573&sum=100000 [01:11:02]OFD Sender: Processing packet 123420 [packets to send 112, broken 111] [01:11:02]ProducePacketName [01:11:02]name=ofd_packets/00123420 [01:11:02]OFD Sender: To server: pG, [01:11:02]CommunicateWithHost lk.salyk.kg:30040 [01:11:02]ConnectInit lk.salyk.kg [01:11:02]written 0, free lines is 4095 [01:11:03]Connected sock=10 [01:11: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 37 39 38 0F 01 00 00 57 95 07 01 A7 F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 3F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 BE 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 7F 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 14 00 00 00 F4 03 04 00 AB 1F E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 1C E2 01 00 35 04 06 00 B4 DD 2D EB 7D BF AB FB F9 0B 0B A6 C2 99 [01:11:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 8C EB 47 00 78 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 37 39 38 10 04 04 00 1C E2 01 00 F4 03 04 00 D5 CB E4 65 B6 04 01 00 00 DD 04 3D 84 69 BF C8 3A [01:11:03]CommunicateWithHost err = 0 [01:11:03]CheckOFDResponse [01:11:03]1017 (14) - 77093643461234 [01:11:03]1041 (16) - 0000000000874798 [01:11:03]1040 (4) - 123420 [01:11:03]1012 (4) - 03.03.2024 19:13 [01:11:03]1206 (1) - 0 [01:11:03]OFD Sender: Remove packet 123420 [01:11:03]ProducePacketName [01:11:03]name=ofd_packets/00123420 [01:11:03]NVStorageDeleteData [01:11:03]Write to MH i2c: 01 00 00 D0 63 33 [01:11:03]Write i2c OK [01:11:03]MH_I2C_Read... [01:11:03]Read from MH i2c: 01 [01:11:03]MH_I2C_Read... [01:11:03]Read from MH i2c: 01 07 00 [01:11:03]MH_I2C_Read... [01:11:03]Read from MH i2c: 01 07 00 D0 63 00 00 00 00 00 FB 0C 41 [01:11:03]RasterBufferAndPrint [01:11:03]line [01:11:03]line [01:11:03]line [01:11:03]line [01:11:03]line [01:11:03]written 0, free lines is 3332 [01:11:03]MH_Cut [01:11:03]Write to MH i2c: D1 01 00 D7 63 01 0C [01:11:03]Write i2c OK [01:11:03]MH_I2C_Read... [01:11:03]Read from MH i2c: D1 [01:11:03]MH_I2C_Read... [01:11:03]Read from MH i2c: D1 01 00 [01:11:03]MH_I2C_Read... [01:11:03]Read from MH i2c: D1 01 00 D7 63 00 0B [01:11:03]Write to MH i2c: 01 00 00 D8 63 3B [01:11:03]Write i2c OK [01:11:03]MH_I2C_Read... [01:11:03]OFD Sender: No OFD packet to send [01:11:04]*** Cut start [01:11:04]*** Purtial cut [01:11:04]*** Stage 1: CUTSNS_PIN = 1 [01:11:06]Read from MH i2c: 01 [01:11:06]MH_I2C_Read... [01:11:06]*** Stop cut motor [01:11:06]*** Cut end [01:11:06]Read from MH i2c: 01 07 00 [01:11:06]MH_I2C_Read... [01:11:06]Read from MH i2c: 01 07 00 D8 63 00 00 00 00 00 FF 0F 50 [01:11:06]process_action close_receipt done [01:11:06]requested_data is exist [01:11:06]produce_requested_data [01:11:06]requested_item fm.sn is exist - process it [01:11:06]wFMCommunicate request_size=4 [01:11:06]MH_SAM_APDU [01:11:06]CAPDU: 80 11 00 00 [01:11:06]Write to MH i2c: E2 08 00 D9 63 80 11 00 00 00 00 00 00 B6 [01:11:06]Write i2c OK [01:11:06]MH_I2C_Read... [01:11:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:11:06]Read from MH i2c: E2 [01:11:06]MH_I2C_Read... [01:11:06]Read from MH i2c: E2 17 00 [01:11:06]MH_I2C_Read... [01:11:06]Read from MH i2c: E2 17 00 D9 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 14 [01:11:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [01:11:06]wFMCommunicate OK [01:11:06]requested_item fd.num is exist - process it [01:11:06]SAM_PROTO_GetFieldsCounters [01:11:06]wFMCommunicate request_size=4 [01:11:06]MH_SAM_APDU [01:11:06]CAPDU: 80 13 00 00 [01:11:06]Write to MH i2c: E2 08 00 DA 63 80 13 00 00 00 00 00 00 B9 [01:11:06]Write i2c OK [01:11:06]MH_I2C_Read... [01:11:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:11:06]Read from MH i2c: E2 [01:11:06]MH_I2C_Read... [01:11:06]Read from MH i2c: E2 62 00 [01:11:06]MH_I2C_Read... [01:11:06]Read from MH i2c: E2 62 00 DA 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 1C E2 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 64 [01:11: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 1C E2 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:11:06]wFMCommunicate OK [01:11:06]SAM_PROTO_GetFieldsCounters done [01:11:06]requested_item shift.num is exist - process it [01:11:06]requested_item shift.opened is exist - process it [01:11:06]req_shift_opened [01:11:06]FM_GetShiftState [01:11:06]SAM_PROTO_GetShiftState [01:11:06]wFMCommunicate request_size=4 [01:11:06]MH_SAM_APDU [01:11:06]CAPDU: 80 13 01 00 [01:11:06]Write to MH i2c: E2 08 00 DB 63 80 13 01 00 00 00 00 00 BB [01:11:06]Write i2c OK [01:11:06]MH_I2C_Read... [01:11:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:11:06]Read from MH i2c: E2 [01:11:06]MH_I2C_Read... [01:11:06]Read from MH i2c: E2 0E 00 [01:11:06]MH_I2C_Read... [01:11:06]Read from MH i2c: E2 0E 00 DB 63 00 09 00 01 B0 11 E5 65 00 00 00 00 90 00 D2 [01:11:06]RAPDU: 09 00 01 B0 11 E5 65 00 00 00 00 90 00 [01:11:06]wFMCommunicate OK [01:11:06]SAM_PROTO_GetShiftState done [01:11:06]FM_GetShiftState done [01:11:06]req_shift_opened done [01:11:06]requested_item shift.open_date is exist - process it [01:11:06]req_shift_open_date [01:11:06]req_shift_open_date done [01:11:06]produce_requested_data done [01:11:06]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123420,"shift.num":324,"shift.opened":1,"shift.open_date":1709511088} [01:11:06]process_action_free close_receipt [01:11:06]json_value_free [01:11:06]json_value_free done [01:11:06]process_json_proto returns [01:11:06]Send response to host [01:11:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123420,"shift.num":324,"shift.opened":1,"shift.open_date":1709511088}}} [01:11:06]free response buf [01:11:06]execute_script done [01:11:06]execute_script returns [01:11:06]free content buf [01:11:06]Sock 7.Close socket [01:11:06]Sock 7.Thread stoped [01:11:08]OFD Sender: No OFD packet to send [01:11:13]OFD Sender: No OFD packet to send [01:11:18]OFD Sender: No OFD packet to send [01:11:23]OFD Sender: No OFD packet to send [01:11:28]OFD Sender: No OFD packet to send [01:11:33]OFD Sender: No OFD packet to send [01:11:38]OFD Sender: No OFD packet to send [01:11:43]OFD Sender: No OFD packet to send [01:11:48]OFD Sender: No OFD packet to send [01:11:53]OFD Sender: No OFD packet to send [01:11:58]OFD Sender: No OFD packet to send [01:12:03]OFD Sender: No OFD packet to send [01:12:08]OFD Sender: No OFD packet to send [01:12:13]OFD Sender: No OFD packet to send [01:12:18]OFD Sender: No OFD packet to send [01:12:23]OFD Sender: No OFD packet to send [01:12:28]OFD Sender: No OFD packet to send [01:12:33]OFD Sender: No OFD packet to send [01:12:38]OFD Sender: No OFD packet to send [01:12:43]OFD Sender: No OFD packet to send [01:12:48]OFD Sender: No OFD packet to send [01:12:53]OFD Sender: No OFD packet to send [01:12:58]OFD Sender: No OFD packet to send [01:13:03]OFD Sender: No OFD packet to send [01:13:08]OFD Sender: No OFD packet to send [01:13:13]OFD Sender: No OFD packet to send [01:13:18]OFD Sender: No OFD packet to send [01:13:23]OFD Sender: No OFD packet to send [01:13:28]OFD Sender: No OFD packet to send [01:13:33]OFD Sender: No OFD packet to send [01:13:38]OFD Sender: No OFD packet to send [01:13:43]OFD Sender: No OFD packet to send [01:13:48]OFD Sender: No OFD packet to send [01:13:53]OFD Sender: No OFD packet to send [01:13:58]OFD Sender: No OFD packet to send [01:14:03]OFD Sender: No OFD packet to send [01:14:08]OFD Sender: No OFD packet to send [01:14:13]OFD Sender: No OFD packet to send [01:14:18]OFD Sender: No OFD packet to send [01:14:24]OFD Sender: No OFD packet to send [01:14:29]OFD Sender: No OFD packet to send [01:14:34]OFD Sender: No OFD packet to send [01:14:39]OFD Sender: No OFD packet to send [01:14:44]OFD Sender: No OFD packet to send [01:14:49]OFD Sender: No OFD packet to send [01:14:54]OFD Sender: No OFD packet to send [01:14:59]OFD Sender: No OFD packet to send [01:15:04]OFD Sender: No OFD packet to send [01:15:09]OFD Sender: No OFD packet to send [01:15:14]OFD Sender: No OFD packet to send [01:15:19]OFD Sender: No OFD packet to send [01:15:24]OFD Sender: No OFD packet to send [01:15:29]OFD Sender: No OFD packet to send [01:15:34]OFD Sender: No OFD packet to send [01:15:39]OFD Sender: No OFD packet to send [01:15:44]OFD Sender: No OFD packet to send [01:15:49]OFD Sender: No OFD packet to send [01:15:54]OFD Sender: No OFD packet to send [01:15:59]OFD Sender: No OFD packet to send [01:16:04]OFD Sender: No OFD packet to send [01:16:09]OFD Sender: No OFD packet to send [01:16:14]OFD Sender: No OFD packet to send [01:16:19]OFD Sender: No OFD packet to send [01:16:24]OFD Sender: No OFD packet to send [01:16:29]OFD Sender: No OFD packet to send [01:16:34]OFD Sender: No OFD packet to send [01:16:39]OFD Sender: No OFD packet to send [01:16:44]OFD Sender: No OFD packet to send [01:16:49]OFD Sender: No OFD packet to send [01:16:54]OFD Sender: No OFD packet to send [01:16:59]OFD Sender: No OFD packet to send [01:17:04]OFD Sender: No OFD packet to send [01:17:09]OFD Sender: No OFD packet to send [01:17:14]OFD Sender: No OFD packet to send [01:17:19]OFD Sender: No OFD packet to send [01:17:24]OFD Sender: No OFD packet to send [01:17:29]OFD Sender: No OFD packet to send [01:17:34]OFD Sender: No OFD packet to send [01:17:39]OFD Sender: No OFD packet to send [01:17:44]OFD Sender: No OFD packet to send [01:17:49]OFD Sender: No OFD packet to send [01:17:54]OFD Sender: No OFD packet to send [01:17:59]OFD Sender: No OFD packet to send [01:18:04]OFD Sender: No OFD packet to send [01:18:09]OFD Sender: No OFD packet to send [01:18:14]OFD Sender: No OFD packet to send [01:18:16]accept exits with 9 [01:18:16]New connection [01:18:16]New thread 3067395428 created [01:18:16]Thread 3067252068 joined [01:18:16]Waiting for new connection... [01:18:16] Sock 9.Parse request [01:18:16]Sock 9.Check first char [01:18:16]Sock 9.First char is OK [01:18:16]request: POST /json_proto HTTP/1.0 [01:18:16]Method: POST [01:18:16]URL: /json_proto [01:18:16]Method is POST - this is cgi request [01:18:16]url: /json_proto [01:18:16]query_string will be loaded in cgi processing [01:18:16]execute_cgi json_proto POST (null) [01:18:16]execute_cgi path=json_proto method=POST [01:18:16]POST find Content-Length [01:18:16]Host: 172.17.48.197:8080 [01:18:16]Content-Length: 678 [01:18:16]Content-Type: application/json [01:18:16] [01:18:16]POST finish read [01:18:16]Found Content-Length = 678 [01:18:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106405", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 4.040, "sum" : 250.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:18:16]execute_script... [01:18: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)1106405", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 4.040, "sum" : 250.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:18:16]POST & json_proto [01:18:16]process_json_proto [01:18:16]json parsed OK: [01:18:16]protocol is kg_v1.0 [01:18:16]action value=close_receipt [01:18:16]process_action close_receipt [01:18:16]cmd_close_receipt [01:18:16]MH_GetDate [01:18:16]Write to MH i2c: F0 00 00 DC 63 2E [01:18:16]Write i2c OK [01:18:16]MH_I2C_Read... [01:18:16]Read from MH i2c: F0 [01:18:16]MH_I2C_Read... [01:18:16]Read from MH i2c: F0 09 00 [01:18:16]MH_I2C_Read... [01:18:16]Read from MH i2c: F0 09 00 DC 63 00 5E 21 E5 65 6C AF E3 65 63 [01:18:16]GetLastDocTimeStamp 1709514667 [01:18:16]current date 1709515102 [01:18:16]FM_GetShiftState [01:18:16]SAM_PROTO_GetShiftState [01:18:16]wFMCommunicate request_size=4 [01:18:16]MH_SAM_APDU [01:18:16]CAPDU: 80 13 01 00 [01:18:16]Write to MH i2c: E2 08 00 DD 63 80 13 01 00 00 00 00 00 BD [01:18:16]Write i2c OK [01:18:16]MH_I2C_Read... [01:18:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:18:16]Read from MH i2c: E2 [01:18:16]MH_I2C_Read... [01:18:16]Read from MH i2c: E2 0E 00 [01:18:16]MH_I2C_Read... [01:18:16]Read from MH i2c: E2 0E 00 DD 63 00 09 00 01 B0 11 E5 65 00 00 00 00 90 00 D4 [01:18:16]RAPDU: 09 00 01 B0 11 E5 65 00 00 00 00 90 00 [01:18:16]wFMCommunicate OK [01:18:16]SAM_PROTO_GetShiftState done [01:18:16]FM_GetShiftState done [01:18:16]opened in 1709511088 [01:18:16]opened+sec_in_day 1709597488 [01:18:16]quantity*price = 25007 [01:18:16]sum+1 = 25009 [01:18:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.56 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 21 04.03.2024 01:18 Смена: 324 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123421 ФПД: 148694027935855 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240304T011822&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123421&fm=148694027935855&tin=02508201610067®Number=0000000000090573&sum=25000 [01:18:17]StoreToDocumentArchive [01:18:17]shift 324 fd 123421 [01:18:17]save to /storage/0324/doc_00123421 [01:18:17]save last doc name /storage/0324/doc_00123421 to /storage/kkm_last_doc_name [01:18:17]save OK [01:18:17]Clear old archive folders... [01:18:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:18:17]tlvbuf is 00FAF730 [01:18:17]SAM_PROTO_ClearQueue [01:18:17]wFMCommunicate request_size=4 [01:18:17]MH_SAM_APDU [01:18:17]CAPDU: 80 09 00 00 [01:18:17]Write to MH i2c: E2 08 00 EA 63 80 09 00 00 00 00 00 00 BF [01:18:17]Write i2c OK [01:18:17]MH_I2C_Read... [01:18:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:18:17]Read from MH i2c: E2 [01:18:17]MH_I2C_Read... [01:18:17]Read from MH i2c: E2 03 00 [01:18:17]MH_I2C_Read... [01:18:17]Read from MH i2c: E2 03 00 EA 63 00 90 00 C1 [01:18:17]RAPDU: 90 00 [01:18:17]wFMCommunicate OK [01:18:17]SAM_PROTO_ClearQueue done [01:18:17]KKMCreateOFDPacket [01:18:17]OFDProtocolAddRootSTLVToBuf [01:18:17]FM_MakeSignedData [01:18:17]FM_MakeSignedData [01:18:17]SAM_PROTO_SignData [01:18:17]wFMCommunicate request_size=4 [01:18:17]MH_SAM_APDU [01:18:17]CAPDU: 80 0D 01 02 [01:18:17]Write to MH i2c: E2 08 00 EB 63 80 0D 01 02 00 00 00 00 C7 [01:18:17]Write i2c OK [01:18:17]MH_I2C_Read... [01:18:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:18:17]Read from MH i2c: E2 [01:18:17]MH_I2C_Read... [01:18:17]Read from MH i2c: E2 03 00 [01:18:17]MH_I2C_Read... [01:18:17]Read from MH i2c: E2 03 00 EB 63 00 90 00 C2 [01:18:17]RAPDU: 90 00 [01:18:17]wFMCommunicate OK [01:18:17]wFMCommunicate request_size=255 [01:18:17]MH_SAM_APDU [01:18:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 0F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 B0 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 60 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 15 00 00 00 F4 03 04 00 5E 21 E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 1D E2 01 00 35 04 06 00 87 [01:18:17]Write to MH i2c: E2 02 01 EC 63 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 0F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 B0 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 60 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 15 00 00 00 F4 03 04 00 5E 21 E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 1D E2 01 00 35 04 06 00 87 00 00 0C [01:18:17]Write i2c OK [01:18:17]MH_I2C_Read... [01:18:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:18:18]Read from MH i2c: E2 [01:18:18]MH_I2C_Read... [01:18:18]Read from MH i2c: E2 03 00 [01:18:18]MH_I2C_Read... [01:18:18]Read from MH i2c: E2 03 00 EC 63 00 90 00 C3 [01:18:18]RAPDU: 90 00 [01:18:18]wFMCommunicate OK [01:18:18]wFMCommunicate request_size=10 [01:18:18]MH_SAM_APDU [01:18:18]CAPDU: 80 0D 02 02 05 3C 86 B7 20 6F [01:18:18]Write to MH i2c: E2 0D 00 ED 63 80 0D 02 02 05 00 3C 86 B7 20 6F 00 00 DC [01:18:18]Write i2c OK [01:18:18]MH_I2C_Read... [01:18:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:18:18]Read from MH i2c: E2 [01:18:18]MH_I2C_Read... [01:18:18]Read from MH i2c: E2 03 00 [01:18:18]MH_I2C_Read... [01:18:18]Read from MH i2c: E2 03 00 ED 63 00 90 00 C4 [01:18:18]RAPDU: 90 00 [01:18:18]wFMCommunicate OK [01:18:18]wFMCommunicate request_size=4 [01:18:18]MH_SAM_APDU [01:18:18]CAPDU: 80 0D 03 02 [01:18:18]Write to MH i2c: E2 08 00 EE 63 80 0D 03 02 00 00 00 00 CC [01:18:18]Write i2c OK [01:18:18]MH_I2C_Read... [01:18:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:18:18]Read from MH i2c: E2 [01:18:18]MH_I2C_Read... [01:18:18]Read from MH i2c: E2 0B 00 [01:18:18]MH_I2C_Read... [01:18:18]Read from MH i2c: E2 0B 00 EE 63 00 23 14 A3 44 29 8A 53 FD 90 00 EE [01:18:18]RAPDU: 23 14 A3 44 29 8A 53 FD 90 00 [01:18:18]wFMCommunicate OK [01:18:18]SAM_PROTO_SignData done [01:18:18]FM_MakeSignedData done [01:18:18]CreateOFDProtocolMessage [01:18:18]wFMCommunicate request_size=4 [01:18:18]MH_SAM_APDU [01:18:18]CAPDU: 80 11 00 00 [01:18:18]Write to MH i2c: E2 08 00 EF 63 80 11 00 00 00 00 00 00 CC [01:18:18]Write i2c OK [01:18:18]MH_I2C_Read... [01:18:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:18:18]Read from MH i2c: E2 [01:18:18]MH_I2C_Read... [01:18:18]Read from MH i2c: E2 17 00 [01:18:18]MH_I2C_Read... [01:18:18]Read from MH i2c: E2 17 00 EF 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 2A [01:18:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [01:18:18]wFMCommunicate OK [01:18:18]CreateOFDProtocolMessage done [01:18:18]OFDSenderStorePacket 123421 [01:18:18]StoreOFDPacket docnum=123421 [01:18:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 68 06 07 01 72 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 0F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 B0 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 60 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 15 00 00 00 F4 03 04 00 5E 21 E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 1D E2 01 00 35 04 06 00 87 3C 86 B7 20 6F 23 14 A3 44 29 8A 53 FD [01:18:18]CheckFolder [01:18:18]dirname=/storage/ofd_packets [01:18:18]CheckFolder done [01:18:18]ProducePacketName [01:18:18]name=ofd_packets/00123421 [01:18:18]NVStorageSaveData ofd_packets/00123421 [01:18:18]File name is /storage/ofd_packets/00123421 [01:18:18]Write 301 bytes [01:18:18]NVStorageSaveData done [01:18:18]OFDSenderStorePacket done [01:18:18]KKMCreateOFDPacket done [01:18:18]NVStorageSaveData kkm_last_timestamp [01:18:18]File name is /storage/kkm_last_timestamp [01:18:18]Write 4 bytes [01:18:18]NVStorageSaveData done [01:18:18]ExternCall_PrintAddStr [01:18:18]wPrintStart [01:18:18]Write to MH i2c: 01 00 00 F0 63 53 [01:18:18]Write i2c OK [01:18:18]MH_I2C_Read... [01:18:18]Read from MH i2c: 01 [01:18:18]MH_I2C_Read... [01:18:18]Read from MH i2c: 01 07 00 [01:18:18]MH_I2C_Read... [01:18:18]Read from MH i2c: 01 07 00 F0 63 00 00 00 00 00 FF 0F 68 [01:18:18]RasterBufferAndPrint [01:18:18]line Счет N : (1)1106405 [01:18:18]line ИНН: 02508201610067 [01:18:18]line Контрольно-Кассовый Чек [01:18:18]line ПРОДАЖА [01:18:18]line ТРК (МРК, ГНК) : 21 [01:18:18]line Товар: 2710124130 [01:18:18]line Аи-92-К-5 [01:18:18]line 4.040 * 61.90 [01:18:18]line = 250.08 [01:18:18]line НДС 12% НСП 1% [01:18:18]line > о реализуемом товаре [01:18:18]line ОКРУГЛЕНИЕ: -0.08 [01:18:18]line ИТОГО: 250.00 [01:18:18]line Внесено: 250.00 [01:18:18]line СДАЧА: 0.00 [01:18:18]line НСП 1% : 2.21 [01:18:18]line НДС 12% : 26.56 [01:18:18]line Наличными: 250.00 [01:18:18]line Безнал.: 0.00 [01:18:18]line Место: АЗС № 25 "Партнер Нефть" [01:18:18]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [01:18:18]line СНО: Общий режим [01:18:18]line Чек 21 04.03.2024 01:18 [01:18:18]line Смена: 324 ФФД: 1.0 [01:18:18]line ЗНМ: 0300000019 [01:18:18]line РНМ: 0000000000090573 [01:18:18]line Версия ККМ: 001 [01:18:18]line ФМ: 0000000000874798 [01:18:18]line ФД: 123421 [01:18:18]line ФПД: 148694027935855 [01:18:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240304T011822&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123421&fm=148694027935855&tin=02508201610067®Number=0000000000090573&sum=25000 [01:18:18]OFD Sender: Processing packet 123421 [packets to send 112, broken 111] [01:18:18]ProducePacketName [01:18:18]name=ofd_packets/00123421 [01:18:18]OFD Sender: To server: pG, [01:18:18]CommunicateWithHost lk.salyk.kg:30040 [01:18:18]ConnectInit lk.salyk.kg [01:18:18]written 0, free lines is 4095 [01:18:18]Connected sock=10 [01:18: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 37 39 38 0F 01 00 00 68 06 07 01 72 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 0F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 B0 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 60 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 15 00 00 00 F4 03 04 00 5E 21 E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 1D E2 01 00 35 04 06 00 87 3C 86 B7 20 6F 23 14 A3 44 29 8A 53 FD [01:18:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 D5 2E 47 00 0C A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 1D E2 01 00 F4 03 04 00 88 CD E4 65 B6 04 01 00 00 8D 67 52 27 0B 1C B1 92 [01:18:18]CommunicateWithHost err = 0 [01:18:18]CheckOFDResponse [01:18:18]1017 (14) - 77093643461234 [01:18:18]1041 (16) - 0000000000874798 [01:18:18]1040 (4) - 123421 [01:18:18]1012 (4) - 03.03.2024 19:20 [01:18:18]1206 (1) - 0 [01:18:18]OFD Sender: Remove packet 123421 [01:18:18]ProducePacketName [01:18:18]name=ofd_packets/00123421 [01:18:18]NVStorageDeleteData [01:18:19]Write to MH i2c: 01 00 00 1B 64 7F [01:18:19]Write i2c OK [01:18:19]MH_I2C_Read... [01:18:19]Read from MH i2c: 01 [01:18:19]MH_I2C_Read... [01:18:19]Read from MH i2c: 01 07 00 [01:18:19]MH_I2C_Read... [01:18:19]Read from MH i2c: 01 07 00 1B 64 00 00 00 00 00 EA 0C 7C [01:18:19]RasterBufferAndPrint [01:18:19]line [01:18:19]line [01:18:19]line [01:18:19]line [01:18:19]line [01:18:19]written 0, free lines is 3315 [01:18:19]MH_Cut [01:18:19]Write to MH i2c: D1 01 00 22 64 01 58 [01:18:19]Write i2c OK [01:18:19]MH_I2C_Read... [01:18:19]Read from MH i2c: D1 [01:18:19]MH_I2C_Read... [01:18:19]Read from MH i2c: D1 01 00 [01:18:19]MH_I2C_Read... [01:18:19]Read from MH i2c: D1 01 00 22 64 00 57 [01:18:19]Write to MH i2c: 01 00 00 23 64 87 [01:18:19]Write i2c OK [01:18:19]MH_I2C_Read... [01:18:19]OFD Sender: No OFD packet to send [01:18:19]*** Cut start [01:18:19]*** Purtial cut [01:18:19]*** Stage 1: CUTSNS_PIN = 1 [01:18:21]Read from MH i2c: 01 [01:18:21]MH_I2C_Read... [01:18:21]*** Stop cut motor [01:18:21]*** Cut end [01:18:21]Read from MH i2c: 01 07 00 [01:18:21]MH_I2C_Read... [01:18:21]Read from MH i2c: 01 07 00 23 64 00 00 00 00 00 FF 0F 9C [01:18:21]process_action close_receipt done [01:18:21]requested_data is exist [01:18:21]produce_requested_data [01:18:21]requested_item fm.sn is exist - process it [01:18:21]wFMCommunicate request_size=4 [01:18:21]MH_SAM_APDU [01:18:21]CAPDU: 80 11 00 00 [01:18:21]Write to MH i2c: E2 08 00 24 64 80 11 00 00 00 00 00 00 02 [01:18:21]Write i2c OK [01:18:21]MH_I2C_Read... [01:18:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:18:21]Read from MH i2c: E2 [01:18:21]MH_I2C_Read... [01:18:21]Read from MH i2c: E2 17 00 [01:18:21]MH_I2C_Read... [01:18:21]Read from MH i2c: E2 17 00 24 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 60 [01:18:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [01:18:21]wFMCommunicate OK [01:18:21]requested_item fd.num is exist - process it [01:18:21]SAM_PROTO_GetFieldsCounters [01:18:21]wFMCommunicate request_size=4 [01:18:21]MH_SAM_APDU [01:18:21]CAPDU: 80 13 00 00 [01:18:21]Write to MH i2c: E2 08 00 25 64 80 13 00 00 00 00 00 00 05 [01:18:21]Write i2c OK [01:18:21]MH_I2C_Read... [01:18:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:18:22]Read from MH i2c: E2 [01:18:22]MH_I2C_Read... [01:18:22]Read from MH i2c: E2 62 00 [01:18:22]MH_I2C_Read... [01:18:22]Read from MH i2c: E2 62 00 25 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 1D E2 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 B4 [01:18: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 1D E2 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:18:22]wFMCommunicate OK [01:18:22]SAM_PROTO_GetFieldsCounters done [01:18:22]requested_item shift.num is exist - process it [01:18:22]requested_item shift.opened is exist - process it [01:18:22]req_shift_opened [01:18:22]FM_GetShiftState [01:18:22]SAM_PROTO_GetShiftState [01:18:22]wFMCommunicate request_size=4 [01:18:22]MH_SAM_APDU [01:18:22]CAPDU: 80 13 01 00 [01:18:22]Write to MH i2c: E2 08 00 26 64 80 13 01 00 00 00 00 00 07 [01:18:22]Write i2c OK [01:18:22]MH_I2C_Read... [01:18:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:18:22]Read from MH i2c: E2 [01:18:22]MH_I2C_Read... [01:18:22]Read from MH i2c: E2 0E 00 [01:18:22]MH_I2C_Read... [01:18:22]Read from MH i2c: E2 0E 00 26 64 00 09 00 01 B0 11 E5 65 00 00 00 00 90 00 1E [01:18:22]RAPDU: 09 00 01 B0 11 E5 65 00 00 00 00 90 00 [01:18:22]wFMCommunicate OK [01:18:22]SAM_PROTO_GetShiftState done [01:18:22]FM_GetShiftState done [01:18:22]req_shift_opened done [01:18:22]requested_item shift.open_date is exist - process it [01:18:22]req_shift_open_date [01:18:22]req_shift_open_date done [01:18:22]produce_requested_data done [01:18:22]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123421,"shift.num":324,"shift.opened":1,"shift.open_date":1709511088} [01:18:22]process_action_free close_receipt [01:18:22]json_value_free [01:18:22]json_value_free done [01:18:22]process_json_proto returns [01:18:22]Send response to host [01:18:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123421,"shift.num":324,"shift.opened":1,"shift.open_date":1709511088}}} [01:18:22]free response buf [01:18:22]execute_script done [01:18:22]execute_script returns [01:18:22]free content buf [01:18:22]Sock 9.Close socket [01:18:22]Sock 9.Thread stoped [01:18:24]OFD Sender: No OFD packet to send [01:18:29]OFD Sender: No OFD packet to send [01:18:34]OFD Sender: No OFD packet to send [01:18:39]OFD Sender: No OFD packet to send [01:18:44]OFD Sender: No OFD packet to send [01:18:49]OFD Sender: No OFD packet to send [01:18:54]OFD Sender: No OFD packet to send [01:18:59]OFD Sender: No OFD packet to send [01:19:04]OFD Sender: No OFD packet to send [01:19:09]OFD Sender: No OFD packet to send [01:19:14]OFD Sender: No OFD packet to send [01:19:19]OFD Sender: No OFD packet to send [01:19:24]OFD Sender: No OFD packet to send [01:19:29]OFD Sender: No OFD packet to send [01:19:34]OFD Sender: No OFD packet to send [01:19:39]OFD Sender: No OFD packet to send [01:19:44]OFD Sender: No OFD packet to send [01:19:49]OFD Sender: No OFD packet to send [01:19:54]OFD Sender: No OFD packet to send [01:19:59]OFD Sender: No OFD packet to send [01:20:04]OFD Sender: No OFD packet to send [01:20:09]OFD Sender: No OFD packet to send [01:20:14]OFD Sender: No OFD packet to send [01:20:19]OFD Sender: No OFD packet to send [01:20:24]OFD Sender: No OFD packet to send [01:20:29]OFD Sender: No OFD packet to send [01:20:34]OFD Sender: No OFD packet to send [01:20:39]OFD Sender: No OFD packet to send [01:20:44]OFD Sender: No OFD packet to send [01:20:49]OFD Sender: No OFD packet to send [01:20:54]OFD Sender: No OFD packet to send [01:20:59]OFD Sender: No OFD packet to send [01:21:04]OFD Sender: No OFD packet to send [01:21:09]OFD Sender: No OFD packet to send [01:21:14]OFD Sender: No OFD packet to send [01:21:19]OFD Sender: No OFD packet to send [01:21:24]OFD Sender: No OFD packet to send [01:21:29]OFD Sender: No OFD packet to send [01:21:34]OFD Sender: No OFD packet to send [01:21:39]OFD Sender: No OFD packet to send [01:21:44]OFD Sender: No OFD packet to send [01:21:49]OFD Sender: No OFD packet to send [01:21:54]OFD Sender: No OFD packet to send [01:21:59]OFD Sender: No OFD packet to send [01:22:04]OFD Sender: No OFD packet to send [01:22:09]OFD Sender: No OFD packet to send [01:22:14]OFD Sender: No OFD packet to send [01:22:19]OFD Sender: No OFD packet to send [01:22:24]OFD Sender: No OFD packet to send [01:22:29]OFD Sender: No OFD packet to send [01:22:34]OFD Sender: No OFD packet to send [01:22:39]OFD Sender: No OFD packet to send [01:22:44]OFD Sender: No OFD packet to send [01:22:49]OFD Sender: No OFD packet to send [01:22:54]OFD Sender: No OFD packet to send [01:22:59]OFD Sender: No OFD packet to send [01:23:04]OFD Sender: No OFD packet to send [01:23:09]OFD Sender: No OFD packet to send [01:23:14]OFD Sender: No OFD packet to send [01:23:19]OFD Sender: No OFD packet to send [01:23:24]OFD Sender: No OFD packet to send [01:23:29]OFD Sender: No OFD packet to send [01:23:34]OFD Sender: No OFD packet to send [01:23:39]OFD Sender: No OFD packet to send [01:23:44]OFD Sender: No OFD packet to send [01:23:49]OFD Sender: No OFD packet to send [01:23:54]OFD Sender: No OFD packet to send [01:23:59]OFD Sender: No OFD packet to send [01:24:04]OFD Sender: No OFD packet to send [01:24:09]OFD Sender: No OFD packet to send [01:24:14]OFD Sender: No OFD packet to send [01:24:19]OFD Sender: No OFD packet to send [01:24:24]OFD Sender: No OFD packet to send [01:24:29]OFD Sender: No OFD packet to send [01:24:34]OFD Sender: No OFD packet to send [01:24:39]OFD Sender: No OFD packet to send [01:24:44]OFD Sender: No OFD packet to send [01:24:49]OFD Sender: No OFD packet to send [01:24:54]OFD Sender: No OFD packet to send [01:24:59]OFD Sender: No OFD packet to send [01:25:04]OFD Sender: No OFD packet to send [01:25:09]OFD Sender: No OFD packet to send [01:25:14]OFD Sender: No OFD packet to send [01:25:19]OFD Sender: No OFD packet to send [01:25:24]OFD Sender: No OFD packet to send [01:25:29]OFD Sender: No OFD packet to send [01:25:34]OFD Sender: No OFD packet to send [01:25:40]OFD Sender: No OFD packet to send [01:25:45]OFD Sender: No OFD packet to send [01:25:50]OFD Sender: No OFD packet to send [01:25:55]OFD Sender: No OFD packet to send [01:26:00]OFD Sender: No OFD packet to send [01:26:05]OFD Sender: No OFD packet to send [01:26:10]OFD Sender: No OFD packet to send [01:26:15]OFD Sender: No OFD packet to send [01:26:20]OFD Sender: No OFD packet to send [01:26:25]OFD Sender: No OFD packet to send [01:26:30]OFD Sender: No OFD packet to send [01:26:35]OFD Sender: No OFD packet to send [01:26:40]OFD Sender: No OFD packet to send [01:26:45]OFD Sender: No OFD packet to send [01:26:50]OFD Sender: No OFD packet to send [01:26:55]OFD Sender: No OFD packet to send [01:27:00]OFD Sender: No OFD packet to send [01:27:05]OFD Sender: No OFD packet to send [01:27:10]OFD Sender: No OFD packet to send [01:27:15]OFD Sender: No OFD packet to send [01:27:20]OFD Sender: No OFD packet to send [01:27:25]OFD Sender: No OFD packet to send [01:27:30]OFD Sender: No OFD packet to send [01:27:35]OFD Sender: No OFD packet to send [01:27:40]OFD Sender: No OFD packet to send [01:27:45]OFD Sender: No OFD packet to send [01:27:50]OFD Sender: No OFD packet to send [01:27:55]OFD Sender: No OFD packet to send [01:28:00]OFD Sender: No OFD packet to send [01:28:05]OFD Sender: No OFD packet to send [01:28:10]OFD Sender: No OFD packet to send [01:28:15]OFD Sender: No OFD packet to send [01:28:20]OFD Sender: No OFD packet to send [01:28:25]OFD Sender: No OFD packet to send [01:28:30]OFD Sender: No OFD packet to send [01:28:35]OFD Sender: No OFD packet to send [01:28:40]OFD Sender: No OFD packet to send [01:28:45]OFD Sender: No OFD packet to send [01:28:50]OFD Sender: No OFD packet to send [01:28:55]OFD Sender: No OFD packet to send [01:29:00]OFD Sender: No OFD packet to send [01:29:05]OFD Sender: No OFD packet to send [01:29:10]OFD Sender: No OFD packet to send [01:29:15]OFD Sender: No OFD packet to send [01:29:20]OFD Sender: No OFD packet to send [01:29:25]OFD Sender: No OFD packet to send [01:29:30]OFD Sender: No OFD packet to send [01:29:35]OFD Sender: No OFD packet to send [01:29:40]OFD Sender: No OFD packet to send [01:29:45]OFD Sender: No OFD packet to send [01:29:50]OFD Sender: No OFD packet to send [01:29:55]OFD Sender: No OFD packet to send [01:30:00]OFD Sender: No OFD packet to send [01:30:05]OFD Sender: No OFD packet to send [01:30:10]OFD Sender: No OFD packet to send [01:30:15]OFD Sender: No OFD packet to send [01:30:19]accept exits with 7 [01:30:19]New connection [01:30:19]New thread 3067252068 created [01:30:19]Thread 3067395428 joined [01:30:19]Waiting for new connection... [01:30:19] Sock 7.Parse request [01:30:19]Sock 7.Check first char [01:30:19]Sock 7.First char is OK [01:30:19]request: POST /json_proto HTTP/1.0 [01:30:19]Method: POST [01:30:19]URL: /json_proto [01:30:19]Method is POST - this is cgi request [01:30:19]url: /json_proto [01:30:19]query_string will be loaded in cgi processing [01:30:19]execute_cgi json_proto POST (null) [01:30:19]execute_cgi path=json_proto method=POST [01:30:19]POST find Content-Length [01:30:19]Host: 172.17.48.197:8080 [01:30:19]Content-Length: 678 [01:30:19]Content-Type: application/json [01:30:19] [01:30:19]POST finish read [01:30:19]Found Content-Length = 678 [01:30:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106406", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "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" ] } } [01:30:19]execute_script... [01:30: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)1106406", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "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" ] } } [01:30:19]POST & json_proto [01:30:19]process_json_proto [01:30:19]json parsed OK: [01:30:19]protocol is kg_v1.0 [01:30:19]action value=close_receipt [01:30:19]process_action close_receipt [01:30:19]cmd_close_receipt [01:30:19]MH_GetDate [01:30:19]Write to MH i2c: F0 00 00 27 64 7A [01:30:19]Write i2c OK [01:30:19]MH_I2C_Read... [01:30:19]Read from MH i2c: F0 [01:30:19]MH_I2C_Read... [01:30:19]Read from MH i2c: F0 09 00 [01:30:19]MH_I2C_Read... [01:30:19]Read from MH i2c: F0 09 00 27 64 00 31 24 E5 65 6C AF E3 65 85 [01:30:19]GetLastDocTimeStamp 1709515102 [01:30:19]current date 1709515825 [01:30:19]FM_GetShiftState [01:30:19]SAM_PROTO_GetShiftState [01:30:19]wFMCommunicate request_size=4 [01:30:19]MH_SAM_APDU [01:30:19]CAPDU: 80 13 01 00 [01:30:19]Write to MH i2c: E2 08 00 28 64 80 13 01 00 00 00 00 00 09 [01:30:19]Write i2c OK [01:30:19]MH_I2C_Read... [01:30:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:30:19]Read from MH i2c: E2 [01:30:19]MH_I2C_Read... [01:30:19]Read from MH i2c: E2 0E 00 [01:30:19]MH_I2C_Read... [01:30:19]Read from MH i2c: E2 0E 00 28 64 00 09 00 01 B0 11 E5 65 00 00 00 00 90 00 20 [01:30:19]RAPDU: 09 00 01 B0 11 E5 65 00 00 00 00 90 00 [01:30:19]wFMCommunicate OK [01:30:19]SAM_PROTO_GetShiftState done [01:30:19]FM_GetShiftState done [01:30:19]opened in 1709511088 [01:30:19]opened+sec_in_day 1709597488 [01:30:19]quantity*price = 50015 [01:30:19]sum+1 = 50016 [01:30:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 22 04.03.2024 01:30 Смена: 324 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123422 ФПД: 10423753760887 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240304T013025&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123422&fm=10423753760887&tin=02508201610067®Number=0000000000090573&sum=50000 [01:30:20]StoreToDocumentArchive [01:30:20]shift 324 fd 123422 [01:30:20]save to /storage/0324/doc_00123422 [01:30:20]save last doc name /storage/0324/doc_00123422 to /storage/kkm_last_doc_name [01:30:20]save OK [01:30:20]Clear old archive folders... [01:30:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:30:20]tlvbuf is 00E33C60 [01:30:20]SAM_PROTO_ClearQueue [01:30:20]wFMCommunicate request_size=4 [01:30:20]MH_SAM_APDU [01:30:20]CAPDU: 80 09 00 00 [01:30:20]Write to MH i2c: E2 08 00 35 64 80 09 00 00 00 00 00 00 0B [01:30:20]Write i2c OK [01:30:20]MH_I2C_Read... [01:30:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:30:21]Read from MH i2c: E2 [01:30:21]MH_I2C_Read... [01:30:21]Read from MH i2c: E2 03 00 [01:30:21]MH_I2C_Read... [01:30:21]Read from MH i2c: E2 03 00 35 64 00 90 00 0D [01:30:21]RAPDU: 90 00 [01:30:21]wFMCommunicate OK [01:30:21]SAM_PROTO_ClearQueue done [01:30:21]KKMCreateOFDPacket [01:30:21]OFDProtocolAddRootSTLVToBuf [01:30:21]FM_MakeSignedData [01:30:21]FM_MakeSignedData [01:30:21]SAM_PROTO_SignData [01:30:21]wFMCommunicate request_size=4 [01:30:21]MH_SAM_APDU [01:30:21]CAPDU: 80 0D 01 02 [01:30:21]Write to MH i2c: E2 08 00 36 64 80 0D 01 02 00 00 00 00 13 [01:30:21]Write i2c OK [01:30:21]MH_I2C_Read... [01:30:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:30:21]Read from MH i2c: E2 [01:30:21]MH_I2C_Read... [01:30:21]Read from MH i2c: E2 03 00 [01:30:21]MH_I2C_Read... [01:30:21]Read from MH i2c: E2 03 00 36 64 00 90 00 0E [01:30:21]RAPDU: 90 00 [01:30:21]wFMCommunicate OK [01:30:21]wFMCommunicate request_size=255 [01:30:21]MH_SAM_APDU [01:30:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 31 24 E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 1E E2 01 00 35 04 06 00 09 [01:30:21]Write to MH i2c: E2 02 01 37 64 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 31 24 E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 1E E2 01 00 35 04 06 00 09 00 00 F7 [01:30:21]Write i2c OK [01:30:21]MH_I2C_Read... [01:30:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:30:21]Read from MH i2c: E2 [01:30:21]MH_I2C_Read... [01:30:21]Read from MH i2c: E2 03 00 [01:30:21]MH_I2C_Read... [01:30:21]Read from MH i2c: E2 03 00 37 64 00 90 00 0F [01:30:21]RAPDU: 90 00 [01:30:21]wFMCommunicate OK [01:30:21]wFMCommunicate request_size=10 [01:30:21]MH_SAM_APDU [01:30:21]CAPDU: 80 0D 02 02 05 7A F8 23 E0 77 [01:30:21]Write to MH i2c: E2 0D 00 38 64 80 0D 02 02 05 00 7A F8 23 E0 77 00 00 0C [01:30:21]Write i2c OK [01:30:21]MH_I2C_Read... [01:30:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:30:21]Read from MH i2c: E2 [01:30:21]MH_I2C_Read... [01:30:21]Read from MH i2c: E2 03 00 [01:30:21]MH_I2C_Read... [01:30:21]Read from MH i2c: E2 03 00 38 64 00 90 00 10 [01:30:21]RAPDU: 90 00 [01:30:21]wFMCommunicate OK [01:30:21]wFMCommunicate request_size=4 [01:30:21]MH_SAM_APDU [01:30:21]CAPDU: 80 0D 03 02 [01:30:21]Write to MH i2c: E2 08 00 39 64 80 0D 03 02 00 00 00 00 18 [01:30:21]Write i2c OK [01:30:21]MH_I2C_Read... [01:30:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:30:21]Read from MH i2c: E2 [01:30:21]MH_I2C_Read... [01:30:21]Read from MH i2c: E2 0B 00 [01:30:21]MH_I2C_Read... [01:30:21]Read from MH i2c: E2 0B 00 39 64 00 B1 25 3E 58 D0 FC F3 87 90 00 CB [01:30:21]RAPDU: B1 25 3E 58 D0 FC F3 87 90 00 [01:30:21]wFMCommunicate OK [01:30:21]SAM_PROTO_SignData done [01:30:21]FM_MakeSignedData done [01:30:21]CreateOFDProtocolMessage [01:30:21]wFMCommunicate request_size=4 [01:30:21]MH_SAM_APDU [01:30:21]CAPDU: 80 11 00 00 [01:30:21]Write to MH i2c: E2 08 00 3A 64 80 11 00 00 00 00 00 00 18 [01:30:21]Write i2c OK [01:30:21]MH_I2C_Read... [01:30:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:30:21]Read from MH i2c: E2 [01:30:21]MH_I2C_Read... [01:30:21]Read from MH i2c: E2 17 00 [01:30:21]MH_I2C_Read... [01:30:21]Read from MH i2c: E2 17 00 3A 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 76 [01:30:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [01:30:21]wFMCommunicate OK [01:30:21]CreateOFDProtocolMessage done [01:30:21]OFDSenderStorePacket 123422 [01:30:21]StoreOFDPacket docnum=123422 [01:30:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 B8 FD 07 01 3A FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 31 24 E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 1E E2 01 00 35 04 06 00 09 7A F8 23 E0 77 B1 25 3E 58 D0 FC F3 87 [01:30:21]CheckFolder [01:30:21]dirname=/storage/ofd_packets [01:30:21]CheckFolder done [01:30:21]ProducePacketName [01:30:21]name=ofd_packets/00123422 [01:30:21]NVStorageSaveData ofd_packets/00123422 [01:30:21]File name is /storage/ofd_packets/00123422 [01:30:21]Write 301 bytes [01:30:21]NVStorageSaveData done [01:30:21]OFDSenderStorePacket done [01:30:21]KKMCreateOFDPacket done [01:30:21]NVStorageSaveData kkm_last_timestamp [01:30:21]File name is /storage/kkm_last_timestamp [01:30:21]Write 4 bytes [01:30:21]NVStorageSaveData done [01:30:21]ExternCall_PrintAddStr [01:30:21]wPrintStart [01:30:21]Write to MH i2c: 01 00 00 3B 64 9F [01:30:21]Write i2c OK [01:30:21]MH_I2C_Read... [01:30:21]Read from MH i2c: 01 [01:30:21]MH_I2C_Read... [01:30:21]Read from MH i2c: 01 07 00 [01:30:21]MH_I2C_Read... [01:30:21]Read from MH i2c: 01 07 00 3B 64 00 00 00 00 00 FF 0F B4 [01:30:21]RasterBufferAndPrint [01:30:21]line Счет N : (1)1106406 [01:30:21]line ИНН: 02508201610067 [01:30:21]line Контрольно-Кассовый Чек [01:30:21]line ПРОДАЖА [01:30:21]line ТРК (МРК, ГНК) : 52 [01:30:21]line Товар: 2710124130 [01:30:21]line Аи-92-К-5 [01:30:21]line 8.080 * 61.90 [01:30:21]line = 500.15 [01:30:21]line НДС 12% НСП 1% [01:30:21]line > о реализуемом товаре [01:30:21]line ОКРУГЛЕНИЕ: -0.15 [01:30:21]line ИТОГО: 500.00 [01:30:21]line Внесено: 500.00 [01:30:21]line СДАЧА: 0.00 [01:30:21]line НСП 1% : 4.43 [01:30:21]line НДС 12% : 53.11 [01:30:21]line Наличными: 500.00 [01:30:21]line Безнал.: 0.00 [01:30:21]line Место: АЗС № 25 "Партнер Нефть" [01:30:21]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [01:30:21]line СНО: Общий режим [01:30:21]line Чек 22 04.03.2024 01:30 [01:30:21]line Смена: 324 ФФД: 1.0 [01:30:21]line ЗНМ: 0300000019 [01:30:21]line РНМ: 0000000000090573 [01:30:21]line Версия ККМ: 001 [01:30:21]line ФМ: 0000000000874798 [01:30:21]line ФД: 123422 [01:30:21]line ФПД: 10423753760887 [01:30:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240304T013025&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123422&fm=10423753760887&tin=02508201610067®Number=0000000000090573&sum=50000 [01:30:21]OFD Sender: Processing packet 123422 [packets to send 112, broken 111] [01:30:21]ProducePacketName [01:30:21]name=ofd_packets/00123422 [01:30:21]OFD Sender: To server: pG, [01:30:21]CommunicateWithHost lk.salyk.kg:30040 [01:30:21]ConnectInit lk.salyk.kg [01:30:21]written 0, free lines is 4095 [01:30:22]Connected sock=10 [01:30: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 37 39 38 0F 01 00 00 B8 FD 07 01 3A FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 31 24 E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 1E E2 01 00 35 04 06 00 09 7A F8 23 E0 77 B1 25 3E 58 D0 FC F3 87 [01:30:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 AC AB 47 00 62 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 37 39 38 10 04 04 00 1E E2 01 00 F4 03 04 00 5B D0 E4 65 B6 04 01 00 00 B1 99 8A A9 24 A2 20 28 [01:30:22]CommunicateWithHost err = 0 [01:30:22]CheckOFDResponse [01:30:22]1017 (14) - 77093643461234 [01:30:22]1041 (16) - 0000000000874798 [01:30:22]1040 (4) - 123422 [01:30:22]1012 (4) - 03.03.2024 19:32 [01:30:22]1206 (1) - 0 [01:30:22]OFD Sender: Remove packet 123422 [01:30:22]ProducePacketName [01:30:22]name=ofd_packets/00123422 [01:30:22]NVStorageDeleteData [01:30:22]Write to MH i2c: 01 00 00 66 64 CA [01:30:22]Write i2c OK [01:30:22]MH_I2C_Read... [01:30:22]Read from MH i2c: 01 [01:30:22]MH_I2C_Read... [01:30:22]Read from MH i2c: 01 07 00 [01:30:22]MH_I2C_Read... [01:30:22]Read from MH i2c: 01 07 00 66 64 00 00 00 00 00 F6 0C D3 [01:30:22]RasterBufferAndPrint [01:30:22]line [01:30:22]line [01:30:22]line [01:30:22]line [01:30:22]line [01:30:22]written 0, free lines is 3327 [01:30:22]MH_Cut [01:30:22]Write to MH i2c: D1 01 00 6D 64 01 A3 [01:30:22]Write i2c OK [01:30:22]MH_I2C_Read... [01:30:22]Read from MH i2c: D1 [01:30:22]MH_I2C_Read... [01:30:22]Read from MH i2c: D1 01 00 [01:30:22]MH_I2C_Read... [01:30:22]Read from MH i2c: D1 01 00 6D 64 00 A2 [01:30:22]Write to MH i2c: 01 00 00 6E 64 D2 [01:30:22]Write i2c OK [01:30:22]MH_I2C_Read... [01:30:22]OFD Sender: No OFD packet to send [01:30:23]*** Cut start [01:30:23]*** Purtial cut [01:30:23]*** Stage 1: CUTSNS_PIN = 1 [01:30:25]Read from MH i2c: 01 [01:30:25]MH_I2C_Read... [01:30:25]*** Stop cut motor [01:30:25]*** Cut end [01:30:25]Read from MH i2c: 01 07 00 [01:30:25]MH_I2C_Read... [01:30:25]Read from MH i2c: 01 07 00 6E 64 00 00 00 00 00 FF 0F E7 [01:30:25]process_action close_receipt done [01:30:25]requested_data is exist [01:30:25]produce_requested_data [01:30:25]requested_item fm.sn is exist - process it [01:30:25]wFMCommunicate request_size=4 [01:30:25]MH_SAM_APDU [01:30:25]CAPDU: 80 11 00 00 [01:30:25]Write to MH i2c: E2 08 00 6F 64 80 11 00 00 00 00 00 00 4D [01:30:25]Write i2c OK [01:30:25]MH_I2C_Read... [01:30:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:30:25]Read from MH i2c: E2 [01:30:25]MH_I2C_Read... [01:30:25]Read from MH i2c: E2 17 00 [01:30:25]MH_I2C_Read... [01:30:25]Read from MH i2c: E2 17 00 6F 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 AB [01:30:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [01:30:25]wFMCommunicate OK [01:30:25]requested_item fd.num is exist - process it [01:30:25]SAM_PROTO_GetFieldsCounters [01:30:25]wFMCommunicate request_size=4 [01:30:25]MH_SAM_APDU [01:30:25]CAPDU: 80 13 00 00 [01:30:25]Write to MH i2c: E2 08 00 70 64 80 13 00 00 00 00 00 00 50 [01:30:25]Write i2c OK [01:30:25]MH_I2C_Read... [01:30:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:30:25]Read from MH i2c: E2 [01:30:25]MH_I2C_Read... [01:30:25]Read from MH i2c: E2 62 00 [01:30:25]MH_I2C_Read... [01:30:25]Read from MH i2c: E2 62 00 70 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 1E E2 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 03 [01:30: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 1E E2 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:30:25]wFMCommunicate OK [01:30:25]SAM_PROTO_GetFieldsCounters done [01:30:25]requested_item shift.num is exist - process it [01:30:25]requested_item shift.opened is exist - process it [01:30:25]req_shift_opened [01:30:25]FM_GetShiftState [01:30:25]SAM_PROTO_GetShiftState [01:30:25]wFMCommunicate request_size=4 [01:30:25]MH_SAM_APDU [01:30:25]CAPDU: 80 13 01 00 [01:30:25]Write to MH i2c: E2 08 00 71 64 80 13 01 00 00 00 00 00 52 [01:30:25]Write i2c OK [01:30:25]MH_I2C_Read... [01:30:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:30:25]Read from MH i2c: E2 [01:30:25]MH_I2C_Read... [01:30:25]Read from MH i2c: E2 0E 00 [01:30:25]MH_I2C_Read... [01:30:25]Read from MH i2c: E2 0E 00 71 64 00 09 00 01 B0 11 E5 65 00 00 00 00 90 00 69 [01:30:25]RAPDU: 09 00 01 B0 11 E5 65 00 00 00 00 90 00 [01:30:25]wFMCommunicate OK [01:30:25]SAM_PROTO_GetShiftState done [01:30:25]FM_GetShiftState done [01:30:25]req_shift_opened done [01:30:25]requested_item shift.open_date is exist - process it [01:30:25]req_shift_open_date [01:30:25]req_shift_open_date done [01:30:25]produce_requested_data done [01:30:25]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123422,"shift.num":324,"shift.opened":1,"shift.open_date":1709511088} [01:30:25]process_action_free close_receipt [01:30:25]json_value_free [01:30:25]json_value_free done [01:30:25]process_json_proto returns [01:30:25]Send response to host [01:30:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123422,"shift.num":324,"shift.opened":1,"shift.open_date":1709511088}}} [01:30:25]free response buf [01:30:25]execute_script done [01:30:25]execute_script returns [01:30:25]free content buf [01:30:25]Sock 7.Close socket [01:30:25]Sock 7.Thread stoped [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:07]OFD Sender: No OFD packet to send [01:31:12]OFD Sender: No OFD packet to send [01:31:17]OFD Sender: No OFD packet to send [01:31:22]OFD Sender: No OFD packet to send [01:31:27]OFD Sender: No OFD packet to send [01:31:32]OFD Sender: No OFD packet to send [01:31:37]OFD Sender: No OFD packet to send [01:31:42]OFD Sender: No OFD packet to send [01:31:47]OFD Sender: No OFD packet to send [01:31:52]OFD Sender: No OFD packet to send [01:31:57]OFD Sender: No OFD packet to send [01:32:02]OFD Sender: No OFD packet to send [01:32:07]OFD Sender: No OFD packet to send [01:32:12]OFD Sender: No OFD packet to send [01:32:17]OFD Sender: No OFD packet to send [01:32:22]OFD Sender: No OFD packet to send [01:32:27]OFD Sender: No OFD packet to send [01:32:32]OFD Sender: No OFD packet to send [01:32:37]OFD Sender: No OFD packet to send [01:32:42]OFD Sender: No OFD packet to send [01:32:47]OFD Sender: No OFD packet to send [01:32:52]OFD Sender: No OFD packet to send [01:32:57]OFD Sender: No OFD packet to send [01:33:02]OFD Sender: No OFD packet to send [01:33:07]OFD Sender: No OFD packet to send [01:33:12]OFD Sender: No OFD packet to send [01:33:17]OFD Sender: No OFD packet to send [01:33:22]OFD Sender: No OFD packet to send [01:33:27]OFD Sender: No OFD packet to send [01:33:32]OFD Sender: No OFD packet to send [01:33:37]OFD Sender: No OFD packet to send [01:33:42]OFD Sender: No OFD packet to send [01:33:47]OFD Sender: No OFD packet to send [01:33:52]OFD Sender: No OFD packet to send [01:33:57]OFD Sender: No OFD packet to send [01:34:02]OFD Sender: No OFD packet to send [01:34:07]OFD Sender: No OFD packet to send [01:34:12]OFD Sender: No OFD packet to send [01:34:17]OFD Sender: No OFD packet to send [01:34:22]OFD Sender: No OFD packet to send [01:34:27]OFD Sender: No OFD packet to send [01:34:32]OFD Sender: No OFD packet to send [01:34:37]OFD Sender: No OFD packet to send [01:34:39]accept exits with 9 [01:34:39]New connection [01:34:39]New thread 3067395428 created [01:34:39]Thread 3067252068 joined [01:34:39]Waiting for new connection... [01:34:39] Sock 9.Parse request [01:34:39]Sock 9.Check first char [01:34:39]Sock 9.First char is OK [01:34:39]request: POST /json_proto HTTP/1.0 [01:34:39]Method: POST [01:34:39]URL: /json_proto [01:34:39]Method is POST - this is cgi request [01:34:39]url: /json_proto [01:34:39]query_string will be loaded in cgi processing [01:34:39]execute_cgi json_proto POST (null) [01:34:39]execute_cgi path=json_proto method=POST [01:34:39]POST find Content-Length [01:34:39]Host: 172.17.48.197:8080 [01:34:39]Content-Length: 678 [01:34:39]Content-Type: application/json [01:34:39] [01:34:39]POST finish read [01:34:39]Found Content-Length = 678 [01:34:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106407", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 9.700, "sum" : 600.43, "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" ] } } [01:34:39]execute_script... [01: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)1106407", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 9.700, "sum" : 600.43, "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" ] } } [01:34:39]POST & json_proto [01:34:39]process_json_proto [01:34:39]json parsed OK: [01:34:39]protocol is kg_v1.0 [01:34:39]action value=close_receipt [01:34:39]process_action close_receipt [01:34:39]cmd_close_receipt [01:34:39]MH_GetDate [01:34:39]Write to MH i2c: F0 00 00 72 64 C5 [01:34:39]Write i2c OK [01:34:39]MH_I2C_Read... [01:34:39]Read from MH i2c: F0 [01:34:39]MH_I2C_Read... [01:34:39]Read from MH i2c: F0 09 00 [01:34:39]MH_I2C_Read... [01:34:39]Read from MH i2c: F0 09 00 72 64 00 35 25 E5 65 6C AF E3 65 D5 [01:34:39]GetLastDocTimeStamp 1709515825 [01:34:39]current date 1709516085 [01:34:39]FM_GetShiftState [01:34:39]SAM_PROTO_GetShiftState [01:34:39]wFMCommunicate request_size=4 [01:34:39]MH_SAM_APDU [01:34:39]CAPDU: 80 13 01 00 [01:34:39]Write to MH i2c: E2 08 00 73 64 80 13 01 00 00 00 00 00 54 [01:34:39]Write i2c OK [01:34:39]MH_I2C_Read... [01:34:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:34:39]Read from MH i2c: E2 [01:34:39]MH_I2C_Read... [01:34:39]Read from MH i2c: E2 0E 00 [01:34:39]MH_I2C_Read... [01:34:39]Read from MH i2c: E2 0E 00 73 64 00 09 00 01 B0 11 E5 65 00 00 00 00 90 00 6B [01:34:39]RAPDU: 09 00 01 B0 11 E5 65 00 00 00 00 90 00 [01:34:39]wFMCommunicate OK [01:34:39]SAM_PROTO_GetShiftState done [01:34:39]FM_GetShiftState done [01:34:39]opened in 1709511088 [01:34:39]opened+sec_in_day 1709597488 [01:34:39]quantity*price = 60043 [01:34:39]sum+1 = 60044 [01:34:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.76 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 23 04.03.2024 01:34 Смена: 324 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123423 ФПД: 183110822065178 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240304T013445&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123423&fm=183110822065178&tin=02508201610067®Number=0000000000090573&sum=60000 [01:34:40]StoreToDocumentArchive [01:34:40]shift 324 fd 123423 [01:34:40]save to /storage/0324/doc_00123423 [01:34:40]save last doc name /storage/0324/doc_00123423 to /storage/kkm_last_doc_name [01:34:40]save OK [01:34:40]Clear old archive folders... [01:34:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:34:40]tlvbuf is 00DCB650 [01:34:40]SAM_PROTO_ClearQueue [01:34:40]wFMCommunicate request_size=4 [01:34:40]MH_SAM_APDU [01:34:40]CAPDU: 80 09 00 00 [01:34:40]Write to MH i2c: E2 08 00 80 64 80 09 00 00 00 00 00 00 56 [01:34:40]Write i2c OK [01:34:40]MH_I2C_Read... [01:34:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:34:40]Read from MH i2c: E2 [01:34:40]MH_I2C_Read... [01:34:40]Read from MH i2c: E2 03 00 [01:34:40]MH_I2C_Read... [01:34:40]Read from MH i2c: E2 03 00 80 64 00 90 00 58 [01:34:40]RAPDU: 90 00 [01:34:40]wFMCommunicate OK [01:34:40]SAM_PROTO_ClearQueue done [01:34:40]KKMCreateOFDPacket [01:34:40]OFDProtocolAddRootSTLVToBuf [01:34:40]FM_MakeSignedData [01:34:40]FM_MakeSignedData [01:34:40]SAM_PROTO_SignData [01:34:40]wFMCommunicate request_size=4 [01:34:40]MH_SAM_APDU [01:34:40]CAPDU: 80 0D 01 02 [01:34:40]Write to MH i2c: E2 08 00 81 64 80 0D 01 02 00 00 00 00 5E [01:34:40]Write i2c OK [01:34:40]MH_I2C_Read... [01:34:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:34:40]Read from MH i2c: E2 [01:34:40]MH_I2C_Read... [01:34:40]Read from MH i2c: E2 03 00 [01:34:40]MH_I2C_Read... [01:34:40]Read from MH i2c: E2 03 00 81 64 00 90 00 59 [01:34:40]RAPDU: 90 00 [01:34:40]wFMCommunicate OK [01:34:40]wFMCommunicate request_size=255 [01:34:40]MH_SAM_APDU [01:34: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 35 FF 03 08 00 03 E4 25 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 8B 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 E8 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 17 00 00 00 F4 03 04 00 35 25 E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 1F E2 01 00 35 04 06 00 A6 [01:34:40]Write to MH i2c: E2 02 01 82 64 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 25 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 8B 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 E8 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 17 00 00 00 F4 03 04 00 35 25 E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 1F E2 01 00 35 04 06 00 A6 00 00 87 [01:34:40]Write i2c OK [01:34:40]MH_I2C_Read... [01:34:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:34:41]Read from MH i2c: E2 [01:34:41]MH_I2C_Read... [01:34:41]Read from MH i2c: E2 03 00 [01:34:41]MH_I2C_Read... [01:34:41]Read from MH i2c: E2 03 00 82 64 00 90 00 5A [01:34:41]RAPDU: 90 00 [01:34:41]wFMCommunicate OK [01:34:41]wFMCommunicate request_size=10 [01:34:41]MH_SAM_APDU [01:34:41]CAPDU: 80 0D 02 02 05 89 CF 80 F4 1A [01:34:41]Write to MH i2c: E2 0D 00 83 64 80 0D 02 02 05 00 89 CF 80 F4 1A 00 00 51 [01:34:41]Write i2c OK [01:34:41]MH_I2C_Read... [01:34:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:34:41]Read from MH i2c: E2 [01:34:41]MH_I2C_Read... [01:34:41]Read from MH i2c: E2 03 00 [01:34:41]MH_I2C_Read... [01:34:41]Read from MH i2c: E2 03 00 83 64 00 90 00 5B [01:34:41]RAPDU: 90 00 [01:34:41]wFMCommunicate OK [01:34:41]wFMCommunicate request_size=4 [01:34:41]MH_SAM_APDU [01:34:41]CAPDU: 80 0D 03 02 [01:34:41]Write to MH i2c: E2 08 00 84 64 80 0D 03 02 00 00 00 00 63 [01:34:41]Write i2c OK [01:34:41]MH_I2C_Read... [01:34:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:34:41]Read from MH i2c: E2 [01:34:41]MH_I2C_Read... [01:34:41]Read from MH i2c: E2 0B 00 [01:34:41]MH_I2C_Read... [01:34:41]Read from MH i2c: E2 0B 00 84 64 00 C2 19 5B 9D B7 80 E8 1C 90 00 72 [01:34:41]RAPDU: C2 19 5B 9D B7 80 E8 1C 90 00 [01:34:41]wFMCommunicate OK [01:34:41]SAM_PROTO_SignData done [01:34:41]FM_MakeSignedData done [01:34:41]CreateOFDProtocolMessage [01:34:41]wFMCommunicate request_size=4 [01:34:41]MH_SAM_APDU [01:34:41]CAPDU: 80 11 00 00 [01:34:41]Write to MH i2c: E2 08 00 85 64 80 11 00 00 00 00 00 00 63 [01:34:41]Write i2c OK [01:34:41]MH_I2C_Read... [01:34:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:34:41]Read from MH i2c: E2 [01:34:41]MH_I2C_Read... [01:34:41]Read from MH i2c: E2 17 00 [01:34:41]MH_I2C_Read... [01:34:41]Read from MH i2c: E2 17 00 85 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 C1 [01:34:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [01:34:41]wFMCommunicate OK [01:34:41]CreateOFDProtocolMessage done [01:34:41]OFDSenderStorePacket 123423 [01:34:41]StoreOFDPacket docnum=123423 [01:34:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 16 F5 07 01 08 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 25 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 8B 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 E8 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 17 00 00 00 F4 03 04 00 35 25 E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 1F E2 01 00 35 04 06 00 A6 89 CF 80 F4 1A C2 19 5B 9D B7 80 E8 1C [01:34:41]CheckFolder [01:34:41]dirname=/storage/ofd_packets [01:34:41]CheckFolder done [01:34:41]ProducePacketName [01:34:41]name=ofd_packets/00123423 [01:34:41]NVStorageSaveData ofd_packets/00123423 [01:34:41]File name is /storage/ofd_packets/00123423 [01:34:41]Write 301 bytes [01:34:41]NVStorageSaveData done [01:34:41]OFDSenderStorePacket done [01:34:41]KKMCreateOFDPacket done [01:34:41]NVStorageSaveData kkm_last_timestamp [01:34:41]File name is /storage/kkm_last_timestamp [01:34:41]Write 4 bytes [01:34:41]NVStorageSaveData done [01:34:41]ExternCall_PrintAddStr [01:34:41]wPrintStart [01:34:41]Write to MH i2c: 01 00 00 86 64 EA [01:34:41]Write i2c OK [01:34:41]MH_I2C_Read... [01:34:41]Read from MH i2c: 01 [01:34:41]MH_I2C_Read... [01:34:41]Read from MH i2c: 01 07 00 [01:34:41]MH_I2C_Read... [01:34:41]Read from MH i2c: 01 07 00 86 64 00 00 00 00 00 FF 0F FF [01:34:41]RasterBufferAndPrint [01:34:41]line Счет N : (1)1106407 [01:34:41]line ИНН: 02508201610067 [01:34:41]line Контрольно-Кассовый Чек [01:34:41]line ПРОДАЖА [01:34:41]line ТРК (МРК, ГНК) : 11 [01:34:41]line Товар: 2710124130 [01:34:41]line Аи-92-К-5 [01:34:41]line 9.700 * 61.90 [01:34:41]line = 600.43 [01:34:41]line НДС 12% НСП 1% [01:34:41]line > о реализуемом товаре [01:34:41]line ОКРУГЛЕНИЕ: -0.43 [01:34:41]line ИТОГО: 600.00 [01:34:41]line Внесено: 600.00 [01:34:41]line СДАЧА: 0.00 [01:34:41]line НСП 1% : 5.31 [01:34:41]line НДС 12% : 63.76 [01:34:41]line Наличными: 600.00 [01:34:41]line Безнал.: 0.00 [01:34:41]line Место: АЗС № 25 "Партнер Нефть" [01:34:41]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [01:34:41]line СНО: Общий режим [01:34:41]line Чек 23 04.03.2024 01:34 [01:34:41]line Смена: 324 ФФД: 1.0 [01:34:41]line ЗНМ: 0300000019 [01:34:41]line РНМ: 0000000000090573 [01:34:41]line Версия ККМ: 001 [01:34:41]line ФМ: 0000000000874798 [01:34:41]line ФД: 123423 [01:34:41]line ФПД: 183110822065178 [01:34:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240304T013445&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123423&fm=183110822065178&tin=02508201610067®Number=0000000000090573&sum=60000 [01:34:41]OFD Sender: Processing packet 123423 [packets to send 112, broken 111] [01:34:41]ProducePacketName [01:34:41]name=ofd_packets/00123423 [01:34:41]OFD Sender: To server: pG, [01:34:41]CommunicateWithHost lk.salyk.kg:30040 [01:34:41]ConnectInit lk.salyk.kg [01:34:41]written 0, free lines is 4095 [01:34:41]Connected sock=10 [01:34: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 37 39 38 0F 01 00 00 16 F5 07 01 08 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 25 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 8B 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 E8 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 17 00 00 00 F4 03 04 00 35 25 E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 1F E2 01 00 35 04 06 00 A6 89 CF 80 F4 1A C2 19 5B 9D B7 80 E8 1C [01:34:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 BA D4 47 00 CE 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 37 39 38 10 04 04 00 1F E2 01 00 F4 03 04 00 5F D1 E4 65 B6 04 01 00 00 83 3B BB BB 4D 69 CA 8F [01:34:41]CommunicateWithHost err = 0 [01:34:41]CheckOFDResponse [01:34:41]1017 (14) - 77093643461234 [01:34:41]1041 (16) - 0000000000874798 [01:34:41]1040 (4) - 123423 [01:34:41]1012 (4) - 03.03.2024 19:37 [01:34:41]1206 (1) - 0 [01:34:41]OFD Sender: Remove packet 123423 [01:34:41]ProducePacketName [01:34:41]name=ofd_packets/00123423 [01:34:41]NVStorageDeleteData [01:34:42]Write to MH i2c: 01 00 00 B1 64 15 [01:34:42]Write i2c OK [01:34:42]MH_I2C_Read... [01:34:42]Read from MH i2c: 01 [01:34:42]MH_I2C_Read... [01:34:42]Read from MH i2c: 01 07 00 [01:34:42]MH_I2C_Read... [01:34:42]Read from MH i2c: 01 07 00 B1 64 00 00 00 00 00 ED 0C 15 [01:34:42]RasterBufferAndPrint [01:34:42]line [01:34:42]line [01:34:42]line [01:34:42]line [01:34:42]line [01:34:42]written 0, free lines is 3315 [01:34:42]MH_Cut [01:34:42]Write to MH i2c: D1 01 00 B8 64 01 EE [01:34:42]Write i2c OK [01:34:42]MH_I2C_Read... [01:34:42]Read from MH i2c: D1 [01:34:42]MH_I2C_Read... [01:34:42]Read from MH i2c: D1 01 00 [01:34:42]MH_I2C_Read... [01:34:42]Read from MH i2c: D1 01 00 B8 64 00 ED [01:34:42]Write to MH i2c: 01 00 00 B9 64 1D [01:34:42]Write i2c OK [01:34:42]MH_I2C_Read... [01:34:42]OFD Sender: No OFD packet to send [01:34:42]*** Cut start [01:34:42]*** Purtial cut [01:34:42]*** Stage 1: CUTSNS_PIN = 1 [01:34:44]Read from MH i2c: 01 [01:34:44]MH_I2C_Read... [01:34:44]*** Stop cut motor [01:34:44]*** Cut end [01:34:44]Read from MH i2c: 01 07 00 [01:34:44]MH_I2C_Read... [01:34:44]Read from MH i2c: 01 07 00 B9 64 00 00 00 00 00 FF 0F 32 [01:34:44]process_action close_receipt done [01:34:44]requested_data is exist [01:34:44]produce_requested_data [01:34:44]requested_item fm.sn is exist - process it [01:34:44]wFMCommunicate request_size=4 [01:34:44]MH_SAM_APDU [01:34:44]CAPDU: 80 11 00 00 [01:34:44]Write to MH i2c: E2 08 00 BA 64 80 11 00 00 00 00 00 00 98 [01:34:44]Write i2c OK [01:34:44]MH_I2C_Read... [01:34:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:34:44]Read from MH i2c: E2 [01:34:44]MH_I2C_Read... [01:34:44]Read from MH i2c: E2 17 00 [01:34:44]MH_I2C_Read... [01:34:44]Read from MH i2c: E2 17 00 BA 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 F6 [01:34:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [01:34:44]wFMCommunicate OK [01:34:44]requested_item fd.num is exist - process it [01:34:44]SAM_PROTO_GetFieldsCounters [01:34:44]wFMCommunicate request_size=4 [01:34:44]MH_SAM_APDU [01:34:44]CAPDU: 80 13 00 00 [01:34:44]Write to MH i2c: E2 08 00 BB 64 80 13 00 00 00 00 00 00 9B [01:34:44]Write i2c OK [01:34:44]MH_I2C_Read... [01:34:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:34:44]Read from MH i2c: E2 [01:34:44]MH_I2C_Read... [01:34:44]Read from MH i2c: E2 62 00 [01:34:44]MH_I2C_Read... [01:34:44]Read from MH i2c: E2 62 00 BB 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 1F E2 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 52 [01:34:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 1F E2 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:34:44]wFMCommunicate OK [01:34:44]SAM_PROTO_GetFieldsCounters done [01:34:44]requested_item shift.num is exist - process it [01:34:44]requested_item shift.opened is exist - process it [01:34:44]req_shift_opened [01:34:44]FM_GetShiftState [01:34:44]SAM_PROTO_GetShiftState [01:34:44]wFMCommunicate request_size=4 [01:34:44]MH_SAM_APDU [01:34:44]CAPDU: 80 13 01 00 [01:34:44]Write to MH i2c: E2 08 00 BC 64 80 13 01 00 00 00 00 00 9D [01:34:44]Write i2c OK [01:34:44]MH_I2C_Read... [01:34:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:34:45]Read from MH i2c: E2 [01:34:45]MH_I2C_Read... [01:34:45]Read from MH i2c: E2 0E 00 [01:34:45]MH_I2C_Read... [01:34:45]Read from MH i2c: E2 0E 00 BC 64 00 09 00 01 B0 11 E5 65 00 00 00 00 90 00 B4 [01:34:45]RAPDU: 09 00 01 B0 11 E5 65 00 00 00 00 90 00 [01:34:45]wFMCommunicate OK [01:34:45]SAM_PROTO_GetShiftState done [01:34:45]FM_GetShiftState done [01:34:45]req_shift_opened done [01:34:45]requested_item shift.open_date is exist - process it [01:34:45]req_shift_open_date [01:34:45]req_shift_open_date done [01:34:45]produce_requested_data done [01:34:45]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123423,"shift.num":324,"shift.opened":1,"shift.open_date":1709511088} [01:34:45]process_action_free close_receipt [01:34:45]json_value_free [01:34:45]json_value_free done [01:34:45]process_json_proto returns [01:34:45]Send response to host [01:34:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123423,"shift.num":324,"shift.opened":1,"shift.open_date":1709511088}}} [01:34:45]free response buf [01:34:45]execute_script done [01:34:45]execute_script returns [01:34:45]free content buf [01:34:45]Sock 9.Close socket [01:34:45]Sock 9.Thread stoped [01:34:47]OFD Sender: No OFD packet to send [01:34:52]OFD Sender: No OFD packet to send [01:34:57]OFD Sender: No OFD packet to send [01:35:02]OFD Sender: No OFD packet to send [01:35:07]OFD Sender: No OFD packet to send [01:35:12]OFD Sender: No OFD packet to send [01:35:17]OFD Sender: No OFD packet to send [01:35:22]OFD Sender: No OFD packet to send [01:35:27]OFD Sender: No OFD packet to send [01:35:32]OFD Sender: No OFD packet to send [01:35:37]OFD Sender: No OFD packet to send [01:35:42]OFD Sender: No OFD packet to send [01:35:47]OFD Sender: No OFD packet to send [01:35:52]OFD Sender: No OFD packet to send [01:35:57]OFD Sender: No OFD packet to send [01:36:02]OFD Sender: No OFD packet to send [01:36:07]OFD Sender: No OFD packet to send [01:36:12]OFD Sender: No OFD packet to send [01:36:17]OFD Sender: No OFD packet to send [01:36:22]OFD Sender: No OFD packet to send [01:36:27]OFD Sender: No OFD packet to send [01:36:32]OFD Sender: No OFD packet to send [01:36:37]OFD Sender: No OFD packet to send [01:36:42]OFD Sender: No OFD packet to send [01:36:47]OFD Sender: No OFD packet to send [01:36:52]OFD Sender: No OFD packet to send [01:36:57]OFD Sender: No OFD packet to send [01:37:02]OFD Sender: No OFD packet to send [01:37:07]OFD Sender: No OFD packet to send [01:37:12]OFD Sender: No OFD packet to send [01:37:17]OFD Sender: No OFD packet to send [01:37:22]OFD Sender: No OFD packet to send [01:37:27]OFD Sender: No OFD packet to send [01:37:32]OFD Sender: No OFD packet to send [01:37:37]OFD Sender: No OFD packet to send [01:37:42]OFD Sender: No OFD packet to send [01:37:47]OFD Sender: No OFD packet to send [01:37:52]OFD Sender: No OFD packet to send [01:37:57]OFD Sender: No OFD packet to send [01:38:02]OFD Sender: No OFD packet to send [01:38:07]OFD Sender: No OFD packet to send [01:38:12]OFD Sender: No OFD packet to send [01:38:17]OFD Sender: No OFD packet to send [01:38:22]OFD Sender: No OFD packet to send [01:38:27]OFD Sender: No OFD packet to send [01:38:32]OFD Sender: No OFD packet to send [01:38:37]OFD Sender: No OFD packet to send [01:38:42]OFD Sender: No OFD packet to send [01:38:47]OFD Sender: No OFD packet to send [01:38:52]OFD Sender: No OFD packet to send [01:38:57]OFD Sender: No OFD packet to send [01:39:02]OFD Sender: No OFD packet to send [01:39:07]OFD Sender: No OFD packet to send [01:39:12]OFD Sender: No OFD packet to send [01:39:17]OFD Sender: No OFD packet to send [01:39:22]OFD Sender: No OFD packet to send [01:39:27]OFD Sender: No OFD packet to send [01:39:32]OFD Sender: No OFD packet to send [01:39:37]OFD Sender: No OFD packet to send [01:39:42]OFD Sender: No OFD packet to send [01:39:47]OFD Sender: No OFD packet to send [01:39:52]OFD Sender: No OFD packet to send [01:39:57]OFD Sender: No OFD packet to send [01:40:02]OFD Sender: No OFD packet to send [01:40:07]OFD Sender: No OFD packet to send [01:40:12]OFD Sender: No OFD packet to send [01:40:17]OFD Sender: No OFD packet to send [01:40:22]OFD Sender: No OFD packet to send [01:40:27]OFD Sender: No OFD packet to send [01:40:32]OFD Sender: No OFD packet to send [01:40:37]OFD Sender: No OFD packet to send [01:40:42]OFD Sender: No OFD packet to send [01:40:47]OFD Sender: No OFD packet to send [01:40:52]OFD Sender: No OFD packet to send [01:40:57]OFD Sender: No OFD packet to send [01:41:02]OFD Sender: No OFD packet to send [01:41:07]OFD Sender: No OFD packet to send [01:41:12]OFD Sender: No OFD packet to send [01:41:17]OFD Sender: No OFD packet to send [01:41:22]OFD Sender: No OFD packet to send [01:41:27]OFD Sender: No OFD packet to send [01:41:32]OFD Sender: No OFD packet to send [01:41:37]OFD Sender: No OFD packet to send [01:41:42]OFD Sender: No OFD packet to send [01:41:47]OFD Sender: No OFD packet to send [01:41:52]OFD Sender: No OFD packet to send [01:41:57]OFD Sender: No OFD packet to send [01:42:02]OFD Sender: No OFD packet to send [01:42:07]OFD Sender: No OFD packet to send [01:42:12]OFD Sender: No OFD packet to send [01:42:17]OFD Sender: No OFD packet to send [01:42:22]OFD Sender: No OFD packet to send [01:42:27]OFD Sender: No OFD packet to send [01:42:32]OFD Sender: No OFD packet to send [01:42:37]OFD Sender: No OFD packet to send [01:42:42]OFD Sender: No OFD packet to send [01:42:47]OFD Sender: No OFD packet to send [01:42:52]OFD Sender: No OFD packet to send [01:42:57]OFD Sender: No OFD packet to send [01:43:02]OFD Sender: No OFD packet to send [01:43:07]OFD Sender: No OFD packet to send [01:43:12]OFD Sender: No OFD packet to send [01:43:17]OFD Sender: No OFD packet to send [01:43:22]OFD Sender: No OFD packet to send [01:43:27]OFD Sender: No OFD packet to send [01:43:32]OFD Sender: No OFD packet to send [01:43:37]OFD Sender: No OFD packet to send [01:43:43]OFD Sender: No OFD packet to send [01:43:48]OFD Sender: No OFD packet to send [01:43:53]OFD Sender: No OFD packet to send [01:43:58]OFD Sender: No OFD packet to send [01:44:03]OFD Sender: No OFD packet to send [01:44:08]OFD Sender: No OFD packet to send [01:44:13]OFD Sender: No OFD packet to send [01:44:18]OFD Sender: No OFD packet to send [01:44:23]OFD Sender: No OFD packet to send [01:44:28]OFD Sender: No OFD packet to send [01:44:33]OFD Sender: No OFD packet to send [01:44:38]OFD Sender: No OFD packet to send [01:44:43]OFD Sender: No OFD packet to send [01:44:48]OFD Sender: No OFD packet to send [01:44:53]OFD Sender: No OFD packet to send [01:44:58]OFD Sender: No OFD packet to send [01:45:03]OFD Sender: No OFD packet to send [01:45:08]OFD Sender: No OFD packet to send [01:45:13]OFD Sender: No OFD packet to send [01:45:18]OFD Sender: No OFD packet to send [01:45:23]OFD Sender: No OFD packet to send [01:45:28]OFD Sender: No OFD packet to send [01:45:33]OFD Sender: No OFD packet to send [01:45:38]OFD Sender: No OFD packet to send [01:45:43]OFD Sender: No OFD packet to send [01:45:48]OFD Sender: No OFD packet to send [01:45:53]OFD Sender: No OFD packet to send [01:45:58]OFD Sender: No OFD packet to send [01:46:03]OFD Sender: No OFD packet to send [01:46:08]OFD Sender: No OFD packet to send [01:46:13]OFD Sender: No OFD packet to send [01:46:18]OFD Sender: No OFD packet to send [01:46:23]OFD Sender: No OFD packet to send [01:46:28]OFD Sender: No OFD packet to send [01:46:33]OFD Sender: No OFD packet to send [01:46:38]OFD Sender: No OFD packet to send [01:46:43]OFD Sender: No OFD packet to send [01:46:48]OFD Sender: No OFD packet to send [01:46:53]OFD Sender: No OFD packet to send [01:46:58]OFD Sender: No OFD packet to send [01:47:03]OFD Sender: No OFD packet to send [01:47:08]OFD Sender: No OFD packet to send [01:47:13]OFD Sender: No OFD packet to send [01:47:18]OFD Sender: No OFD packet to send [01:47:23]OFD Sender: No OFD packet to send [01:47:28]OFD Sender: No OFD packet to send [01:47:33]OFD Sender: No OFD packet to send [01:47:38]OFD Sender: No OFD packet to send [01:47:43]OFD Sender: No OFD packet to send [01:47:48]OFD Sender: No OFD packet to send [01:47:53]OFD Sender: No OFD packet to send [01:47:58]OFD Sender: No OFD packet to send [01:48:03]OFD Sender: No OFD packet to send [01:48:08]OFD Sender: No OFD packet to send [01:48:13]OFD Sender: No OFD packet to send [01:48:18]OFD Sender: No OFD packet to send [01:48:23]OFD Sender: No OFD packet to send [01:48:28]OFD Sender: No OFD packet to send [01:48:33]OFD Sender: No OFD packet to send [01:48:38]OFD Sender: No OFD packet to send [01:48:43]OFD Sender: No OFD packet to send [01:48:48]OFD Sender: No OFD packet to send [01:48:53]OFD Sender: No OFD packet to send [01:48:58]OFD Sender: No OFD packet to send [01:49:03]OFD Sender: No OFD packet to send [01:49:08]OFD Sender: No OFD packet to send [01:49:13]OFD Sender: No OFD packet to send [01:49:18]OFD Sender: No OFD packet to send [01:49:23]OFD Sender: No OFD packet to send [01:49:28]OFD Sender: No OFD packet to send [01:49:33]OFD Sender: No OFD packet to send [01:49:38]OFD Sender: No OFD packet to send [01:49:43]OFD Sender: No OFD packet to send [01:49:48]OFD Sender: No OFD packet to send [01:49:53]OFD Sender: No OFD packet to send [01:49:58]OFD Sender: No OFD packet to send [01:50:03]OFD Sender: No OFD packet to send [01:50:08]OFD Sender: No OFD packet to send [01:50:13]OFD Sender: No OFD packet to send [01:50:18]OFD Sender: No OFD packet to send [01:50:23]OFD Sender: No OFD packet to send [01:50:28]OFD Sender: No OFD packet to send [01:50:33]OFD Sender: No OFD packet to send [01:50:38]OFD Sender: No OFD packet to send [01:50:43]OFD Sender: No OFD packet to send [01:50:48]OFD Sender: No OFD packet to send [01:50:53]OFD Sender: No OFD packet to send [01:50:58]OFD Sender: No OFD packet to send [01:51:03]OFD Sender: No OFD packet to send [01:51:08]OFD Sender: No OFD packet to send [01:51:13]OFD Sender: No OFD packet to send [01:51:18]OFD Sender: No OFD packet to send [01:51:23]OFD Sender: No OFD packet to send [01:51:28]OFD Sender: No OFD packet to send [01:51:33]OFD Sender: No OFD packet to send [01:51:38]OFD Sender: No OFD packet to send [01:51:43]OFD Sender: No OFD packet to send [01:51:48]OFD Sender: No OFD packet to send [01:51:53]OFD Sender: No OFD packet to send [01:51:58]OFD Sender: No OFD packet to send [01:52:03]OFD Sender: No OFD packet to send [01:52:08]OFD Sender: No OFD packet to send [01:52:13]OFD Sender: No OFD packet to send [01:52:18]OFD Sender: No OFD packet to send [01:52:23]OFD Sender: No OFD packet to send [01:52:28]OFD Sender: No OFD packet to send [01:52:33]OFD Sender: No OFD packet to send [01:52:38]OFD Sender: No OFD packet to send [01:52:43]OFD Sender: No OFD packet to send [01:52:48]OFD Sender: No OFD packet to send [01:52:53]OFD Sender: No OFD packet to send [01:52:58]OFD Sender: No OFD packet to send [01:53:03]OFD Sender: No OFD packet to send [01:53:08]OFD Sender: No OFD packet to send [01:53:13]OFD Sender: No OFD packet to send [01:53:18]OFD Sender: No OFD packet to send [01:53:23]OFD Sender: No OFD packet to send [01:53:28]OFD Sender: No OFD packet to send [01:53:33]OFD Sender: No OFD packet to send [01:53:38]OFD Sender: No OFD packet to send [01:53:43]OFD Sender: No OFD packet to send [01:53:48]OFD Sender: No OFD packet to send [01:53:53]OFD Sender: No OFD packet to send [01:53:58]OFD Sender: No OFD packet to send [01:54:03]OFD Sender: No OFD packet to send [01:54:08]OFD Sender: No OFD packet to send [01:54:13]OFD Sender: No OFD packet to send [01:54:18]OFD Sender: No OFD packet to send [01:54:23]OFD Sender: No OFD packet to send [01:54:28]OFD Sender: No OFD packet to send [01:54:33]OFD Sender: No OFD packet to send [01:54:38]OFD Sender: No OFD packet to send [01:54:43]OFD Sender: No OFD packet to send [01:54:48]OFD Sender: No OFD packet to send [01:54:53]OFD Sender: No OFD packet to send [01:54:58]OFD Sender: No OFD packet to send [01:55:03]OFD Sender: No OFD packet to send [01:55:08]OFD Sender: No OFD packet to send [01:55:13]OFD Sender: No OFD packet to send [01:55:18]OFD Sender: No OFD packet to send [01:55:23]OFD Sender: No OFD packet to send [01:55:28]OFD Sender: No OFD packet to send [01:55:33]OFD Sender: No OFD packet to send [01:55:38]OFD Sender: No OFD packet to send [01:55:43]OFD Sender: No OFD packet to send [01:55:48]OFD Sender: No OFD packet to send [01:55:53]OFD Sender: No OFD packet to send [01:55:58]OFD Sender: No OFD packet to send [01:56:03]OFD Sender: No OFD packet to send [01:56:08]OFD Sender: No OFD packet to send [01:56:13]OFD Sender: No OFD packet to send [01:56:18]OFD Sender: No OFD packet to send [01:56:23]OFD Sender: No OFD packet to send [01:56:28]OFD Sender: No OFD packet to send [01:56:33]OFD Sender: No OFD packet to send [01:56:38]OFD Sender: No OFD packet to send [01:56:43]OFD Sender: No OFD packet to send [01:56:48]OFD Sender: No OFD packet to send [01:56:53]OFD Sender: No OFD packet to send [01:56:58]OFD Sender: No OFD packet to send [01:57:03]OFD Sender: No OFD packet to send [01:57:08]OFD Sender: No OFD packet to send [01:57:13]OFD Sender: No OFD packet to send [01:57:18]OFD Sender: No OFD packet to send [01:57:23]OFD Sender: No OFD packet to send [01:57:28]OFD Sender: No OFD packet to send [01:57:33]OFD Sender: No OFD packet to send [01:57:38]OFD Sender: No OFD packet to send [01:57:43]OFD Sender: No OFD packet to send [01:57:48]OFD Sender: No OFD packet to send [01:57:53]OFD Sender: No OFD packet to send [01:57:58]OFD Sender: No OFD packet to send [01:58:03]OFD Sender: No OFD packet to send [01:58:08]OFD Sender: No OFD packet to send [01:58:13]OFD Sender: No OFD packet to send [01:58:18]OFD Sender: No OFD packet to send [01:58:23]OFD Sender: No OFD packet to send [01:58:29]OFD Sender: No OFD packet to send [01:58:34]OFD Sender: No OFD packet to send [01:58:39]OFD Sender: No OFD packet to send [01:58:44]OFD Sender: No OFD packet to send [01:58:49]OFD Sender: No OFD packet to send [01:58:54]OFD Sender: No OFD packet to send [01:58:59]OFD Sender: No OFD packet to send [01:59:04]OFD Sender: No OFD packet to send [01:59:09]OFD Sender: No OFD packet to send [01:59:14]OFD Sender: No OFD packet to send [01:59:19]OFD Sender: No OFD packet to send [01:59:24]OFD Sender: No OFD packet to send [01:59:29]OFD Sender: No OFD packet to send [01:59:34]OFD Sender: No OFD packet to send [01:59:39]OFD Sender: No OFD packet to send [01:59:44]OFD Sender: No OFD packet to send [01:59:49]OFD Sender: No OFD packet to send [01:59:54]OFD Sender: No OFD packet to send [01:59:59]OFD Sender: No OFD packet to send [02:00:04]OFD Sender: No OFD packet to send [02:00:09]OFD Sender: No OFD packet to send [02:00:14]OFD Sender: No OFD packet to send [02:00:19]OFD Sender: No OFD packet to send [02:00:24]OFD Sender: No OFD packet to send [02:00:29]OFD Sender: No OFD packet to send [02:00:34]OFD Sender: No OFD packet to send [02:00:39]OFD Sender: No OFD packet to send [02:00:44]OFD Sender: No OFD packet to send [02:00:49]OFD Sender: No OFD packet to send [02:00:54]OFD Sender: No OFD packet to send [02:00:59]OFD Sender: No OFD packet to send [02:01:04]OFD Sender: No OFD packet to send [02:01:09]OFD Sender: No OFD packet to send [02:01:14]OFD Sender: No OFD packet to send [02:01:19]OFD Sender: No OFD packet to send [02:01:24]OFD Sender: No OFD packet to send [02:01:29]OFD Sender: No OFD packet to send [02:01:34]OFD Sender: No OFD packet to send [02:01:39]OFD Sender: No OFD packet to send [02:01:44]OFD Sender: No OFD packet to send [02:01:49]OFD Sender: No OFD packet to send [02:01:54]OFD Sender: No OFD packet to send [02:01:59]OFD Sender: No OFD packet to send [02:02:04]OFD Sender: No OFD packet to send [02:02:09]OFD Sender: No OFD packet to send [02:02:14]OFD Sender: No OFD packet to send [02:02:19]OFD Sender: No OFD packet to send [02:02:24]OFD Sender: No OFD packet to send [02:02:29]OFD Sender: No OFD packet to send [02:02:34]OFD Sender: No OFD packet to send [02:02:39]OFD Sender: No OFD packet to send [02:02:44]OFD Sender: No OFD packet to send [02:02:49]OFD Sender: No OFD packet to send [02:02:54]OFD Sender: No OFD packet to send [02:02:59]OFD Sender: No OFD packet to send [02:03:04]OFD Sender: No OFD packet to send [02:03:09]OFD Sender: No OFD packet to send [02:03:14]OFD Sender: No OFD packet to send [02:03:19]OFD Sender: No OFD packet to send [02:03:24]OFD Sender: No OFD packet to send [02:03:29]OFD Sender: No OFD packet to send [02:03:34]OFD Sender: No OFD packet to send [02:03:39]OFD Sender: No OFD packet to send [02:03:44]OFD Sender: No OFD packet to send [02:03:49]OFD Sender: No OFD packet to send [02:03:54]OFD Sender: No OFD packet to send [02:03:59]OFD Sender: No OFD packet to send [02:04:04]OFD Sender: No OFD packet to send [02:04:09]OFD Sender: No OFD packet to send [02:04:14]OFD Sender: No OFD packet to send [02:04:19]OFD Sender: No OFD packet to send [02:04:24]OFD Sender: No OFD packet to send [02:04:29]OFD Sender: No OFD packet to send [02:04:34]OFD Sender: No OFD packet to send [02:04:39]OFD Sender: No OFD packet to send [02:04:44]OFD Sender: No OFD packet to send [02:04:49]OFD Sender: No OFD packet to send [02:04:54]OFD Sender: No OFD packet to send [02:04:59]OFD Sender: No OFD packet to send [02:05:04]OFD Sender: No OFD packet to send [02:05:09]OFD Sender: No OFD packet to send [02:05:14]OFD Sender: No OFD packet to send [02:05:19]OFD Sender: No OFD packet to send [02:05:24]OFD Sender: No OFD packet to send [02:05:29]OFD Sender: No OFD packet to send [02:05:34]OFD Sender: No OFD packet to send [02:05:39]OFD Sender: No OFD packet to send [02:05:44]OFD Sender: No OFD packet to send [02:05:49]OFD Sender: No OFD packet to send [02:05:54]OFD Sender: No OFD packet to send [02:05:59]OFD Sender: No OFD packet to send [02:06:04]OFD Sender: No OFD packet to send [02:06:09]OFD Sender: No OFD packet to send [02:06:14]OFD Sender: No OFD packet to send [02:06:19]OFD Sender: No OFD packet to send [02:06:24]OFD Sender: No OFD packet to send [02:06:29]OFD Sender: No OFD packet to send [02:06:34]OFD Sender: No OFD packet to send [02:06:39]OFD Sender: No OFD packet to send [02:06:44]OFD Sender: No OFD packet to send [02:06:49]OFD Sender: No OFD packet to send [02:06:54]OFD Sender: No OFD packet to send [02:06:59]OFD Sender: No OFD packet to send [02:07:04]OFD Sender: No OFD packet to send [02:07:09]OFD Sender: No OFD packet to send [02:07:14]OFD Sender: No OFD packet to send [02:07:19]OFD Sender: No OFD packet to send [02:07:24]OFD Sender: No OFD packet to send [02:07:29]OFD Sender: No OFD packet to send [02:07:34]OFD Sender: No OFD packet to send [02:07:39]OFD Sender: No OFD packet to send [02:07:44]OFD Sender: No OFD packet to send [02:07:49]OFD Sender: No OFD packet to send [02:07:54]OFD Sender: No OFD packet to send [02:07:59]OFD Sender: No OFD packet to send [02:08:04]OFD Sender: No OFD packet to send [02:08:09]OFD Sender: No OFD packet to send [02:08:14]OFD Sender: No OFD packet to send [02:08:19]OFD Sender: No OFD packet to send [02:08:24]OFD Sender: No OFD packet to send [02:08:29]OFD Sender: No OFD packet to send [02:08:34]OFD Sender: No OFD packet to send [02:08:39]OFD Sender: No OFD packet to send [02:08:44]OFD Sender: No OFD packet to send [02:08:49]OFD Sender: No OFD packet to send [02:08:54]OFD Sender: No OFD packet to send [02:08:59]OFD Sender: No OFD packet to send [02:09:04]OFD Sender: No OFD packet to send [02:09:09]OFD Sender: No OFD packet to send [02:09:14]OFD Sender: No OFD packet to send [02:09:19]OFD Sender: No OFD packet to send [02:09:24]OFD Sender: No OFD packet to send [02:09:29]OFD Sender: No OFD packet to send [02:09:34]OFD Sender: No OFD packet to send [02:09:39]OFD Sender: No OFD packet to send [02:09:44]OFD Sender: No OFD packet to send [02:09:49]OFD Sender: No OFD packet to send [02:09:54]OFD Sender: No OFD packet to send [02:09:59]OFD Sender: No OFD packet to send [02:10:04]OFD Sender: No OFD packet to send [02:10:09]OFD Sender: No OFD packet to send [02:10:14]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:59]OFD Sender: No OFD packet to send [02:11:04]OFD Sender: No OFD packet to send [02:11:09]OFD Sender: No OFD packet to send [02:11:14]OFD Sender: No OFD packet to send [02:11:19]OFD Sender: No OFD packet to send [02:11:24]OFD Sender: No OFD packet to send [02:11:29]OFD Sender: No OFD packet to send [02:11:34]OFD Sender: No OFD packet to send [02:11:39]OFD Sender: No OFD packet to send [02:11:44]OFD Sender: No OFD packet to send [02:11:49]OFD Sender: No OFD packet to send [02:11:54]OFD Sender: No OFD packet to send [02:11:59]OFD Sender: No OFD packet to send [02:12:04]OFD Sender: No OFD packet to send [02:12:09]OFD Sender: No OFD packet to send [02:12:14]OFD Sender: No OFD packet to send [02:12:19]OFD Sender: No OFD packet to send [02:12:24]OFD Sender: No OFD packet to send [02:12:29]OFD Sender: No OFD packet to send [02:12:34]OFD Sender: No OFD packet to send [02:12:39]OFD Sender: No OFD packet to send [02:12:44]OFD Sender: No OFD packet to send [02:12:49]OFD Sender: No OFD packet to send [02:12:54]OFD Sender: No OFD packet to send [02:12:59]OFD Sender: No OFD packet to send [02:13:04]OFD Sender: No OFD packet to send [02:13:09]OFD Sender: No OFD packet to send [02:13:14]OFD Sender: No OFD packet to send [02:13:20]OFD Sender: No OFD packet to send [02:13:25]OFD Sender: No OFD packet to send [02:13:30]OFD Sender: No OFD packet to send [02:13:35]OFD Sender: No OFD packet to send [02:13:40]OFD Sender: No OFD packet to send [02:13:45]OFD Sender: No OFD packet to send [02:13:50]OFD Sender: No OFD packet to send [02:13:55]OFD Sender: No OFD packet to send [02:14:00]OFD Sender: No OFD packet to send [02:14:05]OFD Sender: No OFD packet to send [02:14:10]OFD Sender: No OFD packet to send [02:14:15]OFD Sender: No OFD packet to send [02:14:20]OFD Sender: No OFD packet to send [02:14:25]OFD Sender: No OFD packet to send [02:14:30]OFD Sender: No OFD packet to send [02:14:35]OFD Sender: No OFD packet to send [02:14:40]OFD Sender: No OFD packet to send [02:14:45]OFD Sender: No OFD packet to send [02:14:50]OFD Sender: No OFD packet to send [02:14:55]OFD Sender: No OFD packet to send [02:15:00]OFD Sender: No OFD packet to send [02:15:05]OFD Sender: No OFD packet to send [02:15:10]OFD Sender: No OFD packet to send [02:15:15]OFD Sender: No OFD packet to send [02:15:20]OFD Sender: No OFD packet to send [02:15:25]OFD Sender: No OFD packet to send [02:15:30]OFD Sender: No OFD packet to send [02:15:35]OFD Sender: No OFD packet to send [02:15:40]OFD Sender: No OFD packet to send [02:15:45]OFD Sender: No OFD packet to send [02:15:50]OFD Sender: No OFD packet to send [02:15:55]OFD Sender: No OFD packet to send [02:16:00]OFD Sender: No OFD packet to send [02:16:05]OFD Sender: No OFD packet to send [02:16:10]OFD Sender: No OFD packet to send [02:16:15]OFD Sender: No OFD packet to send [02:16:20]OFD Sender: No OFD packet to send [02:16:25]OFD Sender: No OFD packet to send [02:16:30]OFD Sender: No OFD packet to send [02:16:35]OFD Sender: No OFD packet to send [02:16:40]OFD Sender: No OFD packet to send [02:16:45]OFD Sender: No OFD packet to send [02:16:50]OFD Sender: No OFD packet to send [02:16:55]OFD Sender: No OFD packet to send [02:17:00]OFD Sender: No OFD packet to send [02:17:05]OFD Sender: No OFD packet to send [02:17:10]OFD Sender: No OFD packet to send [02:17:15]OFD Sender: No OFD packet to send [02:17:20]OFD Sender: No OFD packet to send [02:17:25]OFD Sender: No OFD packet to send [02:17:30]OFD Sender: No OFD packet to send [02:17:35]OFD Sender: No OFD packet to send [02:17:40]OFD Sender: No OFD packet to send [02:17:45]OFD Sender: No OFD packet to send [02:17:50]OFD Sender: No OFD packet to send [02:17:55]OFD Sender: No OFD packet to send [02:18:00]OFD Sender: No OFD packet to send [02:18:05]OFD Sender: No OFD packet to send [02:18:10]OFD Sender: No OFD packet to send [02:18:15]OFD Sender: No OFD packet to send [02:18:20]OFD Sender: No OFD packet to send [02:18:25]OFD Sender: No OFD packet to send [02:18:30]OFD Sender: No OFD packet to send [02:18:35]OFD Sender: No OFD packet to send [02:18:40]OFD Sender: No OFD packet to send [02:18:45]OFD Sender: No OFD packet to send [02:18:50]OFD Sender: No OFD packet to send [02:18:55]OFD Sender: No OFD packet to send [02:19:00]OFD Sender: No OFD packet to send [02:19:05]OFD Sender: No OFD packet to send [02:19:10]OFD Sender: No OFD packet to send [02:19:15]OFD Sender: No OFD packet to send [02:19:20]OFD Sender: No OFD packet to send [02:19:25]OFD Sender: No OFD packet to send [02:19:30]OFD Sender: No OFD packet to send [02:19:35]OFD Sender: No OFD packet to send [02:19:40]OFD Sender: No OFD packet to send [02:19:45]OFD Sender: No OFD packet to send [02:19:50]OFD Sender: No OFD packet to send [02:19:55]OFD Sender: No OFD packet to send [02:20:00]OFD Sender: No OFD packet to send [02:20:05]OFD Sender: No OFD packet to send [02:20:10]OFD Sender: No OFD packet to send [02:20:15]OFD Sender: No OFD packet to send [02:20:20]OFD Sender: No OFD packet to send [02:20:25]OFD Sender: No OFD packet to send [02:20:30]OFD Sender: No OFD packet to send [02:20:35]OFD Sender: No OFD packet to send [02:20:40]OFD Sender: No OFD packet to send [02:20:45]OFD Sender: No OFD packet to send [02:20:50]OFD Sender: No OFD packet to send [02:20:55]OFD Sender: No OFD packet to send [02:21:00]OFD Sender: No OFD packet to send [02:21:05]OFD Sender: No OFD packet to send [02:21:10]OFD Sender: No OFD packet to send [02:21:15]OFD Sender: No OFD packet to send [02:21:20]OFD Sender: No OFD packet to send [02:21:25]OFD Sender: No OFD packet to send [02:21:30]OFD Sender: No OFD packet to send [02:21:35]OFD Sender: No OFD packet to send [02:21:40]OFD Sender: No OFD packet to send [02:21:45]OFD Sender: No OFD packet to send [02:21:50]OFD Sender: No OFD packet to send [02:21:55]OFD Sender: No OFD packet to send [02:22:00]OFD Sender: No OFD packet to send [02:22:05]OFD Sender: No OFD packet to send [02:22:10]OFD Sender: No OFD packet to send [02:22:15]OFD Sender: No OFD packet to send [02:22:20]OFD Sender: No OFD packet to send [02:22:25]OFD Sender: No OFD packet to send [02:22:30]OFD Sender: No OFD packet to send [02:22:35]OFD Sender: No OFD packet to send [02:22:40]OFD Sender: No OFD packet to send [02:22:45]OFD Sender: No OFD packet to send [02:22:50]OFD Sender: No OFD packet to send [02:22:55]OFD Sender: No OFD packet to send [02:23:00]OFD Sender: No OFD packet to send [02:23:05]OFD Sender: No OFD packet to send [02:23:10]OFD Sender: No OFD packet to send [02:23:15]OFD Sender: No OFD packet to send [02:23:20]OFD Sender: No OFD packet to send [02:23:25]OFD Sender: No OFD packet to send [02:23:30]OFD Sender: No OFD packet to send [02:23:35]OFD Sender: No OFD packet to send [02:23:40]OFD Sender: No OFD packet to send [02:23:45]OFD Sender: No OFD packet to send [02:23:50]OFD Sender: No OFD packet to send [02:23:55]OFD Sender: No OFD packet to send [02:24:00]OFD Sender: No OFD packet to send [02:24:05]OFD Sender: No OFD packet to send [02:24:10]OFD Sender: No OFD packet to send [02:24:15]OFD Sender: No OFD packet to send [02:24:20]OFD Sender: No OFD packet to send [02:24:25]OFD Sender: No OFD packet to send [02:24:30]OFD Sender: No OFD packet to send [02:24:35]OFD Sender: No OFD packet to send [02:24:40]OFD Sender: No OFD packet to send [02:24:45]OFD Sender: No OFD packet to send [02:24:50]OFD Sender: No OFD packet to send [02:24:55]OFD Sender: No OFD packet to send [02:25:00]OFD Sender: No OFD packet to send [02:25:05]OFD Sender: No OFD packet to send [02:25:10]OFD Sender: No OFD packet to send [02:25:15]OFD Sender: No OFD packet to send [02:25:20]OFD Sender: No OFD packet to send [02:25:25]OFD Sender: No OFD packet to send [02:25:30]OFD Sender: No OFD packet to send [02:25:35]OFD Sender: No OFD packet to send [02:25:40]OFD Sender: No OFD packet to send [02:25:45]OFD Sender: No OFD packet to send [02:25:50]OFD Sender: No OFD packet to send [02:25:55]OFD Sender: No OFD packet to send [02:26:00]OFD Sender: No OFD packet to send [02:26:05]OFD Sender: No OFD packet to send [02:26:10]OFD Sender: No OFD packet to send [02:26:15]OFD Sender: No OFD packet to send [02:26:20]OFD Sender: No OFD packet to send [02:26:25]OFD Sender: No OFD packet to send [02:26:30]OFD Sender: No OFD packet to send [02:26:35]OFD Sender: No OFD packet to send [02:26:40]OFD Sender: No OFD packet to send [02:26:45]OFD Sender: No OFD packet to send [02:26:50]OFD Sender: No OFD packet to send [02:26:55]OFD Sender: No OFD packet to send [02:27:00]OFD Sender: No OFD packet to send [02:27:05]OFD Sender: No OFD packet to send [02:27:10]OFD Sender: No OFD packet to send [02:27:15]OFD Sender: No OFD packet to send [02:27:20]OFD Sender: No OFD packet to send [02:27:25]OFD Sender: No OFD packet to send [02:27:30]OFD Sender: No OFD packet to send [02:27:35]OFD Sender: No OFD packet to send [02:27:40]OFD Sender: No OFD packet to send [02:27:45]OFD Sender: No OFD packet to send [02:27:50]OFD Sender: No OFD packet to send [02:27:55]OFD Sender: No OFD packet to send [02:28:00]OFD Sender: No OFD packet to send [02:28:05]OFD Sender: No OFD packet to send [02:28:11]OFD Sender: No OFD packet to send [02:28:16]OFD Sender: No OFD packet to send [02:28:21]OFD Sender: No OFD packet to send [02:28:26]OFD Sender: No OFD packet to send [02:28:31]OFD Sender: No OFD packet to send [02:28:36]OFD Sender: No OFD packet to send [02:28:41]OFD Sender: No OFD packet to send [02:28:46]OFD Sender: No OFD packet to send [02:28:51]OFD Sender: No OFD packet to send [02:28:56]OFD Sender: No OFD packet to send [02:29:01]OFD Sender: No OFD packet to send [02:29:06]OFD Sender: No OFD packet to send [02:29:11]OFD Sender: No OFD packet to send [02:29:16]OFD Sender: No OFD packet to send [02:29:21]OFD Sender: No OFD packet to send [02:29:26]OFD Sender: No OFD packet to send [02:29:31]OFD Sender: No OFD packet to send [02:29:36]OFD Sender: No OFD packet to send [02:29:41]OFD Sender: No OFD packet to send [02:29:46]OFD Sender: No OFD packet to send [02:29:51]OFD Sender: No OFD packet to send [02:29:56]OFD Sender: No OFD packet to send [02:30:01]OFD Sender: No OFD packet to send [02:30:06]OFD Sender: No OFD packet to send [02:30:11]OFD Sender: No OFD packet to send [02:30:16]OFD Sender: No OFD packet to send [02:30:21]OFD Sender: No OFD packet to send [02:30:26]OFD Sender: No OFD packet to send [02:30:31]OFD Sender: No OFD packet to send [02:30:36]OFD Sender: No OFD packet to send [02:30:41]OFD Sender: No OFD packet to send [02:30:46]OFD Sender: No OFD packet to send [02:30:51]OFD Sender: No OFD packet to send [02:30:56]OFD Sender: No OFD packet to send [02:31:01]OFD Sender: No OFD packet to send [02:31:06]OFD Sender: No OFD packet to send [02:31:11]OFD Sender: No OFD packet to send [02:31:16]OFD Sender: No OFD packet to send [02:31:21]OFD Sender: No OFD packet to send [02:31:26]OFD Sender: No OFD packet to send [02:31:31]OFD Sender: No OFD packet to send [02:31:36]OFD Sender: No OFD packet to send [02:31:41]OFD Sender: No OFD packet to send [02:31:46]OFD Sender: No OFD packet to send [02:31:51]OFD Sender: No OFD packet to send [02:31:56]OFD Sender: No OFD packet to send [02:32:01]OFD Sender: No OFD packet to send [02:32:06]OFD Sender: No OFD packet to send [02:32:11]OFD Sender: No OFD packet to send [02:32:16]OFD Sender: No OFD packet to send [02:32:21]OFD Sender: No OFD packet to send [02:32:26]OFD Sender: No OFD packet to send [02:32:31]OFD Sender: No OFD packet to send [02:32:36]OFD Sender: No OFD packet to send [02:32:41]OFD Sender: No OFD packet to send [02:32:46]OFD Sender: No OFD packet to send [02:32:51]OFD Sender: No OFD packet to send [02:32:56]OFD Sender: No OFD packet to send [02:33:01]OFD Sender: No OFD packet to send [02:33:06]OFD Sender: No OFD packet to send [02:33:11]OFD Sender: No OFD packet to send [02:33:16]OFD Sender: No OFD packet to send [02:33:21]OFD Sender: No OFD packet to send [02:33:26]OFD Sender: No OFD packet to send [02:33:31]OFD Sender: No OFD packet to send [02:33:36]OFD Sender: No OFD packet to send [02:33:41]OFD Sender: No OFD packet to send [02:33:46]OFD Sender: No OFD packet to send [02:33:51]OFD Sender: No OFD packet to send [02:33:56]OFD Sender: No OFD packet to send [02:34:01]OFD Sender: No OFD packet to send [02:34:06]OFD Sender: No OFD packet to send [02:34:11]OFD Sender: No OFD packet to send [02:34:16]OFD Sender: No OFD packet to send [02:34:21]OFD Sender: No OFD packet to send [02:34:26]OFD Sender: No OFD packet to send [02:34:31]OFD Sender: No OFD packet to send [02:34:36]OFD Sender: No OFD packet to send [02:34:41]OFD Sender: No OFD packet to send [02:34:46]OFD Sender: No OFD packet to send [02:34:51]OFD Sender: No OFD packet to send [02:34:56]OFD Sender: No OFD packet to send [02:35:01]OFD Sender: No OFD packet to send [02:35:06]OFD Sender: No OFD packet to send [02:35:11]OFD Sender: No OFD packet to send [02:35:16]OFD Sender: No OFD packet to send [02:35:21]OFD Sender: No OFD packet to send [02:35:26]OFD Sender: No OFD packet to send [02:35:31]OFD Sender: No OFD packet to send [02:35:36]OFD Sender: No OFD packet to send [02:35:41]OFD Sender: No OFD packet to send [02:35:46]OFD Sender: No OFD packet to send [02:35:51]OFD Sender: No OFD packet to send [02:35:56]OFD Sender: No OFD packet to send [02:36:01]OFD Sender: No OFD packet to send [02:36:06]OFD Sender: No OFD packet to send [02:36:11]OFD Sender: No OFD packet to send [02:36:16]OFD Sender: No OFD packet to send [02:36:21]OFD Sender: No OFD packet to send [02:36:26]OFD Sender: No OFD packet to send [02:36:31]OFD Sender: No OFD packet to send [02:36:36]OFD Sender: No OFD packet to send [02:36:41]OFD Sender: No OFD packet to send [02:36:46]OFD Sender: No OFD packet to send [02:36:51]OFD Sender: No OFD packet to send [02:36:56]OFD Sender: No OFD packet to send [02:37:01]OFD Sender: No OFD packet to send [02:37:06]OFD Sender: No OFD packet to send [02:37:11]OFD Sender: No OFD packet to send [02:37:16]OFD Sender: No OFD packet to send [02:37:21]OFD Sender: No OFD packet to send [02:37:26]OFD Sender: No OFD packet to send [02:37:31]OFD Sender: No OFD packet to send [02:37:36]OFD Sender: No OFD packet to send [02:37:41]OFD Sender: No OFD packet to send [02:37:46]OFD Sender: No OFD packet to send [02:37:51]OFD Sender: No OFD packet to send [02:37:56]OFD Sender: No OFD packet to send [02:38:01]OFD Sender: No OFD packet to send [02:38:06]OFD Sender: No OFD packet to send [02:38:11]OFD Sender: No OFD packet to send [02:38:16]OFD Sender: No OFD packet to send [02:38:21]OFD Sender: No OFD packet to send [02:38:26]OFD Sender: No OFD packet to send [02:38:31]OFD Sender: No OFD packet to send [02:38:36]OFD Sender: No OFD packet to send [02:38:41]OFD Sender: No OFD packet to send [02:38:46]OFD Sender: No OFD packet to send [02:38:51]OFD Sender: No OFD packet to send [02:38:56]OFD Sender: No OFD packet to send [02:39:01]OFD Sender: No OFD packet to send [02:39:06]OFD Sender: No OFD packet to send [02:39:11]OFD Sender: No OFD packet to send [02:39:16]OFD Sender: No OFD packet to send [02:39:21]OFD Sender: No OFD packet to send [02:39:26]OFD Sender: No OFD packet to send [02:39:31]OFD Sender: No OFD packet to send [02:39:36]OFD Sender: No OFD packet to send [02:39:41]OFD Sender: No OFD packet to send [02:39:46]OFD Sender: No OFD packet to send [02:39:51]OFD Sender: No OFD packet to send [02:39:56]OFD Sender: No OFD packet to send [02:40:01]OFD Sender: No OFD packet to send [02:40:06]OFD Sender: No OFD packet to send [02:40:11]OFD Sender: No OFD packet to send [02:40:16]OFD Sender: No OFD packet to send [02:40:21]OFD Sender: No OFD packet to send [02:40:26]OFD Sender: No OFD packet to send [02:40:31]OFD Sender: No OFD packet to send [02:40:36]OFD Sender: No OFD packet to send [02:40:41]OFD Sender: No OFD packet to send [02:40:46]OFD Sender: No OFD packet to send [02:40:51]OFD Sender: No OFD packet to send [02:40:56]OFD Sender: No OFD packet to send [02:41:01]OFD Sender: No OFD packet to send [02:41:06]OFD Sender: No OFD packet to send [02:41:11]OFD Sender: No OFD packet to send [02:41:16]OFD Sender: No OFD packet to send [02:41:21]OFD Sender: No OFD packet to send [02:41:26]accept exits with 7 [02:41:26]New connection [02:41:26]New thread 3067252068 created [02:41:26]Thread 3067395428 joined [02:41:26]Waiting for new connection... [02:41:26] Sock 7.Parse request [02:41:26]Sock 7.Check first char [02:41:26]Sock 7.First char is OK [02:41:26]request: POST /json_proto HTTP/1.0 [02:41:26]Method: POST [02:41:26]URL: /json_proto [02:41:26]Method is POST - this is cgi request [02:41:26]url: /json_proto [02:41:26]query_string will be loaded in cgi processing [02:41:26]execute_cgi json_proto POST (null) [02:41:26]execute_cgi path=json_proto method=POST [02:41:26]POST find Content-Length [02:41:26]Host: 172.17.48.197:8080 [02:41:26]Content-Length: 664 [02:41:26]Content-Type: application/json [02:41:26] [02:41:26]POST finish read [02:41:26]Found Content-Length = 664 [02:41:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106408", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 30.000, "sum" : 1857.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4862.00, "payments": [ { "type": 0, "sum" : 1857.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:41:26]execute_script... [02:41: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)1106408", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 30.000, "sum" : 1857.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4862.00, "payments": [ { "type": 0, "sum" : 1857.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:41:26]POST & json_proto [02:41:26]process_json_proto [02:41:26]json parsed OK: [02:41:26]protocol is kg_v1.0 [02:41:26]action value=close_receipt [02:41:26]process_action close_receipt [02:41:26]cmd_close_receipt [02:41:26]MH_GetDate [02:41:26]Write to MH i2c: F0 00 00 BD 64 10 [02:41:26]Write i2c OK [02:41:26]MH_I2C_Read... [02:41:26]Read from MH i2c: F0 [02:41:26]MH_I2C_Read... [02:41:26]Read from MH i2c: F0 09 00 [02:41:26]MH_I2C_Read... [02:41:26]Read from MH i2c: F0 09 00 BD 64 00 DC 34 E5 65 6C AF E3 65 D6 [02:41:26]GetLastDocTimeStamp 1709516085 [02:41:26]current date 1709520092 [02:41:26]FM_GetShiftState [02:41:26]SAM_PROTO_GetShiftState [02:41:26]wFMCommunicate request_size=4 [02:41:26]MH_SAM_APDU [02:41:26]CAPDU: 80 13 01 00 [02:41:26]Write to MH i2c: E2 08 00 BE 64 80 13 01 00 00 00 00 00 9F [02:41:26]Write i2c OK [02:41:26]MH_I2C_Read... [02:41:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:41:26]Read from MH i2c: E2 [02:41:26]MH_I2C_Read... [02:41:26]Read from MH i2c: E2 0E 00 [02:41:26]MH_I2C_Read... [02:41:26]Read from MH i2c: E2 0E 00 BE 64 00 09 00 01 B0 11 E5 65 00 00 00 00 90 00 B6 [02:41:26]RAPDU: 09 00 01 B0 11 E5 65 00 00 00 00 90 00 [02:41:26]wFMCommunicate OK [02:41:26]SAM_PROTO_GetShiftState done [02:41:26]FM_GetShiftState done [02:41:26]opened in 1709511088 [02:41:26]opened+sec_in_day 1709597488 [02:41:26]quantity*price = 185700 [02:41:26]sum+1 = 185701 [02:41:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1857.00 Внесено: 4862.00 СДАЧА: 3005.00 НСП 1% : 16.43 НДС 12% : 197.20 Наличными: 1857.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 24 04.03.2024 02:41 Смена: 324 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123424 ФПД: 117506993800766 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240304T024132&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123424&fm=117506993800766&tin=02508201610067®Number=0000000000090573&sum=185700 [02:41:27]StoreToDocumentArchive [02:41:27]shift 324 fd 123424 [02:41:27]save to /storage/0324/doc_00123424 [02:41:27]save last doc name /storage/0324/doc_00123424 to /storage/kkm_last_doc_name [02:41:27]save OK [02:41:27]Clear old archive folders... [02:41:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:41:27]tlvbuf is 00E94030 [02:41:27]SAM_PROTO_ClearQueue [02:41:27]wFMCommunicate request_size=4 [02:41:27]MH_SAM_APDU [02:41:27]CAPDU: 80 09 00 00 [02:41:27]Write to MH i2c: E2 08 00 CB 64 80 09 00 00 00 00 00 00 A1 [02:41:27]Write i2c OK [02:41:27]MH_I2C_Read... [02:41:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:41:27]Read from MH i2c: E2 [02:41:27]MH_I2C_Read... [02:41:27]Read from MH i2c: E2 03 00 [02:41:27]MH_I2C_Read... [02:41:27]Read from MH i2c: E2 03 00 CB 64 00 90 00 A3 [02:41:27]RAPDU: 90 00 [02:41:27]wFMCommunicate OK [02:41:27]SAM_PROTO_ClearQueue done [02:41:27]KKMCreateOFDPacket [02:41:27]OFDProtocolAddRootSTLVToBuf [02:41:27]FM_MakeSignedData [02:41:27]FM_MakeSignedData [02:41:27]SAM_PROTO_SignData [02:41:27]wFMCommunicate request_size=4 [02:41:27]MH_SAM_APDU [02:41:27]CAPDU: 80 0D 01 02 [02:41:27]Write to MH i2c: E2 08 00 CC 64 80 0D 01 02 00 00 00 00 A9 [02:41:27]Write i2c OK [02:41:27]MH_I2C_Read... [02:41:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:41:27]Read from MH i2c: E2 [02:41:27]MH_I2C_Read... [02:41:27]Read from MH i2c: E2 03 00 [02:41:27]MH_I2C_Read... [02:41:27]Read from MH i2c: E2 03 00 CC 64 00 90 00 A4 [02:41:27]RAPDU: 90 00 [02:41:27]wFMCommunicate OK [02:41:27]wFMCommunicate request_size=255 [02:41:27]MH_SAM_APDU [02:41:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 64 D5 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 D5 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 4D 00 00 00 00 07 04 06 00 64 D5 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 DC 34 E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 20 E2 01 00 35 04 06 00 6A [02:41:27]Write to MH i2c: E2 02 01 CD 64 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 64 D5 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 D5 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 4D 00 00 00 00 07 04 06 00 64 D5 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 DC 34 E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 20 E2 01 00 35 04 06 00 6A 00 00 43 [02:41:27]Write i2c OK [02:41:27]MH_I2C_Read... [02:41:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:41:27]Read from MH i2c: E2 [02:41:27]MH_I2C_Read... [02:41:27]Read from MH i2c: E2 03 00 [02:41:27]MH_I2C_Read... [02:41:27]Read from MH i2c: E2 03 00 CD 64 00 90 00 A5 [02:41:27]RAPDU: 90 00 [02:41:27]wFMCommunicate OK [02:41:27]wFMCommunicate request_size=10 [02:41:27]MH_SAM_APDU [02:41:27]CAPDU: 80 0D 02 02 05 DF 3A 9F C6 3E [02:41:27]Write to MH i2c: E2 0D 00 CE 64 80 0D 02 02 05 00 DF 3A 9F C6 3E 00 00 72 [02:41:27]Write i2c OK [02:41:27]MH_I2C_Read... [02:41:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:41:27]Read from MH i2c: E2 [02:41:27]MH_I2C_Read... [02:41:27]Read from MH i2c: E2 03 00 [02:41:27]MH_I2C_Read... [02:41:27]Read from MH i2c: E2 03 00 CE 64 00 90 00 A6 [02:41:27]RAPDU: 90 00 [02:41:27]wFMCommunicate OK [02:41:27]wFMCommunicate request_size=4 [02:41:27]MH_SAM_APDU [02:41:27]CAPDU: 80 0D 03 02 [02:41:27]Write to MH i2c: E2 08 00 CF 64 80 0D 03 02 00 00 00 00 AE [02:41:27]Write i2c OK [02:41:27]MH_I2C_Read... [02:41:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:41:27]Read from MH i2c: E2 [02:41:27]MH_I2C_Read... [02:41:27]Read from MH i2c: E2 0B 00 [02:41:28]MH_I2C_Read... [02:41:28]Read from MH i2c: E2 0B 00 CF 64 00 C6 33 E0 86 3C F8 18 02 90 00 5C [02:41:28]RAPDU: C6 33 E0 86 3C F8 18 02 90 00 [02:41:28]wFMCommunicate OK [02:41:28]SAM_PROTO_SignData done [02:41:28]FM_MakeSignedData done [02:41:28]CreateOFDProtocolMessage [02:41:28]wFMCommunicate request_size=4 [02:41:28]MH_SAM_APDU [02:41:28]CAPDU: 80 11 00 00 [02:41:28]Write to MH i2c: E2 08 00 D0 64 80 11 00 00 00 00 00 00 AE [02:41:28]Write i2c OK [02:41:28]MH_I2C_Read... [02:41:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:41:28]Read from MH i2c: E2 [02:41:28]MH_I2C_Read... [02:41:28]Read from MH i2c: E2 17 00 [02:41:28]MH_I2C_Read... [02:41:28]Read from MH i2c: E2 17 00 D0 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 0C [02:41:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [02:41:28]wFMCommunicate OK [02:41:28]CreateOFDProtocolMessage done [02:41:28]OFDSenderStorePacket 123424 [02:41:28]StoreOFDPacket docnum=123424 [02:41:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 3F E6 07 01 41 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 64 D5 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 D5 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 4D 00 00 00 00 07 04 06 00 64 D5 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 DC 34 E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 20 E2 01 00 35 04 06 00 6A DF 3A 9F C6 3E C6 33 E0 86 3C F8 18 02 [02:41:28]CheckFolder [02:41:28]dirname=/storage/ofd_packets [02:41:28]CheckFolder done [02:41:28]ProducePacketName [02:41:28]name=ofd_packets/00123424 [02:41:28]NVStorageSaveData ofd_packets/00123424 [02:41:28]File name is /storage/ofd_packets/00123424 [02:41:28]Write 301 bytes [02:41:28]NVStorageSaveData done [02:41:28]OFDSenderStorePacket done [02:41:28]KKMCreateOFDPacket done [02:41:28]NVStorageSaveData kkm_last_timestamp [02:41:28]File name is /storage/kkm_last_timestamp [02:41:28]Write 4 bytes [02:41:28]NVStorageSaveData done [02:41:28]ExternCall_PrintAddStr [02:41:28]wPrintStart [02:41:28]Write to MH i2c: 01 00 00 D1 64 35 [02:41:28]Write i2c OK [02:41:28]MH_I2C_Read... [02:41:28]Read from MH i2c: 01 [02:41:28]MH_I2C_Read... [02:41:28]Read from MH i2c: 01 07 00 [02:41:28]MH_I2C_Read... [02:41:28]Read from MH i2c: 01 07 00 D1 64 00 00 00 00 00 FF 0F 4A [02:41:28]RasterBufferAndPrint [02:41:28]line Счет N : (1)1106408 [02:41:28]line ИНН: 02508201610067 [02:41:28]line Контрольно-Кассовый Чек [02:41:28]line ПРОДАЖА [02:41:28]line ТРК (МРК, ГНК) : 21 [02:41:28]line Товар: 2710124130 [02:41:28]line Аи-92-К-5 [02:41:28]line 30.000 * 61.90 [02:41:28]line = 1857.00 [02:41:28]line НДС 12% НСП 1% [02:41:28]line > о реализуемом товаре [02:41:28]line ИТОГО: 1857.00 [02:41:28]line Внесено: 4862.00 [02:41:28]line СДАЧА: 3005.00 [02:41:28]line НСП 1% : 16.43 [02:41:28]line НДС 12% : 197.20 [02:41:28]line Наличными: 1857.00 [02:41:28]line Безнал.: 0.00 [02:41:28]line Место: АЗС № 25 "Партнер Нефть" [02:41:28]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [02:41:28]line СНО: Общий режим [02:41:28]line Чек 24 04.03.2024 02:41 [02:41:28]line Смена: 324 ФФД: 1.0 [02:41:28]line ЗНМ: 0300000019 [02:41:28]line РНМ: 0000000000090573 [02:41:28]line Версия ККМ: 001 [02:41:28]line ФМ: 0000000000874798 [02:41:28]line ФД: 123424 [02:41:28]line ФПД: 117506993800766 [02:41:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240304T024132&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123424&fm=117506993800766&tin=02508201610067®Number=0000000000090573&sum=185700 [02:41:28]OFD Sender: Processing packet 123424 [packets to send 112, broken 111] [02:41:28]ProducePacketName [02:41:28]name=ofd_packets/00123424 [02:41:28]OFD Sender: To server: pG, [02:41:28]CommunicateWithHost lk.salyk.kg:30040 [02:41:28]ConnectInit lk.salyk.kg [02:41:28]written 0, free lines is 4095 [02:41:28]Connected sock=10 [02:41: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 37 39 38 0F 01 00 00 3F E6 07 01 41 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 64 D5 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 D5 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 4D 00 00 00 00 07 04 06 00 64 D5 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 DC 34 E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 20 E2 01 00 35 04 06 00 6A DF 3A 9F C6 3E C6 33 E0 86 3C F8 18 02 [02:41:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 AB 2D 47 00 A2 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 37 39 38 10 04 04 00 20 E2 01 00 F4 03 04 00 06 E1 E4 65 B6 04 01 00 00 FF 68 1E 42 11 2A 02 63 [02:41:28]CommunicateWithHost err = 0 [02:41:28]CheckOFDResponse [02:41:28]1017 (14) - 77093643461234 [02:41:28]1041 (16) - 0000000000874798 [02:41:28]1040 (4) - 123424 [02:41:28]1012 (4) - 03.03.2024 20:43 [02:41:28]1206 (1) - 0 [02:41:28]OFD Sender: Remove packet 123424 [02:41:28]ProducePacketName [02:41:28]name=ofd_packets/00123424 [02:41:28]NVStorageDeleteData [02:41:28]Write to MH i2c: 01 00 00 FB 64 5F [02:41:28]Write i2c OK [02:41:28]MH_I2C_Read... [02:41:28]Read from MH i2c: 01 [02:41:28]MH_I2C_Read... [02:41:28]Read from MH i2c: 01 07 00 [02:41:28]MH_I2C_Read... [02:41:28]Read from MH i2c: 01 07 00 FB 64 00 00 00 00 00 F7 0C 69 [02:41:28]RasterBufferAndPrint [02:41:28]line [02:41:28]line [02:41:28]line [02:41:28]line [02:41:28]line [02:41:28]written 0, free lines is 3326 [02:41:28]MH_Cut [02:41:28]Write to MH i2c: D1 01 00 02 65 01 39 [02:41:28]Write i2c OK [02:41:28]MH_I2C_Read... [02:41:28]Read from MH i2c: D1 [02:41:28]MH_I2C_Read... [02:41:28]Read from MH i2c: D1 01 00 [02:41:28]MH_I2C_Read... [02:41:28]Read from MH i2c: D1 01 00 02 65 00 38 [02:41:28]Write to MH i2c: 01 00 00 03 65 68 [02:41:28]Write i2c OK [02:41:28]MH_I2C_Read... [02:41:29]OFD Sender: No OFD packet to send [02:41:29]*** Cut start [02:41:29]*** Purtial cut [02:41:29]*** Stage 1: CUTSNS_PIN = 1 [02:41:31]Read from MH i2c: 01 [02:41:31]MH_I2C_Read... [02:41:31]*** Stop cut motor [02:41:31]*** Cut end [02:41:31]Read from MH i2c: 01 07 00 [02:41:31]MH_I2C_Read... [02:41:31]Read from MH i2c: 01 07 00 03 65 00 00 00 00 00 FF 0F 7D [02:41:31]process_action close_receipt done [02:41:31]requested_data is exist [02:41:31]produce_requested_data [02:41:31]requested_item fm.sn is exist - process it [02:41:31]wFMCommunicate request_size=4 [02:41:31]MH_SAM_APDU [02:41:31]CAPDU: 80 11 00 00 [02:41:31]Write to MH i2c: E2 08 00 04 65 80 11 00 00 00 00 00 00 E3 [02:41:31]Write i2c OK [02:41:31]MH_I2C_Read... [02:41:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:41:31]Read from MH i2c: E2 [02:41:31]MH_I2C_Read... [02:41:31]Read from MH i2c: E2 17 00 [02:41:31]MH_I2C_Read... [02:41:31]Read from MH i2c: E2 17 00 04 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 41 [02:41:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [02:41:31]wFMCommunicate OK [02:41:31]requested_item fd.num is exist - process it [02:41:31]SAM_PROTO_GetFieldsCounters [02:41:31]wFMCommunicate request_size=4 [02:41:31]MH_SAM_APDU [02:41:31]CAPDU: 80 13 00 00 [02:41:31]Write to MH i2c: E2 08 00 05 65 80 13 00 00 00 00 00 00 E6 [02:41:31]Write i2c OK [02:41:31]MH_I2C_Read... [02:41:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:41:31]Read from MH i2c: E2 [02:41:31]MH_I2C_Read... [02:41:31]Read from MH i2c: E2 62 00 [02:41:31]MH_I2C_Read... [02:41:31]Read from MH i2c: E2 62 00 05 65 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 20 E2 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 A1 [02:41: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 20 E2 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:41:31]wFMCommunicate OK [02:41:31]SAM_PROTO_GetFieldsCounters done [02:41:31]requested_item shift.num is exist - process it [02:41:31]requested_item shift.opened is exist - process it [02:41:31]req_shift_opened [02:41:31]FM_GetShiftState [02:41:31]SAM_PROTO_GetShiftState [02:41:31]wFMCommunicate request_size=4 [02:41:31]MH_SAM_APDU [02:41:31]CAPDU: 80 13 01 00 [02:41:31]Write to MH i2c: E2 08 00 06 65 80 13 01 00 00 00 00 00 E8 [02:41:31]Write i2c OK [02:41:31]MH_I2C_Read... [02:41:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:41:31]Read from MH i2c: E2 [02:41:31]MH_I2C_Read... [02:41:31]Read from MH i2c: E2 0E 00 [02:41:31]MH_I2C_Read... [02:41:31]Read from MH i2c: E2 0E 00 06 65 00 09 00 01 B0 11 E5 65 00 00 00 00 90 00 FF [02:41:31]RAPDU: 09 00 01 B0 11 E5 65 00 00 00 00 90 00 [02:41:31]wFMCommunicate OK [02:41:31]SAM_PROTO_GetShiftState done [02:41:31]FM_GetShiftState done [02:41:31]req_shift_opened done [02:41:31]requested_item shift.open_date is exist - process it [02:41:31]req_shift_open_date [02:41:31]req_shift_open_date done [02:41:31]produce_requested_data done [02:41:31]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123424,"shift.num":324,"shift.opened":1,"shift.open_date":1709511088} [02:41:31]process_action_free close_receipt [02:41:31]json_value_free [02:41:31]json_value_free done [02:41:31]process_json_proto returns [02:41:31]Send response to host [02:41:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123424,"shift.num":324,"shift.opened":1,"shift.open_date":1709511088}}} [02:41:31]free response buf [02:41:31]execute_script done [02:41:31]execute_script returns [02:41:31]free content buf [02:41:31]Sock 7.Close socket [02:41:31]Sock 7.Thread stoped [02:41:34]OFD Sender: No OFD packet to send [02:41:39]OFD Sender: No OFD packet to send [02:41:44]OFD Sender: No OFD packet to send [02:41:49]OFD Sender: No OFD packet to send [02:41:54]OFD Sender: No OFD packet to send [02:41:59]OFD Sender: No OFD packet to send [02:42:04]OFD Sender: No OFD packet to send [02:42:09]OFD Sender: No OFD packet to send [02:42:14]OFD Sender: No OFD packet to send [02:42:19]OFD Sender: No OFD packet to send [02:42:24]OFD Sender: No OFD packet to send [02:42:29]OFD Sender: No OFD packet to send [02:42:34]OFD Sender: No OFD packet to send [02:42:39]OFD Sender: No OFD packet to send [02:42:44]OFD Sender: No OFD packet to send [02:42:49]OFD Sender: No OFD packet to send [02:42:54]OFD Sender: No OFD packet to send [02:42:59]OFD Sender: No OFD packet to send [02:43:04]OFD Sender: No OFD packet to send [02:43:09]OFD Sender: No OFD packet to send [02:43:14]OFD Sender: No OFD packet to send [02:43:19]OFD Sender: No OFD packet to send [02:43:24]OFD Sender: No OFD packet to send [02:43:29]OFD Sender: No OFD packet to send [02:43:34]OFD Sender: No OFD packet to send [02:43:39]OFD Sender: No OFD packet to send [02:43:44]OFD Sender: No OFD packet to send [02:43:49]OFD Sender: No OFD packet to send [02:43:54]OFD Sender: No OFD packet to send [02:43:59]OFD Sender: No OFD packet to send [02:44:04]OFD Sender: No OFD packet to send [02:44:09]OFD Sender: No OFD packet to send [02:44:14]OFD Sender: No OFD packet to send [02:44:19]OFD Sender: No OFD packet to send [02:44:24]OFD Sender: No OFD packet to send [02:44:29]OFD Sender: No OFD packet to send [02:44:34]OFD Sender: No OFD packet to send [02:44:39]OFD Sender: No OFD packet to send [02:44:44]OFD Sender: No OFD packet to send [02:44:49]OFD Sender: No OFD packet to send [02:44:54]OFD Sender: No OFD packet to send [02:44:59]OFD Sender: No OFD packet to send [02:45:04]OFD Sender: No OFD packet to send [02:45:09]OFD Sender: No OFD packet to send [02:45:14]OFD Sender: No OFD packet to send [02:45:19]OFD Sender: No OFD packet to send [02:45:24]OFD Sender: No OFD packet to send [02:45:29]OFD Sender: No OFD packet to send [02:45:34]OFD Sender: No OFD packet to send [02:45:39]OFD Sender: No OFD packet to send [02:45:44]OFD Sender: No OFD packet to send [02:45:49]OFD Sender: No OFD packet to send [02:45:54]OFD Sender: No OFD packet to send [02:45:59]OFD Sender: No OFD packet to send [02:46:04]OFD Sender: No OFD packet to send [02:46:09]OFD Sender: No OFD packet to send [02:46:14]OFD Sender: No OFD packet to send [02:46:19]OFD Sender: No OFD packet to send [02:46:24]OFD Sender: No OFD packet to send [02:46:29]OFD Sender: No OFD packet to send [02:46:34]OFD Sender: No OFD packet to send [02:46:39]OFD Sender: No OFD packet to send [02:46:44]OFD Sender: No OFD packet to send [02:46:49]OFD Sender: No OFD packet to send [02:46:54]OFD Sender: No OFD packet to send [02:46:59]OFD Sender: No OFD packet to send [02:47:04]OFD Sender: No OFD packet to send [02:47:09]OFD Sender: No OFD packet to send [02:47:14]OFD Sender: No OFD packet to send [02:47:15]accept exits with 9 [02:47:15]New connection [02:47:15]New thread 3067395428 created [02:47:15]Thread 3067252068 joined [02:47:15]Waiting for new connection... [02:47:15] Sock 9.Parse request [02:47:15]Sock 9.Check first char [02:47:15]Sock 9.First char is OK [02:47:15]request: POST /json_proto HTTP/1.0 [02:47:15]Method: POST [02:47:15]URL: /json_proto [02:47:15]Method is POST - this is cgi request [02:47:15]url: /json_proto [02:47:15]query_string will be loaded in cgi processing [02:47:15]execute_cgi json_proto POST (null) [02:47:15]execute_cgi path=json_proto method=POST [02:47:15]POST find Content-Length [02:47:15]Host: 172.17.48.197:8080 [02:47:15]Content-Length: 678 [02:47:15]Content-Type: application/json [02:47:15] [02:47:15]POST finish read [02:47:15]Found Content-Length = 678 [02:47:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1106409", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "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" ] } } [02:47:15]execute_script... [02:47: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)1106409", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 61.90, "quantity" : 8.080, "sum" : 500.15, "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" ] } } [02:47:15]POST & json_proto [02:47:15]process_json_proto [02:47:15]json parsed OK: [02:47:15]protocol is kg_v1.0 [02:47:15]action value=close_receipt [02:47:15]process_action close_receipt [02:47:15]cmd_close_receipt [02:47:15]MH_GetDate [02:47:15]Write to MH i2c: F0 00 00 07 65 5B [02:47:15]Write i2c OK [02:47:15]MH_I2C_Read... [02:47:15]Read from MH i2c: F0 [02:47:15]MH_I2C_Read... [02:47:15]Read from MH i2c: F0 09 00 [02:47:15]MH_I2C_Read... [02:47:15]Read from MH i2c: F0 09 00 07 65 00 3A 36 E5 65 6C AF E3 65 81 [02:47:15]GetLastDocTimeStamp 1709520092 [02:47:15]current date 1709520442 [02:47:15]FM_GetShiftState [02:47:15]SAM_PROTO_GetShiftState [02:47:15]wFMCommunicate request_size=4 [02:47:15]MH_SAM_APDU [02:47:15]CAPDU: 80 13 01 00 [02:47:15]Write to MH i2c: E2 08 00 08 65 80 13 01 00 00 00 00 00 EA [02:47:15]Write i2c OK [02:47:15]MH_I2C_Read... [02:47:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:47:16]Read from MH i2c: E2 [02:47:16]MH_I2C_Read... [02:47:16]Read from MH i2c: E2 0E 00 [02:47:16]MH_I2C_Read... [02:47:16]Read from MH i2c: E2 0E 00 08 65 00 09 00 01 B0 11 E5 65 00 00 00 00 90 00 01 [02:47:16]RAPDU: 09 00 01 B0 11 E5 65 00 00 00 00 90 00 [02:47:16]wFMCommunicate OK [02:47:16]SAM_PROTO_GetShiftState done [02:47:16]FM_GetShiftState done [02:47:16]opened in 1709511088 [02:47:16]opened+sec_in_day 1709597488 [02:47:16]quantity*price = 50015 [02:47:16]sum+1 = 50016 [02:47:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 25 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 СНО: Общий режим Чек 25 04.03.2024 02:47 Смена: 324 ФФД: 1.0 ЗНМ: 0300000019 РНМ: 0000000000090573 Версия ККМ: 001 ФМ: 0000000000874798 ФД: 123425 ФПД: 34810501703492 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240304T024722&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123425&fm=34810501703492&tin=02508201610067®Number=0000000000090573&sum=50000 [02:47:17]StoreToDocumentArchive [02:47:17]shift 324 fd 123425 [02:47:17]save to /storage/0324/doc_00123425 [02:47:17]save last doc name /storage/0324/doc_00123425 to /storage/kkm_last_doc_name [02:47:17]save OK [02:47:17]Clear old archive folders... [02:47:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:47:17]tlvbuf is 00DD5BC0 [02:47:17]SAM_PROTO_ClearQueue [02:47:17]wFMCommunicate request_size=4 [02:47:17]MH_SAM_APDU [02:47:17]CAPDU: 80 09 00 00 [02:47:17]Write to MH i2c: E2 08 00 15 65 80 09 00 00 00 00 00 00 EC [02:47:17]Write i2c OK [02:47:17]MH_I2C_Read... [02:47:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:47:17]Read from MH i2c: E2 [02:47:17]MH_I2C_Read... [02:47:17]Read from MH i2c: E2 03 00 [02:47:17]MH_I2C_Read... [02:47:17]Read from MH i2c: E2 03 00 15 65 00 90 00 EE [02:47:17]RAPDU: 90 00 [02:47:17]wFMCommunicate OK [02:47:17]SAM_PROTO_ClearQueue done [02:47:17]KKMCreateOFDPacket [02:47:17]OFDProtocolAddRootSTLVToBuf [02:47:17]FM_MakeSignedData [02:47:17]FM_MakeSignedData [02:47:17]SAM_PROTO_SignData [02:47:17]wFMCommunicate request_size=4 [02:47:17]MH_SAM_APDU [02:47:17]CAPDU: 80 0D 01 02 [02:47:17]Write to MH i2c: E2 08 00 16 65 80 0D 01 02 00 00 00 00 F4 [02:47:17]Write i2c OK [02:47:17]MH_I2C_Read... [02:47:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:47:17]Read from MH i2c: E2 [02:47:17]MH_I2C_Read... [02:47:17]Read from MH i2c: E2 03 00 [02:47:17]MH_I2C_Read... [02:47:17]Read from MH i2c: E2 03 00 16 65 00 90 00 EF [02:47:17]RAPDU: 90 00 [02:47:17]wFMCommunicate OK [02:47:17]wFMCommunicate request_size=255 [02:47:17]MH_SAM_APDU [02:47:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 3A 36 E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 21 E2 01 00 35 04 06 00 1F [02:47:17]Write to MH i2c: E2 02 01 17 65 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 3A 36 E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 21 E2 01 00 35 04 06 00 1F 00 00 0F [02:47:17]Write i2c OK [02:47:17]MH_I2C_Read... [02:47:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:47:17]Read from MH i2c: E2 [02:47:17]MH_I2C_Read... [02:47:17]Read from MH i2c: E2 03 00 [02:47:17]MH_I2C_Read... [02:47:17]Read from MH i2c: E2 03 00 17 65 00 90 00 F0 [02:47:17]RAPDU: 90 00 [02:47:17]wFMCommunicate OK [02:47:17]wFMCommunicate request_size=10 [02:47:17]MH_SAM_APDU [02:47:17]CAPDU: 80 0D 02 02 05 A8 F3 96 A7 44 [02:47:17]Write to MH i2c: E2 0D 00 18 65 80 0D 02 02 05 00 A8 F3 96 A7 44 00 00 1D [02:47:17]Write i2c OK [02:47:17]MH_I2C_Read... [02:47:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:47:17]Read from MH i2c: E2 [02:47:17]MH_I2C_Read... [02:47:17]Read from MH i2c: E2 03 00 [02:47:17]MH_I2C_Read... [02:47:17]Read from MH i2c: E2 03 00 18 65 00 90 00 F1 [02:47:17]RAPDU: 90 00 [02:47:17]wFMCommunicate OK [02:47:17]wFMCommunicate request_size=4 [02:47:17]MH_SAM_APDU [02:47:17]CAPDU: 80 0D 03 02 [02:47:17]Write to MH i2c: E2 08 00 19 65 80 0D 03 02 00 00 00 00 F9 [02:47:17]Write i2c OK [02:47:17]MH_I2C_Read... [02:47:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:47:17]Read from MH i2c: E2 [02:47:17]MH_I2C_Read... [02:47:17]Read from MH i2c: E2 0B 00 [02:47:17]MH_I2C_Read... [02:47:17]Read from MH i2c: E2 0B 00 19 65 00 3F 00 5A E4 00 DF 70 C1 90 00 87 [02:47:17]RAPDU: 3F 00 5A E4 00 DF 70 C1 90 00 [02:47:17]wFMCommunicate OK [02:47:17]SAM_PROTO_SignData done [02:47:17]FM_MakeSignedData done [02:47:17]CreateOFDProtocolMessage [02:47:17]wFMCommunicate request_size=4 [02:47:17]MH_SAM_APDU [02:47:17]CAPDU: 80 11 00 00 [02:47:17]Write to MH i2c: E2 08 00 1A 65 80 11 00 00 00 00 00 00 F9 [02:47:17]Write i2c OK [02:47:17]MH_I2C_Read... [02:47:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:47:17]Read from MH i2c: E2 [02:47:17]MH_I2C_Read... [02:47:17]Read from MH i2c: E2 17 00 [02:47:17]MH_I2C_Read... [02:47:17]Read from MH i2c: E2 17 00 1A 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 57 [02:47:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [02:47:17]wFMCommunicate OK [02:47:17]CreateOFDProtocolMessage done [02:47:17]OFDSenderStorePacket 123425 [02:47:17]StoreOFDPacket docnum=123425 [02:47:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0F 01 00 00 38 0F 07 01 EB CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 3A 36 E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 21 E2 01 00 35 04 06 00 1F A8 F3 96 A7 44 3F 00 5A E4 00 DF 70 C1 [02:47:17]CheckFolder [02:47:17]dirname=/storage/ofd_packets [02:47:17]CheckFolder done [02:47:17]ProducePacketName [02:47:17]name=ofd_packets/00123425 [02:47:17]NVStorageSaveData ofd_packets/00123425 [02:47:17]File name is /storage/ofd_packets/00123425 [02:47:17]Write 301 bytes [02:47:17]NVStorageSaveData done [02:47:17]OFDSenderStorePacket done [02:47:17]KKMCreateOFDPacket done [02:47:17]NVStorageSaveData kkm_last_timestamp [02:47:17]File name is /storage/kkm_last_timestamp [02:47:17]Write 4 bytes [02:47:17]NVStorageSaveData done [02:47:17]ExternCall_PrintAddStr [02:47:17]wPrintStart [02:47:17]Write to MH i2c: 01 00 00 1B 65 80 [02:47:17]Write i2c OK [02:47:17]MH_I2C_Read... [02:47:17]Read from MH i2c: 01 [02:47:17]MH_I2C_Read... [02:47:17]Read from MH i2c: 01 07 00 [02:47:17]MH_I2C_Read... [02:47:17]Read from MH i2c: 01 07 00 1B 65 00 00 00 00 00 FF 0F 95 [02:47:17]RasterBufferAndPrint [02:47:17]line Счет N : (1)1106409 [02:47:17]line ИНН: 02508201610067 [02:47:17]line Контрольно-Кассовый Чек [02:47:17]line ПРОДАЖА [02:47:17]line ТРК (МРК, ГНК) : 11 [02:47:17]line Товар: 2710124130 [02:47:17]line Аи-92-К-5 [02:47:17]line 8.080 * 61.90 [02:47:17]line = 500.15 [02:47:17]line НДС 12% НСП 1% [02:47:17]line > о реализуемом товаре [02:47:17]line ОКРУГЛЕНИЕ: -0.15 [02:47:17]line ИТОГО: 500.00 [02:47:17]line Внесено: 500.00 [02:47:17]line СДАЧА: 0.00 [02:47:17]line НСП 1% : 4.43 [02:47:17]line НДС 12% : 53.11 [02:47:17]line Наличными: 500.00 [02:47:17]line Безнал.: 0.00 [02:47:17]line Место: АЗС № 25 "Партнер Нефть" [02:47:17]line Адрес: 720001, г. Бишкек, ул. Медерова 48 А, 42.851868, 74.614018 [02:47:17]line СНО: Общий режим [02:47:17]line Чек 25 04.03.2024 02:47 [02:47:17]line Смена: 324 ФФД: 1.0 [02:47:17]line ЗНМ: 0300000019 [02:47:17]line РНМ: 0000000000090573 [02:47:17]line Версия ККМ: 001 [02:47:17]line ФМ: 0000000000874798 [02:47:17]line ФД: 123425 [02:47:17]line ФПД: 34810501703492 [02:47:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240304T024722&type=1&operation_type=1&fn_number=0000000000874798&fd_number=123425&fm=34810501703492&tin=02508201610067®Number=0000000000090573&sum=50000 [02:47:18]OFD Sender: Processing packet 123425 [packets to send 112, broken 111] [02:47:18]ProducePacketName [02:47:18]name=ofd_packets/00123425 [02:47:18]OFD Sender: To server: pG, [02:47:18]CommunicateWithHost lk.salyk.kg:30040 [02:47:18]ConnectInit lk.salyk.kg [02:47:18]written 0, free lines is 4095 [02:47:18]Connected sock=10 [02:47: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 37 39 38 0F 01 00 00 38 0F 07 01 EB CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 2E 18 00 00 00 00 13 04 06 00 5F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 3A 36 E5 65 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 21 E2 01 00 35 04 06 00 1F A8 F3 96 A7 44 3F 00 5A E4 00 DF 70 C1 [02:47:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 4F 00 00 00 53 15 47 00 C4 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 10 04 04 00 21 E2 01 00 F4 03 04 00 64 E2 E4 65 B6 04 01 00 00 4B 58 35 18 AE DE AE 0D [02:47:18]CommunicateWithHost err = 0 [02:47:18]CheckOFDResponse [02:47:18]1017 (14) - 77093643461234 [02:47:18]1041 (16) - 0000000000874798 [02:47:18]1040 (4) - 123425 [02:47:18]1012 (4) - 03.03.2024 20:49 [02:47:18]1206 (1) - 0 [02:47:18]OFD Sender: Remove packet 123425 [02:47:18]ProducePacketName [02:47:18]name=ofd_packets/00123425 [02:47:18]NVStorageDeleteData [02:47:18]Write to MH i2c: 01 00 00 46 65 AB [02:47:18]Write i2c OK [02:47:18]MH_I2C_Read... [02:47:18]Read from MH i2c: 01 [02:47:18]MH_I2C_Read... [02:47:18]Read from MH i2c: 01 07 00 [02:47:18]MH_I2C_Read... [02:47:18]Read from MH i2c: 01 07 00 46 65 00 00 00 00 00 E4 0C A2 [02:47:18]RasterBufferAndPrint [02:47:18]line [02:47:18]line [02:47:18]line [02:47:18]line [02:47:18]line [02:47:18]written 0, free lines is 3306 [02:47:18]MH_Cut [02:47:18]Write to MH i2c: D1 01 00 4D 65 01 84 [02:47:18]Write i2c OK [02:47:18]MH_I2C_Read... [02:47:18]Read from MH i2c: D1 [02:47:18]MH_I2C_Read... [02:47:18]Read from MH i2c: D1 01 00 [02:47:18]MH_I2C_Read... [02:47:18]Read from MH i2c: D1 01 00 4D 65 00 83 [02:47:18]Write to MH i2c: 01 00 00 4E 65 B3 [02:47:18]Write i2c OK [02:47:18]MH_I2C_Read... [02:47:18]OFD Sender: No OFD packet to send [02:47:19]*** Cut start [02:47:19]*** Purtial cut [02:47:19]*** Stage 1: CUTSNS_PIN = 1 [02:47:21]Read from MH i2c: 01 [02:47:21]MH_I2C_Read... [02:47:21]*** Stop cut motor [02:47:21]*** Cut end [02:47:21]Read from MH i2c: 01 07 00 [02:47:21]MH_I2C_Read... [02:47:21]Read from MH i2c: 01 07 00 4E 65 00 00 00 00 00 FF 0F C8 [02:47:21]process_action close_receipt done [02:47:21]requested_data is exist [02:47:21]produce_requested_data [02:47:21]requested_item fm.sn is exist - process it [02:47:21]wFMCommunicate request_size=4 [02:47:21]MH_SAM_APDU [02:47:21]CAPDU: 80 11 00 00 [02:47:21]Write to MH i2c: E2 08 00 4F 65 80 11 00 00 00 00 00 00 2E [02:47:21]Write i2c OK [02:47:21]MH_I2C_Read... [02:47:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:47:21]Read from MH i2c: E2 [02:47:21]MH_I2C_Read... [02:47:21]Read from MH i2c: E2 17 00 [02:47:21]MH_I2C_Read... [02:47:21]Read from MH i2c: E2 17 00 4F 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 8C [02:47:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 90 00 [02:47:21]wFMCommunicate OK [02:47:21]requested_item fd.num is exist - process it [02:47:21]SAM_PROTO_GetFieldsCounters [02:47:21]wFMCommunicate request_size=4 [02:47:21]MH_SAM_APDU [02:47:21]CAPDU: 80 13 00 00 [02:47:21]Write to MH i2c: E2 08 00 50 65 80 13 00 00 00 00 00 00 31 [02:47:21]Write i2c OK [02:47:21]MH_I2C_Read... [02:47:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:47:21]Read from MH i2c: E2 [02:47:21]MH_I2C_Read... [02:47:21]Read from MH i2c: E2 62 00 [02:47:21]MH_I2C_Read... [02:47:21]Read from MH i2c: E2 62 00 50 65 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 21 E2 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 F0 [02:47: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 37 39 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 37 33 10 04 04 00 21 E2 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:47:21]wFMCommunicate OK [02:47:21]SAM_PROTO_GetFieldsCounters done [02:47:21]requested_item shift.num is exist - process it [02:47:21]requested_item shift.opened is exist - process it [02:47:21]req_shift_opened [02:47:21]FM_GetShiftState [02:47:21]SAM_PROTO_GetShiftState [02:47:21]wFMCommunicate request_size=4 [02:47:21]MH_SAM_APDU [02:47:21]CAPDU: 80 13 01 00 [02:47:21]Write to MH i2c: E2 08 00 51 65 80 13 01 00 00 00 00 00 33 [02:47:21]Write i2c OK [02:47:21]MH_I2C_Read... [02:47:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:47:21]Read from MH i2c: E2 [02:47:21]MH_I2C_Read... [02:47:21]Read from MH i2c: E2 0E 00 [02:47:21]MH_I2C_Read... [02:47:21]Read from MH i2c: E2 0E 00 51 65 00 09 00 01 B0 11 E5 65 00 00 00 00 90 00 4A [02:47:21]RAPDU: 09 00 01 B0 11 E5 65 00 00 00 00 90 00 [02:47:21]wFMCommunicate OK [02:47:21]SAM_PROTO_GetShiftState done [02:47:21]FM_GetShiftState done [02:47:21]req_shift_opened done [02:47:21]requested_item shift.open_date is exist - process it [02:47:21]req_shift_open_date [02:47:21]req_shift_open_date done [02:47:21]produce_requested_data done [02:47:21]produce_requested_data return {"fm.sn":"0000000000874798","fd.num":123425,"shift.num":324,"shift.opened":1,"shift.open_date":1709511088} [02:47:21]process_action_free close_receipt [02:47:21]json_value_free [02:47:21]json_value_free done [02:47:21]process_json_proto returns [02:47:21]Send response to host [02:47:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874798","fd.num":123425,"shift.num":324,"shift.opened":1,"shift.open_date":1709511088}}} [02:47:21]free response buf [02:47:21]execute_script done [02:47:21]execute_script returns [02:47:21]free content buf [02:47:21]Sock 9.Close socket [02:47:21]Sock 9.Thread stoped [02:47:23]OFD Sender: No OFD packet to send [02:47:28]OFD Sender: No OFD packet to send [02:47:33]OFD Sender: No OFD packet to send [02:47:38]OFD Sender: No OFD packet to send [02:47:43]OFD Sender: No OFD packet to send [02:47:48]OFD Sender: No OFD packet to send [02:47:53]OFD Sender: No OFD packet to send [02:47:58]OFD Sender: No OFD packet to send [02:48:03]OFD Sender: No OFD packet to send [02:48:08]OFD Sender: No OFD packet to send [02:48:13]OFD Sender: No OFD packet to send [02:48:18]OFD Sender: No OFD packet to send [02:48:23]OFD Sender: No OFD packet to send [02:48:28]OFD Sender: No OFD packet to send [02:48:33]OFD Sender: No OFD packet to send [02:48:38]OFD Sender: No OFD packet to send [02:48:43]OFD Sender: No OFD packet to send [02:48:48]OFD Sender: No OFD packet to send [02:48:53]OFD Sender: No OFD packet to send [02:48:58]OFD Sender: No OFD packet to send [02:49:03]OFD Sender: No OFD packet to send [02:49:08]OFD Sender: No OFD packet to send [02:49:13]OFD Sender: No OFD packet to send [02:49:18]OFD Sender: No OFD packet to send [02:49:23]OFD Sender: No OFD packet to send [02:49:28]OFD Sender: No OFD packet to send [02:49:33]OFD Sender: No OFD packet to send [02:49:38]OFD Sender: No OFD packet to send [02:49:43]OFD Sender: No OFD packet to send [02:49:48]OFD Sender: No OFD packet to send [02:49:53]OFD Sender: No OFD packet to send [02:49:58]OFD Sender: No OFD packet to send [02:50:03]OFD Sender: No OFD packet to send [02:50:08]OFD Sender: No OFD packet to send [02:50:14]OFD Sender: No OFD packet to send [02:50:19]OFD Sender: No OFD packet to send [02:50:24]OFD Sender: No OFD packet to send [02:50:29]OFD Sender: No OFD packet to send [02:50:34]OFD Sender: No OFD packet to send [02:50:39]OFD Sender: No OFD packet to send [02:50:44]OFD Sender: No OFD packet to send [02:50:49]OFD Sender: No OFD packet to send [02:50:54]OFD Sender: No OFD packet to send [02:50:59]OFD Sender: No OFD packet to send [02:51:04]OFD Sender: No OFD packet to send [02:51:09]OFD Sender: No OFD packet to send [02:51:14]OFD Sender: No OFD packet to send [02:51:19]OFD Sender: No OFD packet to send [02:51:24]OFD Sender: No OFD packet to send [02:51:29]OFD Sender: No OFD packet to send [02:51:34]OFD Sender: No OFD packet to send [02:51:39]OFD Sender: No OFD packet to send [02:51:44]OFD Sender: No OFD packet to send [02:51:49]OFD Sender: No OFD packet to send [02:51:54]OFD Sender: No OFD packet to send [02:51:59]OFD Sender: No OFD packet to send [02:52:04]OFD Sender: No OFD packet to send [02:52:09]OFD Sender: No OFD packet to send [02:52:14]OFD Sender: No OFD packet to send [02:52:19]OFD Sender: No OFD packet to send [02:52:24]OFD Sender: No OFD packet to send [02:52:29]OFD Sender: No OFD packet to send [02:52:34]OFD Sender: No OFD packet to send [02:52:39]OFD Sender: No OFD packet to send [02:52:44]OFD Sender: No OFD packet to send [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